Support for pseudo-random numbers in tests.
[gnulib.git] / ChangeLog
1 2012-03-03  Bruno Haible  <bruno@clisp.org>
2
3         Support for pseudo-random numbers in tests.
4         * tests/randomf.c: New file.
5         * tests/randomd.c: New file.
6         * tests/randoml.c: New file.
7         * tests/macros.h (randomf, randomd, randoml): New declarations.
8
9 2012-03-03  Bruno Haible  <bruno@clisp.org>
10
11         frexp* tests: Refactor.
12         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
13         * tests/test-frexp.c: Include and use it.
14         * tests/test-frexpf.c: Likewise.
15         * tests/test-frexpl.c: Likewise.
16         * modules/frexp-tests (Files): Add tests/test-frexp.h.
17         * modules/frexpf-tests (Files): Likewise.
18         * modules/frexpl-tests (Files): Likewise.
19
20 2012-03-02  Jim Meyering  <meyering@redhat.com>
21
22         maint: don't specify XZ_OPT=-9ev in dist-related rule
23         Using xz's -9 option is warranted only if you have a very large
24         tarball (see xz's documentation for the sizes vs. presets), and
25         requires 64MiB of memory at decompression time.
26         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
27         Automake's default of just "-e" is fine.  Override on a
28         per-package basis by setting XZ_OPT e.g., in cfg.mk.
29
30 2012-03-01  Eric Blake  <eblake@redhat.com>
31
32         maint.mk: allow announcement for non-gnulib project
33         * maint.mk (announcement): Skip gnulib version if not used.
34
35 2012-03-01  Jim Meyering  <meyering@redhat.com>
36
37         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
38         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
39         envvar settings cannot interfere.  Otherwise, setting envvars like
40         prohibit=foo require=bar, etc. would cause spurious test failures.
41
42 2012-03-01  Eric Blake  <eblake@redhat.com>
43
44         maint.mk: add per-line exclusions to prohibitions
45         * maint.mk (_sc_search_regexp): Add $exclude parameter.
46         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
47         (sc_const_long_option): Use it.
48
49 2012-03-01  Bruno Haible  <bruno@clisp.org>
50
51         Tests for module 'expl-ieee'.
52         * modules/expl-ieee-tests: New file.
53         * tests/test-expl-ieee.c: New file.
54
55         New module 'expl-ieee'.
56         * modules/expl-ieee: New file.
57
58         Tests for module 'exp-ieee'.
59         * modules/exp-ieee-tests: New file.
60         * tests/test-exp-ieee.c: New file.
61
62         New module 'exp-ieee'.
63         * modules/exp-ieee: New file.
64
65         Tests for module 'expf-ieee'.
66         * modules/expf-ieee-tests: New file.
67         * tests/test-expf-ieee.c: New file.
68         * tests/test-exp-ieee.h: New file.
69
70         New module 'expf-ieee'.
71         * modules/expf-ieee: New file.
72
73 2012-02-29  Bruno Haible  <bruno@clisp.org>
74
75         cbrtl-ieee: Work around test failure on IRIX 6.5.
76         * m4/cbrtl-ieee.m4: New file.
77         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
78         test whether cbrtl works with a minus zero argument. Replace it if not.
79         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
80         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
81         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
82         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
83         (Depends-on): Update conditions.
84         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
85         m4/signbit.m4.
86         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
87         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
88         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
89
90         Tests for module 'cbrtl-ieee'.
91         * modules/cbrtl-ieee-tests: New file.
92         * tests/test-cbrtl-ieee.c: New file.
93
94         New module 'cbrtl-ieee'.
95         * modules/cbrtl-ieee: New file.
96
97         Tests for module 'cbrt-ieee'.
98         * modules/cbrt-ieee-tests: New file.
99         * tests/test-cbrt-ieee.c: New file.
100
101         New module 'cbrt-ieee'.
102         * modules/cbrt-ieee: New file.
103
104         Tests for module 'cbrtf-ieee'.
105         * modules/cbrtf-ieee-tests: New file.
106         * tests/test-cbrtf-ieee.c: New file.
107         * tests/test-cbrt-ieee.h: New file.
108
109         New module 'cbrtf-ieee'.
110         * modules/cbrtf-ieee: New file.
111
112 2012-02-29  Bruno Haible  <bruno@clisp.org>
113
114         cbrtf: Work around bug in IRIX 6.5 system function.
115         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
116         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
117         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
118         work.
119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
120         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
121         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
122         (Depends-on): Update conditions.
123         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
124
125 2012-02-29  Bruno Haible  <bruno@clisp.org>
126
127         Tests for module 'cbrtl'.
128         * modules/cbrtl-tests: New file.
129         * tests/test-cbrtl.c: New file.
130
131         New module 'cbrtl'.
132         * lib/math.in.h (cbrtl): New declaration.
133         * lib/cbrtl.c: New file.
134         * m4/cbrtl.m4: New file.
135         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
137         HAVE_DECL_CBRTL.
138         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
139         HAVE_DECL_CBRTL.
140         * modules/cbrtl: New file.
141         * tests/test-math-c++.cc: Check the declaration of cbrtl.
142         * doc/posix-functions/cbrtl.texi: Mention the new module.
143
144 2012-02-29  Bruno Haible  <bruno@clisp.org>
145
146         Tests for module 'cbrtf'.
147         * modules/cbrtf-tests: New file.
148         * tests/test-cbrtf.c: New file.
149
150         New module 'cbrtf'.
151         * lib/math.in.h (cbrtf): New declaration.
152         * lib/cbrtf.c: New file.
153         * m4/cbrtf.m4: New file.
154         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
156         HAVE_DECL_CBRTF.
157         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
158         HAVE_DECL_CBRTF.
159         * modules/cbrtf: New file.
160         * tests/test-math-c++.cc: Check the declaration of cbrtf.
161         * doc/posix-functions/cbrtf.texi: Mention the new module.
162
163 2012-02-29  Bruno Haible  <bruno@clisp.org>
164
165         cbrt: Provide replacement on MSVC and Minix.
166         * lib/math.in.h (cbrt): New declaration.
167         * lib/cbrt.c: New file.
168         * m4/cbrt.m4: New file.
169         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
171         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
172         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
173         (Depends-on): Add dependencies.
174         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
175         * tests/test-math-c++.cc: Check the declaration of cbrt.
176         * doc/posix-functions/cbrt.texi: Mention that the module provides a
177         replacement.
178
179 2012-02-29  Bruno Haible  <bruno@clisp.org>
180
181         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
182         * m4/hypotl-ieee.m4: New file.
183         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
184         test whether hypotl works with mixed NaN and Infinity arguments.
185         Replace it if not.
186         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
188         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
189         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
190         (Depends-on): Update conditions.
191         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
192         (Depends-on): Add hypot-ieee.
193         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
194         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
195
196         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
197         * m4/hypotf-ieee.m4: New file.
198         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
199         test whether hypotf works with mixed NaN and Infinity arguments.
200         Replace it if not.
201         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
202         (Depends-on): Add hypot-ieee.
203         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
204         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
205
206         hypot-ieee: Work around test failure on OSF/1 and native Windows.
207         * lib/math.in.h (hypot): New declaration.
208         * lib/hypot.c: New file.
209         * m4/hypot-ieee.m4: New file.
210         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
211         whether hypot works with mixed NaN and Infinity arguments. Replace it
212         if not.
213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
214         REPLACE_HYPOT.
215         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
216         * modules/hypot (Files): Add lib/hypot.c.
217         (Depends-on): Add dependencies.
218         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
219         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
220         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
221         * tests/test-math-c++.cc: Check the declaration of hypot.
222         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
223
224         Tests for module 'hypotl-ieee'.
225         * modules/hypotl-ieee-tests: New file.
226         * tests/test-hypotl-ieee.c: New file.
227
228         New module 'hypotl-ieee'.
229         * modules/hypotl-ieee: New file.
230
231         Tests for module 'hypot-ieee'.
232         * modules/hypot-ieee-tests: New file.
233         * tests/test-hypot-ieee.c: New file.
234
235         New module 'hypot-ieee'.
236         * modules/hypot-ieee: New file.
237
238         Tests for module 'hypotf-ieee'.
239         * modules/hypotf-ieee-tests: New file.
240         * tests/test-hypotf-ieee.c: New file.
241         * tests/test-hypot-ieee.h: New file.
242
243         New module 'hypotf-ieee'.
244         * modules/hypotf-ieee: New file.
245
246 2012-02-29  Bruno Haible  <bruno@clisp.org>
247
248         Remove unused variables.
249         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
250         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
251         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
252         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
253
254 2012-02-29  Eric Blake  <eblake@redhat.com>
255
256         termios: fix pid_t always, not just for tcgetsid
257         * doc/posix-headers/termios.texi (termios.h): Mention problem.
258         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
259         just when building tcgetsid.
260
261 2012-02-29  Bruno Haible  <bruno@clisp.org>
262
263         Tests for module 'hypotl'.
264         * modules/hypotl-tests: New file.
265         * tests/test-hypotl.c: New file.
266
267         New module 'hypotl'.
268         * lib/math.in.h (hypotl): New declaration.
269         * lib/hypotl.c: New file.
270         * m4/hypotl.m4: New file.
271         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
273         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
274         * modules/hypotl: New file.
275         * tests/test-math-c++.cc: Check the hypotl declaration.
276         * doc/posix-functions/hypotl.texi: Mention the new module.
277
278 2012-02-29  Eric Blake  <eblake@redhat.com>
279
280         tcgetsid: fix cygwin header bug
281         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
282
283         docs: update cygwin progress
284         * doc/posix-functions/llround.texi (llround): Added in cygwin
285         1.7.8.
286         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
287         * doc/glibc-functions/program_invocation_name.texi
288         (program_invocation_name): Likewise.
289         * doc/glibc-functions/program_invocation_short_name.texi
290         (program_invocation_short_name): Likewise.
291         * doc/glibc-functions/madvise.texi (madvise): Likewise.
292         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
293         Likewise.
294         * doc/posix-functions/pthread_spin_destroy.texi
295         (pthread_spin_destroy): Added in cygwin 1.7.10.
296         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
297         Likewise.
298         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
299         Likewise.
300         * doc/posix-functions/pthread_spin_trylock.texi
301         (pthread_spin_trylock): Likewise.
302         * doc/posix-functions/pthread_spin_unlock.texi
303         (pthread_spin_unlock): Likewise.
304         * doc/posix-functions/pthread_setschedprio.texi
305         (pthread_setschedprio): Likewise.
306         * doc/posix-functions/pthread_attr_getstack.texi
307         (pthread_attr_getstack): Likewise.
308         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
309         (pthread_attr_getstackaddr): Likewise.
310         * doc/glibc-functions/pthread_getattr_np.texi
311         (pthread_getattr_np): Likewise.
312         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
313         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
314         * doc/posix-functions/clock_settime.texi (clock_settime):
315         Likewise.
316         * doc/posix-functions/pthread_attr_getguardsize.texi
317         (pthread_attr_getguardsize): Likewise.
318         * doc/posix-functions/pthread_attr_setguardsize.texi
319         (pthread_attr_setguardsize): Likewise.
320         * doc/posix-functions/pthread_attr_setstack.texi
321         (pthread_attr_setstack): Likewise.
322         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
323         (pthread_attr_setstackaddr): Likewise.
324         * doc/posix-functions/clock_getcpuclockid.texi
325         (clock_getcpuclockid): Likewise.
326         * doc/posix-functions/pthread_getcpuclockid.texi
327         (pthread_getcpuclockid): Likewise.
328         * doc/glibc-functions/error.texi (error): Likewise.
329         * doc/glibc-functions/error_at_line.texi (error_at_line):
330         Likewise.
331         * doc/glibc-functions/error_message_count.texi
332         (error_message_count): Likewise.
333         * doc/glibc-functions/error_one_per_line.texi
334         (error_one_per_line): Likewise.
335         * doc/glibc-functions/error_print_progname.texi
336         (error_print_progname): Likewise.
337         * doc/posix-functions/pthread_condattr_getclock.texi
338         (pthread_condattr_getclock): Likewise.
339         * doc/posix-functions/pthread_condattr_setclock.texi
340         (pthread_condattr_setclock): Likewise.
341         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
342         Likewise.
343         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
344         * doc/glibc-functions/getpt.texi (getpt): Likewise.
345         * doc/glibc-functions/get_current_dir_name.texi
346         (get_current_dir_name): Likewise.
347         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
348         Likewise.
349         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
350         wrong return type.
351         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
352         1.7.11.
353
354 2012-02-29  Bruno Haible  <bruno@clisp.org>
355
356         Tests for module 'hypotf'.
357         * modules/hypotf-tests: New file.
358         * tests/test-hypotf.c: New file.
359
360         New module 'hypotf'.
361         * lib/math.in.h (hypotf): New declaration.
362         * lib/hypotf.c: New file.
363         * m4/hypotf.m4: New file.
364         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
366         REPLACE_HYPOTF.
367         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
368         REPLACE_HYPOTF.
369         * modules/hypotf: New file.
370         * tests/test-math-c++.cc: Check the hypotf declaration.
371         * doc/posix-functions/hypotf.texi: Mention the new module.
372
373         hypot: Prepare for hypotf module.
374         * m4/hypot.m4: New file.
375         * modules/hypot (Files): Add m4/hypot.m4.
376         (configure.ac): Invoke gl_FUNC_HYPOT.
377
378 2012-02-29  Bruno Haible  <bruno@clisp.org>
379
380         hypot tests: More tests.
381         * tests/test-hypot.c: Include <float.h>.
382         (main): Add tests about overflow and underflow.
383
384 2012-02-29  Bruno Haible  <bruno@clisp.org>
385
386         math code: Add comments.
387         * lib/acosl.c: Add comment about related glibc source files.
388         * lib/asinl.c: Likewise.
389         * lib/atanl.c: Likewise.
390         * lib/expl.c: Likewise.
391         * lib/logl.c: Likewise.
392         * lib/sincosl.c: Likewise.
393         * lib/sinl.c: Likewise.
394         * lib/tanl.c: Likewise.
395         * lib/trigl.c: Likewise.
396         * lib/cosl.c: Likewise. Fix comments.
397
398 2012-02-28  Bruno Haible  <bruno@clisp.org>
399
400         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
401         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
402         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
403         HUGE_VALL are defined.
404         (numeric_equald): Renamed from numeric_equal.
405         (numeric_equalf, numeric_equall): New functions.
406         (main): Check also HUGE_VALF, HUGE_VALL.
407         * modules/math-tests (Files): Add tests/macros.h.
408         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
409         HUGE_VALL.
410
411 2012-02-28  Bruno Haible  <bruno@clisp.org>
412
413         doc: Move ISO C11 feature notes into POSIX chapters.
414         * doc/posix-functions/aligned_alloc.texi: Renamed from
415         doc/glibc-functions/aligned_alloc.texi.
416         * doc/posix-functions/quick_exit.texi: Renamed from
417         doc/glibc-functions/quick_exit.texi.
418         * doc/posix-headers/uchar.texi: Renamed from
419         doc/glibc-headers/uchar.texi.
420         * doc/posix-functions/c16rtomb.texi: Renamed from
421         doc/glibc-functions/c16rtomb.texi.
422         * doc/posix-functions/c32rtomb.texi: Renamed from
423         doc/glibc-functions/c32rtomb.texi.
424         * doc/posix-functions/mbrtoc16.texi: Renamed from
425         doc/glibc-functions/mbrtoc16.texi.
426         * doc/posix-functions/mbrtoc32.texi: Renamed from
427         doc/glibc-functions/mbrtoc32.texi.
428         * doc/gnulib.texi: Update.
429         (Glibc uchar.h): Remove section.
430         Suggested by Eric Blake.
431
432 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
433
434         stdnoreturn: port to MSVC better
435         MSVC standard headers use __declspec(noreturn), so #define noreturn
436         to empty on that platform.  Reported by Bruno Haible in
437         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
438         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
439         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
440
441 2012-02-28  Bruno Haible  <bruno@clisp.org>
442
443         doc: Mention new glibc headers and functions.
444         * doc/glibc-headers/uchar.texi: New file.
445         * doc/glibc-functions/aligned_alloc.texi: New file.
446         * doc/glibc-functions/c16rtomb.texi: New file.
447         * doc/glibc-functions/c32rtomb.texi: New file.
448         * doc/glibc-functions/clock_adjtime.texi: New file.
449         * doc/glibc-functions/fanotify_init.texi: New file.
450         * doc/glibc-functions/fanotify_mark.texi: New file.
451         * doc/glibc-functions/inet6_opt_append.texi: New file.
452         * doc/glibc-functions/inet6_opt_find.texi: New file.
453         * doc/glibc-functions/inet6_opt_finish.texi: New file.
454         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
455         * doc/glibc-functions/inet6_opt_init.texi: New file.
456         * doc/glibc-functions/inet6_opt_next.texi: New file.
457         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
458         * doc/glibc-functions/inet6_rth_add.texi: New file.
459         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
460         * doc/glibc-functions/inet6_rth_init.texi: New file.
461         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
462         * doc/glibc-functions/inet6_rth_segments.texi: New file.
463         * doc/glibc-functions/inet6_rth_space.texi: New file.
464         * doc/glibc-functions/login.texi: New file.
465         * doc/glibc-functions/mbrtoc16.texi: New file.
466         * doc/glibc-functions/mbrtoc32.texi: New file.
467         * doc/glibc-functions/name_to_handle_at.texi: New file.
468         * doc/glibc-functions/ntp_gettimex.texi: New file.
469         * doc/glibc-functions/open_by_handle_at.texi: New file.
470         * doc/glibc-functions/prlimit.texi: New file.
471         * doc/glibc-functions/process_vm_readv.texi: New file.
472         * doc/glibc-functions/process_vm_writev.texi: New file.
473         * doc/glibc-functions/recvmmsg.texi: New file.
474         * doc/glibc-functions/scandirat.texi: New file.
475         * doc/glibc-functions/sendmmsg.texi: New file.
476         * doc/glibc-functions/setns.texi: New file.
477         * doc/glibc-functions/timespec_get.texi: New file.
478         * doc/gnulib.texi: Include them.
479         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
480         sections.
481         Reported by Eric Blake.
482
483 2012-02-28  Bruno Haible  <bruno@clisp.org>
484
485         Avoid compilation errors with MSVC option -fp:strict.
486         * lib/floor.c: Use MSVC specific pragma fenv_access.
487         * lib/ceil.c: Likewise.
488         * lib/trunc.c: Likewise.
489         * lib/round.c: Likewise.
490         * lib/rint.c: Likewise.
491         * lib/fma.c: Likewise.
492         * lib/integer_length.c: Likewise.
493         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
495         * tests/test-floor2.c: Likewise.
496         * tests/test-floorf2.c: Likewise.
497         * tests/test-ceil2.c: Likewise.
498         * tests/test-ceilf2.c: Likewise.
499         * tests/test-trunc2.c: Likewise.
500         * tests/test-truncf2.c: Likewise.
501         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
502
503 2012-02-27  Bruno Haible  <bruno@clisp.org>
504
505         Tests for module 'sqrtl-ieee'.
506         * modules/sqrtl-ieee-tests: New file.
507         * tests/test-sqrtl-ieee.c: New file.
508
509         New module 'sqrtl-ieee'.
510         * modules/sqrtl-ieee: New file.
511
512         Tests for module 'sqrt-ieee'.
513         * modules/sqrt-ieee-tests: New file.
514         * tests/test-sqrt-ieee.c: New file.
515
516         New module 'sqrt-ieee'.
517         * modules/sqrt-ieee: New file.
518
519         Tests for module 'sqrtf-ieee'.
520         * modules/sqrtf-ieee-tests: New file.
521         * tests/test-sqrtf-ieee.c: New file.
522         * tests/test-sqrt-ieee.h: New file.
523
524         New module 'sqrtf-ieee'.
525         * modules/sqrtf-ieee: New file.
526
527 2012-02-27  Bruno Haible  <bruno@clisp.org>
528
529         remainderl-ieee: Work around test failure on OSF/1.
530         * m4/remainderl-ieee.m4: New file.
531         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
532         present, test whether remainderl works with a zero second argument.
533         Replace it if not.
534         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
536         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
537         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
538         (Depends-on): Update conditions.
539         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
540         (Depends-on): Add remainder-ieee.
541         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
542         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
543         module.
544
545         remainderf-ieee: Work around test failure on OSF/1.
546         * m4/remainderf-ieee.m4: New file.
547         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
548         present, test whether remainderf works with a zero second argument.
549         Replace it if not.
550         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
552         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
553         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
554         (Depends-on): Update conditions.
555         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
556         (Depends-on): Add remainder-ieee.
557         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
558         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
559         module.
560
561         remainder-ieee: Work around test failure on OSF/1.
562         * m4/remainder-ieee.m4: New file.
563         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
564         present, test whether remainder works with a zero second argument.
565         Replace it if not.
566         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
568         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
569         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
570         (Depends-on): Update dependencies.
571         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
572         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
573         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
574
575         Tests for module 'remainderl-ieee'.
576         * modules/remainderl-ieee-tests: New file.
577         * tests/test-remainderl-ieee.c: New file.
578
579         New module 'remainderl-ieee'.
580         * modules/remainderl-ieee: New file.
581
582         Tests for module 'remainder-ieee'.
583         * modules/remainder-ieee-tests: New file.
584         * tests/test-remainder-ieee.c: New file.
585
586         New module 'remainder-ieee'.
587         * modules/remainder-ieee: New file.
588
589         Tests for module 'remainderf-ieee'.
590         * modules/remainderf-ieee-tests: New file.
591         * tests/test-remainderf-ieee.c: New file.
592         * tests/test-remainder-ieee.h: New file.
593
594         New module 'remainderf-ieee'.
595         * modules/remainderf-ieee: New file.
596
597 2012-02-27  Bruno Haible  <bruno@clisp.org>
598
599         modff, modfl: Fix configure syntax error.
600         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
601         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
602
603 2012-02-27  Bruno Haible  <bruno@clisp.org>
604
605         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
606         * m4/fmodl-ieee.m4: New file.
607         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
608         whether fmodl works with zero arguments. Replace it if not.
609         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
610         (Depends-on): Add fmod-ieee.
611         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
612         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
613
614         fmodf-ieee: Work around test failure on OSF/1.
615         * m4/fmodf-ieee.m4: New file.
616         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
617         whether fmodf works with zero arguments. Replace it if not.
618         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
620         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
621         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
622         (Depends-on): Update dependencies.
623         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
624         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
625         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
626
627         fmodf-ieee: Work around test failure on MSVC 9.
628         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
629         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
630
631         fmod-ieee: Work around test failures on OSF/1, mingw.
632         * m4/fmod-ieee.m4: New file.
633         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
634         whether fmod works with zero arguments. Replace it if not.
635         * lib/math.in.h (fmod): New declaration.
636         * lib/fmod.c: New file.
637         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
639         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
640         * modules/fmod (Files): Add lib/fmod.c.
641         (Depends-on): Add math, isinf, trunc, fma.
642         (configure.ac): Arrange to compile lib/fmod.c if needed.
643         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
644         m4/signbit.m4.
645         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
646         * tests/test-math-c++.cc: Check the declaration of fmod.
647         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
648
649         fmodl-ieee: Fix test failures.
650         * lib/fmodl.c (fmodl): Treat Inf specially.
651         * modules/fmodl (Depends-on): Add isinf.
652
653         Tests for module 'fmodl-ieee'.
654         * modules/fmodl-ieee-tests: New file.
655         * tests/test-fmodl-ieee.c: New file.
656
657         New module 'fmodl-ieee'.
658         * modules/fmodl-ieee: New file.
659
660         Tests for module 'fmod-ieee'.
661         * modules/fmod-ieee-tests: New file.
662         * tests/test-fmod-ieee.c: New file.
663
664         New module 'fmod-ieee'.
665         * modules/fmod-ieee: New file.
666
667         Tests for module 'fmodf-ieee'.
668         * modules/fmodf-ieee-tests: New file.
669         * tests/test-fmodf-ieee.c: New file.
670         * tests/test-fmod-ieee.h: New file.
671
672         New module 'fmodf-ieee'.
673         * modules/fmodf-ieee: New file.
674
675 2012-02-27  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'rintl-ieee'.
678         * modules/rintl-ieee-tests: New file.
679         * tests/test-rintl-ieee.c: New file.
680
681         New module 'rintl-ieee'.
682         * modules/rintl-ieee: New file.
683
684         Tests for module 'rint-ieee'.
685         * modules/rint-ieee-tests: New file.
686         * tests/test-rint-ieee.c: New file.
687
688         New module 'rint-ieee'.
689         * modules/rint-ieee: New file.
690
691         Tests for module 'rintf-ieee'.
692         * modules/rintf-ieee-tests: New file.
693         * tests/test-rintf-ieee.c: New file.
694         * tests/test-rint-ieee.h: New file.
695
696         New module 'rintf-ieee'.
697         * modules/rintf-ieee: New file.
698
699 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
700
701         regex: re_search etc. should return -2 when memory exhausted
702         This bug was uncovered when testing 'grep'.  Without the fix,
703         re_search and friends return -1 when memory is exhausted, but -1
704         means no match, and this causes grep to falsely report no-match
705         instead of memory-exhaustion.  See
706         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
707         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
708         trouble; this can occur if re_search_internal ran out of memory.
709
710 2012-02-26  Bruno Haible  <bruno@clisp.org>
711
712         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
713         * m4/modfl-ieee.m4: New file.
714         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
715         whether modfl works with Inf. Replace it if not.
716         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
718         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
719         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
720         (Depends-on): Update dependencies.
721         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
722         m4/signbit.m4.
723         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
724         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
725
726         modfl-ieee: Fix dependencies.
727         * modules/modfl-ieee (Depends-on): Add modf-ieee.
728
729         modfl-ieee: Fix test failures.
730         * lib/modfl.c (modfl): Treat NaN and Inf specially.
731         * modules/modfl (Depends-on): Add isfinite, isinf.
732
733         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
734         * m4/modff-ieee.m4: New file.
735         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
736         whether modff works with NaN and Inf. Replace it if not.
737         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
739         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
740         * modules/modff (configure.ac): Consider REPLACE_MODFF.
741         (Depends-on): Update dependencies.
742         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
743         m4/signbit.m4.
744         (Depends-on): Add modf-ieee.
745         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
746         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
747
748         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
749         * m4/modf-ieee.m4: New file.
750         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
751         whether modf works with NaN and Inf. Replace it if not.
752         * lib/math.in.h (modf): New declaration.
753         * lib/modf.c: New file.
754         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
756         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
757         * modules/modf (Files): Add lib/modf.c.
758         (Depends-on): Add math, isfinite, trunc, isinf.
759         (configure.ac): Addrange to compile lib/modf.c if needed.
760         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
761         m4/signbit.m4.
762         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
763         * tests/test-math-c++.cc: Check the declaration of modf.
764         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
765
766         Tests for module 'modfl-ieee'.
767         * modules/modfl-ieee-tests: New file.
768         * tests/test-modfl-ieee.c: New file.
769
770         New module 'modfl-ieee'.
771         * modules/modfl-ieee: New file.
772
773         Tests for module 'modf-ieee'.
774         * modules/modf-ieee-tests: New file.
775         * tests/test-modf-ieee.c: New file.
776
777         New module 'modf-ieee'.
778         * modules/modf-ieee: New file.
779
780         Tests for module 'modff-ieee'.
781         * modules/modff-ieee-tests: New file.
782         * tests/test-modff-ieee.c: New file.
783         * tests/test-modf-ieee.h: New file.
784
785         New module 'modff-ieee'.
786         * modules/modff-ieee: New file.
787
788 2012-02-26  Bruno Haible  <bruno@clisp.org>
789
790         Tests for module 'fabsl-ieee'.
791         * modules/fabsl-ieee-tests: New file.
792         * tests/test-fabsl-ieee.c: New file.
793
794         New module 'fabsl-ieee'.
795         * modules/fabsl-ieee: New file.
796
797         Tests for module 'fabs-ieee'.
798         * modules/fabs-ieee-tests: New file.
799         * tests/test-fabs-ieee.c: New file.
800
801         New module 'fabs-ieee'.
802         * modules/fabs-ieee: New file.
803
804         Tests for module 'fabsf-ieee'.
805         * modules/fabsf-ieee-tests: New file.
806         * tests/test-fabsf-ieee.c: New file.
807         * tests/test-fabs-ieee.h: New file.
808
809         New module 'fabsf-ieee'.
810         * modules/fabsf-ieee: New file.
811
812 2012-02-26  Bruno Haible  <bruno@clisp.org>
813
814         Tests for module 'fmal-ieee'.
815         * modules/fmal-ieee-tests: New file.
816         * tests/test-fmal-ieee.c: New file.
817
818         New module 'fmal-ieee'.
819         * modules/fmal-ieee: New file.
820
821         Tests for module 'fma-ieee'.
822         * modules/fma-ieee-tests: New file.
823         * tests/test-fma-ieee.c: New file.
824
825         New module 'fma-ieee'.
826         * modules/fma-ieee: New file.
827
828         Tests for module 'fmaf-ieee'.
829         * modules/fmaf-ieee-tests: New file.
830         * tests/test-fmaf-ieee.c: New file.
831         * tests/test-fma-ieee.h: New file.
832
833         New module 'fmaf-ieee'.
834         * modules/fmaf-ieee: New file.
835
836 2012-02-26  Bruno Haible  <bruno@clisp.org>
837
838         Tests for module 'ldexpl-ieee'.
839         * modules/ldexpl-ieee-tests: New file.
840         * tests/test-ldexpl-ieee.c: New file.
841
842         New module 'ldexpl-ieee'.
843         * modules/ldexpl-ieee: New file.
844
845         Tests for module 'ldexp-ieee'.
846         * modules/ldexp-ieee-tests: New file.
847         * tests/test-ldexp-ieee.c: New file.
848
849         New module 'ldexp-ieee'.
850         * modules/ldexp-ieee: New file.
851
852         Tests for module 'ldexpf-ieee'.
853         * modules/ldexpf-ieee-tests: New file.
854         * tests/test-ldexpf-ieee.c: New file.
855         * tests/test-ldexp-ieee.h: New file.
856
857         New module 'ldexpf-ieee'.
858         * modules/ldexpf-ieee: New file.
859
860 2012-02-26  Bruno Haible  <bruno@clisp.org>
861
862         Refactor frexp*-ieee tests.
863         * tests/test-frexp-ieee.h: New file.
864         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
865         (main): Just call test_function.
866         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
867         (main): Just call test_function.
868         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
869         (main): Just call test_function.
870         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
871         * modules/frexp-ieee-tests (Files): Likewise.
872         * modules/frexpl-ieee-tests (Files): Likewise.
873
874         Tests for module 'frexpl-ieee'.
875         * modules/frexpl-ieee-tests: New file.
876         * tests/test-frexpl-ieee.c: New file.
877
878         New module 'frexpl-ieee'.
879         * modules/frexpl-ieee: New file.
880
881         Tests for module 'frexp-ieee'.
882         * modules/frexp-ieee-tests: New file.
883         * tests/test-frexp-ieee.c: New file.
884
885         New module 'frexp-ieee'.
886         * modules/frexp-ieee: New file.
887
888         Tests for module 'frexpf-ieee'.
889         * modules/frexpf-ieee-tests: New file.
890         * tests/test-frexpf-ieee.c: New file.
891
892         New module 'frexpf-ieee'.
893         * modules/frexpf-ieee: New file.
894
895 2012-02-26  Bruno Haible  <bruno@clisp.org>
896
897         roundl-ieee tests: More tests.
898         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
899         (main): Add tests for [MX] shaded specification in POSIX.
900         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
901         (Depends-on): Add isnanl-nolibm.
902
903         round-ieee tests: More tests.
904         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
905         (main): Add tests for [MX] shaded specification in POSIX.
906         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
907         (Depends-on): Add isnand-nolibm.
908
909         roundf-ieee tests: More tests.
910         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
911         (main): Add tests for [MX] shaded specification in POSIX.
912         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
913         (Depends-on): Add isnanf-nolibm.
914
915         truncl-ieee tests: More tests.
916         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
917         (main): Add tests for [MX] shaded specification in POSIX.
918         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
919         (Depends-on): Add isnanl-nolibm.
920
921         trunc-ieee tests: More tests.
922         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
923         (main): Add tests for [MX] shaded specification in POSIX.
924         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
925         (Depends-on): Add isnand-nolibm.
926
927         truncf-ieee tests: More tests.
928         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
929         (main): Add tests for [MX] shaded specification in POSIX.
930         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
931         (Depends-on): Add isnanf-nolibm.
932
933         ceill-ieee tests: More tests.
934         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
935         (main): Add tests for [MX] shaded specification in POSIX.
936         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
937         (Depends-on): Add isnanl-nolibm.
938
939         ceil-ieee tests: More tests.
940         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
941         (main): Add tests for [MX] shaded specification in POSIX.
942         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
943         (Depends-on): Add isnand-nolibm.
944
945         ceilf-ieee tests: More tests.
946         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
947         (main): Add tests for [MX] shaded specification in POSIX.
948         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
949         (Depends-on): Add isnanf-nolibm.
950
951         floorl-ieee tests: More tests.
952         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
953         (main): Add tests for [MX] shaded specification in POSIX.
954         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
955         (Depends-on): Add isnanl-nolibm.
956
957         floor-ieee tests: More tests.
958         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
959         (main): Add tests for [MX] shaded specification in POSIX.
960         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
961         (Depends-on): Add isnand-nolibm.
962
963         floorf-ieee tests: More tests.
964         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
965         (main): Add tests for [MX] shaded specification in POSIX.
966         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
967         (Depends-on): Add isnanf-nolibm.
968
969 2012-02-26  Bruno Haible  <bruno@clisp.org>
970
971         fpieee: More comments.
972         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
973
974 2012-02-25  Bruno Haible  <bruno@clisp.org>
975
976         Tests for module 'log10l'.
977         * modules/log10l-tests: New file.
978         * tests/test-log10l.c: New file.
979         * tests/test-math-c++.cc: Check the declaration of log10l.
980
981         New module 'log10l'.
982         * lib/math.in.h (log10l): New declaration.
983         * lib/log10l.c: New file.
984         * m4/log10l.m4: New file.
985         * modules/log10l: New file.
986         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
988         HAVE_DECL_LOG10L.
989         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
990         HAVE_DECL_LOG10L.
991         * doc/posix-functions/log10l.texi: Mention the new module.
992
993 2012-02-25  Bruno Haible  <bruno@clisp.org>
994
995         fmodl, remainder*: Avoid wrong results due to rounding errors.
996         * lib/fmodl.c (fmodl): Correct the result if it is not within the
997         expected bounds.
998         * lib/remainderf.c (remainderf): Likewise.
999         * lib/remainder.c (remainder): Likewise.
1000         * lib/remainderl.c (remainderl): Likewise.
1001
1002 2012-02-25  Bruno Haible  <bruno@clisp.org>
1003
1004         Tests for module 'remainderl'.
1005         * modules/remainderl-tests: New file.
1006         * tests/test-remainderl.c: New file.
1007         * tests/test-math-c++.cc: Check the declaration of remainderl.
1008
1009         New module 'remainderl'.
1010         * lib/math.in.h (remainderl): New declaration.
1011         * lib/remainderl.c: New file.
1012         * m4/remainderl.m4: New file.
1013         * modules/remainderl: New file.
1014         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
1015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
1016         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
1017         HAVE_REMAINDERL.
1018         * doc/posix-functions/remainderl.texi: Mention the new module.
1019
1020 2012-02-25  Bruno Haible  <bruno@clisp.org>
1021
1022         Tests for module 'remainderf'.
1023         * modules/remainderf-tests: New file.
1024         * tests/test-remainderf.c: New file.
1025         * tests/test-math-c++.cc: Check the declaration of remainderf.
1026
1027         New module 'remainderf'.
1028         * lib/math.in.h (remainderf): New declaration.
1029         * lib/remainderf.c: New file.
1030         * m4/remainderf.m4: New file.
1031         * modules/remainderf: New file.
1032         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
1033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
1034         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
1035         HAVE_REMAINDERF.
1036         * doc/posix-functions/remainderf.texi: Mention the new module.
1037
1038 2012-02-25  Bruno Haible  <bruno@clisp.org>
1039
1040         remainder: Support for MSVC.
1041         * lib/math.in.h (remainder): New declaration.
1042         * lib/remainder.c: New file.
1043         * m4/remainder.m4: New file.
1044         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
1045         (Depends-on): Add math, round, fma.
1046         (configure.ac): Use results of gl_FUNC_REMAINDER.
1047         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
1048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
1049         HAVE_DECL_REMAINDER.
1050         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
1051         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
1052         * tests/test-math-c++.cc: Check the declaration of remainder.
1053         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
1054         problems are fixed.
1055
1056 2012-02-25  Bruno Haible  <bruno@clisp.org>
1057
1058         Tests for module 'fmodl'.
1059         * modules/fmodl-tests: New file.
1060         * tests/test-fmodl.c: New file.
1061         * tests/test-math-c++.cc: Check the declaration of fmodl.
1062
1063         New module 'fmodl'.
1064         * lib/math.in.h (fmodl): New declaration.
1065         * lib/fmodl.c: New file.
1066         * m4/fmodl.m4: New file.
1067         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
1068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
1069         REPLACE_FMODL.
1070         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
1071         REPLACE_FMODL.
1072         * modules/fmodl: New file.
1073         * doc/posix-functions/fmodl.texi: Mention the new module.
1074
1075 2012-02-25  Bruno Haible  <bruno@clisp.org>
1076
1077         Tests for module 'modfl'.
1078         * modules/modfl-tests: New file.
1079         * tests/test-modfl.c: New file.
1080         * tests/test-math-c++.cc: Check the declaration of modfl.
1081
1082         New module 'modfl'.
1083         * lib/math.in.h (modfl): New declaration.
1084         * lib/modfl.c: New file.
1085         * m4/modfl.m4: New file.
1086         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
1087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
1088         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
1089         * modules/modfl: New file.
1090         * doc/posix-functions/modfl.texi: Mention the new module.
1091
1092 2012-02-25  Bruno Haible  <bruno@clisp.org>
1093
1094         Tests for module 'fabsl'.
1095         * modules/fabsl-tests: New file.
1096         * tests/test-fabsl.c: New file.
1097         * tests/test-math-c++.cc: Check the declaration of fabsl.
1098
1099         New module 'fabsl'.
1100         * lib/math.in.h (fabsl): New declaration.
1101         * lib/fabsl.c: New file.
1102         * m4/fabsl.m4: New file.
1103         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
1104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
1105         REPLACE_FABSL.
1106         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
1107         REPLACE_FABSL.
1108         * modules/fabsl: New file.
1109         * doc/posix-functions/fabsl.texi: Mention the new module.
1110
1111 2012-02-25  Bruno Haible  <bruno@clisp.org>
1112
1113         fabs tests: More tests.
1114         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
1115         (zero): New variable.
1116         (main): Add tests for signed zero.
1117         * modules/fabs-tests (Files): Add tests/minus-zero.h.
1118
1119         fabsf tests: More tests.
1120         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
1121         (zero): New variable.
1122         (main): Add tests for signed zero.
1123         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
1124
1125 2012-02-24  Bruno Haible  <bruno@clisp.org>
1126
1127         atanl: Provide function definition on MSVC.
1128         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
1129         function pointer.
1130         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
1131
1132 2012-02-24  Bruno Haible  <bruno@clisp.org>
1133
1134         acosl: Provide function definition on MSVC.
1135         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
1136         function pointer.
1137         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
1138
1139 2012-02-24  Bruno Haible  <bruno@clisp.org>
1140
1141         asinl: Provide function definition on MSVC.
1142         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
1143         function pointer.
1144         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
1145
1146 2012-02-24  Bruno Haible  <bruno@clisp.org>
1147
1148         tanl: Provide function definition on MSVC.
1149         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
1150         function pointer.
1151         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
1152
1153 2012-02-24  Bruno Haible  <bruno@clisp.org>
1154
1155         cosl: Provide function definition on MSVC.
1156         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
1157         function pointer.
1158         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
1159
1160 2012-02-24  Bruno Haible  <bruno@clisp.org>
1161
1162         sinl: Provide function definition on MSVC.
1163         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
1164         function pointer.
1165         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
1166
1167 2012-02-24  Bruno Haible  <bruno@clisp.org>
1168
1169         logl: Provide function definition on MSVC.
1170         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
1171         function pointer.
1172         * lib/math.in.h (logl): Undefine if it does not exist as a function.
1173
1174 2012-02-24  Bruno Haible  <bruno@clisp.org>
1175
1176         expl: Provide function definition on MSVC.
1177         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
1178         function pointer.
1179         * lib/math.in.h (expl): Undefine if it does not exist as a function.
1180
1181 2012-02-24  Bruno Haible  <bruno@clisp.org>
1182
1183         sqrtl: Provide function definition on MSVC.
1184         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
1185         a function pointer.
1186         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
1187
1188 2012-02-24  Bruno Haible  <bruno@clisp.org>
1189
1190         ceill: Provide function definition on MSVC.
1191         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
1192         used as a function pointer.
1193         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
1194
1195 2012-02-24  Bruno Haible  <bruno@clisp.org>
1196
1197         floorl: Provide function definition on MSVC.
1198         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
1199         used as a function pointer.
1200         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
1201
1202 2012-02-24  Bruno Haible  <bruno@clisp.org>
1203
1204         ceilf: Provide function definition on MSVC.
1205         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
1206         used as a function pointer.
1207         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
1208
1209 2012-02-24  Bruno Haible  <bruno@clisp.org>
1210
1211         floorf: Provide function definition on MSVC.
1212         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
1213         used as a function pointer.
1214         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
1215
1216 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1217
1218         stdnoreturn: new module
1219         This implements a replacement for C11's <stdnoreturn.h>.
1220         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
1221         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
1222         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1223         * tests/test-stdnoreturn.c: New files.
1224
1225 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
1226
1227         regex: fix false multibyte matches in some regular expressions
1228         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
1229         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
1230         * lib/regex_internal.c (re_string_skip_chars):
1231         Fix miscomputation of remain_len that may cause incomplete
1232         multi-byte character and false match.
1233
1234 2012-02-24  Jim Meyering  <meyering@redhat.com>
1235
1236         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
1237         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
1238         uses with "==" *before* the call, e.g., 0 == strcmp (...)
1239         Remove now-unnecessary str''cmp obfuscation.
1240         Suggested by Akim Demaille.
1241
1242 2012-02-24  Bruno Haible  <bruno@clisp.org>
1243
1244         streq: Rename macro.
1245         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
1246         * NEWS: Mention the change.
1247         * lib/mbrtowc.c (mbrtowc): Update.
1248         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
1249         * lib/wcwidth.c (wcwidth): Update.
1250         Suggested by Akim Demaille and Jim Meyering.
1251
1252 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1253
1254         regex: fix typo in definition of MIN
1255         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
1256         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
1257
1258 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1259             Bruno Haible  <bruno@clisp.org>
1260
1261         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
1262         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
1263         entries into a stack-allocated buffer directly.
1264         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
1265
1266 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1267             Bruno Haible  <bruno@clisp.org>
1268
1269         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
1270
1271          - There were several instances of this pattern:
1272
1273              for (;;) {
1274                n = acl (f, GETACLCNT, 0, NULL);
1275                [ allocate an array A of size N ]
1276                if (acl (f, GETACL, n, a) == n)
1277                  break;
1278              }
1279
1280            This loop might never terminate if some other process is constantly
1281            manipulating the file's ACL.  The loop should be rewritten to
1282            terminate.
1283
1284          - The acl (... GETACLNT ...) call is merely an optimization; its value
1285            is merely a hint as to how big to make the array.  A better
1286            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
1287            and just guess a reasonably-big size, growing the size and trying
1288            again if it's not large enough.  This guarantees termination, and
1289            saves a system call.
1290
1291         * lib/acl-internal.h: Include <limits.h>.
1292         (MIN, SIZE_MAX): New macros.
1293         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
1294         a stack-allocated buffer, and use malloc if it does not fit. Don't
1295         use GETACLCNT.
1296         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1297
1298 2012-02-19  Bruno Haible  <bruno@clisp.org>
1299
1300         acl: Fix endless loop on Solaris with vxfs.
1301         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
1302         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
1303         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1304         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
1305         * tests/test-sameacls.c (main)[Solaris]: Likewise.
1306         Reported by Bill Jones in
1307         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
1308
1309 2012-02-19  Bruno Haible  <bruno@clisp.org>
1310
1311         acl: Fix copy-acl test failure on Solaris 11 2011-11.
1312         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
1313         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
1314         that this function returns 0 in some more cases.
1315
1316 2012-02-19  Bruno Haible  <bruno@clisp.org>
1317
1318         acl: Update doc references.
1319         * doc/acl-resources.txt: Update links to Solaris documentation.
1320
1321 2012-02-19  Bruno Haible  <bruno@clisp.org>
1322
1323         Fix test failure in many locales on Solaris 11.
1324         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
1325         'tr' arguments.
1326         * tests/test-pipe-filter-ii1.c (main): Likewise.
1327         * build-aux/bootstrap (check_versions): Run 'tr' command with range
1328         expressions in the C locale.
1329         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1330         * m4/host-os.m4 (gl_HOST_OS): Likewise.
1331
1332 2012-02-19  Bruno Haible  <bruno@clisp.org>
1333
1334         gnulib-tool: Improve usage message.
1335         * gnulib-tool (func_usage): Move doc of --help and --version to the
1336         section "Operation modes".
1337
1338 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
1339
1340         README-release: make it easier to execute commands
1341         * top/README-release: break commands out on to separate lines.
1342
1343 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1344
1345         GNUmakefile: simplify detection of unconfigured trees
1346         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
1347         whether the tree make is being run from is already configured or
1348         not.  Related simplifications.
1349
1350 2012-02-13  Simon Josefsson  <simon@josefsson.org>
1351
1352         * gnulib-tool (func_usage): Document --help and --version.
1353
1354 2012-02-11  Jim Meyering  <meyering@redhat.com>
1355
1356         bootstrap: don't exit 0 upon gnulib-tool failure
1357         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
1358         its exit status, not 0.
1359
1360 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
1361
1362         README-release: various improvements
1363         * top/README-release: Give a command to push changes for the
1364         release.  Add "distcheck" to list of other pre-release checks.
1365         Fix instance of "make stable" which should be "make TYPE".
1366
1367 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1368
1369         maint: replace FSF snail-mail addresses with URLs
1370         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
1371         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
1372         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
1373         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
1374         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
1375         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
1376         * lib/check-version.c, lib/check-version.h, lib/config.charset:
1377         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
1378         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
1379         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
1380         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
1381         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
1382         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
1383         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
1384         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
1385         * lib/glthread/thread.c, lib/glthread/thread.h:
1386         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
1387         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
1388         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
1389         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
1390         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
1391         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
1392         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
1393         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
1394         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
1395         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
1396         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
1397         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
1398         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
1399         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
1400         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
1401         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
1402         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
1403         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
1404         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
1405         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
1406         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
1407         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
1408         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
1409         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
1410         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
1411         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
1412         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
1413         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
1414         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
1415         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
1416         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
1417         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
1418         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
1419         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
1420         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
1421         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
1422         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
1423         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
1424         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
1425         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
1426         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
1427         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
1428         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
1429         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
1430         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
1431         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
1432         * tests/test-poll.c, tests/test-quotearg-simple.c:
1433         * tests/test-quotearg.c, tests/test-quotearg.h:
1434         * tests/test-round-ieee.c, tests/test-round1.c:
1435         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
1436         * tests/test-roundl-ieee.c, tests/test-roundl.c:
1437         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
1438         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
1439         * tests/test-strerror.c, tests/test-strerror_r.c:
1440         * tests/test-strsignal.c, tests/test-strverscmp.c:
1441         * tests/test-xmemdup0.c:
1442         Replace FSF snail mail addresses with URLs, as per GNU coding
1443         standards.  See glibc bug
1444         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
1445
1446 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1447
1448         README-release: capitalize a word and split a line
1449         * top/README-release: Fix punctuation and spacing.
1450
1451 2012-02-08  Akim Demaille  <demaille@gostai.com>
1452
1453         fatal-signal: use C prototypes (with explicit void).
1454         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1455         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
1456
1457 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1458
1459         regex: spelling fix
1460         * lib/regexec.c: spelling fix
1461
1462         regex: rely on stdint.h for SIZE_MAX
1463         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
1464
1465 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         regex: merge glibc changes
1468
1469         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
1470         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
1471         (init_word_char): Work even if bitset words are not exactly 32 or
1472         64 bits wide.  Don't assume there are no padding bits.
1473         * lib/regex.c [_LIBC]: Do not include <config.h>.
1474         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
1475         and -Wtype-limits.
1476         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
1477         needless disagreement with glibc.  All uses changed.  Define it to
1478         1 only if _GNU_SOURCE, to match glibc.
1479         (_REG_RM_NAME): Remove; no longer needed, since the names in
1480         question are now all protected by __USE_GNU.
1481         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
1482         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
1483         * lib/regex_internal.h (MIN): New macro.
1484
1485         2012-01-03 Ulrich Drepper <drepper@gmail.com>
1486         * lib/regcomp.c (init_word_char): Optimize regex a bit.
1487
1488         2011-12-30 Jakub Jelinek <jakub@redhat.com>
1489         * lib/regex_internal.c (re_string_fetch_byte_case):
1490         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
1491         is miscompiled, and it turns out it is because of an incorrect
1492         attribute on re_string_fetch_byte_case.  Unlike
1493         re_string_peek_byte_case, this one is really not pure, it modifies
1494         memory (increments pstr->cur_idx), and with the pure attribute GCC
1495         assumed it doesn't and it cached the presumed value of
1496         regexp->cur_idx in a variable across the
1497          for (;; ++i)
1498            {
1499              if (i >= BRACKET_NAME_BUF_SIZE)
1500                return REG_EBRACK;
1501              if (token->type == OP_OPEN_CHAR_CLASS)
1502                ch = re_string_fetch_byte_case (regexp);
1503              else
1504                ch = re_string_fetch_byte (regexp);
1505              if (re_string_eoi(regexp))
1506                return REG_EBRACK;
1507              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
1508                break;
1509              elem->opr.name[i] = ch;
1510            }
1511
1512         2011-11-29 Andreas Schwab <schwab@redhat.com>
1513         * lib/regcomp.c (build_equiv_class):
1514         Fix access after end of search string in regex matcher.
1515
1516         2011-11-12 Ulrich Drepper <drepper@redhat.com>
1517         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
1518
1519         2011-10-12 Ulrich Drepper <drepper@redhat.com>
1520         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
1521
1522         2011-10-11 Ulrich Drepper <drepper@redhat.com>
1523         * lib/regcomp.c (parse_branch, parse_sub_exp):
1524         More regex memory leak fixes and tests.
1525         (parse_sub_exp, parse_bracket_exp):
1526         Fix memory leak for some invalid regular expressions.
1527
1528         2011-05-28 Ulrich Drepper <drepper@gmail.com>
1529         * lib/regex_internal.c, lib/regexec.c:
1530         Fix unnecessary overallocation due to incomplete character.  When
1531         incomplete characters are found at the end of a string the code
1532         ran amok and allocated lots of memory.  Stricter limits are now in
1533         place.
1534
1535         2011-05-20 Reuben Thomas <rrt@sc3d.org>
1536         * lib/regex.h: Update documentation.
1537
1538         2011-05-16 Aharon Robbins <arnold@skeeve.com>
1539         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
1540
1541         2010-05-05 Andreas Schwab <schwab@redhat.com>
1542         * lib/regexec.c (find_collation_sequence_value):
1543         Fix lookup of collation sequence value during regexp matching.
1544
1545         2010-01-22 Ulrich Drepper <drepper@redhat.com>
1546         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
1547
1548         2008-01-16 Ulrich Drepper <drepper@redhat.com>
1549         * lib/regex.h: Cleanup namespace.
1550
1551         2007-11-26 Ulrich Drepper <drepper@redhat.com>
1552         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
1553
1554         2007-08-26 Ulrich Drepper <drepper@redhat.com>
1555         * lib/regex_internal.h: Prevent some declarations and definitions
1556         to be seen when used in tests.
1557
1558         2005-05-06 Ulrich Drepper <drepper@redhat.com>
1559         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
1560         __libc_lock_* macros if not _LIBC.
1561         (struct re_dfa_t): Add lock.
1562
1563 2012-02-07  Eric Blake  <eblake@redhat.com>
1564
1565         maint.mk: also prohibit lower-case @var@
1566         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
1567         lower case, like @top_srcdir@.
1568
1569 2012-02-04  Eric Blake  <eblake@redhat.com>
1570
1571         canonicalize: avoid uninitialized memory use
1572         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
1573         random '/' left in dest.
1574         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
1575
1576 2012-02-04  Bruno Haible  <bruno@clisp.org>
1577
1578         isatty: Fix test failure of ptsname_r on native Windows.
1579         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
1580         and don't set errno.
1581         (isatty): Test first whether fd is valid. Set errno when returning 0.
1582
1583 2012-02-04  Bruno Haible  <bruno@clisp.org>
1584
1585         spawn-pipe tests: Fix a NULL program name in a diagnostic.
1586         * tests/test-spawn-pipe-main.c: Include progname.h.
1587         (main): Invoke set_program_name.
1588         * modules/spawn-pipe-tests (Depends-on): Add progname.
1589
1590         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
1591         * tests/test-nonblocking-socket-main.c: Include progname.h.
1592         (main): Invoke set_program_name.
1593         * modules/nonblocking-socket-tests (Depends-on): Add progname.
1594
1595         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
1596         * tests/test-nonblocking-pipe-main.c: Include progname.h.
1597         (main): Invoke set_program_name.
1598         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
1599
1600 2012-02-04  Eric Blake  <eblake@redhat.com>
1601
1602         canonicalize-lgpl: fix // handling
1603         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
1604
1605         canonicalize: fix // handling
1606         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
1607         /// to //, since only // is special.
1608
1609 2012-02-04  Bruno Haible  <bruno@clisp.org>
1610
1611         ioctl: Fix test failure on native Windows.
1612         * lib/ioctl.c: Include msvc-nothrow.h.
1613         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
1614
1615 2012-02-04  Bruno Haible  <bruno@clisp.org>
1616
1617         fsync: Avoid test failure on native Windows.
1618         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
1619         read-only.
1620
1621 2012-02-04  Bruno Haible  <bruno@clisp.org>
1622
1623         sys_select: Avoid syntax error on OpenBSD 5.0.
1624         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
1625         currently being included, just include the system's <sys/select.h>.
1626
1627 2012-02-04  Bruno Haible  <bruno@clisp.org>
1628
1629         sys_select: Avoid syntax error on OpenBSD 5.0.
1630         * lib/sys_select.in.h: Include <signal.h> only after the include_next
1631         <sys/select.h>, not before.
1632         Reported by Jiri B <jirib@devio.us>.
1633
1634 2012-02-04  Bruno Haible  <bruno@clisp.org>
1635
1636         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
1637         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
1638         global variables.
1639         * tests/test-get-rusage-data.c (main): Likewise.
1640         Reported by Jim Meyering.
1641
1642 2012-02-04  Bruno Haible  <bruno@clisp.org>
1643
1644         stdioext: Fix last commit.
1645         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
1646
1647 2012-02-03  Bruno Haible  <bruno@clisp.org>
1648
1649         stdioext: Add tentative support for Plan9.
1650         * lib/stdio-impl.h: Include <errno.h>.
1651         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
1652         * lib/freadable.c (freadable): Likewise.
1653         * lib/fwritable.c (fwritable): Likewise.
1654         * lib/fbufmode.c (fbufmode): Likewise.
1655         * lib/freading.c (freading): Likewise.
1656         * lib/fwriting.c (fwriting): Likewise.
1657         * lib/freadptr.c (freadptr): Likewise.
1658         * lib/freadseek.c (freadptrinc): Likewise.
1659         * lib/freadahead.c (freadahead): Likewise.
1660         * lib/fpurge.c (fpurge): Likewise.
1661         * lib/fseeko.c (rpl_fseeko): Likewise.
1662         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
1663         Reported by Jens Staal <staal1978@gmail.com>.
1664
1665 2012-02-02  Jim Meyering  <meyering@redhat.com>
1666
1667         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
1668         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
1669         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
1670         not even to try to add the attribute.  Instead, add a pragma to suppress
1671         the suggestion/warning.
1672
1673 2012-01-31  Karl Berry  <karl@gnu.org>
1674
1675         setstate doc: typo.
1676         * doc/posix-functions/setstate.texi (setstate): { not (.
1677
1678 2012-01-31  Bruno Haible  <bruno@clisp.org>
1679
1680         popen: Make more robust on Windows.
1681         * lib/popen.c: On native Windows, use the _popen based code even if
1682         HAVE_POPEN is set.
1683         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
1684         environment variable on native Windows.
1685
1686 2012-01-30  Bruno Haible  <bruno@clisp.org>
1687
1688         pclose: Fix typo.
1689         * lib/stdio.in.h (pclose): Fix typo in warning message.
1690
1691 2012-01-30  Bruno Haible  <bruno@clisp.org>
1692
1693         doc about getlogin_r, setstate.
1694         * doc/posix-functions/getlogin_r.texi: List the incompatible
1695         declaration problem under "not fixed by gnulib".
1696         * doc/posix-functions/setstate.texi: Mention incompatible declaration
1697         problem on Solaris 11 and other platforms.
1698
1699 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
1700             Bruno Haible  <bruno@clisp.org>
1701
1702         poll tests: Make test more robust.
1703         * tests/test-poll.c: Include macros.h.
1704         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
1705         return value of various I/O operations.
1706         * modules/poll-tests (Files): Add tests/macros.h.
1707
1708 2012-01-30  Bruno Haible  <bruno@clisp.org>
1709
1710         sys_stat: Fix support for mingw64 and MSVC.
1711         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
1712         header files already do it.
1713         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
1714         stat itself.
1715         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1716
1717 2012-01-30  Bruno Haible  <bruno@clisp.org>
1718
1719         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
1720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
1721         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
1722
1723 2012-01-29  Bruno Haible  <bruno@clisp.org>
1724
1725         quotearg: Fix test failure on MacOS X 10.5.
1726         * tests/test-quotearg-simple.c: Include localcharset.h.
1727         (main): If the locale encoding is not ASCII, bypass the tests of
1728         locale_quoting_style and clocale_quoting_style.
1729         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
1730
1731 2012-01-29  Jim Meyering  <meyering@redhat.com>
1732
1733         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
1734         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
1735         detect uses of canonicalize_file_name.
1736
1737 2012-01-28  Bruno Haible  <bruno@clisp.org>
1738
1739         test-framework-sh: Fix test failure with AIX 7.1 diff.
1740         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
1741         in column 1, like 'diff -c' does.
1742         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
1743         whether 'diff -u' is used. Instead, test whether the output contains
1744         some '@' character.
1745
1746 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1747
1748         strtoimax: eliminate need for stdint.h, inttypes.h checks
1749         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
1750         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
1751         the prerequisites for a recently-introduced strtoimax test.
1752         I guess this might cause strtoimax to be replaced when not
1753         strictly necessary on older hosts, but this shouldn't introduce
1754         any bugs and it should make Emacs 'configure' faster on typical
1755         modern hosts.  Problem discovered when importing the latest gnulib
1756         to an Emacs test version.
1757         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
1758
1759 2012-01-28  Bruno Haible  <bruno@clisp.org>
1760
1761         sys_time: Override 'struct timeval' on some native Windows platforms.
1762         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
1763         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
1764         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
1765         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
1766         needs to be overridden.
1767         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
1768         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
1769         * tests/test-sys_select.c: Check that the tv_sec member has the same
1770         size as a 'time_t'.
1771         * tests/test-sys_time.c: Likewise.
1772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
1773         is set, set also REPLACE_GETTIMEOFDAY.
1774         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
1775         convert the resulting 'struct timeval' before returning.
1776         * lib/select.c: Include <sys/time.h>.
1777         (select, timeval): Undefine at the right place.
1778         * modules/select (Depends-on): Add sys_time.
1779         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
1780         some Windows platforms.
1781         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1782
1783 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1784
1785         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
1786         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
1787         an integer.
1788         * lib/fcntl.c (dupfd): Likewise.
1789         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
1790
1791 2012-01-28  Bruno Haible  <bruno@clisp.org>
1792
1793         fcntl: Avoid compilation error on native Windows.
1794         * modules/fcntl (Depends-on): Add 'close'.
1795
1796 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1797
1798         select, poll, isatty: Avoid warnings on x86_64 mingw64.
1799         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
1800         pointer to an integer.
1801         * lib/poll.c (IsConsoleHandle): Likewise.
1802         * lib/isatty.c (IsConsoleHandle): Likewise.
1803
1804 2012-01-28  Jim Meyering  <meyering@redhat.com>
1805
1806         doc: clarify README-release
1807         * top/README-release: Clarify: you should make a point to have
1808         the latest stable versions of build tools in your PATH, and the
1809         reference to buildreq is solely for its list of tool names, not
1810         for its minimal-functional version numbers.
1811         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1812
1813         maint.mk: use more readable (yet functionally equivalent) quoting
1814         It is common to quote a single quote in a single quoted string like
1815         this:  '...'\''...'.  Unless you know the idiom, that looks like
1816         gibberish, so prefer to double-quote the string when possible.
1817         Then you can use a more readable, lone single quote: "...'..."
1818         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1819         "don't" is more readable than the equivalent 'don'\''t'.
1820         (sc_cast_of_x_alloc_return_value): Likewise.
1821         (sc_cast_of_alloca_return_value): Likewise.
1822         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1823         rather than '\'':'\''.
1824
1825 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         stdalign: relax _Alignof and tighten _Alignas test
1828         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1829         as it was too strict: alignof must divide offsetof, but it need
1830         not equal offsetof.  Inspired by Joseph S. Myers's comment
1831         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1832         Conversely, tighten the _Alignas test a bit, as the resulting
1833         alignment must be exactly 8.
1834
1835 2012-01-27  Bruno Haible  <bruno@clisp.org>
1836
1837         stdalign: Document the last change.
1838         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1839
1840 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1841
1842         stdalign: check that alignof and offsetof are consistent
1843         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1844         Problem reported for gnulib by Richard W.M. Jones in
1845         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1846
1847 2012-01-27  Jim Meyering  <meyering@redhat.com>
1848
1849         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1850         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1851         convert a sequence with gaps to the minimal containing range.
1852         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1853         * tests/test-update-copyright.sh: Test for this.
1854         The FSF confirmed it is ok to do this, assuming there is at
1855         least one significant change per year in the affected range:
1856         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1857
1858 2012-01-26  Bruno Haible  <bruno@clisp.org>
1859
1860         pipe2: refine doc about thread-safety
1861         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1862         multithread-safety problem.
1863         * doc/glibc-functions/accept4.texi: Likewise.
1864
1865 2012-01-26  Bruno Haible  <bruno@clisp.org>
1866
1867         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1868         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1869         In the test program, include <fcntl.h>, for O_RDONLY.
1870
1871 2012-01-26  Eric Blake  <eblake@redhat.com>
1872
1873         pipe2: document lack of thread-safety in replacement
1874         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1875         issue in replacement.
1876         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1877         Based on a report by Eric Wong.
1878
1879 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1880             Bruno Haible  <bruno@clisp.org>
1881
1882         malloca: Avoid warnings on x86_64 mingw64.
1883         * lib/malloca.c: Include <stdint.h>.
1884         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1885         * modules/malloca (Depends-on): Add stdint.
1886         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1887
1888 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1889
1890         obstack: remove __STDC__ conditionals
1891         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1892         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1893         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1894         m4/include_next.m4 as the only gnulib-maintained places that still
1895         refer to __STDC__.
1896
1897 2012-01-24  Bruno Haible  <bruno@clisp.org>
1898
1899         havelib: Modern quoting.
1900         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1901         the recent change to the GNU coding standards.
1902
1903 2012-01-24  Bruno Haible  <bruno@clisp.org>
1904
1905         stdint: Improve support for Android.
1906         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1907         Reported by Simon Josefsson <simon@josefsson.org>.
1908
1909 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1910
1911         doc: omit trailing empty lines from INSTALL etc.
1912         * doc/Makefile (INSTALL): Omit trailing empty lines.
1913         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1914         omit trailing empty lines.  This simplifies the build procedure.
1915
1916 2012-01-23  Jim Meyering  <meyering@redhat.com>
1917
1918         tests: avoid spurious warnings about gl_sockets_startup
1919         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1920         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1921         reporting a "statement with no effect".
1922         * tests/test-accept.c (main): Mark as "(void)".
1923         * tests/test-accept4.c (main): Likewise.
1924         * tests/test-bind.c (main): Likewise.
1925         * tests/test-connect.c (main): Likewise.
1926         * tests/test-getpeername.c (main): Likewise.
1927         * tests/test-getsockname.c (main): Likewise.
1928         * tests/test-getsockopt.c (main): Likewise.
1929         * tests/test-listen.c (main): Likewise.
1930         * tests/test-recv.c (main): Likewise.
1931         * tests/test-recvfrom.c (main): Likewise.
1932         * tests/test-send.c (main): Likewise.
1933         * tests/test-sendto.c (main): Likewise.
1934         * tests/test-setsockopt.c (main): Likewise.
1935         * tests/test-shutdown.c (main): Likewise.
1936
1937 2012-01-21  Bruno Haible  <bruno@clisp.org>
1938
1939         locale-fr.m4: Fix for Android.
1940         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1941         failure of the test program on Bionic libc.
1942
1943 2012-01-21  Jim Meyering  <meyering@redhat.com>
1944
1945         bootstrap: fail when bootstrap_post_import_hook fails
1946         Otherwise, it's far too easy to miss diagnostics emitted
1947         between gnulib-tool's output and that of running configure.
1948         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1949
1950 2012-01-17  Jim Meyering  <meyering@redhat.com>
1951
1952         maint: enable sc_trailing_blank
1953         * build-aux/pmccabe.css: Remove trailing blanks.
1954         * doc/acl-cygwin.txt: Likewise.
1955         * doc/gnu-oids.texi: Likewise
1956         * cfg.mk: Enable sc_trailing_blank.
1957         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1958
1959 2012-01-17  Jim Meyering  <meyering@redhat.com>
1960
1961         maint: enable sc_prohibit_openat_without_use
1962         * cfg.mk: Enable sc_prohibit_openat_without_use.
1963         Exempt lib/selinux-at.c.
1964
1965 2012-01-17  Jim Meyering  <meyering@redhat.com>
1966
1967         maint: enable sc_prohibit_cloexec_without_use
1968         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1969         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1970
1971 2012-01-17  Jim Meyering  <meyering@redhat.com>
1972
1973         maint: enable sc_prohibit_intprops_without_use
1974         * cfg.mk: Enable sc_prohibit_intprops_without_use
1975         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1976
1977 2012-01-17  Jim Meyering  <meyering@redhat.com>
1978
1979         maint: enable sc_prohibit_hash_pjw_without_use
1980         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1981         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1982         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1983         following " (".
1984
1985 2012-01-17  Jim Meyering  <meyering@redhat.com>
1986
1987         maint: enable double-word-prohibiting rule
1988         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1989         Exempt three files.
1990
1991 2012-01-17  Jim Meyering  <meyering@redhat.com>
1992
1993         maint: remove empty lines at EOF, but excluding modules/*
1994         Apply syntax rules at home as well as abroad.  Most changes
1995         were induced by running this:
1996           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1997             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1998             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1999         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
2000         Exempt modules/* and two binary files.
2001         Also exempt doc/INSTALL*, per request from Bruno Haible.
2002         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
2003         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
2004         * doc/Copyright/request-assign.future: Likewise.
2005         * doc/Copyright/request-disclaim.changes: Likewise.
2006         * doc/INSTALL: Likewise.
2007         * doc/INSTALL.ISO: Likewise.
2008         * doc/INSTALL.UTF-8: Likewise.
2009         * doc/acl-cygwin.txt: Likewise.
2010         * doc/acl-resources.txt: Likewise.
2011         * doc/fdl-1.2.texi: Likewise.
2012         * doc/fdl-1.3.texi: Likewise.
2013         * doc/fdl.texi: Likewise.
2014         * lib/argp-pin.c: Likewise.
2015         * lib/round.c: Likewise.
2016         * lib/unicase/u16-totitle.c: Likewise.
2017         * lib/unictype/block_test.c: Likewise.
2018         * lib/uninorm/canonical-decomposition.c: Likewise.
2019         * m4/README: Likewise.
2020         * m4/relocatable-lib.m4: Likewise.
2021         * tests/test-isnand-nolibm.c: Likewise.
2022         * tests/test-isnand.c: Likewise.
2023         * tests/uninorm/NormalizationTest.txt: Likewise.
2024
2025 2012-01-17  Jim Meyering  <meyering@redhat.com>
2026
2027         maint: add framework to run syntax-check rules against gnulib sources
2028         * cfg.mk: New file, to disable all currently-failing tests.
2029         We'll enable them one by one, as they are made to pass.
2030         * Makefile (sc_maint): New rule.
2031
2032 2012-01-21  Bruno Haible  <bruno@clisp.org>
2033
2034         stdint: Add support for Android.
2035         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
2036         include the system's <stdint.h>.
2037         Reported by Simon Josefsson <simon@josefsson.org>.
2038
2039 2012-01-19  Jim Meyering  <meyering@redhat.com>
2040
2041         bootstrap: add bootstrap_post_import_hook
2042         Bison does still need something like the gnulib_mk_hook whose
2043         invocation I had to remove along with slurp in commit 767ccd40.
2044         Technically, we could get along without it, but doing so would
2045         have required living with a warning and a mandatory post-bootstrap
2046         automake rerun.
2047         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
2048         (bootstrap_post_import_hook): New function.
2049         Invoke it after gnulib-tool --import and before autoreconf.
2050
2051 2012-01-18  Jim Meyering  <meyering@redhat.com>
2052
2053         gitlog-to-changelog: don't use "no_"-prefixed variable name
2054         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
2055         to enable both --cluster and --no-cluster.  Change variable name,
2056         s/\$no_cluster/$cluster/, and reverse usage to match.
2057
2058         gitlog-to-changelog: use "||", not "or" in expressions
2059         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
2060         expressions.
2061
2062 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
2063
2064         gitlog-to-changelog: new option --no-cluster
2065         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
2066         clustering of adjacent commit messages.
2067
2068 2012-01-17  Jim Meyering  <meyering@redhat.com>
2069
2070         maint: spell file systems with two words, not one
2071         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
2072         two words, not one.
2073
2074 2012-01-16  Jim Meyering  <meyering@redhat.com>
2075
2076         bootstrap: add a FIXME comment to ensure we eventually remove the hack
2077         * build-aux/bootstrap (gnulib_tool_options): Add comment.
2078
2079 2012-01-16  Eric Blake  <eblake@redhat.com>
2080
2081         bootstrap: cater to autoconf 2.59
2082         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
2083         is not available.
2084
2085         bootstrap: properly check for libtool
2086         * build-aux/bootstrap (libtoolize): Also run libtool when older
2087         usage is detected.
2088
2089 2012-01-15  Bruno Haible  <bruno@clisp.org>
2090
2091         Improve support for MSVC 9.
2092         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
2093         clashes on MSVC.
2094         * lib/fcntl.in.h: Likewise.
2095         * lib/stdlib.in.h: Likewise.
2096         * lib/sys_stat.in.h: Likewise.
2097
2098 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2099
2100         gnupload: we hold the master copy of this script now
2101         For motivation and more information, see:
2102         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
2103         * build-aux/gnupload: Make it clear in the heading comments that the
2104         master copy of this file is maintained by gnulib.  Since we are at
2105         it, bump its copyright year and ...
2106         ($scriptversion): ... the date in its version.
2107         ($usage): Patches and bug reports should be sent to the gnulib list,
2108         not the automake one.
2109         * config/srclist.txt: Don't try to sync 'gnupload' from automake
2110         anymore.
2111
2112 2012-01-15  Bruno Haible  <bruno@clisp.org>
2113
2114         Fix module 'random'.
2115         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
2116         initstate, setstate are declared.
2117
2118 2012-01-14  Bruno Haible  <bruno@clisp.org>
2119
2120         Tests for module 'random'.
2121         * modules/random-tests: New file.
2122         * tests/test-random.c: New file, based on tests/test-random_r.c.
2123
2124         New module 'random'.
2125         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
2126         declarations.
2127         * lib/random.c: New file, based on glibc/stdlib/random.c.
2128         * m4/random.m4: New file.
2129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
2130         HAVE_RANDOM.
2131         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
2132         * modules/random: New file.
2133         * config/srclist.txt: Add an entry for random.c.
2134         * doc/posix-functions/random.texi: Mention the 'random' module.
2135         * doc/posix-functions/initstate.texi: Likewise.
2136         * doc/posix-functions/setstate.texi: Likewise.
2137         * doc/posix-functions/srandom.texi: Likewise.
2138
2139 2012-01-12  Bruno Haible  <bruno@clisp.org>
2140
2141         random_r: Use common idioms.
2142         * lib/random_r.c: Include <stdlib.h> first.
2143
2144         random_r: Override incompatible API on AIX, OSF/1.
2145         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
2146         Override the system function if REPLACE_RANDOM_R is 1.
2147         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
2148         and OSF/1, set REPLACE_RANDOM_R.
2149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
2150         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
2151         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
2152         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
2153         * doc/glibc-functions/random_r.texi: Likewise.
2154         * doc/glibc-functions/setstate_r.texi: Likewise.
2155
2156         random_r: Support for MSVC 9.
2157         * lib/random_r.c: Include stdint.h, not inttypes.h.
2158
2159 2012-01-12  Eric Blake  <eblake@redhat.com>
2160
2161         inet_ntop: guard extra work by IF_LINT
2162         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
2163         better code generation when not checking for warnings.
2164         Suggested by Paul Eggert and Jim Meyering.
2165
2166         strptime: fix regression on mingw
2167         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
2168         Fix regression.  Reported by Bruno Haible.
2169
2170 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
2171             Bruno Haible  <bruno@clisp.org>
2172
2173         copy-file: add error-code-returning variant.
2174         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
2175         (qcopy_file_preserving): New declaration.
2176         * lib/copy-file.c (qcopy_file_preserving): Renamed from
2177         copy_file_preserving. Change return type to 'int'. Don't emit an error
2178         message here.
2179         (copy_file_preserving): New function.
2180         * tests/test-copy-file.c: Include <stdlib.h>.
2181         (main): Test qcopy_file_preserving if the environment variable
2182         NO_STDERR_OUTPUT is set.
2183         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
2184         with NO_STDERR_OUTPUT
2185         * tests/test-copy-file-2.sh: Likewise.
2186
2187 2012-01-10  Bruno Haible  <bruno@clisp.org>
2188
2189         copy-file: Use 'quote' module consistently.
2190         * lib/copy-file.c (copy_file_preserving): Use quote().
2191
2192         copy-file: Refactor.
2193         * lib/copy-file.c: Include quote.h.
2194         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
2195         message here.
2196         * modules/copy-file (Depends-on): Add quote.
2197
2198         acl: Export qcopy_acl.
2199         * lib/acl.h (qcopy_acl): New declaration.
2200         * lib/copy-acl.c (qcopy_acl): Make non-static.
2201
2202         acl: Rename a local variable.
2203         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
2204
2205         acl: Align return values of copy_acl and qcopy_acl.
2206         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
2207         maybe < -1.
2208
2209 2012-01-11  Eric Blake  <eblake@redhat.com>
2210
2211         strptime: silence gcc warnings
2212         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
2213         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
2214         Reported by Daniel P. Berrange.
2215
2216         inet_ntop: silence gcc warning
2217         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
2218         Reported by Daniel P. Berrange.
2219
2220 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
2221
2222         getloadavg test: skip the test on GNU/Linux without /proc mounted
2223         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
2224         file.  When /proc is not mounted, it always fails with ENOENT.
2225         * tests/test-getloadavg.c (main): Treat ENOENT return code from
2226         getloadavg(3) the same way as ENOSYS and ENOTSUP.
2227
2228 2012-01-10  Bruno Haible  <bruno@clisp.org>
2229
2230         regex: Avoid link error on MSVC 9.
2231         * modules/regex (Depends-on): Add wctype.
2232
2233 2012-01-10  Bruno Haible  <bruno@clisp.org>
2234
2235         doc: Mention --with-tests option.
2236         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
2237         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
2238         --with-tests.
2239         Reported by Reuben Thomas.
2240
2241 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
2242
2243         users.txt: order package names lexicographically.
2244         * users.txt: Order package names lexicographically.
2245
2246 2012-01-10  Jim Meyering  <meyering@redhat.com>
2247
2248         maint.mk: fix description in comment
2249         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
2250
2251         ignore-value: remove deprecated ignore_ptr function
2252         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
2253         * NEWS: Note this.
2254
2255 2012-01-09  Jim Meyering  <meyering@redhat.com>
2256
2257         test-init.sh: avoid a subshell
2258         * tests/test-init.sh: Remove protective subshell.
2259         Suggested by Bernhard Voelker.  While a subshell is normally
2260         required to protect against older shells (Solaris, FreeBSD) that
2261         warn about a missing program before performing redirection, the
2262         shell-selection tests performed by init.sh probably exclude any
2263         offending shell.
2264
2265 2012-01-08  Bruno Haible  <bruno@clisp.org>
2266
2267         setlocale tests: Avoid test failure on Solaris 11 2011-11.
2268         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
2269         variable.
2270
2271 2012-01-08  Bruno Haible  <bruno@clisp.org>
2272
2273         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
2274         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2275         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
2276         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
2277         macro.
2278         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
2279         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2280         * lib/spawn_faction_addopen.c: Add workaround implementation if
2281         HAVE_WORKING_POSIX_SPAWN.
2282         * modules/spawn (Makefile): Substitute
2283         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
2284         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
2285         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
2286         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2287         (Depends-on): Update conditions.
2288         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2289         the Solaris 11 bug.
2290
2291 2012-01-08  Bruno Haible  <bruno@clisp.org>
2292
2293         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
2294         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2295         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2296         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
2297         macro.
2298         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
2299         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2300         * lib/spawn_faction_adddup2.c: Add workaround implementation if
2301         HAVE_WORKING_POSIX_SPAWN.
2302         * modules/spawn (Makefile): Substitute
2303         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2304         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
2305         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
2306         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2307         (Depends-on): Update conditions.
2308         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2309         the Solaris 11 bug.
2310
2311 2012-01-08  Bruno Haible  <bruno@clisp.org>
2312
2313         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
2314         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2315         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2316         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
2317         HAVE_WORKING_POSIX_SPAWN.
2318         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
2319         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
2320         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2321         * lib/spawn_faction_addclose.c: Add workaround implementation if
2322         HAVE_WORKING_POSIX_SPAWN.
2323         * modules/spawn (Makefile): Substitute
2324         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2325         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
2326         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
2327         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2328         (Depends-on): Update conditions.
2329         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2330         the Solaris 11 bug.
2331
2332 2012-01-08  Bruno Haible  <bruno@clisp.org>
2333
2334         doc: Update for Solaris 11 2011-11.
2335         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
2336         * m4/printf.m4: Update comments.
2337
2338 2012-01-08  Bruno Haible  <bruno@clisp.org>
2339
2340         mktime: Avoid compilation error on Solaris 11.
2341         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
2342
2343 2012-01-08  Bruno Haible  <bruno@clisp.org>
2344
2345         doc: Small fix.
2346         * doc/posix-headers/nl_types.texi: Correct platforms list.
2347
2348 2012-01-08  Simon Josefsson  <simon@josefsson.org>
2349
2350         Add lgpl-3.0 module.
2351         * MODULES.html.sh (Support for building documentation): Add
2352         lgpl-3.0.
2353         * modules/lgpl-3.0: New file.
2354
2355 2012-01-08  Jim Meyering  <meyering@redhat.com>
2356
2357         select.c: indent with spaces, not TABs
2358         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
2359
2360 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2361
2362         quotearg: do not use grave accent for left quote
2363         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
2364         locale_quoting_style.
2365         (quotearg_buffer_restyled): Fix example.
2366         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
2367
2368 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2369
2370         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
2371         Most programs do not have translation catalogs for English and much
2372         less separate catalogs for British and American English.  Drop the
2373         suggestion to translators about these two, and provide it
2374         automatically for Unicode locales.  Like most programs, even those
2375         using American English, we use single quotation marks.  This conflicts
2376         with the American typographic convention, but works better when you
2377         cite the entire error message within double quotes.  It also tries not
2378         to clash with established practice and with what non-gnulib programs
2379         will usually do.
2380         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
2381         using an UTF-8 or GB-18030 locale.  The list of other locales with
2382         quotes was provided by Bruno Haible.
2383         (quotearg_buffer_restyled): Adjust instructions to translators.
2384         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
2385         text, since this would be wrong when using Unicode.
2386         * modules/quotearg: Depend on c-strcaseeq.
2387
2388 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2389
2390         quotearg: fix Wikipedia link
2391         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
2392
2393 2012-01-07  Simon Josefsson  <simon@josefsson.org>
2394
2395         Fix for mingw with MSVC9.
2396         * m4/ld-version-script.m4: Check that compiler rejects version
2397         scripts with syntax errors.  Reported by Bruno Haible
2398         <bruno@clisp.org>.
2399
2400 2012-01-06  Bruno Haible  <bruno@clisp.org>
2401
2402         Talk about "native Windows API", not "Woe32".
2403         * lib/accept4.c: Update comments to mention native Windows.
2404         * lib/execute.c: Likewise.
2405         * lib/fatal-signal.c: Likewise.
2406         * lib/localcharset.c: Likewise.
2407         * lib/nanosleep.c: Likewise.
2408         * lib/nl_langinfo.c: Likewise.
2409         * lib/pclose.c: Likewise.
2410         * lib/pipe-filter-gi.c: Likewise.
2411         * lib/pipe-filter-ii.c: Likewise.
2412         * lib/pipe.c: Likewise.
2413         * lib/pipe2.c: Likewise.
2414         * lib/popen.c: Likewise.
2415         * lib/progreloc.c: Likewise.
2416         * lib/relocatable.c: Likewise.
2417         * lib/sigaction.c: Likewise.
2418         * lib/sigprocmask.c: Likewise.
2419         * lib/spawn-pipe.h: Likewise.
2420         * lib/spawn-pipe.c: Likewise.
2421         * lib/spawni.c: Likewise.
2422         * lib/stat-time.h: Likewise.
2423         * lib/w32spawn.h: Likewise.
2424         * tests/test-isatty.c: Likewise.
2425         * lib/config.charset: More comments.
2426         * doc/gnulib-intro.texi: Mention native Windows.
2427         * doc/posix-functions/_Exit_C99.texi: Likewise.
2428         * doc/posix-headers/fcntl.texi: Likewise.
2429
2430 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
2431
2432         argp: Avoid crash if translator uses % characters in a translation.
2433         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
2434         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2435
2436 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2437
2438         doc: C11 and C++11 are now official
2439         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
2440         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
2441         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
2442         * modules/stdalign:
2443         Replace references to draft C1X to C11, and to draft C++0X to C++11.
2444
2445 2012-01-06  Bruno Haible  <bruno@clisp.org>
2446
2447         uc-is-grapheme-break tests: Tweak.
2448         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
2449         message.
2450
2451 2012-01-06  Bruno Haible  <bruno@clisp.org>
2452
2453         test-init.sh: correct the test for diff -u
2454         * tests/test-init.sh: Also redirect stdout to /dev/null.
2455
2456 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2457
2458         Use ', not `, for quoting output.
2459         * build-aux/announce-gen (usage, sizes, print_news_deltas)
2460         (print_changelog_deltas, get_tool_versions, main program):
2461         * build-aux/git-version-gen:
2462         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
2463         * build-aux/move-if-change (help):
2464         * build-aux/useless-if-before-free (usage, main program):
2465         * check-module (parse_module_file, usage)
2466         (find_included_lib_files, check_module):
2467         * lib/argmatch.c (main) [TEST]:
2468         * lib/argp-help.c (_help):
2469         * lib/getopt1.c (main) [TEST]:
2470         * lib/git-merge-changelog.c (usage):
2471         * lib/xstrtol-error.c (xstrtol_error):
2472         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
2473         * m4/argz.m4 (gl_FUNC_ARGZ):
2474         * m4/bison.m4 (gl_BISON):
2475         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
2476         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2477         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2478         * m4/fpending.m4 (gl_PREREQ_FPENDING):
2479         * m4/gc-random.m4 (gl_GC_RANDOM):
2480         * m4/intl.m4 (gt_CHECK_DECL):
2481         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
2482         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
2483         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
2485         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
2486         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
2487         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
2488         * tests/test-dirname.c (main):
2489         * tests/test-getpass.c (main):
2490         * tests/test-iconvme.c (main):
2491         * tests/test-parse-datetime.c (LOG):
2492         * tests/test-xstrtoimax.sh:
2493         * tests/test-xstrtol.sh:
2494         * tests/test-xstrtoll.sh:
2495         * tests/test-xstrtoumax.sh:
2496         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
2497         * top/GNUmakefile (abort-due-to-no-makefile):
2498         Quote 'like this', not `like this', as per the recent change to
2499         the GNU coding standards.
2500
2501 2012-01-05  Bruno Haible  <bruno@clisp.org>
2502
2503         strtoimax: Don't force a replacement on systems where intmax_t is int.
2504         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
2505         'intmax_t' is not larger than 'int'.
2506         Reported by Pádraig Brady <P@draigBrady.com>.
2507
2508 2012-01-05  Bruno Haible  <bruno@clisp.org>
2509
2510         doc: Mention NetBSD bugs.
2511         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
2512         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
2513
2514 2012-01-05  Bruno Haible  <bruno@clisp.org>
2515
2516         strtoumax tests: Enhance tests.
2517         * tests/test-strtoumax.c (main): Add tests for large values.
2518
2519 2012-01-05  Bruno Haible  <bruno@clisp.org>
2520
2521         strtoimax: Work around AIX 5.1 bug.
2522         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
2523         definition.
2524         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
2525         Set HAVE_STRTOIMAX.
2526         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
2527         REPLACE_STRTOIMAX.
2528         * modules/inttypes-incomplete (Makefile.am): Substitute
2529         REPLACE_STRTOIMAX.
2530         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
2531         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
2532         (Depends-on): Update conditions.
2533         * tests/test-strtoimax.c (main): Add tests for large values.
2534         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
2535
2536 2012-01-05  Bruno Haible  <bruno@clisp.org>
2537
2538         inttypes: Modernize.
2539         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
2540         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
2541         (Makefile.am): Update inttypes.h rule.
2542
2543 2012-01-05  Jim Meyering  <meyering@redhat.com>
2544
2545         init.sh: don't waste a subshell just to redirect stderr
2546         * tests/init.sh: In testing for diff -u and diff -c, use a
2547         stderr-redirecting exec inside `...` rather than a subshell.
2548
2549         test-init.sh: avoid failure on HP-UX 11.00
2550         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
2551         resolves to diff -c or cmp.  Reported by Bruno Haible.
2552
2553 2012-01-05  Bruno Haible  <bruno@clisp.org>
2554
2555         Tests for module 'strtoull'.
2556         * modules/strtoull-tests: New file.
2557         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
2558
2559 2012-01-05  Bruno Haible  <bruno@clisp.org>
2560
2561         Tests for module 'strtoll'.
2562         * modules/strtoll-tests: New file.
2563         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
2564
2565 2012-01-05  Bruno Haible  <bruno@clisp.org>
2566
2567         Tests for module 'strtoul'.
2568         * modules/strtoul-tests: New file.
2569         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
2570
2571 2012-01-05  Bruno Haible  <bruno@clisp.org>
2572
2573         Tests for module 'strtol'.
2574         * modules/strtol-tests: New file.
2575         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
2576
2577 2012-01-04  Jim Meyering  <meyering@redhat.com>
2578
2579         test-init.sh: accommodate Solaris 5.10's different diff -u output
2580         * tests/test-init.sh: Also exempt @@ lines from the comparison
2581         of diff output, since Solaris 5.10 and GNU diff formats differ.
2582         Reported by Stefano Lattarini.
2583
2584 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2585
2586         test-posixtm: don't assume signed integer wraparound
2587         * tests/test-posixtm.c (main): Don't assume wraparound semantics
2588         after signed integer overflow.  Inspired by (though it may not
2589         fix) Bruno Haible's bug report in
2590         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
2591
2592         Spell out "Windows 9x" and "Windows XP".
2593         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
2594         "Windows 9x" and "WinXP" with "Windows XP".
2595
2596 2012-01-04  Jim Meyering  <meyering@redhat.com>
2597
2598         test-vc-list-files-cvs.sh: remove obsolete comment
2599         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
2600         double exit.  Now that's all encapsulated via skip_ and Exit.
2601
2602 2012-01-04  Bruno Haible  <bruno@clisp.org>
2603
2604         Talk about "native Windows API", not "Win32".
2605         * lib/classpath.c: Update comments to mention native Windows.
2606         * lib/csharpexec.c: Likewise.
2607         * lib/dup2.c: Likewise.
2608         * lib/error.c: Likewise.
2609         * lib/fcntl.c: Likewise.
2610         * lib/filename.h: Likewise.
2611         * lib/findprog.c: Likewise.
2612         * lib/get-rusage-as.c: Likewise.
2613         * lib/get-rusage-data.c: Likewise.
2614         * lib/getpagesize.c: Likewise.
2615         * lib/javaexec.c: Likewise.
2616         * lib/msvc-inval.c: Likewise.
2617         * lib/msvc-nothrow.c: Likewise.
2618         * lib/nanosleep.c: Likewise.
2619         * lib/nonblocking.c: Likewise.
2620         * lib/printf-parse.c: Likewise.
2621         * lib/setlocale.c: Likewise.
2622         * lib/sigaction.c: Likewise.
2623         * lib/strerror_r.c: Likewise.
2624         * lib/tmpdir.c: Likewise.
2625         * lib/vasnprintf.c: Likewise.
2626         * lib/w32spawn.h: Likewise.
2627         * lib/waitpid.c: Likewise.
2628         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
2629         * m4/locale-ar.m4: Likewise.
2630         * m4/locale-fr.m4: Likewise.
2631         * m4/locale-ja.m4: Likewise.
2632         * m4/locale-tr.m4: Likewise.
2633         * m4/locale-zh.m4: Likewise.
2634         * m4/printf.m4: Likewise.
2635         * tests/test-cloexec.c: Likewise.
2636         * tests/test-copy-acl.sh: Likewise.
2637         * tests/test-copy-file.sh: Likewise.
2638         * tests/test-file-has-acl.sh: Likewise.
2639         * tests/test-set-mode-acl.sh: Likewise.
2640         * tests/test-dup-safer.c: Likewise.
2641         * tests/test-dup2.c: Likewise.
2642         * tests/test-dup3.c: Likewise.
2643         * tests/test-fcntl.c: Likewise.
2644         * tests/test-nonblocking-pipe.h: Likewise.
2645         * tests/test-nonblocking-socket.h: Likewise.
2646         * tests/test-pipe.c: Likewise.
2647         * tests/test-pipe2.c: Likewise.
2648         * tests/test-spawn-pipe-child.c: Likewise.
2649         * doc/acl-resources.txt: Likewise.
2650         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2651         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
2652         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
2653         * lib/localcharset.c: Update comments to mention native Windows.
2654         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2655         * lib/localename.c: Likewise.
2656         * lib/progreloc.c: Likewise.
2657         * lib/relocatable.c: Likewise.
2658         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2659         (windows_compute_revents): Renamed from win32_compute_revents.
2660         (windows_compute_revents_socket): Renamed from
2661         win32_compute_revents_socket.
2662         * lib/select.c: Update comments to mention native Windows.
2663         (windows_poll_handle): Renamed from win32_poll_handle.
2664         * m4/threadlib.m4: Update comments to mention native Windows.
2665         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
2666         --enable-threads=windows instead of --enable-threads=win32. Set
2667         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
2668         * lib/glthread/lock.h: Update comments to mention native Windows.
2669         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
2670         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
2671         USE_WIN32_THREADS.
2672         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
2673         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
2674         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
2675         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
2676         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
2677         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
2678         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
2679         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
2680         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
2681         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
2682         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
2683         * tests/test-tls.c: Likewise.
2684         Rationale:
2685         Microsoft renamed the "Win32 API" to "Windows API", as it is available
2686         on both 32-bit and 64-bit Windows systems.
2687         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
2688         line of distinction is between "native Windows" on one side and Unix/
2689         POSIX systems on the other side. More details in
2690         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
2691         Suggested by Paul Eggert.
2692
2693 2012-01-03  Bruno Haible  <bruno@clisp.org>
2694
2695         isatty: Support for MSVC 9.
2696         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
2697         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
2698         (_isatty_nothrow): New function.
2699         (isatty): Use it instead of _isatty.
2700         (IsConsoleHandle): Add comment, from Paolo Bonzini.
2701         * lib/poll.c (IsConsoleHandle): Likewise.
2702         * lib/select.c (IsConsoleHandle): Likewise.
2703         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
2704         (gl_PREREQ_ISATTY): New macro.
2705         * modules/isatty (Depends-on): Add msvc-inval.
2706         (configure.ac): Invoke gl_PREREQ_ISATTY.
2707
2708 2012-01-03  Jim Meyering  <meyering@redhat.com>
2709
2710         maint.mk: remove temporary transition aid from over 1.5 years ago
2711         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
2712         purpose was to aid in the transition (avoiding silent malfunction)
2713         from that old name to the new _sc_search_regexp.  This shim was
2714         added by commit 219c504b.
2715
2716         init.sh: do not try to accommodate compare arguments starting with "-"
2717         * tests/init.sh (compare_dev_null_): Do not try to accommodate
2718         compare arguments that start with "-".  Besides, we do not worry
2719         about this when invoking diff or cmp; why start now with sed?
2720         Using "--" to separate options from argument would trigger sed
2721         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
2722         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
2723
2724 2012-01-02  Bruno Haible  <bruno@clisp.org>
2725
2726         Enhance tests for module 'isatty'.
2727         * modules/isatty-tests (Depends-on): Add pipe-posix.
2728         * tests/test-isatty.c: Include <fcntl.h>.
2729         (DEV_NULL): New macro.
2730         (main): Test the resut of isatty() also on regular files, pipes, and
2731         /dev/null.
2732
2733         New module 'isatty'.
2734         * lib/unistd.in.h (isatty): New declaration.
2735         * lib/isatty.c: New file, based on an idea of
2736         Bastien Roucariès <roucaries.bastien@gmail.com>.
2737         * m4/isatty.m4: New file.
2738         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
2739         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
2740         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
2741         REPLACE_ISATTY.
2742         * modules/isatty: New file.
2743         * doc/posix-functions/isatty.texi: Mention the new module.
2744         Suggested by Paolo Bonzini.
2745
2746 2012-01-02  Bruno Haible  <bruno@clisp.org>
2747
2748         canonicalize: Tweak 2011-12-29 commit.
2749         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
2750         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
2751
2752 2012-01-02  Jim Meyering  <meyering@redhat.com>
2753
2754         gitlog-to-changelog: describe input syntax in --help output
2755         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
2756
2757         gitlog-to-changelog: fix typo in --help: show backslash before email @
2758         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
2759         in sources, but not in actual output.
2760
2761 2011-12-30  Jim Meyering  <meyering@redhat.com>
2762
2763         gitlog-to-changelog: don't malfunction when name contains %-directive
2764         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
2765         in a name string cause trouble.  E.g., with a user name of "%s",
2766         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
2767
2768 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
2769
2770         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
2771         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
2772         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
2773         the "  (tiny change)" notation that is appended to the standard
2774         ChangeLog "date  name  email" header line.
2775
2776 2012-01-01  Jim Meyering  <meyering@redhat.com>
2777
2778         test-framework-sh: init.sh: fix "make dist" failure
2779         When using gnulib-tool's --with-tests option and any module that
2780         depends on test-framework-sh, "make dist" would fail due to the
2781         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
2782         in the gltests directory, and not in the gllib/ directory.
2783         One way to work around that is to move the EXTRA_DIST += init.sh
2784         from the primary module to the -tests one:
2785         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
2786         * modules/test-framework-sh (Makefile.am): ...not here.
2787         Reported by Tom G. Christensen in
2788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
2789
2790         version-etc: update copyright year reported by --version
2791         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
2792
2793 2011-12-31  Pádraig Brady  <P@draigBrady.com>
2794
2795         canonicalize: only stat() if required
2796         * lib/canonicalize.c (canonicalize_filename_mode):
2797         Avoid calling l?stat() when both CAN_MISSING,
2798         and CAN_NOLINKS are set, as we neither need
2799         to resolve symlinks or test component existence.
2800
2801 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2802
2803         doc: cover st_ino issues once; add OpenVMS etc.
2804         * doc/posix-functions/stat.texi (stat):
2805         * doc/posix-functions/lstat.texi (lstat):
2806         * doc/posix-functions/fstatat.texi (fstatat):
2807         * doc/posix-functions/fstat.texi (fstat):
2808         Move general 'struct stat' stuff to sys_stat.texi,
2809         leaving behind a pointer.
2810         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2811         Merge duplicate info about 'struct stat' problems into here.
2812         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2813         and suggest partial workarounds.
2814
2815         same-inode: port to OpenVMS
2816         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2817         three st_ino values.
2818
2819 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2820
2821         canonicalize: fix references to stat() and lstat()
2822         * lib/canonicalize.c (canonicalize_filename_mode):
2823         Ensure references always resolve to a replacement
2824         function if required (even via a macro).
2825
2826 2011-12-30  Jim Meyering  <meyering@redhat.com>
2827
2828         gitlog-to-changelog: remove a little duplication
2829         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2830         rather than twice.
2831
2832 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2833
2834         canonicalize: add support for not resolving symlinks
2835         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2836         indicate we don't want to follow symlinks.  Also
2837         provide CAN_MODE_MASK to aid setting these existing
2838         mutually exclusive values.
2839         * lib/canonicalize.c (canonicalize_filename_mode):
2840         Extract the flags from can_mode parameter, which
2841         are currently just used to select between stat()
2842         and lstat().  Also ensure that mutually exclusive
2843         values are flagged immediately as invalid.
2844         * tests/test-canonicalize.c: Verify symlinks are
2845         not followed, and that invalid flag combinations
2846         are diagnosed.
2847
2848 2011-12-25  Jim Meyering  <meyering@redhat.com>
2849
2850         gitlog-to-changelog: do not clump multi-paragraph entries
2851         Identical header lines (date,name,email+coauthors) are suppressed,
2852         thus putting all entries with those same characteristics under
2853         a single header.  However, when a log entry consists of two or
2854         more paragraphs, it may not be clear where it starts and ends.
2855         This change makes it so that such an entry is always separated
2856         from others by a header line, even when that header would
2857         otherwise be suppressed.
2858         * build-aux/gitlog-to-changelog: Implement the above.
2859         Inspired by a related request from Stefano Lattarini in
2860         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2861
2862 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2863
2864         announce-gen: fix `cmd' typo in diagnostic
2865         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2866         diagnostic: a missing '$' meant that the command was not output.
2867
2868 2011-12-23  Jim Meyering  <meyering@redhat.com>
2869
2870         test-framework-sh: distribute init.sh
2871         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2872         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2873         fail due to the lack of init.sh.
2874
2875         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2876         * modules/atexit-tests: Rather than listing tests/init.sh,
2877         now that there's a module for it, simply depend on that new module.
2878         * modules/closein-tests: Likewise.
2879         * modules/exclude-tests: Likewise.
2880         * modules/getcwd-tests: Likewise.
2881         * modules/perror-tests: Likewise.
2882         * modules/pread-tests: Likewise.
2883         * modules/pwrite-tests: Likewise.
2884         * modules/vc-list-files-tests: Likewise.
2885         * modules/verify-tests: Likewise.
2886         * modules/xalloc-die-tests: Likewise.
2887         * modules/xstrtoimax-tests: Likewise.
2888         * modules/xstrtol-tests: Likewise.
2889         * modules/xstrtoll-tests: Likewise.
2890         * modules/xstrtoumax-tests: Likewise.
2891         * modules/yesno-tests: Likewise.
2892
2893 2011-12-22  Jim Meyering  <meyering@redhat.com>
2894
2895         test-framework-sh: add minimal tests of init.sh's compare function
2896         * modules/test-framework-sh-tests: New file.
2897         * tests/test-init.sh: New file.
2898
2899         test-framework-sh: new module
2900         * modules/test-framework-sh: New file.
2901         * MODULES.html.sh (Support for maintaining and releasing projects):
2902         List it.
2903
2904         init.sh: do not emit simulated diff output to stderr
2905         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2906
2907 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2908
2909         .gitignore: ignore gnulib.dvi and regex.info
2910         * doc/.gitignore:add gnulib.dvi and regex.info
2911
2912 2011-12-22  Jim Meyering  <meyering@redhat.com>
2913
2914         init.sh: correct previous change
2915         * tests/init.sh (compare): My previous change was wrong.
2916         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2917
2918         init.sh: avoid unwarranted test failure when using "set -e"
2919         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2920         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2921         a use like "compare exp out" would get evoke an unconditional failure.
2922
2923 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2924
2925         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2926         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2927         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2928         autoreconf that did not.
2929         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2930         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2931
2932 2011-12-17  Jim Meyering  <meyering@redhat.com>
2933
2934         bootstrap: remove some now-unneeded code
2935         This script arose back when gnulib-tool was young.
2936         Since then, it has seen improvements that render much of this
2937         script unnecessary.  In particular, it can now make symlinks
2938         to the files it uses.  Also, I no longer see as much value in
2939         marking files as read-only via comments.
2940         If you relied on the symlink-creation feature of the preceding
2941         version of this script, you can get most of that functionality
2942         by adding the --symlink option to the definition of
2943         gnulib_tool_option_extras in your bootstrap.conf file.
2944         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2945         Run autopoint and libtoolize *before* gnulib-tool.
2946         After it, run an abbreviated autoreconf, rather than a loop around
2947         all tools.
2948         (slirp, bt_mark_as_generated): Remove functions.
2949
2950 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2951
2952         ftoastr: fix typo
2953         * lib/ftoastr.h: Fix misspelling in comment.
2954
2955 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2956
2957         * top/README-release: fix punctuation.
2958
2959 2011-12-17  Jim Meyering  <meyering@redhat.com>
2960
2961         bootstrap: correct the recent buildreq change
2962         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2963         had no effect.
2964         * build-aux/bootstrap (buildreq): Bracket each search term with
2965         "*...*", so that the shell "case" statement works as intended.
2966         Add comments.
2967
2968 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2969
2970         build: let bootstrap resort to wget when downloading .po files
2971         * build-aux/bootstrap (download_po_files): Fallback to wget when
2972         downloading the .po files via rsync fails.  This is necessary to
2973         bootstrap from behind a strict firewall.
2974
2975 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2976
2977         stdint: don't assume C++11 when compiling with g++
2978         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2980         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2981         work also in C++ before C++11, as that improperly inhibits
2982         generating a substitute stdint.h for that case.
2983
2984 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2985
2986         alloca: protect comment from gnulib-tool
2987         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2988         that gnulib-tool doesn't think it's a license, and munge it to
2989         say "GCC version 3".
2990
2991 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2992
2993         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2994         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2995         $(abs_top_builddir) instead of $(top_builddir).
2996
2997 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2998
2999         strftime-tests: also test nanoseconds
3000         * tests/test-strftime.c (T): Add a test of %N.
3001
3002 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
3003
3004         inttypes, stdint: add C++11 support
3005         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
3006         when including inttypes.h and stdint.h.  Support this change to
3007         the standard.
3008         * doc/posix-headers/inttypes.texi (inttypes.h):
3009         * doc/posix-headers/stdint.texi (stdint.h): Document this.
3010         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
3011         Define if not defined already, for the benefit of pre-C++11 hosts.
3012         Define the standard format macros (e.g., PRId8) always.
3013         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
3014         Likewise, if __cpluspus.  Define the standard constant and limit
3015         macros (e.g., INT8_C, INT8_MAX) always.
3016         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
3017         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
3018         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
3019         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
3020         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
3021         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
3022         Likewise.
3023
3024 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3025
3026         nonblocking tests: Fix test failure on Linux/PPC.
3027         Suggested by Prerna Saxena in
3028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
3029         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
3030         Set to 1100000.
3031
3032 2011-12-12  Jim Meyering  <meyering@redhat.com>
3033
3034         argmatch: don't hard-code `' when listing valid option arguments
3035         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
3036         use the quote function to add quotes.  Use fputs rather than
3037         fprintf for the format string with no format directive.
3038
3039 2011-12-07  Eric Blake  <eblake@redhat.com>
3040
3041         bootstrap: detect tools required by gnulib-tool
3042         * build-aux/bootstrap (buildreq): Provide minimum implicit
3043         dependencies.
3044         * DEPENDENCIES: Mention patch as a prereq.
3045
3046 2011-12-04  Bruno Haible  <bruno@clisp.org>
3047
3048         sethostname: Port to Windows platforms.
3049         * lib/sethostname.c: Provide an alternate implementation for Windows
3050         platforms.
3051         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
3052         (main): Skip the test if sethostname() fails with EPERM. On Windows
3053         platforms, don't check the result of gethostname().
3054
3055 2011-12-04  Bruno Haible  <bruno@clisp.org>
3056             Jim Meyering  <meyering@redhat.com>
3057
3058         tests: Avoid spurious error message on platforms without mktemp program.
3059         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
3060
3061 2011-12-04  Bruno Haible  <bruno@clisp.org>
3062
3063         sethostname: Fix documentation.
3064         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
3065         "not fixed" section.
3066
3067 2011-12-03  Bruno Haible  <bruno@clisp.org>
3068
3069         gnulib-tool: Verify that the License field is present and non-empty.
3070         * gnulib-tool (func_get_license_raw): New function, extracted from
3071         func_get_license.
3072         (func_get_license): Use it. Warn if the module is not a test module and
3073         has no license.
3074         Suggested by Jim Meyering.
3075
3076 2011-12-03  Bruno Haible  <bruno@clisp.org>
3077
3078         sethostname tests: Fix link error on mingw.
3079         * tests/test-sethostname1.c: New file, extracted from
3080         tests/test-sethostname.c.
3081         * tests/test-sethostname2.c: New file, extracted from
3082         tests/test-sethostname.c.
3083         * tests/test-sethostname.c: Remove file.
3084         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
3085         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
3086         (Depends-on): Add gethostname.
3087         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
3088         Link the latter with $(GETHOSTNAME_LIB).
3089
3090         sethostname tests: Fix compilation error on mingw.
3091         * tests/test-sethostname.c: Don't include <sys/types.h>.
3092         (geteuid): Use a dummy value without uid_t.
3093         * modules/sethostname-tests (Depends-on): Remove sys_types.
3094
3095         sethostname tests: Avoid a gcc warning.
3096         * tests/test-sethostname.c (main): Remove an unused variable.
3097
3098         Tweak last commit.
3099         * modules/sethostname-tests (Files): Sort by decreasing importance.
3100         (configure.ac): Check for geteuid.
3101         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
3102         the test when there's nothing to test. Drop an unnecessary cast.
3103         Improve an error message. Verify that the final sethostname() call
3104         succeeds.
3105
3106 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3107
3108         Add a test suite for the sethostname module.
3109         * modules/sethostname-tests: New file.  A test program
3110         for the sethostname module.
3111         * tests/test-sethostname.c: Likewise.
3112
3113 2011-12-03  Bruno Haible  <bruno@clisp.org>
3114
3115         Tweak last commit.
3116         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
3117         Fix preprocessor directives indentation. Fix typos.
3118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
3119         * modules/unistd (Makefile): Likewise.
3120
3121 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3122
3123         Integrate the sethostname module into unistd.
3124         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
3125         into the unistd.h header.
3126         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
3127         preprocessor directives.
3128         * modules/unistd: Setup the Makefile substitutions of the
3129         SETHOSTNAME preprocessor directives.
3130
3131 2011-12-03  Bruno Haible  <bruno@clisp.org>
3132
3133         Tweak last commit.
3134         * lib/sethostname.c: Don't include <string.h>.
3135         (sethostname): No need to copy the argument string to the stack. Don't
3136         call clearerr. Preserve errno when fprintf failed.
3137         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
3138         Don't invoke AC_REPLACE_FUNCS.
3139         * modules/sethostname (Link): Remove empty section.
3140         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
3141         failure problem.
3142
3143 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3144
3145         New module 'sethostname'.
3146         * lib/sethostname.c (sethostname): New file.  Provide sethostname
3147         for systems that lack it.
3148         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
3149         sethostname declaration and function.
3150         * modules/sethostname: New file.  Define the sethostname module.
3151
3152 2011-12-03  Bruno Haible  <bruno@clisp.org>
3153
3154         Tweak last commit.
3155         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
3156
3157 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3158
3159         Split the HOST_NAME_MAX detection into a separate m4 macro.
3160         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
3161         macro so it can be used by the pending sethostname module.
3162
3163 2011-12-03  Bruno Haible  <bruno@clisp.org>
3164
3165         Fix module descriptions syntax.
3166         * modules/argv-iter (License): Fix syntax.
3167         * modules/di-set (License): Likewise.
3168         * modules/ino-map (License): Likewise.
3169         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
3170
3171 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
3172
3173         stdalign: port to Clang 3.0
3174         Problem reported by Simon Josefsson in
3175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
3176         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
3177         which has <stdalign.h> but which does not define alignof.
3178         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
3179
3180 2011-12-01  Eric Blake  <eblake@redhat.com>
3181
3182         mktempd: silence dd usage
3183         * build-aux/mktempd (rand_bytes): Silence dd.
3184
3185 2011-11-30  Simon Josefsson  <simon@josefsson.org>
3186
3187         manywarnings: Don't mention gcc version in docstring.
3188         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
3189         Jim Meyering <meyering@redhat.com>.
3190
3191 2011-11-30  Jim Meyering  <meyering@redhat.com>
3192
3193         hash: mark a few floating point constants with "f" suffix
3194         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
3195         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
3196         floating point constants with "f", since they're destined to be
3197         saved/used as "float"s.
3198
3199 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
3200
3201         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
3202         * tests/test-float.c (test_long_double): Correct and re-enable the
3203         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
3204
3205 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
3206
3207         Avoid subtracting two pointers that don't point into the same block.
3208         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
3209         only pointers into the same memory block are subtracted. We cannot
3210         assume that sizeof (ptrdiff_t) == sizeof (void *).
3211
3212 2011-11-29  Eric Blake  <eblake@redhat.com>
3213
3214         maint.mk: add syntax check for use of compare from init.sh
3215         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
3216         moved here from coreutils.
3217
3218         manywarnings: drop -Wunsuffixed-float-constants
3219         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
3220         '1.0D', which is the only way to silence this warning for 'double'.
3221
3222 2011-11-29  Jim Meyering  <meyering@redhat.com>
3223
3224         hash: mark compute_bucket_size with the pure attribute
3225         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
3226
3227         quotearg, propername: correct pragma guard expression
3228         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
3229         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
3230
3231 2011-11-28  Jim Meyering  <meyering@redhat.com>
3232
3233         propername: do not mark proper_name with the const attribute
3234         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
3235         since it examines data pointed to by its parameter.
3236         * lib/propername.c (proper_name): Instead, add a pragma to suppress
3237         the suggestion from -Wsuggest-attribute=const.
3238
3239         propername: mark one more function as const
3240         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
3241
3242 2011-11-27  Jim Meyering  <meyering@redhat.com>
3243
3244         mark functions with const and pure attributes
3245
3246         Mark functions per suggestions from gcc-4.6 when using these options:
3247         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
3248         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
3249         Follow these guidelines: when possible, apply the attribute to
3250         an extern declaration, not to its definition.  Apply it to the
3251         definition only when the definition is static.
3252         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
3253         * lib/argv-iter.h (argv_iter_n_args): Likewise.
3254         * lib/base64.h (isbase64): Likewise.
3255         * lib/basename-lgpl.c (last_component, base_len): Likewise.
3256         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
3257         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
3258         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
3259         (c_tolower, c_toupper): Likewise.
3260         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
3261         * lib/chdir-long.c (find_non_slash): Likewise.
3262         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
3263         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
3264         * lib/file-type.h (file_type): Likewise.
3265         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
3266         * lib/filevercmp.c (verrevcmp): Likewise.
3267         * lib/freadahead.h (freadahead): Likewise.
3268         * lib/fts.c (fts_maxarglen): Likewise.
3269         * lib/hash-pjw.h (hash_pjw): Likewise.
3270         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
3271         * lib/hash.c (is_prime, next_prime): Likewise.
3272         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
3273         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
3274         (hash_table_ok, hash_get_first, hash_string): Likewise.
3275         (compute_bucket_size): Likewise.
3276         * lib/i-ring.h (i_ring_empty): Likewise.
3277         * lib/isnan.c (isnanl): Likewise.
3278         * lib/math.h (isnanl, rpl_isnanl): Likewise.
3279         * lib/memcasecmp.h (memcasecmp): Likewise.
3280         * lib/memchr2.h (memchr2): Likewise.
3281         * lib/memcmp2.h (memcmp2): Likewise.
3282         * lib/parse-datetime.y (lookup_zone): Likewise.
3283         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
3284         [!WINDOWS_SOCKETS]: Likewise.
3285         * lib/strnlen1.h (strnlen1): Likewise.
3286         * lib/uniwidth.in.h (uc_width): Likewise.
3287         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
3288         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
3289         (quoting_options_from_style): Add a comment.
3290         * lib/propername.h (proper_name): Add a comment.
3291
3292 2011-11-27  Bruno Haible  <bruno@clisp.org>
3293
3294         Remove unused macros from !_LIBC code in glibc-borrowed files.
3295         * lib/fnmatch.c (STRCOLL): Remove macro.
3296         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
3297         * lib/glob.c (__stat, __readdir64): Remove macros.
3298         * lib/tempname.c (__open64, __xstat64): Remove macros.
3299         Suggested by Paul Eggert.
3300
3301 2011-11-27  Bruno Haible  <bruno@clisp.org>
3302
3303         getcwd: Fix link error on MSVC 9.
3304         * modules/getcwd (Depends-on): Add readdir, rewinddir.
3305
3306 2011-11-27  Bruno Haible  <bruno@clisp.org>
3307
3308         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
3309         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
3310         HAVE_OPENDIR is 0.
3311         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
3312         HAVE_CLOSEDIR is 0.
3313         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
3314         is 0.
3315         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
3316
3317 2011-11-27  Bruno Haible  <bruno@clisp.org>
3318
3319         getcwd: Fix bug from 2011-08-17.
3320         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
3321         platforms that need it.
3322         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
3323         code of 4 to be a failure, not a success. This ensures that
3324         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
3325
3326 2011-11-27  Bruno Haible  <bruno@clisp.org>
3327
3328         binary-io tests: Avoid test failure on mingw when libtool is used.
3329         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
3330         Don't verify the size of t-bin-out1.tmp here.
3331         * tests/test-binary-io.sh: Verify it here.
3332         Reported by Simon Josefsson.
3333
3334 2011-11-26  Bruno Haible  <bruno@clisp.org>
3335
3336         Fix conflict between two instantiations of module 'unistd'.
3337         * gnulib-tool (func_emit_autoconf_snippet): Substitute
3338         ${include_guard_prefix} also in the autoconf snippet.
3339         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
3340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
3341         GNULIB_UNISTD_H_GETOPT.
3342         * modules/getopt-posix (configure.ac): Set the
3343         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
3344         * modules/getopt-gnu (configure.ac): Likewise.
3345         * modules/unistd (Makefile.am): Change the substitution value of
3346         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
3347         Reported by Simon Josefsson.
3348
3349 2011-11-25  Bruno Haible  <bruno@clisp.org>
3350
3351         pagealign_alloc: Doc and comments.
3352         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
3353         module.
3354         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
3355
3356 2011-11-25  Jim Meyering  <meyering@redhat.com>
3357
3358         test-update-copyright.sh: avoid false-positive failure
3359         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
3360         around false positive failure on Cygwin/Windows.  The latter was
3361         matching erroneously-created files with names like
3362         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
3363
3364 2011-11-25  Simon Josefsson  <simon@josefsson.org>
3365
3366         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
3367         * m4/valgrind-tests.m4: Check that the parameters that will be
3368         used works, not just a subset of them.  Reported by Bruno Haible
3369         <bruno@clisp.org>.
3370
3371 2011-11-24  Jim Meyering  <meyering@redhat.com>
3372
3373         test-stdalign.c: comment out long double tests
3374         * tests/test-stdalign.c: Don't try to reduce alignment of long double
3375         variables.  That provokes errors like this from gcc-4.7.0 20111124:
3376         error: '_Alignas' specifiers cannot reduce alignment of \
3377         'static_longdouble_alignas'.
3378
3379 2011-11-22  Jim Meyering  <meyering@redhat.com>
3380
3381         init.sh: make "compare /dev/null FILE" output more readable
3382         * tests/init.sh (compare_): Document the preferred order of arguments.
3383         (emit_diff_u_header_): New function.
3384         (compare_dev_null_): Emit a simulated diff, rather than just the
3385         contents of the unexpected file.  Suggestion from Bruno Haible.
3386
3387 2011-11-21  Jim Meyering  <meyering@redhat.com>
3388             Eric Blake  <eblake@redhat.com>
3389
3390         init.sh: work around OSF/1 5.1's mishandling of /dev/null
3391         * tests/init.sh: Make our compare function slightly more portable.
3392         Reported by Bruno Haible in
3393         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
3394
3395 2011-11-21  Simon Josefsson  <simon@josefsson.org>
3396
3397         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
3398         before using it, in code that ends up in config.h.
3399
3400 2011-11-20  Bruno Haible  <bruno@clisp.org>
3401
3402         getcwd: Work around getcwd bug on AIX 5..7.
3403         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
3404         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
3405         Use a different value for gl_cv_func_getcwd_path_max. Move the
3406         definition of HAVE_PARTLY_WORKING_GETCWD from here...
3407         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
3408         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
3409         Define HAVE_MINIMALLY_WORKING_GETCWD.
3410         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
3411         where it is not even minimally working, that is, on AIX.
3412         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
3413         m4/getcwd-path-max.m4.
3414         (main): Update exit code computation.
3415         * doc/posix-functions/getcwd.texi: Mention list of platforms where
3416         getcwd does not handle long file names.
3417
3418 2011-11-20  Bruno Haible  <bruno@clisp.org>
3419
3420         getcwd: Fix bug from 2009-09-10.
3421         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
3422         like "no".
3423
3424 2011-11-20  Simon Josefsson  <simon@josefsson.org>
3425
3426         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
3427
3428 2011-11-20  Bruno Haible  <bruno@clisp.org>
3429
3430         fma tests: Avoid shadowing local variables.
3431         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
3432         expected.
3433
3434 2011-11-20  Bruno Haible  <bruno@clisp.org>
3435
3436         copysignf tests: Fix.
3437         * tests/test-copysignf.c: Fix signature check.
3438
3439 2011-11-20  Bruno Haible  <bruno@clisp.org>
3440
3441         fma: Remove unused code.
3442         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
3443         unused macros.
3444
3445 2011-11-20  Bruno Haible  <bruno@clisp.org>
3446
3447         sethostname: Fix doc about AIX.
3448         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
3449         sethostname; it has it.
3450
3451         sethostname: Mention more portability problems.
3452         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
3453         problem.
3454         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
3455
3456 2011-11-19  Bruno Haible  <bruno@clisp.org>
3457
3458         Depend on module fcntl-h when AT_FDCWD is used.
3459         * modules/utimens (Depends-on): Add fcntl-h.
3460         * modules/areadlinkat (Depends-on): Likewise.
3461         * modules/areadlinkat-with-size (Depends-on): Likewise.
3462         * modules/faccessat (Depends-on): Likewise.
3463         * modules/fchmodat (Depends-on): Likewise.
3464         * modules/fchownat (Depends-on): Likewise.
3465         * modules/getcwd (Depends-on): Likewise.
3466         * modules/mkdirat (Depends-on): Likewise.
3467         * modules/mkfifoat (Depends-on): Likewise.
3468         * modules/readlinkat (Depends-on): Likewise.
3469         * modules/symlinkat (Depends-on): Likewise.
3470         * modules/dup2-tests (Depends-on): Likewise.
3471         * modules/fdutimensat-tests (Depends-on): Likewise.
3472         * modules/futimens-tests (Depends-on): Likewise.
3473
3474 2011-11-19  Bruno Haible  <bruno@clisp.org>
3475
3476         euidaccess: Update a comment.
3477         * lib/euidaccess.c: Update comment about platforms with faccessat.
3478
3479 2011-11-19  Bruno Haible  <bruno@clisp.org>
3480
3481         openat: Fix file list.
3482         * modules/openat (Files): Remove lib/at-func.c.
3483
3484 2011-11-19  Bruno Haible  <bruno@clisp.org>
3485
3486         fstatat: Simplify.
3487         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
3488         gnulib should define rpl_fstatat, there is a
3489         "#define fstatat rpl_fstatat" in <sys/stat.h>.
3490
3491 2011-11-19  Bruno Haible  <bruno@clisp.org>
3492
3493         Ensure 'inline' can be used in tests/test-utimens-common.h.
3494         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
3495         * modules/futimens-tests (configure.ac): Likewise.
3496         * modules/utimens-tests (configure.ac): Likewise.
3497         * modules/utimensat-tests (configure.ac): Likewise.
3498
3499 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3500
3501         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
3502         not hash_insert0.
3503         (hash_insert_if_absent): Doc fix.
3504
3505 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3506
3507         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
3508
3509 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3510
3511         test-getcwd: disambiguate exit status
3512         * tests/test-getcwd.c (test_long_name): Return 0..7.
3513         (main): Exit with an unambiguous exit status.  The old
3514         code yielded a mysterious mixture of two failure codes.
3515
3516         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
3517         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
3518         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
3519         rpl_fstatat or fstatat.  This should fix the other problem
3520         reported by Kai Habel in
3521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3522         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
3523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
3524         and I reproduced it on a Solaris 8 host we still have in production.
3525
3526 2011-11-18  Jim Meyering  <meyering@redhat.com>
3527
3528         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
3529         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
3530         Add a sentence to the comment.
3531         (hash_insert0): New function that simply calls hash_insert_if_absent.
3532         * lib/hash.h (hash_insert_if_absent): Declare it.
3533         (hash_insert0): Add deprecation attribute.
3534         (_GL_ATTRIBUTE_DEPRECATED): Define.
3535         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
3536         not hash_insert0.
3537         * NEWS: Mention it, even though it's not really an incompatible change.
3538
3539 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
3540
3541         openat: avoid compilation failure due to lack of <errno.h> inclusion
3542         * lib/openat.c: Include <errno.h>.
3543
3544 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3545
3546         * modules/getcwd (Depends-on): Add fdopendir.
3547         This fixes one of the two problems reported by Kai Habel in
3548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3549
3550         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
3551         stdalign problem reported by Ian Beckwith in
3552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
3553         * modules/crypto/gc-arcfour (Depends-on):
3554         Depend conditionally on crypto/arcfour.
3555         * modules/crypto/gc-arctwo (Depends-on):
3556         Depend conditionally on crypto/arctwo.
3557         * modules/crypto/gc-des (Depends-on):
3558         Depend conditionally on crypto/des.
3559         * modules/crypto/gc-hmac-md5 (Depends-on):
3560         Depend conditionally on crypto/hmac-md5.
3561         * modules/crypto/gc-hmac-sha1 (Depends-on):
3562         Depend conditionally on crypto/hmac-sha1.
3563         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
3564         * modules/crypto/gc-md4 (Depends-on):
3565         Depend conditionally on crypto/md4.
3566         * modules/crypto/gc-md5 (Depends-on):
3567         Depend conditionally on crypto/md5.
3568         * modules/crypto/gc-rijndael (Depends-on):
3569         Depend conditionally on crypto/rijndael.
3570         * modules/crypto/gc-sha1 (Depends-on):
3571         Depend conditionally on crypto/sha1.
3572         * modules/crypto/gc-arcfour:
3573         * modules/crypto/gc-arctwo:
3574         * modules/crypto/gc-des:
3575         * modules/crypto/gc-hmac-md5:
3576         * modules/crypto/gc-hmac-sha1:
3577         * modules/crypto/gc-md2:
3578         * modules/crypto/gc-md4:
3579         * modules/crypto/gc-md5:
3580         * modules/crypto/gc-rijndael:
3581         * modules/crypto/gc-sha1:
3582         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
3583         now that the conditional dependencies do the work for us.
3584
3585 2011-11-17  Jim Meyering  <meyering@redhat.com>
3586
3587         tests: factor st_ctime-comparison out of two headers
3588         * tests/test-utimens-common.h (ctime_compare): Define.
3589         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
3590         * tests/test-lutimens.h (test_lutimens): Likewise.
3591         * tests/test-utimens.h (test_utimens): Likewise.
3592
3593         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
3594         Invoke the test program via an init.sh-using wrapper.
3595         * tests/test-getcwd.sh: New file.
3596         * modules/getcwd-tests (Files): Add it.
3597         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
3598
3599 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
3600
3601         gitlog-to-changelog: support multi-author commits.
3602         The FSF cares about keeping track of all authors of patches to its
3603         projects, but Git doesn't provide obvious support for multi-author
3604         changesets. Consensus seems to be forming around the use of extra
3605         Signed-off-by inspired lines in the log message formatted as
3606         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
3607         multi-author commits between version control systems.
3608         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
3609         log message and output in standard ChangeLog multi-author format.
3610         Reported by Peter Rosin <peda@lysator.liu.se>
3611
3612 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
3613             Bruno Haible  <bruno@clisp.org>
3614
3615         Fix some modules' file list.
3616         * modules/fstatat (Files): Add m4/lstat.m4.
3617         * modules/openat (Files): Likewise.
3618         * modules/unlinkat (Files): Likewise.
3619
3620 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
3621
3622         maint.mk: fix tight-scope.mk generation in VPATH builds.
3623         * top/maint.mk (tight-scope.mk): Make sure to prefix file
3624         reference with $(srcdir) so that the file is found correctly even
3625         when running `make syntax-check' in a VPATH build.
3626
3627 2011-11-13  Bruno Haible  <bruno@clisp.org>
3628             Jim Meyering  <meyering@redhat.com>
3629
3630         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
3631         * tests/init.sh (compare): Remove "No differences encountered" or
3632         synonymous output from the 'diff' program.
3633
3634 2011-11-13  Bruno Haible  <bruno@clisp.org>
3635
3636         Makefile: Tweak indentation.
3637         * Makefile: Use tab as first character in every line that contains rule
3638         commands.
3639
3640 2011-11-13  Bruno Haible  <bruno@clisp.org>
3641
3642         Syntax check for copyright statements.
3643         * check-copyright: New file.
3644         * Makefile (sc_check_copyright): New rule.
3645
3646 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3647
3648         * build-aux/git-version-gen: Add --prefix to configure the tag
3649         match string.
3650
3651 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3652
3653         * build-aux/git-version-gen: Add --help and --version.
3654
3655 2011-11-12  Jim Meyering  <meyering@redhat.com>
3656
3657         revamp the other test-exclude?.sh scripts to use init.sh, too
3658         * tests/test-exclude1.sh: Use init.sh.
3659         * tests/test-exclude2.sh: Likewise.
3660         * tests/test-exclude3.sh: Likewise.
3661         * tests/test-exclude4.sh: Likewise.
3662         * tests/test-exclude5.sh: Likewise.
3663         * tests/test-exclude6.sh: Likewise.
3664         * tests/test-exclude7.sh: Likewise.
3665         * tests/test-exclude8.sh: Likewise.
3666         * modules/exclude-tests (Files): List init.sh.
3667
3668         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
3669         These shell scripts ignored failure of the binary test-exclude,
3670         so making the latter return 77 didn't cause them to be skipped.
3671         * tests/test-exclude5.sh: Exit with test-exclude's error status
3672         when that program fails.  Revamp to use init.sh.
3673         * tests/test-exclude2.sh: Likewise.
3674
3675         test-exclude: fix a typo
3676         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
3677
3678 2011-11-11  Bruno Haible  <bruno@clisp.org>
3679
3680         obstack: Fix compilation error on MSVC 9.
3681         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
3682
3683 2011-11-11  Jim Meyering  <meyering@redhat.com>
3684
3685         test-exclude: skip tests rather than failing on deficient systems
3686         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
3687         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
3688         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
3689         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
3690
3691 2011-11-10  Bruno Haible  <bruno@clisp.org>
3692
3693         ptsname_r test: Avoid gcc warning on glibc systems.
3694         * tests/test-ptsname_r.c (null_ptr): New function.
3695         (test_errors): Use it.
3696
3697 2011-11-10  Bruno Haible  <bruno@clisp.org>
3698
3699         ptsname_r: Avoid compilation error on OSF/1 5.1.
3700         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
3701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
3702         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
3703         function is not declared or incompatibly declared.
3704         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
3705         * modules/ptsname_r (Depends-on, configure.ac): Update.
3706         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
3707
3708 2011-11-10  Bruno Haible  <bruno@clisp.org>
3709
3710         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
3711         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
3712         When cross-compiling, guess yes on all platforms except AIX.
3713         Reported by Ludovic Courtès <ludo@gnu.org>.
3714
3715 2011-11-09  Bruno Haible  <bruno@clisp.org>
3716
3717         ptsname_r tests: Fix bugs.
3718         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
3719         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
3720
3721 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3722
3723         fstatat: work with cross-compilation
3724         Problem reported by Ludovic Courtès in
3725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
3726         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
3727         "cross-compiling" and assume the bug is present.  Replace
3728         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
3729         an inverted sense, to be more conservative about our assumptions.
3730         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
3731
3732 2011-11-09  Bruno Haible  <bruno@clisp.org>
3733
3734         Improve MODULES.html output.
3735         * modules/mkfifoat (Description): Use the word "function".
3736         * modules/readlinkat (Description): Likewise.
3737         * modules/symlinkat (Description): Likewise.
3738
3739 2011-11-09  Eric Blake  <eblake@redhat.com>
3740
3741         ptsname_r-tests: new test module
3742         * modules/ptsname_r-tests: New module.
3743         * tests/test-ptsname_r.c: New file.
3744
3745         ptsname_r: new module
3746         * modules/ptsname_r: New module.
3747         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
3748         * lib/ptsname.c (__ptsname_r): Split...
3749         * lib/ptsname_r.c: ...into new file.
3750         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3751         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
3752         * modules/stdlib (Makefile.am): Substitute witnesses.
3753         * lib/stdlib.in.h (ptsname_r): Declare it.
3754         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
3755         * MODULES.html.sh (Misc): Likewise.
3756         * modules/ptsname (Depends-on): Alter dependency.
3757         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
3758
3759 2011-11-09  Jim Meyering  <meyering@redhat.com>
3760
3761         announce-gen: be more concise when there's only one URL+tarball
3762         * build-aux/announce-gen (get_tool_versions): When you distribute
3763         only one type of tarball, combine the first two "Here are..."
3764         sections and make the key-checking grammar independent of
3765         how many tarballs there are.
3766
3767 2011-11-09  Eric Blake  <eblake@redhat.com>
3768
3769         openpty: provide a stub on mingw
3770         * lib/pty.in.h (includes): Provide forward declarations.
3771         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
3772
3773         raise: fix mingw handling of SIGPIPE
3774         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
3775
3776 2011-11-08  Bruno Haible  <bruno@clisp.org>
3777
3778         More conditional dependencies.
3779         * modules/faccessat (Depends-on): Add conditions.
3780         * modules/fchmodat (Depends-on): Likewise.
3781         * modules/fchownat (Depends-on): Likewise.
3782         * modules/fstatat (Depends-on): Likewise.
3783         * modules/mkfifoat (Depends-on): Likewise.
3784         * modules/readlinkat (Depends-on): Likewise.
3785         * modules/symlinkat (Depends-on): Likewise.
3786         * modules/unlinkat (Depends-on): Likewise.
3787         * modules/utimensat (Depends-on): Likewise.
3788         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
3789         * modules/linkat (Depends-on): Refine the conditions.
3790         * modules/renameat (Depends-on): Likewise.
3791
3792 2011-11-08  Bruno Haible  <bruno@clisp.org>
3793
3794         faccessat: Move AC_LIBOBJ invocation to module description.
3795         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
3796         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
3797         invocation from here...
3798         * modules/faccessat (configure.ac): ... to here. Invoke
3799         gl_PREREQ_FACCESSAT.
3800
3801 2011-11-08  Bruno Haible  <bruno@clisp.org>
3802
3803         faccessat: Simplify autoconf macro.
3804         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
3805         gl_FUNC_EUIDACCESS.
3806
3807 2011-11-08  Bruno Haible  <bruno@clisp.org>
3808
3809         renameat: Fix dependencies.
3810         * modules/renameat (Depends-on): Add stdbool.
3811
3812 2011-11-08  Bruno Haible  <bruno@clisp.org>
3813
3814         mkfifoat: Fix module description.
3815         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3816         not gl_UNISTD_MODULE_INDICATOR.
3817
3818 2011-11-08  Bruno Haible  <bruno@clisp.org>
3819
3820         fstatat: Remove unused dependency.
3821         * modules/fstatat (Depends-on): Remove fstat.
3822
3823 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3824
3825         GNUmakefile: behave when Makefile is missing.
3826         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3827
3828 2011-11-08  Bruno Haible  <bruno@clisp.org>
3829
3830         openat: Conditionalize dependencies.
3831         * lib/openat.c: Reduce the scope of some #includes.
3832         * modules/openat (Depends-on): Add conditions.
3833
3834 2011-11-07  Jim Meyering  <meyering@redhat.com>
3835
3836         maint.mk: extract GPG key ID without using a temporary file
3837         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3838         without using a temporary file.  Based on a suggestion from Werner Koch
3839         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3840
3841 2011-11-07  Eric Blake  <eblake@redhat.com>
3842
3843         grantpt: fix typo
3844         * lib/stdlib.in.h (grantpt): Check correct function.
3845
3846         maint.mk: silence new syntax check
3847         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3848
3849 2011-11-06  Bruno Haible  <bruno@clisp.org>
3850
3851         Doc about floating-point and math API.
3852         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3853         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3854
3855 2011-11-06  Bruno Haible  <bruno@clisp.org>
3856
3857         stdalign tests: Skip the test when compiled by Sun C.
3858         * tests/test-stdalign.c (main): Skip the test on Sun C.
3859
3860 2011-11-06  Bruno Haible  <bruno@clisp.org>
3861
3862         ansi-c++-opt: Complete the 2011-06-05 change.
3863         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3864         does not support namespaces, set the variable to "no", not to ":".
3865
3866 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3867
3868         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3869
3870 2011-11-06  Bruno Haible  <bruno@clisp.org>
3871
3872         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3873         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3874         (minus_zerol) [HP-UX]: New macro.
3875         (unary_minus) [HP-UX]: New function.
3876         (copysignl) [HP-UX]: Use unary_minus function.
3877
3878 2011-11-06  Bruno Haible  <bruno@clisp.org>
3879
3880         ldexp, ldexpf, ldexpl: Enhance tests.
3881         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3882         and tests/test-ldexpl.c.
3883         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3884         LDEXP, MIN_EXP, MAX_EXP): New macros.
3885         Include test-ldexp.h.
3886         (main): Just call test_function.
3887         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3888         infinity.h, nan.h.
3889         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3890         MAX_EXP): New macros.
3891         Include test-ldexp.h.
3892         (x, y): Remove variables.
3893         (main): Just call test_function.
3894         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3895         infinity.h, nan.h.
3896         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3897         MAX_EXP): New macros.
3898         Include test-ldexp.h.
3899         (x, y): Remove variables.
3900         (main): Just call test_function.
3901         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3902         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3903         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3904         (Depends-on): Add isnand-nolibm, signbit, float.
3905         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3906         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3907         (Depends-on): Add isnanf-nolibm, signbit, float.
3908
3909 2011-11-06  Bruno Haible  <bruno@clisp.org>
3910
3911         math tests: Cosmetics.
3912         * tests/test-math-c++.cc: Reorder declarations.
3913
3914 2011-11-05  Bruno Haible  <bruno@clisp.org>
3915
3916         fma*: Simplify test.
3917         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3918         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3919
3920         Tests for module 'fmal'.
3921         * modules/fmal-tests: New file.
3922         * tests/test-fmal1.c: New file.
3923         * tests/test-fmal2.c: New file.
3924
3925         New module 'fmal'.
3926         * lib/math.in.h (fmal): New declaration.
3927         * lib/fmal.c: New file.
3928         * m4/fmal.m4: New file.
3929         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3931         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3932         REPLACE_FMAL.
3933         * modules/fmal: New file.
3934         * doc/posix-functions/fmal.texi: Mention the new module and the various
3935         bugs.
3936
3937         Tests for module 'fmaf'.
3938         * modules/fmaf-tests: New file.
3939         * tests/test-fmaf1.c: New file.
3940         * tests/test-fmaf2.c: New file.
3941
3942         New module 'fmaf'.
3943         * lib/math.in.h (fmaf): New declaration.
3944         * lib/fmaf.c: New file.
3945         * m4/fmaf.m4: New file.
3946         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3948         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3949         REPLACE_FMAF.
3950         * modules/fmaf: New file.
3951         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3952         bugs.
3953
3954         Tests for module 'fma'.
3955         * modules/fma-tests: New file.
3956         * tests/test-fma1.c: New file.
3957         * tests/test-fma1.h: New file.
3958         * tests/test-fma2.c: New file.
3959         * tests/test-fma2.h: New file.
3960
3961         New module 'fma'.
3962         * lib/math.in.h (fma): New declaration.
3963         * lib/fma.c: New file.
3964         * m4/fma.m4: New file.
3965         * m4/fegetround.m4: New file.
3966         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3968         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3969         REPLACE_FMA.
3970         * modules/fma: New file.
3971         * doc/posix-functions/fma.texi: Mention the new module and the various
3972         bugs.
3973
3974         Extend gl_MATHFUNC.
3975         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3976         Support 'void' as argument type.
3977         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3978
3979 2011-11-05  Jim Meyering  <meyering@redhat.com>
3980
3981         maint.mk: also prohibit inclusion of dirent.h without use
3982         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3983
3984 2011-11-05  Bruno Haible  <bruno@clisp.org>
3985
3986         ldexpl tests: Avoid test failure on MSVC 9.
3987         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3988         value. Needed in order to enforce the conversion from a value greater
3989         than LDBL_MAX to Infinity.
3990
3991 2011-11-05  Bruno Haible  <bruno@clisp.org>
3992
3993         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3994         * modules/at-internal: New file, extracted from modules/openat.
3995         * modules/openat-h: New file.
3996         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3997         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3998         * modules/openat (Description): Add reference to POSIX function.
3999         (Files): Remove lib/openat.h, lib/openat-proc.c.
4000         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
4001         intprops, unistd.
4002         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
4003         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
4004         gl_FCNTL_MODULE_INDICATOR.
4005         (Include): Remove unistd.h, openat.h.
4006         * modules/areadlinkat (Files): Add lib/at-func.c.
4007         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4008         openat-die, openat-h, save-cwd.
4009         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
4010         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4011         openat-die, openat-h, save-cwd, unistd.
4012         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
4013         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4014         openat-h, save-cwd. Remove fcntl-h, openat.
4015         * modules/fchmodat (Files): Remove lib/openat.h.
4016         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4017         openat, stdbool, unistd.
4018         * modules/fchownat (Files): Remove lib/openat.h.
4019         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4020         openat, stdbool, sys_stat.
4021         * modules/fdopendir (Files): Remove lib/openat-priv.h,
4022         lib/openat-proc.c.
4023         (Depends-on): Add at-internal.
4024         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
4025         * modules/fstatat (Files): Remove lib/openat.h.
4026         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4027         stdbool, unistd.
4028         * modules/fts (Depends-on): Add openat-h.
4029         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
4030         openat.
4031         * modules/mkdirat (Files): Remove lib/openat.h.
4032         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4033         openat, stdbool, sys_stat.
4034         * modules/mkfifoat (Files): Add lib/at-func.c.
4035         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4036         openat-h, save-cwd. Remove fcntl-h, openat.
4037         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
4038         * modules/readlinkat (Files): Add lib/at-func.c.
4039         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4040         openat-h, save-cwd. Remove fcntl-h, openat.
4041         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
4042         openat.
4043         * modules/selinux-at (Files): Add lib/at-func.c.
4044         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4045         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
4046         * modules/symlinkat (Files): Add lib/at-func.c.
4047         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4048         openat-h, save-cwd. Remove fcntl-h, openat.
4049         * modules/unlinkat (Files): Remove lib/openat.h.
4050         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4051         stdbool.
4052         * modules/utimensat (Files): Add lib/at-func.c.
4053         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
4054         openat-die, openat-h, save-cwd.
4055         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
4056         * modules/fdutimensat-tests (Depends-on): Add openat.
4057         * modules/fstatat-tests (Depends-on): Add openat-h.
4058         * modules/readlinkat-tests (Depends-on): Add openat.
4059         * modules/symlinkat-tests (Depends-on): Add openat.
4060
4061 2011-11-05  Bruno Haible  <bruno@clisp.org>
4062
4063         openat: Include <stdbool.h>.
4064         * lib/openat.c: Include <stdbool.h>.
4065
4066 2011-11-04  Bruno Haible  <bruno@clisp.org>
4067
4068         fchownat, renameat, unlinkat: Fix dependencies.
4069         * modules/fchownat (Depends-on): Add fstatat.
4070         * modules/renameat (Depends-on): Likewise.
4071         * modules/unlinkat (Depends-on): Likewise.
4072
4073 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
4074
4075         openat: remove direct dependency on dirent
4076         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
4077         and hasn't been needed ever since fdopendir was split into its own
4078         module on 2009-08-31.
4079         * modules/openat (Depends-on): Remove dirent.
4080
4081 2011-11-04  Bruno Haible  <bruno@clisp.org>
4082
4083         renameat: Optimize code size.
4084         * modules/renameat (configure.ac): Don't compile at-func2.c if
4085         REPLACE_RENAMEAT is 1.
4086
4087 2011-11-04  Bruno Haible  <bruno@clisp.org>
4088
4089         openat tests: Fix file list.
4090         * modules/openat-tests (Files): Add tests/test-open.h.
4091
4092 2011-11-04  Bruno Haible  <bruno@clisp.org>
4093
4094         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
4095         * modules/fchmodat (Depends-on): Add openat-die.
4096         * modules/fchownat (Depends-on): Likewise.
4097         * modules/linkat (Depends-on): Likewise.
4098         * modules/renameat (Depends-on): Likewise.
4099         * modules/openat (Depends-on): Add dirent.
4100
4101 2011-11-04  Jim Meyering  <meyering@redhat.com>
4102
4103         at-func*.c: fix comments
4104         * lib/at-func2.c: Correct/improve first-line comment.
4105         * lib/at-func.c: Correct grammar in first-line comment.
4106
4107 2011-11-04  Bruno Haible  <bruno@clisp.org>
4108
4109         New module 'mkdirat', split off from module 'openat'.
4110         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
4111         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
4112         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
4113         * modules/mkdirat: New file, extracted from modules/openat.
4114         * modules/openat (Files): Remove lib/mkdirat.c.
4115         (Depends-on): Remove mkdir.
4116         (configure.ac): Remove AC_LIBOBJ of mkdirat.
4117         (Include): Remove <sys/stat.h>.
4118         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
4119         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
4120         tests/test-mkdir.h.
4121         (Depends-on): Remove ignore-value.
4122         (Makefile.am): Remove rules for test-mkdirat.
4123         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
4124         of module 'openat'.
4125         * NEWS: Mention the change.
4126
4127 2011-11-04  Bruno Haible  <bruno@clisp.org>
4128
4129         closedir: Avoid warning on mingw.
4130         * lib/closedir.c: Include <unistd.h>.
4131
4132 2011-11-04  Bruno Haible  <bruno@clisp.org>
4133
4134         New module 'fstatat', split off from module 'openat'.
4135         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
4136         defined.
4137         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
4138         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
4139         gl_FUNC_FSTATAT.
4140         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
4141         * modules/fstatat: New file, extracted from modules/openat.
4142         * modules/openat (Files): Remove lib/fstatat.c.
4143         (Depends-on): Remove lstat.
4144         (configure.ac): Remove AC_LIBOBJ of fstatat.
4145         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
4146         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
4147         tests/test-lstat.h, tests/test-stat.h.
4148         (Depends-on): Remove getcwd-lgpl.
4149         (Makefile.am): Remove rules for test-fstatat.
4150         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
4151         of module 'openat'.
4152         * NEWS: Mention the change.
4153         * modules/getcwd (Depends-on): Add fstatat.
4154         * modules/linkat (Depends-on): Likewise.
4155         * modules/mkfifoat-tests (Depends-on): Likewise.
4156         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
4157
4158 2011-11-03  Bruno Haible  <bruno@clisp.org>
4159
4160         New module 'unlinkat', split off from module 'openat'.
4161         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
4162         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
4163         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
4164         * modules/unlinkat: New file, extracted from modules/openat. Correct
4165         the dependency conditions.
4166         * modules/openat (Files): Remove lib/unlinkat.c.
4167         (Depends-on): Remove rmdir, unlink.
4168         (configure.ac): Remove AC_LIBOBJ of unlinkat.
4169         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
4170         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
4171         tests/test-rmdir.h, tests/test-unlink.h.
4172         (Depends-on): Remove unlinkdir.
4173         (Makefile.am): Remove rules for test-unlinkat.
4174         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
4175         of module 'openat'.
4176         * NEWS: Mention the change.
4177         * modules/linkat-tests (Depends-on): Add unlinkat.
4178         * modules/mkfifoat-tests (Depends-on): Likewise.
4179         * modules/readlinkat-tests (Depends-on): Likewise.
4180
4181 2011-11-02  Bruno Haible  <bruno@clisp.org>
4182
4183         New module 'fchmodat', split off from module 'openat'.
4184         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
4185         defined.
4186         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
4187         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
4188         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
4189         * modules/fchmodat: New file, extracted from modules/openat.
4190         * modules/openat (Files): Remove lib/fchmodat.c.
4191         (configure.ac): Remove AC_LIBOBJ of fchmodat.
4192         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
4193         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
4194         (Makefile.am): Remove rules for test-fchmodat.
4195         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
4196         of module 'openat'.
4197         * NEWS: Mention the change.
4198
4199 2011-11-02  Jim Meyering  <meyering@redhat.com>
4200
4201         putenv: indent #definition of "environ" to placate cppi
4202         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
4203
4204         gitlog-to-changelog: provide a ChangeLog-repair mechanism
4205         Git logs are often treated as immutable, because editing them
4206         changes the SHA1 checksums of all descendants.  Thus, errors in
4207         git logs tend to stay there forever.  However, when we generate
4208         a ChangeLog file -- typically for distribution -- from that git log,
4209         we can actually make corrections in the generated file.  The key
4210         lies in recording in machine-readable/applicable form the desired
4211         corrections.  See --help for description and an example.
4212         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
4213         (usage): Describe it; alphabetize option descriptions.
4214         (main): Honor the new option, carefully.
4215
4216 2011-11-01  Jim Meyering  <meyering@redhat.com>
4217
4218         gitlog-to-changelog: avoid an infloop
4219         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
4220         that ends up being empty.
4221
4222 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4223
4224         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
4225         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
4226         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
4227         contains (possibly-quoted) backslashes.  This should avoid
4228         all-too-common shell bugs if COMPLICATED contains backslashes in
4229         the "wrong" places.  Reported by David Evans in
4230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
4231         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
4232         because we want ASCII ranges.  Is there some reason we don't use
4233         the C locale everywhere in this script?
4234         (func_module, top level): Avoid unwanted pathname expansion when
4235         $repo_url_prefix or $repo_url_suffix_repl contain shell
4236         metacharacters like '?' and '*'.
4237
4238 2011-11-01  Bruno Haible  <bruno@clisp.org>
4239
4240         fchownat: Improve description.
4241         * modules/fchownat (Description): Add link to function.
4242
4243 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4244
4245         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
4246         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
4247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
4248         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
4249
4250 2011-11-01  Bruno Haible  <bruno@clisp.org>
4251
4252         alignof: Avoid collision with stdalign module.
4253         * lib/alignof.h (alignof): Remove macro.
4254         * NEWS: Mention the change.
4255         Reported by Paul Eggert.
4256
4257 2011-11-01  Bruno Haible  <bruno@clisp.org>
4258
4259         New module 'fchownat', split off from module 'openat'.
4260         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
4261         defined.
4262         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
4263         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
4264         invoke gl_FUNC_FCHOWNAT.
4265         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
4266         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
4267         * modules/fchownat: New file, extracted from modules/openat.
4268         * modules/openat (Files): Remove lib/fchownat.c.
4269         (Depends-on): Remove lchown.
4270         (configure.ac): Remove AC_LIBOBJ of fchownat.
4271         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
4272         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
4273         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
4274         (Depends-on): Remove mgetgroups, usleep, stat-time.
4275         (configure.ac): Remove test for getegid.
4276         (Makefile.am): Remove rules for test-fchownat.
4277         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
4278         of module 'openat'.
4279         * NEWS: Mention the change.
4280
4281 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
4282
4283         stdalign: port better to MSVC and to Sun C 5.11
4284         This fixes some of the problems reported by Bruno Haible in
4285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
4286         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
4287         shortcomings of MSVC and of Sun C 5.11.
4288         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
4289         around __declspec arg.
4290         * modules/stdalign-tests (Files): Add tests/macros.h.
4291         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
4292         Include macros.h, for ASSERT.
4293         (DECLARE_ALIGNED): Remove.
4294         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
4295         to catch bug), and to 1 if not (simplifies the rest of the code).
4296         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
4297         (CHECK_AUTO): Remove.
4298         (CHECK_ALIGNED): Check only the alignment of the static vars,
4299         since auto var alignment isn't supported by Sun C 5.11.
4300         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
4301         ASSERT failures are easier to diagnose.
4302
4303 2011-10-31  Bruno Haible  <bruno@clisp.org>
4304
4305         doc about some IRIX 5.3 problems.
4306         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
4307         on IRIX 5.3.
4308         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
4309         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
4310         5.3.
4311         * doc/posix-functions/grantpt.texi: Likewise.
4312         * doc/posix-functions/unlockpt.texi: Likewise.
4313         * doc/posix-functions/lgamma.texi: Likewise.
4314         * doc/posix-functions/nextafter.texi: Likewise.
4315         * doc/posix-functions/remainder.texi: Likewise.
4316         * doc/posix-functions/select.texi: Mention misplaced declaration on
4317         IRIX 5.3.
4318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4319
4320 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
4321
4322         gitlog-to-changelog: fix git-log invocation.
4323         git-log mishandles date strings before 1970-01-01 UTC, and there is
4324         no use to specify --since=1970-01-01 by default anyway.
4325         * build-aux/gitlog-to-changelog: By default, when no --since option
4326         was given, do not specify explicit --since option to git-log.
4327
4328 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
4329
4330         gitlog-to-changelog: new option --append-dot.
4331         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
4332         first non-blank line of each commit message terminated with a dot.
4333
4334 2011-10-30  Bruno Haible  <bruno@clisp.org>
4335
4336         ffsl, ffsll: Avoid compilation error due to 'restrict'.
4337         * lib/ffsl.h: Include <config.h>.
4338         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
4339
4340 2011-10-30  Jim Meyering  <meyering@redhat.com>
4341
4342         GNUmakefile: reenable "make syntax-check" for most projects
4343         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
4344         build-aux variable", "syntax-check" would do nothing but succeed with
4345         the "No version control files detected..." diagnostic (unless you
4346         happened to override _build-aux via cfg.mk).
4347         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
4348         to precede inclusion of maint.mk.  Otherwise, these variables would
4349         be used undefined in any project that does not override the default.
4350
4351 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
4352
4353         gitlog-to-changelog: treat a message with only blank lines as empty.
4354         * build-aux/gitlog-to-changelog: Move the code that removes leading and
4355         trailing blank lines before the code that issues a warning about an
4356         empty commit message.
4357
4358 2011-10-30  Jim Meyering  <meyering@redhat.com>
4359
4360         test-parse-datetime.c: avoid new DST-related false positive test failure
4361         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
4362         based on the time/date we'll convert, not the current time.
4363         Otherwise, the moment we cross a DST boundary like today's in
4364         Europe, (CEST to CET), that offset ends up being one hour off.
4365
4366 2011-10-27  Bruno Haible  <bruno@clisp.org>
4367
4368         fstat: Tweak documentation.
4369         * modules/fstat (Description): More precise description.
4370
4371 2011-10-27  Bruno Haible  <bruno@clisp.org>
4372
4373         Update documentation regarding 'largefile' module.
4374         * doc/posix-functions/fstat.texi: Tweak wording.
4375         * doc/posix-functions/opendir.texi: Mention that the module fixes the
4376         problems with huge directories and/or small ino_t types.
4377         * doc/posix-functions/readdir.texi: Likewise.
4378         * doc/posix-functions/rewinddir.texi: Likewise.
4379
4380 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
4381
4382         maint.mk: don't maintain a second build-aux variable.
4383         * maint.mk (build_aux): Removed.  The maintainer-makefile module
4384         depends on GNUmakefile, which already maintains a cfg.mk
4385         overridable $(_build-aux) for projects with a non-standard
4386         build-aux directory location, although without the $(srcdir)
4387         prefix.  Use that variable consistently instead of introducing a
4388         second one.  Adjust all call sites.
4389
4390 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
4391
4392         Add stdalign module and use it in other modules.
4393         This is based on a previous proposal by Bruno Haible
4394         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
4395
4396         stdalign: new module
4397         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
4398         * modules/stdalign: New files.
4399         * MODULES.html.sh (c1x_core_properties): Add stdalign.
4400         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
4401
4402         stdalign-tests: new module
4403         * modules/stdalign-tests, tests/test-stdalign.c: New files.
4404
4405         argp: use stdalign
4406         * lib/argp-parse.c: Include <stdalign.h>.
4407         (alignof): Remove.
4408         * modules/argp (Depends-on): Add stdalign.
4409
4410         crypto libraries: use stdalign
4411         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
4412         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
4413         Do not include <stdlib.h> twice, in md4.c.
4414         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
4415         because we are accessing a pointer's bit-pattern, not a size.
4416         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
4417         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
4418         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
4419         * modules/crypto/sha512: Likewise.
4420
4421         sys_socket: use stdalign, not alignof
4422         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
4423         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
4424
4425 2011-10-27  Bruno Haible  <bruno@clisp.org>
4426
4427         raise test: Avoid a test failure on Linux/MIPS.
4428         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
4429         because 99 is a valid signal on Linux/MIPS.
4430
4431 2011-10-27  Bruno Haible  <bruno@clisp.org>
4432
4433         nonblocking tests: Fix test failure on Linux/MIPS.
4434         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
4435         Set to 270000.
4436
4437 2011-10-27  Bruno Haible  <bruno@clisp.org>
4438
4439         utimensat: Work around problem on Linux/hppa.
4440         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
4441         values.
4442         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
4443
4444 2011-10-25  Jim Meyering  <meyering@redhat.com>
4445
4446         maint.mk: fix a bug in sc_prohibit_stddef_without_use
4447         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
4448         after symbols like NULL, size_t, etc.
4449         Reported by Alfred M. Szmidt.
4450
4451         maint.mk: exempt ENODATA from a syntax-check rule
4452         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
4453         from the sc_prohibit_always-defined_macros syntax-check rule.
4454         Add a comment.  See this for more details:
4455         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
4456
4457 2011-10-23  Jim Meyering  <meyering@redhat.com>
4458
4459         fts: close parent dir FD before returning from post-traversal fts_read
4460         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
4461         unlink A, even though an FD open on A remained.  This is suboptimal
4462         (holding a file descriptor open longer than needed), but otherwise not
4463         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
4464         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
4465         that represents a real problem: it causes the removal of A to fail
4466         with e.g., "rm: cannot remove `A': Device or resource busy"
4467
4468         fts visits each directory twice and keeps a cache (fts_fd_ring) of
4469         directory file descriptors.  After completing the final, FTS_DP,
4470         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
4471         cache, but then proceeded to add a new FD to it via the subsequent
4472         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
4473         final file descriptor would be closed only via fts_close's call to
4474         fd_ring_clear.  Now, it is usually closed earlier, via the final
4475         FTS_DP-returning fts_read call.
4476         * lib/fts.c (restore_initial_cwd): New function, converted from
4477         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
4478         Update callers.
4479         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
4480         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
4481
4482 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
4483             Bruno Haible  <bruno@clisp.org>
4484             Jim Meyering  <jim@meyering.net>
4485
4486         readme-release: improve safety of release prep instructions.
4487         * README-release: Don't git pull all branches when only master
4488         is needed for the release process.
4489         Run make maintainer-clean before changing trees and merging.
4490         Don't try to run ./configure right after git pull in case files
4491         that influence the bootstrap process have changed, move the
4492         ./configure step to after running ./bootstrap.
4493         Don't bootstrap "one last time"... it's the first time!
4494
4495 2011-10-22  Bruno Haible  <bruno@clisp.org>
4496
4497         errno, strerror-override: Support for MSVC 10.
4498         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
4499         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
4500         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
4501         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
4502         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
4503         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
4504         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
4505         Assign values compatible with MSVC 10.
4506         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
4507         New macros.
4508         (GNULIB_defined_EWINSOCK): New macro.
4509         * lib/strerror-override.c (strerror_override): Update accordingly.
4510         * lib/strerror-override.h: Likewise.
4511         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
4512         longer equal to the corresponding errno value.
4513         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4514
4515 2011-10-22  Bruno Haible  <bruno@clisp.org>
4516
4517         perror: Recognize when test program crashes.
4518         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
4519         strerror, set gl_cv_func_perror_works to no.
4520         Reported by Daniel Richard G. <skunk@iskunk.org>.
4521
4522         perror: Fix indentation.
4523         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
4524
4525 2011-10-22  Bruno Haible  <bruno@clisp.org>
4526
4527         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
4528         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
4529         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
4530         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
4531         functions, not as a macro.
4532         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
4533         macros.
4534         (isfinite, isinf, isnan, signbit): Check overloaded functions and
4535         absence of macro.
4536         Suggested by Eric Blake.
4537         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4538
4539 2011-10-21  Bruno Haible  <bruno@clisp.org>
4540
4541         relocatable-prog-wrapper: Don't leave object files behind.
4542         * build-aux/install-reloc: Re-synchronize list of .o files to be
4543         removed with list of compilation units.
4544
4545 2011-10-20  Bruno Haible  <bruno@clisp.org>
4546
4547         openpty, posix_openpt: Remove code duplication.
4548         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
4549         * lib/openpty.c: Include <stdlib.h>.
4550         (openpty): Use posix_openpt on all platforms except IRIX.
4551         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
4552
4553 2011-10-20  Bruno Haible  <bruno@clisp.org>
4554
4555         unlockpt: Detect invalid argument.
4556         * lib/unlockpt.c: Include <fcntl.h>.
4557         (unlockpt): Check whether fd is valid, using fcntl().
4558         * modules/unlockpt (Depends-on): Add fcntl-h.
4559
4560 2011-10-20  Bruno Haible  <bruno@clisp.org>
4561
4562         openpty: Avoid compilation error on AIX 6.1.
4563         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
4564
4565 2011-10-20  Bruno Haible  <bruno@clisp.org>
4566
4567         posix_openpt: Support for OpenBSD.
4568         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
4569         (posix_openpt) [OpenBSD]: New code.
4570         * lib/grantpt.c: Include <fcntl.h>.
4571         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
4572         * modules/grantpt (Depends-on): Add fcntl-h.
4573
4574 2011-10-20  Bruno Haible  <bruno@clisp.org>
4575
4576         posix_openpt test: Coding style.
4577         * tests/test-posix_openpt.c: Use GNU coding style.
4578
4579 2011-10-20  Bruno Haible  <bruno@clisp.org>
4580
4581         grantpt: Support --avoid=pt_chown.
4582         * modules/grantpt (Files): Add lib/pty-private.h.
4583
4584 2011-10-20  Bruno Haible  <bruno@clisp.org>
4585
4586         posix_openpt: Fix autoconf macro.
4587         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
4588         unneeded check for _getpty.
4589
4590 2011-10-20  Bruno Haible  <bruno@clisp.org>
4591
4592         openpty: Update comments.
4593         * lib/openpty.c: Add comments about Minix.
4594
4595 2011-10-19  Eric Blake  <eblake@redhat.com>
4596
4597         openpty: relax license
4598         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
4599
4600         pt_chown: use configmake to simplify build
4601         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
4602
4603         ptsname and others: relax license
4604         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
4605         * modules/unlockpt (License): Likewise.
4606         * modules/pt_chown (License): Likewise.
4607         * modules/ptsname (License): Likewise.
4608         * modules/ttyname_r (License): Likewise.
4609
4610 2011-10-19  Jim Meyering  <meyering@redhat.com>
4611
4612         posix_openpt: remove spurious #endif
4613         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
4614
4615 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
4616
4617         maint.mk: Respect $(build_aux) in web-manual rule.
4618         * top/maint.mk (web-manual): Find gen-announce script in user's
4619         $(build_aux) directory instead of hard-coding 'build-aux'.
4620
4621 2011-10-19  Bruno Haible  <bruno@clisp.org>
4622
4623         posix_openpt: Fix compilation error.
4624         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
4625         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
4626         Mention the openpty module as an alternative.
4627
4628 2011-10-19  Bruno Haible  <bruno@clisp.org>
4629
4630         Support for old NeXTstep 3.3 frexp().
4631         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
4632         execution time of the test to 5 seconds.
4633         Reported by Daniel Richard G. <skunk@iskunk.org>.
4634
4635 2011-10-19  Bruno Haible  <bruno@clisp.org>
4636
4637         Support for old NeXTstep 3.3 sed.
4638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
4639         part, use /.../, not \|...|. Escape periods in the header file name.
4640         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4641         Reported by Daniel Richard G. <skunk@iskunk.org>.
4642
4643 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4644
4645         Support for old NeXTstep 3.3 gcc.
4646         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
4647         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
4648         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
4649         * lib/spawn.in.h (_Restrict_arr_): Likewise.
4650         * lib/regex.h (_Restrict_arr_): Likewise.
4651         * lib/regex_internal.h (re_token_t): Likewise.
4652         * lib/regexec.c (check_node_accept_bytes): Likewise.
4653         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
4654
4655 2011-10-18  Eric Blake  <eblake@redhat.com>
4656
4657         posix_openpt: new module
4658         * modules/posix_openpt: New module.
4659         * m4/posix_openpt.m4: New file.
4660         * lib/posix_openpt.c: Likewise.
4661         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4662         (gl_STDLIB_H_DEFAULTS): Set defaults.
4663         * modules/stdlib (Makefile.am): Substitute macros.
4664         * lib/stdlib.in.h (posix_openpt): Declare.
4665         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
4666         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
4667         * modules/posix_openpt-tests: New test module.
4668         * tests/test-posix_openpt.c: New test.
4669
4670 2011-10-15  Bruno Haible  <bruno@clisp.org>
4671
4672         xstrtoll: Fix compilation failure.
4673         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
4674         from lib/strtol.c.
4675         * doc/posix-headers/limits.texi: Mention missing numerical limits on
4676         some platforms.
4677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4678
4679 2011-10-15  Bruno Haible  <bruno@clisp.org>
4680
4681         vasnprintf: Optimize bit search operation.
4682         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
4683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
4684         gl_DOUBLE_EXPONENT_LOCATION.
4685         * modules/vasnprintf (Files): Add m4/exponentd.m4.
4686         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4687         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4688         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4689         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4690         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4691         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4692         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4693         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
4694
4695 2011-10-15  Bruno Haible  <bruno@clisp.org>
4696
4697         vasnprintf: Fix comments.
4698         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
4699
4700 2011-10-14  Bruno Haible  <bruno@clisp.org>
4701
4702         Tests for module 'integer_length_ll'.
4703         * modules/integer_length_ll-tests: New file.
4704         * tests/test-integer_length_ll.c: New file.
4705
4706         New module 'integer_length_ll'.
4707         * lib/integer_length_ll.c: New file.
4708         * modules/integer_length_ll: New file.
4709
4710 2011-10-14  Bruno Haible  <bruno@clisp.org>
4711
4712         Tests for module 'integer_length_l'.
4713         * modules/integer_length_l-tests: New file.
4714         * tests/test-integer_length_l.c: New file.
4715
4716         New module 'integer_length_l'.
4717         * lib/integer_length_l.c: New file.
4718         * modules/integer_length_l: New file.
4719
4720 2011-10-14  Bruno Haible  <bruno@clisp.org>
4721
4722         Tests for module 'integer_length'.
4723         * modules/integer_length-tests: New file.
4724         * tests/test-integer_length.c: New file.
4725
4726         New module 'integer_length'.
4727         * lib/integer_length.h: New file.
4728         * lib/integer_length.c: New file.
4729         * modules/integer_length: New file.
4730
4731 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4732
4733         popen: Fix dependency conditions.
4734         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
4735
4736 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4737
4738         perror: Fix autoconf test.
4739         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
4740         <stdlib.h> and <string.h>.
4741
4742 2011-10-14  Bruno Haible  <bruno@clisp.org>
4743
4744         ffsl: Optimize on 64-bit platforms.
4745         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
4746         unrolling.
4747
4748 2011-10-13  Bruno Haible  <bruno@clisp.org>
4749
4750         ffsl: Optimize on 32-bit platforms.
4751         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
4752         use ffs() without a loop.
4753
4754         ffsl, ffsll: Optimize for GCC.
4755         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
4756         * lib/ffsl.c (GCC_BUILTIN): New macro.
4757         * lib/ffsll.c (GCC_BUILTIN): Likewise.
4758
4759 2011-10-13  Bruno Haible  <bruno@clisp.org>
4760
4761         ffs, bcopy, memset: Support symbol renaming via config.h.
4762         * lib/ffs.c: Include <config.h>.
4763         * lib/bcopy.c: Likewise.
4764         * lib/memset.c: Likewise.
4765
4766 2011-10-10  Bruno Haible  <bruno@clisp.org>
4767
4768         atanl: Simplify for platforms where 'long double' == 'double'.
4769         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4770         alternative implementation.
4771         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4772         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4773         * modules/atanl (Depends-on): Add atan. Update conditions.
4774
4775 2011-10-10  Bruno Haible  <bruno@clisp.org>
4776
4777         acosl: Simplify for platforms where 'long double' == 'double'.
4778         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4779         alternative implementation.
4780         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4781         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4782         * modules/acosl (Depends-on): Add acos. Update conditions.
4783
4784 2011-10-10  Bruno Haible  <bruno@clisp.org>
4785
4786         asinl: Simplify for platforms where 'long double' == 'double'.
4787         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4788         alternative implementation.
4789         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4790         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4791         * modules/asinl (Depends-on): Add asin. Update conditions.
4792
4793 2011-10-10  Bruno Haible  <bruno@clisp.org>
4794
4795         tanl: Simplify for platforms where 'long double' == 'double'.
4796         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4797         implementation.
4798         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4799         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4800         * modules/tanl (Depends-on): Add tan. Update conditions.
4801         (configure.ac): Don't compile trigl.c if
4802         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4803
4804 2011-10-10  Bruno Haible  <bruno@clisp.org>
4805
4806         cosl: Simplify for platforms where 'long double' == 'double'.
4807         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4808         implementation.
4809         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4810         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4811         * modules/cosl (Depends-on): Add cos. Update conditions.
4812         (configure.ac): Don't compile sincosl.c and trigl.c if
4813         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4814
4815 2011-10-10  Bruno Haible  <bruno@clisp.org>
4816
4817         sinl: Simplify for platforms where 'long double' == 'double'.
4818         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4819         implementation.
4820         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4821         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4822         * modules/sinl (Depends-on): Add sin. Update conditions.
4823         (configure.ac): Don't compile sincosl.c and trigl.c if
4824         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4825
4826 2011-10-10  Bruno Haible  <bruno@clisp.org>
4827
4828         logl: Simplify for platforms where 'long double' == 'double'.
4829         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4830         implementation.
4831         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4832         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4833         * modules/logl (Depends-on): Add log. Update conditions.
4834
4835 2011-10-10  Bruno Haible  <bruno@clisp.org>
4836
4837         expl: Simplify for platforms where 'long double' == 'double'.
4838         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4839         implementation.
4840         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4841         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4842         * modules/expl (Depends-on): Add exp. Update conditions.
4843
4844 2011-10-10  Bruno Haible  <bruno@clisp.org>
4845
4846         sqrtl: Simplify for platforms where 'long double' == 'double'.
4847         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4848         alternative implementation.
4849         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4850         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4851         * modules/sqrtl (Depends-on): Update conditions.
4852
4853 2011-10-10  Bruno Haible  <bruno@clisp.org>
4854
4855         ldexpl: Simplify for platforms where 'long double' == 'double'.
4856         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4857         alternative implementation.
4858         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4859         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4860         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4861
4862 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4863
4864         ffsll: set correct witness
4865         * modules/ffsll (configure.ac): Fix typo.
4866
4867 2011-10-10  Bruno Haible  <bruno@clisp.org>
4868
4869         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4870         * lib/printf-frexpl.c: Include <config.h>.
4871         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4872         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4873         second time.
4874         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4875         gl_LONG_DOUBLE_VS_DOUBLE.
4876         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4877         conditions.
4878
4879 2011-10-10  Bruno Haible  <bruno@clisp.org>
4880
4881         frexpl: Simplify for platforms where 'long double' == 'double'.
4882         * lib/frexpl.c: Include <config.h>.
4883         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4884         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4885         time.
4886         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4887         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4888         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4889         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4890         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4891         conditions.
4892
4893 2011-10-10  Jim Meyering  <meyering@redhat.com>
4894
4895         test-renameat: don't leave behind a temporary file
4896         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4897           ERROR: files left in build directory after distclean:
4898           ./gltests/test-renameat.too
4899           make[1]: *** [distcleancheck] Error 1
4900         Reported by Tom G. Christensen.
4901
4902 2011-10-09  Bruno Haible  <bruno@clisp.org>
4903
4904         rint: Determine RINT_LIBM correctly on AIX 7.
4905         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4906         directly, not only through a function pointer. Also accept an optional
4907         4th argument with extra code.
4908         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4909         rintf() call by gcc when optimizing.
4910
4911         mathfunc.m4: Refactor.
4912         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4913         m4 variable.
4914
4915 2011-10-09  Bruno Haible  <bruno@clisp.org>
4916
4917         rintl: Simplify for platforms where 'long double' == 'double'.
4918         * lib/rintl.c: Include <config.h>.
4919         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4920         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4921         time.
4922         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4923         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4924         * modules/rintl (Depends-on): Add rint. Update conditions.
4925
4926 2011-10-09  Bruno Haible  <bruno@clisp.org>
4927
4928         roundl: Simplify for platforms where 'long double' == 'double'.
4929         * lib/roundl.c: Include <config.h>.
4930         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4931         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4932         time.
4933         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4934         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4935         * modules/roundl (Depends-on): Add round. Update conditions.
4936
4937 2011-10-09  Bruno Haible  <bruno@clisp.org>
4938
4939         truncl: Simplify for platforms where 'long double' == 'double'.
4940         * lib/truncl.c: Include <config.h>.
4941         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4942         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4943         time.
4944         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4945         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4946         * modules/truncl (Depends-on): Add trunc. Update conditions.
4947
4948 2011-10-09  Bruno Haible  <bruno@clisp.org>
4949
4950         ceill: Simplify for platforms where 'long double' == 'double'.
4951         * lib/ceill.c: Include <config.h>.
4952         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4953         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4954         time.
4955         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4956         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4957         * modules/ceill (Depends-on): Add ceil. Update conditions.
4958
4959 2011-10-09  Bruno Haible  <bruno@clisp.org>
4960
4961         floorl: Simplify for platforms where 'long double' == 'double'.
4962         * lib/floorl.c: Include <config.h>.
4963         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4964         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4965         time.
4966         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4967         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4968         * modules/floorl (Depends-on): Add floor. Update conditions.
4969
4970 2011-10-09  Bruno Haible  <bruno@clisp.org>
4971
4972         rint: Fix ordering constraints.
4973         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4974         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4975         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4976
4977 2011-10-09  Bruno Haible  <bruno@clisp.org>
4978
4979         copysignl: Simplify for platforms where 'long double' == 'double'.
4980         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4981         alternative.
4982         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4983         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4984         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4985
4986 2011-10-09  Bruno Haible  <bruno@clisp.org>
4987
4988         Tests for module 'rintl'.
4989         * modules/rintl-tests: New file.
4990         * tests/test-rintl.c: New file.
4991
4992         New module 'rintl'.
4993         * lib/math.in.h (rintl): New declaration.
4994         * lib/rintl.c: New file.
4995         * m4/rintl.m4: New file.
4996         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4998         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4999         * modules/rintl: New file.
5000         * tests/test-math-c++.cc: Check the declaration of rintl.
5001         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5002         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
5003         * doc/posix-functions/rintl.texi: Mention the new module.
5004
5005 2011-10-09  Bruno Haible  <bruno@clisp.org>
5006
5007         Tests for module 'rintf'.
5008         * modules/rintf-tests: New file.
5009         * tests/test-rintf.c: New file.
5010
5011         New module 'rintf'.
5012         * lib/math.in.h (rintf): New declaration.
5013         * lib/rintf.c: New file.
5014         * m4/rintf.m4: New file.
5015         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
5016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
5017         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
5018         * modules/rintf: New file.
5019         * tests/test-math-c++.cc: Check the declaration of rintf.
5020         * doc/posix-functions/rintf.texi: Mention the new module.
5021
5022 2011-10-09  Bruno Haible  <bruno@clisp.org>
5023
5024         rint: Support for MSVC.
5025         * lib/math.in.h (rint): New declaration.
5026         * lib/rint.c: New file.
5027         * m4/rint.m4: New file.
5028         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
5029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
5030         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
5031         * modules/rint (Description): Fix.
5032         (Files): Add lib/rint.c, m4/rint.m4.
5033         (Depends-on): Add math.
5034         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
5035         gl_MATH_MODULE_INDICATOR.
5036         * tests/test-math-c++.cc: Check the declaration of rint.
5037         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5038         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
5039         * doc/posix-functions/rint.texi: Mention the replacement provided by
5040         the module.
5041
5042         rint tests: More tests.
5043         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
5044         minus-zero.h, infinity.h, nan.h.
5045         (main): Skip the test if the current rounding mode is not standard. Add
5046         tests for negative numbers, minus zero, infinity, NaN.
5047         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
5048         tests/nan.h.
5049         (Depends-on): Add isnand-nolibm.
5050
5051 2011-10-09  Bruno Haible  <bruno@clisp.org>
5052
5053         Tests for module 'copysignl'.
5054         * modules/copysignl-tests: New file.
5055         * tests/test-copysignl.c: New file.
5056
5057         New module 'copysignl'.
5058         * lib/math.in.h (copysignl): New declaration.
5059         * lib/copysignl.c: New file.
5060         * m4/copysignl.m4: New file.
5061         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
5062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
5063         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
5064         HAVE_COPYSIGNL.
5065         * modules/copysignl: New file.
5066         * tests/test-math-c++.cc: Check the declaration of copysignl.
5067         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5068         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
5069         * doc/posix-functions/copysignl.texi: Mention the new module.
5070
5071 2011-10-09  Bruno Haible  <bruno@clisp.org>
5072
5073         Tests for module 'copysignf'.
5074         * modules/copysignf-tests: New file.
5075         * tests/test-copysignf.c: New file.
5076
5077         New module 'copysignf'.
5078         * lib/math.in.h (copysignf): New declaration.
5079         * lib/copysignf.c: New file.
5080         * m4/copysignf.m4: New file.
5081         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
5082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
5083         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
5084         HAVE_COPYSIGNF.
5085         * modules/copysignf: New file.
5086         * tests/test-math-c++.cc: Check the declaration of copysignf.
5087         * doc/posix-functions/copysignf.texi: Mention the new module.
5088
5089 2011-10-09  Bruno Haible  <bruno@clisp.org>
5090
5091         Ensure that HAVE_* variables are set to 1 before they are set to 0.
5092         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
5093         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
5094         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
5096         gl_SIGNAL_H_DEFAULTS.
5097
5098 2011-10-09  Bruno Haible  <bruno@clisp.org>
5099
5100         poll: Make macro safer.
5101         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
5102         ac_cv_header_poll_h is not set.
5103
5104 2011-10-09  Bruno Haible  <bruno@clisp.org>
5105
5106         copysign: Provide replacement.
5107         * lib/math.in.h (copysign): New declaration.
5108         * lib/copysign.c: New file.
5109         * m4/copysign.m4: New file.
5110         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
5111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
5112         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
5113         HAVE_COPYSIGN.
5114         * modules/copysign (Description): Clarify.
5115         (Files): Add lib/copysign.c, m4/copysign.m4.
5116         (Depends-on): Add math, signbit.
5117         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
5118         gl_MATH_MODULE_INDICATOR.
5119         * tests/test-math-c++.cc: Check the declaration of copysign.
5120         * doc/posix-functions/copysign.texi: Mention the effects of the module
5121         on Minix and MSVC.
5122
5123 2011-10-09  Bruno Haible  <bruno@clisp.org>
5124
5125         isinf: Ensure macro on AIX 5.1.
5126         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
5127         macro.
5128         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
5129
5130 2011-10-09  Bruno Haible  <bruno@clisp.org>
5131
5132         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
5133         * modules/snprintf-posix-tests (configure.ac): Require
5134         gl_LONG_DOUBLE_VS_DOUBLE.
5135         * modules/sprintf-posix-tests (configure.ac): Likewise.
5136         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
5137         * modules/vasprintf-posix-tests (configure.ac): Likewise.
5138         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
5139         * modules/vsprintf-posix-tests (configure.ac): Likewise.
5140         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
5141         tests on platforms where 'long double' is the same as 'double'.
5142         * tests/test-sprintf-posix.h (test_function): Likewise.
5143         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5144         * tests/test-vasprintf-posix.c (test_function): Likewise.
5145
5146         *printf: Fix for platforms where 'long double' == 'double'.
5147         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
5148         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
5149         * modules/dprintf-posix (Files): Add m4/math_h.m4.
5150         * modules/fprintf-posix (Files): Likewise.
5151         * modules/obstack-printf-posix (Files): Likewise.
5152         * modules/snprintf-posix (Files): Likewise.
5153         * modules/sprintf-posix (Files): Likewise.
5154         * modules/vasnprintf (Files): Likewise.
5155         * modules/vasnprintf-posix (Files): Likewise.
5156         * modules/vasprintf-posix (Files): Likewise.
5157         * modules/vdprintf-posix (Files): Likewise.
5158         * modules/vfprintf-posix (Files): Likewise.
5159         * modules/vsnprintf-posix (Files): Likewise.
5160         * modules/vsprintf-posix (Files): Likewise.
5161         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5162         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5163         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5164         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5165         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5166         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5167         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5168
5169         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
5170         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
5171         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5172         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
5173         'long double'.
5174         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
5175
5176         isinf: Fix for platforms where 'long double' == 'double'.
5177         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5178         Don't blindly assume 80-bit 'long double'.
5179
5180         isfinite: Fix for platforms where 'long double' == 'double'.
5181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5182         Don't blindly assume 80-bit 'long double'.
5183
5184         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
5185         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
5186         * modules/isfinite-tests (configure.ac): Require
5187         gl_LONG_DOUBLE_VS_DOUBLE.
5188         * modules/isinf-tests (configure.ac): Likewise.
5189         * modules/isnan-tests (configure.ac): Likewise.
5190         * modules/isnanl-tests (configure.ac): Likewise.
5191         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
5192         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
5193         tests on platforms where 'long double' is the same as 'double'.
5194         * tests/test-isinf.c (test_isinfl): Likewise.
5195         * tests/test-isnan.c (test_long_double): Likewise.
5196         * tests/test-isnanl.h (main): Likewise.
5197
5198 2011-10-08  Bruno Haible  <bruno@clisp.org>
5199
5200         Tests for module 'tanhf'.
5201         * modules/tanhf-tests: New file.
5202         * tests/test-tanhf.c: New file.
5203
5204         New module 'tanhf'.
5205         * lib/math.in.h (tanhf): New declaration.
5206         * lib/tanhf.c: New file.
5207         * m4/tanhf.m4: New file.
5208         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
5209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
5210         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
5211         * modules/tanhf: New file.
5212         * tests/test-math-c++.cc: Check the declaration of tanhf.
5213         * doc/posix-functions/tanhf.texi: Mention the new module.
5214
5215         tanh: Use a .m4 file.
5216         * m4/tanh.m4: New file.
5217         * modules/tanh (Files): Add it.
5218         (configure.ac): Just invoke gl_FUNC_TANH.
5219
5220 2011-10-08  Bruno Haible  <bruno@clisp.org>
5221
5222         Tests for module 'coshf'.
5223         * modules/coshf-tests: New file.
5224         * tests/test-coshf.c: New file.
5225
5226         New module 'coshf'.
5227         * lib/math.in.h (coshf): New declaration.
5228         * lib/coshf.c: New file.
5229         * m4/coshf.m4: New file.
5230         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
5231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
5232         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
5233         * modules/coshf: New file.
5234         * tests/test-math-c++.cc: Check the declaration of coshf.
5235         * doc/posix-functions/coshf.texi: Mention the new module.
5236
5237         cosh: Use a .m4 file.
5238         * m4/cosh.m4: New file.
5239         * modules/cosh (Files): Add it.
5240         (configure.ac): Just invoke gl_FUNC_COSH.
5241
5242 2011-10-08  Bruno Haible  <bruno@clisp.org>
5243
5244         Tests for module 'sinhf'.
5245         * modules/sinhf-tests: New file.
5246         * tests/test-sinhf.c: New file.
5247
5248         New module 'sinhf'.
5249         * lib/math.in.h (sinhf): New declaration.
5250         * lib/sinhf.c: New file.
5251         * m4/sinhf.m4: New file.
5252         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
5253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
5254         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
5255         * modules/sinhf: New file.
5256         * tests/test-math-c++.cc: Check the declaration of sinhf.
5257         * doc/posix-functions/sinhf.texi: Mention the new module.
5258
5259         sinh: Use a .m4 file.
5260         * m4/sinh.m4: New file.
5261         * modules/sinh (Files): Add it.
5262         (configure.ac): Just invoke gl_FUNC_SINH.
5263
5264 2011-10-08  Bruno Haible  <bruno@clisp.org>
5265
5266         Tests for module 'atan2f'.
5267         * modules/atan2f-tests: New file.
5268         * tests/test-atan2f.c: New file.
5269
5270         New module 'atan2f'.
5271         * lib/math.in.h (atan2f): New declaration.
5272         * lib/atan2f.c: New file.
5273         * m4/atan2f.m4: New file.
5274         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
5275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
5276         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
5277         * modules/atan2f: New file.
5278         * tests/test-math-c++.cc: Check the declaration of atan2f.
5279         * doc/posix-functions/atan2f.texi: Mention the new module.
5280
5281         atan2: Use a .m4 file.
5282         * m4/atan2.m4: New file.
5283         * modules/atan2 (Files): Add it.
5284         (configure.ac): Just invoke gl_FUNC_ATAN2.
5285
5286 2011-10-08  Bruno Haible  <bruno@clisp.org>
5287
5288         Tests for module 'atanf'.
5289         * modules/atanf-tests: New file.
5290         * tests/test-atanf.c: New file.
5291
5292         New module 'atanf'.
5293         * lib/math.in.h (atanf): New declaration.
5294         * lib/atanf.c: New file.
5295         * m4/atanf.m4: New file.
5296         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
5297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
5298         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
5299         * modules/atanf: New file.
5300         * tests/test-math-c++.cc: Check the declaration of atanf.
5301         * doc/posix-functions/atanf.texi: Mention the new module.
5302
5303         atan: Use a .m4 file.
5304         * m4/atan.m4: New file.
5305         * modules/atan (Files): Add it.
5306         (configure.ac): Just invoke gl_FUNC_ATAN.
5307
5308 2011-10-08  Bruno Haible  <bruno@clisp.org>
5309
5310         Tests for module 'acosf'.
5311         * modules/acosf-tests: New file.
5312         * tests/test-acosf.c: New file.
5313
5314         New module 'acosf'.
5315         * lib/math.in.h (acosf): New declaration.
5316         * lib/acosf.c: New file.
5317         * m4/acosf.m4: New file.
5318         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
5319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
5320         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
5321         * modules/acosf: New file.
5322         * tests/test-math-c++.cc: Check the declaration of acosf.
5323         * doc/posix-functions/acosf.texi: Mention the new module.
5324
5325         acos: Use a .m4 file.
5326         * m4/acos.m4: New file.
5327         * modules/acos (Files): Add it.
5328         (configure.ac): Just invoke gl_FUNC_ACOS.
5329
5330 2011-10-08  Bruno Haible  <bruno@clisp.org>
5331
5332         Tests for module 'asinf'.
5333         * modules/asinf-tests: New file.
5334         * tests/test-asinf.c: New file.
5335
5336         New module 'asinf'.
5337         * lib/math.in.h (asinf): New declaration.
5338         * lib/asinf.c: New file.
5339         * m4/asinf.m4: New file.
5340         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
5341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
5342         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
5343         * modules/asinf: New file.
5344         * tests/test-math-c++.cc: Check the declaration of asinf.
5345         * doc/posix-functions/asinf.texi: Mention the new module.
5346
5347         asin: Use a .m4 file.
5348         * m4/asin.m4: New file.
5349         * modules/asin (Files): Add it.
5350         (configure.ac): Just invoke gl_FUNC_ASIN.
5351
5352 2011-10-08  Bruno Haible  <bruno@clisp.org>
5353
5354         Tests for module 'tanf'.
5355         * modules/tanf-tests: New file.
5356         * tests/test-tanf.c: New file.
5357
5358         New module 'tanf'.
5359         * lib/math.in.h (tanf): New declaration.
5360         * lib/tanf.c: New file.
5361         * m4/tanf.m4: New file.
5362         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
5363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
5364         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
5365         * modules/tanf: New file.
5366         * tests/test-math-c++.cc: Check the declaration of tanf.
5367         * doc/posix-functions/tanf.texi: Mention the new module.
5368
5369         tan: Use a .m4 file.
5370         * m4/tan.m4: New file.
5371         * modules/tan (Files): Add it.
5372         (configure.ac): Just invoke gl_FUNC_TAN.
5373
5374 2011-10-08  Bruno Haible  <bruno@clisp.org>
5375
5376         Tests for module 'cosf'.
5377         * modules/cosf-tests: New file.
5378         * tests/test-cosf.c: New file.
5379
5380         New module 'cosf'.
5381         * lib/math.in.h (cosf): New declaration.
5382         * lib/cosf.c: New file.
5383         * m4/cosf.m4: New file.
5384         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
5385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
5386         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
5387         * modules/cosf: New file.
5388         * tests/test-math-c++.cc: Check the declaration of cosf.
5389         * doc/posix-functions/cosf.texi: Mention the new module.
5390
5391         cos: Use a .m4 file.
5392         * m4/cos.m4: New file.
5393         * modules/cos (Files): Add it.
5394         (configure.ac): Just invoke gl_FUNC_COS.
5395
5396 2011-10-08  Bruno Haible  <bruno@clisp.org>
5397
5398         Tests for module 'sinf'.
5399         * modules/sinf-tests: New file.
5400         * tests/test-sinf.c: New file.
5401
5402         New module 'sinf'.
5403         * lib/math.in.h (sinf): New declaration.
5404         * lib/sinf.c: New file.
5405         * m4/sinf.m4: New file.
5406         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
5407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
5408         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
5409         * modules/sinf: New file.
5410         * tests/test-math-c++.cc: Check the declaration of sinf.
5411         * doc/posix-functions/sinf.texi: Mention the new module.
5412
5413         sin: Use a .m4 file.
5414         * m4/sin.m4: New file.
5415         * modules/sin (Files): Add it.
5416         (configure.ac): Just invoke gl_FUNC_SIN.
5417
5418 2011-10-08  Bruno Haible  <bruno@clisp.org>
5419
5420         Tests for module 'powf'.
5421         * modules/powf-tests: New file.
5422         * tests/test-powf.c: New file.
5423
5424         New module 'powf'.
5425         * lib/math.in.h (powf): New declaration.
5426         * lib/powf.c: New file.
5427         * m4/powf.m4: New file.
5428         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
5429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
5430         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
5431         * modules/powf: New file.
5432         * tests/test-math-c++.cc: Check the declaration of powf.
5433         * doc/posix-functions/powf.texi: Mention the new module.
5434
5435         pow: Use a .m4 file.
5436         * m4/pow.m4: New file.
5437         * modules/pow (Files): Add it.
5438         (configure.ac): Just invoke gl_FUNC_POW.
5439
5440 2011-10-08  Bruno Haible  <bruno@clisp.org>
5441
5442         Tests for module 'log10f'.
5443         * modules/log10f-tests: New file.
5444         * tests/test-log10f.c: New file.
5445
5446         New module 'log10f'.
5447         * lib/math.in.h (log10f): New declaration.
5448         * lib/log10f.c: New file.
5449         * m4/log10f.m4: New file.
5450         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
5451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
5452         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
5453         * modules/log10f: New file.
5454         * tests/test-math-c++.cc: Check the declaration of log10f.
5455         * doc/posix-functions/log10f.texi: Mention the new module.
5456
5457         log10: Use a .m4 file.
5458         * m4/log10.m4: New file.
5459         * modules/log10 (Files): Add it.
5460         (configure.ac): Just invoke gl_FUNC_LOG10.
5461
5462 2011-10-08  Bruno Haible  <bruno@clisp.org>
5463
5464         Tests for module 'logf'.
5465         * modules/logf-tests: New file.
5466         * tests/test-logf.c: New file.
5467
5468         New module 'logf'.
5469         * lib/math.in.h (logf): New declaration.
5470         * lib/logf.c: New file.
5471         * m4/logf.m4: New file.
5472         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
5473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
5474         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
5475         * modules/logf: New file.
5476         * tests/test-math-c++.cc: Check the declaration of logf.
5477         * doc/posix-functions/logf.texi: Mention the new module.
5478
5479         log: Use a .m4 file.
5480         * m4/log.m4: New file.
5481         * modules/log (Files): Add it.
5482         (configure.ac): Just invoke gl_FUNC_LOG.
5483
5484 2011-10-08  Bruno Haible  <bruno@clisp.org>
5485
5486         Tests for module 'expf'.
5487         * modules/expf-tests: New file.
5488         * tests/test-expf.c: New file.
5489
5490         New module 'expf'.
5491         * lib/math.in.h (expf): New declaration.
5492         * lib/expf.c: New file.
5493         * m4/expf.m4: New file.
5494         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
5495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
5496         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
5497         * modules/expf: New file.
5498         * tests/test-math-c++.cc: Check the declaration of expf.
5499         * doc/posix-functions/expf.texi: Mention the new module.
5500
5501         exp: Use a .m4 file.
5502         * m4/exp.m4: New file.
5503         * modules/exp (Files): Add it.
5504         (configure.ac): Just invoke gl_FUNC_EXP.
5505
5506 2011-10-08  Bruno Haible  <bruno@clisp.org>
5507
5508         Tests for module 'sqrtf'.
5509         * modules/sqrtf-tests: New file.
5510         * tests/test-sqrtf.c: New file.
5511
5512         New module 'sqrtf'.
5513         * lib/math.in.h (sqrtf): New declaration.
5514         * lib/sqrtf.c: New file.
5515         * m4/sqrtf.m4: New file.
5516         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
5517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
5518         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
5519         * modules/sqrtf: New file.
5520         * tests/test-math-c++.cc: Check the declaration of sqrtf.
5521         * doc/posix-functions/sqrtf.texi: Mention the new module.
5522
5523 2011-10-08  Bruno Haible  <bruno@clisp.org>
5524
5525         Tests: Avoid link failures w.r.t. libintl.
5526         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
5527         $(LIBINTL).
5528         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
5529         $(LIBINTL).
5530         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
5531         against $(LIBINTL).
5532         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
5533         $(LIBINTL).
5534         * modules/openat-tests (Makefile.am): Link test-fchmodat against
5535         $(LIBINTL).
5536         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
5537
5538 2011-10-08  Bruno Haible  <bruno@clisp.org>
5539
5540         pow tests: Defeat compiler optimizations.
5541         * tests/test-pow.c (main): Assign arguments to x and y before use.
5542
5543 2011-10-08  Bruno Haible  <bruno@clisp.org>
5544
5545         gnulib-tool: Improve last commit.
5546         * gnulib-tool (func_modules_transitive_closure): Simplify code.
5547         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
5548         ignore dependencies that are not among the modules list.
5549
5550 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         gnulib-tool: don't follow dependencies to avoided modules
5553         This fixes a bug that is related to the previous one.
5554         * gnulib-tool (func_modules_transitive_closure)
5555         (func_emit_autoconf_snippets):
5556         Check whether a dependency is acceptable before using it.
5557         (--extract-dependencies): Report an error if --avoid is also used,
5558         since this combination of options is not yet supported.
5559
5560         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
5561         Problem reported by Peter Dyballa in
5562         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
5563         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
5564         when echoing "$condition".
5565
5566 2011-10-07  Bruno Haible  <bruno@clisp.org>
5567
5568         Fix documentation about math functions on MacOS X.
5569         * doc/posix-functions/exp2.texi: Don't say the function is missing on
5570         MacOS X 10.5.
5571         * doc/posix-functions/fdim.texi: Likewise.
5572         * doc/posix-functions/feclearexcept.texi: Likewise.
5573         * doc/posix-functions/fegetenv.texi: Likewise.
5574         * doc/posix-functions/fegetround.texi: Likewise.
5575         * doc/posix-functions/feholdexcept.texi: Likewise.
5576         * doc/posix-functions/feraiseexcept.texi: Likewise.
5577         * doc/posix-functions/fesetenv.texi: Likewise.
5578         * doc/posix-functions/fesetround.texi: Likewise.
5579         * doc/posix-functions/fetestexcept.texi: Likewise.
5580         * doc/posix-functions/feupdateenv.texi: Likewise.
5581         * doc/posix-functions/fmax.texi: Likewise.
5582         * doc/posix-functions/fmin.texi: Likewise.
5583         * doc/posix-functions/log2.texi: Likewise.
5584         * doc/posix-functions/modff.texi: Likewise.
5585         * doc/posix-functions/nan.texi: Likewise.
5586         * doc/posix-functions/nanf.texi: Likewise.
5587         * doc/posix-functions/nextafterf.texi: Likewise.
5588         * doc/posix-functions/remquo.texi: Likewise.
5589
5590 2011-10-07  Bruno Haible  <bruno@clisp.org>
5591
5592         modff: Drop assumption about library that defines modff.
5593         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
5594         AC_CHECK_FUNCS.
5595         * modules/modff (Files): Add m4/mathfunc.m4.
5596
5597 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
5598
5599         raise tests: Avoid a GCC warning.
5600         * tests/test-raise.c (handler): Use _Noreturn.
5601
5602 2011-10-07  Bruno Haible  <bruno@clisp.org>
5603
5604         Tests for module 'ldexpf'.
5605         * modules/ldexpf-tests: New file.
5606         * tests/test-ldexpf.c: New file.
5607
5608         New module 'ldexpf'.
5609         * lib/math.in.h (ldexpf): New declaration.
5610         * lib/ldexpf.c: New file.
5611         * m4/ldexpf.m4: New file.
5612         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
5613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
5614         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
5615         * modules/ldexpf: New file.
5616         * tests/test-math-c++.cc: Check the declaration of ldexpf.
5617         * doc/posix-functions/ldexpf.texi: Mention the new module.
5618
5619 2011-10-06  Bruno Haible  <bruno@clisp.org>
5620
5621         frexpf: Work around problems on IRIX and mingw.
5622         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
5623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
5624         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
5625         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
5626         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
5627         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
5628         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
5629
5630 2011-10-06  Bruno Haible  <bruno@clisp.org>
5631
5632         fabsf: Drop assumption about library that defines fabsf.
5633         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
5634         AC_CHECK_FUNCS.
5635         * modules/fabsf (Files): Add m4/mathfunc.m4.
5636
5637 2011-10-06  Bruno Haible  <bruno@clisp.org>
5638
5639         frexpf: Drop assumption about library that defines frexpf.
5640         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
5641         'int *', 'float *', 'long double *', 'float', 'long double'.
5642         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
5643         AC_CHECK_FUNCS.
5644         * modules/frexpf (Files): Add m4/mathfunc.m4.
5645
5646         Tests for module 'frexpf'.
5647         * modules/frexpf-tests: New file.
5648         * tests/test-frexpf.c: New file.
5649
5650         New module 'frexpf'.
5651         * lib/math.in.h (frexpf): New declaration.
5652         * lib/frexpf.c: New file.
5653         * m4/frexpf.m4: New file.
5654         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
5655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
5656         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
5657         * modules/frexpf: New file.
5658         * tests/test-math-c++.cc: Check the declaration of frexpf.
5659         * doc/posix-functions/frexpf.texi: Mention the new module.
5660
5661 2011-10-06  Bruno Haible  <bruno@clisp.org>
5662
5663         math: Sort function declarations of math.in.h.
5664         * lib/math.in.h (frexp, logb): Move declarations.
5665
5666 2011-10-05  Bruno Haible  <bruno@clisp.org>
5667
5668         Tests for module 'modff'.
5669         * modules/modff-tests: New file.
5670         * tests/test-modff.c: New file.
5671
5672         New module 'modff'.
5673         * lib/math.in.h (modff): New declaration.
5674         * lib/modff.c: New file.
5675         * m4/modff.m4: New file.
5676         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
5677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
5678         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
5679         * modules/modff: New file.
5680         * tests/test-math-c++.cc: Check the declaration of modff.
5681         * doc/posix-functions/modff.texi: Mention the new module.
5682
5683         modf tests: Make test sharper.
5684         * tests/test-modf.c (main): Strengthen upper bound.
5685
5686         modf: Use a .m4 file.
5687         * m4/modf.m4: New file.
5688         * modules/modf (Files): Add it.
5689         (configure.ac): Just invoke gl_FUNC_MODF.
5690
5691 2011-10-05  Bruno Haible  <bruno@clisp.org>
5692
5693         Tests for module 'fmodf'.
5694         * modules/fmodf-tests: New file.
5695         * tests/test-fmodf.c: New file.
5696
5697         New module 'fmodf'.
5698         * lib/math.in.h (fmodf): New declaration.
5699         * lib/fmodf.c: New file.
5700         * m4/fmodf.m4: New file.
5701         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
5702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
5703         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
5704         * modules/fmodf: New file.
5705         * tests/test-math-c++.cc: Check the declaration of fmodf.
5706         * doc/posix-functions/fmodf.texi: Mention the new module.
5707
5708         fmod: Use a .m4 file.
5709         * m4/fmod.m4: New file.
5710         * modules/fmod (Files): Add it.
5711         (configure.ac): Just invoke gl_FUNC_FMOD.
5712
5713 2011-10-05  Bruno Haible  <bruno@clisp.org>
5714
5715         Tests for module 'fabsf'.
5716         * modules/fabsf-tests: New file.
5717         * tests/test-fabsf.c: New file.
5718
5719         New module 'fabsf'.
5720         * lib/math.in.h (fabsf): New declaration.
5721         * lib/fabsf.c: New file.
5722         * m4/fabsf.m4: New file.
5723         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
5724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
5725         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
5726         * modules/fabsf: New file.
5727         * tests/test-math-c++.cc: Check the declaration of fabsf.
5728         * doc/posix-functions/fabsf.texi: Mention the new module.
5729
5730         fabs: Use a .m4 file.
5731         * m4/fabs.m4: New file.
5732         * modules/fabs (Files): Add it.
5733         (configure.ac): Just invoke gl_FUNC_FABS.
5734
5735 2011-10-05  Jim Meyering  <meyering@redhat.com>
5736
5737         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
5738         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
5739         ls -lL regression introduced in coreutils-8.12, it does so at the
5740         cost of an additional stat call in the common case.  Besides, now
5741         that the kernel change that prompted commit 95f7c57f has been reverted
5742         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
5743         we have no use for commit 95f7c57f, "file-has-acl: use
5744         acl_extended_file_nofollow if available".
5745
5746 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
5747
5748         file-has-acl: revert unintended change in behavior of ls -L
5749         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
5750         derived from...
5751         (file_has_acl): ...code here.  Call it.
5752         This problem was introduced with 2011-07-22 commit 95f7c57f,
5753         "file-has-acl: use acl_extended_file_nofollow if available".
5754         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
5755
5756 2011-10-03  Bruno Haible  <bruno@clisp.org>
5757
5758         poll: Avoid link errors on MSVC.
5759         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
5760         * modules/poll (Depends-on): Add sockets.
5761         (Link): New section.
5762         * NEWS: Mention the change.
5763         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
5764         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
5765         $(LIB_POLL) instead of $(LIBSOCKET).
5766
5767 2011-10-03  Bruno Haible  <bruno@clisp.org>
5768
5769         sys_select tests: Fix link error on MSVC 9.
5770         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
5771         with $(LIB_SELECT) instead of $(LIBSOCKET).
5772
5773 2011-10-03  Bruno Haible  <bruno@clisp.org>
5774
5775         sys_select: Fix compilation error on mingw.
5776         * lib/sys_select.in.h: On native Windows, include <io.h>.
5777
5778 2011-10-03  Bruno Haible  <bruno@clisp.org>
5779
5780         wmemset: Support for MSVC.
5781         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
5782         whether wmemset() exists.
5783
5784 2011-10-03  Bruno Haible  <bruno@clisp.org>
5785
5786         wmemmove: Support for MSVC.
5787         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
5788         whether wmemmove() exists.
5789
5790 2011-10-03  Bruno Haible  <bruno@clisp.org>
5791
5792         wmemcpy: Support for MSVC.
5793         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
5794         whether wmemcpy() exists.
5795
5796 2011-10-03  Bruno Haible  <bruno@clisp.org>
5797
5798         wmemcmp: Support for MSVC.
5799         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
5800         whether wmemcmp() exists.
5801
5802 2011-10-03  Bruno Haible  <bruno@clisp.org>
5803
5804         wmemchr: Support for MSVC.
5805         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5806         whether wmemchr() exists.
5807
5808 2011-10-03  Bruno Haible  <bruno@clisp.org>
5809
5810         glthread/*, strsignal: Support for MSVC.
5811         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5812         including <winsock.h> on MSVC 9.
5813         * lib/glthread/lock.h: Likewise.
5814         * lib/glthread/thread.h: Likewise.
5815         * lib/glthread/tls.h: Likewise.
5816         * lib/glthread/yield.h: Likewise.
5817         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5818         if HAVE_UNISTD_H is false.
5819         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5820
5821 2011-10-03  Bruno Haible  <bruno@clisp.org>
5822
5823         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5824         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5825         Set to 100000.
5826
5827 2011-10-03  Bruno Haible  <bruno@clisp.org>
5828
5829         acl: Fix specification.
5830         * lib/file-has-acl.c (file_has_acl): Fix specification.
5831
5832 2011-10-03  Bruno Haible  <bruno@clisp.org>
5833
5834         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5835         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5836         (compute_curr_prefix, shared_library_fullname,
5837         find_shared_library_fullname, get_shared_library_fullname, relocate):
5838         Use it together with PIC && INSTALLDIR.
5839         Reported by <jojelino@gmail.com>
5840         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5841
5842 2011-10-01  Jim Meyering  <meyering@redhat.com>
5843
5844         maint.mk: adjust a release-related rule not to require use of gzip
5845         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5846         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5847         projects that build only .tar.xz files.  Also fix an erroneous test.
5848
5849         test-linkat: don't leave behind a temporary file
5850         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5851         Otherwise, coreutils' "make distcheck" would fail with this:
5852           Only in /c/cu/tests/torture/coreutils/test/\
5853             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5854           make[2]: *** [my-distcheck] Error 1
5855
5856         float, math: add omitted file
5857         * lib/itold.c: Add file, required for yesterday's float change.
5858
5859 2011-10-01  Bruno Haible  <bruno@clisp.org>
5860
5861         isinf: Fix for OpenBSD/x86.
5862         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5863         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5864         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5865
5866 2011-10-01  Bruno Haible  <bruno@clisp.org>
5867
5868         isfinite: Fix syntax error in configure test.
5869         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5870
5871         isfinite: Fix typo.
5872         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5873         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5874
5875 2011-10-01  Bruno Haible  <bruno@clisp.org>
5876
5877         nonblocking tests: Fix test failure on Linux/IA-64.
5878         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5879         Set to 270000.
5880
5881 2011-10-01  Bruno Haible  <bruno@clisp.org>
5882
5883         mkfifoat tests: Fix a test failure on mingw.
5884         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5885         with error ENOSYS.
5886
5887 2011-09-30  Bruno Haible  <bruno@clisp.org>
5888
5889         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5890         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5891         'long double'. Set REPLACE_ITOLD.
5892         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5893         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5894         * lib/itold.c: New file.
5895         * modules/float (Files): Add lib/itold.c.
5896         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5897         (Makefile.am): Substitute REPLACE_ITOLD.
5898         * modules/math (Depends-on): Add float.
5899         (Makefile.am): Substitute REPLACE_ITOLD.
5900         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5901         * doc/posix-headers/math.texi: Likewise.
5902         * doc/posix-functions/logl.texi: Likewise.
5903
5904 2011-09-30  Bruno Haible  <bruno@clisp.org>
5905
5906         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5907         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5908         Set to 140000.
5909
5910 2011-09-30  Bruno Haible  <bruno@clisp.org>
5911
5912         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5913         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5914         invocation, say "right after AC_PROG_CC_STDC", not "right after
5915         AC_PROG_CC".
5916         Reported by Gary V. Vaughan <gary@gnu.org>.
5917
5918 2011-09-30  Bruno Haible  <bruno@clisp.org>
5919
5920         Centralize C99 requirement.
5921         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5922         * modules/stdarg (configure.ac-early): Invoke it instead of
5923         AC_PROG_CC_STDC.
5924         Reported by Gary V. Vaughan and Paul Eggert.
5925
5926 2011-09-29  Bruno Haible  <bruno@clisp.org>
5927
5928         float: Fix LDBL_MAX value on Linux/PowerPC.
5929         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5930         on Linux/PowerPC.
5931         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5932         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5933         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5934         platform.
5935         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5936
5937 2011-09-29  Bruno Haible  <bruno@clisp.org>
5938
5939         doc: Improve doc about gl_EARLY.
5940         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5941         AC_PROG_CC_STDC invocation.
5942         Reported by Gary V. Vaughan <gary@gnu.org>.
5943
5944 2011-09-28  Bruno Haible  <bruno@clisp.org>
5945
5946         fgetc, fputc, fread, fwrite tests: Fix link error.
5947         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5948         on non-MSVC platforms.
5949         * tests/test-fputc.c (main): Likewise.
5950         * tests/test-fread.c (main): Likewise.
5951         * tests/test-fwrite.c (main): Likewise.
5952         Reported by Jim Meyering.
5953
5954 2011-09-27  Bruno Haible  <bruno@clisp.org>
5955
5956         fputc, fwrite tests: Avoid test failure on MSVC.
5957         * tests/test-fgetc.c: Include msvc-inval.h.
5958         (main): Invoke gl_msvc_inval_ensure_handler.
5959         * tests/test-fputc.c: Include msvc-inval.h.
5960         (main): Invoke gl_msvc_inval_ensure_handler.
5961         * tests/test-fread.c: Include msvc-inval.h.
5962         (main): Invoke gl_msvc_inval_ensure_handler.
5963         * tests/test-fwrite.c: Include msvc-inval.h.
5964         (main): Invoke gl_msvc_inval_ensure_handler.
5965         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5966         * modules/fputc-tests (Depends-on): Likewise.
5967         * modules/fread-tests (Depends-on): Likewise.
5968         * modules/fwrite-tests (Depends-on): Likewise.
5969
5970 2011-09-27  Bruno Haible  <bruno@clisp.org>
5971
5972         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5973         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5974         (raise): Remove older, duplicated declaration.
5975         (_gl_raise_SIGPIPE): New declaration.
5976         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5977         (rpl_raise): Remove function.
5978         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5979         a gnulib-defined SIGPIPE here.
5980         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5981         'sigprocmask' has detected missing signal-blocking and the module
5982         'sigpipe' is enabled.
5983         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5984
5985 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5986
5987         base64-tests: avoid memory leak
5988         * tests/test-base64.c (main): Plug memory leak.
5989
5990         base32: new module
5991         * modules/base32: New module.
5992         * lib/base32.c: New file.
5993         * lib/base32.h: Likewise.
5994         * m4/base32.m4: Likewise.
5995         * modules/base32-tests: New test.
5996         * tests/test-base32.c: Likewise.
5997         * MODULES.html.sh (Misc): Mention it.
5998
5999 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6000
6001         gnulib: use more-standard license notice wording
6002         * gnulib-tool (func_emit_copyright_notice): When emitting a
6003         license notice into a file, use the standard wording as suggested
6004         by the current information for GNU maintainers, except say "file"
6005         rather than "program".  The new wording gives a license version
6006         number, which addresses an issue raised by Glenn Morris in
6007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
6008         * m4/onceonly.m4: Use that same wording here, too.
6009
6010         dup2: minor simplification
6011         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
6012         as lib/dup2.c no longer uses 'inline'.
6013
6014 2011-09-25  Bruno Haible  <bruno@clisp.org>
6015
6016         strings: Fix compilation error on MSVC.
6017         * lib/strings.in.h: Include <stddef.h> for size_t.
6018
6019 2011-09-25  Bruno Haible  <bruno@clisp.org>
6020
6021         fflush et al.: Document limitation on MSVC.
6022         * doc/posix-functions/fflush.texi: Document possible crash in handling
6023         mode other than DEFAULT_HANDLING.
6024         * doc/posix-functions/fgetc.texi: Likewise.
6025         * doc/posix-functions/fputc.texi: Likewise.
6026         * doc/posix-functions/fread.texi: Likewise.
6027         * doc/posix-functions/fwrite.texi: Likewise.
6028
6029 2011-09-25  Bruno Haible  <bruno@clisp.org>
6030
6031         msvc-inval: Allow three invalid parameter handling modes.
6032         * lib/msvc-inval.h: Don't include <stdlib.h> here.
6033         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
6034         macros.
6035         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
6036         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
6037         SANE_LIBRARY_HANDLING as a no-op.
6038         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
6039         <stdlib.h>.
6040         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
6041
6042 2011-09-25  Bruno Haible  <bruno@clisp.org>
6043
6044         msvc-inval: Make handler multithread-safe.
6045         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
6046         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6047         declarations.
6048         (gl_msvc_inval_current): New declaration.
6049         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6050         Operate on the structure returned by gl_msvc_inval_current().
6051         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
6052         Remove varaiables.
6053         (tls_index, tls_initialized): New variables.
6054         (not_per_thread): New variable.
6055         (gl_msvc_inval_current): New function.
6056         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
6057         returned by gl_msvc_inval_current().
6058
6059 2011-09-25  Bruno Haible  <bruno@clisp.org>
6060
6061         msvc-inval: Install handler globally.
6062         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
6063         !_MSC_VER.
6064         (gl_msvc_invalid_parameter_handler): Remove declaration.
6065         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
6066         declarations.
6067         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6068         Install the handler globally, don't uninstall it.
6069         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
6070         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
6071         currently valid, call RaiseException instead.
6072         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
6073         for !_MSC_VER.
6074
6075 2011-09-25  Bruno Haible  <bruno@clisp.org>
6076
6077         strerror_r-posix: Fix for MSVC 9.
6078         * lib/strerror_r.c (local_snprintf): New function.
6079         (snprintf): Define to local_snprintf, not to _snprintf.
6080
6081 2011-09-25  Bruno Haible  <bruno@clisp.org>
6082
6083         ftruncate: Support for MSVC 9.
6084         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
6085         (chsize_nothrow): New function.
6086         (chsize): Redefine as a macro.
6087         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
6088         * modules/ftruncate (Depends-on): Add msvc-inval.
6089
6090 2011-09-25  Bruno Haible  <bruno@clisp.org>
6091
6092         New module 'fstat'.
6093         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
6094         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
6095         * lib/fchdir.c (rpl_fstat): Remove function.
6096         * m4/fstat.m4: New file.
6097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
6098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
6099         declared.
6100         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
6101         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
6102         * modules/fstat: New file.
6103         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
6104         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
6105         is set.
6106         * doc/posix-functions/fstat.texi: Mention the new module and the
6107         problem on MSVC.
6108         * NEWS: Mention the change.
6109         * modules/acl (Depends-on): Add fstat.
6110         * modules/chdir-safer (Depends-on): Likewise.
6111         * modules/chown (Depends-on): Likewise.
6112         * modules/copy-file (Depends-on): Likewise.
6113         * modules/fchdir (Depends-on): Likewise.
6114         * modules/fdopendir (Depends-on): Likewise.
6115         * modules/fopen (Depends-on): Likewise.
6116         * modules/fts (Depends-on): Likewise.
6117         * modules/getcwd (Depends-on): Likewise.
6118         * modules/isapipe (Depends-on): Likewise.
6119         * modules/linkat (Depends-on): Likewise.
6120         * modules/lseek (Depends-on): Likewise.
6121         * modules/mkdir-p (Depends-on): Likewise.
6122         * modules/open (Depends-on): Likewise.
6123         * modules/openat (Depends-on): Likewise.
6124         * modules/read-file (Depends-on): Likewise.
6125         * modules/renameat (Depends-on): Likewise.
6126         * modules/utimens (Depends-on): Likewise.
6127
6128 2011-09-25  Bruno Haible  <bruno@clisp.org>
6129
6130         linkat: Fix compilation on MSVC 9.
6131         * lib/linkat.c: Don't include <stdint.h>.
6132
6133 2011-09-25  Bruno Haible  <bruno@clisp.org>
6134
6135         fclose: Support for MSVC 9.
6136         * lib/fclose.c: Include msvc-inval.h.
6137         (fclose_nothrow): New function.
6138         (rpl_fclose): Use it.
6139         * modules/fclose (Depends-on): Add msvc-inval.
6140         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
6141
6142 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
6143
6144         dup2: minor simplifications
6145         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
6146         that it's a performance win.
6147         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
6148         ! defined __CYGWIN__)" to "ifdef F_GETFL".
6149
6150 2011-09-24  Jim Meyering  <meyering@redhat.com>
6151
6152         test-futimens: avoid a warning from gcc -Wshadow
6153         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
6154         to avoid a shadowing warning.
6155
6156 2011-09-24  Bruno Haible  <bruno@clisp.org>
6157
6158         fdopen: Support for MSVC 9.
6159         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
6160         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
6161         * lib/fdopen.c: Include msvc-inval.h.
6162         (fdopen_nothrow): New function.
6163         (rpl_fdopen): Use it.
6164         * modules/fdopen (Depends-on): Add msvc-inval.
6165         * modules/fclose-tests (Depends-on): Add fdopen.
6166         * modules/fflush-tests (Depends-on): Likewise.
6167         * modules/fgetc-tests (Depends-on): Likewise.
6168         * modules/fputc-tests (Depends-on): Likewise.
6169         * modules/fread-tests (Depends-on): Likewise.
6170         * modules/freopen-tests (Depends-on): Likewise.
6171         * modules/fseeko-tests (Depends-on): Likewise.
6172         * modules/ftello-tests (Depends-on): Likewise.
6173         * modules/fwrite-tests  (Depends-on): Likewise.
6174         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
6175
6176 2011-09-24  Bruno Haible  <bruno@clisp.org>
6177
6178         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
6179         * modules/fgetc-tests (Depends-on): Add unistd.
6180         * modules/fputc-tests (Depends-on): Likewise.
6181         * modules/fread-tests (Depends-on): Likewise.
6182         * modules/fwrite-tests (Depends-on): Likewise.
6183
6184 2011-09-24  Bruno Haible  <bruno@clisp.org>
6185
6186         dup: Simplify autoconf test.
6187         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
6188         on gl_MSVC_INVAL's result.
6189
6190 2011-09-24  Bruno Haible  <bruno@clisp.org>
6191
6192         Tests for function fwrite().
6193         * modules/fwrite-tests: New file.
6194         * tests/test-fwrite.c: New file.
6195         * modules/stdio-tests (Depends-on): Add fwrite-tests.
6196
6197         Tests for function fread().
6198         * modules/fread-tests: New file.
6199         * tests/test-fread.c: New file.
6200         * modules/stdio-tests (Depends-on): Add fread-tests.
6201
6202         Activate fputc tests.
6203         * modules/stdio-tests (Depends-on): Add fputc-tests.
6204
6205         Enhance fgetc, fputc tests.
6206         * tests/test-fgetc.c (main): Also test the stream's error indicator.
6207         * tests/test-fputc.c (main): Likewise.
6208
6209 2011-09-24  Bruno Haible  <bruno@clisp.org>
6210
6211         write: Support for MSVC 9.
6212         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
6213         is not 1.
6214         * lib/write.c (write_nothrow): New function.
6215         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
6216         not 1. Use write_nothrow.
6217         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
6218         invalid parameter handler.
6219         (gl_PREREQ_WRITE): New macro.
6220         * modules/write (Depends-on): Add msvc-inval.
6221         (configure.ac): Invoke gl_PREREQ_WRITE.
6222         * doc/posix-functions/write.texi: Mention the problem on MSVC.
6223
6224 2011-09-24  Bruno Haible  <bruno@clisp.org>
6225
6226         read: Fix last commit.
6227         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
6228
6229 2011-09-24  Bruno Haible  <bruno@clisp.org>
6230
6231         dup2: Fix last commit.
6232         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
6233         (rpl_dup2): Disable fcntl workaround on native Windows.
6234
6235         sigprocmask: Make code safer.
6236         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
6237         section that changes macro definitions for this compilation unit.
6238
6239 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
6240
6241         dup2: clarify by coalescing Windows-specific material
6242         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
6243         "msvc-nothrow.h"' to the Windows-specific section, so that the
6244         Emacs source need not contain these include files.
6245         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
6246         Windows-specific fixes into this function rather than just the
6247         nothrow fix, as this shortens and clarifies the code.  Always
6248         define as a function, as that's a bit cleaner than having it be
6249         sometimes a function and sometimes a macro.
6250         (rpl_dup2): Move the Windows-specific stuff out of here and into
6251         ms_windows_dup2.  Don't protect the Haiku-related fix with
6252         "#if !defined __linux__", as the same code also works around
6253         a Linux kernel bug, and it doesn't add any system calls on any
6254         platform.  Add comment about FreeBSD 6.1.
6255
6256         sigprocmask: move #include directive
6257         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
6258         Windows-specific section, so that the Emacs source need not
6259         contain msvc-inval.h.
6260
6261 2011-09-23  Bruno Haible  <bruno@clisp.org>
6262
6263         read: Support for MSVC 9.
6264         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
6265         is not 1.
6266         * lib/read.c (read_nothrow): New function.
6267         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
6268         read_nothrow.
6269         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
6270         invalid parameter handler.
6271         (gl_PREREQ_READ): New macro.
6272         * modules/read (Depends-on): Add msvc-inval.
6273         (configure.ac): Invoke gl_PREREQ_READ.
6274         * doc/posix-functions/read.texi: Mention the problem on MSVC.
6275
6276 2011-09-23  Bruno Haible  <bruno@clisp.org>
6277
6278         close: Support for MSVC 9.
6279         * lib/close.c: Include <errno.h>, msvc-inval.h.
6280         (close_nothrow): New function.
6281         (rpl_close): Use it.
6282         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
6283         invalid parameter handler.
6284         * modules/close (Depends-on): Add msvc-inval.
6285         * modules/dup2-tests (Depends-on): Add close.
6286         * modules/dup3-tests (Depends-on): Likewise.
6287         * modules/fcntl-tests (Depends-on): Likewise.
6288         * modules/spawn-pipe-tests (Depends-on): Likewise.
6289         * modules/unistd-safer-tests (Depends-on): Likewise.
6290         * doc/posix-functions/close.texi: Mention the problem on MSVC.
6291
6292 2011-09-23  Bruno Haible  <bruno@clisp.org>
6293
6294         New module 'dup'.
6295         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
6296         Allow replacement.
6297         * lib/dup.c: New file.
6298         * lib/fchdir.c (rpl_dup): Remove function.
6299         * m4/dup.m4: New file.
6300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
6301         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
6302         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
6303         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
6304         * modules/dup: New file.
6305         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
6306         'dup' module is in use.
6307         * modules/fdopendir (Depends-on): Add dup.
6308         * modules/fdutimensat-tests (Depends-on): Likewise.
6309         * modules/fts (Depends-on): Likewise.
6310         * modules/futimens-tests (Depends-on): Likewise.
6311         * modules/posix_spawnp-tests (Depends-on): Likewise.
6312         * modules/unistd-safer-tests (Depends-on): Likewise.
6313         * modules/utimens-tests (Depends-on): Likewise.
6314         * doc/posix-functions/dup.texi: Mention the new module and the problem
6315         on MSVC.
6316
6317 2011-09-23  Bruno Haible  <bruno@clisp.org>
6318
6319         getdtablesize: Support for MSVC 9.
6320         * lib/getdtablesize.c: Include msvc-inval.h.
6321         (_setmaxstdio_nothrow): New function.
6322         (_setmaxstdio): Redefine it.
6323         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
6324         * modules/getdtablesize (Depends-on): Add msvc-inval.
6325         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
6326
6327 2011-09-23  Bruno Haible  <bruno@clisp.org>
6328
6329         signal-h: Rename from signal.
6330         * modules/signal-h: Renamed from modules/signal.
6331         * modules/pthread_sigmask (Depends-on): Update.
6332         * modules/raise (Depends-on): Likewise.
6333         * modules/sigaction (Depends-on): Likewise.
6334         * modules/sigpipe (Depends-on): Likewise.
6335         * modules/sigprocmask (Depends-on): Likewise.
6336         * modules/sys_select (Depends-on): Likewise.
6337         * modules/signal-h-tests: Renamed from modules/signal-tests.
6338         (Files, Depends-on, Makefile.am): Update.
6339         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
6340         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
6341         (Files, Makefile.am): Update.
6342         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
6343         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
6344         * modules/signal: New placeholder file.
6345         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
6346         * doc/posix-headers/signal.texi: Update.
6347         * NEWS: Mention the change.
6348
6349 2011-09-23  Bruno Haible  <bruno@clisp.org>
6350
6351         sigprocmask: Avoid crashes through signal() on MSVC 9.
6352         * lib/sigprocmask.c: Include msvc-inval.h.
6353         (signal_nothrow): New function.
6354         (signal): Redefine it.
6355         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
6356         * modules/sigprocmask (Depends-on): Add msvc-inval.
6357         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
6358
6359 2011-09-23  Bruno Haible  <bruno@clisp.org>
6360
6361         Tests for module 'raise'.
6362         * modules/raise-tests: New file.
6363         * tests/test-raise.c: New file.
6364
6365         raise: Support for MSVC.
6366         * lib/signal.in.h (raise): New declaration.
6367         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
6368         for native Windows platforms.
6369         * m4/raise.m4: New file.
6370         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
6371         HAVE_RAISE, REPLACE_RAISE.
6372         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
6373         REPLACE_RAISE.
6374         * modules/raise (Status, Notice): Remove fields.
6375         (Files): Add m4/raise.m4.
6376         (Depends-on): Add signal, msvc-inval.
6377         (configure.ac): Use the common idioms.
6378         (Maintainer): Add me.
6379         * tests/test-signal-c++.cc: Check the signature of raise.
6380         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
6381
6382 2011-09-23  Bruno Haible  <bruno@clisp.org>
6383
6384         pipe2: Fix compilation on pre-C99 compilers.
6385         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
6386
6387 2011-09-23  Bruno Haible  <bruno@clisp.org>
6388
6389         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
6390         * lib/msvc-nothrow.h: New file.
6391         * lib/msvc-nothrow.c: New file.
6392         * m4/msvc-nothrow.m4: New file.
6393         * modules/msvc-nothrow: New file.
6394         * lib/dup2.c: Include msvc-nothrow.h.
6395         (rpl_dup2): No need to protect _get_osfhandle call here.
6396         * lib/accept4.c: Include msvc-nothrow.h.
6397         * lib/error.c: Likewise.
6398         * lib/fcntl.c: Likewise.
6399         * lib/lseek.c: Likewise.
6400         * lib/nonblocking.c: Likewise.
6401         * lib/poll.c: Likewise.
6402         * lib/read.c: Likewise.
6403         * lib/select.c: Likewise.
6404         * lib/sockets.h: Likewise.
6405         * lib/sockets.c: Likewise.
6406         * lib/stdio-read.c: Likewise.
6407         * lib/stdio-write.c: Likewise.
6408         * lib/write.c: Likewise.
6409         * lib/w32sock.h: Likewise.
6410         * lib/w32spawn.h: Likewise.
6411         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
6412         * lib/fsync.c: Likewise.
6413         * lib/isapipe.c: Likewise.
6414         * modules/dup2 (Depends-on): Add msvc-nothrow.
6415         * modules/accept4 (Depends-on): Likewise.
6416         * modules/error (Depends-on): Likewise.
6417         * modules/fcntl (Depends-on): Likewise.
6418         * modules/lseek (Depends-on): Likewise.
6419         * modules/nonblocking (Depends-on): Likewise.
6420         * modules/poll (Depends-on): Likewise.
6421         * modules/read (Depends-on): Likewise.
6422         * modules/select (Depends-on): Likewise.
6423         * modules/sockets (Depends-on): Likewise.
6424         * modules/sigpipe (Depends-on): Likewise.
6425         * modules/write (Depends-on): Likewise.
6426         * modules/accept (Depends-on): Likewise.
6427         * modules/bind (Depends-on): Likewise.
6428         * modules/connect (Depends-on): Likewise.
6429         * modules/gethostname (Depends-on): Likewise.
6430         * modules/getpeername (Depends-on): Likewise.
6431         * modules/getsockname (Depends-on): Likewise.
6432         * modules/getsockopt (Depends-on): Likewise.
6433         * modules/ioctl (Depends-on): Likewise.
6434         * modules/listen (Depends-on): Likewise.
6435         * modules/recv (Depends-on): Likewise.
6436         * modules/recvfrom (Depends-on): Likewise.
6437         * modules/send (Depends-on): Likewise.
6438         * modules/sendto (Depends-on): Likewise.
6439         * modules/setsockopt (Depends-on): Likewise.
6440         * modules/shutdown (Depends-on): Likewise.
6441         * modules/socket (Depends-on): Likewise.
6442         * modules/execute (Depends-on): Likewise.
6443         * modules/spawn-pipe (Depends-on): Likewise.
6444         * modules/flock (Depends-on): Likewise.
6445         * modules/fsync (Depends-on): Likewise.
6446         * modules/isapipe (Depends-on): Likewise.
6447         * tests/test-cloexec.c: Include msvc-nothrow.h.
6448         * tests/test-dup-safer.c: Likewise.
6449         * tests/test-dup2.c: Likewise.
6450         * tests/test-dup3.c: Likewise.
6451         * tests/test-fcntl.c: Likewise.
6452         * tests/test-pipe.c: Likewise.
6453         * tests/test-pipe2.c: Likewise.
6454         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
6455         * modules/unistd-safer-tests (Depends-on): Likewise.
6456         * modules/dup2-tests (Depends-on): Likewise.
6457         * modules/dup3-tests (Depends-on): Likewise.
6458         * modules/fcntl-tests (Depends-on): Likewise.
6459         * modules/pipe-posix-tests (Depends-on): Likewise.
6460         * modules/pipe2-tests (Depends-on): Likewise.
6461
6462 2011-09-23  Bruno Haible  <bruno@clisp.org>
6463
6464         dup2: Make code more maintainable.
6465         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
6466         (rpl_dup2): Use it.
6467         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
6468         * modules/dup2 (configure.ac): Invoke it.
6469         Reported by Paul Eggert.
6470
6471 2011-09-23  Bruno Haible  <bruno@clisp.org>
6472
6473         msvc-inval: Fix compilation error.
6474         * lib/msvc-inval.h: Include <excpt.h>.
6475
6476 2011-09-23  Bruno Haible  <bruno@clisp.org>
6477
6478         mkdir: Tweak for MSVC 9.
6479         * lib/sys_stat.in.h: Update comments.
6480         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
6481
6482         Tests for module 'chdir'.
6483         * modules/chdir-tests: New file.
6484         * tests/test-chdir.c: New file.
6485
6486         New module 'chdir'.
6487         * modules/chdir: New file.
6488         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
6489         (chdir): New declaration.
6490         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
6491         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
6492         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
6493         * tests/test-unistd-c++.cc: Check signature of chdir.
6494         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
6495         * modules/chdir-long (Depends-on): Add chdir.
6496         * modules/fchdir (Depends-on): Likewise.
6497         * modules/rename (Depends-on): Likewise.
6498         * modules/savewd (Depends-on): Likewise.
6499
6500         rmdir: Support for mingw, MSVC 9.
6501         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
6502         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
6503
6504         getcwd: Tweak for MSVC 9.
6505         * lib/unistd.in.h: Update comments.
6506         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
6507
6508 2011-09-22  Bruno Haible  <bruno@clisp.org>
6509
6510         strerror_r-posix: Avoid a link error on MSVC.
6511         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
6512         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
6513
6514 2011-09-22  Bruno Haible  <bruno@clisp.org>
6515
6516         select: Avoid link errors on MSVC.
6517         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
6518         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
6519         * modules/pselect (Link): Likewise.
6520         * NEWS: Mention the change.
6521         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
6522         test-select-stdin against $(LIB_SELECT).
6523         * modules/pselect-tests (Makefile.am): Link test-pselect against
6524         $(LIB_SELECT).
6525
6526 2011-09-22  Bruno Haible  <bruno@clisp.org>
6527
6528         select: Avoid compilation error on MSVC.
6529         * lib/select.c: Don't include <stdbool.h>.
6530
6531 2011-09-21  Bruno Haible  <bruno@clisp.org>
6532
6533         Consolidate all uses of PATH_MAX in *.m4 files.
6534         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
6535         macros.
6536         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
6537         and gl_PATHMAX_SNIPPET.
6538         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6539         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6540         * modules/chdir-long (Files): Add m4/pathmax.m4.
6541         * modules/getcwd (Files): Likewise.
6542
6543 2011-09-21  Bruno Haible  <bruno@clisp.org>
6544
6545         ftruncate: Un-deprecate, concentrate on Win32 support.
6546         * modules/ftruncate (Status, Notice): Remove sections.
6547         (Depends-on): Add largefile.
6548         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
6549         non-mingw platforms.
6550         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
6551         include <io.h>.
6552         * modules/perror-tests (Depends-on): Add ftruncate.
6553         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
6554         'ftruncate' module.
6555
6556 2011-09-21  Bruno Haible  <bruno@clisp.org>
6557
6558         Add dependencies to new dirent related modules.
6559         * modules/opendir (Depends-on): Add closedir.
6560         * modules/getcwd (Depends-on): Add opendir, closedir.
6561         * modules/dirent-safer-tests (Depends-on): Likewise.
6562         * modules/fdopendir-tests (Depends-on): Likewise.
6563         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
6564         * modules/renameat-tests (Depends-on): Likewise.
6565
6566 2011-09-21  Bruno Haible  <bruno@clisp.org>
6567
6568         opendir: Avoid compilation error on mingw.
6569         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
6570         * modules/opendir (Depends-on): Add unistd.
6571
6572 2011-09-21  Bruno Haible  <bruno@clisp.org>
6573
6574         ftruncate tests: Avoid a test failure on mingw.
6575         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
6576
6577 2011-09-21  Bruno Haible  <bruno@clisp.org>
6578
6579         select tests: Avoid test failures on OSF/1 5.1 and mingw.
6580         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
6581         native Windows.
6582
6583 2011-09-21  Bruno Haible  <bruno@clisp.org>
6584
6585         New module 'fdopen'.
6586         * lib/stdio.in.h (fdopen): New declaration.
6587         * lib/fdopen.c: New file.
6588         * m4/fdopen.m4: New file.
6589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
6590         REPLACE_FDOPEN.
6591         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
6592         REPLACE_FDOPEN.
6593         * modules/fdopen: New file.
6594         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
6595         * tests/test-stdio-c++.cc: Check signature of fdopen.
6596         * doc/posix-functions/fdopen.texi: Mention the new module.
6597
6598 2011-09-21  Bruno Haible  <bruno@clisp.org>
6599
6600         unlockpt tests: Avoid test failure on NetBSD 5.1.
6601         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
6602         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6603
6604 2011-09-21  Bruno Haible  <bruno@clisp.org>
6605
6606         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
6607         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
6608         * tests/test-getlogin_r.c (main): Likewise.
6609
6610 2011-09-20  Bruno Haible  <bruno@clisp.org>
6611
6612         time tests: Don't require pid_t.
6613         * doc/posix-headers/time.texi: Revert last change.
6614         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
6615         * tests/test-time.c: Comment out the check for pid_t.
6616
6617 2011-09-20  Bruno Haible  <bruno@clisp.org>
6618
6619         fsync tests: Avoid a test failure on mingw.
6620         * tests/test-fsync.c (main): Allow a failure with EIO.
6621
6622 2011-09-20  Bruno Haible  <bruno@clisp.org>
6623
6624         euidaccess: Update comments.
6625         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
6626
6627 2011-09-20  Bruno Haible  <bruno@clisp.org>
6628
6629         Ensure EBADF returns for socket functions on mingw.
6630         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
6631         descriptor is invalid.
6632         * lib/bind.c (rpl_bind): Likewise.
6633         * lib/connect.c (rpl_connect): Likewise.
6634         * lib/getpeername.c (rpl_getpeername): Likewise.
6635         * lib/getsockname.c (rpl_getsockname): Likewise.
6636         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6637         * lib/listen.c (rpl_listen): Likewise.
6638         * lib/recv.c (rpl_recv): Likewise.
6639         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6640         * lib/send.c (rpl_send): Likewise.
6641         * lib/sendto.c (rpl_sendto): Likewise.
6642         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6643         * lib/shutdown.c (rpl_shutdown): Likewise.
6644
6645 2011-09-20  Bruno Haible  <bruno@clisp.org>
6646
6647         select tests: EBADF tests.
6648         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
6649         test_bad_fd): New functions.
6650         (test_function): Invoke also test_bad_fd.
6651
6652 2011-09-20  Bruno Haible  <bruno@clisp.org>
6653
6654         Tests for module 'posix_spawn_file_actions_addopen.
6655         * modules/posix_spawn_file_actions_addopen-tests: New file.
6656         * tests/test-posix_spawn_file_actions_addopen.c: New file.
6657
6658         Tests for module 'posix_spawn_file_actions_adddup2'.
6659         * modules/posix_spawn_file_actions_adddup2-tests: New file.
6660         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
6661
6662         Tests for module 'posix_spawn_file_actions_addclose'.
6663         * modules/posix_spawn_file_actions_addclose-tests: New file.
6664         * tests/test-posix_spawn_file_actions_addclose.c: New file.
6665
6666 2011-09-20  Bruno Haible  <bruno@clisp.org>
6667
6668         Tests for module 'unlockpt'.
6669         * modules/unlockpt-tests: New file.
6670         * tests/test-unlockpt.c: New file.
6671         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
6672
6673         Tests for module 'grantpt'.
6674         * modules/grantpt-tests: New file.
6675         * tests/test-grantpt.c: New file.
6676         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
6677
6678 2011-09-20  Bruno Haible  <bruno@clisp.org>
6679
6680         freopen tests: EBADF tests.
6681         * tests/test-freopen.c: Include errno.h, unistd.h.
6682         (main): Add tests for EBADF, commented out for the moment.
6683
6684         fclose tests: EBADF tests.
6685         * tests/test-fclose.c (main): Add tests for EBADF.
6686
6687         fflush tests: EBADF tests.
6688         * tests/test-fflush.c: Include errno.h, macros.h.
6689         (main): Add tests for EBADF.
6690
6691         ftello tests: EBADF tests.
6692         * tests/test-ftello4.sh: New file.
6693         * tests/test-ftello4.c: New file.
6694         * modules/ftello-tests (Files): Add them.
6695         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
6696
6697         fseeko tests: EBADF tests.
6698         * tests/test-fseeko4.sh: New file.
6699         * tests/test-fseeko4.c: New file.
6700         * modules/fseeko-tests (Files): Add them.
6701         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
6702
6703         Tests for function fputc().
6704         * modules/fputc-tests: New file.
6705         * tests/test-fputc.c: New file.
6706         * modules/stdio-tests (Depends-on): Add fputc-tests.
6707
6708         Tests for function fgetc().
6709         * modules/fgetc-tests: New file.
6710         * tests/test-fgetc.c: New file.
6711         * modules/stdio-tests (Depends-on): Add fgetc-tests.
6712
6713         Tests for function fdopen().
6714         * modules/fdopen-tests: New file.
6715         * tests/test-fdopen.c: New file.
6716         * modules/stdio-tests (Depends-on): Add fdopen-tests.
6717
6718         Tests for module 'vdprintf'.
6719         * modules/vdprintf-tests: New file.
6720         * tests/test-vdprintf.c: New file.
6721
6722         Tests for module 'dprintf'.
6723         * modules/dprintf-tests: New file.
6724         * tests/test-dprintf.c: New file.
6725
6726 2011-09-20  Bruno Haible  <bruno@clisp.org>
6727
6728         Tests for module 'ioctl'.
6729         * modules/ioctl-tests: New file.
6730         * tests/test-ioctl.c: New file.
6731
6732 2011-09-20  Bruno Haible  <bruno@clisp.org>
6733
6734         fcntl tests: EBADF tests.
6735         * tests/test-fcntl.c (main): Add more tests for EBADF.
6736
6737 2011-09-20  Bruno Haible  <bruno@clisp.org>
6738
6739         utimensat tests: EBADF tests.
6740         * tests/test-utimensat.c (main): Add tests for EBADF.
6741
6742         renameat tests: EBADF tests.
6743         * tests/test-renameat.c (main): Add tests for EBADF.
6744
6745         mkfifoat tests: EBADF tests.
6746         * tests/test-mkfifoat.c (main): Add tests for EBADF.
6747
6748         readlinkat tests: EBADF tests.
6749         * tests/test-readlinkat.c (main): Add tests for EBADF.
6750
6751         symlinkat tests: EBADF tests.
6752         * tests/test-symlinkat.c (main): Add tests for EBADF.
6753
6754         linkat tests: EBADF tests.
6755         * tests/test-linkat.c (main): Add tests for EBADF.
6756
6757         Tests for module 'faccessat'.
6758         * modules/faccessat-tests: New file.
6759         * tests/test-faccessat.c: New file.
6760
6761         fdopendir tests: EBADF tests.
6762         * tests/test-fdopendir.c (main): Add more tests for EBADF.
6763
6764         openat tests: EBADF tests.
6765         * tests/test-fchownat.c (main): Add tests for EBADF.
6766         * tests/test-fstatat.c (main): Likewise.
6767         * tests/test-mkdirat.c (main): Likewise.
6768         * tests/test-openat.c (main): Likewise.
6769         * tests/test-unlinkat.c (main): Likewise.
6770         * tests/test-fchmodat.c: New file.
6771         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
6772         (Makefile.am): Also run 'test-fchmodat'.
6773
6774 2011-09-20  Bruno Haible  <bruno@clisp.org>
6775
6776         utimens, futimens, fdutimensat tests: EBADF tests.
6777         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
6778
6779         Tests for function fstat().
6780         * modules/fstat-tests: New file.
6781         * tests/test-fstat.c: New file.
6782         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
6783
6784 2011-09-20  Bruno Haible  <bruno@clisp.org>
6785
6786         test-ttyname_r tests: EBADF tests.
6787         * tests/test-ttyname_r.c (main): Add tests for EBADF.
6788
6789         Tests for module 'isatty'.
6790         * modules/isatty-tests: New file.
6791         * tests/test-isatty.c: New file.
6792
6793         Tests for module 'write'.
6794         * modules/write-tests: New file.
6795         * tests/test-write.c: New file.
6796
6797         Tests for module 'read'.
6798         * modules/read-tests: New file.
6799         * tests/test-read.c: New file.
6800
6801         pwrite tests: EBADF tests.
6802         * tests/test-pwrite.c (main): Add tests for EBADF.
6803
6804         pread tests: EBADF tests.
6805         * tests/test-pread.c (main): Add tests for EBADF.
6806
6807         lseek tests: EBADF tests.
6808         * tests/test-lseek.c (main): Add more tests for EBADF.
6809
6810         Tests for module 'ftruncate'.
6811         * modules/ftruncate-tests: New file.
6812         * tests/test-ftruncate.sh: New file.
6813         * tests/test-ftruncate.c: New file.
6814
6815         fsync tests: EBADF tests.
6816         * tests/test-fsync.c (main): Add more tests for EBADF.
6817
6818         fdatasync tests: EBADF tests.
6819         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6820
6821         Tests for module 'fchown'.
6822         * modules/fchown-tests: New file.
6823         * tests/test-fchown.c: New file.
6824
6825         Tests for module 'fchmod'.
6826         * modules/fchmod-tests: New file.
6827         * tests/test-fchmod.c: New file.
6828
6829         fchdir tests: EBADF tests.
6830         * tests/test-fchdir.c (main): Add more tests for EBADF.
6831
6832         dup2 tests: EBADF tests.
6833         * tests/test-dup2.c (main): Add more tests for EBADF.
6834
6835         Tests for module 'dup'.
6836         * modules/dup-tests: New file.
6837         * tests/test-dup.c: New file.
6838
6839         Tests for module 'close'.
6840         * modules/close-tests: New file.
6841         * tests/test-close.c: New file.
6842
6843 2011-09-20  Bruno Haible  <bruno@clisp.org>
6844
6845         Tests for module 'shutdown'.
6846         * modules/shutdown-tests: New file.
6847         * tests/test-shutdown.c: New file.
6848
6849         Tests for module 'setsockopt'.
6850         * modules/setsockopt-tests: New file.
6851         * tests/test-setsockopt.c: New file.
6852
6853         Tests for module 'sendto'.
6854         * modules/sendto-tests: New file.
6855         * tests/test-sendto.c: New file.
6856
6857         Tests for module 'send'.
6858         * modules/send-tests: New file.
6859         * tests/test-send.c: New file.
6860
6861         Tests for module 'recvfrom'.
6862         * modules/recvfrom-tests: New file.
6863         * tests/test-recvfrom.c: New file.
6864
6865         Tests for module 'recv'.
6866         * modules/recv-tests: New file.
6867         * tests/test-recv.c: New file.
6868
6869         Tests for module 'listen'.
6870         * modules/listen-tests: New file.
6871         * tests/test-listen.c: New file.
6872
6873         Tests for module 'getsockopt'.
6874         * modules/getsockopt-tests: New file.
6875         * tests/test-getsockopt.c: New file.
6876
6877         Tests for module 'getsockname'.
6878         * modules/getsockname-tests: New file.
6879         * tests/test-getsockname.c: New file.
6880
6881         Tests for module 'getpeername'.
6882         * modules/getpeername-tests: New file.
6883         * tests/test-getpeername.c: New file.
6884
6885         Tests for module 'connect'.
6886         * modules/connect-tests: New file.
6887         * tests/test-connect.c: New file.
6888
6889         Tests for module 'bind'.
6890         * modules/bind-tests: New file.
6891         * tests/test-bind.c: New file.
6892
6893         accept4 tests: Fix for native Windows.
6894         * tests/test-accept4.c: Include sockets.h.
6895         (main): Invoke gl_sockets_startup.
6896         * modules/accept4-tests (Depends-on): Add sockets.
6897
6898         accept tests: Fix for native Windows.
6899         * tests/test-accept.c: Include sockets.h.
6900         (main): Invoke gl_sockets_startup.
6901         * modules/accept-tests (Depends-on): Add sockets.
6902
6903 2011-09-19  Bruno Haible  <bruno@clisp.org>
6904
6905         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6906         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6907         do...while(0).
6908         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6909         Suggested by Paul Eggert.
6910
6911 2011-09-19  Bruno Haible  <bruno@clisp.org>
6912
6913         sched: Ensure pid_t is defined.
6914         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6915         not define pid_t.
6916         * lib/sched.in.h: Include <sys/types.h>.
6917         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6919
6920 2011-09-19  Bruno Haible  <bruno@clisp.org>
6921
6922         msvc-inval: Ensure the entire expansion is a single statement.
6923         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6924         of braces.
6925
6926 2011-09-19  Jim Meyering  <meyering@redhat.com>
6927
6928         tests: use printf, not echo in init.sh's warn_ function
6929         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6930         misbehave when given strings containing a backslash or starting
6931         with e.g., -n.  James Youngman suggested setting IFS.
6932
6933 2011-09-19  Eric Blake  <eblake@redhat.com>
6934
6935         futimens: enhance test
6936         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6937         closed non-negative fd.
6938
6939         date: accept 'hence' as opposite of 'ago'
6940         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6941         * tests/test-parse-datetime.c (main): Enhance test.
6942         Suggested by Jesse Wilson.
6943
6944 2011-09-19  Jim Meyering  <meyering@redhat.com>
6945
6946         getcwd: don't fail in a deep directory on a system without openat
6947         Before this change, getcwd would fail when called from a directory
6948         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6949         the non-openat implementation used "..", "../..", "../../..", etc.
6950         to access ancestor directories.  With too many, that string would
6951         be longer than PATH_MAX.
6952         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6953         using gnulib's openat replacement.
6954         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6955         we're using the replacement function.
6956
6957 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6958
6959         maint.mk: avoid warnings from perl about missing files
6960         * top/maint.mk (def_sym_regex): Ignore files listed in
6961         $(gl_other_headers_) that do not exist, say because a project
6962         does not use a corresponding module.
6963
6964 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6965
6966         stat: use pathmax.h only if needed
6967         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6968         This is better for Emacs, which does not have a mingw port and
6969         therefore can avoid the pathmax module.
6970
6971         utimens: remove dependency on dup2
6972         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6973         to work around the Linux kernel bug.
6974         * modules/utimens (Depends-on): Remove dup2.
6975
6976 2011-09-18  Bruno Haible  <bruno@clisp.org>
6977
6978         inet_ntop, inet_pton: Look for it also in libresolv.
6979         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6980         libnsl, search for it in libresolv.
6981         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6982         Needed on Solaris 7.
6983
6984 2011-09-18  Bruno Haible  <bruno@clisp.org>
6985
6986         accept, accept4 tests: Avoid link error on Solaris.
6987         * modules/accept-tests (Makefile.am): Link test-accept against
6988         $(LIBSOCKET).
6989         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6990         $(LIBSOCKET).
6991
6992         accept4: Avoid link error on Solaris.
6993         * modules/accept4 (Link): New section.
6994
6995         socket functions: Avoid link errors on Solaris.
6996         * modules/accept (Depends-on): Add socketlib.
6997         (Link): New section.
6998         * modules/bind (Depends-on): Add socketlib.
6999         (Link): New section.
7000         * modules/connect (Depends-on): Add socketlib.
7001         (Link): New section.
7002         * modules/getpeername (Depends-on): Add socketlib.
7003         (Link): New section.
7004         * modules/getsockname (Depends-on): Add socketlib.
7005         (Link): New section.
7006         * modules/getsockopt (Depends-on): Add socketlib.
7007         (Link): New section.
7008         * modules/listen (Depends-on): Add socketlib.
7009         (Link): New section.
7010         * modules/recv (Depends-on): Add socketlib.
7011         (Link): New section.
7012         * modules/recvfrom (Depends-on): Add socketlib.
7013         (Link): New section.
7014         * modules/send (Depends-on): Add socketlib.
7015         (Link): New section.
7016         * modules/sendto (Depends-on): Add socketlib.
7017         (Link): New section.
7018         * modules/setsockopt (Depends-on): Add socketlib.
7019         (Link): New section.
7020         * modules/shutdown (Depends-on): Add socketlib.
7021         (Link): New section.
7022         * modules/socket (Depends-on): Add socketlib.
7023         (Link): New section.
7024
7025 2011-09-18  Bruno Haible  <bruno@clisp.org>
7026
7027         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
7028         * tests/test-ptsname.c (main): Terminate the test if it takes longer
7029         than 5 seconds.
7030         * modules/ptsname-tests (configure.ac): Test for alarm.
7031
7032 2011-09-18  Bruno Haible  <bruno@clisp.org>
7033
7034         posix_spawn_file_actions_add*: Fix module dependencies.
7035         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
7036         posix_spawn_file_actions_init.
7037         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
7038         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
7039
7040 2011-09-18  Bruno Haible  <bruno@clisp.org>
7041
7042         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
7043         * tests/test-rename.h (test_rename): Allow error code EEXIST.
7044         * tests/test-renameat.c (main): Likewise.
7045
7046 2011-09-18  Bruno Haible  <bruno@clisp.org>
7047
7048         Tests for module 'accept4'.
7049         * modules/accept4-tests: New file.
7050         * tests/test-accept4.c: New file.
7051
7052 2011-09-18  Bruno Haible  <bruno@clisp.org>
7053
7054         Tests for module 'accept'.
7055         * modules/accept-tests: New file.
7056         * tests/test-accept.c: New file.
7057
7058 2011-09-18  Bruno Haible  <bruno@clisp.org>
7059
7060         dup2: Support for MSVC.
7061         * lib/dup2.c: Include msvc-inval.h.
7062         (rpl_dup2): Handle invalid parameter notifications during dup2 and
7063         _get_osfhandle calls.
7064         * modules/dup2 (Depends-on): Add msvc-inval.
7065         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
7066
7067         New module 'msvc-inval'.
7068         * lib/msvc-inval.h: New file.
7069         * lib/msvc-inval.c: New file.
7070         * m4/msvc-inval.m4: New file.
7071         * modules/msvc-inval: New file.
7072
7073 2011-09-17  Bruno Haible  <bruno@clisp.org>
7074
7075         Tests for module 'pclose'.
7076         * modules/pclose-tests: New file.
7077
7078         New module 'pclose'.
7079         * lib/stdio.in.h (pclose): New declaration.
7080         * lib/pclose.c: New file.
7081         * m4/pclose.m4: New file.
7082         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
7083         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
7084         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
7085         * modules/pclose: New file.
7086         * modules/popen-tests (Depends-on): Add pclose.
7087         * modules/popen-safer-tests (Depends-on): Likewise.
7088         * doc/posix-functions/pclose.texi: Mention the new module.
7089
7090 2011-09-17  Bruno Haible  <bruno@clisp.org>
7091
7092         popen: Support for MSVC.
7093         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
7094         * lib/popen.c (popen): Provide alternate definition for native Windows.
7095         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
7096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
7097         * modules/popen (Depends-on, configure.ac): Update condition.
7098         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
7099         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
7100         fixed.
7101
7102 2011-09-17  Bruno Haible  <bruno@clisp.org>
7103
7104         isnanl, isnand, isnanf: Work around MSVC bug.
7105         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
7106
7107 2011-09-17  Bruno Haible  <bruno@clisp.org>
7108
7109         sys_socket tests: Fix recent mistake.
7110         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
7111
7112 2011-09-17  Bruno Haible  <bruno@clisp.org>
7113
7114         putenv: Support for MSVC.
7115         * modules/putenv (Depends-on): Add environ.
7116         * lib/putenv.c (environ): Disable declaration.
7117         * lib/unistd.in.h: Update comment.
7118
7119 2011-09-17  Bruno Haible  <bruno@clisp.org>
7120
7121         math: Avoid macro redefinition warnings on MSVC.
7122         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
7123         Undefine before redefining.
7124
7125 2011-09-17  Bruno Haible  <bruno@clisp.org>
7126
7127         doc: Mention functions which are declared as macros.
7128         * doc/posix-functions/*[fl].texi: Mention that some functions are
7129         defined as macros with arguments only.
7130
7131 2011-09-17  Bruno Haible  <bruno@clisp.org>
7132
7133         Add dependencies to new dirent related modules.
7134         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
7135         * modules/fts (Depends-on): Likewise.
7136         * modules/glob (Depends-on): Likewise.
7137         * modules/savedir (Depends-on): Likewise.
7138         * modules/scandir (Depends-on): Likewise.
7139         * modules/dirent-safer (Depends-on): Add opendir, closedir.
7140         * modules/fdopendir (Depends-on): Add opendir.
7141
7142 2011-09-17  Bruno Haible  <bruno@clisp.org>
7143
7144         inet_pton: Support for MSVC on Windows Vista or newer.
7145         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
7146         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
7147         HAVE_DECL_INET_PTON is defined.
7148         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7149         On platforms with <winsock2.h>, test whether inet_pton is declared in
7150         <ws2tcpip.h>. If so, arrange to replace it.
7151         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7152         REPLACE_INET_PTON.
7153         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
7154         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
7155         (Depends-on, configure.ac): Update condition.
7156         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
7157
7158 2011-09-17  Bruno Haible  <bruno@clisp.org>
7159
7160         inet_ntop: Support for MSVC on Windows Vista or newer.
7161         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
7162         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
7163         HAVE_DECL_INET_NTOP is defined.
7164         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7165         On platforms with <winsock2.h>, test whether inet_ntop is declared in
7166         <ws2tcpip.h>. If so, arrange to replace it.
7167         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7168         REPLACE_INET_NTOP.
7169         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
7170         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
7171         (Depends-on, configure.ac): Update condition.
7172         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
7173
7174 2011-09-16  Eric Blake  <eblake@redhat.com>
7175
7176         test-fsync: yet another enhancement
7177         * tests/test-fsync.c (main): Also test behavior on read-only text
7178         file.
7179
7180 2011-09-16  Bruno Haible  <bruno@clisp.org>
7181
7182         Enhance fsync, fdatasync tests.
7183         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
7184         * tests/test-fdatasync.c (main): Likewise.
7185
7186 2011-09-16  Bruno Haible  <bruno@clisp.org>
7187
7188         Support for MSVC compiler: Ensure mode_t gets defined.
7189         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
7190         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7192         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
7193         * tests/test-fcntl-h.c: Check that mode_t is defined.
7194         * tests/test-sys_stat.c: Likewise.
7195         * tests/test-sys_types.c: Likewise.
7196         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
7197         * doc/posix-headers/sys_stat.texi: Likewise.
7198         * doc/posix-headers/sys_types.texi: Likewise.
7199
7200 2011-09-16  Bruno Haible  <bruno@clisp.org>
7201
7202         sys_stat: Support for MSVC.
7203         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
7204         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
7205         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
7206         MSVC.
7207
7208 2011-09-16  Bruno Haible  <bruno@clisp.org>
7209
7210         Support for MSVC compiler: Ensure off_t gets defined.
7211         * lib/unistd.in.h: Include <sys/types.h>.
7212         * tests/test-fcntl-h.c: Check that off_t is defined.
7213         * tests/test-sys_stat.c: Likewise.
7214         * tests/test-sys_types.c: Likewise.
7215
7216 2011-09-16  Eric Blake  <eblake@redhat.com>
7217
7218         fdatasync: port to Solaris
7219         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
7220         * modules/fdatasync (Link): Document it.
7221         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
7222
7223         fdatasync: port to MacOS X 10.7
7224         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
7225         declared.
7226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
7227         * modules/unistd (Makefile.am): Substitute it.
7228         * lib/unistd.in.h (fdatasync): Declare on MacOS.
7229         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
7230
7231         fdatasync: minor improvements
7232         * modules/fdatasync (Depends-on): Add condition for fsync.
7233         * lib/fdatasync.c (fdatasync): Add comment.
7234         * tests/test-unistd-c++.cc: Test fdatasync.
7235
7236         unistd: update refs to newer POSIX
7237         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
7238         Suggested by Bruno Haible.
7239
7240         fdatasync: new module
7241         * modules/fsync (Description): Document difference to fdatasync.
7242         * modules/fdatasync: New module.
7243         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
7244         * lib/fdatasync.c (fdatasync): Likewise.
7245         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
7246         defaults.
7247         * modules/unistd (Makefile.am): Set witnesses.
7248         * lib/unistd.in.h (fdatasync): Declare.
7249         * MODULES.html.sh: Document it.
7250         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
7251         * modules/fdatasync-tests: New test.
7252         * tests/test-fdatasync.c: Likewise.
7253
7254 2011-09-16  Eric Blake  <eblake@redhat.com>
7255
7256         test-fsync: enhance tests
7257         * modules/fsync-tests (Depends-on): Add errno, for mingw.
7258         * tests/test-fsync.c (main): Enhance test.
7259
7260 2011-09-15  Bruno Haible  <bruno@clisp.org>
7261
7262         Support for MSVC compiler: Ensure ssize_t gets defined.
7263         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
7264         * doc/posix-headers/stdio.texi: Likewise.
7265         * modules/stdio (Depends-on): Add ssize_t.
7266         * modules/sys_socket (Depends-on): Likewise.
7267         * modules/sys_types (Depends-on): Likewise.
7268         * modules/sys_uio (Depends-on): Likewise.
7269         * modules/unistd (Depends-on): Likewise.
7270         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
7271         * tests/test-sys_types.c: Check that ssize_t is defined.
7272
7273 2011-09-14  Bruno Haible  <bruno@clisp.org>
7274
7275         Avoid using #, the m4 comment starter character, near brackets.
7276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
7277         delimiter character in sed expressions.
7278         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7279         Suggested by Eric Blake.
7280
7281         Properly quote AC_CHECK_DECLS' 4th argument.
7282         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
7283         argument.
7284         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7285         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7286         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7287         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7288         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7289         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
7290         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
7291         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
7292         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
7293         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7294         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
7295         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7296         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7297         * m4/isinf.m4 (gl_ISINF): Likewise.
7298         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7299         * m4/readutmp.m4 (gl_READUTMP): Likewise.
7300         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7301         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7302         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7303         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7304         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
7305         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7306         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
7307         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7308         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7309         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
7311         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7313         Reported by Eric Blake.
7314
7315         Properly quote AC_CHECK_DECL's 4th argument.
7316         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
7317         argument.
7318         * m4/argp.m4 (gl_ARGP): Likewise.
7319         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
7320         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7321         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
7322         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7323         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
7324         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
7325         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7326         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
7327         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7328         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
7329         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
7330         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
7331         Reported by Eric Blake.
7332
7333 2011-09-14  Eric Blake  <eblake@redhat.com>
7334
7335         opendir: avoid compile warning
7336         * lib/opendir.c (includes): Always include errno.h.
7337         Reported by Tatsuro MATSUOKA.
7338
7339 2011-09-14  Jim Meyering  <meyering@redhat.com>
7340
7341         maint.mk: sc_tight_scope: propagate failure from sub-make
7342         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
7343         Reported by Martin von Gagern.
7344
7345 2011-09-13  Bruno Haible  <bruno@clisp.org>
7346
7347         tempname: Support for MSVC.
7348         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
7349         MSVC.
7350         * modules/tempname (Depends-on): Add fcntl-h.
7351
7352 2011-09-13  Bruno Haible  <bruno@clisp.org>
7353
7354         sys_time: Support for MSVC.
7355         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
7356         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
7357         include <winsock2.h>.
7358         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
7359         function declarations that collide with POSIX.
7360         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
7361         (Makefile.am): Substitute HAVE_WINSOCK2_H.
7362
7363 2011-09-13  Bruno Haible  <bruno@clisp.org>
7364
7365         stat: Support for MSVC.
7366         * lib/stat.c: Include pathmax.h.
7367         * modules/stat (Depends-on): Add pathmax.
7368
7369         pathmax: Support for native Windows.
7370         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
7371
7372 2011-09-12  Bruno Haible  <bruno@clisp.org>
7373
7374         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
7375         * lib/dirent.in.h (struct dirent): New type.
7376         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
7377         DT_WHT): New macros.
7378         (DIR): New type.
7379         (opendir, closedir): Declare only if the module 'opendir' is enabled.
7380         (readdir, rewinddir): New declarations.
7381         * lib/dirent-private.h: New file.
7382         * lib/opendir.c: New file.
7383         * lib/readdir.c: New file.
7384         * lib/rewinddir.c: New file.
7385         * lib/closedir.c: New file.
7386         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
7387         * m4/opendir.m4: New file.
7388         * m4/readdir.m4: New file.
7389         * m4/rewinddir.m4: New file.
7390         * m4/closedir.m4: New file.
7391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
7392         REPLACE_CLOSEDIR here.
7393         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
7394         readdir, rewinddir are declared.
7395         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
7396         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
7397         HAVE_REWINDDIR, HAVE_CLOSEDIR.
7398         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
7399         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
7400         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
7401         * modules/opendir: New file.
7402         * modules/readdir: New file.
7403         * modules/rewinddir: New file.
7404         * modules/closedir: New file.
7405         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
7406         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
7407         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
7408         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
7409         * NEWS: Mention the 'fchdir' change.
7410
7411 2011-09-11  Bruno Haible  <bruno@clisp.org>
7412
7413         asm-underscore.m4: Support for MSVC.
7414         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
7415         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
7416
7417 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
7418
7419         Doc about crypt functions.
7420         * doc/posix-functions/crypt.texi: Expand range of glibc versions
7421         needing for _GNU_SOURCE to get crypt.
7422         * doc/posix-functions/encrypt.texi: Likewise.
7423         * doc/posix-functions/setkey.texi: Likewise.
7424
7425 2011-09-11  Bruno Haible  <bruno@clisp.org>
7426
7427         doc: Update regarding MSVC 9.
7428         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
7429         tested".
7430         * doc/posix-functions/*.texi: Update with info about MSVC 9.
7431         * doc/posix-headers/*.texi: Likewise.
7432         * doc/pastposix-functions/*.texi: Likewise.
7433         * doc/glibc-functions/*.texi: Likewise.
7434         * doc/glibc-headers/*.texi: Likewise.
7435
7436 2011-09-11  Bruno Haible  <bruno@clisp.org>
7437
7438         unistd et al.: Don't assume <unistd.h> exists.
7439         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
7440         does not exist.
7441         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
7442         exist. But include <stdlib.h>.
7443         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
7444         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
7445         symlink() does not exist.
7446         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
7447         include <io.h> instead.
7448         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
7449         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
7450         include <direct.h> instead.
7451         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7452         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7453         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
7454         <io.h> instead.
7455         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
7456         correctly if the system does not have hard links.
7457         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
7458         <direct.h> instead.
7459         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
7460         it when looking for function declarations.
7461         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
7462         <direct.h> and <io.h> instead.
7463         * doc/posix-headers/unistd.texi: More details about MSVC problem.
7464
7465 2011-09-11  Bruno Haible  <bruno@clisp.org>
7466
7467         strcase: Support for MSVC.
7468         * modules/strcase (Status, Notice): Remove obsoletion mark.
7469         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
7470         * doc/posix-functions/strncasecmp.texi: Likewise.
7471
7472         strings: Don't assume <strings.h> exists.
7473         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
7474         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
7475         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
7476         * doc/posix-headers/strings.texi: Mention the MSVC problem.
7477
7478 2011-09-11  Bruno Haible  <bruno@clisp.org>
7479
7480         dirent: Don't assume <dirent.h> exists.
7481         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
7482         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
7483         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
7484         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
7485
7486 2011-09-11  Bruno Haible  <bruno@clisp.org>
7487
7488         Fix wint_t on MSVC.
7489         * lib/wchar.in.h (wint_t): On MSVC, override it.
7490         * lib/wctype.in.h (wint_t): Likewise.
7491         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
7492         MSVC.
7493         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
7494         * doc/posix-headers/wctype.texi: Likewise.
7495
7496 2011-09-11  Bruno Haible  <bruno@clisp.org>
7497
7498         sys_types: Fix typo.
7499         * lib/sys_types.in.h: Fix typo in comment.
7500         Reported by Paul Eggert.
7501
7502         Support for MSVC compiler: Ensure size_t gets defined.
7503         * modules/strings (Depends-on): Add 'sys_types'.
7504         * modules/sys_uio (Depends-on): Likewise.
7505         * lib/sys_uio.in.h: Update comment.
7506
7507         C++ tests for module 'sys_types'.
7508         * modules/sys_types-c++-tests: New file.
7509         * tests/test-sys_types-c++.cc: New file.
7510
7511         Tests for module 'sys_types'.
7512         * modules/sys_types-tests: New file.
7513         * tests/test-sys_types.c: New file.
7514
7515         New module 'sys_types'.
7516         * lib/sys_types.in.h: New file.
7517         * m4/sys_types_h.m4: New file.
7518         * modules/sys_types: New file.
7519         * doc/posix-headers/sys_types.texi: Mention the new module and the
7520         size_t problem on MSVC 9.
7521
7522 2011-09-11  Bruno Haible  <bruno@clisp.org>
7523
7524         Support for MSVC compiler: Avoid division by a literal 0.
7525         * lib/math.in.h (NAN): Define through a function call also on MSVC.
7526         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
7527         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
7528         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
7529         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
7530         * tests/infinity.h: New file.
7531         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
7532         on MSVC.
7533         * tests/test-ceilf1.c: Include infinity.h.
7534         (main): Use Infinityf.
7535         * tests/test-ceil1.c: Include infinity.h.
7536         (main): Use Infinityd.
7537         * tests/test-ceill.c: Include infinity.h.
7538         (main): Use Infinityl.
7539         * tests/test-dprintf-posix.c: Include infinity.h.
7540         (test_function): Use Infinityd.
7541         * tests/test-floorf1.c: Include infinity.h.
7542         (main): Use Infinityf.
7543         * tests/test-floor1.c: Include infinity.h.
7544         (main): Use Infinityd.
7545         * tests/test-floorl.c: Include infinity.h.
7546         (main): Use Infinityl.
7547         * tests/test-fprintf-posix.c: Include infinity.h.
7548         (test_function): Use Infinityd.
7549         * tests/test-frexp.c: Include infinity.h.
7550         (main): Use Infinityd.
7551         * tests/test-frexpl.c: Include infinity.h.
7552         (main): Use Infinityl.
7553         * tests/test-isfinite.c: Include infinity.h.
7554         (test_isfinitef): Use Infinityf.
7555         (test_isfinited): Use Infinityd.
7556         (test_isfinitel): Use Infinityl.
7557         * tests/test-isinf.c: Include infinity.h.
7558         (test_isinff): Use Infinityf.
7559         (test_isinfd): Use Infinityd.
7560         (test_isinfl): Use Infinityl.
7561         * tests/test-isnan.c: Include infinity.h.
7562         (test_float): Use Infinityf.
7563         (test_double): Use Infinityd.
7564         (test_long_double): Use Infinityl.
7565         * tests/test-isnanf.h: Include infinity.h.
7566         (main): Use Infinityf.
7567         * tests/test-isnand.h: Include infinity.h.
7568         (main): Use Infinityd.
7569         * tests/test-isnanl.h: Include infinity.h.
7570         (main): Use Infinityl.
7571         * tests/test-ldexpl.c: Include infinity.h.
7572         (main): Use Infinityl.
7573         * tests/test-printf-posix.h: Include infinity.h.
7574         (test_function): Use Infinityd.
7575         * tests/test-roundf1.c: Include infinity.h.
7576         (main): Use Infinityf.
7577         * tests/test-round1.c: Include infinity.h.
7578         (main): Use Infinityd.
7579         * tests/test-roundl.c: Include infinity.h.
7580         (main): Use Infinityl.
7581         * tests/test-signbit.c: Include infinity.h.
7582         (test_signbitf): Use Infinityf.
7583         (test_signbitd): Use Infinityd.
7584         (test_signbitl): Use Infinityl.
7585         * tests/test-snprintf-posix.h: Include infinity.h.
7586         (test_function): Use Infinityd, Infinityl.
7587         * tests/test-sprintf-posix.h: Include infinity.h.
7588         (test_function): Use Infinityd, Infinityl.
7589         * tests/test-truncf1.c: Include infinity.h.
7590         (main): Use Infinityf.
7591         * tests/test-trunc1.c: Include infinity.h.
7592         (main): Use Infinityd.
7593         * tests/test-truncl.c: Include infinity.h.
7594         (main): Use Infinityl.
7595         * tests/test-vasnprintf-posix.c: Include infinity.h.
7596         (test_function): Use Infinityd, Infinityl.
7597         * tests/test-vasprintf-posix.c: Include infinity.h.
7598         (test_function): Use Infinityd, Infinityl.
7599         * modules/ceilf-tests (Files): Add tests/infinity.h.
7600         * modules/ceil-tests (Files): Likewise.
7601         * modules/ceill-tests (Files): Likewise.
7602         * modules/dprintf-posix-tests (Files): Likewise.
7603         * modules/floorf-tests (Files): Likewise.
7604         * modules/floor-tests (Files): Likewise.
7605         * modules/floorl-tests (Files): Likewise.
7606         * modules/fprintf-posix-tests (Files): Likewise.
7607         * modules/frexp-tests (Files): Likewise.
7608         * modules/frexp-nolibm-tests (Files): Likewise.
7609         * modules/frexpl-tests (Files): Likewise.
7610         * modules/frexpl-nolibm-tests (Files): Likewise.
7611         * modules/isfinite-tests (Files): Likewise.
7612         * modules/isinf-tests (Files): Likewise.
7613         * modules/isnan-tests (Files): Likewise.
7614         * modules/isnanf-tests (Files): Likewise.
7615         * modules/isnanf-nolibm-tests (Files): Likewise.
7616         * modules/isnand-tests (Files): Likewise.
7617         * modules/isnand-nolibm-tests (Files): Likewise.
7618         * modules/isnanl-tests (Files): Likewise.
7619         * modules/isnanl-nolibm-tests (Files): Likewise.
7620         * modules/ldexpl-tests (Files): Likewise.
7621         * modules/printf-posix-tests (Files): Likewise.
7622         * modules/roundf-tests (Files): Likewise.
7623         * modules/round-tests (Files): Likewise.
7624         * modules/roundl-tests (Files): Likewise.
7625         * modules/signbit-tests (Files): Likewise.
7626         * modules/snprintf-posix-tests (Files): Likewise.
7627         * modules/sprintf-posix-tests (Files): Likewise.
7628         * modules/truncf-tests (Files): Likewise.
7629         * modules/trunc-tests (Files): Likewise.
7630         * modules/truncl-tests (Files): Likewise.
7631         * modules/vasnprintf-posix-tests (Files): Likewise.
7632         * modules/vasprintf-posix-tests (Files): Likewise.
7633         * modules/vdprintf-posix-tests (Files): Likewise.
7634         * modules/vfprintf-posix-tests (Files): Likewise.
7635         * modules/vprintf-posix-tests (Files): Likewise.
7636         * modules/vsnprintf-posix-tests (Files): Likewise.
7637         * modules/vsprintf-posix-tests (Files): Likewise.
7638         * modules/xprintf-posix-tests (Files): Likewise.
7639
7640 2011-09-11  Bruno Haible  <bruno@clisp.org>
7641
7642         Ensure pid_t gets defined.
7643         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
7644         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7645         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7646         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7647         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7648         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7649         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7650         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7651         * tests/test-fcntl-h.c: Check that pid_t is defined.
7652         * tests/test-sched.c: Likewise.
7653         * tests/test-termios.c: Likewise.
7654         * tests/test-time.c: Likewise.
7655         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
7656         * doc/posix-headers/signal.texi: Likewise.
7657         * doc/posix-headers/sys_types.texi: Likewise.
7658         * doc/posix-headers/time.texi: Likewise.
7659
7660 2011-09-11  Bruno Haible  <bruno@clisp.org>
7661
7662         acl: Fix compilation on Solaris 10 (older version).
7663         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
7664         of ACE_EVERYONE.
7665         * lib/set-mode-acl.c (qset_acl): Likewise.
7666         Reported by Christian Jullien <eligis@orange.fr>.
7667
7668 2011-09-10  Bruno Haible  <bruno@clisp.org>
7669
7670         iconv, unsetenv: Add support for MSVC compiler.
7671         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
7672         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
7673
7674 2011-09-10  Bruno Haible  <bruno@clisp.org>
7675
7676         *printf: Add support for MSVC compiler.
7677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
7678         handles the exception caused by the %n directive. When cross-compiling,
7679         guess no on native Windows.
7680         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7681         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
7682         emulate it through vsnprintf.
7683         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
7684         * doc/posix-functions/dprintf.texi: Update documentation regarding
7685         MSVC 9.
7686         * doc/posix-functions/fprintf.texi: Likewise.
7687         * doc/posix-functions/printf.texi: Likewise.
7688         * doc/posix-functions/snprintf.texi: Likewise.
7689         * doc/posix-functions/sprintf.texi: Likewise.
7690         * doc/posix-functions/swprintf.texi: Likewise.
7691         * doc/posix-functions/vdprintf.texi: Likewise.
7692         * doc/posix-functions/vfprintf.texi: Likewise.
7693         * doc/posix-functions/vprintf.texi: Likewise.
7694         * doc/posix-functions/vsnprintf.texi: Likewise.
7695         * doc/posix-functions/vsprintf.texi: Likewise.
7696         * doc/glibc-functions/asprintf.texi: Likewise.
7697         * doc/glibc-functions/obstack_printf.texi: Likewise.
7698         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7699         * doc/glibc-functions/vasprintf.texi: Likewise.
7700
7701 2011-09-10  Bruno Haible  <bruno@clisp.org>
7702
7703         nocrash: Add support for native Windows.
7704         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
7705
7706 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
7707             Bruno Haible  <bruno@clisp.org>
7708
7709         absolute-header, include-next: Add support for MSVC compiler.
7710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
7711         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
7712         directory separator in #line directives.
7713         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
7714         recognize also backslash as directory separator in #line directives.
7715
7716 2011-09-08  Jim Meyering  <meyering@redhat.com>
7717
7718         maint.mk: mark the post-release commit log with "maint: " prefix
7719         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
7720         one-line commit-log summary.
7721
7722 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
7723             Bruno Haible  <bruno@clisp.org>
7724
7725         Doc about crypt functions.
7726         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
7727         systems.
7728         * doc/posix-functions/encrypt.texi: Likewise.
7729         * doc/posix-functions/setkey.texi: Likewise.
7730
7731 2011-09-08  Simon Josefsson  <simon@josefsson.org>
7732
7733         * lib/gc.h: Fix copyright header.
7734
7735 2011-09-07  Bruno Haible  <bruno@clisp.org>
7736
7737         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
7738         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
7739         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
7740
7741 2011-09-07  Bruno Haible  <bruno@clisp.org>
7742
7743         openat: Work around compilation error with OSF/1 5.1 DTK cc.
7744         * lib/fopen.c: Use different syntax for include of <stdio.h>.
7745         * lib/freopen.c: Likewise.
7746         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
7747         * lib/lstat.c: Likewise.
7748         * lib/stat.c: Likewise.
7749         * lib/open.c: Use different syntax for include of <fcntl.h>.
7750         * lib/openat.c: Include fcntl.h again, explicitly.
7751
7752 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
7753
7754         parse-datetime: document the newly accepted format
7755         * doc/parse-datetime.texi (Combined date and time of day items):
7756         New section.
7757
7758 2011-09-06  Bruno Haible  <bruno@clisp.org>
7759
7760         acl: Fix a test failure on newer Solaris 10 with ZFS.
7761         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
7762         ENOSYS as no ACL.
7763         Reported by Jim Meyering.
7764
7765 2011-09-06  Bruno Haible  <bruno@clisp.org>
7766
7767         acl: Update for AIX >= 5.3 with NFS.
7768         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
7769         ENOSYS as no ACL.
7770
7771         acl: Fix a test failure on AIX >= 5.3 with NFS.
7772         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
7773         as no ACL.
7774
7775 2011-09-06  Bruno Haible  <bruno@clisp.org>
7776
7777         acl: Fix a test failure on IRIX 6.5 with NFS.
7778         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
7779         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
7780         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
7781         * lib/copy-acl.c (qcopy_acl): Likewise.
7782
7783 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7784
7785         openat: port to AIX 7.1 with large files
7786         AIX 7.1 does a "#define openat open64at" if large files are in use,
7787         so we can't simply #undef openat.  Use the orig_openat trick (similar
7788         to orig_open in lib/open.c) to work around the problem.  Problem
7789         reported by Kevin Brott for GNU tar, in the thread containing
7790         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
7791         * lib/openat.c (__need_system_fcntl_h): Define first.
7792         Include <fcntl.h> and <sys/types.h> before undefining.
7793         (orig_openat) [HAVE_OPENAT]: New inline function.
7794         (openat) [HAVE_OPENAT]: Do not undef.
7795         (rpl_openat): Use orig_openat, not openat.
7796
7797 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7798             Bruno Haible  <bruno@clisp.org>
7799
7800         acl: Avoid errors on NonStop Kernel.
7801         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
7802         ENOTSUP errors.
7803
7804 2011-09-05  Bruno Haible  <bruno@clisp.org>
7805
7806         acl: Clean up Solaris code.
7807         * lib/acl-internal.h: Remove no-op #if.
7808         * lib/file-has-acl.c: Likewise.
7809         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7810         * lib/copy-acl.c (qcopy_acl): Likewise.
7811
7812 2011-09-05  Bruno Haible  <bruno@clisp.org>
7813
7814         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7815         binaries built on the original Solaris 10.
7816         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7817         trivial.
7818
7819 2011-09-05  Bruno Haible  <bruno@clisp.org>
7820
7821         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7822         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7823         10.
7824         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7825         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7826         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7827         instead of acl_get, facl_get, acl_set, facl_set.
7828
7829 2011-09-05  Bruno Haible  <bruno@clisp.org>
7830
7831         copy-file: Try unit tests on more file systems.
7832         * tests/test-copy-file-1.sh: New file.
7833         * tests/test-copy-file-2.sh: New file.
7834         * modules/copy-file-tests (Files): Add them.
7835         (Makefile.am): Add them to TESTS.
7836
7837         acl: Try unit tests on more file systems.
7838         * tests/test-file-has-acl-1.sh: New file.
7839         * tests/test-file-has-acl-2.sh: New file.
7840         * tests/test-set-mode-acl-1.sh: New file.
7841         * tests/test-set-mode-acl-2.sh: New file.
7842         * tests/test-copy-acl-1.sh: New file.
7843         * tests/test-copy-acl-2.sh: New file.
7844         * modules/acl-tests (Files): Add them.
7845         (Makefile.am): Add them to TESTS.
7846
7847 2011-09-04  Bruno Haible  <bruno@clisp.org>
7848
7849         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7850         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7851         10.
7852         (OLD_ALLOW, OLD_DENY): New macros.
7853         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7854         ACE_ACCESS_ALLOWED_ACE_TYPE.
7855         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7856         ACE_ACCESS_DENIED_ACE_TYPE.
7857         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7858         (NEW_ACE_EXECUTE): Fix value.
7859         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7860         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7861         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7862         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7863         NEW_ACE_SYNCHRONIZE): New macros.
7864         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7865         instead of acl_fromtext, acl_set, facl_set.
7866         Fixes a coreutils/tests/cp/perm failure.
7867
7868 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7869
7870         openat: test for fstatat (..., 0) bug
7871         Further testing with tar suggests that fstatat (..., 0)
7872         does not work in general, on AIX 7.1; see
7873         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7874         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7875         replacement fstatat (which is what older AIX releases were using
7876         anyway).
7877         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7878         use is now changed to orig_fstatat.  This was probably the right
7879         thing to do anyway.
7880         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7881         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7882         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7883         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7884         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7885         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7886         if the bug is found.
7887
7888         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7889         This tests for another fstatat bug on AIX 7.1:
7890         fstatat (AT_FDCWD, ..., 0) does not work.  See
7891         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7892         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7893         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7894         (rpl_fstatat): Adjust so that it works around either (or both)
7895         bugs if present.
7896         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7897
7898 2011-09-03  Karl Berry  <karl@gnu.org>
7899
7900         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7901         in index entries.
7902
7903 2011-09-02  Bruno Haible  <bruno@clisp.org>
7904
7905         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7906         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7907         values of AR, ARFLAGS, RANLIB.
7908         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7909
7910 2011-09-02  Bruno Haible  <bruno@clisp.org>
7911
7912         Find 'ar' program that fits with --host argument.
7913         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7914
7915 2011-09-02  Bruno Haible  <bruno@clisp.org>
7916
7917         tests: init.sh: Support any non-GNU diff.
7918         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7919         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7920         Solaris 8.
7921
7922 2011-09-02  Bruno Haible  <bruno@clisp.org>
7923
7924         tests: init.sh: work also with any non-GNU diff that supports -u
7925         * tests/init.sh: Relax check for diff -u support.
7926         Rather than checking for GNU diff via --version, simply check
7927         for support for -u itself.  Useful at least on OpenBSD 4.9,
7928         AIX 7.1, IRIX 6.5, and Solaris 10.
7929
7930 2011-09-01  Bruno Haible  <bruno@clisp.org>
7931
7932         strtoimax, strtoumax: Document problem on HP-UX 11.
7933         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7934         * doc/posix-functions/strtoumax.texi: Likewise.
7935
7936 2011-09-01  Bruno Haible  <bruno@clisp.org>
7937
7938         strtoumax: Avoid link error on OSF/1 with DTK cc.
7939         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7940         defined as a function.
7941         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7942         strtoumax is defined, not whether it is declared.
7943
7944 2011-09-01  Bruno Haible  <bruno@clisp.org>
7945
7946         strtoimax: Avoid link error on OSF/1 with DTK cc.
7947         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7948         defined as a function.
7949         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7950         strtoimax is defined, not whether it is declared.
7951
7952 2011-09-01  Bruno Haible  <bruno@clisp.org>
7953
7954         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7955         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7956         as a function.
7957         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7958         whether it is declared.
7959
7960 2011-09-01  Bruno Haible  <bruno@clisp.org>
7961
7962         imaxabs: Avoid link error on OSF/1 with DTK cc.
7963         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7964         as a function.
7965         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7966         whether it is declared.
7967
7968 2011-09-01  Bruno Haible  <bruno@clisp.org>
7969
7970         Tests for module 'strtoumax'.
7971         * modules/strtoumax-tests: New file.
7972         * tests/test-strtoumax.c: New file.
7973
7974         Tests for module 'strtoimax'.
7975         * modules/strtoimax-tests: New file.
7976         * tests/test-strtoimax.c: New file.
7977
7978         Tests for module 'imaxdiv'.
7979         * modules/imaxdiv-tests: New file.
7980         * tests/test-imaxdiv.c: New file.
7981
7982         Tests for module 'imaxabs'.
7983         * modules/imaxabs-tests: New file.
7984         * tests/test-imaxabs.c: New file.
7985
7986 2011-09-01  Bruno Haible  <bruno@clisp.org>
7987
7988         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7989         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7990         pthread_create.
7991
7992 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7993
7994         openat: work around AIX 7.1 fstatat issue
7995         This should fix the problem that was not properly fixed
7996         in the previous change, dated 2011-08-30.
7997         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7998         __need_system_stat_h defined.
7999         (orig_fstatat) [HAVE_FSTATAT]: New function.
8000         (rpl_fstatat): Go back to the old way of doing things,
8001         except call orig_fstatat instead of fstatat.
8002         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
8003         Remove unnecessary check whether fstatat fills in st_size etc.
8004
8005 2011-09-01  Bruno Haible  <bruno@clisp.org>
8006
8007         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
8008         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
8009         just include the system's header.
8010
8011 2011-08-31  Jim Meyering  <meyering@redhat.com>
8012
8013         tests: avoid spurious assertion failure in test-float.c on ppc64
8014         * tests/test-float.c (test_long_double): Comment out an assertion,
8015         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
8016         with gcc-4.4.4.
8017
8018         maint: indent with spaces, not TABs
8019         I need to get in the habit of running gnulib's "make check".
8020         Both of these would have been caught.
8021         * m4/largefile.m4: Indent with spaces, not TABs.
8022         * lib/parse-datetime.y (iso_8601_time): Likewise.
8023         Spotted by Pádraig Brady.
8024
8025         test-parse-datetime.c: accommodate a relatively strict gcc warning
8026         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
8027         to avoid a warning from gcc's -Werror=missing-declarations.
8028         Insert a few spaces-before-funcall-parenthesis.
8029
8030 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
8031
8032         parse-datetime: accept ISO 8601 date and time rep with "T" separator
8033         The parser now accepts ISO 8601 date-time strings with "T" as the
8034         separator.  It has long parsed dates like "2004-02-29 16:21:42"
8035         with a space between the date and time strings.  Now it also parses
8036         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
8037         variants like "2004-02-29T16:21:42.333-07:00"
8038         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
8039         of day representation using the 'T' separator character.
8040         * doc/parse-datetime.texi (General date syntax): replace use of
8041         deprecated --iso-8601 option with --rfc-3339 in example of date
8042         command output formats that can be parsed.
8043         * tests/test-parse-datetime.c (tm_diff): New function, taken from
8044         lib/parse-datetime.y.
8045         (gmt_offset): New function.
8046         (main): Add additional test cases to validate ISO8601 extended
8047         date and time of day parsing.
8048
8049 2011-08-31  Bruno Haible  <bruno@clisp.org>
8050
8051         freopen: Documentation.
8052         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
8053         name.
8054         Reported by Claudio Bley <claudio.bley@gmail.com>.
8055
8056 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
8057
8058         freopen: Don't crash if the filename argument is NULL.
8059         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
8060         NULL.
8061
8062 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8063
8064         openat: work around AIX 7.1 fstatat bug
8065         Problem reported by Kevin Brott for GNU tar, in the thread containing
8066         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
8067         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
8068         FSTATAT_ST_SIZE_ETC_BROKEN.
8069         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
8070         rpl_fstatat.
8071         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
8072         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
8073         AC_CHECK_FUNCS_ONCE for fstatat.
8074         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
8075         fchmodat, mkdirat, openat and unlinkat.
8076
8077 2011-08-30  Bruno Haible  <bruno@clisp.org>
8078
8079         Avoid endless recursions if config.h includes some header files.
8080         * lib/fopen.c (__need_FILE): Define already before including config.h.
8081         * lib/freopen.c (__need_FILE): Likewise.
8082         * lib/open.c (__need_system_fcntl_h): Likewise.
8083         * lib/stat.c (__need_system_sys_stat_h): Likewise.
8084         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
8085         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8086
8087 2011-08-25  Karl Berry  <karl@gnu.org>
8088
8089         * config/srclist.txt (ylwrap): new try.
8090         * build-aux/ylwrap: new file.
8091
8092 2011-08-23  Bruno Haible  <bruno@clisp.org>
8093
8094         tmpdir: Use a good default directory on native Windows.
8095         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
8096         (P_tmpdir): Default to _P_tmpdir on native Windows.
8097         (path_search): On native Windows, try the value returned by GetTempPath
8098         before trying P_tmpdir.
8099         * modules/tmpdir (Depends-on): Add pathmax.
8100         Suggested by John Darrington <john@darrington.wattle.id.au>.
8101
8102 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
8103
8104         doc: fix typo in README-release
8105         * top/README-release: Capitalize first word of a sentence.
8106
8107 2011-08-19  Jim Meyering  <meyering@redhat.com>
8108
8109         fts: do not exhaust memory when processing million-entry directories
8110         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
8111         directory would require about 256*N bytes of memory.  Thus, it was
8112         easy to construct a directory too large to be processed by any of
8113         those tools.  With this change, fts' maximum memory utilization is
8114         now limited to around 30MB.
8115         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
8116         (fts_read): When we've processed the final entry (i.e., when
8117         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
8118         using the parent entry to read any remaining entries.  Dispatch
8119         depending on what fts_build returns:
8120         - NULL+stop, aka failure: stop
8121         - NULL otherwise: move up in the dir hierarchy
8122         - non-NULL: handle this new entry
8123         (fts_build): Declare and use new local, continue_readdir.
8124         Prepare to be called from fts_read, when the entries
8125         from a partially-read directory have just been exhausted.
8126         In that case, we'll skip the opendir and instead use the parent's
8127         fts_dirp and derive dir_fd from that.
8128         Finally, in the readdir loop, if we read max_entries entries,
8129         exit the loop ensuring *not* to call closedir.  This is required
8130         so that fts_dirp can be reused on a subsequent call.
8131         Prompted by Ben England's report of memory exhaustion in find
8132         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
8133
8134         maint: fts: move decl of `dp' down into while loop; split a long line
8135         * lib/fts.c (fts_build): No semantic change.
8136
8137         fts: add/use new struct member, fts_dirp
8138         We are about to use this to manage any directory with
8139         too many entries to read all of them into memory at once.
8140         To do that, we'll need to save the DIR* pointer in each
8141         affected FTSENT struct.
8142         * lib/fts_.h: Include <dirent.h>.
8143         (struct FTSENT) [fts_dirp]: New member.
8144         * lib/fts.c (closedir_and_clear): Define.
8145         Use it in place of closedir so that we are sure to
8146         clear the new fts_dirp member when done with it.
8147         (fts_alloc): Initialize the new member.
8148         (fts_lfree): Free, if needed.
8149
8150         maint: fts: give __opendir2 a new parameter and rename
8151         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
8152         than surreptitiously using sole caller's "dir_fd".
8153         (fts_opendir): Rename from __opendir2.
8154
8155         maint: fts.c: remove __opendir2's now-unused parameter, oflag
8156         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
8157
8158         maint: fts.c: correct off-by-one indentation
8159         * lib/fts.c (fts_build): Correct indentation, change style
8160         of a couple of block comments, and bracing style.
8161
8162         maint: fts.c: move __opendir2 #define "up" out of function body
8163         * lib/fts.c (__opendir2): Move "up".  No semantic change.
8164
8165         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
8166         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
8167         out for a long time and besides was useful only on BSD systems.
8168
8169 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8170
8171         regex: port to Stratus OpenVOS
8172         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
8173         define to empty, rather than attempting nonportable optimizations.
8174         Problem reported by Paul Green in:
8175         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
8176         and fix suggested by Eric Blake in:
8177         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
8178
8179 2011-08-17  Eric Blake  <eblake@redhat.com>
8180
8181         getcwd: fix test failures on mingw
8182         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
8183         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
8184         test if long directory cannot be created, and allow mingw errno.
8185
8186         getcwd-lgpl: fix m4 to match relaxed test for BSD
8187         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
8188         (gl_FUNC_GETCWD_SIGNATURE): New macro.
8189         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
8190         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
8191         signature problem.
8192
8193         getcwd: fix compilation on mingw64
8194         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
8195         getcwd.
8196         Reported by Marc-André Lureau.
8197
8198         pipe2: silence compiler warning
8199         * lib/pipe2.c (pipe2): Hide label if it is not used.
8200
8201 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
8202
8203         relocatable-prog: fix link error
8204         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
8205         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
8206         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
8207         into modules/relocatable-lib without noticing that
8208         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
8209         also needs to build relocatable.c.
8210
8211 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8212
8213         getaddrinfo: fix sh typo in gai_strerrorA decl checking
8214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
8215         shell code: it contained a 'break' that was not in a loop.
8216         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
8217         via a shell-language loop; this may have been true in old Autoconf
8218         versions, but it's not true in Autoconf 2.68.  I found this bug
8219         when testing coreutils git on Solaris 8, whose shell complains
8220         about the syntax error.
8221
8222 2011-08-12  Simon Josefsson  <simon@josefsson.org>
8223
8224         * lib/base64.c: Fix comment to reference RFC 4648.
8225         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
8226         <gvtulder@gmail.com>.
8227
8228 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
8229
8230         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
8231
8232         po/Makefile.in.in: fix make -q problem
8233         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
8234         rule, since there's no file named 'check-macro-version' and its
8235         use as a file breaks make -q.
8236         (all): Don't depend on check-macro-version.
8237         (CHECK_MACRO_VERSION): New macro.
8238         (stamp-po): Use it.
8239
8240         configmake: fix make -q problem
8241         * modules/configmake (configmake.h): Update configmake.h's time stamp
8242         even if the file does not change.  Otherwise, 'make -q' fails.
8243         Problem reported by Simon Josefsson in
8244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
8245
8246 2011-08-11  Jim Meyering  <meyering@redhat.com>
8247
8248         git-version-gen: correct the advice in a comment
8249         * build-aux/git-version-gen: Correct comment.
8250         Don't recommend to list .tarball-version in .gitignore.
8251
8252 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8253
8254         base64: fix off-by-one buffer size bug
8255         Problem and (trivial) fix reported by Gijs van Tulder in
8256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
8257         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
8258         * tests/test-base64.c (main): Catch the bug.
8259
8260 2011-08-10  Eric Blake  <eblake@redhat.com>
8261
8262         closein: correct comments
8263         * lib/closein.c (close_stdin): Improve comments.
8264
8265 2011-08-09  Bruno Haible  <bruno@clisp.org>
8266
8267         More tests for 'fseeko'.
8268         * tests/test-fseeko3.c: New file, from Eric Blake.
8269         * tests/test-fseeko3.sh: New file.
8270         * modules/fseeko-tests (Files): Add them.
8271         (TESTS): Add test-fseeko3.sh.
8272         (check_PROGRAMS): Add test-fseeko3.
8273
8274 2011-08-09  Eric Blake  <eblake@redhat.com>
8275
8276         fseeko: remove unneeded hack
8277         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
8278
8279         fseeko: fix bug on glibc
8280         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
8281         Reported by John W. Eaton.
8282
8283 2011-08-08  Bruno Haible  <bruno@clisp.org>
8284
8285         unictype/base: Fix interoperability with preinstalled libunistring.
8286         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
8287         Reported by Simon Josefsson.
8288
8289 2011-08-08  Bruno Haible  <bruno@clisp.org>
8290
8291         iswblank: Detect declaration correctly.
8292         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
8293         AC_CHECK_DECLS invocation.
8294
8295 2011-08-08  Bruno Haible  <bruno@clisp.org>
8296
8297         tcgetsid: Detect declaration correctly.
8298         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
8299         AC_CHECK_DECLS invocation.
8300         Reported by Simon Josefsson.
8301
8302 2011-08-08  Eric Blake  <eblake@redhat.com>
8303
8304         largefile: fix typo that regressed large file support
8305         * modules/largefile (configure.ac-early): Fix section name.
8306
8307 2011-08-06  Karl Berry  <karl@gnu.org>
8308
8309         * MODULES.html.sh (func_all_files): _Noreturn is no longer
8310         a separate module.
8311
8312 2011-08-05  Simon Josefsson  <simon@josefsson.org>
8313
8314         openat: Fix warnings and commens when building unlinkat.c on Hurd.
8315         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
8316         get prototype for free.
8317
8318 2011-08-04  Bruno Haible  <bruno@clisp.org>
8319
8320         Tests for module 'pathmax'.
8321         * modules/pathmax-tests: New file.
8322         * tests/test-pathmax.c: New file.
8323
8324         canonicalize-lgpl: Support larger filenames on the Hurd.
8325         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
8326         Reported by Paul Eggert.
8327
8328         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
8329         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
8330         * lib/chdir-long.h: Include pathmax.h.
8331         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
8332         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
8333         (PATH_MAX): Remove code that is done by pathmax.h.
8334         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
8335         * lib/tmpfile.c: Add a comment.
8336         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
8337         * modules/chdir-long (Depends-on): Add pathmax.
8338         * modules/getcwd (Depends-on): Add pathmax.
8339         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
8340         is not defined.
8341         * doc/posix-headers/limits.texi: Mention the pathmax module.
8342         * NEWS: Mention the change.
8343
8344 2011-08-02  Bruno Haible  <bruno@clisp.org>
8345
8346         pthread_sigmask: Actually use results of gl_THREADLIB.
8347         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
8348         gl_THREADLIB, not gl_[]THREADLIB.
8349         Reported by Eric Blake.
8350
8351 2011-08-02  Jim Meyering  <meyering@redhat.com>
8352
8353         maint.mk: relax the default _gl_TS_function_match regexp
8354         * top/maint.mk (_gl_TS_function_match): Don't require at least one
8355         space between function name and "(" in an "extern" declaration.
8356         That would fail to match a decl with no space there: extern void foo();
8357
8358 2011-07-31  Iain Nicol  <iain@thenicols.net>
8359
8360         git-version-gen: document that EXTRA_DIST must include .version
8361         * build-aux/git-version-gen: In the how-to-use comment, document
8362         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
8363         will fail when run from an unpacked distribution tarball.
8364
8365 2011-08-01  Bruno Haible  <bruno@clisp.org>
8366
8367         wctype-h: Fix last change.
8368         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
8369         REPLACE_TOWLOWER to 0.
8370         Reported by Sam Steingold <sds@gnu.org>.
8371
8372 2011-07-31  Bruno Haible  <bruno@clisp.org>
8373
8374         frexpl: Update autoconf test.
8375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
8376         according to changes of 2011-06-20.
8377
8378 2011-07-31  Bruno Haible  <bruno@clisp.org>
8379
8380         sys_utsname: Add support for Minix.
8381         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
8382         <sys/utsname.h>.
8383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8384         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
8385
8386 2011-07-31  Bruno Haible  <bruno@clisp.org>
8387
8388         strings: Add support for Minix.
8389         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
8390         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8391         * doc/posix-headers/strings.texi: Document the Minix problem.
8392
8393 2011-07-31  Bruno Haible  <bruno@clisp.org>
8394
8395         wctype-h: Add support for Minix.
8396         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
8397         REPLACE_TOWLOWER.
8398         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
8399         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
8400         REPLACE_ISWCNTRL.
8401
8402 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
8403
8404         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
8405         This is a performance improvement for 64-bit hosts: it causes the
8406         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
8407
8408 2011-07-31  Bruno Haible  <bruno@clisp.org>
8409
8410         stdioext: Add support for Minix.
8411         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
8412         * lib/fpurge.c (fpurge): Likewise.
8413         * lib/freadahead.c (freadahead): Likewise.
8414         * lib/freadable.c (freadable): Likewise.
8415         * lib/freading.c (freading): Likewise.
8416         * lib/freadptr.c (freadptr): Likewise.
8417         * lib/freadseek.c (freadptrinc): Likewise.
8418         * lib/fseeko.c (rpl_fseeko): Likewise.
8419         * lib/fseterr.c (fseterr): Likewise.
8420         * lib/fwritable.c (fwritable): Likewise.
8421         * lib/fwriting.c (fwriting): Likewise.
8422         * lib/fflush.c (clear_ungetc_buffer): Update comment.
8423         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
8424
8425 2011-07-31  Bruno Haible  <bruno@clisp.org>
8426
8427         errno: Port to Minix.
8428         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
8429         ECONNABORTED are defined.
8430         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
8431         GNULIB_defined_ECONNABORTED): New macros.
8432         * lib/strerror-override.h (strerror_override): Test also
8433         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
8434         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
8435         ECONNABORTED.
8436         * doc/posix-headers/errno.texi: Mention the Minix problem.
8437
8438 2011-07-31  Bruno Haible  <bruno@clisp.org>
8439
8440         Work around declaration collisions on Minix.
8441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
8442         defined, set REPLACE_MBSINIT.
8443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
8444         defined, set REPLACE_MBRTOWC.
8445         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
8446         set REPLACE_MBRLEN.
8447         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
8448         defined, set REPLACE_MBSRTOWCS.
8449         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
8450         defined, set REPLACE_WCRTOMB.
8451         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
8452         defined, set REPLACE_WCSRTOMBS.
8453
8454 2011-07-31  Bruno Haible  <bruno@clisp.org>
8455
8456         Add support for Minix with ACK compiler.
8457         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
8458         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
8459         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
8460
8461 2011-07-31  Bruno Haible  <bruno@clisp.org>
8462
8463         Documentation about Minix.
8464         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
8465         * doc/glibc-headers/*.texi: Likewise.
8466         * doc/posix-functions/*.texi: Likewise.
8467         * doc/glibc-functions/*.texi: Likewise.
8468
8469 2011-07-31  Bruno Haible  <bruno@clisp.org>
8470
8471         snippet/warn-on-use: Fix indentation.
8472         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
8473
8474 2011-07-25  Jim Meyering  <meyering@redhat.com>
8475
8476         tests: test-update-copyright.sh: remove unnecessary "rm" commands
8477         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
8478         commands.
8479
8480 2011-07-27  Jim Meyering  <meyering@redhat.com>
8481
8482         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
8483         * top/maint.mk (gl_extract_significant_defines_): Now that
8484         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
8485         gnulib/lib/signal.in.h, and now that we recommend to
8486         define-if-undefined those two symbols in application code,
8487         we must filter them out of the "significant" list.
8488         This avoids a "make syntax-check" failure in coreutils.
8489
8490 2011-07-26  Eric Blake  <eblake@redhat.com>
8491
8492         warnings: add comments about previous patch
8493         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
8494         * m4/include_next.m4: Likewise.
8495         * m4/warn-on-use.m4: Likewise.
8496         * m4/warnings.m4: Likewise, and simplify use.
8497         Suggested by Stefano Lattarini.
8498
8499         include-next, warnings: support older autoconf
8500         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
8501         AS_VAR_PUSHDEF in a way that works with older autoconf.
8502         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
8503         Reported by Daniel P. Berrange.
8504
8505 2011-07-25  Bruno Haible  <bruno@clisp.org>
8506
8507         fseek, ftell: Fix doc.
8508         * doc/posix-functions/fseek.texi: Reword statement about
8509         AC_SYS_LARGEFILE.
8510         * doc/posix-functions/ftell.texi: Likewise.
8511
8512 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8513             Bruno Haible  <bruno@clisp.org>
8514
8515         Add dependencies to the 'largefile' module.
8516         * modules/fopen (Depends-on): Add 'largefile'.
8517         * modules/freopen (Depends-on): Likewise.
8518         * modules/fseeko (Depends-on): Likewise.
8519         * modules/ftello (Depends-on): Likewise.
8520         * modules/glob (Depends-on): Likewise.
8521         * modules/lseek (Depends-on): Likewise.
8522         * modules/lstat (Depends-on): Likewise.
8523         * modules/mkostemp (Depends-on): Likewise.
8524         * modules/mkostemps (Depends-on): Likewise.
8525         * modules/mkstemp (Depends-on): Likewise.
8526         * modules/mkstemps (Depends-on): Likewise.
8527         * modules/open (Depends-on): Likewise.
8528         * modules/openat (Depends-on): Likewise.
8529         * modules/pread (Depends-on): Likewise.
8530         * modules/pwrite (Depends-on): Likewise.
8531         * modules/scandir (Depends-on): Likewise.
8532         * modules/stat (Depends-on): Likewise.
8533         * modules/tmpfile (Depends-on): Likewise.
8534         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
8535         since the containing module now depends on the largefile module.
8536         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
8537         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
8538         off_t is fixed by gnulib.
8539         * doc/posix-functions/freopen.texi: Likewise.
8540         * doc/posix-functions/fseeko.texi: Likewise.
8541         * doc/posix-functions/fstatat.texi: Likewise.
8542         * doc/posix-functions/ftello.texi: Likewise.
8543         * doc/posix-functions/glob.texi: Likewise.
8544         * doc/posix-functions/lseek.texi: Likewise.
8545         * doc/posix-functions/lstat.texi: Likewise.
8546         * doc/posix-functions/mkstemp.texi: Likewise.
8547         * doc/posix-functions/open.texi: Likewise.
8548         * doc/posix-functions/openat.texi: Likewise.
8549         * doc/posix-functions/pread.texi: Likewise.
8550         * doc/posix-functions/pwrite.texi: Likewise.
8551         * doc/posix-functions/scandir.texi: Likewise.
8552         * doc/posix-functions/stat.texi: Likewise.
8553         * doc/posix-functions/tmpfile.texi: Likewise.
8554         * doc/glibc-functions/mkostemp.texi: Likewise.
8555         * doc/glibc-functions/mkostemps.texi: Likewise.
8556         * doc/glibc-functions/mkstemps.texi: Likewise.
8557
8558 2011-07-25  Bruno Haible  <bruno@clisp.org>
8559
8560         fcntl: Move AC_LIBOBJ invocation to module description.
8561         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
8562         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
8563
8564         fcntl: Remove call-in from fchdir.m4.
8565         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
8566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
8567
8568         dup3: Remove potential call-in from fchdir.m4.
8569         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
8570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
8571
8572         dup2: Move AC_LIBOBJ invocation to module description.
8573         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
8574         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
8575         Don't invoke AC_LIBOBJ.
8576         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
8577
8578         dup2: Remove call-in from fchdir.m4.
8579         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
8580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
8581
8582         fclose: Move AC_LIBOBJ invocation to module description.
8583         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
8584         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
8585         to 1.
8586         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
8587
8588         fclose: Remove call-in from close.m4.
8589         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
8590         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
8591
8592         close: Move AC_LIBOBJ invocation to module description.
8593         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
8594         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
8595         1.
8596         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8597
8598         close: Remove call-in from fchdir.m4.
8599         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
8600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
8601
8602         open: Move AC_LIBOBJ invocation to module description.
8603         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
8604         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
8605         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
8606
8607         open: Remove call-in from fchdir.m4.
8608         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
8609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
8610
8611         fchdir: Start to remove gl_REPLACE_* idiom.
8612         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
8613         (gl_FUNC_FCHDIR): Invoke it.
8614
8615 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8616
8617         * lib/ftell.c (ftell): Comment out cast.
8618
8619         close: use gl_REPLACE_FCLOSE only if defined
8620         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
8621         is defined.  The close module doesn't depend on the fclose module
8622         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
8623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8624         I reproduced the problem with "./gnulib-tool --test close sys_socket".
8625
8626 2011-07-24  Jim Meyering  <meyering@redhat.com>
8627
8628         test-select.h: avoid warning when using gcc's -Wmissing-declarations
8629         * tests/test-select.h (test_function): Declare as "static".
8630
8631 2011-07-24  Bruno Haible  <bruno@clisp.org>
8632
8633         doc: Mention the effects of AC_SYS_LARGEFILE.
8634         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
8635         on this function.
8636         * doc/posix-functions/aio_error.texi: Likewise.
8637         * doc/posix-functions/aio_fsync.texi: Likewise.
8638         * doc/posix-functions/aio_read.texi: Likewise.
8639         * doc/posix-functions/aio_return.texi: Likewise.
8640         * doc/posix-functions/aio_suspend.texi: Likewise.
8641         * doc/posix-functions/aio_write.texi: Likewise.
8642         * doc/posix-functions/fgetpos.texi: Likewise.
8643         * doc/posix-functions/fopen.texi: Likewise.
8644         * doc/posix-functions/freopen.texi: Likewise.
8645         * doc/posix-functions/fsetpos.texi: Likewise.
8646         * doc/posix-functions/fstatvfs.texi: Likewise.
8647         * doc/posix-functions/ftruncate.texi: Likewise.
8648         * doc/posix-functions/ftw.texi: Likewise.
8649         * doc/posix-functions/getrlimit.texi: Likewise.
8650         * doc/posix-functions/glob.texi: Likewise.
8651         * doc/posix-functions/lio_listio.texi: Likewise.
8652         * doc/posix-functions/lockf.texi: Likewise.
8653         * doc/posix-functions/mkstemp.texi: Likewise.
8654         * doc/posix-functions/mmap.texi: Likewise.
8655         * doc/posix-functions/nftw.texi: Likewise.
8656         * doc/posix-functions/openat.texi: Likewise.
8657         * doc/posix-functions/opendir.texi: Likewise.
8658         * doc/posix-functions/posix_fadvise.texi: Likewise.
8659         * doc/posix-functions/posix_fallocate.texi: Likewise.
8660         * doc/posix-functions/pread.texi: Likewise.
8661         * doc/posix-functions/pwrite.texi: Likewise.
8662         * doc/posix-functions/readdir.texi: Likewise.
8663         * doc/posix-functions/readdir_r.texi: Likewise.
8664         * doc/posix-functions/rewinddir.texi: Likewise.
8665         * doc/posix-functions/scandir.texi: Likewise.
8666         * doc/posix-functions/seekdir.texi: Likewise.
8667         * doc/posix-functions/setrlimit.texi: Likewise.
8668         * doc/posix-functions/statvfs.texi: Likewise.
8669         * doc/posix-functions/telldir.texi: Likewise.
8670         * doc/posix-functions/tmpfile.texi: Likewise.
8671         * doc/posix-functions/truncate.texi: Likewise.
8672         * doc/glibc-functions/fallocate.texi: Likewise.
8673         * doc/glibc-functions/fstatfs.texi: Likewise.
8674         * doc/glibc-functions/fts_children.texi: Likewise.
8675         * doc/glibc-functions/fts_read.texi: Likewise.
8676         * doc/glibc-functions/getdirentries.texi: Likewise.
8677         * doc/glibc-functions/mkostemp.texi: Likewise.
8678         * doc/glibc-functions/mkostemps.texi: Likewise.
8679         * doc/glibc-functions/mkstemps.texi: Likewise.
8680         * doc/glibc-functions/preadv.texi: Likewise.
8681         * doc/glibc-functions/pwritev.texi: Likewise.
8682         * doc/glibc-functions/sendfile.texi: Likewise.
8683         * doc/glibc-functions/statfs.texi: Likewise.
8684
8685 2011-07-24  Bruno Haible  <bruno@clisp.org>
8686
8687         doc: Fix typo.
8688         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
8689
8690 2011-07-24  Bruno Haible  <bruno@clisp.org>
8691
8692         doc: Mention fsusage.
8693         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
8694
8695 2011-07-24  Bruno Haible  <bruno@clisp.org>
8696
8697         doc: Mention new glibc headers and functions.
8698         * doc/glibc-headers/gshadow.texi: New file.
8699         * doc/glibc-functions/endsgent.texi: New file.
8700         * doc/glibc-functions/fgetsgent.texi: New file.
8701         * doc/glibc-functions/fgetsgent_r.texi: New file.
8702         * doc/glibc-functions/getsgent.texi: New file.
8703         * doc/glibc-functions/getsgent_r.texi: New file.
8704         * doc/glibc-functions/getsgnam.texi: New file.
8705         * doc/glibc-functions/getsgnam_r.texi: New file.
8706         * doc/glibc-functions/putsgent.texi: New file.
8707         * doc/glibc-functions/setsgent.texi: New file.
8708         * doc/glibc-functions/sgetsgent.texi: New file.
8709         * doc/glibc-functions/sgetsgent_r.texi: New file.
8710         * doc/glibc-functions/malloc_info.texi: New file.
8711         * doc/glibc-functions/preadv.texi: New file.
8712         * doc/glibc-functions/pwritev.texi: New file.
8713         * doc/glibc-functions/register_printf_modifier.texi: New file.
8714         * doc/glibc-functions/register_printf_specifier.texi: New file.
8715         * doc/glibc-functions/register_printf_type.texi: New file.
8716         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
8717         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
8718         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
8719         * doc/glibc-functions/pthread_getname_np.texi: New file.
8720         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
8721         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
8722         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
8723         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
8724         * doc/glibc-functions/pthread_setname_np.texi: New file.
8725         * doc/glibc-functions/pthread_sigqueue.texi: New file.
8726         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
8727         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
8728         * doc/glibc-functions/qsort_r.texi: New file.
8729         * doc/glibc-functions/quick_exit.texi: New file.
8730         * doc/glibc-functions/syncfs.texi: New file.
8731         * doc/gnulib.texi: Include them.
8732         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
8733         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
8734         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
8735         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8736         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8737         * doc/glibc-functions/execvpe.texi: Likewise.
8738
8739 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8740
8741         ftell: don't include <unistd.h>
8742         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
8743         guaranteed to define off_t, and the ftell module depends on the
8744         stdio module.
8745
8746         ftell: do not assume wraparound signed arithmetic
8747         * lib/ftell.c: Include <limits.h>.
8748         (ftell): Don't assume wraparound signed arithmetic.
8749
8750 2011-07-24  Bruno Haible  <bruno@clisp.org>
8751
8752         close: No longer depend on module 'fclose'.
8753         * modules/close (Depends-on): Remove fclose.
8754         * NEWS: Mention the change.
8755         Suggested by Sam Steingold <sds@gnu.org>.
8756
8757 2011-07-24  Bruno Haible  <bruno@clisp.org>
8758
8759         fsusage: Enable large volume support on AIX >= 5.2.
8760         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
8761         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
8762         instead of STAT_STATVFS.
8763         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
8764
8765         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
8766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
8767         f_blocks field only on MacOS X.
8768
8769         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
8770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
8771         * modules/fsusage (Depends-on): Add largefile.
8772
8773 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8774
8775         * README: Modernize discussion of signed integers.
8776         Assuming overflow wraparound is no longer safe.
8777         Mention ones' complement and signed magnitude.
8778
8779 2011-07-22  Bruno Haible  <bruno@clisp.org>
8780
8781         select tests, pselect tests: Refactor.
8782         * tests/test-select.h: New file, extracted from tests/test-select.c.
8783         (select_fn): New type.
8784         (test, do_select, do_select_nowait, do_select_wait, test_tty,
8785         test_connect_first, test_accept_first, test_pair, test_socket_pair,
8786         test_pipe): Add my_select argument.
8787         (test_function): Renamed from main. Add my_select argument.
8788         * tests/test-select.c: Move most code to tests/test-select.h. Include
8789         test-select.h.
8790         * modules/select-tests (Files): Add tests/test-select.h.
8791         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
8792         (my_select, main): New functions.
8793         * modules/pselect-tests (Files): Add tests/test-select.h,
8794         tests/macros.h, tests/signature.h.
8795         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
8796         (configure.ac): Check for <sys/wait.h>.
8797
8798 2011-07-22  Bruno Haible  <bruno@clisp.org>
8799
8800         sys_select tests: Check the signature of FD_*.
8801         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
8802         signature tests from here...
8803         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
8804         here.
8805         * modules/sys_select-tests (Files): Add tests/signature.h.
8806
8807 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8808
8809         largefile: new module, replacing large-inode
8810         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8811         * MODULES.html.sh: Add largefile, remove large-inode.
8812         * modules/largefile, m4/largefile.m4: New files.
8813         * modules/large-inode, m4/large-inode.m4: Remove.
8814
8815         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8817         implementations that use only 32 bits to count blocks.
8818         On typical hosts with 1024-byte blocks, this fails with file
8819         systems as small as 4 TiB.  Problem reported by Herb Wartens
8820         <http://debbugs.gnu.org/9140> and this should also fix a similar
8821         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8822
8823         large-inode: New module
8824         * MODULES.html.sh: Add it.
8825         * modules/large-inode, m4/large-inode.m4: New files.
8826
8827         extensions: Enable extensions on MacOS X 10.5 and later.
8828         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8829
8830 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8831
8832         file-has-acl: use acl_extended_file_nofollow if available
8833         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8834         (acl_extended_file): New macro.
8835         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8836         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8837
8838 2011-07-21  Bruno Haible  <bruno@clisp.org>
8839
8840         Declare system functions in a way that works with C++.
8841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8842         declare fdopendir as extern "C".
8843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8844         declare frexpl as extern "C".
8845         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8846         declare gai_strerror as extern "C".
8847         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8848         programs, declare gai_strerror as extern "C".
8849         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8850         declare getlogin_r as extern "C".
8851         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8852         as extern "C".
8853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8854         declare ldexpl as extern "C".
8855         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8856         as extern "C".
8857         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8858         program, declare getmntinfo as extern "C".
8859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8860         stpncpy as extern "C".
8861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8862         program, declare __xpg_strerror_r as extern "C".
8863         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8864         strndup as extern "C".
8865         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8866         declare memset and bzero as extern "C".
8867         Reported by Sam Steingold <sds@gnu.org>.
8868
8869 2011-07-12  Jim Meyering  <meyering@redhat.com>
8870
8871         maint.mk: prohibit inclusion of "verify.h" without use
8872         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8873
8874 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8875
8876         timer-time: A new module to check for timer_settime()
8877         * m4/timer_time.m4: Check for the posix function.
8878         * modules/timer-time: Add the new module.
8879         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8880         Mention it.
8881
8882 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8883             Bruno Haible  <bruno@clisp.org>
8884
8885         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8887         not defined, assume POSIX threads and look for pthread_sigmask in
8888         $LIBS, without changing $CPPFLAGS.
8889
8890 2011-07-19  Bruno Haible  <bruno@clisp.org>
8891
8892         strstr: Update cross-compilation guess.
8893         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8894         CPUs, guess no, in view of glibc
8895         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8896         Suggested by Eric Blake. Reported by Reuben Thomas.
8897
8898 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8899
8900         getopt-gnu: suppress core dumps from detection code
8901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8902         to suppress core dumps that may well occur on glibc systems.
8903         * modules/getopt-gnu: Depend on nocrash.
8904
8905 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8906
8907         pthread_sigmask: ensure usleep is declared
8908         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8909         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8910
8911 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8912
8913         doc: Document NonStop portability issues.
8914         * doc/posix-functions/sigaction.texi (sigaction):
8915         * doc/posix-headers/signal.texi (signal.h):
8916         Document NonStop.  See Joachim Schmitz in
8917         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8918
8919 2011-07-15  Bruno Haible  <bruno@clisp.org>
8920
8921         ffsl, ffsll: Avoid unportable behaviour.
8922         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8923
8924 2011-07-15  Bruno Haible  <bruno@clisp.org>
8925
8926         ffs: More tests.
8927         * tests/test-ffs.c (NBITS): New macro.
8928         (main): Add more tests.
8929         * tests/test-ffsl.c (NBITS): New macro.
8930         (main): Add more tests.
8931         * tests/test-ffsll.c (NBITS): New macro.
8932         (main): Add more tests.
8933
8934 2011-07-15  Eric Blake  <eblake@redhat.com>
8935
8936         ffsl, ffsll: new modules
8937         * modules/ffsl: New file.
8938         * modules/ffsll: Likewise.
8939         * m4/ffsl.m4: Likewise.
8940         * m4/ffsll.m4: Likewise.
8941         * lib/ffsl.c: Likewise.
8942         * lib/ffsl.h: Likewise.
8943         * lib/ffsll.c: Likewise.
8944         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8945         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8946         * modules/string (Makefile.am): Substitute witnesses.
8947         * lib/strings.in.h (ffsl, ffsll): Declare.
8948         * modules/ffsl-tests: New test file.
8949         * modules/ffsll-tests: Likewise.
8950         * tests/test-ffsl.c: Likewise.
8951         * tests/test-ffsll.c: Likewise.
8952         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8953         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8954         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8955
8956         ffs: fix m4 prerequisite
8957         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8958
8959         ffs: avoid undefined behavior
8960         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8961         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8962         Reported by Bruno Haible.
8963
8964 2011-07-12  Bruno Haible  <bruno@clisp.org>
8965
8966         pthread_sigmask: Rely on module 'threadlib'.
8967         * modules/pthread_sigmask (Depends-on): Add threadlib.
8968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8969         is defined.
8970
8971 2011-07-12  Bruno Haible  <bruno@clisp.org>
8972
8973         regex: Depend on module 'strcase'.
8974         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8975
8976 2011-07-12  Jim Meyering  <meyering@redhat.com>
8977
8978         warn-on-use: fix typo in file name
8979         * modules/snippet/warn-on-use (Files): Correct file name:
8980         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8981
8982 2011-07-12  Bruno Haible  <bruno@clisp.org>
8983
8984         strings: Document module.
8985         * doc/posix-headers/strings.texi: Mention module 'strings'.
8986
8987 2011-07-12  Bruno Haible  <bruno@clisp.org>
8988
8989         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8990         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8991         (Files, Makefile.am): Update.
8992         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8993         * modules/stdlib (Depends-on): Update.
8994
8995 2011-07-12  Bruno Haible  <bruno@clisp.org>
8996
8997         * NEWS: Mention the changes.
8998
8999         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
9000         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
9001         (Files, Makefile.am): Update.
9002         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9003         * modules/arpa_inet (Depends-on): Update.
9004         * modules/ctype (Depends-on): Update.
9005         * modules/dirent (Depends-on): Update.
9006         * modules/fcntl-h (Depends-on): Update.
9007         * modules/glob (Depends-on): Update.
9008         * modules/iconv-h (Depends-on): Update.
9009         * modules/inttypes-incomplete (Depends-on): Update.
9010         * modules/langinfo (Depends-on): Update.
9011         * modules/locale (Depends-on): Update.
9012         * modules/math (Depends-on): Update.
9013         * modules/netdb (Depends-on): Update.
9014         * modules/poll-h (Depends-on): Update.
9015         * modules/pty (Depends-on): Update.
9016         * modules/search (Depends-on): Update.
9017         * modules/signal (Depends-on): Update.
9018         * modules/spawn (Depends-on): Update.
9019         * modules/stdio (Depends-on): Update.
9020         * modules/stdlib (Depends-on): Update.
9021         * modules/string (Depends-on): Update.
9022         * modules/strings (Depends-on): Update.
9023         * modules/sys_file (Depends-on): Update.
9024         * modules/sys_ioctl (Depends-on): Update.
9025         * modules/sys_select (Depends-on): Update.
9026         * modules/sys_socket (Depends-on): Update.
9027         * modules/sys_stat (Depends-on): Update.
9028         * modules/sys_time (Depends-on): Update.
9029         * modules/sys_times (Depends-on): Update.
9030         * modules/sys_utsname (Depends-on): Update.
9031         * modules/sys_wait (Depends-on): Update.
9032         * modules/termios (Depends-on): Update.
9033         * modules/time (Depends-on): Update.
9034         * modules/unistd (Depends-on): Update.
9035         * modules/wchar (Depends-on): Update.
9036         * modules/wctype-h (Depends-on): Update.
9037         * MODULES.html.sh (Support for building libraries and executables):
9038         Update.
9039
9040         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
9041         * modules/snippet/unused-parameter: Renamed from
9042         modules/unused-parameter.
9043         (Files, Makefile.am): Update.
9044         * build-aux/snippet/unused-parameter.h: Renamed from
9045         build-aux/unused-parameter.h.
9046         * modules/selinux-h (Depends-on): Update.
9047         * modules/unistr/base (Depends-on): Update.
9048         * MODULES.html.sh (Core language properties): Update.
9049
9050         Rename module 'link-warning' to 'snippet/link-warning'.
9051         * modules/snippet/link-warning: Renamed from modules/link-warning.
9052         (Files, Makefile.am): Update.
9053         * build-aux/snippet/link-warning.h: Renamed from
9054         build-aux/link-warning.h.
9055         * MODULES.html.sh (Support for building libraries and executables):
9056         Update.
9057
9058         Rename module 'c++defs' to 'snippet/c++defs'.
9059         * modules/snippet/c++defs: Renamed from modules/c++defs.
9060         (Files, Makefile.am): Update.
9061         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
9062         * modules/arpa_inet (Depends-on): Update.
9063         * modules/ctype (Depends-on): Update.
9064         * modules/dirent (Depends-on): Update.
9065         * modules/fcntl-h (Depends-on): Update.
9066         * modules/glob (Depends-on): Update.
9067         * modules/iconv-h (Depends-on): Update.
9068         * modules/langinfo (Depends-on): Update.
9069         * modules/locale (Depends-on): Update.
9070         * modules/math (Depends-on): Update.
9071         * modules/netdb (Depends-on): Update.
9072         * modules/poll-h (Depends-on): Update.
9073         * modules/pty (Depends-on): Update.
9074         * modules/search (Depends-on): Update.
9075         * modules/signal (Depends-on): Update.
9076         * modules/spawn (Depends-on): Update.
9077         * modules/stdio (Depends-on): Update.
9078         * modules/stdlib (Depends-on): Update.
9079         * modules/string (Depends-on): Update.
9080         * modules/strings (Depends-on): Update.
9081         * modules/sys_ioctl (Depends-on): Update.
9082         * modules/sys_select (Depends-on): Update.
9083         * modules/sys_socket (Depends-on): Update.
9084         * modules/sys_stat (Depends-on): Update.
9085         * modules/sys_time (Depends-on): Update.
9086         * modules/sys_wait (Depends-on): Update.
9087         * modules/termios (Depends-on): Update.
9088         * modules/time (Depends-on): Update.
9089         * modules/unistd (Depends-on): Update.
9090         * modules/wchar (Depends-on): Update.
9091         * modules/wctype-h (Depends-on): Update.
9092
9093         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
9094         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
9095         (Files, Makefile.am): Update.
9096         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
9097         * modules/argv-iter (Depends-on): Update.
9098         * modules/arpa_inet (Depends-on): Update.
9099         * modules/dirent (Depends-on): Update.
9100         * modules/fcntl-h (Depends-on): Update.
9101         * modules/fnmatch (Depends-on): Update.
9102         * modules/getopt-posix (Depends-on): Update.
9103         * modules/glob (Depends-on): Update.
9104         * modules/iconv-h (Depends-on): Update.
9105         * modules/inttypes-incomplete (Depends-on): Update.
9106         * modules/locale (Depends-on): Update.
9107         * modules/math (Depends-on): Update.
9108         * modules/netdb (Depends-on): Update.
9109         * modules/search (Depends-on): Update.
9110         * modules/signal (Depends-on): Update.
9111         * modules/spawn (Depends-on): Update.
9112         * modules/stdio (Depends-on): Update.
9113         * modules/stdlib (Depends-on): Update.
9114         * modules/string (Depends-on): Update.
9115         * modules/strings (Depends-on): Update.
9116         * modules/sys_socket (Depends-on): Update.
9117         * modules/sys_stat (Depends-on): Update.
9118         * modules/sys_time (Depends-on): Update.
9119         * modules/sys_times (Depends-on): Update.
9120         * modules/sys_utsname (Depends-on): Update.
9121         * modules/time (Depends-on): Update.
9122         * modules/unistd (Depends-on): Update.
9123         * modules/wchar (Depends-on): Update.
9124         * MODULES.html.sh (Support for building libraries and executables):
9125         Update.
9126
9127 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9128
9129         Improvements on _Noreturn and related modules.
9130
9131         modules/_Exit-tests: test _Noreturn too
9132         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
9133         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
9134         (main): Use them.
9135
9136         stdnoreturn, stdnoreturn-tests: remove modules
9137         They're not needed here and a bit premature for use elsewhere.  See
9138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
9139         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9140         * tests/test-stdnoreturn.c: Remove files.
9141         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
9142         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
9143         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
9144         and using noreturn.
9145         * modules/openat, modules/sigpipe-die, modules/xalloc:
9146         * modules/xmemdup0, modules/xstrtol:
9147         Remove dependency on stdnoreturn.
9148
9149         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
9150         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
9151         Reparenthesize to avoid GCC warning.
9152         Support Microsoft's syntax.
9153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
9154
9155         _Noreturn-tests: remove module
9156         * modules/_Noreturn-tests: Remove.
9157         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
9158         * tests/test-_Noreturn.c: Remove.
9159         * tests/test-stdnoreturn.c: Merge from the old
9160         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
9161
9162 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9163
9164         _Noreturn, stdnoreturn, and related modules.
9165
9166         * top/maint.mk: Adjust to new noreturn support.
9167         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
9168         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
9169
9170         xalloc: use stdnoreturn.h
9171         * lib/xalloc.h: Include <stdnoreturn.h>.
9172         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9173         * modules/xalloc (Depends-on): Add stdnoreturn.
9174
9175         xstrtol: use stdnoreturn.h
9176         * lib/xstrtol.h: Include <stdnoreturn.h>.
9177         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9178         * modules/xstrtol (Depends-on): Add stdnoreturn.
9179
9180         xmemdup0: use stdnoreturn.h
9181         * lib/xmemdup0.h: Include <stdnoreturn.h>.
9182         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9183         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
9184
9185         sigpipe-die: use stdnoreturn.h
9186         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
9187         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9188         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
9189
9190         openat: use stdnoreturn.h
9191         * lib/openat.h: Include <stdnoreturn.h>.
9192         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9193         * modules/openat (Depends-on): Add stdnoreturn.
9194
9195         * lib/openat-die.c (openat_save_fail): Modernize comment.
9196
9197         * lib/xalloc-die.c (xalloc_die): Modernize comment.
9198
9199         * lib/glthread/thread.h: Modernize comment.
9200
9201         obstack: use _Noreturn
9202         * lib/obstack.c (__attribute__): Remove macro.
9203         (print_and_abort): Use _Noreturn.
9204
9205         c-stack: use _Noreturn
9206         * lib/c-stack.c (die, overflow_handler, segv_handler):
9207         Use _Noreturn rather than __attribute__((noreturn)).
9208
9209         argmatch-tests, exclude_tests: use _Noreturn
9210         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
9211         Remove.
9212         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
9213
9214         stdlib: use _Noreturn
9215         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
9216         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
9217         * modules/stdlib (Depends-on): Add _Noreturn.
9218         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
9219
9220         stdnoreturn-tests: new module
9221         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
9222
9223         stdnoreturn: new module
9224         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
9225         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
9226
9227         _Noreturn-tests: new module
9228         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
9229
9230         _Noreturn: new module
9231         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
9232         New section, mentioning it.
9233         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
9234
9235         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
9236
9237 2011-07-11  Eric Blake  <eblake@redhat.com>
9238
9239         ffs: new module
9240         * modules/ffs: New file.
9241         * m4/ffs.m4: Likewise.
9242         * lib/ffs.c: Likewise.
9243         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
9244         * modules/strings (Makefile.am): Substitute witness.
9245         (Depends-on): Add c++defs.
9246         * lib/strings.in.h (ffs): Declare.
9247         * modules/ffs-tests: New test file.
9248         * tests/test-ffs.c: Test new module.
9249         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9250         * doc/posix-functions/ffs.texi (ffs): Likewise.
9251
9252         regex: avoid compiler warning
9253         * lib/regex.c (includes): Include <strings.h>, for use of
9254         strcasecmp in regcomp.c.
9255         Reported by Joachim Schmitz.
9256
9257 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
9258
9259         stdint: respect system's intmax_t if INTMAX_MAX
9260         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
9261         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
9262         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
9263         long but int64_t is long long, and where we will clash with the
9264         system intmax_t if we override it.  See
9265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
9266         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
9267         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
9268         similarly for UINTMAX_C.
9269
9270 2011-07-08  Bruno Haible  <bruno@clisp.org>
9271
9272         pthread_sigmask tests: Avoid a compiler warning.
9273         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
9274         non-zero.
9275
9276         sigprocmask tests: A better way to avoid a compiler warning.
9277         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
9278         (main): Complain if system() returns non-zero.
9279         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
9280
9281 2011-07-08  Bruno Haible  <bruno@clisp.org>
9282
9283         pthread_sigmask: Work around IRIX bug.
9284         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
9285         bug.
9286         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
9287         there may be unblocked pending signals.
9288         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
9289
9290 2011-07-08  Bruno Haible  <bruno@clisp.org>
9291
9292         pthread_sigmask: Work around Cygwin bug.
9293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
9294         bug.
9295         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
9296         the system's pthread_sigmask function.
9297         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
9298
9299 2011-07-08  Bruno Haible  <bruno@clisp.org>
9300
9301         pthread_sigmask: Work around bug in single-threaded implementation.
9302         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
9303         FreeBSD, HP-UX, Solaris bug.
9304         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
9305         * lib/pthread_sigmask.c: Include <stddef.h>.
9306         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
9307         the system's pthread_sigmask function.
9308         * modules/pthread_sigmask (configure.ac): Invoke
9309         gl_PREREQ_PTHREAD_SIGMASK.
9310         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
9311         HP-UX, Solaris.
9312
9313 2011-07-08  Eric Blake  <eblake@redhat.com>
9314
9315         test-sigprocmask: avoid compiler warning
9316         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
9317         * tests/test-sigprocmask.c (main): Use it to silence warning.
9318         Reported by Jim Meyering.
9319
9320         test-snprintf: avoid compiler warning
9321         * tests/test-snprintf.c (main): Avoid shadowed declaration.
9322         * tests/test-vsnprintf.c (main): Likewise.
9323         Reported by Jim Meyering.
9324
9325 2011-07-08  Bruno Haible  <bruno@clisp.org>
9326
9327         Tests for module 'pthread_sigmask'.
9328         * modules/pthread_sigmask-tests: New file.
9329         * tests/test-pthread_sigmask1.c: New file, based on
9330         tests/test-sigprocmask.c.
9331         * tests/test-pthread_sigmask2.c: New file.
9332
9333 2011-07-08  Jim Meyering  <meyering@redhat.com>
9334
9335         test-getopt.h: avoid warning about an unused variable
9336         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
9337
9338 2011-07-07  Jim Meyering  <meyering@redhat.com>
9339
9340         maint: reduce list of files exempt from sc_prohibit_leading_TABs
9341         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
9342         now that it no longer contains leading TABs.
9343         Remove unused "url=FIXME" statement.
9344
9345 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9346
9347         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
9348         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9349         When gl_THREADLIB is not in use, assume that the POSIX sematics
9350         are desired.  This is better for Emacs, which uses POSIX semantics
9351         on GNUish and/or POSIXish platforms, and does not use threads at
9352         all otherwise.
9353
9354         pthread_sigmask: fix typo when testing for libraries
9355         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9356         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
9357
9358 2011-07-08  Eric Blake  <eblake@redhat.com>
9359
9360         fts: introduce FTS_NOATIME
9361         * lib/fts_.h (FTS_NOATIME): New bit flag.
9362         (FTS_OPTIONMASK): Adjust.
9363         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
9364         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
9365
9366 2011-07-08  Bruno Haible  <bruno@clisp.org>
9367
9368         Tests for module 'thread'.
9369         * modules/thread-tests: New file.
9370         * tests/test-thread_self.c: New file.
9371         * tests/test-thread_create.cc: New file.
9372
9373 2011-07-08  Bruno Haible  <bruno@clisp.org>
9374
9375         thread: Avoid gcc warnings when using gl_thread_self().
9376         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
9377         'void *'.
9378         (gl_thread_self_pointer): Update.
9379
9380 2011-07-07  Bruno Haible  <bruno@clisp.org>
9381
9382         signal-c++-tests: Check declaration of pthread_sigmask.
9383         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
9384         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
9385         $(LIB_PTHREAD_SIGMASK).
9386
9387 2011-07-07  Bruno Haible  <bruno@clisp.org>
9388
9389         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
9390         * lib/signal.in.h (pthread_sigmask): Override if
9391         REPLACE_PTHREAD_SIGMASK is 1.
9392         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9393         REPLACE_PTHREAD_SIGMASK.
9394         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
9395         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
9396         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
9397         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9398         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
9399
9400 2011-07-07  Bruno Haible  <bruno@clisp.org>
9401
9402         pthread_sigmask: Ensure declaration in <signal.h>.
9403         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
9404         include <pthread.h>.
9405         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
9406         problem.
9407
9408 2011-07-07  Bruno Haible  <bruno@clisp.org>
9409
9410         pthread_sigmask: Document the module.
9411         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
9412
9413 2011-07-07  Bruno Haible  <bruno@clisp.org>
9414
9415         pthread_sigmask: Follow gnulib conventions.
9416         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
9417         gl_PTHREAD_SIGMASK.
9418         * modules/pthread_sigmask (configure.ac): Update.
9419
9420 2011-07-07  Bruno Haible  <bruno@clisp.org>
9421
9422         pthread_sigmask: Make declaration C++ safe.
9423         * lib/signal.in.h: In two special conditions, just do an #include_next.
9424         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9425         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
9426         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9427         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9428         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
9429         not REPLACE_PTHREAD_MASK.
9430         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
9431         not REPLACE_PTHREAD_MASK.
9432         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9433
9434 2011-07-07  Bruno Haible  <bruno@clisp.org>
9435
9436         pthread_sigmask: Fix return value.
9437         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
9438         * lib/pthread_sigmask.c: New file.
9439         * modules/pthread_sigmask (Files): Add it.
9440         (configure.ac): Invoke AC_LIBOBJ.
9441
9442 2011-07-07  Eric Blake  <eblake@redhat.com>
9443
9444         getopt: more portable argv creation
9445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
9446         const, use char arrays rather than strings.
9447         Suggested by Paul Eggert.
9448
9449 2011-07-07  Bruno Haible  <bruno@clisp.org>
9450
9451         Tests for module 'sigprocmask'.
9452         * modules/sigprocmask-tests: New file.
9453         * tests/test-sigprocmask.c: New file.
9454
9455 2011-07-07  Bruno Haible  <bruno@clisp.org>
9456
9457         float tests: Tweak.
9458         * tests/test-float.c (main): Tweak skip message.
9459
9460 2011-07-07  Eric Blake  <eblake@redhat.com>
9461
9462         getopt: avoid compiler warning during configure
9463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
9464         assigning string literals to non-const pointer.
9465
9466         getopt-gnu: avoid crash in glibc getopt
9467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
9468         * tests/test-getopt.h (test_getopt): Enhance test.
9469         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9470         * doc/posix-functions/getopt.texi (getopt): Document it.
9471         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9472         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9473         Likewise.
9474
9475 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9476
9477         getopt: handle W; without long options in getopt [BZ #12922]
9478         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
9479         but no long options are defined, just return 'W'.
9480
9481 2011-07-07  Bruno Haible  <bruno@clisp.org>
9482
9483         Avoid literal tabs.
9484         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
9485         variable containing a tab instead of a literal tab.
9486         Reported by Jim Meyering.
9487
9488 2011-07-07  Bruno Haible  <bruno@clisp.org>
9489
9490         Comments.
9491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
9492
9493 2011-07-06  Bruno Haible  <bruno@clisp.org>
9494
9495         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
9496         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
9497         <winsock2.h>.
9498         (rpl_fd_isset, FD_ISSET): New definitions, copied from
9499         lib/sys_socket.in.h.
9500         (close, gethostname): Hide declarations from <winsock2.h>.
9501         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9502         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
9503         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
9504         (select): Don't override if gnulib's <sys/select.h> was already
9505         included.
9506         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9507         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9508         setsockopt, shutdown, select): Tweak indentation.
9509
9510 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9511
9512         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
9513         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
9514         in an application that does not use the sys_select module.
9515
9516 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
9517
9518         poll: do not return 0 on timeout=-1
9519         * lib/poll.c: Loop with yield if no events occured
9520
9521 2011-07-06  Eric Blake  <eblake@redhat.com>
9522
9523         pthread_sigmask: always replace when not using pthread
9524         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
9525         replacement when using some threading other than pthread.  Fix
9526         logic bug.
9527
9528 2011-07-06  Bruno Haible  <bruno@clisp.org>
9529
9530         Comments.
9531         * m4/printf.m4: Update comments about mingw.
9532
9533 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9534
9535         sys_select: define sigset_t more portably
9536         * lib/sys_select.in.h: Always include <sys/types.h>, since
9537         we now need sigset_t and mingw defines it there.
9538         Include <signal.h> before split inclusion guard, to avoid
9539         mishaps on Solaris, whose <signal.h> eventually includes us.
9540         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
9541         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
9542         which come from ...
9543         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9544         gl_CHECK_TYPE_SIGSET_T.
9545         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
9546         does the real work.
9547         * modules/sys_select (Depends-on): Add 'signal'.
9548
9549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
9550         Suggested by Bruno Haible.
9551
9552         pselect: Use pthread_sigmask, not sigprocmask.
9553         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
9554         multithreaded apps better than sigprocmask does.
9555         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
9556         sigprocmask directly.
9557
9558 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9559
9560         * lib/pselect.c (pselect): Use plain name, without "rpl_".
9561         Don't #undef,  since we don't need any underlying pselect.
9562         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
9563         (Depends-on): Add select.
9564         (Link): Add $(LIBSOCKET).
9565         These changes suggested by Bruno Haible.
9566
9567         pselect: document better
9568         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9569         * doc/posix-functions/pselect.texi (pselect): Document new module.
9570
9571         pthread_sigmask: new module
9572         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9573         * doc/posix-functions/pthread_sigmask.texi: Document new module.
9574         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
9575         This is done only as a macro; I don't know how well that'll
9576         work for C++.  Move <sys/types.h> include before the include_next,
9577         to avoid mishap on Solaris.
9578         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
9579         * modules/signal (Makefile.am): Substitute the check's results.
9580         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
9581
9582         test-pselect: new module
9583         * modules/pselect-tests, tests/test-pselect.c: New files.
9584         * tests/test-select.c, tests/test-sys_select-c++.cc:
9585         If TEST_PSELECT is defined, test pselect instead of testing select.
9586
9587         * tests/test-sys_select.c (sigset_t): Test for it, too.
9588         Suggested by Bruno Haible.
9589
9590 2011-07-05  Eric Blake  <eblake@redhat.com>
9591
9592         snprintf: guarantee %1$d, for libintl
9593         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
9594         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9595         * doc/posix-functions/snprintf.texi (snprintf): Update.
9596         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9597         * tests/test-snprintf.c (main): Enhance test.
9598         * tests/test-vsnprintf.c (main): Likewise.
9599
9600 2011-07-05  Jim Meyering  <meyering@redhat.com>
9601
9602         maint: exempt stdio-read.c and stdio-write.c from the cppi check
9603         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
9604         per Bruno's request, to accommodate this idiom (no space after "#")
9605         even when the function is inside an #if block:
9606         char *
9607         gets (char *s)
9608         #undef gets
9609         {
9610           ...
9611         }
9612
9613 2011-07-04  Jim Meyering  <meyering@redhat.com>
9614
9615         maint: indent with spaces, not TABs, and add a rule to check this
9616         * tests/test-userspec.c: Indent with spaces, not TABs.
9617         * tests/test-argp.c: Likewise.
9618         * tests/test-c-stack2.sh: Likewise.
9619         * tests/test-parse-duration.sh: Likewise
9620         * m4/strtod.m4: Likewise.
9621         * m4/alloca.m4: Likewise.
9622         * m4/pselect.m4: Likewise.
9623         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
9624
9625 2011-07-03  Jim Meyering  <meyering@redhat.com>
9626
9627         maint.mk: correct omissions in prohibit_argmatch_without_use check
9628         This rule would mistakenly report that argmatch.h is included without
9629         use even when both the argmatch and invalid_arg macro were used.
9630         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
9631         of argmatch and invalid_arg.
9632
9633 2011-07-03  Bruno Haible  <bruno@clisp.org>
9634
9635         Comments about EINTR.
9636         * lib/safe-read.h: Explain the purpose of this module.
9637         * lib/safe-write.h: Likewise.
9638         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
9639         module.
9640         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
9641         module.
9642         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9643
9644 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9645
9646         xnanosleep: Rewrite to use new dtotimespec module.
9647         It has the conversion code that used to be in xnanosleep.
9648         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
9649         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
9650         (TIME_T_MAX): Remove.
9651         (xnanosleep): Rewrite in terms of dtotimespec.
9652         * modules/xnanosleep (Depends-on): Add dtotimespec.
9653         Remove intprops, stdbool.
9654
9655         timespec-add, timespec-sub: new modules
9656         * lib/timespec.h (timespec_add, timespec_sub): New decls.
9657         * lib/timespec-add.c, lib/timespec-sub.c:
9658         * modules/timespec-add, modules/timespec-sub: New files.
9659
9660         dtotimespec: new module
9661         * lib/timespec.h (dtotimespec): New decl.
9662         * lib/dtotimespec.c, modules/dtotimespec: New files.
9663
9664         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
9665
9666         pselect: new module
9667         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
9668         (pselect): New decls.
9669         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
9670         since the standard pselect decl uses 'restrict'.
9671         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
9672         HAVE_PSELECT, REPLACE_PSELECT.
9673         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
9674         HAVE_PSELECT, REPLACE_PSELECT.
9675         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
9676
9677         sys_select: don't depend on sys_socket
9678         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
9679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
9680         This fix works on GNU and GNU-like platforms, but has not been tested
9681         on native Windows.
9682         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
9683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
9684         gl_HEADER_SYS_SOCKET.
9685         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
9686         gl_PREREQ_SYS_H_WINSOCK2.
9687
9688 2011-06-29  Eric Blake  <eblake@redhat.com>
9689
9690         pipe2: fix C89 compile problem
9691         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
9692         Reported by Bruno Haible.
9693
9694         pipe, pipe2: don't corrupt fd on error
9695         * lib/pipe.c (pipe): Leave fd unchanged on error.
9696         * lib/pipe2.c (pipe2): Likewise.
9697         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
9698         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9699
9700 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
9701
9702         mmap-anon: do not use regular expressions inadvertently
9703         * m4/mmap-anon.m4: Remove trailing period from strings sought
9704         in the output.
9705
9706 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
9707
9708         nanosleep: fix integer overflow problem
9709         * lib/nanosleep.c (my_usleep): Don't assume signed integer
9710         arithmetic wraps around on overflow.
9711
9712         nanosleep: simplify carrying
9713         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
9714         first call to the underyling nanosleep, not for the last one.
9715         This doesn't fix any bugs, but it simplifies the computation of
9716         the remaining delay.  Found while auditing integer overflow issues.
9717
9718         dup2: remove test for existence of fcntl
9719         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
9720         "#if HAVE_FCNTL", in the configure-time test program.
9721         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
9722         and therefore speeds up "configure" a bit.  Found while
9723         adding the dup2 module to Emacs.
9724
9725 2011-06-24  Eric Blake  <eblake@redhat.com>
9726
9727         maint.mk: enhance useless header checks
9728         * top/maint.mk (_sc_header_without_use): Check both include
9729         styles.
9730         (sc_prohibit_assert_without_use)
9731         (sc_prohibit_close_stream_without_use)
9732         (sc_prohibit_getopt_without_use)
9733         (sc_prohibit_quotearg_without_use)
9734         (sc_prohibit_quote_without_use)
9735         (sc_prohibit_long_options_without_use)
9736         (sc_prohibit_inttostr_without_use)
9737         (sc_prohibit_ignore_value_without_use)
9738         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
9739         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
9740         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
9741         (sc_prohibit_hash_pjw_without_use)
9742         (sc_prohibit_safe_read_without_use)
9743         (sc_prohibit_argmatch_without_use)
9744         (sc_prohibit_canonicalize_without_use)
9745         (sc_prohibit_root_dev_ino_without_use)
9746         (sc_prohibit_openat_without_use)
9747         (sc_prohibit_c_ctype_without_use)
9748         (sc_prohibit_signal_without_use)
9749         (sc_prohibit_stdio--_without_use)
9750         (sc_prohibit_stdio-safer_without_use)
9751         (sc_prohibit_strings_without_use)
9752         (sc_prohibit_intprops_without_use)
9753         (sc_prohibit_stddef_without_use)
9754         (sc_prohibit_xfreopen_without_use): Update clients.
9755
9756 2011-06-24  Jim Meyering  <meyering@redhat.com>
9757
9758         syntax-check: keep one maint.mk rule in sync with its header
9759         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
9760         of the bug Eric has just fixed, with today's commit 25e4c2ec.
9761         I prefer to avoid temporary files here, so use <(...), but that
9762         is not supported by /bin/sh, so...
9763         (SHELL): Define to /bin/bash.
9764
9765 2011-06-24  Eric Blake  <eblake@redhat.com>
9766
9767         maint.mk: update sc_prohibit_intprops_without_use
9768         * top/maint.mk (_intprops_names): Match recent changes.
9769
9770 2011-06-24  Bruno Haible  <bruno@clisp.org>
9771
9772         strerror-override: No-op tweak.
9773         * lib/strerror-override.h (strerror_override): Reorder conditions,
9774         for consistency with lib/strerror-override.c.
9775
9776 2011-06-23  Eric Blake  <eblake@redhat.com>
9777
9778         maint.mk: test further PATH_MAX issues
9779         * top/maint.mk (sc_prohibit_path_max_array): Rename...
9780         (sc_prohibit_path_max_allocation): ...and also test alloca.
9781         Suggested by Jim Meyering.
9782
9783 2011-06-22  Eric Blake  <eblake@redhat.com>
9784
9785         maint.mk: add syntax-check to avoid char[PATH_MAX]
9786         * top/maint.mk (sc_prohibit_path_max_array): New rule.
9787
9788         stat: be robust to PATH_MAX definition
9789         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
9790         * modules/stat (Depends-on): Add verify.
9791
9792         link: work around IRIX bug
9793         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
9794         * lib/link.c (rpl_link): Work around it.
9795         * tests/test-link.h (test_link): Enhance test.
9796         * doc/posix-functions/link.texi (link): Document the bug.
9797
9798         getopt: silence clang warning
9799         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
9800         dereference.
9801         Reported by Gustavo Martin Domato.
9802
9803 2011-06-22  Jim Meyering  <meyering@redhat.com>
9804
9805         bootstrap: do not insert a blank line into each .gitignore file
9806         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9807
9808 2011-06-21  Eric Blake  <eblake@redhat.com>
9809
9810         perror: test for output mismatch
9811         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9812         perror on IRIX.
9813
9814         strerror_r: fix OpenBSD behavior on out-of-range
9815         * lib/strerror_r.c (strerror_r): Always use maximal string.
9816         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9817
9818         strerror_r: fix OpenBSD behavior on 0
9819         * lib/strerror-override.c (strerror_override): Also override 0
9820         when needed.
9821         * lib/strerror-override.h (strerror_override): Likewise.
9822         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9823         earlier.
9824         * lib/strerror_r.c (strerror_r): Likewise.
9825         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9826         behavior...
9827         (gl_FUNC_STRERROR_0): ...into new macro.
9828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9829         is overridden.
9830         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9831         * modules/strerror-override (Files): Add strerror.m4.
9832         (configure.ac): Also provide override for 0 when needed.
9833         * doc/posix-functions/strerror.texi (strerror): Document this.
9834         * doc/posix-functions/perror.texi (perror): Likewise.
9835
9836         perror: adjust array size
9837         * modules/perror (Depends-on): Add strerror-override.
9838         * lib/perror.c (perror): Use it to avoid magic number.
9839
9840         strerror-override: reduce size
9841         * lib/strerror-override.c (strerror_override): Use fewer lines.
9842
9843 2011-06-20  Bruno Haible  <bruno@clisp.org>
9844
9845         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9846         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9847
9848 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9849
9850         alloca: port to compilers that can optimize like GCC 4.6.0
9851         * lib/alloca.c (find_stack_direction): New signature, taken from
9852         Autoconf git.  This works with GCC 4.6.0.  This code should never
9853         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9854         be used with other compilers that optimize as well as GCC 4.6.0 does.
9855         (alloca): Adjust to new signature.
9856         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9857         New macro, which patches Autoconf in a similar way.
9858
9859         c-stack: stop worrying about stack direction
9860         * lib/c-stack.c (find_stack_direction): Remove.
9861         (segv_handler): Don't worry about stack direction growth, as it's
9862         too much of a pain to configure this correctly, given how compilers
9863         are optimizing-away our stack-growth detection code.  Instead, assume
9864         that any access to just before or just after the stack is OK.
9865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9866         Don't require AC_FUNC_ALLOCA; no longer needed.
9867
9868 2011-06-20  Eric Blake  <eblake@redhat.com>
9869
9870         test-stat: don't allocate PATH_MAX bytes
9871         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9872         PATH_MAX-sized buffer.
9873         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9874         * modules/stat-tests (Depends-on): Likewise.
9875         * tests/test-fstatat.c (includes): Drop pathmax.h.
9876         * tests/test-stat.c (includes): Likewise.
9877         Reported by Bruno Haible.
9878
9879 2011-06-20  Bruno Haible  <bruno@clisp.org>
9880
9881         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9882         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9883         * lib/float.c: New file.
9884         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9885         REPLACE_FLOAT_LDBL.
9886         * modules/float (Files): Add lib/float.c.
9887         (configure.ac): Invoke AC_LIBOBJ.
9888         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9889
9890 2011-06-20  Bruno Haible  <bruno@clisp.org>
9891
9892         Tests for module 'float'.
9893         * modules/float-tests: New file.
9894         * tests/test-float.c: New file.
9895
9896 2011-06-19  Bruno Haible  <bruno@clisp.org>
9897
9898         isinf: Coding style.
9899         * lib/isinf.c: Use GNU coding style.
9900
9901 2011-06-19  Bruno Haible  <bruno@clisp.org>
9902
9903         linkat test: Avoid test failure on AIX 7.1.
9904         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9905         * tests/test-link.h (test_link): Likewise.
9906
9907 2011-06-19  Bruno Haible  <bruno@clisp.org>
9908
9909         pread test: Avoid test failure on OpenBSD 4.9.
9910         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9911
9912 2011-06-19  Bruno Haible  <bruno@clisp.org>
9913
9914         sprintf-posix: Fix test failure on AIX 7.1.
9915         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9916         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9917         on AIX.
9918         * doc/posix-functions/fprintf.texi: Likewise.
9919         * doc/posix-functions/printf.texi: Likewise.
9920         * doc/posix-functions/snprintf.texi: Likewise.
9921         * doc/posix-functions/sprintf.texi: Likewise.
9922         * doc/posix-functions/vdprintf.texi: Likewise.
9923         * doc/posix-functions/vfprintf.texi: Likewise.
9924         * doc/posix-functions/vprintf.texi: Likewise.
9925         * doc/posix-functions/vsnprintf.texi: Likewise.
9926         * doc/posix-functions/vsprintf.texi: Likewise.
9927
9928 2011-06-19  Bruno Haible  <bruno@clisp.org>
9929
9930         roundl-ieee: Fix test failure on AIX 7.1.
9931         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9932         * doc/posix-functions/roundl.texi: Mention problem with negative
9933         arguments.
9934
9935 2011-06-19  Bruno Haible  <bruno@clisp.org>
9936
9937         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9938         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9939         * doc/posix-functions/round.texi: Mention problem with negative
9940         arguments.
9941         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9942
9943 2011-06-19  Bruno Haible  <bruno@clisp.org>
9944
9945         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9946         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9947         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9948         * doc/posix-functions/roundf.texi: Mention problem with negative
9949         arguments.
9950         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9951
9952 2011-06-19  Bruno Haible  <bruno@clisp.org>
9953
9954         ceilf-ieee: Work around bug on MacOS X 10.5.
9955         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9956
9957         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9958         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9959         IEEE compliant, avoid compiler optimizations.
9960         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9961         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9962         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9963         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9964         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9965         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9966         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9968         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9970
9971 2011-06-19  Bruno Haible  <bruno@clisp.org>
9972
9973         ceilf-ieee: Work around bug on AIX 7.1.
9974         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9975         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9976
9977 2011-06-19  Bruno Haible  <bruno@clisp.org>
9978
9979         ceil-ieee: Work around bug on AIX 7.1.
9980         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9981         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9982
9983 2011-06-18  Bruno Haible  <bruno@clisp.org>
9984
9985         fsync test: Avoid test failure on MacOS X and AIX.
9986         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9987         EINVAL.
9988
9989 2011-06-18  Bruno Haible  <bruno@clisp.org>
9990
9991         openat, fdopendir tests: Fix link errors.
9992         * modules/openat-tests (Depends-on): Add progname.
9993         * modules/fdopendir-tests (Depends-on): Likewise.
9994         * tests/test-fchownat.c: Include progname.h.
9995         (main): Call set_program_name.
9996         * tests/test-fstatat.c: Include progname.h.
9997         (main): Call set_program_name.
9998         * tests/test-mkdirat.c: Include progname.h.
9999         (main): Call set_program_name.
10000         * tests/test-openat.c: Include progname.h.
10001         (main): Call set_program_name.
10002         * tests/test-unlinkat.c: Include progname.h.
10003         (main): Call set_program_name.
10004         * tests/test-fdopendir.c: Include progname.h.
10005         (main): Call set_program_name.
10006
10007 2011-06-18  Bruno Haible  <bruno@clisp.org>
10008
10009         Doc update.
10010         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
10011         HP-UX.
10012         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
10013
10014 2011-06-18  Bruno Haible  <bruno@clisp.org>
10015
10016         getcwd tests: Avoid compilation error on HP-UX 11.31.
10017         * modules/getcwd-tests (Depends-on): Add pathmax.
10018         * tests/test-getcwd.c: Include pathmax.h.
10019
10020 2011-06-18  Bruno Haible  <bruno@clisp.org>
10021
10022         isfinite, isinf: Fix link error on AIX 6 and 7.
10023         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
10024         needed, also test the macro with a 'float' argument.
10025         * m4/isinf.m4 (gl_ISINF): Likewise.
10026
10027 2011-06-18  Bruno Haible  <bruno@clisp.org>
10028
10029         getloadavg: Don't clobber LIBS. Regression from previous commit.
10030         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
10031         AC_CHECK_LIB from here...
10032         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
10033         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
10034         gl_func_getloadavg_done.
10035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10036
10037 2011-06-18  Bruno Haible  <bruno@clisp.org>
10038
10039         clean-temp: Improve documentation.
10040         * lib/clean-temp.h: Explain better how to use this module.
10041         Reported by John Darrington <john@darrington.wattle.id.au>.
10042
10043 2011-06-17  Bruno Haible  <bruno@clisp.org>
10044
10045         pread, pwrite: Avoid cc warning on AIX.
10046         * lib/unistd.in.h (pread): Undefine before defining as a macro.
10047         (pwrite): Likewise.
10048
10049 2011-06-17  Bruno Haible  <bruno@clisp.org>
10050
10051         spawn-pipe tests: Fix link error.
10052         * tests/test-spawn-pipe-child.c: Undefine fprintf.
10053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10054
10055 2011-06-17  Bruno Haible  <bruno@clisp.org>
10056
10057         Tests: Remove unnecessary dependency.
10058         * modules/canonicalize-tests (Depends-on): Remove progname.
10059         * modules/chown-tests (Depends-on): Likewise.
10060         * modules/dirname-tests (Depends-on): Likewise.
10061         * modules/fdopendir-tests (Depends-on): Likewise.
10062         * modules/fdutimensat-tests (Depends-on): Likewise.
10063         * modules/hash-tests (Depends-on): Likewise.
10064         * modules/lchown-tests (Depends-on): Likewise.
10065         * modules/linkat-tests (Depends-on): Likewise.
10066         * modules/renameat-tests (Depends-on): Likewise.
10067         * modules/spawn-pipe-tests (Depends-on): Likewise.
10068         * modules/utimensat-tests (Depends-on): Likewise.
10069
10070 2011-06-17  Bruno Haible  <bruno@clisp.org>
10071
10072         spawn-pipe tests: Fix link error.
10073         * tests/test-spawn-pipe-child.c: Undefine fflush.
10074
10075 2011-06-17  Bruno Haible  <bruno@clisp.org>
10076
10077         Fix tests link errors.
10078         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
10079         * modules/chown-tests (Makefile.am): Don't link test-chown with
10080         LIBINTL.
10081         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
10082         LIBINTL.
10083         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
10084         LIBINTL.
10085         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
10086         LIBINTL.
10087
10088 2011-06-16  Bruno Haible  <bruno@clisp.org>
10089
10090         crypto/gc-sha1: Fix recent regression.
10091         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
10092         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
10093
10094         crypto/gc-md5: Fix recent regression.
10095         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
10096
10097         crypto/gc-md4: Fix recent regression.
10098         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
10099         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
10100
10101         crypto/gc-arctwo: Fix recent regression.
10102         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
10103         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
10104
10105         crypto/gc-rijndael: Fix recent regression.
10106         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
10107         (configure.ac): Invoke AC_LIBOBJ here.
10108         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
10109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10110
10111         crypto/gc-hmac-sha1: Fix recent regression.
10112         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
10113         (configure.ac): Invoke AC_LIBOBJ here.
10114         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
10115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10116
10117         crypto/gc-hmac-md5: Fix recent regression.
10118         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
10119         (configure.ac): Invoke AC_LIBOBJ here.
10120         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
10121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10122
10123         crypto/gc-des: Fix recent regression.
10124         * modules/crypto/gc-des (Files): Remove m4/des.m4.
10125         (configure.ac): Invoke AC_LIBOBJ here.
10126         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
10127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10128
10129         crypto/gc-arcfour: Fix recent regression.
10130         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
10131         (configure.ac): Invoke AC_LIBOBJ here.
10132         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
10133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10134
10135 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10136
10137         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
10138         After the 2011-05-21 change, this macro requires
10139         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
10140         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10141
10142 2011-06-16  Bruno Haible  <bruno@clisp.org>
10143
10144         fprintftime: Move AC_LIBOBJ invocations to module description.
10145         * m4/fprintftime.m4: Remove file.
10146         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
10147         (configure.ac): Remove gl_FPRINTFTIME call.
10148         (Makefile.am): Augment lib_SOURCES.
10149         Reported by Jim Meyering.
10150
10151 2011-06-16  Bruno Haible  <bruno@clisp.org>
10152
10153         tmpfile-safer: Finish 2011-05-23 commit.
10154         * m4/stdio-safer.m4: Really remove file.
10155         Reported by Jim Meyering.
10156
10157 2011-06-16  Bruno Haible  <bruno@clisp.org>
10158
10159         syntax-check: Fix typo.
10160         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
10161         printf-posix.m4.
10162         Reported by Jim Meyering.
10163
10164 2011-06-13  Jim Meyering  <meyering@redhat.com>
10165
10166         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
10167         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
10168
10169 2011-05-23  Bruno Haible  <bruno@clisp.org>
10170
10171         yesno: Move AC_LIBOBJ invocations to module description.
10172         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
10173         * modules/yesno (Makefile.am): Augment lib_SOURCES.
10174
10175 2011-05-23  Bruno Haible  <bruno@clisp.org>
10176
10177         xstrtol: Move AC_LIBOBJ invocations to module description.
10178         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
10179         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
10180
10181 2011-05-23  Bruno Haible  <bruno@clisp.org>
10182
10183         xstrtold: Move AC_LIBOBJ invocations to module description.
10184         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
10185         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
10186
10187 2011-05-23  Bruno Haible  <bruno@clisp.org>
10188
10189         xstrtod: Move AC_LIBOBJ invocations to module description.
10190         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
10191         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
10192
10193 2011-05-23  Bruno Haible  <bruno@clisp.org>
10194
10195         xnanosleep: Move AC_LIBOBJ invocations to module description.
10196         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
10197         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
10198
10199 2011-05-23  Bruno Haible  <bruno@clisp.org>
10200
10201         xgetcwd: Move AC_LIBOBJ invocations to module description.
10202         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
10203         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
10204
10205 2011-05-23  Bruno Haible  <bruno@clisp.org>
10206
10207         xalloc: Move AC_LIBOBJ invocations to module description.
10208         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
10209         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
10210
10211 2011-05-23  Bruno Haible  <bruno@clisp.org>
10212
10213         write-any-file: Move AC_LIBOBJ invocations to module description.
10214         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
10215         invocation.
10216         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
10217
10218 2011-05-23  Bruno Haible  <bruno@clisp.org>
10219
10220         utimens: Move AC_LIBOBJ invocations to module description.
10221         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
10222         * modules/utimens (Makefile.am): Augment lib_SOURCES.
10223
10224 2011-05-23  Bruno Haible  <bruno@clisp.org>
10225
10226         utimecmp: Move AC_LIBOBJ invocations to module description.
10227         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
10228         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
10229
10230 2011-05-23  Bruno Haible  <bruno@clisp.org>
10231
10232         userspec: Move AC_LIBOBJ invocations to module description.
10233         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
10234         * modules/userspec (Makefile.am): Augment lib_SOURCES.
10235
10236 2011-05-23  Bruno Haible  <bruno@clisp.org>
10237
10238         unlinkdir: Move AC_LIBOBJ invocations to module description.
10239         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
10240         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
10241
10242 2011-05-23  Bruno Haible  <bruno@clisp.org>
10243
10244         unistd-safer: Move AC_LIBOBJ invocations to module description.
10245         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
10246         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
10247
10248 2011-05-23  Bruno Haible  <bruno@clisp.org>
10249
10250         tempname: Move AC_LIBOBJ invocations to module description.
10251         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
10252         * modules/tempname (Makefile.am): Augment lib_SOURCES.
10253
10254 2011-05-23  Bruno Haible  <bruno@clisp.org>
10255
10256         strftime: Move AC_LIBOBJ invocations to module description.
10257         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
10258         * modules/strftime (Makefile.am): Augment lib_SOURCES.
10259
10260 2011-05-23  Bruno Haible  <bruno@clisp.org>
10261
10262         stdlib-safer: Move AC_LIBOBJ invocations to module description.
10263         * m4/stdlib-safer.m4: Remove file.
10264         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
10265         (configure.ac): Remove gl_STDLIB_SAFER call.
10266         (Makefile.am): Augment lib_SOURCES.
10267
10268 2011-05-23  Bruno Haible  <bruno@clisp.org>
10269
10270         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
10271         * m4/stdio-safer.m4: Remove file.
10272         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
10273         (configure.ac): Remove gl_TMPFILE_SAFER call.
10274         (Makefile.am): Augment lib_SOURCES.
10275
10276 2011-05-23  Bruno Haible  <bruno@clisp.org>
10277
10278         popen-safer: Move AC_LIBOBJ invocations to module description.
10279         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
10280         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
10281         (configure.ac): Remove gl_POPEN_SAFER call.
10282         (Makefile.am): Augment lib_SOURCES.
10283
10284 2011-05-23  Bruno Haible  <bruno@clisp.org>
10285
10286         freopen-safer: Move AC_LIBOBJ invocations to module description.
10287         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
10288         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
10289         (configure.ac): Remove gl_FREOPEN_SAFER call.
10290         (Makefile.am): Augment lib_SOURCES.
10291
10292 2011-05-23  Bruno Haible  <bruno@clisp.org>
10293
10294         fopen-safer: Move AC_LIBOBJ invocations to module description.
10295         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
10296         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
10297         (configure.ac): Remove gl_FOPEN_SAFER call.
10298         (Makefile.am): Augment lib_SOURCES.
10299
10300 2011-05-23  Bruno Haible  <bruno@clisp.org>
10301
10302         crypto/sha512: Move AC_LIBOBJ invocations to module description.
10303         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
10304         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
10305
10306 2011-05-23  Bruno Haible  <bruno@clisp.org>
10307
10308         crypto/sha256: Move AC_LIBOBJ invocations to module description.
10309         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
10310         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
10311
10312 2011-05-23  Bruno Haible  <bruno@clisp.org>
10313
10314         crypto/sha1: Move AC_LIBOBJ invocations to module description.
10315         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
10316         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
10317
10318 2011-05-23  Bruno Haible  <bruno@clisp.org>
10319
10320         settime: Move AC_LIBOBJ invocations to module description.
10321         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
10322         * modules/settime (Makefile.am): Augment lib_SOURCES.
10323
10324 2011-05-23  Bruno Haible  <bruno@clisp.org>
10325
10326         savedir: Move AC_LIBOBJ invocations to module description.
10327         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
10328         * modules/savedir (Makefile.am): Augment lib_SOURCES.
10329
10330 2011-05-23  Bruno Haible  <bruno@clisp.org>
10331
10332         save-cwd: Move AC_LIBOBJ invocations to module description.
10333         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
10334         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
10335
10336 2011-05-23  Bruno Haible  <bruno@clisp.org>
10337
10338         same: Move AC_LIBOBJ invocations to module description.
10339         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
10340         * modules/same (Makefile.am): Augment lib_SOURCES.
10341
10342 2011-05-23  Bruno Haible  <bruno@clisp.org>
10343
10344         safe-write: Move AC_LIBOBJ invocations to module description.
10345         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
10346         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
10347         instead of gl_SAFE_WRITE.
10348         (Makefile.am): Augment lib_SOURCES.
10349
10350 2011-05-23  Bruno Haible  <bruno@clisp.org>
10351
10352         safe-read: Move AC_LIBOBJ invocations to module description.
10353         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
10354         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
10355         of gl_SAFE_READ.
10356         (Makefile.am): Augment lib_SOURCES.
10357
10358 2011-05-23  Bruno Haible  <bruno@clisp.org>
10359
10360         safe-alloc: Move AC_LIBOBJ invocations to module description.
10361         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
10362         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
10363
10364 2011-05-23  Bruno Haible  <bruno@clisp.org>
10365
10366         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
10367         * m4/rijndael.m4: Remove file.
10368         * modules/crypto/rijndael (Files): Remove it.
10369         (configure.ac): Remove gl_RIJNDAEL call.
10370         (Makefile.am): Augment lib_SOURCES.
10371
10372 2011-05-23  Bruno Haible  <bruno@clisp.org>
10373
10374         readtokens: Move AC_LIBOBJ invocations to module description.
10375         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
10376         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
10377
10378 2011-05-23  Bruno Haible  <bruno@clisp.org>
10379
10380         read-file: Move AC_LIBOBJ invocations to module description.
10381         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
10382         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
10383         of gl_FUNC_READ_FILE.
10384         (Makefile.am): Augment lib_SOURCES.
10385
10386 2011-05-23  Bruno Haible  <bruno@clisp.org>
10387
10388         quotearg: Move AC_LIBOBJ invocations to module description.
10389         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
10390         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
10391
10392 2011-05-23  Bruno Haible  <bruno@clisp.org>
10393
10394         quote: Move AC_LIBOBJ invocations to module description.
10395         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
10396         * modules/quote (Makefile.am): Augment lib_SOURCES.
10397
10398 2011-05-23  Bruno Haible  <bruno@clisp.org>
10399
10400         posixver: Move AC_LIBOBJ invocations to module description.
10401         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
10402         * modules/posixver (Makefile.am): Augment lib_SOURCES.
10403
10404 2011-05-23  Bruno Haible  <bruno@clisp.org>
10405
10406         posixtm: Move AC_LIBOBJ invocations to module description.
10407         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
10408         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
10409
10410 2011-05-23  Bruno Haible  <bruno@clisp.org>
10411
10412         physmem: Move AC_LIBOBJ invocations to module description.
10413         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
10414         * modules/physmem (Makefile.am): Augment lib_SOURCES.
10415
10416 2011-05-23  Bruno Haible  <bruno@clisp.org>
10417
10418         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
10419         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
10420         invocation.
10421         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
10422
10423 2011-05-23  Bruno Haible  <bruno@clisp.org>
10424
10425         mpsort: Move AC_LIBOBJ invocations to module description.
10426         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
10427         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
10428
10429 2011-05-23  Bruno Haible  <bruno@clisp.org>
10430
10431         modechange: Move AC_LIBOBJ invocations to module description.
10432         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
10433         * modules/modechange (Makefile.am): Augment lib_SOURCES.
10434
10435 2011-05-23  Bruno Haible  <bruno@clisp.org>
10436
10437         mkdir-p: Move AC_LIBOBJ invocations to module description.
10438         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
10439         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
10440
10441 2011-05-23  Bruno Haible  <bruno@clisp.org>
10442
10443         mkancesdirs: Move AC_LIBOBJ invocations to module description.
10444         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
10445         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
10446
10447 2011-05-23  Bruno Haible  <bruno@clisp.org>
10448
10449         mgetgroups: Move AC_LIBOBJ invocations to module description.
10450         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
10451         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
10452
10453 2011-05-23  Bruno Haible  <bruno@clisp.org>
10454
10455         memxor: Move AC_LIBOBJ invocations to module description.
10456         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
10457         * modules/memxor (Makefile.am): Augment lib_SOURCES.
10458
10459 2011-05-23  Bruno Haible  <bruno@clisp.org>
10460
10461         memcoll: Move AC_LIBOBJ invocations to module description.
10462         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
10463         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
10464
10465 2011-05-23  Bruno Haible  <bruno@clisp.org>
10466
10467         memcasecmp: Move AC_LIBOBJ invocations to module description.
10468         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
10469         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
10470
10471 2011-05-23  Bruno Haible  <bruno@clisp.org>
10472
10473         crypto/md5: Move AC_LIBOBJ invocations to module description.
10474         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
10475         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
10476
10477 2011-05-23  Bruno Haible  <bruno@clisp.org>
10478
10479         crypto/md4: Move AC_LIBOBJ invocations to module description.
10480         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
10481         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
10482
10483 2011-05-23  Bruno Haible  <bruno@clisp.org>
10484
10485         crypto/md2: Move AC_LIBOBJ invocations to module description.
10486         * m4/md2.m4: Remove file.
10487         * modules/crypto/md2 (Files): Remove it.
10488         (configure.ac): Remove gl_MD2 call.
10489         (Makefile.am): Augment lib_SOURCES.
10490
10491 2011-05-23  Bruno Haible  <bruno@clisp.org>
10492
10493         long-options: Move AC_LIBOBJ invocations to module description.
10494         * m4/long-options.m4: Remove file.
10495         * modules/long-options (Files): Remove it.
10496         (configure.ac): Remove gl_LONG_OPTIONS call.
10497         (Makefile.am): Augment lib_SOURCES.
10498
10499 2011-05-23  Bruno Haible  <bruno@clisp.org>
10500
10501         i-ring: Move AC_LIBOBJ invocations to module description.
10502         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
10503         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
10504
10505 2011-05-23  Bruno Haible  <bruno@clisp.org>
10506
10507         idcache: Move AC_LIBOBJ invocations to module description.
10508         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
10509         * modules/idcache (Makefile.am): Augment lib_SOURCES.
10510
10511 2011-05-23  Bruno Haible  <bruno@clisp.org>
10512
10513         human: Move AC_LIBOBJ invocations to module description.
10514         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
10515         * modules/human (Makefile.am): Augment lib_SOURCES.
10516
10517 2011-05-23  Bruno Haible  <bruno@clisp.org>
10518
10519         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
10520         * m4/hmac-sha1.m4: Remove file.
10521         * modules/crypto/hmac-sha1 (Files): Remove it.
10522         (configure.ac): Remove gl_HMAC_SHA1 call.
10523         (Makefile.am): Augment lib_SOURCES.
10524
10525 2011-05-23  Bruno Haible  <bruno@clisp.org>
10526
10527         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
10528         * m4/hmac-md5.m4: Remove file.
10529         * modules/crypto/hmac-md5 (Files): Remove it.
10530         (configure.ac): Remove gl_HMAC_MD5 call.
10531         (Makefile.am): Augment lib_SOURCES.
10532
10533 2011-05-23  Bruno Haible  <bruno@clisp.org>
10534
10535         hash: Move AC_LIBOBJ invocations to module description.
10536         * m4/hash.m4: Remove file.
10537         * modules/hash (Files): Remove it.
10538         (configure.ac): Remove gl_HASH call.
10539         (Makefile.am): Augment lib_SOURCES.
10540
10541 2011-05-23  Bruno Haible  <bruno@clisp.org>
10542
10543         hard-locale: Move AC_LIBOBJ invocations to module description.
10544         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
10545         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
10546
10547 2011-05-23  Bruno Haible  <bruno@clisp.org>
10548
10549         getugroups: Move AC_LIBOBJ invocations to module description.
10550         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
10551         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
10552
10553 2011-05-23  Bruno Haible  <bruno@clisp.org>
10554
10555         gettime: Move AC_LIBOBJ invocations to module description.
10556         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
10557         * modules/gettime (Makefile.am): Augment lib_SOURCES.
10558
10559 2011-05-23  Bruno Haible  <bruno@clisp.org>
10560
10561         getndelim2: Move AC_LIBOBJ invocations to module description.
10562         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
10563         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
10564
10565 2011-05-23  Bruno Haible  <bruno@clisp.org>
10566
10567         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
10568         * m4/gc-pbkdf2-sha1.m4: Remove file.
10569         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
10570         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
10571         (Makefile.am): Augment lib_SOURCES.
10572
10573 2011-05-23  Bruno Haible  <bruno@clisp.org>
10574
10575         fts: Move AC_LIBOBJ invocations to module description.
10576         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
10577         * modules/fts (configure.ac): ... to here.
10578
10579 2011-05-23  Bruno Haible  <bruno@clisp.org>
10580
10581         file-type: Move AC_LIBOBJ invocations to module description.
10582         * m4/file-type.m4: Remove file.
10583         * modules/file-type (Files): Remove it.
10584         (configure.ac): Remove gl_FILE_TYPE call.
10585         (Makefile.am): Augment lib_SOURCES.
10586
10587 2011-05-23  Bruno Haible  <bruno@clisp.org>
10588
10589         filenamecat*: Respect rules for use of AC_LIBOBJ.
10590         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
10591         Remove AC_LIBOBJ invocation.
10592         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
10593         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
10594
10595 2011-05-23  Bruno Haible  <bruno@clisp.org>
10596
10597         filemode: Move AC_LIBOBJ invocations to module description.
10598         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
10599         * modules/filemode (Makefile.am): Augment lib_SOURCES.
10600
10601 2011-05-23  Bruno Haible  <bruno@clisp.org>
10602
10603         openat-safer: Move AC_LIBOBJ invocations to module description.
10604         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
10605         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
10606
10607 2011-05-23  Bruno Haible  <bruno@clisp.org>
10608
10609         fcntl-safer: Move AC_LIBOBJ invocations to module description.
10610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
10611         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
10612
10613 2011-05-23  Bruno Haible  <bruno@clisp.org>
10614
10615         exclude: Move AC_LIBOBJ invocations to module description.
10616         * m4/exclude.m4: Remove file.
10617         * modules/exclude (Files): Remove it.
10618         (configure.ac): Remove gl_EXCLUDE call.
10619         (Makefile.am): Augment lib_SOURCES.
10620
10621 2011-05-23  Bruno Haible  <bruno@clisp.org>
10622
10623         dirname*: Respect rules for use of AC_LIBOBJ.
10624         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
10625         invocations.
10626         * modules/dirname (Makefile.am): Augment lib_SOURCES.
10627         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
10628
10629 2011-05-23  Bruno Haible  <bruno@clisp.org>
10630
10631         dirent-safer: Move AC_LIBOBJ invocations to module description.
10632         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
10633         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
10634
10635 2011-05-23  Bruno Haible  <bruno@clisp.org>
10636
10637         crypto/des: Move AC_LIBOBJ invocations to module description.
10638         * m4/des.m4: Remove file.
10639         * modules/crypto/des (Files): Remove it.
10640         (configure.ac): Remove gl_DES call.
10641         (Makefile.am): Augment lib_SOURCES.
10642
10643 2011-05-23  Bruno Haible  <bruno@clisp.org>
10644
10645         cycle-check: Move AC_LIBOBJ invocations to module description.
10646         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
10647         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
10648
10649 2011-05-23  Bruno Haible  <bruno@clisp.org>
10650
10651         c-strtold: Move AC_LIBOBJ invocations to module description.
10652         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
10653         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
10654
10655 2011-05-23  Bruno Haible  <bruno@clisp.org>
10656
10657         c-strtod: Move AC_LIBOBJ invocations to module description.
10658         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
10659         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
10660
10661 2011-05-23  Bruno Haible  <bruno@clisp.org>
10662
10663         crc: Move AC_LIBOBJ invocations to module description.
10664         * m4/crc.m4: Remove file.
10665         * modules/crc (Files): Remove it.
10666         (configure.ac): Remove gl_CRC call.
10667         (Makefile.am): Augment lib_SOURCES.
10668
10669 2011-05-23  Bruno Haible  <bruno@clisp.org>
10670
10671         close-stream: Move AC_LIBOBJ invocations to module description.
10672         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
10673         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
10674
10675 2011-05-23  Bruno Haible  <bruno@clisp.org>
10676
10677         closeout: Move AC_LIBOBJ invocations to module description.
10678         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
10679         * modules/closeout (Makefile.am): Augment lib_SOURCES.
10680
10681 2011-05-23  Bruno Haible  <bruno@clisp.org>
10682
10683         closein: Move AC_LIBOBJ invocations to module description.
10684         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
10685         * modules/closein (Makefile.am): Augment lib_SOURCES.
10686
10687 2011-05-23  Bruno Haible  <bruno@clisp.org>
10688
10689         cloexec: Move AC_LIBOBJ invocations to module description.
10690         * m4/cloexec.m4: Remove file.
10691         * modules/cloexec (Files): Remove it.
10692         (configure.ac): Remove gl_CLOEXEC call.
10693         (Makefile.am): Augment lib_SOURCES.
10694
10695 2011-05-23  Bruno Haible  <bruno@clisp.org>
10696
10697         check-version: Move AC_LIBOBJ invocations to module description.
10698         * m4/check-version.m4: Remove file.
10699         * modules/check-version (Files): Remove it.
10700         (configure.ac): Remove gl_CHECK_VERSION call.
10701         (Makefile.am): Augment lib_SOURCES.
10702
10703 2011-05-23  Bruno Haible  <bruno@clisp.org>
10704
10705         chdir-safer: Move AC_LIBOBJ invocations to module description.
10706         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
10707         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
10708
10709 2011-05-23  Bruno Haible  <bruno@clisp.org>
10710
10711         canonicalize: Move AC_LIBOBJ invocations to module description.
10712         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
10713         AC_LIBOBJ invocation.
10714         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
10715
10716 2011-05-23  Bruno Haible  <bruno@clisp.org>
10717
10718         canon-host: Move AC_LIBOBJ invocations to module description.
10719         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
10720         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
10721         instead of gl_CANON_HOST.
10722         (Makefile.am): Augment lib_SOURCES.
10723
10724 2011-05-23  Bruno Haible  <bruno@clisp.org>
10725
10726         backupfile: Move AC_LIBOBJ invocations to module description.
10727         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
10728         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
10729
10730 2011-05-23  Bruno Haible  <bruno@clisp.org>
10731
10732         argmatch: Move AC_LIBOBJ invocations to module description.
10733         * m4/argmatch.m4: Remove file.
10734         * modules/argmatch (Files): Remove it.
10735         (configure.ac): Remove gl_ARGMATCH call.
10736         (Makefile.am): Augment lib_SOURCES.
10737
10738 2011-05-23  Bruno Haible  <bruno@clisp.org>
10739
10740         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
10741         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
10742         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
10743
10744 2011-05-23  Bruno Haible  <bruno@clisp.org>
10745
10746         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
10747         * m4/arcfour.m4: Remove file.
10748         * modules/crypto/arcfour (Files): Remove it.
10749         (configure.ac): Remove gl_ARCFOUR call.
10750         (Makefile.am): Augment lib_SOURCES.
10751
10752 2011-05-22  Bruno Haible  <bruno@clisp.org>
10753
10754         write: Move AC_LIBOBJ invocations to module description.
10755         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
10756         * modules/write (configure.ac): ... to here.
10757
10758 2011-05-22  Bruno Haible  <bruno@clisp.org>
10759
10760         wmemset: Move AC_LIBOBJ invocations to module description.
10761         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
10762         here...
10763         * modules/wmemset (configure.ac): ... to here.
10764
10765 2011-05-22  Bruno Haible  <bruno@clisp.org>
10766
10767         wmemmove: Move AC_LIBOBJ invocations to module description.
10768         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
10769         here...
10770         * modules/wmemmove (configure.ac): ... to here.
10771
10772 2011-05-22  Bruno Haible  <bruno@clisp.org>
10773
10774         wmemcpy: Move AC_LIBOBJ invocations to module description.
10775         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
10776         here...
10777         * modules/wmemcpy (configure.ac): ... to here.
10778
10779 2011-05-22  Bruno Haible  <bruno@clisp.org>
10780
10781         wmemcmp: Move AC_LIBOBJ invocations to module description.
10782         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
10783         here...
10784         * modules/wmemcmp (configure.ac): ... to here.
10785
10786 2011-05-22  Bruno Haible  <bruno@clisp.org>
10787
10788         wmemchr: Move AC_LIBOBJ invocations to module description.
10789         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
10790         here...
10791         * modules/wmemchr (configure.ac): ... to here.
10792
10793 2011-05-22  Bruno Haible  <bruno@clisp.org>
10794
10795         wcswidth: Move AC_LIBOBJ invocations to module description.
10796         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
10797         here...
10798         * modules/wcswidth (configure.ac): ... to here.
10799
10800 2011-05-22  Bruno Haible  <bruno@clisp.org>
10801
10802         wcwidth: Respect rules for use of AC_LIBOBJ.
10803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
10804         invocation from here...
10805         * modules/wcwidth (configure.ac): ... to here.
10806         (Depends-on): Update conditions.
10807
10808 2011-05-22  Bruno Haible  <bruno@clisp.org>
10809
10810         wctype: Move AC_LIBOBJ invocations to module description.
10811         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10812         invocation from here...
10813         * modules/wctype (configure.ac): ... to here.
10814         (Depends-on): Update conditions.
10815
10816 2011-05-22  Bruno Haible  <bruno@clisp.org>
10817
10818         wctrans: Move AC_LIBOBJ invocations to module description.
10819         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10820         invocation from here...
10821         * modules/wctrans (configure.ac): ... to here.
10822
10823 2011-05-22  Bruno Haible  <bruno@clisp.org>
10824
10825         wctomb: Move AC_LIBOBJ invocations to module description.
10826         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10827         invocations from here...
10828         * modules/wctomb (configure.ac): ... to here.
10829
10830 2011-05-22  Bruno Haible  <bruno@clisp.org>
10831
10832         wctob: Move AC_LIBOBJ invocations to module description.
10833         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10834         gl_PREREQ_WCTOB invocations from here...
10835         * modules/wctob (configure.ac): ... to here.
10836         (Depends-on): Update conditions.
10837
10838 2011-05-22  Bruno Haible  <bruno@clisp.org>
10839
10840         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10841         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10842         here...
10843         * modules/wcsxfrm (configure.ac): ... to here.
10844
10845 2011-05-22  Bruno Haible  <bruno@clisp.org>
10846
10847         wcstok: Move AC_LIBOBJ invocations to module description.
10848         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10849         * modules/wcstok (configure.ac): ... to here.
10850
10851 2011-05-22  Bruno Haible  <bruno@clisp.org>
10852
10853         wcsstr: Move AC_LIBOBJ invocations to module description.
10854         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10855         * modules/wcsstr (configure.ac): ... to here.
10856
10857 2011-05-22  Bruno Haible  <bruno@clisp.org>
10858
10859         wcsspn: Move AC_LIBOBJ invocations to module description.
10860         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10861         * modules/wcsspn (configure.ac): ... to here.
10862
10863 2011-05-22  Bruno Haible  <bruno@clisp.org>
10864
10865         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10866         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10867         gl_PREREQ_WCSRTOMBS invocations from here...
10868         * modules/wcsrtombs (configure.ac): ... to here.
10869
10870 2011-05-22  Bruno Haible  <bruno@clisp.org>
10871
10872         wcsrchr: Move AC_LIBOBJ invocations to module description.
10873         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10874         here...
10875         * modules/wcsrchr (configure.ac): ... to here.
10876
10877 2011-05-22  Bruno Haible  <bruno@clisp.org>
10878
10879         wcspbrk: Move AC_LIBOBJ invocations to module description.
10880         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10881         here...
10882         * modules/wcspbrk (configure.ac): ... to here.
10883
10884 2011-05-22  Bruno Haible  <bruno@clisp.org>
10885
10886         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10887         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10888         gl_PREREQ_WCSNRTOMBS invocations from here...
10889         * modules/wcsnrtombs (configure.ac): ... to here.
10890
10891 2011-05-22  Bruno Haible  <bruno@clisp.org>
10892
10893         wcsnlen: Move AC_LIBOBJ invocations to module description.
10894         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10895         here...
10896         * modules/wcsnlen (configure.ac): ... to here.
10897
10898 2011-05-22  Bruno Haible  <bruno@clisp.org>
10899
10900         wcsncpy: Move AC_LIBOBJ invocations to module description.
10901         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10902         here...
10903         * modules/wcsncpy (configure.ac): ... to here.
10904
10905 2011-05-22  Bruno Haible  <bruno@clisp.org>
10906
10907         wcsncmp: Move AC_LIBOBJ invocations to module description.
10908         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10909         here...
10910         * modules/wcsncmp (configure.ac): ... to here.
10911
10912 2011-05-22  Bruno Haible  <bruno@clisp.org>
10913
10914         wcsncat: Move AC_LIBOBJ invocations to module description.
10915         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10916         here...
10917         * modules/wcsncat (configure.ac): ... to here.
10918
10919 2011-05-22  Bruno Haible  <bruno@clisp.org>
10920
10921         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10922         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10923         from here...
10924         * modules/wcsncasecmp (configure.ac): ... to here.
10925
10926 2011-05-22  Bruno Haible  <bruno@clisp.org>
10927
10928         wcslen: Move AC_LIBOBJ invocations to module description.
10929         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10930         * modules/wcslen (configure.ac): ... to here.
10931
10932 2011-05-22  Bruno Haible  <bruno@clisp.org>
10933
10934         wcsdup: Move AC_LIBOBJ invocations to module description.
10935         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10936         * modules/wcsdup (configure.ac): ... to here.
10937
10938 2011-05-22  Bruno Haible  <bruno@clisp.org>
10939
10940         wcscspn: Move AC_LIBOBJ invocations to module description.
10941         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10942         here...
10943         * modules/wcscspn (configure.ac): ... to here.
10944
10945 2011-05-22  Bruno Haible  <bruno@clisp.org>
10946
10947         wcscpy: Move AC_LIBOBJ invocations to module description.
10948         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10949         * modules/wcscpy (configure.ac): ... to here.
10950
10951 2011-05-22  Bruno Haible  <bruno@clisp.org>
10952
10953         wcscoll: Move AC_LIBOBJ invocations to module description.
10954         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10955         here...
10956         * modules/wcscoll (configure.ac): ... to here.
10957
10958 2011-05-22  Bruno Haible  <bruno@clisp.org>
10959
10960         wcscmp: Move AC_LIBOBJ invocations to module description.
10961         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10962         * modules/wcscmp (configure.ac): ... to here.
10963
10964 2011-05-22  Bruno Haible  <bruno@clisp.org>
10965
10966         wcschr: Move AC_LIBOBJ invocations to module description.
10967         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10968         * modules/wcschr (configure.ac): ... to here.
10969
10970 2011-05-22  Bruno Haible  <bruno@clisp.org>
10971
10972         wcscat: Move AC_LIBOBJ invocations to module description.
10973         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10974         * modules/wcscat (configure.ac): ... to here.
10975
10976 2011-05-22  Bruno Haible  <bruno@clisp.org>
10977
10978         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10979         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10980         here...
10981         * modules/wcscasecmp (configure.ac): ... to here.
10982
10983 2011-05-22  Bruno Haible  <bruno@clisp.org>
10984
10985         wcrtomb: Move AC_LIBOBJ invocations to module description.
10986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10987         invocations from here...
10988         * modules/wcrtomb (configure.ac): ... to here.
10989
10990 2011-05-22  Bruno Haible  <bruno@clisp.org>
10991
10992         wcpncpy: Move AC_LIBOBJ invocations to module description.
10993         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10994         here...
10995         * modules/wcpncpy (configure.ac): ... to here.
10996
10997 2011-05-22  Bruno Haible  <bruno@clisp.org>
10998
10999         wcpcpy: Move AC_LIBOBJ invocations to module description.
11000         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
11001         * modules/wcpcpy (configure.ac): ... to here.
11002
11003 2011-05-22  Bruno Haible  <bruno@clisp.org>
11004
11005         waitpid: Move AC_LIBOBJ invocations to module description.
11006         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
11007         invocation from here...
11008         * modules/waitpid (configure.ac): ... to here.
11009
11010 2011-05-22  Bruno Haible  <bruno@clisp.org>
11011
11012         utimensat: Move AC_LIBOBJ invocations to module description.
11013         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
11014         here...
11015         * modules/utimensat (configure.ac): ... to here.
11016
11017 2011-05-22  Bruno Haible  <bruno@clisp.org>
11018
11019         usleep: Move AC_LIBOBJ invocations to module description.
11020         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
11021         here...
11022         * modules/usleep (configure.ac): ... to here.
11023
11024 2011-05-22  Bruno Haible  <bruno@clisp.org>
11025
11026         unlockpt: Move AC_LIBOBJ invocations to module description.
11027         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
11028         gl_PREREQ_UNLOCKPT invocations from here...
11029         * modules/unlockpt (configure.ac): ... to here.
11030
11031 2011-05-22  Bruno Haible  <bruno@clisp.org>
11032
11033         unlink: Respect rules for use of AC_LIBOBJ.
11034         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
11035         * modules/unlink (configure.ac): ... to here.
11036
11037 2011-05-22  Bruno Haible  <bruno@clisp.org>
11038
11039         uname: Move AC_LIBOBJ invocations to module description.
11040         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
11041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
11042         here...
11043         * modules/uname (configure.ac): ... to here.
11044
11045 2011-05-22  Bruno Haible  <bruno@clisp.org>
11046
11047         ttyname_r: Move AC_LIBOBJ invocations to module description.
11048         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
11049         gl_PREREQ_TTYNAME_R invocations from here...
11050         * modules/ttyname_r (configure.ac): ... to here.
11051
11052 2011-05-22  Bruno Haible  <bruno@clisp.org>
11053
11054         tsearch: Move AC_LIBOBJ invocations to module description.
11055         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
11056         invocations from here...
11057         * modules/tsearch (configure.ac): ... to here.
11058
11059 2011-05-22  Bruno Haible  <bruno@clisp.org>
11060
11061         towctrans: Move AC_LIBOBJ invocations to module description.
11062         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
11063         AC_LIBOBJ invocation from here...
11064         * modules/towctrans (configure.ac): ... to here.
11065
11066 2011-05-22  Bruno Haible  <bruno@clisp.org>
11067
11068         tmpfile: Move AC_LIBOBJ invocations to module description.
11069         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
11070         invocations from here...
11071         * modules/tmpfile (configure.ac): ... to here.
11072
11073 2011-05-22  Bruno Haible  <bruno@clisp.org>
11074
11075         times: Move AC_LIBOBJ invocations to module description.
11076         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
11077         * modules/times (configure.ac): ... to here.
11078
11079 2011-05-22  Bruno Haible  <bruno@clisp.org>
11080
11081         time_r: Move AC_LIBOBJ invocations to module description.
11082         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
11083         invocations from here...
11084         * modules/time_r (configure.ac): ... to here.
11085
11086 2011-05-22  Bruno Haible  <bruno@clisp.org>
11087
11088         timegm: Move AC_LIBOBJ invocations to module description.
11089         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
11090         invocations from here...
11091         * modules/timegm (configure.ac): ... to here.
11092
11093 2011-05-22  Bruno Haible  <bruno@clisp.org>
11094
11095         tcgetsid: Move AC_LIBOBJ invocations to module description.
11096         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
11097         and gl_PREREQ_TCGETSID invocations from here...
11098         * modules/tcgetsid (configure.ac): ... to here.
11099         (Depends-on): Update conditions.
11100
11101 2011-05-22  Bruno Haible  <bruno@clisp.org>
11102
11103         symlinkat: Move AC_LIBOBJ invocations to module description.
11104         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
11105         here...
11106         * modules/symlinkat (configure.ac): ... to here.
11107
11108 2011-05-22  Bruno Haible  <bruno@clisp.org>
11109
11110         symlink: Move AC_LIBOBJ invocations to module description.
11111         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
11112         here...
11113         * modules/symlink (configure.ac): ... to here.
11114
11115 2011-05-22  Bruno Haible  <bruno@clisp.org>
11116
11117         strverscmp: Move AC_LIBOBJ invocations to module description.
11118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
11119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
11120         from here...
11121         * modules/strverscmp (configure.ac): ... to here.
11122
11123 2011-05-22  Bruno Haible  <bruno@clisp.org>
11124
11125         strtok_r: Move AC_LIBOBJ invocations to module description.
11126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
11127         and gl_PREREQ_STRTOK_R invocations from here...
11128         * modules/strtok_r (configure.ac): ... to here.
11129         (Depends-on): Update conditions.
11130
11131 2011-05-22  Bruno Haible  <bruno@clisp.org>
11132
11133         strtoumax: Move AC_LIBOBJ invocations to module description.
11134         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
11135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
11136         from here...
11137         * modules/strtoumax (configure.ac): ... to here.
11138
11139 2011-05-22  Bruno Haible  <bruno@clisp.org>
11140
11141         strtoimax: Move AC_LIBOBJ invocations to module description.
11142         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
11143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
11144         from here...
11145         * modules/strtoimax (configure.ac): ... to here.
11146
11147 2011-05-22  Bruno Haible  <bruno@clisp.org>
11148
11149         strtoull: Move AC_LIBOBJ invocations to module description.
11150         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
11151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
11152         from here...
11153         * modules/strtoull (configure.ac): ... to here.
11154
11155 2011-05-22  Bruno Haible  <bruno@clisp.org>
11156
11157         strtoll: Move AC_LIBOBJ invocations to module description.
11158         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
11159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
11160         here...
11161         * modules/strtoll (configure.ac): ... to here.
11162
11163 2011-05-22  Bruno Haible  <bruno@clisp.org>
11164
11165         strtoul: Move AC_LIBOBJ invocations to module description.
11166         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
11167         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11168         * modules/strtoul (configure.ac): ... to here.
11169
11170 2011-05-22  Bruno Haible  <bruno@clisp.org>
11171
11172         strtol: Move AC_LIBOBJ invocations to module description.
11173         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
11174         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11175         * modules/strtol (configure.ac): ... to here.
11176
11177 2011-05-22  Bruno Haible  <bruno@clisp.org>
11178
11179         strtod: Move AC_LIBOBJ invocations to module description.
11180         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
11181         invocations from here...
11182         * modules/strtod (configure.ac): ... to here.
11183
11184 2011-05-22  Bruno Haible  <bruno@clisp.org>
11185
11186         strstr*: Move AC_LIBOBJ invocations to module description.
11187         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
11188         invocations from here...
11189         * modules/strstr-simple (configure.ac): ... to here.
11190         * modules/strstr (configure.ac): ... and here.
11191
11192 2011-05-22  Bruno Haible  <bruno@clisp.org>
11193
11194         strsignal: Move AC_LIBOBJ invocations to module description.
11195         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
11196         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
11197         * modules/strsignal (configure.ac): ... to here.
11198         (Depends-on): Update conditions.
11199
11200 2011-05-22  Bruno Haible  <bruno@clisp.org>
11201
11202         strsep: Move AC_LIBOBJ invocations to module description.
11203         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
11204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
11205         here...
11206         * modules/strsep (configure.ac): ... to here.
11207
11208 2011-05-22  Bruno Haible  <bruno@clisp.org>
11209
11210         strptime: Move AC_LIBOBJ invocations to module description.
11211         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
11212         gl_PREREQ_STRPTIME invocations from here...
11213         * modules/strptime (configure.ac): ... to here.
11214
11215 2011-05-22  Bruno Haible  <bruno@clisp.org>
11216
11217         strpbrk: Move AC_LIBOBJ invocations to module description.
11218         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
11219         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
11220         here...
11221         * modules/strpbrk (configure.ac): ... to here.
11222
11223 2011-05-22  Bruno Haible  <bruno@clisp.org>
11224
11225         strnlen: Move AC_LIBOBJ invocations to module description.
11226         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
11227         invocations from here...
11228         * modules/strnlen (configure.ac): ... to here.
11229
11230 2011-05-22  Bruno Haible  <bruno@clisp.org>
11231
11232         strndup: Move AC_LIBOBJ invocations to module description.
11233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
11234         invocations from here...
11235         * modules/strndup (configure.ac): ... to here.
11236         (Depends-on): Update conditions.
11237
11238 2011-05-22  Bruno Haible  <bruno@clisp.org>
11239
11240         strncat: Move AC_LIBOBJ invocations to module description.
11241         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
11242         invocations from here...
11243         * modules/strncat (configure.ac): ... to here.
11244
11245 2011-05-22  Bruno Haible  <bruno@clisp.org>
11246
11247         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
11248         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
11249         invocations from here...
11250         * modules/strdup (configure.ac): ... to here.
11251         * modules/strdup-posix (configure.ac): ... and here.
11252
11253 2011-05-22  Bruno Haible  <bruno@clisp.org>
11254
11255         strcspn: Move AC_LIBOBJ invocations to module description.
11256         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
11257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
11258         here...
11259         * modules/strcspn (configure.ac): ... to here.
11260
11261 2011-05-22  Bruno Haible  <bruno@clisp.org>
11262
11263         strchrnul: Move AC_LIBOBJ invocations to module description.
11264         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
11265         gl_PREREQ_STRCHRNUL invocations from here...
11266         * modules/strchrnul (configure.ac): ... to here.
11267
11268 2011-05-22  Bruno Haible  <bruno@clisp.org>
11269
11270         strcasestr*: Move AC_LIBOBJ invocations to module description.
11271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11272         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
11273         * modules/strcasestr-simple (configure.ac): ... to here.
11274         * modules/strcasestr (configure.ac): ... and here.
11275
11276 2011-05-22  Bruno Haible  <bruno@clisp.org>
11277
11278         strcase: Move AC_LIBOBJ invocations to module description.
11279         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
11280         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
11281         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
11282         gl_PREREQ_STRNCASECMP invocations from here...
11283         * modules/strcase (configure.ac): ... to here.
11284
11285 2011-05-22  Bruno Haible  <bruno@clisp.org>
11286
11287         stpncpy: Move AC_LIBOBJ invocations to module description.
11288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
11289         here...
11290         * modules/stpncpy (configure.ac): ... to here.
11291
11292 2011-05-22  Bruno Haible  <bruno@clisp.org>
11293
11294         stpcpy: Move AC_LIBOBJ invocations to module description.
11295         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
11296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
11297         here...
11298         * modules/stpcpy (configure.ac): ... to here.
11299
11300 2011-05-21  Bruno Haible  <bruno@clisp.org>
11301
11302         stat: Move AC_LIBOBJ invocations to module description.
11303         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
11304         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
11305         here...
11306         * modules/stat (configure.ac): ... to here.
11307
11308 2011-05-21  Bruno Haible  <bruno@clisp.org>
11309
11310         sleep: Move AC_LIBOBJ invocations to module description.
11311         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
11312         * modules/sleep (configure.ac): ... to here.
11313
11314 2011-05-21  Bruno Haible  <bruno@clisp.org>
11315
11316         signbit: Move AC_LIBOBJ invocations to module description.
11317         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
11318         * modules/signbit (configure.ac): ... to here.
11319
11320 2011-05-21  Bruno Haible  <bruno@clisp.org>
11321
11322         sigprocmask: Move AC_LIBOBJ invocations to module description.
11323         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
11324         gl_PREREQ_SIGPROMASK invocations from here...
11325         * modules/sigprocmask (configure.ac): ... to here.
11326
11327 2011-05-21  Bruno Haible  <bruno@clisp.org>
11328
11329         sigaction: Move AC_LIBOBJ invocations to module description.
11330         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
11331         gl_PREREQ_SIGACTION invocations from here...
11332         * modules/sigaction (configure.ac): ... to here.
11333
11334 2011-05-21  Bruno Haible  <bruno@clisp.org>
11335
11336         sig2str: Move AC_LIBOBJ invocations to module description.
11337         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
11338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
11339         here...
11340         * modules/sig2str (configure.ac): ... to here.
11341
11342 2011-05-21  Bruno Haible  <bruno@clisp.org>
11343
11344         setlocale: Move AC_LIBOBJ invocations to module description.
11345         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
11346         gl_PREREQ_SETLOCALE invocations from here...
11347         * modules/setlocale (configure.ac): ... to here.
11348
11349 2011-05-21  Bruno Haible  <bruno@clisp.org>
11350
11351         unsetenv: Move AC_LIBOBJ invocations to module description.
11352         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
11353         and gl_PREREQ_UNSETENV invocations from here...
11354         * modules/unsetenv (configure.ac): ... to here.
11355         (Depends-on): Update.
11356
11357 2011-05-21  Bruno Haible  <bruno@clisp.org>
11358
11359         setenv: Move AC_LIBOBJ invocations to module description.
11360         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
11361         here...
11362         * modules/setenv (configure.ac): ... to here.
11363
11364 2011-05-21  Bruno Haible  <bruno@clisp.org>
11365
11366         selinux-h: Move AC_LIBOBJ invocations to module description.
11367         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
11368         AC_LIBOBJ invocation from here...
11369         * modules/selinux-h (configure.ac): ... to here.
11370
11371 2011-05-21  Bruno Haible  <bruno@clisp.org>
11372
11373         select: Respect rules for use of AC_LIBOBJ.
11374         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
11375         here...
11376         * modules/select (configure.ac): ... to here.
11377
11378 2011-05-21  Bruno Haible  <bruno@clisp.org>
11379
11380         scandir: Move AC_LIBOBJ invocations to module description.
11381         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
11382         invocations from here...
11383         * modules/scandir (configure.ac): ... to here.
11384
11385 2011-05-21  Bruno Haible  <bruno@clisp.org>
11386
11387         rpmatch: Move AC_LIBOBJ invocations to module description.
11388         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
11389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
11390         here...
11391         * modules/rpmatch (configure.ac): ... to here.
11392
11393 2011-05-21  Bruno Haible  <bruno@clisp.org>
11394
11395         rmdir: Respect rules for use of AC_LIBOBJ.
11396         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
11397         * modules/rmdir (configure.ac): ... to here.
11398
11399 2011-05-21  Bruno Haible  <bruno@clisp.org>
11400
11401         renameat: Move AC_LIBOBJ invocations to module description.
11402         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
11403         here...
11404         * modules/renameat (configure.ac): ... to here.
11405
11406 2011-05-21  Bruno Haible  <bruno@clisp.org>
11407
11408         rename: Respect rules for use of AC_LIBOBJ.
11409         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
11410         here...
11411         * modules/rename (configure.ac): ... to here.
11412
11413 2011-05-21  Bruno Haible  <bruno@clisp.org>
11414
11415         remove: Move AC_LIBOBJ invocations to module description.
11416         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
11417         here...
11418         * modules/remove (configure.ac): ... to here.
11419
11420 2011-05-21  Bruno Haible  <bruno@clisp.org>
11421
11422         relocatable-lib: Move AC_LIBOBJ invocations to module description.
11423         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
11424         macro.
11425         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
11426         * modules/relocatable-lib (configure.ac): ... to here.
11427         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11428         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
11429
11430 2011-05-21  Bruno Haible  <bruno@clisp.org>
11431
11432         relocatable-prog: Move AC_LIBOBJ invocations to module description.
11433         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
11434         here...
11435         * modules/relocatable-prog (configure.ac): ... to here.
11436
11437 2011-05-21  Bruno Haible  <bruno@clisp.org>
11438
11439         regex: Move AC_LIBOBJ invocations to module description.
11440         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
11441         invocations from here...
11442         * modules/regex (configure.ac): ... to here.
11443
11444 2011-05-21  Bruno Haible  <bruno@clisp.org>
11445
11446         realloc-*: Move AC_LIBOBJ invocations to module description.
11447         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
11448         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
11449         AC_LIBOBJ invocations from here...
11450         * modules/realloc-gnu (configure.ac): ... to here.
11451         * modules/realloc-posix (configure.ac): ... and here.
11452
11453 2011-05-21  Bruno Haible  <bruno@clisp.org>
11454
11455         readutmp: Move AC_LIBOBJ invocations to module description.
11456         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
11457         * modules/readutmp (configure.ac): ... to here.
11458
11459 2011-05-21  Bruno Haible  <bruno@clisp.org>
11460
11461         readlinkat: Move AC_LIBOBJ invocations to module description.
11462         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
11463         here...
11464         * modules/readlinkat (configure.ac): ... to here.
11465
11466 2011-05-21  Bruno Haible  <bruno@clisp.org>
11467
11468         readlink: Move AC_LIBOBJ invocations to module description.
11469         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
11470         gl_PREREQ_READLINK invocations from here...
11471         * modules/readlink (configure.ac): ... to here.
11472
11473 2011-05-21  Bruno Haible  <bruno@clisp.org>
11474
11475         readline: Move AC_LIBOBJ invocations to module description.
11476         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
11477         gl_PREREQ_READLINE invocations from here...
11478         * modules/readline (configure.ac): ... to here.
11479
11480 2011-05-21  Bruno Haible  <bruno@clisp.org>
11481
11482         read: Move AC_LIBOBJ invocations to module description.
11483         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
11484         * modules/read (configure.ac): ... to here.
11485
11486 2011-05-21  Bruno Haible  <bruno@clisp.org>
11487
11488         rawmemchr: Move AC_LIBOBJ invocations to module description.
11489         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
11490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
11491         from here...
11492         * modules/rawmemchr (configure.ac): ... to here.
11493
11494 2011-05-21  Bruno Haible  <bruno@clisp.org>
11495
11496         random_r: Move AC_LIBOBJ invocations to module description.
11497         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
11498         gl_PREREQ_RANDOM_R invocations from here...
11499         * modules/random_r (configure.ac): ... to here.
11500
11501 2011-05-21  Bruno Haible  <bruno@clisp.org>
11502
11503         pwrite: Move AC_LIBOBJ invocations to module description.
11504         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
11505         * modules/pwrite (configure.ac): ... to here.
11506
11507 2011-05-21  Bruno Haible  <bruno@clisp.org>
11508
11509         putenv: Move AC_LIBOBJ invocations to module description.
11510         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
11511         * modules/putenv (configure.ac): ... to here.
11512
11513 2011-05-21  Bruno Haible  <bruno@clisp.org>
11514
11515         login_tty: Move AC_LIBOBJ invocations to module description.
11516         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
11517         * modules/login_tty (configure.ac): ... to here.
11518
11519 2011-05-21  Bruno Haible  <bruno@clisp.org>
11520
11521         openpty: Move AC_LIBOBJ invocations to module description.
11522         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
11523         * modules/openpty (configure.ac): ... to here.
11524
11525 2011-05-21  Bruno Haible  <bruno@clisp.org>
11526
11527         forkpty: Move AC_LIBOBJ invocations to module description.
11528         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
11529         * modules/forkpty (configure.ac): ... to here.
11530
11531 2011-05-21  Bruno Haible  <bruno@clisp.org>
11532
11533         ptsname: Move AC_LIBOBJ invocations to module description.
11534         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
11535         invocations from here...
11536         * modules/ptsname (configure.ac): ... to here.
11537
11538 2011-05-21  Bruno Haible  <bruno@clisp.org>
11539
11540         pread: Move AC_LIBOBJ invocations to module description.
11541         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
11542         * modules/pread (configure.ac): ... to here.
11543
11544 2011-05-21  Bruno Haible  <bruno@clisp.org>
11545
11546         posix_spawn*: Move AC_LIBOBJ invocations to module description.
11547         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
11548         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
11549         * modules/posix_spawn (configure.ac): ... to here.
11550         * modules/posix_spawnp (configure.ac): ... and here.
11551
11552 2011-05-21  Bruno Haible  <bruno@clisp.org>
11553
11554         popen: Move AC_LIBOBJ invocations to module description.
11555         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
11556         invocations from here...
11557         * modules/popen (configure.ac): ... to here.
11558
11559 2011-05-21  Bruno Haible  <bruno@clisp.org>
11560
11561         poll: Move AC_LIBOBJ invocations to module description.
11562         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
11563         invocations from here...
11564         * modules/poll (configure.ac): ... to here.
11565
11566 2011-05-21  Bruno Haible  <bruno@clisp.org>
11567
11568         pipe-posix: Move AC_LIBOBJ invocations to module description.
11569         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
11570         * modules/pipe-posix (configure.ac): ... to here.
11571
11572 2011-05-21  Bruno Haible  <bruno@clisp.org>
11573
11574         openat: Respect rules for use of AC_LIBOBJ.
11575         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
11576         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11577         * modules/openat (configure.ac): ... to here.
11578
11579 2011-05-21  Bruno Haible  <bruno@clisp.org>
11580
11581         obstack-printf*: Move AC_LIBOBJ invocations to module description.
11582         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
11583         invocation from here...
11584         * modules/obstack-printf (configure.ac): ... to here.
11585         * modules/obstack-printf-posix (configure.ac): ... and here.
11586
11587 2011-05-21  Bruno Haible  <bruno@clisp.org>
11588
11589         nl_langinfo: Move AC_LIBOBJ invocations to module description.
11590         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
11591         from here...
11592         * modules/nl_langinfo (configure.ac): ... to here.
11593
11594 2011-05-21  Bruno Haible  <bruno@clisp.org>
11595
11596         nanosleep: Move AC_LIBOBJ invocations to module description.
11597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
11598         gl_PREREQ_NANOSLEEP invocations from here...
11599         * modules/nanosleep (configure.ac): ... to here.
11600
11601 2011-05-21  Bruno Haible  <bruno@clisp.org>
11602
11603         mountlist: Move AC_LIBOBJ invocations to module description.
11604         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
11605         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
11606         * modules/mountlist (configure.ac): ... to here.
11607
11608 2011-05-21  Bruno Haible  <bruno@clisp.org>
11609
11610         mktime: Respect rules for use of AC_LIBOBJ.
11611         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
11612         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
11613         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
11614         (gl_FUNC_MKTIME_INTERNAL): ... and here...
11615         * modules/mktime (configure.ac): ... to here.
11616         * modules/mktime-internal (configure.ac): ... and here.
11617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
11618
11619 2011-05-21  Bruno Haible  <bruno@clisp.org>
11620
11621         mkstemps: Move AC_LIBOBJ invocations to module description.
11622         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
11623         here...
11624         * modules/mkstemps (configure.ac): ... to here.
11625
11626 2011-05-21  Bruno Haible  <bruno@clisp.org>
11627
11628         mkstemp: Move AC_LIBOBJ invocations to module description.
11629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
11630         gl_PREREQ_MKSTEMP invocations from here...
11631         * modules/mkstemp (configure.ac): ... to here.
11632
11633 2011-05-21  Bruno Haible  <bruno@clisp.org>
11634
11635         mkostemps: Move AC_LIBOBJ invocations to module description.
11636         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
11637         here...
11638         * modules/mkostemps (configure.ac): ... to here.
11639
11640 2011-05-21  Bruno Haible  <bruno@clisp.org>
11641
11642         mkostemp: Move AC_LIBOBJ invocations to module description.
11643         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
11644         gl_PREREQ_MKOSTEMP invocations from here...
11645         * modules/mkostemp (configure.ac): ... to here.
11646
11647 2011-05-21  Bruno Haible  <bruno@clisp.org>
11648
11649         mknod: Move AC_LIBOBJ invocations to module description.
11650         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
11651         * modules/mknod (configure.ac): ... to here.
11652
11653 2011-05-21  Bruno Haible  <bruno@clisp.org>
11654
11655         mkfifoat: Move AC_LIBOBJ invocations to module description.
11656         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
11657         here...
11658         * modules/mkfifoat (configure.ac): ... to here.
11659
11660 2011-05-21  Bruno Haible  <bruno@clisp.org>
11661
11662         mkfifo: Respect rules for use of AC_LIBOBJ.
11663         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
11664         here...
11665         * modules/mkfifo (configure.ac): ... to here.
11666
11667 2011-05-21  Bruno Haible  <bruno@clisp.org>
11668
11669         mkdtemp: Move AC_LIBOBJ invocations to module description.
11670         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
11671         invocations from here...
11672         * modules/mkdtemp (configure.ac): ... to here.
11673
11674 2011-05-21  Bruno Haible  <bruno@clisp.org>
11675
11676         mkdir: Move AC_LIBOBJ invocations to module description.
11677         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
11678         * modules/mkdir (configure.ac): ... to here.
11679
11680 2011-05-21  Bruno Haible  <bruno@clisp.org>
11681
11682         memset: Move AC_LIBOBJ invocations to module description.
11683         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
11684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
11685         here...
11686         * modules/memset (configure.ac): ... to here.
11687
11688 2011-05-21  Bruno Haible  <bruno@clisp.org>
11689
11690         memrchr: Move AC_LIBOBJ invocations to module description.
11691         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
11692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
11693         here...
11694         * modules/memrchr (configure.ac): ... to here.
11695
11696 2011-05-21  Bruno Haible  <bruno@clisp.org>
11697
11698         mempcpy: Move AC_LIBOBJ invocations to module description.
11699         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
11700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
11701         here...
11702         * modules/mempcpy (configure.ac): ... to here.
11703
11704 2011-05-21  Bruno Haible  <bruno@clisp.org>
11705
11706         memmove: Move AC_LIBOBJ invocations to module description.
11707         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
11708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
11709         here...
11710         * modules/memmove (configure.ac): ... to here.
11711
11712 2011-05-21  Bruno Haible  <bruno@clisp.org>
11713
11714         memmem*: Move AC_LIBOBJ invocations to module description.
11715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
11716         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
11717         here...
11718         (gl_FUNC_MEMMEM): ... and here...
11719         * modules/memmem-simple (configure.ac): ... to here.
11720         * modules/memmem (configure.ac): ... and here.
11721
11722 2011-05-21  Bruno Haible  <bruno@clisp.org>
11723
11724         memcpy: Move AC_LIBOBJ invocations to module description.
11725         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
11726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
11727         here...
11728         * modules/memcpy (configure.ac): ... to here.
11729
11730 2011-05-21  Bruno Haible  <bruno@clisp.org>
11731
11732         memcmp: Simplify autoconf macro.
11733         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
11734         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
11735         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
11736
11737 2011-05-21  Bruno Haible  <bruno@clisp.org>
11738
11739         memcmp: Move AC_LIBOBJ invocations to module description.
11740         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
11741         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
11742         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
11743         * modules/memcmp (configure.ac): ... to here.
11744         (Depends-on): Update conditions.
11745
11746 2011-05-21  Bruno Haible  <bruno@clisp.org>
11747
11748         memchr: Respect rules for use of AC_LIBOBJ.
11749         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
11750         invocations from here...
11751         * modules/memchr (configure.ac): ... to here.
11752
11753 2011-05-21  Bruno Haible  <bruno@clisp.org>
11754
11755         mbtowc: Move AC_LIBOBJ invocations to module description.
11756         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
11757         invocations from here...
11758         * modules/mbtowc (configure.ac): ... to here.
11759
11760 2011-05-21  Bruno Haible  <bruno@clisp.org>
11761
11762         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
11763         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
11764         gl_PREREQ_MBSRTOWCS invocations from here...
11765         * modules/mbsrtowcs (configure.ac): ... to here.
11766
11767 2011-05-21  Bruno Haible  <bruno@clisp.org>
11768
11769         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
11770         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
11771         gl_PREREQ_MBSNRTOWCS invocations from here...
11772         * modules/mbsnrtowcs (configure.ac): ... to here.
11773
11774 2011-05-21  Bruno Haible  <bruno@clisp.org>
11775
11776         mbsinit: Move AC_LIBOBJ invocations to module description.
11777         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
11778         invocations from here...
11779         * modules/mbsinit (configure.ac): ... to here.
11780
11781 2011-05-21  Bruno Haible  <bruno@clisp.org>
11782
11783         mbrlen: Move AC_LIBOBJ invocations to module description.
11784         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
11785         invocations from here...
11786         * modules/mbrlen (configure.ac): ... to here.
11787
11788 2011-05-21  Bruno Haible  <bruno@clisp.org>
11789
11790         mbrtowc: Respect rules for use of AC_LIBOBJ.
11791         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
11792         invocations from here...
11793         * modules/mbrtowc (configure.ac): ... to here.
11794
11795 2011-05-21  Bruno Haible  <bruno@clisp.org>
11796
11797         malloc-*: Move AC_LIBOBJ invocations to module description.
11798         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
11799         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
11800         AC_LIBOBJ invocations from here...
11801         * modules/malloc-gnu (configure.ac): ... to here.
11802         * modules/malloc-posix (configure.ac): ... and here.
11803
11804 2011-05-21  Bruno Haible  <bruno@clisp.org>
11805
11806         lstat, openat: Respect rules for use of AC_LIBOBJ.
11807         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11808         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11809         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11810         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11811         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11812         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11813         here.
11814         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11815
11816 2011-05-21  Bruno Haible  <bruno@clisp.org>
11817
11818         lseek: Move AC_LIBOBJ invocations to module description.
11819         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11820         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11821         * modules/lseek (configure.ac): ... to here.
11822
11823 2011-05-21  Bruno Haible  <bruno@clisp.org>
11824
11825         linkat: Move AC_LIBOBJ invocations to module description.
11826         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11827         here...
11828         * modules/linkat (configure.ac): ... to here.
11829
11830 2011-05-21  Bruno Haible  <bruno@clisp.org>
11831
11832         link: Respect rules for use of AC_LIBOBJ.
11833         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11834         * modules/link (configure.ac): ... to here.
11835
11836 2011-05-21  Bruno Haible  <bruno@clisp.org>
11837
11838         lchown: Move AC_LIBOBJ invocations to module description.
11839         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11840         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11841         * modules/lchown (configure.ac): ... to here.
11842
11843 2011-05-21  Bruno Haible  <bruno@clisp.org>
11844
11845         iswctype: Move AC_LIBOBJ invocations to module description.
11846         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11847         here...
11848         * modules/iswctype (configure.ac): ... to here.
11849
11850 2011-05-21  Bruno Haible  <bruno@clisp.org>
11851
11852         iswblank: Move AC_LIBOBJ invocations to module description.
11853         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11854         here...
11855         * modules/iswblank (configure.ac): ... to here.
11856
11857 2011-05-21  Bruno Haible  <bruno@clisp.org>
11858
11859         atanl: Move AC_LIBOBJ invocations to module description.
11860         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11861         * modules/atanl (configure.ac): ... to here.
11862
11863 2011-05-21  Bruno Haible  <bruno@clisp.org>
11864
11865         acosl: Move AC_LIBOBJ invocations to module description.
11866         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11867         * modules/acosl (configure.ac): ... to here.
11868
11869 2011-05-21  Bruno Haible  <bruno@clisp.org>
11870
11871         asinl: Respect rules for use of AC_LIBOBJ.
11872         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11873         * modules/asinl (configure.ac): ... to here.
11874
11875 2011-05-21  Bruno Haible  <bruno@clisp.org>
11876
11877         tanl: Move AC_LIBOBJ invocations to module description.
11878         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11879         * modules/tanl (configure.ac): ... to here.
11880
11881 2011-05-21  Bruno Haible  <bruno@clisp.org>
11882
11883         cosl: Move AC_LIBOBJ invocations to module description.
11884         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11885         * modules/cosl (configure.ac): ... to here.
11886
11887 2011-05-21  Bruno Haible  <bruno@clisp.org>
11888
11889         sinl: Move AC_LIBOBJ invocations to module description.
11890         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11891         * modules/sinl (configure.ac): ... to here.
11892
11893 2011-05-21  Bruno Haible  <bruno@clisp.org>
11894
11895         logl: Move AC_LIBOBJ invocations to module description.
11896         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11897         * modules/logl (configure.ac): ... to here.
11898
11899 2011-05-21  Bruno Haible  <bruno@clisp.org>
11900
11901         expl: Move AC_LIBOBJ invocations to module description.
11902         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11903         * modules/expl (configure.ac): ... to here.
11904
11905 2011-05-21  Bruno Haible  <bruno@clisp.org>
11906
11907         roundl: Move AC_LIBOBJ invocations to module description.
11908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11909         * modules/roundl (configure.ac): ... to here.
11910
11911 2011-05-21  Bruno Haible  <bruno@clisp.org>
11912
11913         round: Move AC_LIBOBJ invocations to module description.
11914         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11915         * modules/round (configure.ac): ... to here.
11916
11917 2011-05-21  Bruno Haible  <bruno@clisp.org>
11918
11919         roundf: Move AC_LIBOBJ invocations to module description.
11920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11921         * modules/roundf (configure.ac): ... to here.
11922
11923 2011-05-21  Bruno Haible  <bruno@clisp.org>
11924
11925         truncl: Move AC_LIBOBJ invocations to module description.
11926         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11927         * modules/truncl (configure.ac): ... to here.
11928
11929 2011-05-21  Bruno Haible  <bruno@clisp.org>
11930
11931         trunc: Move AC_LIBOBJ invocations to module description.
11932         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11933         * modules/trunc (configure.ac): ... to here.
11934
11935 2011-05-21  Bruno Haible  <bruno@clisp.org>
11936
11937         truncf: Move AC_LIBOBJ invocations to module description.
11938         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11939         * modules/truncf (configure.ac): ... to here.
11940
11941 2011-05-21  Bruno Haible  <bruno@clisp.org>
11942
11943         ceill: Move AC_LIBOBJ invocations to module description.
11944         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11945         * modules/ceill (configure.ac): ... to here.
11946
11947 2011-05-21  Bruno Haible  <bruno@clisp.org>
11948
11949         ceil: Move AC_LIBOBJ invocations to module description.
11950         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11951         * modules/ceil (configure.ac): ... to here.
11952
11953 2011-05-21  Bruno Haible  <bruno@clisp.org>
11954
11955         ceilf: Move AC_LIBOBJ invocations to module description.
11956         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11957         * modules/ceilf (configure.ac): ... to here.
11958
11959 2011-05-21  Bruno Haible  <bruno@clisp.org>
11960
11961         floorl: Respect rules for use of AC_LIBOBJ.
11962         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11963         * modules/floorl (configure.ac): ... to here.
11964
11965 2011-05-21  Bruno Haible  <bruno@clisp.org>
11966
11967         floor: Respect rules for use of AC_LIBOBJ.
11968         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11969         * modules/floor (configure.ac): ... to here.
11970
11971 2011-05-21  Bruno Haible  <bruno@clisp.org>
11972
11973         floorf: Move AC_LIBOBJ invocations to module description.
11974         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11975         * modules/floorf (configure.ac): ... to here.
11976
11977 2011-05-20  Bruno Haible  <bruno@clisp.org>
11978
11979         sqrtl: Respect rules for use of AC_LIBOBJ.
11980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11981         * modules/sqrtl (configure.ac): ... to here.
11982
11983 2011-05-20  Bruno Haible  <bruno@clisp.org>
11984
11985         ldexpl: Respect rules for use of AC_LIBOBJ.
11986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11987         * modules/ldexpl (configure.ac): ... to here.
11988
11989 2011-05-20  Bruno Haible  <bruno@clisp.org>
11990
11991         frexpl*: Respect rules for use of AC_LIBOBJ.
11992         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11993         invocation from here...
11994         * modules/frexpl (configure.ac): ... to here.
11995         * modules/frexpl-nolibm (configure.ac): ... and here.
11996
11997 2011-05-20  Bruno Haible  <bruno@clisp.org>
11998
11999         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
12000         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
12001         invocation from here...
12002         * modules/frexp (configure.ac): ... to here.
12003         * modules/frexp-nolibm (configure.ac): ... and here.
12004
12005 2011-05-20  Bruno Haible  <bruno@clisp.org>
12006
12007         isnan: Respect rules for use of AC_LIBOBJ.
12008         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
12009         invocations here.
12010         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
12011         REPLACE_ISNAN.
12012         * modules/isnand (configure.ac): Likewise.
12013         * modules/isnanl (configure.ac): Likewise.
12014
12015 2011-05-20  Bruno Haible  <bruno@clisp.org>
12016
12017         isnanl*: Respect rules for use of AC_LIBOBJ.
12018         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
12019         invocation from here...
12020         * modules/isnanl (configure.ac): ... to here.
12021         * modules/isnanl-nolibm (configure.ac): ... and here.
12022
12023 2011-05-20  Bruno Haible  <bruno@clisp.org>
12024
12025         isnand*: Move AC_LIBOBJ invocations to module description.
12026         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
12027         invocation from here...
12028         * modules/isnand (configure.ac): ... to here.
12029         * modules/isnand-nolibm (configure.ac): ... and here.
12030
12031 2011-05-20  Bruno Haible  <bruno@clisp.org>
12032
12033         isnanf*: Move AC_LIBOBJ invocations to module description.
12034         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
12035         invocation from here...
12036         * modules/isnanf (configure.ac): ... to here.
12037         * modules/isnanf-nolibm (configure.ac): ... and here.
12038
12039 2011-05-20  Bruno Haible  <bruno@clisp.org>
12040
12041         isnan*: Separate the AC_LIBOBJ invocations.
12042         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
12043         AC_LIBOBJ invocation.
12044         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
12045         here.
12046         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
12047         AC_LIBOBJ invocation.
12048         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
12049         here.
12050         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
12051         AC_LIBOBJ invocation.
12052         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
12053         here.
12054         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
12055
12056 2011-05-08  Bruno Haible  <bruno@clisp.org>
12057
12058         isinf: Move AC_LIBOBJ invocations to module description.
12059         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
12060         * modules/isinf (configure.ac): ... to here.
12061
12062 2011-05-08  Bruno Haible  <bruno@clisp.org>
12063
12064         isfinite: Move AC_LIBOBJ invocations to module description.
12065         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
12066         * modules/isfinite (configure.ac): ... to here.
12067
12068 2011-05-08  Bruno Haible  <bruno@clisp.org>
12069
12070         isblank: Move AC_LIBOBJ invocations to module description.
12071         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
12072         here...
12073         * modules/isblank (configure.ac): ... to here.
12074
12075 2011-05-08  Bruno Haible  <bruno@clisp.org>
12076
12077         isapipe: Move AC_LIBOBJ invocations to module description.
12078         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
12079         gl_PREREQ_ISAPIPE invocations from here...
12080         * modules/isapipe (configure.ac): ... to here.
12081         (Depends-on): Update condition.
12082
12083 2011-05-08  Bruno Haible  <bruno@clisp.org>
12084
12085         ioctl: Move AC_LIBOBJ invocations to module description.
12086         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
12087         invocations from here...
12088         * modules/ioctl (configure.ac): ... to here.
12089         (Depends-on): Update condition.
12090
12091 2011-05-08  Bruno Haible  <bruno@clisp.org>
12092
12093         imaxdiv: Move AC_LIBOBJ invocations to module description.
12094         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
12095         invocations from here...
12096         * modules/imaxdiv (configure.ac): ... to here.
12097
12098 2011-05-08  Bruno Haible  <bruno@clisp.org>
12099
12100         imaxabs: Move AC_LIBOBJ invocations to module description.
12101         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
12102         invocations from here...
12103         * modules/imaxabs (configure.ac): ... to here.
12104
12105 2011-05-08  Bruno Haible  <bruno@clisp.org>
12106
12107         getaddrinfo: Move AC_LIBOBJ invocations to module description.
12108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
12109         AC_LIBOBJ invocations from here...
12110         * modules/getaddrinfo (configure.ac): ... to here.
12111         (Depends-on): Add conditions.
12112
12113 2011-05-08  Bruno Haible  <bruno@clisp.org>
12114
12115         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12116         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
12117         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12118         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
12119         (gl_PREREQ_INET_PTON): ... from here.
12120         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
12121         gl_PREREQ_INET_PTON here.
12122         (Depends-on): Update condition.
12123
12124 2011-05-08  Bruno Haible  <bruno@clisp.org>
12125
12126         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12127         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
12128         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12129         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
12130         (gl_PREREQ_INET_NTOP): ... from here.
12131         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
12132         gl_PREREQ_INET_NTOP here.
12133         (Depends-on): Update condition.
12134
12135 2011-05-08  Bruno Haible  <bruno@clisp.org>
12136
12137         iconv_open: Move AC_LIBOBJ invocations to module description.
12138         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
12139         AC_LIBOBJ invocations from here...
12140         * modules/iconv_open (configure.ac): ... to here.
12141
12142 2011-05-08  Bruno Haible  <bruno@clisp.org>
12143
12144         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
12145         If module 'iconv_open' is among the main modules and module
12146         'iconv_open-utf' is among the tests dependencies, then
12147         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
12148         return the special iconv_t values. Therefore iconv() and iconv_close()
12149         must support these special iconv_t values, already in lib, not only in
12150         tests.
12151         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
12152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
12153         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
12154         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
12155         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
12156         (Depends-on): Add the dependencies of iconv_open-utf.
12157         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
12158         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
12159         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
12160
12161 2011-05-08  Bruno Haible  <bruno@clisp.org>
12162
12163         group-member: Move AC_LIBOBJ invocations to module description.
12164         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
12165         gl_PREREQ_GROUP_MEMBER invocations from here...
12166         * modules/group-member (configure.ac): ... to here.
12167
12168 2011-05-08  Bruno Haible  <bruno@clisp.org>
12169
12170         grantpt: Move AC_LIBOBJ invocations to module description.
12171         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
12172         invocations from here...
12173         * modules/grantpt (configure.ac): ... to here.
12174
12175 2011-05-08  Bruno Haible  <bruno@clisp.org>
12176
12177         glob: Move AC_LIBOBJ invocations to module description.
12178         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
12179         from here...
12180         * modules/glob (configure.ac): ... to here.
12181
12182 2011-05-08  Bruno Haible  <bruno@clisp.org>
12183
12184         getusershell: Move AC_LIBOBJ invocations to module description.
12185         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
12186         Move AC_LIBOBJ invocation from here...
12187         * modules/getusershell (configure.ac): ... to here.
12188         (Depends-on): Update condition.
12189
12190 2011-05-08  Bruno Haible  <bruno@clisp.org>
12191
12192         gettimeofday: Move AC_LIBOBJ invocations to module description.
12193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12194         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
12195         gl_PREREQ_GETTIMEOFDAY invocations from here...
12196         * modules/gettimeofday (configure.ac): ... to here.
12197
12198 2011-05-08  Bruno Haible  <bruno@clisp.org>
12199
12200         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
12201         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
12202         just gl_FUNC_TZSET.
12203         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
12204         (gl_FUNC_TZSET_CLOBBER): Remove actions.
12205         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
12206         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
12207
12208 2011-05-08  Bruno Haible  <bruno@clisp.org>
12209
12210         getsubopt: Move AC_LIBOBJ invocations to module description.
12211         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
12212         gl_PREREQ_GETSUBOPT invocations from here...
12213         * modules/getsubopt (configure.ac): ... to here.
12214
12215 2011-05-08  Bruno Haible  <bruno@clisp.org>
12216
12217         getpass-gnu: Move AC_LIBOBJ invocations to module description.
12218         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
12219         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
12220         * modules/getpass-gnu (configure.ac): ... to here.
12221
12222 2011-05-08  Bruno Haible  <bruno@clisp.org>
12223
12224         getpass: Move AC_LIBOBJ invocations to module description.
12225         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
12226         gl_PREREQ_GETPASS invocations from here...
12227         * modules/getpass (configure.ac): ... to here.
12228
12229 2011-05-08  Bruno Haible  <bruno@clisp.org>
12230
12231         getpagesize: Move AC_LIBOBJ invocations to module description.
12232         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
12233         from here...
12234         * modules/getpagesize (configure.ac): ... to here.
12235
12236 2011-05-08  Bruno Haible  <bruno@clisp.org>
12237
12238         getopt: Move AC_LIBOBJ invocations to module description.
12239         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
12240         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
12241         invocations from here...
12242         * modules/getopt-gnu (configure.ac): ... to here.
12243         * modules/getopt-posix (configure.ac): ... and here.
12244         (Depends-on): Update condition.
12245
12246 2011-05-08  Bruno Haible  <bruno@clisp.org>
12247
12248         getopt, argp: Respect rules for use of AC_LIBOBJ.
12249         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
12250         (gl_REPLACE_GETOPT_ALWAYS): New macro.
12251         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
12252         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
12253
12254 2011-05-08  Bruno Haible  <bruno@clisp.org>
12255
12256         getlogin_r: Move AC_LIBOBJ invocations to module description.
12257         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
12258         gl_PREREQ_GETLOGIN_R invocations from here...
12259         * modules/getlogin_r (configure.ac): ... to here.
12260
12261 2011-05-08  Bruno Haible  <bruno@clisp.org>
12262
12263         getlogin: Move AC_LIBOBJ invocations to module description.
12264         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
12265         here...
12266         * modules/getlogin (configure.ac): ... to here.
12267
12268 2011-05-08  Bruno Haible  <bruno@clisp.org>
12269
12270         getloadavg: Move AC_LIBOBJ invocations to module description.
12271         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
12272         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
12273         * modules/getloadavg (configure.ac): ... to here.
12274
12275 2011-05-08  Bruno Haible  <bruno@clisp.org>
12276
12277         gethrxtime: Move AC_LIBOBJ invocations to module description.
12278         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
12279         LIB_GETHRXTIME from here...
12280         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
12281         invocations from here...
12282         * modules/gethrxtime (configure.ac): ... to here.
12283
12284 2011-05-08  Bruno Haible  <bruno@clisp.org>
12285
12286         gethostname: Move AC_LIBOBJ invocations to module description.
12287         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
12288         gl_PREREQ_GETHOSTNAME invocations from here...
12289         * modules/gethostname (configure.ac): ... to here.
12290
12291 2011-05-08  Bruno Haible  <bruno@clisp.org>
12292
12293         getgroups: Move AC_LIBOBJ invocations to module description.
12294         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
12295         here...
12296         * modules/getgroups (configure.ac): ... to here.
12297
12298 2011-05-08  Bruno Haible  <bruno@clisp.org>
12299
12300         getdtablesize: Move AC_LIBOBJ invocations to module description.
12301         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
12302         invocation from here...
12303         * modules/getdtablesize (configure.ac): ... to here.
12304
12305 2011-05-08  Bruno Haible  <bruno@clisp.org>
12306
12307         getdomainname: Move AC_LIBOBJ invocations to module description.
12308         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
12309         gl_PREREQ_GETDOMAINNAME invocations from here...
12310         * modules/getdomainname (configure.ac): ... to here.
12311
12312 2011-05-08  Bruno Haible  <bruno@clisp.org>
12313
12314         getline: Move AC_LIBOBJ invocations to module description.
12315         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
12316         invocations from here...
12317         * modules/getline (configure.ac): ... to here.
12318
12319 2011-05-08  Bruno Haible  <bruno@clisp.org>
12320
12321         getline: Simplify.
12322         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
12323         It's already handled through the module dependency.
12324
12325 2011-05-08  Bruno Haible  <bruno@clisp.org>
12326
12327         getdelim: Move AC_LIBOBJ invocations to module description.
12328         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
12329         and gl_PREREQ_GETDELIM invocations from here...
12330         * modules/getdelim (configure.ac): ... to here.
12331         (Depends-on): Fix condition.
12332
12333 2011-05-08  Bruno Haible  <bruno@clisp.org>
12334
12335         getcwd: Move AC_LIBOBJ invocations to module description.
12336         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
12337         invocations from here...
12338         * modules/getcwd (configure.ac): ... to here.
12339
12340 2011-05-08  Bruno Haible  <bruno@clisp.org>
12341
12342         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
12343         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
12344         here...
12345         * modules/getcwd-lgpl (configure.ac): ... to here.
12346
12347 2011-05-07  Bruno Haible  <bruno@clisp.org>
12348
12349         crypto/gc: Move AC_LIBOBJ invocations to module description.
12350         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
12351         * modules/crypto/gc (configure.ac): ... to here.
12352
12353 2011-05-07  Bruno Haible  <bruno@clisp.org>
12354
12355         fwriting: Move AC_LIBOBJ invocations to module description.
12356         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
12357         here...
12358         * modules/fwriting (configure.ac): ... to here.
12359
12360 2011-05-07  Bruno Haible  <bruno@clisp.org>
12361
12362         fwritable: Move AC_LIBOBJ invocations to module description.
12363         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
12364         here...
12365         * modules/fwritable (configure.ac): ... to here.
12366
12367 2011-05-07  Bruno Haible  <bruno@clisp.org>
12368
12369         futimens: Move AC_LIBOBJ invocations to module description.
12370         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
12371         here...
12372         * modules/futimens (configure.ac): ... to here.
12373
12374 2011-05-07  Bruno Haible  <bruno@clisp.org>
12375
12376         ftruncate: Move AC_LIBOBJ invocations to module description.
12377         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
12378         gl_PREREQ_FTRUNCATE invocations from here...
12379         * modules/ftruncate (configure.ac): ... to here.
12380
12381 2011-05-07  Bruno Haible  <bruno@clisp.org>
12382
12383         fsync: Move AC_LIBOBJ invocations to module description.
12384         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
12385         invocations from here...
12386         * modules/fsync (configure.ac): ... to here.
12387
12388 2011-05-07  Bruno Haible  <bruno@clisp.org>
12389
12390         fsusage: Move AC_LIBOBJ invocations to module description.
12391         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
12392         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
12393         * modules/fsusage (configure.ac): ... to here.
12394
12395 2011-05-07  Bruno Haible  <bruno@clisp.org>
12396
12397         freopen: Move AC_LIBOBJ invocations to module description.
12398         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
12399         invocations from here...
12400         * modules/freopen (configure.ac): ... to here.
12401
12402 2011-05-07  Bruno Haible  <bruno@clisp.org>
12403
12404         free: Move AC_LIBOBJ invocations to module description.
12405         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
12406         invocations from here...
12407         * modules/free (configure.ac): ... to here.
12408
12409 2011-05-07  Bruno Haible  <bruno@clisp.org>
12410
12411         freadable: Move AC_LIBOBJ invocations to module description.
12412         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
12413         here...
12414         * modules/freadable (configure.ac): ... to here.
12415
12416 2011-05-07  Bruno Haible  <bruno@clisp.org>
12417
12418         fpurge: Move AC_LIBOBJ invocations to module description.
12419         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
12420         invocations from here...
12421         * modules/fpurge (configure.ac): ... to here.
12422
12423 2011-05-07  Bruno Haible  <bruno@clisp.org>
12424
12425         fpending: Move AC_LIBOBJ invocations to module description.
12426         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
12427         gl_FUNC_FPENDING.
12428         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
12429         invocations from here...
12430         * modules/fpending (configure.ac): ... to here.
12431
12432 2011-05-07  Bruno Haible  <bruno@clisp.org>
12433
12434         fopen: Move AC_LIBOBJ invocations to module description.
12435         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
12436         invocations from here...
12437         * modules/fopen (configure.ac): ... to here.
12438
12439 2011-05-07  Bruno Haible  <bruno@clisp.org>
12440
12441         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
12442         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
12443         gl_FUNC_FNMATCH_POSIX.
12444         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
12445         invocations from here...
12446         * modules/fnmatch (configure.ac): ... to here.
12447         * modules/fnmatch-gnu (configure.ac): ... and here.
12448
12449 2011-05-07  Bruno Haible  <bruno@clisp.org>
12450
12451         flock: Move AC_LIBOBJ invocations to module description.
12452         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
12453         invocations from here...
12454         * modules/flock (configure.ac): ... to here.
12455
12456 2011-05-07  Bruno Haible  <bruno@clisp.org>
12457
12458         fileblocks: Move AC_LIBOBJ invocations to module description.
12459         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
12460         gl_PREREQ_FILEBLOCKS invocations from here...
12461         * modules/fileblocks (configure.ac): ... to here.
12462
12463 2011-05-06  Bruno Haible  <bruno@clisp.org>
12464
12465         fflush: Move AC_LIBOBJ invocations to module description.
12466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
12467         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
12468         invocations from here...
12469         * modules/fflush (configure.ac): ... to here.
12470
12471 2011-05-06  Bruno Haible  <bruno@clisp.org>
12472
12473         fdopendir: Move AC_LIBOBJ invocations to module description.
12474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
12475         here...
12476         * modules/fdopendir (configure.ac): ... to here.
12477         (Depends-on): Improve conditions.
12478
12479 2011-05-06  Bruno Haible  <bruno@clisp.org>
12480
12481         _Exit: Move AC_LIBOBJ invocations to module description.
12482         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
12483         invocations from here...
12484         * modules/_Exit (configure.ac): ... to here.
12485
12486 2011-05-21  Bruno Haible  <bruno@clisp.org>
12487
12488         euidaccess: Respect rules for use of AC_LIBOBJ.
12489         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
12491         from here...
12492         * modules/euidaccess (configure.ac): ... to here.
12493
12494 2011-05-06  Bruno Haible  <bruno@clisp.org>
12495
12496         error: Move AC_LIBOBJ invocations to module description.
12497         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
12498         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
12499         invocations from here...
12500         * modules/error (configure.ac): ... to here.
12501
12502 2011-05-06  Bruno Haible  <bruno@clisp.org>
12503
12504         duplocale: Move AC_LIBOBJ invocations to module description.
12505         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
12506         gl_PREREQ_DUPLOCALE invocations from here...
12507         * modules/duplocale (configure.ac): ... to here.
12508
12509 2011-05-05  Bruno Haible  <bruno@clisp.org>
12510
12511         dirfd: Move AC_LIBOBJ invocations to module description.
12512         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
12513         gl_FUNC_DIRFD.
12514         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
12515         here...
12516         * modules/dirfd (configure.ac): ... to here.
12517         (Depends-on): Fix condition.
12518
12519 2011-05-05  Bruno Haible  <bruno@clisp.org>
12520
12521         chown: Respect rules for use of AC_LIBOBJ.
12522         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
12523         * modules/chown (configure.ac): ... to here.
12524
12525 2011-05-05  Bruno Haible  <bruno@clisp.org>
12526
12527         chdir-long: Move AC_LIBOBJ invocations to module description.
12528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
12529         gl_PREREQ_CHDIR_LONG invocations from here...
12530         * modules/chdir-long (configure.ac): ... to here.
12531
12532 2011-05-05  Bruno Haible  <bruno@clisp.org>
12533
12534         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
12535         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
12536         from here...
12537         * modules/canonicalize-lgpl (configure.ac): ... to here.
12538
12539 2011-05-05  Bruno Haible  <bruno@clisp.org>
12540
12541         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
12542         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
12543         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
12544         REPLACE_CALLOC.
12545         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
12546         * modules/calloc-gnu (configure.ac): Likewise.
12547
12548 2011-05-05  Bruno Haible  <bruno@clisp.org>
12549
12550         btowc: Move AC_LIBOBJ invocations to module description.
12551         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
12552         invocations from here...
12553         * modules/btowc (configure.ac): ... to here.
12554
12555 2011-05-21  Bruno Haible  <bruno@clisp.org>
12556
12557         atexit: Move AC_LIBOBJ invocations to module description.
12558         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
12559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
12560         here...
12561         * modules/atexit (configure.ac): ... to here.
12562
12563 2011-05-05  Bruno Haible  <bruno@clisp.org>
12564
12565         atoll: Move AC_LIBOBJ invocations to module description.
12566         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
12567         invocations from here...
12568         * modules/atoll (configure.ac): ... to here.
12569
12570 2011-05-05  Bruno Haible  <bruno@clisp.org>
12571
12572         argz: Move AC_LIBOBJ invocations to module description.
12573         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
12574         * modules/argz (configure.ac): ... to here.
12575
12576 2011-05-05  Bruno Haible  <bruno@clisp.org>
12577
12578         alphasort: Move AC_LIBOBJ invocations to module description.
12579         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
12580         gl_PREREQ_ALPHASORT invocations from here...
12581         * modules/alphasort (configure.ac): ... to here.
12582
12583 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12584
12585         verify: new macro verify_expr; verify_true deprecated
12586         * NEWS: Mention this.
12587         * doc/verify.texi (Compile-time Assertions): Document this.
12588         * lib/verify.h (verify_true): Deprecate.
12589         (verify_expr): New macro.
12590         * tests/test-verify.c (function): Test verify_expr.
12591
12592 2011-06-14  Jim Meyering  <meyering@redhat.com>
12593
12594         init.sh: give more portable redirection-related advice in a comment
12595         * tests/init.sh (stderr_fileno_): Update the advice in comments.
12596         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
12597         for lots of discussion.  Stefano Lattarini suggested the solution
12598         of putting "9>&2" after the command.  Reported by Bruno Haible.
12599
12600 2011-06-13  Bruno Haible  <bruno@clisp.org>
12601
12602         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
12603         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
12604         'none'.
12605
12606 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12607
12608         ftoastr: use strtof only if HAVE_STRTOF
12609         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
12610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
12611         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
12612         * modules/ftoastr (configure.ac): Check for strtof.
12613
12614 2011-06-13  Bruno Haible  <bruno@clisp.org>
12615
12616         gnulib-tool: Addendum to 2011-06-08 commit.
12617         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
12618         and --witness-c-macro have been given, augment AM_CPPFLAGS.
12619
12620 2011-06-13  Bruno Haible  <bruno@clisp.org>
12621
12622         fseeko: Provide a non-inline replacement of fseek().
12623         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
12624         * modules/fseeko (Depends-on): Add fseek.
12625         * modules/fseek (License): Change to LGPLv2+.
12626
12627 2011-06-13  Bruno Haible  <bruno@clisp.org>
12628
12629         ftello: Provide a non-inline replacement of ftell().
12630         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
12631         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
12632         not have ftello() (such as on mingw).
12633         * modules/ftello (Depends-on): Add ftell.
12634         * modules/ftell (License): Change to LGPLv2+.
12635
12636 2011-05-07  Bruno Haible  <bruno@clisp.org>
12637
12638         ftell: Move AC_LIBOBJ invocations to module description.
12639         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
12640         * modules/ftell (configure.ac): ... to here.
12641
12642 2011-05-07  Bruno Haible  <bruno@clisp.org>
12643
12644         ftello: Respect rules for use of AC_LIBOBJ.
12645         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
12646         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
12647         here...
12648         * modules/ftello (configure.ac): ... to here.
12649
12650 2011-05-07  Bruno Haible  <bruno@clisp.org>
12651
12652         fseeko: Simplify.
12653         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
12654         (gl_FUNC_FSEEKO): Inline it here.
12655
12656 2011-05-07  Bruno Haible  <bruno@clisp.org>
12657
12658         fseek: Move AC_LIBOBJ invocations to module description.
12659         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
12660         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12661         * modules/fseek (configure.ac): ... to here.
12662
12663 2011-05-07  Bruno Haible  <bruno@clisp.org>
12664
12665         fseek: Respect rules for use of AC_LIBOBJ.
12666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
12667         here...
12668         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
12669
12670 2011-05-07  Bruno Haible  <bruno@clisp.org>
12671
12672         fseeko: Respect rules for use of AC_LIBOBJ.
12673         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
12674         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
12675         here...
12676         * modules/fseeko (configure.ac): ... to here.
12677
12678 2011-06-13  Bruno Haible  <bruno@clisp.org>
12679
12680         gnulib-tool: Allow comments in the 'Depends-on' section.
12681         * doc/gnulib.texi (Module description): Mention comment syntax in the
12682         Depends-on section.
12683         * gnulib-tool (func_get_dependencies): Filter out comment lines.
12684
12685 2011-06-13  Bruno Haible  <bruno@clisp.org>
12686
12687         file-set.h: guard __attibute__ use, now that it's not always defined
12688         * lib/file-set.h (record_file): Use __attribute__ only with compiler
12689         versions that support it.  This fixes a coreutils build failure with
12690         the vendor cc on HP-UX 11.31.
12691
12692 2011-06-12  Bruno Haible  <bruno@clisp.org>
12693
12694         acl: Add support for HP-UX >= 11.11 JFS ACLs.
12695         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
12696         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
12697         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
12698         (acl, aclsort): New declarations.
12699         (aclv_nontrivial): New declaration.
12700         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
12701         (file_has_acl): Read also the second kind of HP-UX ACLs.
12702         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
12703         kind of HP-UX ACLs if the first kind fails.
12704         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
12705         second kind of HP-UX ACLs.
12706         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
12707         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
12708         agree.
12709         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12710         hpuxjfs.
12711         Handle hpuxjfs.
12712         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12713         hpuxjfs.
12714         Handle hpuxjfs.
12715         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12716         (func_test_same_acls): Use both lsacl and getacl.
12717         Handle hpuxjfs.
12718         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12719         (func_test_same_acls): Use both lsacl and getacl.
12720         Handle hpuxjfs.
12721
12722 2011-06-12  Bruno Haible  <bruno@clisp.org>
12723
12724         acl: Complete the 2010-08-10 fix.
12725         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
12726         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
12727         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
12728         explicitly.
12729         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
12730         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
12731
12732 2011-06-12  Bruno Haible  <bruno@clisp.org>
12733
12734         spawn-pipe tests: Comments.
12735         * tests/test-spawn-pipe-child.c (main): Update comment.
12736         Reported by James Youngman <jay@gnu.org>.
12737
12738 2011-06-11  James Youngman  <jay@gnu.org>
12739
12740         New module 'stat-size'.
12741         * modules/stat-size: New module.  Provides macros for accessing
12742         file size information in instances of struct stat.  Depends on the
12743         fileblocks module because it calls st_blocks.
12744         * lib/stat-size.h: New file, adapted from coreutils' system.h.
12745         * doc/gnulib.texi: Include stat-size.texi.
12746         * doc/stat-size.texi: Documentation for this module.
12747         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
12748         * m4/fileblocks.m4: Mention that stat-size depends on the call to
12749         AC_STRUCT_ST_BLOCKS.
12750
12751 2011-06-09  Bruno Haible  <bruno@clisp.org>
12752
12753         thread: Support pthreads-win32.
12754         * lib/glthread/thread.h (gl_thread_self): Define differently on
12755         pthreads-win32.
12756         (gl_null_thread): New declaration.
12757         (gl_thread_self_pointer): New macro.
12758         * lib/glthread/thread.c (gl_null_thread): New constant.
12759         * tests/test-lock.c: Use gl_thread_self_pointer instead of
12760         gl_thread_self.
12761         * tests/test-tls.c: Likewise.
12762         Suggested by Paul Eggert. Reported by Eric Blake.
12763
12764 2011-06-09  Bruno Haible  <bruno@clisp.org>
12765
12766         thread: Fix confusion between NULL and 0.
12767         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
12768         Reported by Paul Eggert.
12769
12770 2011-06-09  Bruno Haible  <bruno@clisp.org>
12771
12772         spawn-pipe tests: Avoid test failure on HP-UX 11.
12773         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
12774         is closed.
12775
12776 2011-06-09  Bruno Haible  <bruno@clisp.org>
12777
12778         acl tests: Fix compilation error on HP-UX 11.
12779         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
12780
12781 2011-06-09  Bruno Haible  <bruno@clisp.org>
12782
12783         rmdir: Avoid test failure on HP-UX 10.20.
12784         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
12785         EEXIST.
12786
12787 2011-06-08  Eric Blake  <eblake@redhat.com>
12788
12789         perror: fix test on mingw
12790         * modules/perror-tests (Depends-on): Add dup2.
12791
12792         strerror_r-posix: fix on MacOS
12793         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
12794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
12795         logic bug.
12796         * lib/strerror_r.c (strerror_r): Fix the bug.
12797         * lib/strerror.c (strerror): Likewise.
12798         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12799         problem.
12800         * doc/posix-functions/strerror.texi (strerror): Likewise.
12801         * doc/posix-functions/perror.texi (perror): Likewise.
12802         * tests/test-strerror.c (main): Enhance test.
12803         * tests/test-strerror_r.c (main): Likewise.
12804
12805 2011-06-08  Bruno Haible  <bruno@clisp.org>
12806
12807         gnulib-tool: Better isolation between different gnulib-tool invocations.
12808         * gnulib-tool: New option --witness-c-macro.
12809         (witness_c_macro): New variable.
12810         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12811         AM_CPPFLAGS define it as a C macro.
12812         (func_emit_tests_Makefile_am): Likewise.
12813         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12814         read it from there.
12815         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12816         m4_define, not AC_DEFUN.
12817         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12818         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12819         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12820         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12821         s|...|...|, to substitute the values of the GNULIB_* module indicator
12822         variables.
12823         * modules/dirent (Makefile.am): Likewise.
12824         * modules/fcntl-h (Makefile.am): Likewise.
12825         * modules/iconv-h (Makefile.am): Likewise.
12826         * modules/langinfo (Makefile.am): Likewise.
12827         * modules/locale (Makefile.am): Likewise.
12828         * modules/math (Makefile.am): Likewise.
12829         * modules/netdb (Makefile.am): Likewise.
12830         * modules/poll-h (Makefile.am): Likewise.
12831         * modules/pty (Makefile.am): Likewise.
12832         * modules/search (Makefile.am): Likewise.
12833         * modules/signal (Makefile.am): Likewise.
12834         * modules/spawn (Makefile.am): Likewise.
12835         * modules/stdio (Makefile.am): Likewise.
12836         * modules/stdlib (Makefile.am): Likewise.
12837         * modules/string (Makefile.am): Likewise.
12838         * modules/sys_ioctl (Makefile.am): Likewise.
12839         * modules/sys_select (Makefile.am): Likewise.
12840         * modules/sys_socket (Makefile.am): Likewise.
12841         * modules/sys_stat (Makefile.am): Likewise.
12842         * modules/sys_times (Makefile.am): Likewise.
12843         * modules/sys_utsname (Makefile.am): Likewise.
12844         * modules/sys_wait (Makefile.am): Likewise.
12845         * modules/termios (Makefile.am): Likewise.
12846         * modules/time (Makefile.am): Likewise.
12847         * modules/unistd (Makefile.am): Likewise.
12848         * modules/wchar (Makefile.am): Likewise.
12849
12850 2011-06-08  Eric Blake  <eblake@redhat.com>
12851
12852         strerror: simplify replacement
12853         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12854         * modules/strerror (configure.ac): No prereqs needed here...
12855         * modules/strerror-override (configure.ac): ...but this needs it.
12856         (Files): Add file for needed prereq macro.
12857
12858 2011-06-08  Bruno Haible  <bruno@clisp.org>
12859
12860         strerror_r-posix: Tweaks.
12861         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12862         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12864         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12865         (gl_FUNC_STRERROR_R): ... to here.
12866         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12867
12868 2011-06-07  Eric Blake  <eblake@redhat.com>
12869
12870         perror: document fixed bugs
12871         * doc/posix-functions/perror.texi (perror): Document recent
12872         patches.
12873
12874 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12875
12876         stat-time: get_stat_birthtime failure is better-defined
12877         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12878         return a timestamp whose tv_sec and tv_nsec values are both -1.
12879         Previously, the spec said only that the tv_nsec value was negative.
12880         This upward-compatible change simplifies GNU tar a bit.
12881
12882 2011-06-07  Eric Blake  <eblake@redhat.com>
12883
12884         strerror_r-posix: work around cygwin 1.7.9
12885         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12886         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12887         bug without replacing strerror_r.
12888         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12889         strerror_r is buggy, but without requiring strerror_r compilation.
12890         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12891
12892         test-perror: relax test to ignore cygwin bug
12893         * tests/test-perror2.c (main): Relax test on requiring detection
12894         of stream errors, and use unbuffered stream.
12895         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12896         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12897         * doc/posix-functions/fputc.texi (fputc): Likewise.
12898         * doc/posix-functions/fputs.texi (fputs): Likewise.
12899         * doc/posix-functions/fputws.texi (fputws): Likewise.
12900         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12901         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12902         * doc/posix-functions/getopt.texi (getopt): Likewise.
12903         * doc/posix-functions/perror.texi (perror): Likewise.
12904         * doc/posix-functions/printf.texi (printf): Likewise.
12905         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12906         * doc/posix-functions/psignal.texi (psignal): Likewise.
12907         * doc/posix-functions/putc.texi (putc): Likewise.
12908         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12909         Likewise.
12910         * doc/posix-functions/putchar.texi (putchar): Likewise.
12911         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12912         Likewise.
12913         * doc/posix-functions/puts.texi (puts): Likewise.
12914         * doc/posix-functions/putwc.texi (putwc): Likewise.
12915         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12916         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12917         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12918         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12919         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12920         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12921         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12922         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12923
12924 2011-05-22  Bruno Haible  <bruno@clisp.org>
12925
12926         strerror: Move AC_LIBOBJ invocations to module description.
12927         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12928         gl_PREREQ_STRERROR invocations from here...
12929         * modules/strerror (configure.ac): ... to here.
12930
12931 2011-05-21  Bruno Haible  <bruno@clisp.org>
12932
12933         perror: Use common idiom.
12934         * modules/perror (configure.ac): Reorder statements.
12935
12936 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12937
12938         tests: fix usage message in 'mktempd_'
12939         * tests/init.sh (mktempd_): In the usage message, use literal
12940         'mktempd_', not '$ME' (which is even undefined), as the name of
12941         the subroutine.
12942
12943 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12944
12945         tests init: new function 'fatal_', for hard errors
12946         Before this patch, the only way offered by tests/init.sh to
12947         properly signal a hard error was the `framework_failure_'
12948         function.  But the error message issued by that function,
12949         as its name would suggest, refers to a set-up failure in the
12950         testsuite, while hard errors can obviously also be due to
12951         other reasons.  The best way to fix this inconsistency is to
12952         introduce a new function with a more general error message.
12953         * tests/init.sh (fatal_): New function.
12954
12955 2011-06-06  Eric Blake  <eblake@redhat.com>
12956
12957         canonicalize-lgpl: use common idiom
12958         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12959         over newer POSIX -Rf.
12960         Reported by Bruno Haible.
12961
12962         canonicalize-lgpl: work around AIX realpath bug
12963         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12964         * doc/posix-functions/realpath.texi (realpath): Document it.
12965         Reported by Bruno Haible.
12966
12967         strerror: work around FreeBSD bug
12968         * lib/strerror.c (strerror): Special case 0.
12969         Reported by Bruno Haible.
12970
12971         strerror-override: avoid bloating errno module
12972         * modules/errno (Files, configure.ac): Move replacement strings...
12973         * modules/strerror-override: ...to new module.
12974         * modules/strerror (Depends-on): Add strerror-override.
12975         * modules/strerror_r-posix (Depends-on): Likewise.
12976         * MODULES.html.sh: Document new module.
12977         Reported by Bruno Haible.
12978
12979 2011-06-06  Bruno Haible  <bruno@clisp.org>
12980
12981         spawn-pipe tests: Rename program.
12982         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12983         * tests/test-spawn-pipe-child.c: Update comment.
12984         * tests/test-spawn-pipe.sh: Update.
12985         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12986
12987         spawn-pipe tests: Link the child program only against libc.
12988         * tests/test-spawn-pipe-child.c: New file, extracted from
12989         tests/test-spawn-pipe.c.
12990         (main): Expect only one argument.
12991         (is_open): New function, copied from tests/test-pipe.c.
12992         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12993         (child_main): Remove function.
12994         (test_pipe): Pass only one argument to the child program.
12995         (main): Remove child process code. Expect the child program's name as
12996         first argument.
12997         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12998         argument.
12999         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
13000         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
13001         test-spawn-pipe-child against no libraries.
13002
13003 2011-06-06  Bruno Haible  <bruno@clisp.org>
13004
13005         careadlinkat: Avoid mismatch between ssize_t and int.
13006         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
13007         * lib/careadlinkat.c (careadlinkatcwd): Define always.
13008
13009 2011-06-06  Jim Meyering  <meyering@redhat.com>
13010
13011         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
13012         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
13013         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
13014
13015 2011-06-05  Bruno Haible  <bruno@clisp.org>
13016
13017         ansi-c++-opt: Interoperability with libtool.
13018         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
13019         set the variable to "no", not to ":".
13020         * NEWS: Mention the change.
13021
13022 2011-06-05  Bruno Haible  <bruno@clisp.org>
13023
13024         acl: Fix test failure on AIX 7.
13025         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
13026         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
13027
13028 2011-06-05  Bruno Haible  <bruno@clisp.org>
13029
13030         pipe-filter-ii: Fix test failure on AIX and IRIX.
13031         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
13032         with EAGAIN, retry with a smaller buffer size.
13033
13034 2011-06-05  Bruno Haible  <bruno@clisp.org>
13035
13036         localename: Fix link dependencies.
13037         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
13038         * modules/localename-tests (Makefile.am): Link test-localename with
13039         $(LIBTHREAD).
13040
13041 2011-06-05  Bruno Haible  <bruno@clisp.org>
13042
13043         error: Avoid gcc warning.
13044         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
13045
13046 2011-06-05  Bruno Haible  <bruno@clisp.org>
13047
13048         unsetenv: Avoid gcc warning.
13049         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
13050
13051 2011-06-05  Bruno Haible  <bruno@clisp.org>
13052
13053         setenv: Avoid gcc warning.
13054         * lib/setenv.c (setenv): Provide declaration if system lacks it.
13055
13056 2011-06-05  Bruno Haible  <bruno@clisp.org>
13057
13058         sys_select: Ensure memset is declared also on AIX 7.
13059         * lib/sys_select.in.h: Include <string.h> also on AIX.
13060         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
13061         self-contained also on AIX 7.1.
13062
13063 2011-06-04  Jim Meyering  <meyering@redhat.com>
13064
13065         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
13066         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
13067         function name, "error".
13068         (_gl_translatable_diag_func_re): New configurable variable.
13069
13070 2011-06-04  Bruno Haible  <bruno@clisp.org>
13071
13072         getopt: Avoid gcc warning.
13073         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
13074
13075 2011-06-04  Bruno Haible  <bruno@clisp.org>
13076
13077         strerror_r: Fix comments.
13078         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
13079         commit.
13080
13081 2011-06-04  Bruno Haible  <bruno@clisp.org>
13082
13083         perror: Fix compilation error.
13084         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
13085         Undefine fprintf, not sprintf.
13086         * modules/perror (Depends-on): Remove intprops, verify.
13087
13088 2011-06-04  Bruno Haible  <bruno@clisp.org>
13089
13090         setlocale: Enable replacement on Cygwin 1.5.
13091         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
13092         Cygwin 1.5.x.
13093         * doc/posix-functions/setlocale.texi: Mention that the problem with the
13094         LC_CTYPE category also exists on Cygwin 1.5.x.
13095
13096 2011-06-04  Bruno Haible  <bruno@clisp.org>
13097
13098         strerror-override: Don't disable symbol renamings.
13099         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
13100         * lib/strerror-override.c: Include config.h.
13101         (strerror_override): Don't undefine.
13102
13103 2011-06-03  Bruno Haible  <bruno@clisp.org>
13104
13105         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
13106         * lib/localename.h: Update copyright header.
13107         * lib/localename.c: Likewise.
13108         * lib/relocatable.h: Likewise.
13109         * lib/relocatable.c: Likewise.
13110
13111 2011-06-02  Bruno Haible  <bruno@clisp.org>
13112
13113         doc: Fix a module name.
13114         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
13115
13116 2011-06-02  Bruno Haible  <bruno@clisp.org>
13117
13118         pipe2: Remove dependency on 'nonblocking' module.
13119         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
13120         O_NONBLOCK is defined by gnulib.
13121         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
13122         is zero.
13123         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
13124         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
13125         defined by gnulib.
13126         (get_nonblocking_flag): New function.
13127         (main): Test O_NONBLOCK flag only if it is nonzero.
13128         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
13129
13130 2011-06-03  Jim Meyering  <meyering@redhat.com>
13131
13132         maint: three new prohibit-header-without-use rules
13133         Prohibit use of cloexec.h, posixver.h, same.h without use.
13134         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
13135         (sc_prohibit_posixver_without_use): Likewise.
13136         (sc_prohibit_same_without_use): Likewise.
13137
13138 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13139
13140         allocator: 'die' routine is now given requested size
13141         * lib/allocator.h (struct allocator.die): New size arg.
13142         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
13143         If the actual problem is an ssize_t limitation, not a size_t or
13144         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
13145
13146 2011-06-01  Eric Blake  <eblake@redhat.com>
13147
13148         strerror: drop strerror_r dependency
13149         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
13150         * lib/strerror-override.c (strerror_override): ...to new file.
13151         * lib/strerror-override.h: Add prototype.
13152         * lib/strerror-impl.h: Delete.
13153         * lib/strerror.c (strerror): New implementation.
13154         * modules/errno (Files): Add new files.
13155         (configure.ac): Compile new file as appropriate.
13156         * modules/strerror (Files): Drop unused file.
13157         (Depends-on): Drop strerror_r-posix.
13158         * MODULES.html.sh: Document strerror_r-posix.
13159         Requested by Sam Steingold.
13160
13161         perror: call strerror_r directly
13162         * modules/perror (Files): Drop strerror-impl.h.
13163         * lib/perror.c (perror): Use our own stack buffer, rather than
13164         calling a wrapper that uses static storage.
13165         * doc/posix-functions/perror.texi (perror): Document a limitation
13166         of our replacement.
13167
13168         strerror_r: fix includes for FreeBSD
13169         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
13170         since we use abort on some platforms.
13171         Reported by Matthias Bolte.
13172
13173 2011-05-31  Bruno Haible  <bruno@clisp.org>
13174
13175         Fix link errors in tests: openat-die uses gettext-h.
13176         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
13177         against $(LIBINTL).
13178         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
13179         against $(LIBINTL).
13180         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
13181         $(LIBINTL).
13182         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
13183         against $(LIBINTL).
13184         * modules/linkat-tests (Makefile.am): Link test-linkat against
13185         $(LIBINTL).
13186         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
13187         $(LIBINTL).
13188         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
13189         against $(LIBINTL).
13190         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
13191         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
13192         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
13193         $(LIBINTL).
13194         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
13195         $(LIBINTL).
13196         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
13197         $(LIBINTL).
13198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13199
13200 2011-05-31  Bruno Haible  <bruno@clisp.org>
13201
13202         Fix link errors in tests: wait-process uses gettext-h.
13203         * modules/nonblocking-pipe-tests (Makefile.am): Set
13204         test_nonblocking_pipe_main_LDADD.
13205         * modules/nonblocking-socket-tests (Makefile.am): Link
13206         test-nonblocking-socket-main against $(LIBINTL).
13207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13208
13209 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13210
13211         assert-h: work around 'verify' incompatibility
13212         * lib/verify.h: Use @...@ directives, not ifdef.
13213         * modules/assert-h (assert.h): Implement the directives.
13214         (assert.h): Substitute the symbol-prefix more consistently.
13215
13216 2011-05-29  Jim Meyering  <meyering@redhat.com>
13217
13218         trim: remove three superfluous assignments
13219         * lib/trim.c (trim2): Remove three superfluous assignments
13220         and correct brace positioning.
13221
13222 2011-05-29  Bruno Haible  <bruno@clisp.org>
13223
13224         wctype-h: Avoid namespace pollution on Solaris 2.6.
13225         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
13226         identifiers.
13227         * doc/posix-headers/wctype.texi: Mention the problem.
13228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13229
13230 2011-05-28  Jim Meyering  <meyering@redhat.com>
13231
13232         parse-datetime.y: accommodate -Wstrict-overflow
13233         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
13234         placate -Wstrict-overflow.
13235
13236         trim: avoid a warning from -O2 -Wstrict-overflow
13237         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
13238
13239 2011-05-29  Bruno Haible  <bruno@clisp.org>
13240
13241         gnulib-tool: Fix bug in yesterday's commit.
13242         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
13243         twice.
13244
13245 2011-05-29  Bruno Haible  <bruno@clisp.org>
13246
13247         Allow multiple gnulib generated include files to be combined.
13248         * gnulib-tool (func_compute_include_guard_prefix): New function.
13249         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
13250         ${gl_include_guard_prefix} references.
13251         (func_import, func_create_testdir): Invoke
13252         func_compute_include_guard_prefix.
13253         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
13254         * lib/ctype.in.h: Likewise.
13255         * lib/dirent.in.h: Likewise.
13256         * lib/errno.in.h: Likewise.
13257         * lib/fcntl.in.h: Likewise.
13258         * lib/float.in.h: Likewise.
13259         * lib/getopt.in.h: Likewise.
13260         * lib/iconv.in.h: Likewise.
13261         * lib/langinfo.in.h: Likewise.
13262         * lib/locale.in.h: Likewise.
13263         * lib/math.in.h: Likewise.
13264         * lib/netdb.in.h: Likewise.
13265         * lib/netinet_in.in.h: Likewise.
13266         * lib/poll.in.h: Likewise.
13267         * lib/pthread.in.h: Likewise.
13268         * lib/pty.in.h: Likewise.
13269         * lib/sched.in.h: Likewise.
13270         * lib/se-selinux.in.h: Likewise.
13271         * lib/search.in.h: Likewise.
13272         * lib/signal.in.h: Likewise.
13273         * lib/spawn.in.h: Likewise.
13274         * lib/stdarg.in.h: Likewise.
13275         * lib/stddef.in.h: Likewise.
13276         * lib/stdint.in.h: Likewise.
13277         * lib/stdio.in.h: Likewise.
13278         * lib/stdlib.in.h: Likewise.
13279         * lib/string.in.h: Likewise.
13280         * lib/strings.in.h: Likewise.
13281         * lib/sys_file.in.h: Likewise.
13282         * lib/sys_ioctl.in.h: Likewise.
13283         * lib/sys_select.in.h: Likewise.
13284         * lib/sys_socket.in.h: Likewise.
13285         * lib/sys_stat.in.h: Likewise.
13286         * lib/sys_time.in.h: Likewise.
13287         * lib/sys_times.in.h: Likewise.
13288         * lib/sys_uio.in.h: Likewise.
13289         * lib/sys_utsname.in.h: Likewise.
13290         * lib/sys_wait.in.h: Likewise.
13291         * lib/sysexits.in.h: Likewise.
13292         * lib/termios.in.h: Likewise.
13293         * lib/time.in.h: Likewise.
13294         * lib/unistd.in.h: Likewise.
13295         * lib/wchar.in.h: Likewise.
13296         * lib/wctype.in.h: Likewise.
13297         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
13298         * modules/ctype (Makefile.am): Likewise.
13299         * modules/dirent (Makefile.am): Likewise.
13300         * modules/errno (Makefile.am): Likewise.
13301         * modules/fcntl-h (Makefile.am): Likewise.
13302         * modules/float (Makefile.am): Likewise.
13303         * modules/getopt-posix (Makefile.am): Likewise.
13304         * modules/iconv-h (Makefile.am): Likewise.
13305         * modules/langinfo (Makefile.am): Likewise.
13306         * modules/locale (Makefile.am): Likewise.
13307         * modules/math (Makefile.am): Likewise.
13308         * modules/netdb (Makefile.am): Likewise.
13309         * modules/netinet_in (Makefile.am): Likewise.
13310         * modules/poll-h (Makefile.am): Likewise.
13311         * modules/pthread (Makefile.am): Likewise.
13312         * modules/pty (Makefile.am): Likewise.
13313         * modules/sched (Makefile.am): Likewise.
13314         * modules/search (Makefile.am): Likewise.
13315         * modules/selinux-h (Makefile.am): Likewise.
13316         * modules/signal (Makefile.am): Likewise.
13317         * modules/spawn (Makefile.am): Likewise.
13318         * modules/stdarg (Makefile.am): Likewise.
13319         * modules/stddef (Makefile.am): Likewise.
13320         * modules/stdint (Makefile.am): Likewise.
13321         * modules/stdio (Makefile.am): Likewise.
13322         * modules/stdlib (Makefile.am): Likewise.
13323         * modules/string (Makefile.am): Likewise.
13324         * modules/strings (Makefile.am): Likewise.
13325         * modules/sys_file (Makefile.am): Likewise.
13326         * modules/sys_ioctl (Makefile.am): Likewise.
13327         * modules/sys_select (Makefile.am): Likewise.
13328         * modules/sys_socket (Makefile.am): Likewise.
13329         * modules/sys_stat (Makefile.am): Likewise.
13330         * modules/sys_time (Makefile.am): Likewise.
13331         * modules/sys_times (Makefile.am): Likewise.
13332         * modules/sys_uio (Makefile.am): Likewise.
13333         * modules/sys_utsname (Makefile.am): Likewise.
13334         * modules/sys_wait (Makefile.am): Likewise.
13335         * modules/sysexits (Makefile.am): Likewise.
13336         * modules/termios (Makefile.am): Likewise.
13337         * modules/time (Makefile.am): Likewise.
13338         * modules/unistd (Makefile.am): Likewise.
13339         * modules/wchar (Makefile.am): Likewise.
13340         * modules/wctype-h (Makefile.am): Likewise.
13341         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
13342
13343 2011-05-29  Bruno Haible  <bruno@clisp.org>
13344
13345         assert-h: Allow multiple gnulib generated replacements to coexist.
13346         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
13347
13348 2011-05-29  Bruno Haible  <bruno@clisp.org>
13349
13350         argp: Allow coexistence with strerror_r-posix module.
13351         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
13352         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
13353         by gnulib's <string.h> replacement), assume it has the POSIX signature,
13354         not the glibc signature.
13355
13356 2011-05-28  Bruno Haible  <bruno@clisp.org>
13357
13358         gnulib-tool: Alternative structure of testdirs, similar to --import.
13359         * gnulib-tool: New option --single-configure.
13360         (func_usage): Document it.
13361         (single_configure): New variable.
13362         (func_modules_transitive_closure_separately,
13363         func_modules_transitive_closure_separately,
13364         func_determine_use_libtests, func_modules_add_dummy_separately,
13365         func_modules_to_filelist_separately): New functions, extracted from
13366         func_import.
13367         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
13368         (func_import): Use the new functions.
13369         (func_create_testdir): Set final_modules. Handle $single_configure =
13370         true case.
13371
13372 2011-05-28  Bruno Haible  <bruno@clisp.org>
13373
13374         getloadavg: Remove an unreliable safety check.
13375         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
13376         getloadavg.c is in place.
13377         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
13378         Reported by Sam Steingold <sds@gnu.org>.
13379
13380 2011-05-28  Bruno Haible  <bruno@clisp.org>
13381
13382         doc: Cleanup yet another file produced by texinfo.tex.
13383         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
13384
13385 2011-05-28  Bruno Haible  <bruno@clisp.org>
13386
13387         Finish the conditional dependencies mechanism.
13388         * gnulib-tool: New option --no-conditional-dependencies.
13389         (func_usage): Document it. Don't mark --conditional-dependencies as
13390         experimental.
13391         (cond_dependencies): The possible values can now be true, false, empty.
13392         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
13393         (func_import): Store setting in gnulib-cache.m4 and read it from there.
13394         * doc/gnulib-tool.texi (Conditional dependencies): New section.
13395
13396 2011-05-28  Bruno Haible  <bruno@clisp.org>
13397
13398         doc: Use a recent texinfo.tex.
13399         * doc/Makefile (tex_opts): New variable.
13400         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
13401
13402 2011-05-28  Jim Meyering  <meyering@redhat.com>
13403
13404         intprops.h: adjust comment to match code change
13405         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
13406         only once, it *may* have side effects.  Also fix an unrelated typo.
13407         (_GL_INT_SIGNED): Likewise.
13408
13409 2011-05-26  Simon Josefsson  <simon@josefsson.org>
13410
13411         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
13412
13413 2011-05-26  Bruno Haible  <bruno@clisp.org>
13414
13415         mbsrchr: Avoid collision with system function on Interix.
13416         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
13417         Reported by Markus Duft <mduft@gentoo.org>.
13418
13419 2011-05-15  James Youngman  <jay@gnu.org>
13420
13421         getopt: for ambiguous options, enumerate the possibilities.
13422         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
13423         the ambiguous options when an ambiguous prefix is given. This was
13424         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
13425         glibc change was
13426         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
13427
13428 2011-05-25  Eric Blake  <eblake@redhat.com>
13429
13430         getcwd: work around mingw bug
13431         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
13432         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13433         Reported by Matthias Bolte.
13434
13435 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13436
13437         test-intprops: disable -Wtype-limits diagnostics
13438         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
13439         diagnostics.  Otherwise, the integer overflow macros generate many
13440         diagnostics.  Reported by Jim Meyering in
13441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13442
13443         intprops: shorten, to pacify gcc -Woverlength-strings
13444         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
13445         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
13446         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
13447         likely to run afoul of C compiler limits for string constant lengths.
13448         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13449
13450 2011-05-24  Eric Blake  <eblake@redhat.com>
13451
13452         docs: document recently fixed glibc printf bug
13453         * doc/posix-functions/fprintf.texi (fprintf): Document it.
13454         * doc/posix-functions/printf.texi (printf): Likewise.
13455         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13456         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13457
13458         closein-tests: convert to init.sh
13459         * modules/closein-tests (Files): Add init.sh
13460         * tests/test-closein.sh Use it.
13461
13462         yesno-tests: convert to init.sh
13463         * modules/yesno-tests (Files): Add init.sh.
13464         * tests/test-yesno.sh: Use it.
13465
13466         atexit-tests: ensure reliable exit status
13467         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
13468         Reported by Bruno Haible.
13469
13470 2011-05-24  Bruno Haible  <bruno@clisp.org>
13471
13472         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
13473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
13474         gl_PREREQ_STRERROR_R invocations from here...
13475         * modules/strerror_r-posix (configure.ac): ... to here.
13476
13477 2011-05-24  Eric Blake  <eblake@redhat.com>
13478
13479         strerror_r: fix missing header
13480         * lib/strerror_r.c: Avoid compiler warning about snprintf.
13481
13482         strerror_r: fix AIX test failures
13483         * lib/strerror_r.c (strerror_r): Convert silent truncation to
13484         ERANGE failure.
13485
13486         strerror_r: fix Solaris test failures
13487         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
13488         failures.
13489         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13490
13491         strerror_r: enforce POSIX recommendations
13492         * lib/strerror_r.c (safe_copy): New helper method.
13493         (strerror_r): Guarantee a non-empty string.
13494         * tests/test-strerror_r.c (main): Enhance tests to incorporate
13495         recent POSIX rulings and to match our strerror guarantees.
13496         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13497
13498 2011-05-24  Jim Meyering  <meyering@redhat.com>
13499
13500         test-perror2.c: avoid warning about unused variable
13501         * tests/test-perror2.c (main): Remove declaration of unused "fp".
13502
13503 2011-05-24  Eric Blake  <eblake@redhat.com>
13504
13505         perror: avoid spurious test failure on HP-UX
13506         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
13507
13508         tests: fix logic bug in init.sh
13509         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
13510         shell.
13511
13512 2011-05-24  Jim Meyering  <meyering@redhat.com>
13513
13514         utimensat: do not reference an out-of-scope buffer
13515         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
13516         declared in an inner scope, yet "times" would be dereferenced outside
13517         the scope in which "ts" was valid.
13518         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
13519         of ts[2] "out/up", so that the use of aliased "times" (via
13520         "times = ts;") does not end up referencing an out-of-scope "ts"
13521
13522         opendir-safer.c: don't clobber errno; don't close negative FD
13523         * lib/opendir-safer.c (opendir_safer):
13524         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
13525         file descriptor, and more importantly, don't clobber the
13526         offending errno value with EINVAL.  Before, upon failure
13527         of dup_safer, we would pass the negative file descriptor to
13528         fdopendir, which would clobber errno.
13529
13530 2011-05-23  Bruno Haible  <bruno@clisp.org>
13531
13532         idcache: Fix module description.
13533         * modules/idcache (Include): Set to "idcache.h".
13534
13535 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13536
13537         gnulib-tool: fix portability problem with MacOS sed
13538         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
13539         before the "}".  Problem reported by Leo in
13540         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
13541         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13542         sed_extract_condition1, sed_extract_condition2.
13543
13544 2011-05-23  Bruno Haible  <bruno@clisp.org>
13545
13546         hash: Simplify autoconf macro.
13547         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13548
13549 2011-05-23  Bruno Haible  <bruno@clisp.org>
13550
13551         getugroups: Fix module description.
13552         * modules/getugroups (Include): Set to "getugroups.h".
13553
13554 2011-05-23  Bruno Haible  <bruno@clisp.org>
13555
13556         linkat: Simplify autoconf macro.
13557         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
13558
13559 2011-05-23  Bruno Haible  <bruno@clisp.org>
13560             Eric Blake  <eblake@redhat.com>
13561
13562         linkat, renameat: Update dependencies.
13563         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
13564         * modules/linkat (Depends-on): Likewise. Remove also readlink,
13565         symlinkat.
13566
13567 2011-05-23  Jim Meyering  <meyering@redhat.com>
13568
13569         maint.mk: more tight_scope improvements
13570         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13571         (_gl_TS_headers): Define only in if-0'd block.
13572         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
13573         sometimes we must *not* use it.  Adjust uses accordingly.
13574         (sc_tight_scope): Use much simpler grep-based test to determine
13575         whether we skip this rule.
13576
13577         maint.mk: generalize/improve the tight-scope rule
13578         * top/maint.mk: Emit a warning when the test is skipped.
13579         (_gl_TS_dir): Add $(srcdir)/ prefix.
13580         (_gl_TS_function_match): Simplify, rather than trying
13581         to enumerate common types.  Otherwise, it would fail to match an
13582         "extern unsigned char const *" declaration in idutils.
13583         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
13584         a way to support use of that type of macro.
13585         (_gl_TS_var_match): Simplify regexp.
13586         (_gl_TS_obj_files): New configurable variable.
13587         (_gl_TS_headers): Likewise.
13588
13589 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13590
13591         verify: fix bug when gnulib <assert.h> is also included
13592         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
13593         is defined, not if _GL_STATIC_ASSERT_H is not defined.
13594         Perhaps there's a better way, but this fixes the immediate problem.
13595         Problem reported by Bruno Haible in
13596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
13597
13598 2011-05-22  Bruno Haible  <bruno@clisp.org>
13599
13600         xgetcwd: Simplify autoconf macro.
13601         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
13602
13603 2011-05-22  Bruno Haible  <bruno@clisp.org>
13604
13605         New module 'mktime-internal'.
13606         * modules/mktime-internal: New file.
13607         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
13608         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
13609         mktime_internal as a C macro if libc has __mktime_internal.
13610         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
13611         conditions.
13612         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
13613
13614 2011-05-22  Bruno Haible  <bruno@clisp.org>
13615
13616         timegm: Correct mktime replacement statements.
13617         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
13618         defining mktime as a C macro. This completes a 2009-07-28 commit.
13619
13620 2011-05-22  Bruno Haible  <bruno@clisp.org>
13621
13622         timegm: Simplify autoconf macro.
13623         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
13624
13625 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13626
13627         clock-time: change to LGPLv2+.
13628         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
13629         BSD-like but we have no mark for that; this is good enough for now.
13630
13631 2011-05-21  Bruno Haible  <bruno@clisp.org>
13632
13633         strerror_r: Fix comments.
13634         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
13635
13636 2011-05-21  Bruno Haible  <bruno@clisp.org>
13637
13638         relocatable-prog-wrapper: Fix possible link error.
13639         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
13640         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
13641         (gl_FUNC_SETENV): ... to here.
13642         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
13643         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
13644
13645 2011-05-21  Bruno Haible  <bruno@clisp.org>
13646
13647         relocatable-prog-wrapper: Assume strerror() exists.
13648         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
13649         m4/strerror.m4.
13650         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
13651         * lib/relocwrapper.c: Remove mention of strerror module.
13652         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
13653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
13654         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
13655         C macro.
13656
13657 2011-05-21  Bruno Haible  <bruno@clisp.org>
13658
13659         select: Simplify replacement idiom.
13660         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
13661         Win32 platforms.
13662         * lib/sys_select.in.h (select): Simplify accordingly.
13663         * modules/select (Depends-on): Likewise.
13664
13665 2011-05-21  Bruno Haible  <bruno@clisp.org>
13666
13667         mkdir-p: Simplify autoconf macro.
13668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
13669         gl_FUNC_LCHOWN.
13670
13671 2011-05-21  Eric Blake  <eblake@redhat.com>
13672
13673         strerror_r: avoid clobbering strerror on cygwin
13674         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
13675         fall back instead to sys_errlist.
13676         * modules/strerror (configure.ac): Add witness.
13677         * tests/test-strerror_r.c (main): Enhance test.
13678         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13679         * tests/test-perror2.c (main): Free memory before exit.
13680
13681 2011-05-21  Bruno Haible  <bruno@clisp.org>
13682
13683         mkdtemp: Use gnulib naming conventions.
13684         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
13685         * modules/mkdtemp (configure.ac): Update.
13686
13687 2011-05-20  Eric Blake  <eblake@redhat.com>
13688
13689         strerror_r: avoid corrupting errno on Solaris
13690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
13691         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13692
13693         strerror_r: avoid compiler warning
13694         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
13695
13696         strerror_r: simplify AIX code
13697         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
13698
13699         test-perror: avoid spurious failure on FreeBSD
13700         * modules/perror-tests (Depends-on): Add strerror, now that
13701         strerror_r no longer pulls it in.
13702
13703 2011-05-20  Bruno Haible  <bruno@clisp.org>
13704
13705         strerror_r-posix: Remove unused dependencies.
13706         * modules/strerror_r-posix (Depends-on): Remove strerror.
13707         Reported by Eric Blake.
13708
13709 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13710
13711         intprops: remove assumption about A|B representation
13712         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
13713         is a valid integer if both A and B are.  Although this is true for
13714         all known practical hosts, the C standard doesn't guarantee it,
13715         and the code need not assume it.  Also, this change may work around
13716         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
13717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
13718
13719 2011-05-20  Eric Blake  <eblake@redhat.com>
13720
13721         perror: work around FreeBSD bug
13722         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
13723         is broken.  Move AC_LIBOBJ...
13724         * modules/perror (configure.ac): Here.
13725         * doc/posix-functions/perror.texi (perror): Document this.
13726         * tests/test-perror2.c (main): Enhance test.
13727
13728         test-perror: check for strerror interactions
13729         * tests/macros.h (STREQ): Add macro.
13730         * modules/perror-tests (Files): Add second test.
13731         * tests/test-perror2.c (main): New file.
13732         * doc/posix-functions/perror.texi (perror): Document glibc bug.
13733
13734         test-perror: rewrite to use init script
13735         * modules/perror-tests (Files): Add init.sh.
13736         * tests/test-perror.sh: Use temporary directory.
13737
13738 2011-05-20  Jim Meyering  <meyering@redhat.com>
13739
13740         maint: replace misused "a" with "an"
13741         * doc/intprops.texi: "a integer"
13742         * doc/regex.texi: "a explanation"
13743         * lib/alignof.h: "a object"
13744         * lib/argmatch.h: "a explanation"
13745         * lib/argp-help.c: "a option" and "a OPTION_DOC"
13746         * lib/stdint.in.h: "a integer"
13747         * lib/userspec.c: "a owner"
13748         * doc/gnulib.texi: Fix "a idea", and reword.
13749
13750 2011-05-19  Jim Meyering  <meyering@redhat.com>
13751
13752         maint: correct misuse of "a" and "an"
13753         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
13754         * lib/argp-help.c: "an docum...": s/an/a/
13755         * lib/argp-parse.c: "An vector": s/An/A/
13756         * lib/execute.c: "an native": s/an/a/
13757         * lib/spawn-pipe.c: Likewise.
13758         * lib/gc.h: "an Gc_rc": s/an/a/
13759         * lib/unigbrk.in.h: "an grapheme": s/an/a/
13760         * lib/fts.c: "an stat.st_dev": s/an/a/
13761
13762 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13763
13764         intprops-tests: work around HP-UX 11.23 cc bug with constants
13765         * tests/test-intprops.c (VERIFY): New macro.
13766         (main): Use it, instead of verify, to work around the compiler bug; see
13767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13768
13769         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
13770         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
13771         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
13772         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
13773         (_GL_REMAINDER_OVERFLOW): Use it.
13774
13775         intprops-tests: revert unsigned part of previous change
13776         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
13777         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
13778         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
13779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
13780
13781 2011-05-19  Bruno Haible  <bruno@clisp.org>
13782
13783         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
13784         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
13785         strerror_r() returned without filling the buffer.
13786         Reported by Eric Blake.
13787
13788 2011-05-19  Eric Blake  <eblake@redhat.com>
13789
13790         strerror_r: guarantee unchanged errno
13791         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
13792         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
13793         failure.
13794         * tests/test-strerror_r.c (main): Enhance test.
13795
13796 2011-05-19  Bruno Haible  <bruno@clisp.org>
13797
13798         strerror_r: Reorder #if blocks.
13799         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
13800         for consistency with the previous commit.
13801
13802 2011-05-19  Bruno Haible  <bruno@clisp.org>
13803
13804         perror: Avoid clobbering the strerror buffer when possible.
13805         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13806         * lib/strerror.c: Include it.
13807         * modules/strerror (Files): Add lib/strerror-impl.h.
13808         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13809         (my_strerror): New function, defined through lib/strerror-impl.h.
13810         (perror): Use it instead of strerror.
13811         * modules/perror (Files): Add lib/strerror-impl.h.
13812         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13813
13814 2011-05-19  Eric Blake  <eblake@redhat.com>
13815
13816         strerror_r: fix on newer cygwin
13817         * lib/strerror_r.c (strerror_r): Cygwin now has
13818         __xpg_strerror_r, use it.
13819
13820 2011-05-19  Bruno Haible  <bruno@clisp.org>
13821
13822         strerror_r: Avoid clobbering the strerror buffer when possible.
13823         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13824         (sys_nerr, sys_errlist): New declarations.
13825         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13826         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13827         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13828
13829 2011-05-19  Bruno Haible  <bruno@clisp.org>
13830
13831         strerror_r: Fix test failure on mingw.
13832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13833         EXTEND_STRERROR_R.
13834         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13835         macros from errno.in.h instead.
13836
13837 2011-05-19  Eric Blake  <eblake@redhat.com>
13838
13839         strerror: relax test for Solaris
13840         * tests/test-strerror.c (main): Permit Solaris behavior.
13841         * tests/test-strerror_r.c (main): Likewise.
13842
13843         strerror: enforce POSIX ruling on strerror(0)
13844         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13846         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13847         * doc/posix-functions/strerror.texi (strerror): Document it.
13848         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13849         * tests/test-strerror.c (main): Strengthen test.
13850         * tests/test-strerror_r.c (main): Likewise.
13851
13852 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         intprop-tests: port to older and more-pedantic compilers
13855         * modules/intprops-tests (Files): Add tests/macros.h.
13856         * tests/test-intprops.c: Include macros.h.
13857         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13858         it's no longer documented to expand to an integer constant expression.
13859         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13860         argument is floating point, as it's no longer documented to expand
13861         to an integer constant expression in that case.
13862         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13863         compiler bugs reported by Bruno Haible.  See
13864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13865         (U0, U1): New constants, to work around the same bugs.  Also,
13866         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13867
13868         intprops: work around C compiler bugs
13869         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13870         bug in Sun C 5.11 2010/08/13 and other compilers; see
13871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13872
13873         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13874         * doc/intprops.texi (Integer Type Determination): Fix
13875         documentation for TYPE_IS_INTEGER: it returns an constant
13876         expression, not an integer constant expression.  Fix doc for
13877         TYPE_SIGNED: it returns an integer constant expression only if its
13878         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13879         hardly worth documented that way....)
13880
13881 2011-05-18  Bruno Haible  <bruno@clisp.org>
13882
13883         strerror_r: Avoid clobbering the strerror buffer when possible.
13884         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13885         Handle gnulib defined errno values here. When strerror() returns NULL
13886         or an empty string, return EINVAL.
13887         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13888         gnulib defined errno values here.
13889         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13890
13891 2011-05-18  Eric Blake  <eblake@redhat.com>
13892
13893         fnmatch: avoid compiler warning
13894         * lib/fnmatch_loop.c (FCT): Use correct type.
13895         Reported by Matthias Bolte.
13896
13897 2011-05-13  Jim Meyering  <meyering@redhat.com>
13898
13899         maint.mk: three new prohibit_<HDR>_without_use rules
13900         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13901         (sc_prohibit_stdio-safer_without_use): Likewise.
13902         (sc_prohibit_xfreopen_without_use): Likewise.
13903
13904 2011-05-17  Jim Meyering  <meyering@redhat.com>
13905
13906         announce-gen: fail if the NEWS delta is empty
13907         If there's nothing noteworthy in NEWS, then either you forgot
13908         or you shouldn't be releasing.
13909         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13910
13911 2011-05-17  Pádraig Brady <P@draigBrady.com>
13912
13913         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13914         reserved symbols starting with double underscore from the check.
13915
13916 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13917
13918         intprops: add doc
13919         * doc/intprops.texi: New file, documenting intprops.
13920         * doc/gnulib.texi (Particular Modules): Include it.
13921
13922         verify: add doc to gnulib manual and fix example
13923         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13924         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13925         (Compile-time Assertions): Fix example so it can't overflow.
13926
13927 2011-05-17  Jim Meyering  <meyering@redhat.com>
13928
13929         warnings.m4: don't usurp save_CPPFLAGS variable name
13930         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13931
13932         doc: fix typo
13933         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13934
13935 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13936             Bruno Haible  <bruno@clisp.org>
13937
13938         doc: Tweak recent change.
13939         * README (Portability guidelines): Tweak new text.
13940         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13941         Interix 6.1.
13942
13943 2011-05-16  Eric Blake  <eblake@redhat.com>
13944
13945         inttypes: avoid autoconf warning
13946         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13947         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13948
13949 2011-05-16  Sam Steingold <sds@gnu.org>
13950         and Eric Blake  <eblake@redhat.com>
13951
13952         vc-list-files: accept multiple directory operands
13953         * build-aux/vc-list-files: Iterate over all remaining operands.
13954
13955 2011-05-16  Bruno Haible  <bruno@clisp.org>
13956
13957         Fix confusion regarding deprecated modules.
13958         * modules/calloc (Status, Notice): Mark module as deprecated, not
13959         obsolete.
13960         * modules/fnmatch-posix (Status, Notice): Likewise.
13961         * modules/getdate (Status, Notice): Likewise.
13962         * modules/getopt (Status, Notice): Likewise.
13963         * modules/malloc (Status, Notice): Likewise.
13964         * modules/pipe (Status, Notice): Likewise.
13965         * modules/realloc (Status, Notice): Likewise.
13966         * modules/rename-dest-slash (Status, Notice): Likewise.
13967         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13968         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13969         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13970         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13971         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13972
13973 2011-05-16  Bruno Haible  <bruno@clisp.org>
13974
13975         doc: List the target platforms.
13976         * doc/gnulib-intro.texi (Target Platforms): New section.
13977         * doc/gnulib.texi (Introduction): Update menu.
13978         * README (Portability guidelines): Refer to the new section. Update
13979         statement about oldest supported environment. Remove rationale why
13980         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13981         unportable C89 function.
13982         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13983         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13984
13985 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13986
13987         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13988
13989 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13990
13991         intprops-tests: new module
13992         * modules/intprops-tests, tests/test-intprops.c: New files.
13993
13994         intprops: add safe, portable integer overflow checking
13995         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13996         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13997         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13998         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13999         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
14000         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
14001         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
14002         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
14003         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
14004         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
14005         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
14006
14007 2011-05-12  James Youngman  <jay@gnu.org>
14008
14009         Add a test for glibc's Bugzilla bug #12378.
14010         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
14011         doesn't allow the literal matching of a lone "[" (which is
14012         required by POSIX).
14013         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
14014
14015 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14016
14017         Sync glibc change fixing Bugzilla bug #12378.
14018         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
14019         beginning and fall back to matching as normal character if the
14020         string ends before the matching ']' is found.  This is what POSIX
14021         requires.
14022
14023 2011-05-13  Eric Blake  <eblake@redhat.com>
14024
14025         getcwd-lgpl: relax test for FreeBSD
14026         * doc/posix-functions/getcwd.texi (getcwd): Document portability
14027         issue.
14028         * tests/test-getcwd-lgpl.c (main): Relax test.
14029         Reported by Matthias Bolte.
14030
14031 2011-05-11  Eric Blake  <eblake@redhat.com>
14032
14033         test-fflush: silence compiler warning
14034         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
14035
14036 2011-05-11  Bruno Haible  <bruno@clisp.org>
14037
14038         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
14039         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
14040         * modules/canonicalize (Depends-on): Add 'nocrash'.
14041         * modules/canonicalize-lgpl (Depends-on): Likewise.
14042         * doc/posix-functions/realpath.texi: Update platforms list.
14043         Reported by Ryan Schmidt <ryandesign@macports.org>.
14044
14045 2011-05-11  Bruno Haible  <bruno@clisp.org>
14046
14047         group-member: Declare function in <unistd.h>.
14048         * lib/unistd.in.h (group_member): New declaration.
14049         * lib/group-member.h: Remove file.
14050         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
14051         * tests/test-unistd-c++.cc: Check signature of group_member.
14052         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
14053         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
14054         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
14055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
14056         HAVE_GROUP_MEMBER.
14057         * modules/group-member (Files): Remove lib/group-member.h.
14058         (Depends-on): Add unistd. Specify conditions.
14059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14060         (Include): Change to <unistd.h>.
14061         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
14062         HAVE_GROUP_MEMBER.
14063         * NEWS: Mention the change.
14064         * lib/euidaccess.c: Don't include group-member.h.
14065
14066 2011-05-11  Bruno Haible  <bruno@clisp.org>
14067
14068         group-member: Document module.
14069         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
14070         module.
14071
14072 2011-05-11  Bruno Haible  <bruno@clisp.org>
14073
14074         fclose: Fix mistake earlier today.
14075         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
14076
14077 2011-05-11  Eric Blake  <eblake@redhat.com>
14078
14079         fclose: preserve fflush errors
14080         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
14081         Reported by Jim Meyering.
14082
14083         bootstrap: support a prereq of 'rpcgen -' on RHEL5
14084         * build-aux/bootstrap (check_versions): When no specific version
14085         is required, merely check that the app produces an exit status
14086         that indicates its existence.
14087
14088         maint.mk: drop redundant check
14089         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
14090         the same but better.
14091
14092 2011-05-11  Bruno Haible  <bruno@clisp.org>
14093
14094         fclose: Fix possible link error.
14095         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
14096         unregister_shadow_fd. Improve comments.
14097         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
14098         Eric Blake.
14099
14100 2011-05-11  Jim Meyering  <meyering@redhat.com>
14101
14102         maint.mk: improve "can not" detection and generalize rule name
14103         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
14104         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
14105         Use the same technique as in sc_prohibit_doubled_word, so that
14106         we recognize "can not" also when the words are separated by a newline.
14107         Suggested by Eric Blake.
14108         (perl_filename_lineno_text_): Define.  Factored out of...
14109         (prohibit_doubled_word_): ...here.  Use the new definition.
14110         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
14111         (prohibit_undesirable_word_seq_RE_): New overridable variable.
14112         (ignore_undesirable_word_sequence_RE_): New overridable variable.
14113
14114 2011-05-10  Eric Blake  <eblake@redhat.com>
14115
14116         fclose: avoid double close race when possible
14117         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
14118         all but WINDOWS_SOCKETS.
14119
14120 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
14121
14122         openat: correct new comment
14123         * lib/openat-proc.c (openat_proc_name): Correct the comment.
14124
14125 2011-05-10  Jim Meyering  <meyering@redhat.com>
14126
14127         openat: add comments
14128         * lib/openat-proc.c (openat_proc_name): Add comments,
14129         mostly from Eric Blake.
14130
14131 2011-05-09  Eric Blake  <eblake@redhat.com>
14132
14133         openat: reduce syscalls in first probe of /proc
14134         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
14135         be a directory.  Simplify the probe for .. bugs.
14136         * modules/openat (Depends-on): Drop same-inode.
14137         Reported by Bastien ROUCARIES.
14138
14139 2011-05-09  Jim Meyering  <meyering@redhat.com>
14140
14141         maint.mk: change semantics/name of tight_scope variables
14142         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
14143         Rename variables to align with semantics that make them more useful.
14144
14145         maint.mk: tweak new rule's name not to impinge
14146         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
14147         (sc_tight_scope): Use new rule name rather than $@-0.
14148
14149         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
14150         * top/maint.mk (sc_tight_scope): New rule.
14151         (sc_tight_scope-0): New rule, ifdef'd out.
14152         (_gl_TS_dir): Default.
14153         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
14154         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
14155
14156 2011-05-09  Simon Josefsson  <simon@josefsson.org>
14157
14158         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
14159         Haible <bruno@clisp.org>.
14160
14161 2011-05-08  Bruno Haible  <bruno@clisp.org>
14162
14163         Comments.
14164         * m4/isnanf.m4: Add comment.
14165         * m4/isnanl.m4: Likewise.
14166
14167 2011-05-08  Bruno Haible  <bruno@clisp.org>
14168
14169         glob: Remove obsolete macro.
14170         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
14171
14172 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14173
14174         intprops: Sun C 5.11 supports __typeof__
14175         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
14176         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
14177         which is new.
14178         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
14179
14180         intprops: switch to usual gnulib indenting and naming
14181         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
14182         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
14183
14184         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
14185
14186 2011-05-08  Jim Meyering  <meyering@redhat.com>
14187
14188         maint.mk: suppress "Entering/Leaving directory" diag in announcement
14189         * top/maint.mk (release-prep): Use make's --no-print-directory
14190         option when generating the announcement.  This eliminates the
14191         pesky "make[2]: Entering/Leaving directory" diagnostics in the
14192         generated announcement template.
14193
14194 2011-05-08  Bruno Haible  <bruno@clisp.org>
14195
14196         tzset: Fix gettimeofday wrapper on Solaris 2.6.
14197         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
14198         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
14199
14200 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14201
14202         ignore-value, verify: Omit include files from lib_SOURCES.
14203         * modules/ignore-value, modules/verify (Makefile.am):
14204         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
14205         that leads Automake to duplicate use of am__objects_... variables
14206         in Makefile.in.  See
14207         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
14208
14209 2011-05-07  Bruno Haible  <bruno@clisp.org>
14210
14211         fclose: Simplify autoconf macro.
14212         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
14213         defined.
14214
14215 2011-05-07  Bruno Haible  <bruno@clisp.org>
14216
14217         canonicalize-lgpl: Fix autoconf macro ordering bug.
14218         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
14219         gl_STDLIB_H_DEFAULTS.
14220
14221 2011-05-06  Eric Blake  <eblake@redhat.com>
14222
14223         maintainer-makefile: make sc_po_check easier to tune
14224         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
14225         to probe for strings, such as an alternate location for gnulib.
14226
14227         fclose: guarantee behavior on seekable stdin
14228         * modules/fclose (Depends-on): Add fflush.
14229         * doc/posix-functions/fclose.texi (fclose): Document this.
14230         * tests/test-fclose.c (main): Make test for this unconditional.
14231
14232 2011-05-06  Bruno Haible  <bruno@clisp.org>
14233
14234         fflush, fpurge: Relicense under LGPLv2+.
14235         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
14236         * modules/fpurge (License): Likewise.
14237         With permission from Eric Blake and Jim Meyering.
14238         Suggested by Eric Blake.
14239
14240 2011-05-06  Karl Berry  <karl@gnu.org>
14241
14242         * MODULES.html.sh (func_all_modules): remove exit.
14243
14244 2011-05-06  Jim Meyering  <meyering@redhat.com>
14245
14246         maint.mk: use info-gnu@ as the default only for a stable release
14247         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
14248         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
14249         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
14250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
14251
14252 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14253
14254         assert-h: new module, which supports C1X-style static_assert
14255         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
14256         * lib/verify.h: Revamp so that this can be copied into assert.h,
14257         while retaining the ability to use it standalone as before.
14258         Rename private identifiers so as not to encroach on the
14259         standard C namespace, since this is now used by assert.h.
14260         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
14261         the old verify_true.
14262         (_GL_VERIFY_TRUE): New macro, with much of the contents of
14263         the old verify_true.  Use _GL_VERIFY_TYPE.
14264         (_GL_VERIFY): New macro, with much of the contents of the old verify.
14265         (static_assert): New macro, if _GL_STATIC_ASSERT_H
14266         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
14267         defined when this file is copied into the replacement assert.h.
14268         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
14269         and _Static_assert is not built in.
14270         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
14271         defined, and use the new macros mentioned above.
14272         * doc/posix-headers/assert.texi: Document this.
14273
14274 2011-05-05  Bruno Haible  <bruno@clisp.org>
14275
14276         fclose, fflush: Respect rules for use of AC_LIBOBJ.
14277         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
14278         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
14279         gl_REPLACE_FCLOSE here.
14280         * modules/fflush (Depends-on): Remove fclose.
14281         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
14282         combination with module 'fclose'.
14283
14284 2011-05-05  Bruno Haible  <bruno@clisp.org>
14285
14286         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
14287         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
14288         gl_FUNC_FFLUSH.
14289         (gl_FUNC_FFLUSH): Use it.
14290         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
14291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
14292         gl_REPLACE_FSEEKO here.
14293
14294 2011-05-05  Bruno Haible  <bruno@clisp.org>
14295
14296         tzset: Relicense under LGPL.
14297         * modules/tzset (License): Change to LGPL.
14298         No agreement needed; it's a no-op.
14299
14300         strtoimax, strtoumax: Relicense under LGPL.
14301         * modules/strtoimax (License): Change to LGPL.
14302         * modules/strtoumax (License): Likewise.
14303         With permission from Jim Meyering, Paul Eggert:
14304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
14305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
14306
14307         getgroups: Relicense under LGPL.
14308         * modules/getgroups (License): Change to LGPL.
14309         With permission from Jim Meyering, Paul Eggert, Eric Blake:
14310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14313
14314         nanosleep: Relicense under LGPL.
14315         * modules/nanosleep (License): Change to LGPL.
14316         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
14317         Haible:
14318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14322
14323         futimens: Relicense under LGPL.
14324         * modules/futimens (License): Change to LGPL.
14325         With permission from Eric Blake:
14326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14327
14328         fflush: Relicense under LGPL.
14329         * modules/fflush (License): Change to LGPL.
14330         With permission from Eric Blake, Bruno Haible, Jim Meyering:
14331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
14334
14335         tmpfile: Relicense under LGPL.
14336         * modules/tmpfile (License): Change to LGPL.
14337         With permission from Ben Pfaff:
14338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14339
14340         isfinite: Relicense under LGPL.
14341         * modules/isfinite (License): Change to LGPL.
14342         With permission from Ben Pfaff, Bruno Haible:
14343         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
14345
14346         acosl..tanl: Relicense under LGPL.
14347         * modules/acosl (License): Change to LGPL.
14348         * modules/asinl (License): Likewise.
14349         * modules/atanl (License): Likewise.
14350         * modules/cosl (License): Likewise.
14351         * modules/expl (License): Likewise.
14352         * modules/logl (License): Likewise.
14353         * modules/sinl (License): Likewise.
14354         * modules/sqrtl (License): Likewise.
14355         * modules/tanl (License): Likewise.
14356         Source code originally from glibc and Paolo Bonzini. Agreements:
14357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
14358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
14359
14360 2011-05-05  Bruno Haible  <bruno@clisp.org>
14361
14362         signal: Define sighandler_t.
14363         * lib/signal.in.h (sighandler_t): New type.
14364         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
14365         whether sighandler_t is defined.
14366         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
14367         * modules/signal (Depends-on): Add extensions.
14368         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
14369         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
14370         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
14371
14372 2011-05-05  Eric Blake  <eblake@redhat.com>
14373
14374         maint: remove useless REPLACE_*_H macros
14375         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
14376         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14377         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14378         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
14379         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14380         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14381         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
14382         * m4/btowc.m4: Update callers.
14383         * m4/dirfd.m4: Likewise.
14384         * m4/duplocale.m4: Likewise.
14385         * m4/fchdir.m4: Likewise.
14386         * m4/fdopendir.m4: Likewise.
14387         * m4/inet_ntop.m4: Likewise.
14388         * m4/inet_pton.m4: Likewise.
14389         * m4/ioctl.m4: Likewise.
14390         * m4/mbrlen.m4: Likewise.
14391         * m4/mbrtowc.m4: Likewise.
14392         * m4/mbsinit.m4: Likewise.
14393         * m4/mbsnrtowcs.m4: Likewise.
14394         * m4/mbsrtowcs.m4: Likewise.
14395         * m4/poll.m4: Likewise.
14396         * m4/setlocale.m4: Likewise.
14397         * m4/wcrtomb.m4: Likewise.
14398         * m4/wcsnrtombs.m4: Likewise.
14399         * m4/wcsrtombs.m4: Likewise.
14400         * m4/wctob.m4: Likewise.
14401         * m4/wcwidth.m4: Likewise.
14402         * modules/posix_spawn: Likewise.
14403         * modules/posix_spawn_file_actions_addclose: Likewise.
14404         * modules/posix_spawn_file_actions_adddup2: Likewise.
14405         * modules/posix_spawn_file_actions_addopen: Likewise.
14406         * modules/posix_spawn_file_actions_destroy: Likewise.
14407         * modules/posix_spawn_file_actions_init: Likewise.
14408         * modules/posix_spawnattr_destroy: Likewise.
14409         * modules/posix_spawnattr_getflags: Likewise.
14410         * modules/posix_spawnattr_getpgroup: Likewise.
14411         * modules/posix_spawnattr_getschedparam: Likewise.
14412         * modules/posix_spawnattr_getschedpolicy: Likewise.
14413         * modules/posix_spawnattr_getsigdefault: Likewise.
14414         * modules/posix_spawnattr_getsigmask: Likewise.
14415         * modules/posix_spawnattr_init: Likewise.
14416         * modules/posix_spawnattr_setflags: Likewise.
14417         * modules/posix_spawnattr_setpgroup: Likewise.
14418         * modules/posix_spawnattr_setschedparam: Likewise.
14419         * modules/posix_spawnattr_setschedpolicy: Likewise.
14420         * modules/posix_spawnattr_setsigdefault: Likewise.
14421         * modules/posix_spawnattr_setsigmask: Likewise.
14422         * modules/posix_spawnp: Likewise.
14423
14424 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
14425
14426         Add option to do-release-commit-and-tag to specify branch.
14427         * build-aux/do-release-commit-and-tag: Add --branch.
14428
14429 2011-05-03  Bruno Haible  <bruno@clisp.org>
14430
14431         Avoid unnecessary compilation units, through conditional dependencies.
14432         * modules/accept (Depends-on): Add conditions to the dependencies.
14433         * modules/acosl (Depends-on): Likewise.
14434         * modules/argz (Depends-on): Likewise.
14435         * modules/asinl (Depends-on): Likewise.
14436         * modules/atanl (Depends-on): Likewise.
14437         * modules/atoll (Depends-on): Likewise.
14438         * modules/bind (Depends-on): Likewise.
14439         * modules/btowc (Depends-on): Likewise.
14440         * modules/canonicalize-lgpl (Depends-on): Likewise.
14441         * modules/ceil (Depends-on): Likewise.
14442         * modules/ceilf (Depends-on): Likewise.
14443         * modules/ceill (Depends-on): Likewise.
14444         * modules/chdir-long (Depends-on): Likewise.
14445         * modules/chown (Depends-on): Likewise.
14446         * modules/close (Depends-on): Likewise.
14447         * modules/connect (Depends-on): Likewise.
14448         * modules/cosl (Depends-on): Likewise.
14449         * modules/dirfd (Depends-on): Likewise.
14450         * modules/dprintf (Depends-on): Likewise.
14451         * modules/dprintf-posix (Depends-on): Likewise.
14452         * modules/error (Depends-on): Likewise.
14453         * modules/euidaccess (Depends-on): Likewise.
14454         * modules/expl (Depends-on): Likewise.
14455         * modules/faccessat (Depends-on): Likewise.
14456         * modules/fchdir (Depends-on): Likewise.
14457         * modules/fclose (Depends-on): Likewise.
14458         * modules/fcntl (Depends-on): Likewise.
14459         * modules/fdopendir (Depends-on): Likewise.
14460         * modules/fflush (Depends-on): Likewise.
14461         * modules/floor (Depends-on): Likewise.
14462         * modules/floorf (Depends-on): Likewise.
14463         * modules/floorl (Depends-on): Likewise.
14464         * modules/fnmatch (Depends-on): Likewise.
14465         * modules/fopen (Depends-on): Likewise.
14466         * modules/fprintf-posix (Depends-on): Likewise.
14467         * modules/frexp (Depends-on): Likewise.
14468         * modules/frexp-nolibm (Depends-on): Likewise.
14469         * modules/frexpl (Depends-on): Likewise.
14470         * modules/frexpl-nolibm (Depends-on): Likewise.
14471         * modules/fseek (Depends-on): Likewise.
14472         * modules/fsusage (Depends-on): Likewise.
14473         * modules/ftell (Depends-on): Likewise.
14474         * modules/ftello (Depends-on): Likewise.
14475         * modules/futimens (Depends-on): Likewise.
14476         * modules/getcwd (Depends-on): Likewise.
14477         * modules/getcwd-lgpl (Depends-on): Likewise.
14478         * modules/getdelim (Depends-on): Likewise.
14479         * modules/getdomainname (Depends-on): Likewise.
14480         * modules/getgroups (Depends-on): Likewise.
14481         * modules/gethostname (Depends-on): Likewise.
14482         * modules/getline (Depends-on): Likewise.
14483         * modules/getlogin_r (Depends-on): Likewise.
14484         * modules/getopt-posix (Depends-on): Likewise.
14485         * modules/getpeername (Depends-on): Likewise.
14486         * modules/getsockname (Depends-on): Likewise.
14487         * modules/getsockopt (Depends-on): Likewise.
14488         * modules/getsubopt (Depends-on): Likewise.
14489         * modules/getusershell (Depends-on): Likewise.
14490         * modules/glob (Depends-on): Likewise.
14491         * modules/grantpt (Depends-on): Likewise.
14492         * modules/iconv_open (Depends-on): Likewise.
14493         * modules/iconv_open-utf (Depends-on): Likewise.
14494         * modules/inet_ntop (Depends-on): Likewise.
14495         * modules/inet_pton (Depends-on): Likewise.
14496         * modules/ioctl (Depends-on): Likewise.
14497         * modules/isapipe (Depends-on): Likewise.
14498         * modules/isfinite (Depends-on): Likewise.
14499         * modules/isinf (Depends-on): Likewise.
14500         * modules/lchown (Depends-on): Likewise.
14501         * modules/ldexpl (Depends-on): Likewise.
14502         * modules/link (Depends-on): Likewise.
14503         * modules/linkat (Depends-on): Likewise.
14504         * modules/listen (Depends-on): Likewise.
14505         * modules/logl (Depends-on): Likewise.
14506         * modules/lstat (Depends-on): Likewise.
14507         * modules/mbrlen (Depends-on): Likewise.
14508         * modules/mbrtowc (Depends-on): Likewise.
14509         * modules/mbsinit (Depends-on): Likewise.
14510         * modules/mbsnrtowcs (Depends-on): Likewise.
14511         * modules/mbsrtowcs (Depends-on): Likewise.
14512         * modules/mbtowc (Depends-on): Likewise.
14513         * modules/memcmp (Depends-on): Likewise.
14514         * modules/mkdir (Depends-on): Likewise.
14515         * modules/mkdtemp (Depends-on): Likewise.
14516         * modules/mkfifo (Depends-on): Likewise.
14517         * modules/mkfifoat (Depends-on): Likewise.
14518         * modules/mknod (Depends-on): Likewise.
14519         * modules/mkostemp (Depends-on): Likewise.
14520         * modules/mkostemps (Depends-on): Likewise.
14521         * modules/mkstemp (Depends-on): Likewise.
14522         * modules/mkstemps (Depends-on): Likewise.
14523         * modules/mktime (Depends-on): Likewise.
14524         * modules/nanosleep (Depends-on): Likewise.
14525         * modules/open (Depends-on): Likewise.
14526         * modules/openat (Depends-on): Likewise.
14527         * modules/perror (Depends-on): Likewise.
14528         * modules/poll (Depends-on): Likewise.
14529         * modules/popen (Depends-on): Likewise.
14530         * modules/posix_spawn (Depends-on): Likewise.
14531         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
14532         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14533         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14534         * modules/posix_spawnp (Depends-on): Likewise.
14535         * modules/pread (Depends-on): Likewise.
14536         * modules/printf-posix (Depends-on): Likewise.
14537         * modules/ptsname (Depends-on): Likewise.
14538         * modules/putenv (Depends-on): Likewise.
14539         * modules/pwrite (Depends-on): Likewise.
14540         * modules/readline (Depends-on): Likewise.
14541         * modules/readlink (Depends-on): Likewise.
14542         * modules/readlinkat (Depends-on): Likewise.
14543         * modules/recv (Depends-on): Likewise.
14544         * modules/recvfrom (Depends-on): Likewise.
14545         * modules/regex (Depends-on): Likewise.
14546         * modules/remove (Depends-on): Likewise.
14547         * modules/rename (Depends-on): Likewise.
14548         * modules/renameat (Depends-on): Likewise.
14549         * modules/rmdir (Depends-on): Likewise.
14550         * modules/round (Depends-on): Likewise.
14551         * modules/roundf (Depends-on): Likewise.
14552         * modules/roundl (Depends-on): Likewise.
14553         * modules/rpmatch (Depends-on): Likewise.
14554         * modules/select (Depends-on): Likewise.
14555         * modules/send (Depends-on): Likewise.
14556         * modules/sendto (Depends-on): Likewise.
14557         * modules/setenv (Depends-on): Likewise.
14558         * modules/setlocale (Depends-on): Likewise.
14559         * modules/setsockopt (Depends-on): Likewise.
14560         * modules/shutdown (Depends-on): Likewise.
14561         * modules/sigaction (Depends-on): Likewise.
14562         * modules/signbit (Depends-on): Likewise.
14563         * modules/sigprocmask (Depends-on): Likewise.
14564         * modules/sinl (Depends-on): Likewise.
14565         * modules/sleep (Depends-on): Likewise.
14566         * modules/snprintf (Depends-on): Likewise.
14567         * modules/snprintf-posix (Depends-on): Likewise.
14568         * modules/socket (Depends-on): Likewise.
14569         * modules/sprintf-posix (Depends-on): Likewise.
14570         * modules/sqrtl (Depends-on): Likewise.
14571         * modules/stat (Depends-on): Likewise.
14572         * modules/strchrnul (Depends-on): Likewise.
14573         * modules/strdup-posix (Depends-on): Likewise.
14574         * modules/strerror (Depends-on): Likewise.
14575         * modules/strerror_r-posix (Depends-on): Likewise.
14576         * modules/strndup (Depends-on): Likewise.
14577         * modules/strnlen (Depends-on): Likewise.
14578         * modules/strptime (Depends-on): Likewise.
14579         * modules/strsep (Depends-on): Likewise.
14580         * modules/strsignal (Depends-on): Likewise.
14581         * modules/strstr-simple (Depends-on): Likewise.
14582         * modules/strtod (Depends-on): Likewise.
14583         * modules/strtoimax (Depends-on): Likewise.
14584         * modules/strtok_r (Depends-on): Likewise.
14585         * modules/strtoumax (Depends-on): Likewise.
14586         * modules/symlink (Depends-on): Likewise.
14587         * modules/symlinkat (Depends-on): Likewise.
14588         * modules/tanl (Depends-on): Likewise.
14589         * modules/tcgetsid (Depends-on): Likewise.
14590         * modules/tmpfile (Depends-on): Likewise.
14591         * modules/trunc (Depends-on): Likewise.
14592         * modules/truncf (Depends-on): Likewise.
14593         * modules/truncl (Depends-on): Likewise.
14594         * modules/uname (Depends-on): Likewise.
14595         * modules/unlink (Depends-on): Likewise.
14596         * modules/unlockpt (Depends-on): Likewise.
14597         * modules/unsetenv (Depends-on): Likewise.
14598         * modules/usleep (Depends-on): Likewise.
14599         * modules/utimensat (Depends-on): Likewise.
14600         * modules/vasprintf (Depends-on): Likewise.
14601         * modules/vdprintf (Depends-on): Likewise.
14602         * modules/vdprintf-posix (Depends-on): Likewise.
14603         * modules/vfprintf-posix (Depends-on): Likewise.
14604         * modules/vprintf-posix (Depends-on): Likewise.
14605         * modules/vsnprintf (Depends-on): Likewise.
14606         * modules/vsnprintf-posix (Depends-on): Likewise.
14607         * modules/vsprintf-posix (Depends-on): Likewise.
14608         * modules/wcrtomb (Depends-on): Likewise.
14609         * modules/wcscasecmp (Depends-on): Likewise.
14610         * modules/wcscspn (Depends-on): Likewise.
14611         * modules/wcsdup (Depends-on): Likewise.
14612         * modules/wcsncasecmp (Depends-on): Likewise.
14613         * modules/wcsnrtombs (Depends-on): Likewise.
14614         * modules/wcspbrk (Depends-on): Likewise.
14615         * modules/wcsrtombs (Depends-on): Likewise.
14616         * modules/wcsspn (Depends-on): Likewise.
14617         * modules/wcsstr (Depends-on): Likewise.
14618         * modules/wcstok (Depends-on): Likewise.
14619         * modules/wcswidth (Depends-on): Likewise.
14620         * modules/wctob (Depends-on): Likewise.
14621         * modules/wctomb (Depends-on): Likewise.
14622         * modules/wctype (Depends-on): Likewise.
14623         * modules/wcwidth (Depends-on): Likewise.
14624         * modules/write (Depends-on): Likewise.
14625
14626 2011-05-03  Bruno Haible  <bruno@clisp.org>
14627
14628         Support for conditional dependencies.
14629         * doc/gnulib.texi (Module description): Document the syntax of
14630         conditional dependencies.
14631         * gnulib-tool: New option --conditional-dependencies.
14632         (func_usage): Document it.
14633         (cond_dependencies): New variable.
14634         (func_get_automake_snippet_conditional,
14635         func_get_automake_snippet_unconditional): New functions, extracted from
14636         func_get_automake_snippet.
14637         (func_get_automake_snippet): Use them.
14638         (sed_first_32_chars): New variable.
14639         (func_module_shellfunc_name): New function.
14640         (func_module_shellvar_name): New function.
14641         (func_module_conditional_name): New function.
14642         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
14643         func_cond_module_condition): New functions.
14644         (func_modules_transitive_closure): Add support for conditional
14645         dependencies.
14646         (func_emit_lib_Makefile_am): For a conditional module, enclose the
14647         conditional automake snippet in an automake conditional.
14648         (func_emit_autoconf_snippets): Emit shell functions that contain the
14649         code for conditional modules.
14650         (func_import, func_create_testdir): Update specification.
14651
14652 2011-05-03  Eric Blake  <eblake@redhat.com>
14653
14654         test-getaddrinfo: report error information
14655         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
14656
14657 2011-05-03  Jim Meyering  <meyering@redhat.com>
14658
14659         bootstrap: avoid build failure when $GZIP is set
14660         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
14661         program name.  If defined at all, it is supposed to list gzip options.
14662         Reported by Alan Curry in http://debbugs.gnu.org/8609
14663
14664 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
14665
14666         readme-release: new module with release instructions
14667         * modules/readme-release: New module.
14668         * top/README-release: New file, from coreutils, grep, diffutils.
14669         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14670
14671 2011-05-02  Eric Blake  <eblake@redhat.com>
14672
14673         fflush: also replace fclose when fixing fflush
14674         * modules/fflush (Depends-on): Add fclose.
14675         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
14676         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
14677         memstreams with no backing fd.
14678         * doc/posix-functions/fclose.texi (fclose): Document the use of
14679         fflush module to fix the bug.
14680         * tests/test-fclose.c (main): Relax test when fclose is used in
14681         isolation.
14682
14683         fclose: add some tests
14684         * modules/fclose-tests: New test module.
14685         * tests/test-fclose.c: New file.
14686         * doc/posix-functions/fclose.texi (fclose): Document the bug.
14687
14688         fclose: reduced dependencies
14689         * modules/fclose (Depends-on): Switch from fflush/fseeko to
14690         simpler lseek.
14691         * lib/fclose.c (rpl_fclose): Likewise.
14692         Reported by Simon Josefsson.
14693
14694         exit: drop remaining clients
14695         * modules/argmatch (Depends-on): Replace exit with stdlib.
14696         * modules/copy-file (Depends-on): Likewise.
14697         * modules/execute (Depends-on): Likewise.
14698         * modules/exitfail (Depends-on): Likewise.
14699         * modules/obstack (Depends-on): Likewise.
14700         * modules/pagealign_alloc (Depends-on): Likewise.
14701         * modules/pipe-filter-gi (Depends-on): Likewise.
14702         * modules/pipe-filter-ii (Depends-on): Likewise.
14703         * modules/savewd (Depends-on): Likewise.
14704         * modules/spawn-pipe (Depends-on): Likewise.
14705         * modules/wait-process (Depends-on): Likewise.
14706         * modules/xsetenv (Depends-on): Likewise.
14707         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
14708         * modules/git-merge-changelog (Depends-on): Likewise.
14709         * modules/long-options (Depends-on): Likewise.
14710         * modules/pt_chown (Depends-on): Likewise.
14711         * modules/sysexits (Depends-on): Likewise.
14712
14713         freading: relax license from LGPLv3+ to LGPLv2+
14714         * modules/freading (License): Relax LGPL version.
14715
14716 2011-05-02  Bruno Haible  <bruno@clisp.org>
14717
14718         fchdir: Remove unused dependencies.
14719         * modules/fchdir (Depends-on): Remove include_next.
14720
14721 2011-05-02  Bruno Haible  <bruno@clisp.org>
14722
14723         gnulib-tool: Refactor.
14724         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
14725         from func_emit_autoconf_snippets.
14726         (func_emit_autoconf_snippets): Use it.
14727
14728 2011-05-02  Simon Josefsson  <simon@josefsson.org>
14729
14730         * NEWS: Document removal of 'exit'.
14731         * modules/exit: Remove file.
14732
14733 2011-05-01  Bruno Haible  <bruno@clisp.org>
14734
14735         Update DEPENDENCIES.
14736         * DEPENDENCIES (gettext): Recommend the newest release.
14737         Reported by Simon Josefsson.
14738
14739 2011-05-01  Bruno Haible  <bruno@clisp.org>
14740
14741         gnulib-tool: Reduce code duplication.
14742         * gnulib-tool (func_emit_autoconf_snippets): New function.
14743         (func_import, func_create_testdir): Use it.
14744
14745 2011-04-30  Eric Blake  <eblake@redhat.com>
14746
14747         fclose: don't fail on non-seekable input stream
14748         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
14749         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
14750         since fflush is allowed to fail in that case.
14751
14752 2011-04-30  Bruno Haible  <bruno@clisp.org>
14753
14754         dup3: cleanup
14755         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
14756
14757 2011-04-30  Bruno Haible  <bruno@clisp.org>
14758
14759         netdb: Make it work in C++ mode.
14760         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
14761         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
14762         module.
14763         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
14764         gl_MODULE_INDICATOR_FOR_TESTS.
14765         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
14766         * modules/netdb-c++-tests: New file.
14767         * tests/test-netdb-c++.cc: New file.
14768
14769 2011-04-30  Bruno Haible  <bruno@clisp.org>
14770
14771         New modules 'vfscanf', 'vscanf'.
14772         * modules/vfscanf: New file.
14773         * modules/vscanf: New file.
14774         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
14775         here.
14776         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
14777         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
14778
14779 2011-04-30  Bruno Haible  <bruno@clisp.org>
14780
14781         passfd: Add comments.
14782         * lib/passfd.c: Add comments about platforms.
14783
14784 2011-04-30  Bruno Haible  <bruno@clisp.org>
14785
14786         sys_uio: Make <sys/uio.h> self-contained.
14787         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
14788         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
14789
14790 2011-04-30  Bruno Haible  <bruno@clisp.org>
14791
14792         sys_socket: Ensure 'struct iovec' definition.
14793         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
14794         <sys/socket.h>.
14795         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
14796
14797 2011-04-30  Bruno Haible  <bruno@clisp.org>
14798
14799         sys_uio: Protect definition of 'struct iovec'.
14800         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
14801         it as a C struct.
14802
14803 2011-04-30  Bruno Haible  <bruno@clisp.org>
14804
14805         manywarnings: fix indentation
14806         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14807
14808 2011-04-30  Pádraig Brady <P@draigBrady.com>
14809
14810         manywarnings: add -Wno-missing-field-initializers if needed.
14811         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14812         option if it's needed to allow initialization with { 0, }
14813
14814 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14815
14816         announce-gen: cosmetic improvement
14817         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14818
14819 2011-04-29  Jim Meyering  <meyering@redhat.com>
14820
14821         vc-list-files: indent with spaces, not TABs
14822         * build-aux/vc-list-files: Convert leading TABs to spaces,
14823         to match the style of most other files in gnulib.
14824
14825         announce-gen: indent with spaces, not TABs
14826         * build-aux/announce-gen: Convert all TABs to spaces, to match
14827         the style of most other files in gnulib.
14828
14829 2011-04-29  Eric Blake  <eblake@redhat.com>
14830
14831         quotearg: avoid uninitialized variable use
14832         * lib/quotearg.c (quoting_options_from_style): Initialize
14833         remaining fields, and ensure that custom styles are only used via
14834         quoting_options rather than quoting_style.
14835
14836 2011-04-29  Jim Meyering  <meyering@redhat.com>
14837
14838         maint.mk: remove unused VC-tag variable
14839         * top/maint.mk (VC-tag): Remove unused variable.
14840
14841 2011-04-29  Bruno Haible  <bruno@clisp.org>
14842
14843         netdb: fix gai_strerror replacements
14844         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14845         * modules/netdb: Substitute it.
14846
14847 2011-04-29  Jim Meyering  <meyering@redhat.com>
14848
14849         test-getcwd.c: avoid new set-but-not-used warning
14850         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14851         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14852         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14853         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14854
14855         test-hash.c: avoid a new shadowing warning
14856         * tests/test-hash.c (main): Don't shadow "dup".
14857
14858 2011-04-28  Eric Blake  <eblake@redhat.com>
14859
14860         getaddrinfo: fix gai_strerror signature
14861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14862         and work around mingw with UNICODE defined.
14863         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14864         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14865         * modules/netdb (Makefile.am): Substitute it.
14866         * lib/netdb.in.h (gai_strerror): Declare replacement.
14867         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14868         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14869         the fix.
14870
14871         getsockopt: avoid compiler warning
14872         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14873         Reported by Matthias Bolte.
14874
14875         tests: drop unused link dependency
14876         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14877         * modules/dirent-safer-tests (Makefile.am): Likewise.
14878         * modules/fdopendir-tests (Makefile.am): Likewise.
14879         * modules/mkfifoat-tests (Makefile.am): Likewise.
14880         * modules/openat-safer-tests (Makefile.am): Likewise.
14881         * modules/openat-tests (Makefile.am): Likewise.
14882         * modules/readlinkat-tests (Makefile.am): Likewise.
14883         * modules/symlinkat-tests (Makefile.am): Likewise.
14884         * modules/linkat-tests (Makefile.am): Likewise.
14885         (Depends-on): Switch to filenamecat-lgpl.
14886         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14887         LIBINTL.
14888         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14889         * tests/test-linkat.c (main): Don't require xalloc.
14890
14891         hash, mgetgroups: drop xalloc dependency
14892         * lib/hash.c (includes): Adjust includes.
14893         * lib/mgetgroups.c (includes): Likewise.
14894         (xgetgroups): Move...
14895         * lib/xgetgroups.c: ...to new file.
14896         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14897         * modules/xgetgroups: New file, split from...
14898         * modules/mgetgroups: ...here.
14899         (Depends-on): Add xalloc-oversized.
14900         * modules/hash (Depends-on): Likewise.
14901         * modules/hash-tests (Depends-on): Drop xalloc.
14902         (test_hash_LDADD): Drop unused library.
14903         * tests/test-hash.c (main): Break xalloc dependency.
14904         (includes): Drop unused include.
14905
14906         xalloc-oversized: new module
14907         * modules/xalloc-oversized: New module.
14908         * modules/xalloc (Depends-on): Add it.
14909         * lib/xalloc.h (xalloc_oversized): Move...
14910         * lib/xalloc-oversized.h: ...into new file.
14911
14912         utimecmp: drop dependency on xmalloc
14913         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14914         due to memory pressure.
14915         * modules/utimecmp (Depends-on): Drop xalloc.
14916
14917 2011-04-27  Eric Blake  <eblake@redhat.com>
14918
14919         getcwd: fix mingw bugs
14920         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14921         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14922         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14923
14924 2011-04-27  Bruno Haible  <bruno@clisp.org>
14925
14926         mkstemps: Ensure declaration on MacOS X 10.5.
14927         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14928         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14929         MacOS X.
14930
14931 2011-04-27  Bruno Haible  <bruno@clisp.org>
14932
14933         mkstemp: More documentation.
14934         * doc/posix-functions/mkstemp.texi: Document header file problem on
14935         MacOS X.
14936
14937 2011-04-27  Bruno Haible  <bruno@clisp.org>
14938
14939         mkstemp: Tweak configure message when cross-compiling.
14940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14941         result as a guess.
14942
14943 2011-04-27  Bruno Haible  <bruno@clisp.org>
14944
14945         clean-temp: Clarify what it does.
14946         * lib/clean-temp.h: Add more comments.
14947         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14948         module.
14949         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14950         * doc/glibc-functions/mkstemps.texi: Likewise.
14951         * doc/glibc-functions/mkostemps.texi: Likewise.
14952
14953 2011-04-27  Eric Blake  <eblake@redhat.com>
14954
14955         fchdir: avoid extra chdir and fix test
14956         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14957         getcwd-lgpl.
14958         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14959         have to be canonical.
14960         (canonicalize_file_name): Drop unused macro.
14961         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14962
14963         filenamecat-lgpl: fix licence
14964         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14965         when it was first created.
14966
14967         linkat, renameat: add missing dependency
14968         * modules/linkat (Depends-on): Require getcwd-lgpl.
14969         * modules/renameat (Depends-on): Likewise.
14970
14971         tests: reduce dependencies
14972         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14973         * tests/test-renameat.c (main): Likewise.
14974         * modules/linkat-tests (Depends-on): Relax dependency.
14975         * modules/renameat-tests (Depends-on): Likewise.
14976         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14977         dependency explicit.
14978
14979         save-cwd: reduce default dependency
14980         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14981         * lib/save-cwd.c: Update comments.
14982         * NEWS: Document the semantic change.
14983
14984         getcwd: enhance tests
14985         * tests/test-getcwd-lgpl.c: New file, taken from...
14986         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14987         repeat long path stress tests from m4 probe.
14988         * modules/getcwd-lgpl-tests: New module.
14989         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14990         * m4/getcwd-abort-bug.m4: Update comment.
14991         * m4/getcwd-path-max.m4: Likewise.
14992
14993         getcwd-lgpl: new module
14994         * modules/getcwd-lgpl: New module.
14995         * lib/getcwd-lgpl.c: New file.
14996         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14997         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14998         * modules/getcwd (configure.ac): Set C witness.
14999         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
15000
15001         getcwd: tweak comments
15002         * m4/getcwd-abort-bug.m4: Fix comments.
15003         * m4/getcwd-path-max.m4: Likewise.
15004         * m4/getcwd.m4: Likewise.
15005
15006 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15007         and Eric Blake  <eblake@redhat.com>
15008
15009         mkstemp: replace if system version uses wrong permissions
15010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
15011         read/write mode bits set in file created by mkstemp.
15012         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
15013
15014 2011-04-27  Eric Blake  <eblake@redhat.com>
15015
15016         passfd: avoid compiler warning
15017         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
15018         Reported by Laine Stump.
15019
15020 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
15021
15022         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
15023         required by the NetBSD (and perhaps other 4.4BSD derived) join.
15024
15025 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15026         and Eric Blake  <eblake@redhat.com>
15027
15028         mkstemp: mention clean-temp module
15029         * lib/mkstemp.c: Add comment.
15030         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
15031
15032 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15033
15034         inttypes: also provide default values for 32-bit tests
15035         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
15036         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
15037
15038 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15039
15040         strtoumax: remove dependency on strtoimax
15041         This is like the strtoull change of yesterday.
15042         * modules/strtoumax (Files): Add lib/strtoimax.c.
15043         (Depends-on): Remove strtoimax and add verify.
15044
15045         inttypes-incomplete: new module
15046         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
15047         all but the PRI* and SCN* parts of gl_INTTYPES_H.
15048         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
15049         of gl_INTTYPES_H.
15050         (gl_INTTYPES_H): Rewrite in terms of these new macros.
15051         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
15052         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
15053         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
15054         * modules/strtoumax, modules/xstrtol (Depends-on):
15055         Depend on inttypes-incomplete, not inttypes.
15056         * modules/inttypes-incomplete: New module, containing the contents
15057         of the old modules/inttypes module, except that the Files: section
15058         omits m4/inttypes-pri.m4, and the configure.ac section invokes
15059         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
15060         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
15061         (Depends-on): Depend only on inttypes-incomplete.
15062         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
15063
15064         inttypes: omit now-redundant strtoimax and strtoumax work
15065         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
15066         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
15067
15068         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
15069         This supports apps that need pointers to strtoimax and strtoumax,
15070         and ports to HP-UX 11.00 64.bit, which has macros that expand to
15071         nonexistent functions.  See
15072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
15073         et seq.
15074         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
15075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
15076         a macro.
15077         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15078
15079 2011-04-25  Simon Josefsson  <simon@josefsson.org>
15080
15081         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
15082
15083 2011-04-25  Bruno Haible  <bruno@clisp.org>
15084
15085         strtol, strtoul: Mark modules as obsolete.
15086         * modules/strtol (Status, Notice): New sections.
15087         * modules/strtoul (Status, Notice): New sections.
15088
15089 2011-04-25  Bruno Haible  <bruno@clisp.org>
15090
15091         strtod: Remove check for strtod, unless supporting old platforms.
15092         * modules/strtod-obsolete: New file.
15093         * m4/strtod-obsolete.m4: New file.
15094         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
15095         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
15096         * modules/strtod (Depends-on): Add strtod-obsolete.
15097         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
15098
15099 2011-04-25  Bruno Haible  <bruno@clisp.org>
15100
15101         strcase: Make module obsolete.
15102         * modules/strcase (Status, Notice): New sections.
15103
15104 2011-04-25  Bruno Haible  <bruno@clisp.org>
15105
15106         dup2: Remove check for dup2, unless supporting old obsolete platforms.
15107         * modules/dup2-obsolete: New file.
15108         * m4/dup2-obsolete.m4: New file.
15109         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
15110         gl_FUNC_DUP2_OBSOLETE is not also defined.
15111         * modules/dup2 (Depends-on): Add dup2-obsolete.
15112         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
15113
15114 2011-04-25  Bruno Haible  <bruno@clisp.org>
15115
15116         strnlen: Avoid memchr related link error on old obsolete platforms.
15117         * modules/memchr-obsolete: New file.
15118         * m4/memchr-obsolete.m4: New file.
15119         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
15120         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
15121         * modules/memchr (Depends-on): Add memchr-obsolete.
15122         * modules/strnlen (Depends-on): Likewise.
15123         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
15124
15125 2011-04-25  Jim Meyering  <meyering@redhat.com>
15126
15127         maint.mk: makefile_at_at_check extend and clean up
15128         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
15129         in addition to */Makefile.am.
15130         Exempt legitimate uses of @VAR@ notation, e.g.,
15131         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
15132         Remove obsolete coreutils-specific comment.
15133         Prompted by discussion here:
15134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
15135
15136 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         strtoul: remove dependency on strtol
15139         This is so that 'configure' need not check for strtol merely because
15140         the application needs strtoul.
15141         * modules/strtoul (Files): Add lib/strtol.c.
15142         (Depends-on): Remove strtol.
15143
15144         strtoull: remove dependency on strtoul
15145         This is like the strtoll change.
15146         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
15147         (Depends-on): Remove strtoul.
15148
15149         strtoll: remove dependency on strtol
15150         This is so that 'configure' need not check for strtol merely because
15151         the application needs strtoll.
15152         * modules/strtoll (Files): Add lib/strtol.c.
15153         (Depends-on): Remove strtol.
15154
15155 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15156
15157         inttypes: Move some configure check to module 'imaxdiv'.
15158         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
15159         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
15160         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
15161
15162 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         inttypes: Move some configure check to module 'imaxabs'.
15165         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
15166         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
15167         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
15168
15169 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15170
15171         inttypes: Remove configure tests that are not needed since 2009-12-31.
15172         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
15173         gl_cv_header_working_inttypes_h.
15174
15175 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15176
15177         * modules/strnlen (Depends-on): Remove memchr.
15178         The strnlen implementation doesn't need the memchr module's fixes; see
15179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
15180
15181         strtol: remove dependency on wchar
15182         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
15183         * modules/strtol (Depends-on): Remove wchar.
15184
15185 2011-04-21  Eric Blake  <eblake@redhat.com>
15186
15187         passfd: fix test regression on Linux
15188         * modules/passfd-tests (configure.ac): Correct socketpair check.
15189
15190         passfd: speed up configure and drop unused code
15191         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
15192         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
15193         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
15194         Instead of probing at configure for unix_scm_rights_bsd44_way,
15195         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
15196         check to a struct member probe.
15197         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
15198         (sendfd, recvfd): Update preprocessor checks.
15199         * modules/passfd (Files): Reflect rename, and drop unused file.
15200         (Depends-on): Drop unused dependency.
15201
15202         passfd: allow compilation on mingw
15203         * modules/sys_socket (Depends-on): Add sys_uio.
15204         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
15205         iovec and a minimal struct msghdr.
15206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
15207         * tests/test-sys_socket.c (main): Enhance test.
15208         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
15209         guaranteed to provide what we need.
15210         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
15211         * modules/passfd-tests (Depends-on): Add sys_wait.
15212         * tests/test-passfd.c (main): Skip test on mingw, for now.
15213         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
15214         partial 'struct msghdr' implementation.
15215
15216         sys_uio: new module
15217         * modules/sys_uio: New module.
15218         * modules/sys_uio-tests: Likewise.
15219         * lib/sys_uio.in.h: New file.
15220         * m4/sys_uio_h.m4: Likewise.
15221         * tests/test-sys_uio.c: Likewise.
15222         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
15223         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
15224
15225 2011-04-20  Jim Meyering  <meyering@redhat.com>
15226
15227         useless-if-before-free: avoid false-positive
15228         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
15229         disjunct so that it too requires a terminating ";".  Without that,
15230         this script would identify as useless one statement from gcc that
15231         was not:
15232           if (aligned_ptr)
15233             free (((void **) aligned_ptr) [-1]);
15234
15235 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
15236
15237         doc: update users.txt.
15238         * users.txt: Add barcode.
15239
15240 2011-04-19  Bruno Haible  <bruno@clisp.org>
15241
15242         ioctl: Remove link dependency on native Windows.
15243         * lib/fd-hook.h: Renamed from lib/close-hook.h.
15244         (gl_close_fn, gl_ioctl_fn): New types.
15245         (struct fd_hook): Renamed from struct close_hook. Change type of
15246         private_close_fn field. Add private_ioctl_fn field.
15247         (close_hook_fn): Add parameter for primary close method.
15248         (execute_close_hooks, execute_all_close_hooks): Likewise.
15249         (ioctl_hook_fn): New type.
15250         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
15251         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
15252         argument.
15253         (unregister_fd_hook): Renamed from unregister_close_hook.
15254         * lib/fd-hook.c: Renamed from lib/close-hook.c.
15255         Don't include <unistd.h>.
15256         (close): Remove undef.
15257         (anchor): Update.
15258         (execute_close_hooks): Add argument for primary close method.
15259         (execute_all_close_hooks): Likewise.
15260         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
15261         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
15262         argument. Allow each argument to be NULL.
15263         (unregister_fd_hook): Renamed from unregister_close_hook.
15264         * lib/close.c (rpl_close): Pass 'close' function pointer to
15265         execute_all_close_hooks.
15266         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
15267         (primary_ioctl): New function.
15268         (ioctl): Don't call ioctlsocket here. Instead, call
15269         execute_all_ioctl_hooks.
15270         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
15271         close method.
15272         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
15273         (fd_sockets_hook): Renamed from close_sockets_hook.
15274         (gl_sockets_startup, gl_sockets_cleanup): Update.
15275         * modules/fd-hook: Renamed from modules/close-hook. Update.
15276         * modules/close (Depends-on): Add fd-hook, remove close-hook.
15277         * modules/sockets (Depends-on): Likewise.
15278         * modules/ioctl (Depends-on): Add fd-hook.
15279         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
15280         GNULIB_SOCKET.
15281
15282 2011-04-19  Bruno Haible  <bruno@clisp.org>
15283
15284         Move the support of O_NONBLOCK in open() to the 'open' module.
15285         * modules/nonblocking (Depends-on): Remove 'open'.
15286         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
15287         gl_cv_have_open_O_NONBLOCK.
15288         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
15289         O_NONBLOCK support.
15290         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
15291
15292 2011-04-17  Bruno Haible  <bruno@clisp.org>
15293
15294         pipe2: Simplify code.
15295         * lib/pipe2.c (pipe2): Reduce code duplication.
15296
15297 2011-04-17  Bruno Haible  <bruno@clisp.org>
15298
15299         nonblocking: Add comment.
15300         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
15301
15302 2011-04-17  Bruno Haible  <bruno@clisp.org>
15303
15304         nonblocking: Add tests for sockets.
15305         * tests/test-nonblocking-socket.sh: New file.
15306         * tests/test-nonblocking-socket-main.c: New file.
15307         * tests/test-nonblocking-socket-child.c: New file.
15308         * tests/test-nonblocking-socket.h: New file.
15309         * tests/socket-server.h: New file.
15310         * tests/socket-client.h: New file.
15311         * modules/nonblocking-socket-tests: New file.
15312         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
15313
15314 2011-04-17  Bruno Haible  <bruno@clisp.org>
15315
15316         nonblocking: Add tests for pipes.
15317         * tests/test-nonblocking-pipe.sh: New file.
15318         * tests/test-nonblocking-pipe-main.c: New file.
15319         * tests/test-nonblocking-pipe-child.c: New file.
15320         * tests/test-nonblocking-pipe.h: New file.
15321         * tests/test-nonblocking-writer.h: New file.
15322         * tests/test-nonblocking-reader.h: New file.
15323         * tests/test-nonblocking-misc.h: New file.
15324         * modules/nonblocking-pipe-tests: New file.
15325         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
15326
15327 2011-04-16  Bruno Haible  <bruno@clisp.org>
15328
15329         gettext: Clarify the needed programmer actions.
15330         * modules/gettext (Notice): New field.
15331         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
15332
15333 2011-04-16  Bruno Haible  <bruno@clisp.org>
15334
15335         strchrnul: Tweak last commit.
15336         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
15337         bug.
15338         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
15339         as in _GL_FUNCDECL_SYS.
15340         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
15341         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
15342
15343 2011-04-15  Eric Blake  <eblake@redhat.com>
15344
15345         strchrnul: work around cygwin bug
15346         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
15347         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
15348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
15349         * modules/string (Makefile.am): Substitute it.
15350         * lib/string.in.h (strchrnul): Use it.
15351
15352 2011-04-15  Bruno Haible  <bruno@clisp.org>
15353
15354         Don't require lib/stdio-write.c when only module 'stdio' is used.
15355         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
15356         invocation.
15357         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
15358
15359 2011-04-14  Bruno Haible  <bruno@clisp.org>
15360
15361         Support non-blocking pipe I/O in read() on native Windows.
15362         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
15363         (read): New declaration.
15364         * lib/read.c: New file.
15365         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
15366         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
15367         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
15368         vscanf): New declarations.
15369         * lib/stdio-read.c: New file.
15370         * m4/read.m4: New file.
15371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
15372         REPLACE_READ.
15373         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
15374         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15375         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
15376         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
15377         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
15378         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15379         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15380         * modules/read: New file.
15381         * modules/nonblocking (Files): Add lib/stdio-read.c.
15382         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
15383         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
15384         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15385         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15386         * modules/pread (Depends-on): Add read.
15387         * modules/safe-read (Depends-on): Likewise.
15388         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
15389         gets, scanf, vfscanf, vscanf): Verify signatures.
15390         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
15391         problem with non-blocking pipes.
15392         * doc/posix-functions/fgetc.texi: Likewise.
15393         * doc/posix-functions/fgets.texi: Likewise.
15394         * doc/posix-functions/fread.texi: Likewise.
15395         * doc/posix-functions/fscanf.texi: Likewise.
15396         * doc/posix-functions/getc.texi: Likewise.
15397         * doc/posix-functions/getchar.texi: Likewise.
15398         * doc/posix-functions/gets.texi: Likewise.
15399         * doc/posix-functions/scanf.texi: Likewise.
15400         * doc/posix-functions/vfscanf.texi: Likewise.
15401         * doc/posix-functions/vscanf.texi: Likewise.
15402
15403 2011-04-14  Bruno Haible  <bruno@clisp.org>
15404
15405         Support non-blocking pipe I/O in write() on native Windows.
15406         * lib/write.c (rpl_write): Split a write request that failed merely
15407         because the byte count was larger than the pipe buffer's size.
15408         * doc/posix-functions/write.texi: Mention the problem with large byte
15409         counts.
15410
15411 2011-04-14  Bruno Haible  <bruno@clisp.org>
15412
15413         wchar: Ensure that wchar_t gets defined on uClibc.
15414         * lib/wchar.in.h: On uClibc, include <stddef.h>.
15415         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
15416
15417 2011-04-13  Bruno Haible  <bruno@clisp.org>
15418
15419         safe-write, full-read: Avoid unnecessary compilation units.
15420         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
15421         (Depends-on): Remove safe-read. Add ssize_t.
15422         * modules/full-read (Files): Add lib/full-write.c.
15423         (Depends-on): Add full-write.
15424
15425 2011-04-13  Bruno Haible  <bruno@clisp.org>
15426
15427         Support non-blocking pipe I/O and SIGPIPE in pwrite().
15428         * modules/pwrite (Depends-on): Add 'write'.
15429
15430 2011-04-13  Bruno Haible  <bruno@clisp.org>
15431
15432         Support non-blocking pipe I/O in write() on native Windows.
15433         * lib/unistd.in.h (write): Enable replacement also if
15434         GNULIB_UNISTD_H_NONBLOCKING is 1.
15435         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
15436         (rpl_write): When failing to write on a non-blocking pipe, change
15437         errno from ENOSPC to EAGAIN.
15438         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
15439         putchar, puts, vfprintf, vprintf): Enable replacement also if
15440         GNULIB_STDIO_H_NONBLOCKING is 1.
15441         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
15442         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
15443         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
15444         CALL_WITH_SIGPIPE_EMULATION.
15445         (CALL_WITH_SIGPIPE_EMULATION): Use them.
15446         * m4/nonblocking.m4: New file.
15447         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
15448         for non-blocking I/O support.
15449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15450         GNULIB_UNISTD_H_NONBLOCKING.
15451         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
15452         required for non-blocking I/O support.
15453         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
15454         * modules/nonblocking (Files): Add m4/nonblocking.m4,
15455         lib/stdio-write.c, m4/asm-underscore.m4.
15456         (Depends-on): Add stdio, unistd.
15457         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
15458         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
15459         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
15460         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
15461         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
15462         problem with non-blocking pipes.
15463         * doc/posix-functions/fputc.texi: Likewise.
15464         * doc/posix-functions/fputs.texi: Likewise.
15465         * doc/posix-functions/fwrite.texi: Likewise.
15466         * doc/posix-functions/printf.texi: Likewise.
15467         * doc/posix-functions/putc.texi: Likewise.
15468         * doc/posix-functions/putchar.texi: Likewise.
15469         * doc/posix-functions/puts.texi: Likewise.
15470         * doc/posix-functions/vfprintf.texi: Likewise.
15471         * doc/posix-functions/vprintf.texi: Likewise.
15472         * doc/posix-functions/write.texi: Likewise.
15473
15474 2011-04-10  Jim Meyering  <meyering@redhat.com>
15475
15476         maint.mk: prohibit doubled words
15477         Detect them also when they're separated by a newline.
15478         There are 3 ways to customize it:
15479           - disable the test on a per file basis, as usual with rules using
15480             $(VC_LIST_EXCEPT)
15481           - replace the default doubled-word-selecting regexp (affects all files)
15482           - ignore a particular file-vs-doubled-word match
15483         I nearly used that last one to ignore the "is is" match in
15484         coreutils' NEWS file, since the text was "ls -is is ..."
15485         To do that, I would have added this line to cfg.mk:
15486           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
15487         but it would have ignored any "is is" match in NEWS.
15488         Low probability, but still...
15489         Instead, I changed the text, slightly:
15490           -  ls -is is now consistent with ls -lis in ignoring values returned
15491           +  "ls -is" is now consistent with ls -lis in ignoring values returned
15492         * top/maint.mk (prohibit_double_word_RE_): Provide default.
15493         (prohibit_doubled_word_): Define.
15494         (sc_prohibit_doubled_word): New rule.
15495         (sc_prohibit_the_the): Remove.  Subsumed by the above.
15496
15497 2011-04-10  Jim Meyering  <meyering@redhat.com>
15498
15499         maint: fix doubled-word typo in comment
15500         * m4/gethostname.m4: s/is is/it is/
15501         * m4/getdomainname.m4: Likewise.
15502
15503 2011-04-10  Jim Meyering  <meyering@redhat.com>
15504
15505         maint: remove doubled word: s/it it/it/
15506         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
15507
15508 2011-04-10  Jim Meyering  <meyering@redhat.com>
15509
15510         maint.mk: remove useless semicolon and backslash
15511         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
15512         semicolon and backslash.
15513
15514 2011-04-10  Bruno Haible  <bruno@clisp.org>
15515
15516         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
15517         * modules/stdint-tests (Depends-on): Add wchar.
15518
15519 2011-04-10  Jim Meyering  <meyering@redhat.com>
15520
15521         maint: remove doubled words in comments, e.g., s/a a/a/
15522         * lib/strptime.c (day_of_the_week): s/the the/the/
15523         * tests/test-chown.h (test_chown): s/a a/a/
15524
15525         test-chown.h: correct a cast
15526         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
15527         when the destination is a stat.st_gid.
15528
15529 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
15530
15531         getaddrinfo: Fix test for sa_len member.
15532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
15533         include <sys/types.h> before <sys/socket.h>.
15534
15535 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15536
15537         maint: change "can not" to "cannot"
15538         * doc/posix-functions/iconv.texi (iconv): This one crossed line
15539         boundaries.
15540
15541 2011-04-09  Jim Meyering  <meyering@redhat.com>
15542
15543         maint: change "a a" to "a"
15544         * tests/test-lchown.h (test_lchown): s/a a/a/
15545
15546         maint.mk: prohibit \<the the\>
15547         * top/maint.mk (sc_prohibit_the_the): New rule.
15548
15549         maint: fix "the the" in comment
15550         * lib/count-one-bits.h: s/the the/the/
15551
15552         maint: change "can not" to "cannot"
15553         But do not change the occurrences in maintain.texi or in
15554         build-aux/po/Makefile.in.in, which I presume comes from gettext.
15555         * doc/gnulib-tool.texi: s/can not/cannot/
15556         * doc/posix-functions/accept.texi (accept): Likewise.
15557         * doc/posix-functions/socket.texi (socket): Likewise.
15558         * lib/mbrtowc.c: Likewise.
15559
15560         maint.mk: prohibit use of "can not"
15561         * top/maint.mk (sc_prohibit_can_not): New rule.
15562         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
15563
15564 2011-04-09  Bruno Haible  <bruno@clisp.org>
15565
15566         careadlinkat: Guard against misuse of careadlinkatcwd.
15567         * lib/careadlinkat.c: Include <stdlib.h>.
15568         (careadlinkatcwd): Check that the fd argument is as expected.
15569
15570 2011-04-09  Bruno Haible  <bruno@clisp.org>
15571
15572         careadlinkat: Use common coding style.
15573         * lib/careadlinkat.c: Move gnulib includes after system includes.
15574
15575 2011-04-09  Bruno Haible  <bruno@clisp.org>
15576
15577         careadlinkat: Clarify specification.
15578         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
15579         (careadlinkatcwd): Add comment.
15580         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
15581
15582 2011-04-09  Bruno Haible  <bruno@clisp.org>
15583
15584         areadlinkat: Avoid link error on many platforms.
15585         * modules/areadlinkat (Depends-on): Add areadlink.
15586
15587 2011-04-09  Bruno Haible  <bruno@clisp.org>
15588
15589         allocator, careadlinkat: Fix double-inclusion guard.
15590         * lib/allocator.h: Fix double-inclusion guard.
15591         * lib/careadlinkat.h: Likewise.
15592
15593 2011-04-09  Bruno Haible  <bruno@clisp.org>
15594
15595         relocatable-prog-wrapper: Update after module 'areadlink' changed.
15596         * lib/relocwrapper.c: Update dependencies hierarchy.
15597         * build-aux/install-reloc: Update list of files to be compiled.
15598         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
15599         lib/allocator.[hc].
15600
15601 2011-04-08  Eric Blake  <eblake@redhat.com>
15602
15603         strftime: silence gnulib-tool warning
15604         * modules/strftime-tests (Depends-on): Drop automatic dependency.
15605
15606 2011-04-08  Bruno Haible  <bruno@clisp.org>
15607
15608         verify: Fix syntax error with GCC 4.6 in C++ mode.
15609         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
15610         (HAVE_STATIC_ASSERT): New macro.
15611         (verify_true, verify): Use 'static_assert' if it is supported and
15612         '_Static_assert' is not supported.
15613
15614 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         allocator: New module.
15617         * modules/allocator, lib/allocator.c: New files.
15618         * lib/allocator.h (stdlib_allocator): New decl.
15619         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
15620         Remove.  Do not include <stdlib.h>.
15621         (careadlinkat): Use stdlib_allocator instead of rolling our own.
15622         * modules/careadlinkat (Files): Remove lib/allocator.h.
15623         (Depends-on): Add allocator.
15624
15625         stdlib: let modules use system malloc, realloc
15626         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
15627         if !_GL_USE_STDLIB_ALLOC.
15628         (malloc, realloc): Limit this change to a smaller scope.
15629
15630         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
15631         (malloc, realloc): Don't #undef; no longer needed.
15632         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15633         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15634         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15635         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15636         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15637         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15638         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15639         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15640
15641         careadlinkat: rename members to avoid problem
15642         * lib/allocator.h (struct allocator): Rename members from
15643         malloc/realloc to allocate/reallocate, to avoid problems if malloc
15644         and realloc are #define'd.  Reported by Eric Blake in
15645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
15646         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
15647
15648 2011-04-08  Eric Blake  <eblake@redhat.com>
15649
15650         nonblocking: reduce dependency
15651         * tests/test-nonblocking.c: Only test sockets when in use.
15652         * modules/nonblocking-tests (Depends-on): Drop socket.
15653         (Makefile.am): Link even if sockets are not present.
15654         * modules/pipe2-tests (Makefile.am): Likewise.
15655         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
15656
15657         pipe2: fix O_NONBLOCK support on mingw
15658         * modules/pipe2 (Depends-on): Add nonblocking.
15659         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
15660         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
15661         * tests/test-nonblocking.c (main): Likewise.
15662         * modules/pipe2-tests (Makefile.am): Avoid link failure.
15663
15664         fcntl-h: fix O_ACCMODE on cygwin
15665         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
15666         * lib/fcntl.in.h (O_ACCMODE): Fix it.
15667
15668         pipe-filter: drop O_NONBLOCK workarounds
15669         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
15670         * modules/pipe-filter-ii (Depends-on): Likewise.
15671         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
15672
15673         nonblocking: provide O_NONBLOCK for mingw
15674         * modules/nonblocking (Depends-on): Add open.
15675         (configure.ac): Set new witness macro.
15676         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
15677         * modules/fcntl-h (Makefile.am): Substitute it.
15678         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
15679         nonblocking module is in use.
15680         * lib/nonblocking.c: Adjust portability test.
15681         * lib/open.c (open): Don't let native open see gnulib flag.
15682         * tests/test-fcntl-h.c (main): Enhance test.
15683         * tests/test-open.h (test_open): Likewise.
15684         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15685
15686         careadlinkat: fix compilation error on mingw
15687         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
15688         within struct allocator.
15689
15690 2011-04-06  Eric Blake  <eblake@redhat.com>
15691
15692         binary-io: relicense under LGPLv2+
15693         * modules/binary-io (License): Relax to LGPLv2+.
15694         Requested for libvirt, and required by pipe2.
15695
15696 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15697
15698         verify: use _Static_assert if available
15699         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
15700         (verify_true, verify): Use it if available.  This generates better
15701         diagnostics with GCC 4.6.0 and later.
15702
15703 2011-04-05  Bruno Haible  <bruno@clisp.org>
15704
15705         Remove leftover generated .h files after config.status changed.
15706
15707         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
15708         GL_GENERATE_ALLOCA_H.
15709         * modules/alloca-opt (Makefile.am): Remove alloca.h if
15710         GL_GENERATE_ALLOCA_H evaluates to false.
15711
15712         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
15713         GL_GENERATE_ARGZ_H.
15714         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
15715         evaluates to false.
15716
15717         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
15718         GL_GENERATE_BYTESWAP_H.
15719         * modules/byteswap (Makefile.am): Remove byteswap.h if
15720         GL_GENERATE_BYTESWAP_H evaluates to false.
15721
15722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
15723         GL_GENERATE_ERRNO_H.
15724         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
15725         evaluates to false.
15726
15727         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
15728         GL_GENERATE_FLOAT_H.
15729         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
15730         evaluates to false.
15731
15732         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
15733         GL_GENERATE_FNMATCH_H.
15734         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
15735         GL_GENERATE_FNMATCH_H evaluates to false.
15736
15737         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
15738         GL_GENERATE_GLOB_H.
15739         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
15740         evaluates to false.
15741
15742         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
15743         automake conditional GL_GENERATE_ICONV_H.
15744         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
15745         evaluates to false.
15746
15747         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
15748         GL_GENERATE_NETINET_IN_H.
15749         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
15750         GL_GENERATE_NETINET_IN_H evaluates to false.
15751
15752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
15753         conditional GL_GENERATE_PTHREAD_H.
15754         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
15755         * modules/pthread (Makefile.am): Remove pthread.h if
15756         GL_GENERATE_PTHREAD_H evaluates to false.
15757
15758         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
15759         GL_GENERATE_SCHED_H.
15760         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
15761         evaluates to false.
15762
15763         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
15764         conditional GL_GENERATE_SELINUX_CONTEXT_H.
15765         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
15766         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
15767
15768         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
15769         GL_GENERATE_STDARG_H.
15770         * modules/stdarg (Makefile.am): Remove stdarg.h if
15771         GL_GENERATE_STDARG_H evaluates to false.
15772
15773         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
15774         GL_GENERATE_STDBOOL_H.
15775         * modules/stdbool (Makefile.am): Remove stdbool.h if
15776         GL_GENERATE_STDBOOL_H evaluates to false.
15777
15778         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
15779         conditional GL_GENERATE_STDDEF_H.
15780         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
15781         * modules/stddef (Makefile.am): Remove stddef.h if
15782         GL_GENERATE_STDDEF_H evaluates to false.
15783
15784         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
15785         GL_GENERATE_STDINT_H.
15786         * modules/stdint (Makefile.am): Remove stdint.h if
15787         GL_GENERATE_STDINT_H evaluates to false.
15788
15789         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
15790         GL_GENERATE_SYSEXITS_H.
15791         * modules/sysexits (Makefile.am): Remove sysexits.h if
15792         GL_GENERATE_SYSEXITS_H evaluates to false.
15793
15794         Reported by Karl Berry and Ralf Wildenhues.
15795
15796 2011-04-05  Bruno Haible  <bruno@clisp.org>
15797
15798         Ensure to rebuild generated .h files when config.status has changed.
15799         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
15800         config.status.
15801         * modules/ctype (Makefile.am): Likewise.
15802         * modules/dirent (Makefile.am): Likewise.
15803         * modules/errno (Makefile.am): Likewise.
15804         * modules/fcntl-h (Makefile.am): Likewise.
15805         * modules/float (Makefile.am): Likewise.
15806         * modules/getopt-posix (Makefile.am): Likewise.
15807         * modules/glob (Makefile.am): Likewise.
15808         * modules/iconv-h (Makefile.am): Likewise.
15809         * modules/inttypes (Makefile.am): Likewise.
15810         * modules/langinfo (Makefile.am): Likewise.
15811         * modules/locale (Makefile.am): Likewise.
15812         * modules/math (Makefile.am): Likewise.
15813         * modules/netdb (Makefile.am): Likewise.
15814         * modules/netinet_in (Makefile.am): Likewise.
15815         * modules/poll-h (Makefile.am): Likewise.
15816         * modules/pthread (Makefile.am): Likewise.
15817         * modules/pty (Makefile.am): Likewise.
15818         * modules/sched (Makefile.am): Likewise.
15819         * modules/search (Makefile.am): Likewise.
15820         * modules/selinux-h (Makefile.am): Likewise.
15821         * modules/signal (Makefile.am): Likewise.
15822         * modules/spawn (Makefile.am): Likewise.
15823         * modules/stdarg (Makefile.am): Likewise.
15824         * modules/stdbool (Makefile.am): Likewise.
15825         * modules/stddef (Makefile.am): Likewise.
15826         * modules/stdint (Makefile.am): Likewise.
15827         * modules/stdio (Makefile.am): Likewise.
15828         * modules/stdlib (Makefile.am): Likewise.
15829         * modules/string (Makefile.am): Likewise.
15830         * modules/strings (Makefile.am): Likewise.
15831         * modules/sys_file (Makefile.am): Likewise.
15832         * modules/sys_ioctl (Makefile.am): Likewise.
15833         * modules/sys_select (Makefile.am): Likewise.
15834         * modules/sys_socket (Makefile.am): Likewise.
15835         * modules/sys_stat (Makefile.am): Likewise.
15836         * modules/sys_time (Makefile.am): Likewise.
15837         * modules/sys_times (Makefile.am): Likewise.
15838         * modules/sys_utsname (Makefile.am): Likewise.
15839         * modules/sys_wait (Makefile.am): Likewise.
15840         * modules/sysexits (Makefile.am): Likewise.
15841         * modules/termios (Makefile.am): Likewise.
15842         * modules/time (Makefile.am): Likewise.
15843         * modules/unistd (Makefile.am): Likewise.
15844         * modules/wchar (Makefile.am): Likewise.
15845         * modules/wctype-h (Makefile.am): Likewise.
15846         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15847
15848 2011-04-05  Bruno Haible  <bruno@clisp.org>
15849
15850         pipe2: Relicense under LGPLv2+.
15851         * modules/pipe2 (License): Change to LGPLv2+.
15852         Requested by Eric Blake, for libvirt.
15853
15854 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15855
15856         bootstrap: compute gnulib_extra_files after updating build_aux
15857         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15858         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15859
15860 2011-04-05  Eric Blake  <eblake@redhat.com>
15861
15862         bootstrap: preserve git whitelist item sorting
15863         * build-aux/bootstrap (sort_patterns): New function.
15864         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15865
15866 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15867
15868         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15869         sc_space_tab check.
15870
15871 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15872
15873         areadlink, areadlinkat: rewrite in terms of careadlinkat
15874         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15875         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15876         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15877         (malloc, realloc): Remove #undefs.
15878         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15879         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15880         readlink, ssize_t, stdint, unistd.
15881         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15882         areadlink, stdint.
15883
15884         careadlinkat: new module
15885         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15886         * modules/careadlinkat: New files, written by me with
15887         a review and feedback from Ben Pfaff in
15888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15889
15890 2011-04-01  Bruno Haible  <bruno@clisp.org>
15891
15892         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15893         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15894         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15895         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15896         Reported by Bruce Korb <bruce.korb@gmail.com>.
15897
15898 2011-04-01  Bruno Haible  <bruno@clisp.org>
15899
15900         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15901         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15902         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15903         * modules/wcpcpy (Depends-on): Add extensions.
15904         * modules/wcpncpy (Depends-on): Likewise.
15905         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15906         systems.
15907         * doc/posix-functions/wcpncpy.texi: Likewise.
15908         * doc/posix-functions/wcwidth.texi: Likewise.
15909
15910 2011-03-31  Eric Blake  <eblake@redhat.com>
15911
15912         nonblocking: fix mingw test failures
15913         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15914         non-blocking flag on regular file.
15915         (get_nonblocking_flag): Set errno on invalid fd.
15916         * tests/test-nonblocking.c (main): Avoid test failure on
15917         directories if fchdir is not active.
15918         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15919
15920 2011-03-31  Bruno Haible  <bruno@clisp.org>
15921
15922         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15923         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15924         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15925         Reported by Simon Josefsson <simon@josefsson.org>.
15926
15927 2011-03-31  Bruno Haible  <bruno@clisp.org>
15928         and Eric Blake  <eblake@redhat.com>
15929
15930         nonblocking: new module
15931         * modules/nonblocking: New module.
15932         * modules/nonblocking-tests: Likewise.
15933         * lib/nonblocking.h: New file.
15934         * lib/nonblocking.c: Likewise.
15935         * tests/test-nonblocking.c: New test.
15936         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15937
15938 2011-03-30  Bruno Haible  <bruno@clisp.org>
15939
15940         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15941         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15942         instead of 'printf' format for GCC >= 4.4.
15943         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15944         (fprintf, printf, vfprintf, vprintf): Declare with
15945         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15946         the system's vfprintf() function.
15947         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15948
15949 2011-03-30  Eric Blake  <eblake@redhat.com>
15950
15951         passfd: fix scoping bug
15952         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15953         before sendmsg/recvmsg.
15954
15955         passfd: standardize coding conventions
15956         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15957         can be learned at compile time.
15958         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15959         ifdefs.
15960         (sendfd, recvfd): Follow gnulib code conventions.
15961
15962         passfd: fix incorrect sendmsg arguments
15963         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15964         incorrect msg_controllen value.
15965         * modules/passfd-tests (Depends-on): Check for alarm.
15966         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15967         Reported by Bastien ROUCARIES.
15968
15969 2011-03-30  Bruno Haible  <bruno@clisp.org>
15970
15971         c-strcasestr: Relicense under LGPLv2+.
15972         * modules/c-strcasestr (License): Change to LGPLv2+.
15973         Requested by Eric Blake, for libvirt.
15974
15975 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15976
15977         * users.txt: Add libidn2.  Fix libtasn1 link.
15978
15979 2011-03-30  Jim Meyering  <meyering@redhat.com>
15980
15981         tests: readlink* ("",... fails with EINVAL on newer kernels
15982         readlink and readlinkat have typically failed with ENOENT for
15983         the invalid, empty file name,  "".  However, with the advent
15984         of linux-2.6.39, they fail with EINVAL.
15985         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15986         when operating on the empty file name.
15987         * tests/test-readlink.h (test_readlink): Likewise.
15988
15989 2011-03-29  Bruno Haible  <bruno@clisp.org>
15990
15991         Relicense some modules under LGPLv2+, for libidn2.
15992         * modules/array-mergesort (License): Change to LGPLv2+.
15993         * modules/c-strcaseeq (License): Likewise.
15994         * modules/striconveh (License): Likewise.
15995         * modules/striconveha (License): Likewise.
15996         * modules/uniconv/base (License): Likewise.
15997         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15998         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15999         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
16000         * modules/unictype/base (License): Likewise.
16001         * modules/unictype/bidiclass-of (License): Likewise.
16002         * modules/unictype/category-M (License): Likewise.
16003         * modules/unictype/category-none (License): Likewise.
16004         * modules/unictype/category-of (License): Likewise.
16005         * modules/unictype/category-test (License): Likewise.
16006         * modules/unictype/category-test-withtable (License): Likewise.
16007         * modules/unictype/combining-class (License): Likewise.
16008         * modules/unictype/joiningtype-of (License): Likewise.
16009         * modules/unictype/scripts (License): Likewise.
16010         * modules/uninorm/base (License): Likewise.
16011         * modules/uninorm/canonical-decomposition (License): Likewise.
16012         * modules/uninorm/composition (License): Likewise.
16013         * modules/uninorm/decompose-internal (License): Likewise.
16014         * modules/uninorm/decomposition-table (License): Likewise.
16015         * modules/uninorm/nfc (License): Likewise.
16016         * modules/uninorm/nfd (License): Likewise.
16017         * modules/uninorm/u32-normalize (License): Likewise.
16018         * modules/unistr/base (License): Likewise.
16019         * modules/unistr/u32-cpy (License): Likewise.
16020         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
16021         * modules/unistr/u32-to-u8 (License): Likewise.
16022         * modules/unistr/u32-uctomb (License): Likewise.
16023         * modules/unistr/u8-check (License): Likewise.
16024         * modules/unistr/u8-mblen (License): Likewise.
16025         * modules/unistr/u8-mbtouc (License): Likewise.
16026         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
16027         * modules/unistr/u8-mbtoucr (License): Likewise.
16028         * modules/unistr/u8-prev (License): Likewise.
16029         * modules/unistr/u8-strlen (License): Likewise.
16030         * modules/unistr/u8-to-u32 (License): Likewise.
16031         * modules/unistr/u8-uctomb (License): Likewise.
16032         * modules/unitypes (License): Likewise.
16033         Requested by Simon Josefsson.
16034
16035 2011-03-29  Simon Josefsson  <simon@josefsson.org>
16036
16037         lib-symbol-visibility: Add a notice.
16038         * modules/lib-symbol-visibility (Notice): New field.
16039
16040 2011-03-29  Bruno Haible  <bruno@clisp.org>
16041
16042         getaddrinfo: Doc fix.
16043         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
16044         section "fixed in Gnulib".
16045
16046 2011-03-28  Simon Josefsson  <simon@josefsson.org>
16047
16048         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
16049         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
16050
16051 2011-03-26  Bruno Haible  <bruno@clisp.org>
16052
16053         unictype/property-byname: Reduce the number of load-time relocations.
16054         * lib/unictype/pr_byname.c: Include <stdlib.h>.
16055         (UC_PROPERTY_INDEX_*): New enumeration values.
16056         (uc_property_byname): Convert an index from the lookup table to an
16057         uc_property_t.
16058         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
16059         values.
16060
16061 2011-03-26  Bruno Haible  <bruno@clisp.org>
16062
16063         unictype/property-byname: Allow omitted word separators and aliases.
16064         * lib/unictype/pr_byname.gperf: Add property names without word
16065         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
16066         for 'space'.
16067
16068 2011-03-26  Bruno Haible  <bruno@clisp.org>
16069
16070         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
16071         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
16072         also hyphens to space.
16073         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
16074         without spaces.
16075         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
16076
16077 2011-03-26  Bruno Haible  <bruno@clisp.org>
16078
16079         unictype/joiningtype-byname: Recognize long names as well.
16080         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
16081         a long name.
16082         * lib/unictype/joiningtype_byname.c: Include <string.h>,
16083         unictype/joiningtype_byname.h.
16084         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
16085         * lib/unictype/joiningtype_byname.gperf: New file.
16086         * modules/unictype/joiningtype-byname (Files): Add
16087         lib/unictype/joiningtype_byname.gperf.
16088         (Depends-on): Add gperf.
16089         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
16090         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
16091         long names.
16092
16093         Tests for module 'unictype/joiningtype-longname'.
16094         * modules/unictype/joiningtype-longname-tests: New file.
16095         * tests/unictype/test-joiningtype_longname.c: New file.
16096
16097         New module 'unictype/joiningtype-longname'.
16098         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
16099         * lib/unictype/joiningtype_longname.c: New file.
16100         * modules/unictype/joiningtype-longname: New file.
16101         * modules/unictype/joiningtype-all (Depends-on): Add
16102         unictype/joiningtype-longname.
16103
16104 2011-03-26  Bruno Haible  <bruno@clisp.org>
16105
16106         unictype/bidiclass-byname: Recognize long names as well.
16107         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
16108         name.
16109         * lib/unictype/bidi_byname.c: Include <string.h>,
16110         unictype/bidi_byname.h.
16111         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
16112         * lib/unictype/bidi_byname.gperf: New file.
16113         * modules/unictype/bidiclass-byname (Files): Add
16114         lib/unictype/bidi_byname.gperf.
16115         (Depends-on): Add gperf.
16116         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
16117         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
16118         long names.
16119
16120         Tests for module 'unictype/bidiclass-longname'.
16121         * modules/unictype/bidiclass-longname-tests: New file.
16122         * tests/unictype/test-bidi_longname.c: New file.
16123
16124         New module 'unictype/bidiclass-longname'.
16125         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
16126         * lib/unictype/bidi_longname.c: New file.
16127         * modules/unictype/bidiclass-longname: New file.
16128         * modules/unictype/bidiclass-all (Depends-on): Add
16129         unictype/bidiclass-longname.
16130
16131 2011-03-26  Bruno Haible  <bruno@clisp.org>
16132
16133         unictype/bidi*: Rename modules.
16134         * modules/unictype/bidiclass-all: Renamed from
16135         modules/unictype/bidicategory-all.
16136         * modules/unictype/bidiclass-name: Renamed from
16137         modules/unictype/bidiclass-name.
16138         (Description): Update.
16139         * modules/unictype/bidiclass-name-tests: Renamed from
16140         modules/unictype/bidicategory-name-tests.
16141         * modules/unictype/bidiclass-byname: Renamed from
16142         modules/unictype/bidicategory-byname.
16143         (Description): Update.
16144         * modules/unictype/bidiclass-byname-tests: Renamed from
16145         modules/unictype/bidicategory-byname-tests.
16146         * modules/unictype/bidiclass-of: Renamed from
16147         modules/unictype/bidicategory-of.
16148         (Description): Update.
16149         * modules/unictype/bidiclass-of-tests: Renamed from
16150         modules/unictype/bidicategory-of-tests.
16151         * modules/unictype/bidiclass-test: Renamed from
16152         modules/unictype/bidicategory-test.
16153         (Description): Update.
16154         * modules/unictype/bidiclass-test-tests: Renamed from
16155         modules/unictype/bidicategory-test-tests.
16156         * modules/unictype/bidicategory-all: New file, a simple redirection.
16157         * modules/unictype/bidicategory-name: Likewise.
16158         * modules/unictype/bidicategory-byname: Likewise.
16159         * modules/unictype/bidicategory-of: Likewise.
16160         * modules/unictype/bidicategory-test: Likewise.
16161         * modules/unictype/property-bidi-* (Dependencies): Update.
16162         * lib/unictype/bidi_*.c: Update comment.
16163
16164 2011-03-26  Bruno Haible  <bruno@clisp.org>
16165
16166         unictype/bidi*: Rename functions, part 2.
16167         * modules/unictype/bidicategory-name (configure.ac): Update required
16168         libunistring version.
16169         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
16170
16171 2011-03-25  Bruno Haible  <bruno@clisp.org>
16172
16173         New module 'unictype/combining-class-all'.
16174         * modules/unictype/combining-class-all: New file.
16175
16176         Tests for module 'unictype/combining-class-byname'.
16177         * modules/unictype/combining-class-byname-tests: New file.
16178         * tests/unictype/test-combiningclass_byname.c: New file.
16179
16180         New module 'unictype/combining-class-byname'.
16181         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
16182         * lib/unictype/combiningclass_byname.c: New file.
16183         * lib/unictype/combiningclass_byname.gperf: New file.
16184         * modules/unictype/combining-class-byname: New file.
16185
16186         Tests for module 'unictype/combining-class-longname'.
16187         * modules/unictype/combining-class-longname-tests: New file.
16188         * tests/unictype/test-combiningclass_longname.c: New file.
16189
16190         New module 'unictype/combining-class-longname'.
16191         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
16192         * lib/unictype/combiningclass_longname.c: New file.
16193         * modules/unictype/combining-class-longname: New file.
16194
16195         Tests for module 'unictype/combining-class-name'.
16196         * modules/unictype/combining-class-name-tests: New file.
16197         * tests/unictype/test-combiningclass_name.c: New file.
16198
16199         New module 'unictype/combining-class-name'.
16200         * lib/unictype.in.h (uc_combining_class_name): New declaration.
16201         * lib/unictype/combiningclass_name.c: New file.
16202         * modules/unictype/combining-class-name: New file.
16203
16204 2011-03-25  Bruno Haible  <bruno@clisp.org>
16205
16206         unictype/combining-class: Rename source files.
16207         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
16208         of unictype/combining.h.
16209         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
16210         Update.
16211         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
16212         * modules/unictype/combining-class (Description): Fix.
16213         (Files, Makefile.am): Update.
16214         * tests/unictype/test-combiningclass.c: Renamed from
16215         tests/unictype/test-combining.c.
16216         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
16217
16218 2011-03-25  Bruno Haible  <bruno@clisp.org>
16219
16220         unictype: Update list of canonical combining classes.
16221         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
16222
16223 2011-03-25  Bruno Haible  <bruno@clisp.org>
16224
16225         unictype/category-byname: Recognize long names as well.
16226         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
16227         a long name.
16228         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
16229         unictype/categ_byname.h.
16230         (UC_CATEGORY_INDEX_*): New enumeration values.
16231         (uc_general_category_byname): Use uc_general_category_lookup and
16232         convert from index to value.
16233         * lib/unictype/categ_byname.gperf: New file.
16234         * modules/unictype/category-byname (Files): Add
16235         lib/unictype/categ_byname.gperf.
16236         (Depends-on): Add gperf.
16237         (Makefile.am): Add rule for generating unictype/categ_byname.h.
16238         * tests/unictype/test-categ_byname.c (main): Test the recognition of
16239         long names.
16240
16241         Tests for module 'unictype/category-longname'.
16242         * modules/unictype/category-longname-tests: New file.
16243         * tests/unictype/test-categ_longname.c: New file.
16244
16245         New module 'unictype/category-longname'.
16246         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
16247         * lib/unictype/categ_longname.c: New file.
16248         * modules/unictype/category-longname: New file.
16249         * modules/unictype/category-all (Depends-on): Add it.
16250
16251 2011-03-25  Bruno Haible  <bruno@clisp.org>
16252
16253         Tests for module 'unictype/category-LC'.
16254         * modules/unictype/category-LC-tests: New file.
16255         * tests/unictype/test-categ_LC.c: New file, automatically generated.
16256
16257         New module 'unictype/category-LC'.
16258         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
16259         (UC_CATEGORY_LC): New declaration.
16260         (UC_CASED_LETTER): New macro.
16261         * lib/gen-uni-tables.c (is_category_LC): New function.
16262         (output_categories): Also handle category LC.
16263         (UC_CATEGORY_MASK_LC): New enumeration value.
16264         (general_category_byname): Also handle category LC.
16265         * lib/unictype/categ_LC.c: New file.
16266         * lib/unictype/categ_LC.h: New file, automatically generated.
16267         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
16268         category LC.
16269         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
16270         * modules/unictype/category-LC: New file.
16271         * modules/unictype/category-byname (Depends-on): Add
16272         unictype/category-LC.
16273         * modules/unictype/category-all (Depends-on): Likewise.
16274
16275 2011-03-25  Eric Blake  <eblake@redhat.com>
16276
16277         xmalloc: revert yesterday's regression
16278         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
16279         realloc's underlying behavior (allowing allocation of zero-size
16280         objects, especially if malloc-gnu is also in use).
16281
16282 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
16283
16284         maint.mk: add missing version to VC-tag
16285         * top/maint.mk: git tag was missing actual tag name; add it.
16286
16287         valgrind: do leak checking, and exit with code 1 on error (not 0)
16288         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
16289         to VALGRIND.
16290
16291 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
16292
16293         posix-modules: say what it does.
16294         * posix-modules: Add a line to the --help output saying what it does.
16295
16296 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
16297
16298         xmalloc: Do not leak if underlying realloc is C99 compatible.
16299         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
16300         This avoids a leak on C99-based systems.  See
16301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
16302
16303 2011-03-24  Eric Blake  <eblake@redhat.com>
16304
16305         realloc: document portability problem
16306         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
16307         passing 0 size to realloc.
16308
16309 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
16310
16311         doc: update users.txt
16312         * users.txt: Add cvsps, tmpwatch
16313
16314 2011-03-23  Matt Rice  <ratmice@gmail.com>
16315
16316         doc: update users.txt
16317         * users.txt: Add gdb.
16318
16319 2011-03-23  Jim Meyering  <meyering@redhat.com>
16320
16321         doc: update users.txt
16322         Looking through matches up to the following URL (there are still
16323         several more pages), I found several projects that use gnulib:
16324         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
16325         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
16326         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
16327
16328 2011-03-22  Bruno Haible  <bruno@clisp.org>
16329
16330         unictype/bidi*: Rename functions.
16331         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
16332         uc_bidi_class, uc_is_bidi_class): New declarations.
16333         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
16334         uc_bidi_category_byname.
16335         (uc_bidi_category_byname): New function.
16336         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
16337         u_bidi_category_name.
16338         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
16339         (uc_bidi_category_name): New function.
16340         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
16341         uc_bidi_category.
16342         (uc_bidi_category): New function.
16343         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
16344         uc_is_bidi_category. Invoke uc_bidi_class.
16345         (uc_is_bidi_category): New function.
16346         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
16347         instead of uc_bidi_category_byname.
16348         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
16349         instead of uc_bidi_category_name.
16350         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
16351         uc_bidi_category.
16352         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
16353         instead of uc_is_bidi_category.
16354
16355 2011-03-21  Bruno Haible  <bruno@clisp.org>
16356
16357         New module 'unictype/joininggroup-all'.
16358         * modules/unictype/joininggroup-all: New file.
16359
16360         Tests for module 'unictype/joininggroup-of'.
16361         * modules/unictype/joininggroup-of-tests: New file.
16362         * tests/unictype/test-joininggroup_of.c: New file.
16363         * tests/unictype/test-joininggroup_of.h: New file, automatically
16364         generated by gen-uni-tables.
16365
16366         New module 'unictype/joininggroup-of'.
16367         * modules/unictype/joininggroup-of: New file.
16368         * lib/unictype/joininggroup_of.c: New file.
16369         * lib/unictype/joininggroup_of.h: New file, automatically generated by
16370         gen-uni-tables.
16371
16372         Tests for module 'unictype/joininggroup-byname'.
16373         * modules/unictype/joininggroup-byname-tests: New file.
16374         * tests/unictype/test-joininggroup_byname.c: New file.
16375
16376         New module 'unictype/joininggroup-byname'.
16377         * modules/unictype/joininggroup-byname: New file.
16378         * lib/unictype/joininggroup_byname.c: New file.
16379         * lib/unictype/joininggroup_byname.gperf: New file.
16380
16381         Tests for module 'unictype/joininggroup-name'.
16382         * modules/unictype/joininggroup-name-tests: New file.
16383         * tests/unictype/test-joininggroup_name.c: New file.
16384
16385         New module 'unictype/joininggroup-name'.
16386         * modules/unictype/joininggroup-name: New file.
16387         * lib/unictype/joininggroup_name.c: New file.
16388         * lib/unictype/joininggroup_name.h: New file.
16389
16390         New module 'unictype/joiningtype-all'.
16391         * modules/unictype/joiningtype-all: New file.
16392
16393         Tests for module 'unictype/joiningtype-of'.
16394         * modules/unictype/joiningtype-of-tests: New file.
16395         * tests/unictype/test-joiningtype_of.c: New file.
16396         * tests/unictype/test-joiningtype_of.h: New file, automatically
16397         generated by gen-uni-tables.
16398
16399         New module 'unictype/joiningtype-of'.
16400         * modules/unictype/joiningtype-of: New file.
16401         * lib/unictype/joiningtype_of.c: New file.
16402         * lib/unictype/joiningtype_of.h: New file, automatically generated by
16403         gen-uni-tables.
16404
16405         Tests for module 'unictype/joiningtype-byname'.
16406         * modules/unictype/joiningtype-byname-tests: New file.
16407         * tests/unictype/test-joiningtype_byname.c: New file.
16408
16409         New module 'unictype/joiningtype-byname'.
16410         * modules/unictype/joiningtype-byname: New file.
16411         * lib/unictype/joiningtype_byname.c: New file.
16412
16413         Tests for module 'unictype/joiningtype-name'.
16414         * modules/unictype/joiningtype-name-tests: New file.
16415         * tests/unictype/test-joiningtype_name.c: New file.
16416
16417         New module 'unictype/joiningtype-name'.
16418         * modules/unictype/joiningtype-name: New file.
16419         * lib/unictype/joiningtype_name.c: New file.
16420
16421         unictype: Add support for Arabic shaping properties.
16422         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
16423         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
16424         declarations.
16425         (UC_JOINING_GROUP_*): New enumeration values.
16426         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
16427         declarations.
16428         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
16429         (unicode_joining_type): New variable.
16430         (UC_JOINING_GROUP_*): New enumeration values.
16431         (unicode_joining_group): New variable.
16432         (fill_arabicshaping, joining_type_as_c_identifier,
16433         output_joining_type_test, output_joining_type,
16434         joining_group_as_c_identifier, output_joining_group_test,
16435         output_joining_group): New functions.
16436         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
16437         fill_arabicshaping and output_joining_type_test, output_joining_type,
16438         output_joining_group_test, output_joining_group.
16439         Reported by Simon Josefsson.
16440
16441 2011-03-21  Jim Meyering  <meyering@redhat.com>
16442
16443         strftime: fix a bug in yesterday's change
16444         * lib/strftime.c (add): Accommodate width's initial value of -1.
16445         Otherwise, nstrftime would copy uninitialized data into
16446         the result buffer.
16447
16448 2011-03-21  Jim Meyering  <meyering@redhat.com>
16449
16450         tests: add strftime-tests module
16451         * tests/test-strftime.c: New file.
16452         * modules/strftime-tests: New module.
16453
16454 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16455
16456         strftime: don't assume a byte count fits in 'int'
16457         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
16458         found this problem by static analysis, using gcc -Wstrict-overflow
16459         (GCC 4.5.2, x86-64).  This reported an optimization that depended
16460         on an integer overflow having undefined behavior, but it turns out
16461         that the argument is a size, which might not fit in 'int' anyway,
16462
16463 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16464
16465         stdio: don't require ignore_value around fwrite
16466
16467         This patch works around libc bug 11959
16468         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
16469         Without this patch, applications must often write
16470         ignore_value (fwrite (...)) even though the ignore_value is
16471         not helpful here.  It's common to write many objects, using
16472         fwrite/printf/etc., and then use ferror to detect output error.
16473
16474         I considered making this patch optional, but decided against it,
16475         because libc is obviously being inconsistent here: there is no
16476         reason libc should insist that user code must inspect fwrite
16477         return's value without also insisting that it inspect printf's,
16478         putchar's, etc.  If user code wants to have a strict style where
16479         all these functions' values are checked (so that ferror need not
16480         be checked), we could add support for that style in a new gnulib
16481         module, but in the meantime it's better to be consistent and to
16482         support common usage.
16483
16484         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
16485         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
16486         that we are compiling in checking mode, and if not C++, and
16487         if not already wrapping fwrite for some other reason.
16488         (fwrite): #define to rpl_fwrite if the latter is defined.
16489
16490 2011-03-20  Bruno Haible  <bruno@clisp.org>
16491
16492         verror: Fix compilation error introduced on 2011-02-13.
16493         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
16494         instead of __attribute__.
16495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16496
16497 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16498             Bruno Haible  <bruno@clisp.org>
16499
16500         socklen: do not depend on sys_socket
16501         While trying to modify Emacs to use gnulib's socklen module,
16502         I discovered a circular dependency: socklen depends on sys_socket
16503         and vice versa.  Emacs can use socklen, but it does not need
16504         sys_socket because it has its own substitute for sys/socket.h.
16505         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
16506         gl_TYPE_SOCKLEN_T.
16507         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
16508         gl_PREREQ_SYS_H_SOCKET.
16509         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
16510         gl_PREREQ_SYS_H_SOCKET.
16511         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
16512         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
16513         * modules/socklen (Depends-on): Do not depend on sys_socket.
16514         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
16515
16516 2011-03-20  Jim Meyering  <meyering@redhat.com>
16517
16518         maint.mk: sort file names *after* new transformation
16519         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
16520         prefix would have led to an unwarranted failure in GNU parted.
16521         Sort after that transformation.
16522
16523 2011-03-19  Jim Meyering  <meyering@redhat.com>
16524
16525         maint.mk: fix po-file syntax-check rule
16526         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
16527         Patch by Bruno Haible.
16528
16529 2011-03-19  Bruno Haible  <bruno@clisp.org>
16530
16531         socklen: Update comment.
16532         * m4/socklen.m4: Update comment about platforms.
16533
16534 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16535             Bruno Haible  <bruno@clisp.org>
16536
16537         inet_ntop, inet_pton: Simplify.
16538         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
16539         documented to provide socklen_t and we already depend on sys_socket.
16540         * modules/inet_pton (Depends-on): Likewise.
16541         * lib/arpa_inet.in.h: Adjust comment.
16542
16543 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16544             Bruno Haible  <bruno@clisp.org>
16545
16546         netdb: Simplify.
16547         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
16548         documented to provide socklen_t and we already depend on sys_socket.
16549         * lib/netdb.in.h: Adjust comment.
16550
16551 2011-03-19  Bruno Haible  <bruno@clisp.org>
16552
16553         sys_socket, netdb: Document problem with socklen_t.
16554         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
16555         platforms.
16556         * doc/posix-headers/netdb.texi: Likewise.
16557
16558 2011-03-18  Eric Blake  <eblake@redhat.com>
16559
16560         maint.mk: let po check work in VPATH build
16561         * top/maint.mk (po_file): Allow cfg.mk override.
16562         (sc_po_check): Allow VPATH use.
16563         Reported by Jiri Denemark.
16564
16565 2011-03-16  Jim Meyering  <meyering@redhat.com>
16566
16567         maint.mk: allow fine-grained syntax-check exclusion via Make variables
16568         Before, you would have had to create one .x-sc_ file per rule in order
16569         to exempt offending files.  Now, you may instead use a Make variable --
16570         usually defined in cfg.mk -- whose name identifies the affected rule.
16571         * top/maint.mk (_sc_excl): Define.
16572         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
16573         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
16574
16575 2011-03-13  Bruno Haible  <bruno@clisp.org>
16576
16577         ignore-value tests: Avoid warnings.
16578         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
16579         empty for gcc < 3.4.
16580
16581 2011-03-13  Bruno Haible  <bruno@clisp.org>
16582
16583         passfd: Fix link error on Solaris.
16584         * modules/passfd (Description): Correct.
16585         (Depends-on): Add socketlib.
16586         (Link): New section.
16587         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
16588
16589 2011-03-13  Bruno Haible  <bruno@clisp.org>
16590
16591         passfd: Fix link error on AIX 5.2.
16592         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
16593
16594 2011-03-13  Bruno Haible  <bruno@clisp.org>
16595
16596         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
16597         * lib/sys_socket.in.h: Include <stddef.h>.
16598         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
16599         CMSG_FIRSTHDR. Remove unused variable.
16600
16601 2011-03-13  Bruno Haible  <bruno@clisp.org>
16602
16603         passfd: Fix compilation error on OpenBSD.
16604         * lib/passfd.c: Include <sys/uio.h>.
16605
16606 2011-03-13  Bruno Haible  <bruno@clisp.org>
16607
16608         passfd test: Fix warnings.
16609         * tests/test-passfd.c: Include <sys/wait.h>.
16610         (main): Fix typo.
16611
16612 2011-03-13  Bruno Haible  <bruno@clisp.org>
16613
16614         passfd module, part 4, tweaks.
16615         * tests/test-passfd.c: Reorder includes.
16616         (main): Fix perror and printf calls.
16617
16618 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16619
16620         passfd module, part 4.
16621         * modules/passfd-tests: New file.
16622         * tests/test-passfd.c: New file.
16623
16624 2011-03-13  Jim Meyering  <meyering@redhat.com>
16625
16626         Makefile: rely on GNU make; derive syntax-check rule names
16627         Rather than requiring that each sc_ rule be listed as a dependent
16628         of "check", use features of GNU make to derive the list.
16629         * Makefile (syntax-check-rules): Define.
16630         (check): Depend on the new variable, not the hard-coded list.
16631
16632 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
16633             Bruno Haible  <bruno@clisp.org>
16634
16635         passfd module, part 3.
16636         * lib/passfd.h (recvfd): Add a flags argument.
16637         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
16638         (recvfd): Add a flags argument.
16639         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
16640         exists.
16641         * modules/passfd (Depends-on): Add cloexec.
16642         Suggested by Eric Blake.
16643
16644 2011-03-13  Bruno Haible  <bruno@clisp.org>
16645
16646         passfd module, part 2, tweaks.
16647         * modules/passfd (Files): Reorder.
16648         (Depends-on): Remove errno.
16649         (Include): Remove <sys/socket.h>, <sys/un.h>.
16650         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
16651         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
16652         specification header. Include <sys/socket.h> always. Don't include
16653         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
16654         (sendfd): Clarify that it sets errno when it fails.
16655         (recvfd): Fix specification.
16656
16657 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16658
16659         passfd module, part 2.
16660         * modules/passfd: New file.
16661         * lib/passfd.h: New file.
16662         * lib/passfd.c: New file.
16663
16664 2011-03-12  Bruno Haible  <bruno@clisp.org>
16665
16666         wcswidth, mbswidth: Avoid integer overflow.
16667         * lib/wcswidth.c: Include <limits.h>.
16668         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
16669         * lib/mbswidth.c: Include <limits.h>.
16670         (mbsnwidth): Avoid 'int' overflow.
16671         Reported by Jim Meyering.
16672
16673 2011-03-12  Bruno Haible  <bruno@clisp.org>
16674
16675         futimens, utimensat: Avoid endless recursion on Solaris 10.
16676         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
16677         Solaris.
16678         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
16679         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
16680
16681 2011-03-11  Jim Meyering  <meyering@redhat.com>
16682
16683         maint.mk: relax a regexp to accommodate other formatting styles
16684         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
16685         between "ngettext" and the following "(".
16686
16687 2011-03-11  Pádraig Brady <P@draigBrady.com>
16688
16689         maint.mk: suppress a false positive warning
16690         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
16691         diagnostics are marked with ngettext.
16692
16693 2011-03-10  Eric Blake  <eblake@redhat.com>
16694
16695         wchar: add explicit dependencies, for Tru64
16696         * modules/mbmemcasecoll (Depends-on): Add wchar.
16697         * modules/mbtowc (Depends-on): Likewise.
16698         * modules/vasnprintf (Depends-on): Likewise.
16699         * modules/unistdio/u-printf-args (Depends-on): Likewise.
16700         * modules/wctomb (Depends-on): Likewise.
16701         Reported by Peter O'Gorman.
16702
16703 2011-03-08  Bruno Haible  <bruno@clisp.org>
16704
16705         passfd module, part 1, tweaks.
16706         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
16707         Improve indentation. Improve AC_MSG_CHECKING messages.
16708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
16709         gl_SOCKET_FAMILIES.
16710
16711 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16712
16713         passfd module, part 1.
16714         * m4/afunix.m4: New file.
16715         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
16716         sockets.
16717
16718 2011-03-08  Bruno Haible  <bruno@clisp.org>
16719
16720         regex-quote: New API.
16721         * lib/regex-quote.h: Include <stdbool.h>.
16722         (struct regex_quote_spec): New type.
16723         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16724         New declarations.
16725         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16726         'const struct regex_quote_spec *' argument.
16727         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
16728         (pcre_special): New constant.
16729         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16730         New functions.
16731         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16732         'const struct regex_quote_spec *' argument.
16733         * modules/regex-quote (Depends-on): Add stdbool.
16734         * tests/test-regex-quote.c (check): Update for new API. Add test for
16735         anchored results.
16736         * NEWS: Mention the API change.
16737         Reported by Reuben Thomas and Eric Blake.
16738
16739 2011-03-06  Bruno Haible  <bruno@clisp.org>
16740
16741         regex-quote: Fix creation of POSIX extended regular expressions.
16742         * lib/regex-quote.c (ere_special): Add grouping and alternation
16743         operators.
16744
16745 2011-03-05  Bruno Haible  <bruno@clisp.org>
16746
16747         doc: Improve doc regarding autopoint vs. gnulib.
16748         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
16749         disable autopoint while running autoreconf.
16750         Suggested by Ralf Wildenhues.
16751
16752 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16753
16754         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
16755         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
16756
16757 2011-03-03  Bruce Korb  <bkorb@gnu.org>
16758
16759         parse-duration: remove xalloc.h dependency
16760         * lib/parse-duration.c (parse_period): handle NULL return from
16761         strdup instead of calling xstrdup().
16762         * modules/parse-duration: remove "xalloc" dependency
16763
16764 2011-03-03  Matthew Booth  <mbooth@redhat.com>
16765
16766         bootstrap: honor m4_base when running aclocal
16767         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
16768
16769 2011-03-02  Jim Meyering  <meyering@redhat.com>
16770
16771         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
16772         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
16773         on request from Matt Booth.
16774
16775 2011-03-01  Eric Blake  <eblake@redhat.com>
16776
16777         test-link: work on Hurd
16778         * tests/test-link.h (test_link): Hurd rejects linking directories
16779         with EISDIR instead of the POSIX-mandated EPERM.
16780
16781 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
16782
16783         stdio: simplify by moving files to printf-posix, sigpipe
16784         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
16785         since this symbol is needed only if printf is replaced.
16786         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
16787         Require gl_ASM_SYMBOL_PREFIX.
16788         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
16789         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
16790         (Depends-on): Add 'raise'.
16791         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
16792         * modules/stdio (Files): Remove lib/stdio-write.c,
16793         m4/asm-underscore.m4.
16794         (Depends-on): Remove 'raise'.
16795
16796         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
16797         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
16798         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
16799         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
16800
16801 2011-02-28  Bruno Haible  <bruno@clisp.org>
16802
16803         localcharset: Assume ANSI C behaviour of free().
16804         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
16805         calling free().
16806         Suggested by Simon Josefsson <simon@josefsson.org>.
16807
16808 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16809             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16810             Bruno Haible  <bruno@clisp.org>  (tiny change)
16811
16812         On Cygwin, use /proc file system instead of win32 API.
16813         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16814         Win32 file names.
16815         (DllMain): Simplify by removing Cygwin specific code.
16816         (find_shared_library_fullname): Use Linux specific implementation also
16817         for Cygwin.
16818         (get_shared_library_fullname): Update accordingly.
16819         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16820         Win32 file names.
16821         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16822         Cygwin specific code.
16823
16824 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16825             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16826
16827         Fix OpenMP flag detection for various Fortran compilers.
16828         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16829         OpenMP-conditional compilation construct, to force compile
16830         failure with missing OpenMP flag.
16831         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16832
16833 2011-02-25  Eric Blake  <eblake@redhat.com>
16834
16835         strstr: expand test coverage
16836         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16837         compilation.
16838         * tests/test-memmem.c (main): Duplicate tests.
16839         * tests/test-strcasestr.c (main): Likewise.
16840         * tests/test-c-strcasestr.c (main): Likewise.
16841
16842 2011-02-25  Jim Meyering  <meyering@redhat.com>
16843
16844         maint.mk: detect missing-NL-at-EOF, too
16845         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16846         it also detects when a file lacks a newline at EOF.
16847         (require_exactly_one_NL_at_EOF_): Renamed from
16848         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16849         since people may well have .x-sc_... file names tied to the
16850         existing name.  Suggested by Eric Blake.
16851
16852 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16853
16854         dirname: move m4/dos.m4 functionality into lib/dosname.h
16855
16856         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16857         extracts symbols from it, puts them into config.h; but it's much
16858         easier to use the symbols directly.  filename.h already does this,
16859         but it disagrees with dos.m4 in some respects.  This patch
16860         introduces a different include file dosname.h that packages up
16861         dos.m4, and then later we can work on merging filename.h and
16862         dosname.h.  Applications that need only the easy-to-configure
16863         symbols should consider including dosname.h rather than dirname.h.
16864         * NEWS: Mention incompatible changes.
16865         * m4/dos.m4: Remove.
16866         * lib/dosname.h, modules/dosname: New files.
16867         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16868         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16869         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16870         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16871         Include dosname.h, not dirname.h.
16872         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16873         Include dosname.h, for definitions of symbols like ISSLASH
16874         that used to be in config.h.
16875         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16876         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16877         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16878         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16879         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16880         * modules/rmdir (Files): Likewise.
16881         * modules/stat (Files): Likewise.
16882         * modules/unlink (Files): Likewise.
16883         * modules/dirname-lgpl (Depends-on): Add dosname.
16884         * modules/lstat (Depends-on): Likewise.
16885         * modules/openat (Depends-on): Likewise.
16886         * modules/rmdir (Depends-on): Likewise.
16887         * modules/savewd (Depends-on): Likewise.
16888         * modules/stat (Depends-on): Likewise.
16889         * modules/unlink (Depends-on): Likewise.
16890         * modules/openat (Depends-on): Remove dirname-lgpl.
16891         * modules/savewd (Depends-on): Likewise.
16892         * tests/test-dirname.c: Do not use removed symbols like
16893         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16894         the remaining symbols, e.g., ISSLASH ('\\').
16895
16896 2011-02-25  Eric Blake  <eblake@redhat.com>
16897
16898         strstr: revert patches that introduced bug and pessimization
16899         * lib/str-two-way.h: Add another reference.
16900         (two_way_short_needle, two_way_long_needle): Revert changes from
16901         2011-02-24; they pessimize search speed.
16902         (critical_factorization): Partially revert changes from
16903         2010-06-22; they violate the requirement that the left half of the
16904         needle be smaller than the period of the needle.
16905
16906 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16907
16908         filenamecat: remove unnecessary dependency on dirname-lgpl
16909         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16910         is no direct dependency, just an indirect one via filenamecat-lgpl.
16911
16912         remove: remove unnecessary use of m4/dos.m4
16913         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16914         * modules/remove (FILES): Remove m4/dos.m4.
16915
16916         * lib/openat-proc.c: Don't include dirname.h; not needed.
16917
16918         backupfile: remove unnecessary use of m4/dos.m4
16919         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16920         of its symbols are used by the backupfile code.  backupfile.c does
16921         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16922         for the rare case of programs that want all their backup file
16923         names to live within 8+3 limits, and dos.m4 doesn't address that.
16924         * modules/backupfile (Files): Remove m4/dos.m4.
16925
16926 2011-02-24  Jim Meyering  <meyering@redhat.com>
16927
16928         strstr: fix a bug whereby strstr would mistakenly return NULL
16929         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16930         in period calculation.
16931         (two_way_long_needle): Likewise.
16932         The original problem was reported by Mike Stump in
16933         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16934         Ralf Wildenhues provided the short needle and haystack.
16935         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16936         Add a more involved test to trigger the bug in two_way_long_needle.
16937
16938 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16939
16940         gnulib-tool: remove use of bold display in help screen
16941         * gnulib-tool (func_usage): Do not use bold display anymore in the
16942         help screen.  That was just meant to be a temporary emphasis for a
16943         backward-incompatible change.
16944
16945 2011-02-23  Bruno Haible  <bruno@clisp.org>
16946
16947         Fix misindentation of preprocessor directives.
16948         * lib/argp-namefrob.h: Reindent preprocessor directives.
16949         * lib/getopt_int.h (struct _getopt_data): Likewise.
16950         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16951         * lib/vasnprintf.c (decode_long_double): Likewise.
16952         * tests/test-argmatch.c: Insert blank lines, for clarity.
16953         * tests/test-exclude.c: Likewise.
16954
16955 2011-02-22  Bruno Haible  <bruno@clisp.org>
16956
16957         ioctl: Fix for MacOS X in 64-bit mode.
16958         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16959         value.
16960         Suggested by Eric Blake.
16961         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16962
16963 2011-02-22  Jim Meyering  <meyering@redhat.com>
16964
16965         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16966         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16967         in lib/.
16968
16969 2011-02-22  Eric Blake  <eblake@redhat.com>
16970
16971         maint: avoid any CDPATH issue
16972         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16973
16974         maint: adjust cpp indentation for my modules, as well
16975         * Makefile (sc_cpp_indent_check): Add my name.
16976         * lib/fbufmode.c: Filter through cppi.
16977         * lib/fpurge.c: Likewise.
16978         * lib/freadable.c: Likewise.
16979         * lib/freading.c: Likewise.
16980         * lib/fwritable.c: Likewise.
16981         * lib/fwriting.c: Likewise.
16982         * lib/sigaction.c: Likewise.
16983
16984 2011-02-22  Jim Meyering  <meyering@redhat.com>
16985
16986         maint: adjust cpp indentation to reflect nesting depth
16987         I.e., in a block of code that begins with an unnested "#if",
16988         put one space between the "#" in column 1 and following token.
16989         For example,
16990         -#include <sys/vfs.h>
16991         +# include <sys/vfs.h>
16992         Do this only in .c files that are part of a module I maintain.
16993         * lib/linkat.c: Filter through cppi.
16994         * lib/nanosleep.c: Likewise.
16995         * lib/openat.c: Likewise.
16996         * lib/openat-die.c: Likewise.
16997         * lib/dup3.c: Likewise.
16998         * lib/fchownat.c: Likewise.
16999         * lib/flock.c: Likewise.
17000         * lib/fsync.c: Likewise.
17001         * lib/fts.c: Likewise.
17002         * lib/getpass.c: Likewise.
17003         * lib/gettimeofday.c: Likewise.
17004         * lib/userspec.c: Likewise.
17005         * Makefile (sc_cpp_indent_check): New rule, to check this.
17006
17007 2011-02-22  Bruno Haible  <bruno@clisp.org>
17008
17009         New module 'wctomb'.
17010         * lib/stdlib.in.h (wctomb): New declaration.
17011         * lib/wctomb.c: New file.
17012         * lib/wctomb-impl.h: New file.
17013         * m4/wctomb.m4: New file.
17014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
17015         REPLACE_WCTOMB.
17016         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
17017         REPLACE_WCTOMB.
17018         * modules/wctomb: New file.
17019         * tests/test-stdlib-c++.cc: Test signature of wctomb.
17020         * doc/posix-functions/wctomb.texi: Mention the new module.
17021         * modules/wctob (Depends-on): Add wctomb.
17022
17023 2011-02-22  Bruno Haible  <bruno@clisp.org>
17024
17025         New module 'mbtowc'.
17026         * lib/stdlib.in.h (mbtowc): New declaration.
17027         * lib/mbtowc.c: New file.
17028         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
17029         * m4/mbtowc.m4: New file.
17030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
17031         REPLACE_MBTOWC.
17032         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
17033         REPLACE_MBTOWC.
17034         * modules/mbtowc: New file.
17035         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
17036         * doc/posix-functions/mbtowc.texi: Mention the new module.
17037         * modules/btowc (Depends-on): Add mbtowc.
17038
17039 2011-02-22  Bruno Haible  <bruno@clisp.org>
17040
17041         wcrtomb: Add more tests for native Windows platforms.
17042         * tests/test-wcrtomb-w32-1.sh: New file.
17043         * tests/test-wcrtomb-w32-2.sh: New file.
17044         * tests/test-wcrtomb-w32-3.sh: New file.
17045         * tests/test-wcrtomb-w32-4.sh: New file.
17046         * tests/test-wcrtomb-w32-5.sh: New file.
17047         * tests/test-wcrtomb-w32.c: New file.
17048         * modules/wcrtomb-tests (Files): Add them.
17049         (Makefile.am): Arrange to run these tests.
17050         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
17051         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
17052
17053 2011-02-20  Bruno Haible  <bruno@clisp.org>
17054
17055         wcrtomb: Enhance test.
17056         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
17057
17058 2011-02-20  Bruno Haible  <bruno@clisp.org>
17059
17060         mbrtowc: Tiny optimization.
17061         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
17062
17063 2011-02-20  Jim Meyering  <meyering@redhat.com>
17064
17065         test-exclude.c: remove unmatched #endif
17066         * tests/test-exclude.c: Remove stray #endif, left over from
17067         the change of a week ago.
17068
17069 2011-02-19  Jim Meyering  <meyering@redhat.com>
17070
17071         git-version-gen: skip "-dirty" check when appropriate
17072         * build-aux/git-version-gen: Don't run any git commands when the
17073         version string comes from .tarball-version.  Prior to this, we
17074         would run git update-index --refresh even from a just-unpacked
17075         tarball directory, and that could affect a .git/ directory in a
17076         parent of the build directory.  Reported by Mike Frysinger.
17077
17078 2011-02-19  Bruno Haible  <bruno@clisp.org>
17079
17080         unictype/property-byname: Reduce the size of the 'data' segment.
17081         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
17082
17083 2011-02-19  Bruno Haible  <bruno@clisp.org>
17084
17085         unictype/scripts: Reduce the size of the 'data' segment.
17086         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
17087         '%pic'.
17088         * lib/unictype/scripts_byname.gperf: Regenerated.
17089
17090 2011-02-19  Bruno Haible  <bruno@clisp.org>
17091
17092         stdint: Update documentation.
17093         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
17094
17095 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17096
17097         stdint: omit redundant check for wchar.h
17098         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
17099         always tests whether wchar.h exists, so remove the now-redundant test.
17100
17101 2011-02-18  Bruno Haible  <bruno@clisp.org>
17102
17103         stdint: Cut dependency to module 'wchar'.
17104         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
17105         include the necessary prerequisites.
17106         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
17107         * modules/stdint (Depends-on): Remove wchar.
17108         (Makefile.am): Substitute HAVE_WCHAR_H.
17109         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
17110
17111 2011-02-18  Eric Blake  <eblake@redhat.com>
17112
17113         longlong: skip, rather than fail, on cross-compilation
17114         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
17115         when cross-compiling; regression from 2011-02-16.
17116
17117 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17118
17119         * NEWS: Mention 2011-02-08 change to stdlib.
17120
17121 2011-02-17  Bruno Haible  <bruno@clisp.org>
17122
17123         getloadavg: Add comments about platforms.
17124         * m4/getloadavg.m4: Add comment.
17125         * lib/getloadavg.c: Likewise.
17126
17127 2011-02-17  Bruno Haible  <bruno@clisp.org>
17128
17129         getloadavg: Fix link error on Solaris 2.6.
17130         * modules/getloadavg (Link): New section.
17131         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
17132         linking test-getloadavg.
17133         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
17134         getloadavg.
17135
17136 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17137
17138         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
17139         It was 'int', but this doesn't match the IRIX 6.5 manual.
17140         Suggested by Bruno Haible in
17141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
17142
17143 2011-02-17  Bruno Haible  <bruno@clisp.org>
17144
17145         havelib: Fix comments.
17146         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
17147         change.
17148
17149 2011-02-17  Bruno Haible  <bruno@clisp.org>
17150
17151         havelib: Update config.rpath.
17152         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
17153
17154 2011-02-17  Bruno Haible  <bruno@clisp.org>
17155
17156         getloadavg test: Add some plausibility checks.
17157         * tests/test-getloadavg.c (check_avg): Print a warning when the value
17158         is improbable.
17159
17160 2011-02-16  Eric Blake  <eblake@redhat.com>
17161
17162         maintainer-makefile: make syntax-check a no-op from tarballs
17163         * top/maint.mk (no-vc-detected): New rule.
17164         (local-checks-available): Use it to avoid hanging if someone tries
17165         'make syntax-check' from a tarball.  Also append to any non-syntax
17166         checks already defined in cfg.mk.
17167
17168 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
17169
17170         longlong: tune, particularly for common case of c99
17171
17172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
17173         or running anything if c99, or if unsigned long long int does not
17174         work.  In either case, we know the answer without further tests.
17175         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
17176         it at most once, and use its results for both long long int and
17177         unsigned long long int.  This is more likely to be efficient in
17178         the common case where the program wants to check for both long
17179         long int and unsigned long long int.
17180         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
17181         since the answer is already known.
17182
17183 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
17184
17185         getloadavg: set errno
17186         * lib/getloadavg.c: Set errno when returning -1.  If no other
17187         error number looks appropriate, set it to ENOSYS if the getloadavg
17188         looks like it can't possibly ever work, ENOTSUP otherwise.
17189         Suggested by Bruno Haible in
17190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
17191
17192         getloadavg: trim unused parts and speed up 'configure'
17193         * NEWS: Document this.
17194         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
17195         always compiled if getloadavg is absent.
17196         Move test code to ...
17197         * tests/test-getloadavg.c: New file, containing previous
17198         contents of test from lib/getloadavg.c.  It also contains
17199         suggestions by Bruno Haible in
17200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
17201         * modules/getloadavg-tests: New file.
17202         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
17203         Do tests in the same order as they're needed for getloadavg.c.
17204         Omit setgid-related tests that generate symbols KMEM_GROUP,
17205         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
17206         Do only the tests that are needed to see whether the system has
17207         getloadavg, moving the other tests into ...
17208         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
17209         NLIST_NAME_UNION; nobody should be using it.  Do not define
17210         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
17211         relevant, as the user of this module shouldn't care how getloadavg
17212         is implemented.
17213
17214         getloadavg: omit unused var
17215         * lib/getloadavg.c (getloadavg): Omit unused local variable.
17216
17217 2011-02-15  Jim Meyering  <meyering@redhat.com>
17218
17219         doc: update users.txt
17220         * users.txt: Update iwhd's URL.
17221
17222 2011-02-13  Bruno Haible  <bruno@clisp.org>
17223
17224         Consistent macro naming for macros that use GCC __attribute__.
17225         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
17226         _ATTRIBUTE_NONNULL_.
17227         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
17228         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
17229         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
17230         ATTRIBUTE_DEPRECATED.
17231         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
17232         ATTRIBUTE_NORETURN.
17233         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17234         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17235         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17236         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17237         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
17238         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
17239         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
17240         ATTRIBUTE_SENTINEL.
17241         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
17242         ATTRIBUTE_RETURN_CHECK.
17243         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
17244         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
17245         ATTRIBUTE_NORETURN.
17246         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
17247         Reported by Paul Eggert.
17248
17249 2011-02-13  Bruno Haible  <bruno@clisp.org>
17250
17251         Don't interfere with a program's definition of __attribute__.
17252         * lib/argp.h (__attribute__): Remove definition.
17253         (_GL_ATTRIBUTE_FORMAT): New macro.
17254         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
17255         * lib/argp-fmtstream.h (__attribute__): Remove definition.
17256         (_GL_ATTRIBUTE_FORMAT): New macro.
17257         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
17258         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
17259         GCC 3 or newer.
17260         * lib/error.h (__attribute__): Remove definition.
17261         (_GL_ATTRIBUTE_FORMAT): New macro.
17262         (error, error_at_line): Use it.
17263         * lib/hash.h (__attribute__): Remove definition.
17264         (ATTRIBUTE_WUR): Update definition. Define always.
17265         * lib/openat.h (__attribute__): Remove definition.
17266         (ATTRIBUTE_NORETURN): Update definition. Define always.
17267         * lib/sigpipe-die.h (__attribute__): Remove definition.
17268         (ATTRIBUTE_NORETURN): Update definition. Define always.
17269         * lib/vasnprintf.h (__attribute__): Remove definition.
17270         (_GL_ATTRIBUTE_FORMAT): New macro.
17271         (asnprintf, vasnprintf): Use it.
17272         * lib/xalloc.h (__attribute__): Remove definition.
17273         (ATTRIBUTE_NORETURN): Update definition. Define always.
17274         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
17275         * lib/xmemdup0.h (__attribute__): Remove definition.
17276         (ATTRIBUTE_NORETURN): Update definition. Define always.
17277         * lib/xprintf.h (__attribute__): Remove definition.
17278         (_GL_ATTRIBUTE_FORMAT): New macro.
17279         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
17280         * lib/xstrtol.h (__attribute__): Remove definition.
17281         (ATTRIBUTE_NORETURN): Update definition. Define always.
17282         * lib/xvasprintf.h (__attribute__): Remove definition.
17283         (_GL_ATTRIBUTE_FORMAT): New macro.
17284         (xasprintf, xvasprintf): Use it.
17285         * tests/test-argmatch.c (__attribute__): Remove definition.
17286         (ATTRIBUTE_NORETURN): Update definition. Define always.
17287         * tests/test-exclude.c (__attribute__): Remove definition.
17288         (ATTRIBUTE_NORETURN): Update definition. Define always.
17289         Reported by Paul Eggert.
17290
17291 2011-02-13  Bruno Haible  <bruno@clisp.org>
17292
17293         mbrtowc: Add more tests for native Windows platforms.
17294         * tests/test-mbrtowc-w32-1.sh: New file.
17295         * tests/test-mbrtowc-w32-2.sh: New file.
17296         * tests/test-mbrtowc-w32-3.sh: New file.
17297         * tests/test-mbrtowc-w32-4.sh: New file.
17298         * tests/test-mbrtowc-w32-5.sh: New file.
17299         * tests/test-mbrtowc-w32.c: New file.
17300         * modules/mbrtowc-tests (Files): Add them.
17301         (Makefile.am): Arrange to run these tests.
17302         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
17303         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
17304
17305 2011-02-13  Bruno Haible  <bruno@clisp.org>
17306
17307         mbrtowc: Work around native Windows bug.
17308         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
17309         guess when no suitable locale for testing was found.
17310         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
17311
17312 2011-02-13  Bruno Haible  <bruno@clisp.org>
17313
17314         mbsinit: Work around mingw bug.
17315         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
17316         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
17317         Windows.
17318         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
17319
17320 2011-02-13  Bruno Haible  <bruno@clisp.org>
17321
17322         mbsinit: Don't crash for a NULL argument.
17323         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
17324         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
17325
17326 2011-02-13  Bruno Haible  <bruno@clisp.org>
17327
17328         Don't interfere with a program's definition of __attribute__.
17329         * lib/stdio.in.h (__attribute__): Remove definition.
17330         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
17331         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
17332         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
17333         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
17334         * lib/string.in.h (__attribute__): Remove definition.
17335         Reported by Paul Eggert.
17336
17337 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17338
17339         stdlib: don't get in the way of non-GCC __attribute__
17340         See thread starting at
17341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
17342         Revert previous stdlib change, installing the following instead:
17343         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
17344         to get in the way of a non-GCC compiler that supports __attribute__.
17345         (_GL_ATTRIBUTE_RETURN): New macro.
17346         (_Exit): Use it instead of __attribute__.
17347
17348 2011-02-12  Bruno Haible  <bruno@clisp.org>
17349
17350         quotearg test: Avoid test failure on mingw.
17351         * tests/test-quotearg.sh: Convert the locale identifier from native
17352         Windows syntax to Unix syntax.
17353
17354 2011-02-12  Bruno Haible  <bruno@clisp.org>
17355
17356         setlocale: Prefer gnulib's override over libintl's override.
17357         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
17358         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
17359         GNULIB_defined_setlocale is set.
17360
17361 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17362
17363         stdlib: support non-GCC __attribute__
17364
17365         Fix a serious and tricky problem encountered when attempting to
17366         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
17367         5.5, but it crashed due to memory corruption on Solaris 10 with
17368         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
17369         bits that are otherwise zero.  This tagging is optional inside
17370         Emacs but is preferred and is used when __attribute__ ((__aligned
17371         (8))) works, as it does with both recent-enough GCC and with Sun C
17372         5.11.  However, Sun C 5.11 is not GCC and does not #define
17373         __GNUC__ and __GNUC_MINOR__.
17374
17375         When I added the getloadavg module to Emacs, it brought in
17376         stdlib.in.h, which contained this fragment:
17377
17378            #ifndef __attribute__
17379            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
17380            #  define __attribute__(Spec)   /* empty */
17381            # endif
17382            #endif
17383
17384         When files that include <stdlib.h> were compiled with Sun C 5.11,
17385         the above code disabled __attribute__ ((__aligned (8))), which
17386         caused variables to not be properly aligned, which eventually led
17387         to the pointer corruption mentioned above.  (This was a bit hard
17388         to diagnose, unfortunately.)
17389
17390         Several "#define __attribute__(X) /* empty */" code snippets need
17391         to be eradicated from Gnulib to work with non-GCC compilers that
17392         support __attribute__.  The Autoconf way to do this is to test for
17393         each kind of attribute that we want support for, and selectively
17394         enable that in source code.
17395
17396         Fix this problem just for stdlib.h, by adding a test for the
17397         __noreturn__ attribute, and change stdlib.in.h to use that test
17398         when needed.  This technique can be easily generalized to the
17399         other *.in.h files and attributes, and a similar technique can be
17400         used for *.h and *.c files.  This patch is enough to solve the
17401         problem for Emacs + getloadavg, and I thought I'd publish it for
17402         feedback before undertaking further, similar fixes in other
17403         modules.
17404
17405         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
17406         because it's not needed for stdlib.h.  It merely substitutes the
17407         value directly into stdlib.h.  We may well need to #define it, or
17408         similar symbols, for other modules, but it's nice to also have an
17409         option to not #define it for applications like Emacs that do not
17410         need it.
17411
17412         * lib/stdlib.in.h (__attribute__): Do not #define.
17413         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
17414         be defined only if the _Exit module is also used.
17415         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
17416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
17417         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
17418         platforms.
17419         * modules/_Exit (Files): Add m4/attribute.m4.
17420         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
17421         * m4/attribute.m4: New file.
17422
17423 2011-02-12  Bruno Haible  <bruno@clisp.org>
17424
17425         wcsrtombs: Work around bug on native Windows.
17426         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
17427         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
17428         instead of len.
17429         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
17430
17431 2011-02-12  Bruno Haible  <bruno@clisp.org>
17432
17433         mbsrtowcs: Work around bug on native Windows.
17434         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
17435         against mingw bug.
17436         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
17437
17438 2011-02-12  Bruno Haible  <bruno@clisp.org>
17439
17440         Avoid setlocale bugs in tests.
17441         * modules/btowc (Dependencies): Add setlocale.
17442         * modules/c-strcase (Dependencies): Likewise.
17443         * modules/mbmemcasecmp (Dependencies): Likewise.
17444         * modules/mbmemcasecoll (Dependencies): Likewise.
17445         * modules/mbrtowc (Dependencies): Likewise.
17446         * modules/mbscasecmp (Dependencies): Likewise.
17447         * modules/mbscasestr (Dependencies): Likewise.
17448         * modules/mbschr (Dependencies): Likewise.
17449         * modules/mbscspn (Dependencies): Likewise.
17450         * modules/mbsinit (Dependencies): Likewise.
17451         * modules/mbsncasecmp (Dependencies): Likewise.
17452         * modules/mbsnrtowcs (Dependencies): Likewise.
17453         * modules/mbspbrk (Dependencies): Likewise.
17454         * modules/mbspcasecmp (Dependencies): Likewise.
17455         * modules/mbsrchr (Dependencies): Likewise.
17456         * modules/mbsrtowcs (Dependencies): Likewise.
17457         * modules/mbsspn (Dependencies): Likewise.
17458         * modules/mbsstr (Dependencies): Likewise.
17459         * modules/nl_langinfo (Dependencies): Likewise.
17460         * modules/quotearg (Dependencies): Likewise.
17461         * modules/unicase/locale-language (Dependencies): Likewise.
17462         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
17463         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
17464         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
17465         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
17466         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
17467         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
17468         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
17469         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
17470         * modules/vasnprintf-posix (Dependencies): Likewise.
17471         * modules/wcrtomb (Dependencies): Likewise.
17472         * modules/wcsnrtombs (Dependencies): Likewise.
17473         * modules/wcsrtombs (Dependencies): Likewise.
17474
17475 2011-02-12  Bruno Haible  <bruno@clisp.org>
17476
17477         setlocale: Workaround native Windows bug.
17478         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
17479         succeeds but sets LC_CTYPE to "C", report a failure.
17480         * tests/test-setlocale2.sh: New file.
17481         * tests/test-setlocale2.c: New file.
17482         * modules/setlocale-tests (Files): Add the new files.
17483         (Makefile.am): Enable test-setlocale2.sh test.
17484         * doc/posix-functions/setlocale.texi: Mention workaround.
17485
17486 2011-02-11  Bruno Haible  <bruno@clisp.org>
17487
17488         Tests for module 'setlocale'.
17489         * modules/setlocale-tests: New file.
17490         * tests/test-setlocale1.sh: New file.
17491         * tests/test-setlocale1.c: New file.
17492
17493         New module 'setlocale'.
17494         * lib/locale.in.h (setlocale): New declaration.
17495         * lib/setlocale.c: New file, based on
17496         gettext/gettext-runtime/intl/setlocale.c.
17497         * m4/setlocale.m4: New file.
17498         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
17499         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
17500         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
17501         REPLACE_SETLOCALE.
17502         * modules/setlocale: New file.
17503         * tests/test-locale-c++.cc: Test the declaration of setlocale.
17504         * doc/posix-functions/setlocale.texi: Mention the new module.
17505
17506 2011-02-11  Bruno Haible  <bruno@clisp.org>
17507
17508         Prepare for locale dependent tests on mingw.
17509         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
17510         because it has the wrong locale encoding.
17511         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
17512         French_France.1252 instead of "fr".
17513         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
17514         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
17515         because it has the wrong locale encoding.
17516         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
17517         native Windows, try Turkish_Turkey.65001.
17518         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
17519         Chinese_China.54936.
17520
17521         Prepare for locale dependent tests on mingw.
17522         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
17523         differently.
17524         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17525         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17526         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17527         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17528
17529 2011-02-11  Eric Blake  <eblake@redhat.com>
17530
17531         strptime: avoid compiler warnings
17532         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
17533         compiler warnings about dead code.
17534         Reported by Daniel P. Berrange.
17535
17536 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
17537
17538         doc: update users.txt
17539         * users.txt: Add rcs.
17540
17541 2011-02-10  John W. Eaton  <jwe@gnu.org>
17542
17543         doc: update users.txt
17544         * users.txt: Add octave.
17545
17546 2011-02-10  Jim Meyering  <meyering@redhat.com>
17547
17548         doc: update users.txt
17549         * users.txt: Add iwhd.
17550
17551 2011-02-09  Bruno Haible  <bruno@clisp.org>
17552
17553         gnulib-tool: Make copyright notice adjustment more robust.
17554         * gnulib-tool (func_import): In sed_transform_main_lib_file,
17555         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
17556         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
17557         License".
17558         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
17559
17560 2011-02-06  Bruno Haible  <bruno@clisp.org>
17561
17562         New module 'towctrans'.
17563         * modules/towctrans: New file.
17564         * lib/wctype.in.h (towctrans): New declaration.
17565         * lib/towctrans.c: New file.
17566         * lib/towctrans-impl.h: New file.
17567         * m4/towctrans.m4: New file.
17568         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
17569         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
17570         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
17571         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
17572         * doc/posix-functions/towctrans.texi: Mention the new module.
17573
17574 2011-02-06  Bruno Haible  <bruno@clisp.org>
17575
17576         New module 'wctrans'.
17577         * modules/wctrans: New file.
17578         * lib/wctype.in.h (wctrans): New declaration.
17579         * lib/wctrans.c: New file.
17580         * lib/wctrans-impl.h: New file.
17581         * m4/wctrans.m4: New file.
17582         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
17583         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
17584         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
17585         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
17586         * doc/posix-functions/wctrans.texi: Mention the new module.
17587
17588 2011-02-06  Bruno Haible  <bruno@clisp.org>
17589
17590         New module 'iswctype'.
17591         * modules/iswctype: New file.
17592         * lib/wctype.in.h (iswctype): New declaration.
17593         * lib/iswctype.c: New file.
17594         * lib/iswctype-impl.h: New file.
17595         * m4/iswctype.m4: New file.
17596         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
17597         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
17598         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
17599         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
17600         * doc/posix-functions/iswctype.texi: Mention the new module and the
17601         HP-UX 11.00 problem.
17602
17603 2011-02-06  Bruno Haible  <bruno@clisp.org>
17604
17605         New module 'wctype'.
17606         * modules/wctype: Change to represent the wctype() substitute.
17607         * lib/wctype.in.h (wctype): New declaration.
17608         * lib/wctype.c: New file.
17609         * lib/wctype-impl.h: New file.
17610         * m4/wctype.m4: New file.
17611         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
17612         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
17613         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
17614         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
17615         * doc/posix-functions/wctype.texi: Mention the new module and the
17616         HP-UX 11.00 problem.
17617
17618 2011-02-06  Bruno Haible  <bruno@clisp.org>
17619
17620         wctype-h: Ensure wctype_t and wctrans_t are defined.
17621         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
17622         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17623         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17624         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
17625         HAVE_WCTRANS_T.
17626         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
17627
17628 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17629
17630         flock: fix license typo
17631
17632         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
17633         omitted.
17634
17635 2011-02-08  Bruno Haible  <bruno@clisp.org>
17636
17637         Split large sed scripts, for HP-UX sed.
17638         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
17639         to avoid HP-UX limit of 99 commands, in the near future.
17640         * modules/stdlib (Makefile.am): Likewise.
17641         * modules/unistd (Makefile.am): Likewise.
17642         * modules/wchar (Makefile.am): Likewise.
17643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17644         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
17645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
17646
17647 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17648             Bruno Haible  <bruno@clisp.org>
17649
17650         stdlib: improve random_r modularization
17651         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
17652         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
17653         you also need the random_r module to get this material right.
17654         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
17655         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
17656         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
17657
17658 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17659
17660         stdlib: don't depend on stdint
17661         * lib/stdlib.in.h: Don't include <stdint.h> merely because
17662         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
17663         be independent of whether stdint.h is needed.
17664         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
17665         here, instead of ...
17666         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
17667         struct random_data should be using the random_r module, not just
17668         the stdlib module (which wouldn't make sense: what package needs
17669         just struct random_data without also needing random_r?).
17670         * modules/stdlib (Depends-on): Remove stdint.
17671
17672         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
17673         See the thread rooted at
17674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
17675         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
17676         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
17677         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
17678         __VMS)); previously it was always included (via fcntl--.h).
17679         (getloadavg): Do not use c_strtod.  Instead, approximate it by
17680         hand; this is good enough for load averages.  Also, do not use
17681         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
17682         flags directly if available and don't bother otherwise.  (Packages
17683         that need the extra reliability should use the modules that define
17684         these flags on older platforms that lack them.)
17685         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
17686         fcntl-safer.
17687
17688 2011-02-08  Jim Meyering  <meyering@redhat.com>
17689
17690         di-set.h, ino-map.h: add multiple-inclusion guard
17691         Technically, the guard is required only for ino-map.h, due to its
17692         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
17693         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
17694         * lib/ino-map.h: Likewise.
17695
17696 2011-02-06  Bruno Haible  <bruno@clisp.org>
17697
17698         iswblank: Ensure declaration on glibc systems.
17699         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
17700         * modules/iswblank (Dependencies): Add 'extensions'.
17701         * doc/posix-functions/iswblank.texi: Document the glibc problem.
17702
17703 2011-02-06  Bruno Haible  <bruno@clisp.org>
17704
17705         New module 'iswblank'.
17706         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
17707         * modules/iswblank: New file.
17708         * modules/wctype-h (Files): Remove lib/iswblank.c.
17709         (Makefile.am): Substitute GNULIB_ISWBLANK.
17710         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
17711         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17712         (gl_WCTYPE_H_DEFAULTS): New macro.
17713         (gl_WCTYPE_H): Require it. Remove iswblank related code.
17714         * modules/iswblank-tests: New file.
17715         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
17716         * tests/test-wctype-h.c (main): Remove iswblank tests.
17717         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
17718         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
17719         of 'wctype-h'.
17720         * NEWS: Mention the change.
17721         * modules/mbchar (Depends-on): Add iswblank.
17722
17723 2011-02-08  Bruno Haible  <bruno@clisp.org>
17724
17725         di-set tests: Refactor.
17726         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
17727         unnecessary includes.
17728         (ASSERT): Remove macro.
17729         (main): Make C90 compliant by avoiding variable declaration after
17730         statement.
17731         * modules/di-set-tests (Files): Add tests/macros.h.
17732
17733 2011-02-08  Bruno Haible  <bruno@clisp.org>
17734
17735         ino-map tests: Refactor.
17736         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
17737         unnecessary includes.
17738         (ASSERT): Remove macro.
17739         (main): Make C90 compliant by avoiding variable declaration after
17740         statement.
17741         * modules/ino-map-tests (Files): Add tests/macros.h.
17742
17743 2011-02-08  Jim Meyering  <meyering@redhat.com>
17744
17745         di-set: add "const" to a cast
17746         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
17747         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
17748
17749 2011-02-06  Bruno Haible  <bruno@clisp.org>
17750
17751         Rename module 'wctype' to 'wctype-h'.
17752         * modules/wctype-h: Renamed from modules/wctype.
17753         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
17754         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
17755         (Files, Depends-on, Makefile.am): Update.
17756         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
17757         (Files, Makefile.am): Update.
17758         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
17759         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
17760         * doc/posix-headers/wctype.texi: Update.
17761         * doc/posix-functions/iswalnum.texi: Update.
17762         * doc/posix-functions/iswalpha.texi: Update.
17763         * doc/posix-functions/iswblank.texi: Update.
17764         * doc/posix-functions/iswcntrl.texi: Update.
17765         * doc/posix-functions/iswdigit.texi: Update.
17766         * doc/posix-functions/iswgraph.texi: Update.
17767         * doc/posix-functions/iswlower.texi: Update.
17768         * doc/posix-functions/iswprint.texi: Update.
17769         * doc/posix-functions/iswpunct.texi: Update.
17770         * doc/posix-functions/iswspace.texi: Update.
17771         * doc/posix-functions/iswupper.texi: Update.
17772         * doc/posix-functions/iswxdigit.texi: Update.
17773         * doc/posix-functions/towlower.texi: Update.
17774         * doc/posix-functions/towupper.texi: Update.
17775         * NEWS: Mention the change.
17776         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
17777         * modules/mbchar (Dependencies): Likewise.
17778         * modules/mbswidth (Dependencies): Likewise.
17779         * modules/quotearg (Dependencies): Likewise.
17780         * modules/regex (Dependencies): Likewise.
17781         * modules/wcscasecmp (Dependencies): Likewise.
17782         * modules/wcsncasecmp (Dependencies): Likewise.
17783         * modules/wcwidth (Dependencies): Likewise.
17784
17785 2011-02-06  Bruno Haible  <bruno@clisp.org>
17786
17787         New module 'wcswidth'.
17788         * modules/wcswidth: New file.
17789         * lib/wchar.in.h (wcswidth): New declaration.
17790         * lib/wcswidth.c: New file.
17791         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
17792         * m4/wcswidth.m4: New file.
17793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
17794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
17795         REPLACE_WCSWIDTH.
17796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
17797         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
17798         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
17799         * doc/posix-functions/wcswidth.texi: Mention the new module.
17800
17801 2011-02-06  Bruno Haible  <bruno@clisp.org>
17802
17803         New module 'wcstok'.
17804         * modules/wcstok: New file.
17805         * lib/wchar.in.h (wcstok): New declaration.
17806         * lib/wcstok.c: New file.
17807         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17808         * m4/wcstok.m4: New file.
17809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17812         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17813         * doc/posix-functions/wcstok.texi: Mention the new module.
17814
17815 2011-02-06  Bruno Haible  <bruno@clisp.org>
17816
17817         New module 'wcsstr'.
17818         * modules/wcsstr: New file.
17819         * lib/wchar.in.h (wcsstr): New declaration.
17820         * lib/wcsstr.c: New file.
17821         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17822         * m4/wcsstr.m4: New file.
17823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17826         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17827         * doc/posix-functions/wcsstr.texi: Mention the new module.
17828
17829 2011-02-06  Bruno Haible  <bruno@clisp.org>
17830
17831         New module 'wcspbrk'.
17832         * modules/wcspbrk: New file.
17833         * lib/wchar.in.h (wcspbrk): New declaration.
17834         * lib/wcspbrk.c: New file.
17835         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17836         * m4/wcspbrk.m4: New file.
17837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17840         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17841         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17842
17843 2011-02-06  Bruno Haible  <bruno@clisp.org>
17844
17845         New module 'wcsspn'.
17846         * modules/wcsspn: New file.
17847         * lib/wchar.in.h (wcsspn): New declaration.
17848         * lib/wcsspn.c: New file.
17849         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17850         * m4/wcsspn.m4: New file.
17851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17854         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17855         * doc/posix-functions/wcsspn.texi: Mention the new module.
17856
17857 2011-02-06  Bruno Haible  <bruno@clisp.org>
17858
17859         New module 'wcscspn'.
17860         * modules/wcscspn: New file.
17861         * lib/wchar.in.h (wcscspn): New declaration.
17862         * lib/wcscspn.c: New file.
17863         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17864         * m4/wcscspn.m4: New file.
17865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17868         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17869         * doc/posix-functions/wcscspn.texi: Mention the new module.
17870
17871 2011-02-06  Bruno Haible  <bruno@clisp.org>
17872
17873         New module 'wcsrchr'.
17874         * modules/wcsrchr: New file.
17875         * lib/wchar.in.h (wcsrchr): New declaration.
17876         * lib/wcsrchr.c: New file.
17877         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17878         * m4/wcsrchr.m4: New file.
17879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17882         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17883         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17884
17885 2011-02-06  Bruno Haible  <bruno@clisp.org>
17886
17887         New module 'wcschr'.
17888         * modules/wcschr: New file.
17889         * lib/wchar.in.h (wcschr): New declaration.
17890         * lib/wcschr.c: New file.
17891         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17892         * m4/wcschr.m4: New file.
17893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17896         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17897         * doc/posix-functions/wcschr.texi: Mention the new module.
17898
17899 2011-02-06  Bruno Haible  <bruno@clisp.org>
17900
17901         New module 'wcsdup'.
17902         * modules/wcsdup: New file.
17903         * lib/wchar.in.h (wcsdup): New declaration.
17904         * lib/wcsdup.c: New file.
17905         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17906         * m4/wcsdup.m4: New file.
17907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17910         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17911         * doc/posix-functions/wcsdup.texi: Mention the new module.
17912
17913 2011-02-06  Bruno Haible  <bruno@clisp.org>
17914
17915         New module 'wcsxfrm'.
17916         * modules/wcsxfrm: New file.
17917         * lib/wchar.in.h (wcsxfrm): New declaration.
17918         * lib/wcsxfrm.c: New file.
17919         * lib/wcsxfrm-impl.h: New file.
17920         * m4/wcsxfrm.m4: New file.
17921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17924         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17925         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17926
17927 2011-02-06  Bruno Haible  <bruno@clisp.org>
17928
17929         New module 'wcscoll'.
17930         * modules/wcscoll: New file.
17931         * lib/wchar.in.h (wcscoll): New declaration.
17932         * lib/wcscoll.c: New file.
17933         * lib/wcscoll-impl.h: New file.
17934         * m4/wcscoll.m4: New file.
17935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17938         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17939         * doc/posix-functions/wcscoll.texi: Mention the new module.
17940
17941 2011-02-06  Bruno Haible  <bruno@clisp.org>
17942
17943         New module 'wcsncasecmp'.
17944         * modules/wcsncasecmp: New file.
17945         * lib/wchar.in.h (wcsncasecmp): New declaration.
17946         * lib/wcsncasecmp.c: New file.
17947         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17948         * m4/wcsncasecmp.m4: New file.
17949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17952         HAVE_WCSNCASECMP.
17953         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17954         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17955
17956 2011-02-06  Bruno Haible  <bruno@clisp.org>
17957
17958         New module 'wcscasecmp'.
17959         * modules/wcscasecmp: New file.
17960         * lib/wchar.in.h (wcscasecmp): New declaration.
17961         * lib/wcscasecmp.c: New file.
17962         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17963         * m4/wcscasecmp.m4: New file.
17964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17967         HAVE_WCSCASECMP.
17968         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17969         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17970
17971 2011-02-05  Bruno Haible  <bruno@clisp.org>
17972
17973         New module 'wcsncmp'.
17974         * modules/wcsncmp: New file.
17975         * lib/wchar.in.h (wcsncmp): New declaration.
17976         * lib/wcsncmp.c: New file.
17977         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17978         * m4/wcsncmp.m4: New file.
17979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17982         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17983         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17984
17985 2011-02-05  Bruno Haible  <bruno@clisp.org>
17986
17987         New module 'wcscmp'.
17988         * modules/wcscmp: New file.
17989         * lib/wchar.in.h (wcscmp): New declaration.
17990         * lib/wcscmp.c: New file.
17991         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17992         * m4/wcscmp.m4: New file.
17993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17996         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17997         * doc/posix-functions/wcscmp.texi: Mention the new module.
17998
17999 2011-02-05  Bruno Haible  <bruno@clisp.org>
18000
18001         New module 'wcsncat'.
18002         * modules/wcsncat: New file.
18003         * lib/wchar.in.h (wcsncat): New declaration.
18004         * lib/wcsncat.c: New file.
18005         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
18006         * m4/wcsncat.m4: New file.
18007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
18008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
18009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
18010         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
18011         * doc/posix-functions/wcsncat.texi: Mention the new module.
18012
18013 2011-02-05  Bruno Haible  <bruno@clisp.org>
18014
18015         New module 'wcscat'.
18016         * modules/wcscat: New file.
18017         * lib/wchar.in.h (wcscat): New declaration.
18018         * lib/wcscat.c: New file.
18019         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
18020         * m4/wcscat.m4: New file.
18021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
18022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
18023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
18024         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
18025         * doc/posix-functions/wcscat.texi: Mention the new module.
18026
18027 2011-02-05  Bruno Haible  <bruno@clisp.org>
18028
18029         New module 'wcpncpy'.
18030         * modules/wcpncpy: New file.
18031         * lib/wchar.in.h (wcpncpy): New declaration.
18032         * lib/wcpncpy.c: New file.
18033         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
18034         * m4/wcpncpy.m4: New file.
18035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
18036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
18037         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
18038         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
18039         * doc/posix-functions/wcpncpy.texi: Mention the new module.
18040
18041 2011-02-05  Bruno Haible  <bruno@clisp.org>
18042
18043         New module 'wcsncpy'.
18044         * modules/wcsncpy: New file.
18045         * lib/wchar.in.h (wcsncpy): New declaration.
18046         * lib/wcsncpy.c: New file.
18047         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
18048         * m4/wcsncpy.m4: New file.
18049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
18050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
18051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
18052         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
18053         * doc/posix-functions/wcsncpy.texi: Mention the new module.
18054
18055 2011-02-05  Bruno Haible  <bruno@clisp.org>
18056
18057         New module 'wcpcpy'.
18058         * modules/wcpcpy: New file.
18059         * lib/wchar.in.h (wcpcpy): New declaration.
18060         * lib/wcpcpy.c: New file.
18061         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
18062         * m4/wcpcpy.m4: New file.
18063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
18064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
18065         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
18066         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
18067         * doc/posix-functions/wcpcpy.texi: Mention the new module.
18068
18069 2011-02-05  Bruno Haible  <bruno@clisp.org>
18070
18071         New module 'wcscpy'.
18072         * modules/wcscpy: New file.
18073         * lib/wchar.in.h (wcscpy): New declaration.
18074         * lib/wcscpy.c: New file.
18075         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
18076         * m4/wcscpy.m4: New file.
18077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
18078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
18079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
18080         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
18081         * doc/posix-functions/wcscpy.texi: Mention the new module.
18082
18083 2011-02-05  Bruno Haible  <bruno@clisp.org>
18084
18085         New module 'wcsnlen'.
18086         * modules/wcsnlen: New file.
18087         * lib/wchar.in.h (wcsnlen): New declaration.
18088         * lib/wcsnlen.c: New file.
18089         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
18090         * m4/wcsnlen.m4: New file.
18091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
18092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
18093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
18094         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
18095         * doc/posix-functions/wcsnlen.texi: Mention the new module.
18096
18097 2011-02-05  Bruno Haible  <bruno@clisp.org>
18098
18099         New module 'wcslen'.
18100         * modules/wcslen: New file.
18101         * lib/wchar.in.h (wcslen): New declaration.
18102         * lib/wcslen.c: New file.
18103         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
18104         * m4/wcslen.m4: New file.
18105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
18106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
18107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
18108         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
18109         * doc/posix-functions/wcslen.texi: Mention the new module.
18110
18111 2011-02-05  Bruno Haible  <bruno@clisp.org>
18112
18113         New module 'wmemset'.
18114         * modules/wmemset: New file.
18115         * lib/wchar.in.h (wmemset): New declaration.
18116         * lib/wmemset.c: New file.
18117         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
18118         * m4/wmemset.m4: New file.
18119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
18120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
18121         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
18122         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
18123         * doc/posix-functions/wmemset.texi: Mention the new module.
18124
18125 2011-02-05  Bruno Haible  <bruno@clisp.org>
18126
18127         New module 'wmemmove'.
18128         * modules/wmemmove: New file.
18129         * lib/wchar.in.h (wmemmove): New declaration.
18130         * lib/wmemmove.c: New file.
18131         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
18132         * m4/wmemmove.m4: New file.
18133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
18134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
18135         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
18136         HAVE_WMEMMOVE.
18137         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
18138         * doc/posix-functions/wmemmove.texi: Mention the new module.
18139
18140 2011-02-05  Bruno Haible  <bruno@clisp.org>
18141
18142         New module 'wmemcpy'.
18143         * modules/wmemcpy: New file.
18144         * lib/wchar.in.h (wmemcpy): New declaration.
18145         * lib/wmemcpy.c: New file.
18146         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
18147         * m4/wmemcpy.m4: New file.
18148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
18149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
18150         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
18151         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
18152         * doc/posix-functions/wmemcpy.texi: Mention the new module.
18153
18154 2011-02-05  Bruno Haible  <bruno@clisp.org>
18155
18156         New module 'wmemcmp'.
18157         * modules/wmemcmp: New file.
18158         * lib/wchar.in.h (wmemcmp): New declaration.
18159         * lib/wmemcmp.c: New file.
18160         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
18161         * m4/wmemcmp.m4: New file.
18162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
18163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
18164         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
18165         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
18166         * doc/posix-functions/wmemcmp.texi: Mention the new module.
18167
18168 2011-02-07  Jim Meyering  <meyering@redhat.com>
18169
18170         di-set, ino-map: new modules, from coreutils
18171         * lib/di-set.c: New file.
18172         * lib/di-set.h: Likewise.
18173         * lib/ino-map.c: Likewise.
18174         * lib/ino-map.h: Likewise.
18175         * modules/di-set: Likewise.
18176         * modules/di-set-tests: Likewise.
18177         * modules/ino-map: Likewise.
18178         * modules/ino-map-tests: Likewise.
18179         * tests/test-di-set.c: Likewise.
18180         * tests/test-ino-map.c: Likewise.
18181
18182 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
18183
18184         getloadavg: merge minor changes from Emacs
18185
18186         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
18187         (getloadavg): Use memset, not bzero.
18188
18189         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
18190         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18191         clash (bug#86).
18192
18193 2010-11-14  Bruno Haible  <bruno@clisp.org>
18194
18195         Allow multiple gnulib generated replacements to coexist.
18196         * lib/getopt.in.h (struct option): Avoid identical redefinition.
18197         * lib/inttypes.in.h (imaxdiv_t): Likewise.
18198         * lib/langinfo.in.h (nl_item): Likewise.
18199         * lib/math.in.h (_NaN, NAN): Likewise.
18200         * lib/netdb.in.h (struct addrinfo): Likewise.
18201         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
18202         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
18203         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
18204         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
18205         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
18206         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
18207         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
18208         pthread_mutexattr_init, pthread_mutexattr_settype,
18209         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
18210         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
18211         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
18212         pthread_spin_trylock, pthread_spin_unlock): Likewise.
18213         * lib/sched.in.h (struct sched_param): Likewise.
18214         * lib/se-selinux.in.h (security_class_t, security_context_t,
18215         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
18216         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
18217         lsetfilecon, fsetfilecon, security_check_context,
18218         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
18219         Likewise.
18220         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
18221         Likewise.
18222         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
18223         _gl_function_taking_int_returning_void_t, union sigval,
18224         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
18225         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
18226         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18227         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
18228         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
18229         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
18230         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
18231         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
18232         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
18233         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
18234         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
18235         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
18236         socklen_t, rpl_fd_isset): Likewise.
18237         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
18238         * lib/sys_time.in.h (struct timeval): Likewise.
18239         * lib/sys_times.in.h (struct tms): Likewise.
18240         * lib/sys_utsname.in.h (struct utsname):
18241         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
18242         * lib/unistd.in.h (getpagesize): Likewise.
18243         * lib/wchar.in.h (mbstate_t): Likewise.
18244         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18245         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
18246         towlower, towupper): Likewise.
18247         Reported by Sam Steingold <sds@gnu.org>.
18248
18249 2011-02-05  Eric Blake  <eblake@redhat.com>
18250
18251         unsetenv: work around Haiku issues
18252         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
18253         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
18254
18255 2010-12-30  Bruce Korb  <bkorb@gnu.org>
18256
18257         libposix: avoid calling error() within libposix
18258         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
18259         is defined.
18260
18261 2011-02-05  Eric Blake  <eblake@redhat.com>
18262
18263         strerror_r-posix: port to cygwin
18264         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
18265         implementation.
18266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
18267         * tests/test-strerror_r.c (main): Fix test.
18268         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18269         issue.
18270
18271 2011-02-05  Bruno Haible  <bruno@clisp.org>
18272
18273         New module 'wmemchr'.
18274         * modules/wmemchr: New file.
18275         * lib/wchar.in.h (wmemchr): New declaration.
18276         * lib/wmemchr.c: New file.
18277         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
18278         * m4/wmemchr.m4: New file.
18279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
18280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
18281         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
18282         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
18283         * doc/posix-functions/wmemchr.texi: Mention the new module.
18284
18285 2011-02-04  Eric Blake  <eblake@redhat.com>
18286
18287         fdopendir: detect FreeBSD bug
18288         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
18289         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
18290
18291 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18292
18293         stdbool: do not define HAVE_STDBOOL_H
18294         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
18295         AC_HEADER_STDBOOL.  All uses changed.  Do not define
18296         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
18297         imported from the latest Autoconf git.  It was motivated by Emacs,
18298         which uses gnulib but does not need HAVE_STDBOOL_H.
18299
18300 2011-02-04  Bruno Haible  <bruno@clisp.org>
18301
18302         wcsnrtombs: Prepare for new module wwcsnrtombs.
18303         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
18304         * lib/wcsnrtombs.c: Include it.
18305         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
18306
18307         wcsrtombs: Prepare for new module wwcsrtombs.
18308         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
18309         * lib/wcsrtombs.c: Include it.
18310         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
18311
18312         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
18313         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
18314         * lib/mbsnrtowcs.c: Include it.
18315         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
18316
18317         mbsrtowcs: Prepare for new module mbsrtowwcs.
18318         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
18319         * lib/mbsrtowcs.c: Include it.
18320         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
18321
18322 2011-02-04  Bruno Haible  <bruno@clisp.org>
18323
18324         vasnprintf: Reduce use of malloc for small format strings.
18325         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
18326         (arguments): Add room for the first 7 arguments.
18327         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
18328         (char_directives, u8_directives, u16_directives, u32_directives): Add
18329         room for the first 7 directives.
18330         * lib/printf-parse.c: Include <string.h>.
18331         (PRINTF_PARSE): Change memory handling code so that it uses the first
18332         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
18333         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
18334         Reported by Pádraig Brady <P@draigbrady.com>.
18335
18336 2011-01-31  Eric Blake  <eblake@redhat.com>
18337
18338         dup2: work around Haiku bug
18339         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
18340         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
18341         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18342         * tests/test-dup2.c (main): Enhance test.
18343
18344 2011-01-31  Simon Josefsson  <simon@josefsson.org>
18345
18346         doc: off_t is not available in eglibc 2.11.2 stdio.h.
18347         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
18348         declared by eglibc 2.11.2.
18349         * lib/stdio.in.h: Likewise.
18350
18351 2011-01-31  Eric Blake  <eblake@redhat.com>
18352
18353         ignore-value: add missing test dependency
18354         * tests/test-ignore-value.c: Revert previous change; stdio.h
18355         provides off_t.
18356         * modules/ignore-value-tests (Depends-on): Add missing dependency.
18357
18358 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
18359
18360         mktime: clarify long_int width checking
18361         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
18362         the top level, to make it clearer that the assumption about
18363         long_int width is being checked.  See
18364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
18365
18366 2011-01-30  Simon Josefsson  <simon@josefsson.org>
18367
18368         ignore-value: Fix self-test.
18369         * tests/test-ignore-value.c: Include sys/types.h for off_t.
18370
18371 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18372
18373         TYPE_MAXIMUM: avoid theoretically undefined behavior
18374         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
18375         negative number, which the C Standard says has undefined behavior.
18376         In practice this is not a problem, but might as well do it by the book.
18377         Reported by Rich Felker and Eric Blake; see
18378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
18379         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
18380         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18382         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
18383         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18384         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
18385
18386         mktime: #undef mktime before #defining it
18387         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
18388
18389         mktime: systematically normalize tm_isdst comparisons
18390         * lib/mktime.c (isdst_differ): New function.
18391         (__mktime_internal): Use it systematically for all isdst comparisons.
18392         This completes the fix for libc BZ #6723, and removes the need for
18393         normalizing tm_isdst.  See
18394         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
18395         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
18396
18397         mktime: fix some integer overflow issues and sidestep the rest
18398
18399         This was prompted by a bug report by Benjamin Lindner for MinGW
18400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
18401         His bug is due to signed integer overflow (0 - INT_MIN), and I
18402         I scanned through mktime.c looking for other integer overflow
18403         problems, fixing all the bugs I found.
18404
18405         Although the C Standard says the resulting code is still not safe
18406         in the presence of integer overflow, in practice it should be good
18407         enough for all real-world two's-complement implementations, except
18408         for debugging environments that deliberately trap on integer
18409         overflow (e.g., gcc -ftrapv).
18410
18411         * lib/mktime.c (WRAPV): New macro.
18412         (SHR): Also check that long_int and time_t shift right in the
18413         usual way, before using the fast-but-unportable method.
18414         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
18415         used.  The code already assumed two's complement, so there's
18416         no need to test for alternatives.  All uses removed.
18417         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
18418         the C standard.  Problem reported by Rich Felker in
18419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
18420         (twos_complement_arithmetic): Also check long_int and time_t.
18421         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
18422         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
18423         (__mktime_internal): Avoid integer overflow with unary subtraction
18424         in two instances where -1 - X is an adequate replacement for -X,
18425         since the calculations are approximate.
18426
18427 2011-01-29  Eric Blake  <eblake@redhat.com>
18428
18429         mktime: avoid infinite loop
18430         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
18431         type; behavior is still undefined but portable to all known targets.
18432         Reported by Rich Felker.
18433
18434 2011-01-29  Simon Josefsson  <simon@josefsson.org>
18435
18436         rename, unlink, same-inode: Relicense.
18437         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
18438         * modules/unlink (License): Likewise.
18439         * modules/same-inode (License): Likewise.
18440
18441 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18442
18443         mktime: avoid problems on NetBSD 5 / i386
18444         * lib/mktime.c (long_int): New type.  This works around a problem
18445         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
18446         but time_t is 64 bits, and where I expect the existing code is
18447         wrong in some cases.
18448         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
18449         (ydhms_diff): Bring back the compile-time check for wide-enough
18450         year and yday.
18451
18452         mktime: fix misspelling in comment
18453         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
18454         This merges all recent glibc changes of importance.
18455
18456 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18457
18458         move-if-change: cope with concurrent mv of identical file.
18459         * build-aux/move-if-change (CMPPROG): Accept environment
18460         variable as an override for `cmp'.
18461         (usage): Document CMPPROG.
18462         Adjust comparison to drop stdout.  Cope with failure of mv if
18463         the target file exists and is identical to the source, for
18464         parallel builds.
18465         Report from H.J. Lu against binutils in PR binutils/12283.
18466
18467 2011-01-28  Bruce Korb  <bkorb@gnu.org>
18468
18469         * users.txt: Mention sharutils.
18470
18471 2011-01-28  Simon Josefsson  <simon@josefsson.org>
18472
18473         * users.txt: Mention OATH Toolkit.
18474
18475 2011-01-27  Bruno Haible  <bruno@clisp.org>
18476
18477         Prepare for supporting FreeBSD 10.
18478         * build-aux/config.libpath: Remove handling of freebsd1*.
18479
18480 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
18481
18482         Prepare for supporting FreeBSD 10.
18483         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
18484         match FreeBSD 10.0.
18485
18486 2011-01-27  Bruno Haible  <bruno@clisp.org>
18487
18488         vma-iter, get-rusage-as: Add OpenBSD support.
18489         * modules/vma-iter (configure.ac): Test for mquery.
18490         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
18491         * lib/vma-iter.c: Include <sys/mman.h>.
18492         (vma_iterate): Add an implementation based on mquery().
18493         * lib/resource-ext.h (get_rusage_as): Update comments.
18494         * lib/get-rusage-as.c: Likewise.
18495         * lib/get-rusage-data.c: Likewise.
18496
18497 2011-01-26  Karl Berry  <karl@gnu.org>
18498
18499         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
18500         variables to make it easier to override the makeinfo program used.
18501
18502 2011-01-26  Eric Blake  <eblake@redhat.com>
18503
18504         fcntl: work around Haiku F_DUPFD bugs
18505         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
18506         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
18507         cloexec bit on duplication.
18508         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
18509
18510 2011-01-26  Bruno Haible  <bruno@clisp.org>
18511
18512         Enable memory leak tests on AIX.
18513         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
18514         * tests/test-fprintf-posix3.c (main): Likewise.
18515
18516 2011-01-26  Bruno Haible  <bruno@clisp.org>
18517
18518         Tests for module 'get-rusage-data'.
18519         * modules/get-rusage-data-tests: New file.
18520         * tests/test-get-rusage-data.c: New file.
18521
18522         New module 'get-rusage-data'.
18523         * lib/resource-ext.h (get_rusage_data): New declaration.
18524         * lib/get-rusage-data.c: New file.
18525         * modules/get-rusage-data: New file.
18526
18527 2011-01-25  Bruno Haible  <bruno@clisp.org>
18528
18529         get-rusage-as: Allow for easier testing.
18530         * lib/resource-ext.h (get_rusage_as): Add comment.
18531         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
18532         (main): New function for interactive testing.
18533
18534 2011-01-25  Bruno Haible  <bruno@clisp.org>
18535
18536         vma-iter: Treat Haiku like BeOS.
18537         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
18538         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
18539
18540 2011-01-25  Eric Blake  <eblake@redhat.com>
18541
18542         c-stack: fix regression on cygwin when libsigsegv is present
18543         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
18544
18545 2011-01-24  Bruno Haible  <bruno@clisp.org>
18546
18547         vma-iter: Avoid empty intervals.
18548         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
18549         on an empty interval.
18550
18551 2011-01-24  Jim Meyering  <meyering@redhat.com>
18552
18553         u64: remove unnecessary #include
18554         * lib/u64.h: Don't include <stddef.h>.  It was not used.
18555
18556 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18557
18558         Allow the user to avoid the HAVE_RAW_DECL_* macros.
18559         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
18560
18561 2011-01-23  Bruno Haible  <bruno@clisp.org>
18562
18563         New module 'vma-iter'.
18564         * lib/vma-iter.h: New file.
18565         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
18566         * modules/vma-iter: New file.
18567         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
18568         for get_rusage_as_via_iterator.
18569         (vma_iterate_callback): New function.
18570         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
18571         * modules/get-rusage-as (Depends-on): Add vma-iter.
18572
18573 2011-01-23  Bruno Haible  <bruno@clisp.org>
18574
18575         uninorm: Tweak includes.
18576         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
18577         Reported by Jim Meyering.
18578
18579 2011-01-23  Bruno Haible  <bruno@clisp.org>
18580
18581         get-rusage-as: Improve on NetBSD.
18582         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
18583         /proc, like on FreeBSD.
18584
18585 2011-01-23  Jim Meyering  <meyering@redhat.com>
18586
18587         xreadlink.h: remove unnecessary #include
18588         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
18589
18590         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
18591         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
18592
18593 2011-01-23  Bruno Haible  <bruno@clisp.org>
18594
18595         get-rusage-as: Fix bug.
18596         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
18597         original limit when aborting the first loop.
18598
18599 2011-01-23  Bruno Haible  <bruno@clisp.org>
18600
18601         wctype: Ensure valid C syntax.
18602         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
18603         unconditionally, instead of gl_NEXT_HEADERS conditionally.
18604
18605 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
18608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
18609         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
18610         as they are needed only for configure's test case.
18611         This removes two unnecessary symbols from config.h.
18612
18613         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
18614         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
18615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
18616         AC_CHECK_HEADERS_ONCE on a header that we also invoke
18617         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
18618         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
18619         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
18620         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
18621         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18622         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18623         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18625         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18626         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18627         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
18628         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18629         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18630         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18631
18632 2011-01-21  Eric Blake  <eblake@redhat.com>
18633
18634         maintainer-makefile: work with older git for submodule check
18635         * top/maint.mk (public-submodule-commit): Rewrite to avoid
18636         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
18637         Reported by Matthias Bolte.
18638
18639         bootstrap: minor portability fixes
18640         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
18641         (usage): Omit leading capital and trailing . on help phrases, per
18642         GNU Coding Standards.
18643         (check_versions, top level): Prefix messages with script name.
18644
18645 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
18646
18647         bootstrap: support --no-git option
18648         * build-aux/bootstrap: Add --no-git option, to be used when
18649         --gnulib-srcdir points to the exact desired checkout.
18650
18651 2011-01-21  Eric Blake  <eblake@redhat.com>
18652
18653         strerror_r-posix: work with glibc 2.13
18654         * lib/strerror_r.c (strerror_r): Fix return type.
18655
18656 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18657             Bruno Haible  <bruno@clisp.org>
18658
18659         uN_strstr: New unit tests.
18660         * modules/unistr/u8-strstr-tests: New file.
18661         * modules/unistr/u16-strstr-tests: New file.
18662         * modules/unistr/u32-strstr-tests: New file.
18663         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
18664         * tests/unistr/test-u8-strstr.c: New file.
18665         * tests/unistr/test-u16-strstr.c: New file.
18666         * tests/unistr/test-u32-strstr.c: New file.
18667
18668 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18669             Bruno Haible  <bruno@clisp.org>
18670
18671         Make uN_strstr functions O(n) worst-case.
18672         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
18673         16-bit and 32-bit unit cases, use the unibyte algorithm from
18674         lib/mbsstr.c.
18675         * lib/unistr/u8-strstr.c: Include <string.h>.
18676         (UNIT_IS_UINT8_T): New macro.
18677         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
18678         (U_STRLEN, U_STRNLEN): New macros.
18679         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
18680         (U_STRLEN, U_STRNLEN): New macros.
18681         * modules/unistr/u8-strstr (Depends-on): Add strstr.
18682         (configure.ac): Update required libunistring version.
18683         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
18684         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
18685         malloca.
18686         (configure.ac): Update required libunistring version.
18687         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
18688         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
18689         malloca.
18690         (configure.ac): Update required libunistring version.
18691
18692 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18693             Bruno Haible  <bruno@clisp.org>
18694
18695         Prepare for faster uN_strstr functions.
18696         * lib/str-kmp.h: Support definable UNITs.
18697         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
18698         needle_len argument.
18699         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
18700         * lib/mbscasestr.c (mbscasestr): Likewise.
18701
18702 2011-01-21  Pádraig Brady <P@draigBrady.com>
18703
18704         malloca-tests: make faster by unsetting MALLOC_PERTURB_
18705         * tests/test-malloca.c (main): Unset the environment variable
18706         to greatly speed up the test.
18707         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
18708         * modules/malloca-tests: Depend on unsetenv.
18709
18710 2011-01-21  Pádraig Brady <P@draigBrady.com>
18711
18712         ignore-value: remove stdint dependency
18713         * lib/ignore-value.h: Remove <stdint.h>
18714         * modules/ignore-value: Remove stdint dependency.
18715
18716 2011-01-21  Jim Meyering  <meyering@redhat.com>
18717
18718         maint.mk: adjust variable name to be consistent with other gl_ vars
18719         * top/maint.mk (gl_public_submodule_commit): Rename the variable
18720         to be lower case.
18721
18722 2011-01-20  Jim Meyering  <meyering@redhat.com>
18723
18724         maint.mk: make "check" depend on public-submodule-commit by default
18725         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
18726
18727 2011-01-20  Bruno Haible  <bruno@clisp.org>
18728
18729         mbfile, mbiter: Complete change from 2008-12-21.
18730         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
18731         * m4/mbiter.m4 (gl_MBITER): Likewise.
18732
18733 2011-01-20  Jim Meyering  <meyering@redhat.com>
18734
18735         init.sh: insert space between each function name and "()"
18736         * tests/init.sh: Make it a little easier to see that a function's
18737         name is "warn_", and not "warn" when looking at the first part of
18738         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
18739
18740 2011-01-20  Jim Meyering  <meyering@redhat.com>
18741
18742         mountlist: clean up code formatting
18743         * lib/mountlist.c (read_file_system_list): Split a long line,
18744         correct bracing style, use NULL in place of "(struct statfs *)0",
18745         don't parenthesize return value, add spaces around "=" and after
18746         ";-in-for-stmt".
18747
18748 2011-01-14  Markus Duft <mduft@gentoo.org>
18749
18750         mountlist: add support for Interix
18751         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
18752         Apply statvfs to all entries of /dev/fs.
18753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
18754         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
18755
18756 2011-01-20  Jim Meyering  <meyering@redhat.com>
18757
18758         maint.mk: improve the public-submodule-commit rule
18759         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
18760         to suppress printing of its commands... unless V=1.
18761         Add git submodule's --quiet option to suppress printing of e.g.,
18762         "Entering gnulib" output.
18763         "cd" into $(srcdir) before running git submodule.
18764
18765 2011-01-20  Bruno Haible  <bruno@clisp.org>
18766
18767         include_next: Fix bug introduced on 2011-01-18.
18768         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
18769         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
18770         ac_cv_header_... variable if the second argument is not 'check'.
18771         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
18772         gl_NEXT_HEADERS_INTERNAL.
18773
18774 2011-01-20  Bruno Haible  <bruno@clisp.org>
18775
18776         Allow the user to avoid the GNULIB_TEST_* macros.
18777         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
18778         Suggested by Paul Eggert.
18779
18780 2011-01-14  Jim Meyering  <meyering@redhat.com>
18781
18782         bootstrap: avoid failure when there is no .gitmodules file
18783         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
18784         has been assigned to, even when its value is the empty string.
18785         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
18786         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
18787         Reported by John W. Eaton <jwe@gnu.org>.
18788
18789 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18790
18791         assume <ctype.h>, ..., <time.h> exist
18792         For years gnulib has been assuming the existence of the headers
18793         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
18794         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
18795         them, since they don't appear to be needed.
18796         * README (Portability guidelines): Document this.
18797         * lib/flock.c: Assume <fcntl.h> exists.
18798         * lib/regex_internal.h: Assume <locale.h> exists.
18799         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
18800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
18801         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
18802         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
18803         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
18804         * m4/regex.m4 (gl_REGEX): Likewise.
18805         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18806         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18807         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18808         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18809         * tests/test-argp.c: Likewise.
18810         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18811
18812         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18813         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18814         AA_APPLE_UNIVERSAL_BUILD.  See
18815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18816         * NEWS: Document this.
18817
18818 2011-01-19  Eric Blake  <eblake@redhat.com>
18819
18820         c-stack: assume stack overflow if SA_SIGINFO unsupported
18821         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18822         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18823         sigaction will work.
18824         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18825         behavior match Linux.
18826         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18827
18828         stdbool-tests: accomodate Haiku
18829         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18830
18831         binary-io: fix O_TEXT on Haiku
18832         * modules/binary-io (Depends-on): Add fcntl-h.
18833         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18834         than blindly undefining O_TEXT.
18835         Reported by Scott McCreary.
18836
18837 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18838
18839         include_next: do not check for standard headers like stddef.h
18840
18841         I found this problem when modifying Emacs to use gnulib.
18842         I noticed that it added HAVE_STDDEF_H to config.h, even though
18843         gnulib always assumes <stddef.h> exists as per README and this
18844         symbol is unnecessary.
18845         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18846         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18847         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18848         faster for headers like stddef.h that are known to exist.
18849         (gl_CHECK_NEXT_HEADERS): Use it.
18850         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18851         rather than gl_CHECK_NEXT_HEADERS.
18852         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18853         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18854
18855 2011-01-18  Eric Blake  <eblake@redhat.com>
18856
18857         ansi-c++-opt: skip C++ dependency style if C++ is unused
18858         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18859         tests when we know C++ compilation is not desired.
18860         Reported by Scott McCreary.
18861
18862 2011-01-18  Bruno Haible  <bruno@clisp.org>
18863
18864         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18865         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18866         (main): Perform test also when getrlimit and setrlimit don't exist or
18867         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18868         limiting the address space size using setrlimit, compare the address
18869         space size before and after the the test.
18870         * tests/test-dprintf-posix2.c: Likewise.
18871         * tests/test-fprintf-posix3.sh: Update skip messages.
18872         * tests/test-dprintf-posix2.sh: Likewise.
18873         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18874         * modules/dprintf-posix-tests (Depends-on): Likewise.
18875         Reported by Bruce Korb <bkorb@gnu.org> and
18876         Gary V. Vaughan <gary@gnu.org>.
18877
18878 2011-01-18  Bruno Haible  <bruno@clisp.org>
18879
18880         get-rusage-as: Improvement for Cygwin.
18881         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18882         areas that are merely reserved.
18883
18884 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18885
18886         strftime: remove dependencies on multibyte modules
18887
18888         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18889         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18890         only if __osf__ is defined, and I suspect OSF doesn't need these
18891         other modules.  If my guess is wrong, we'll need to come up with a
18892         variant of strftime that doesn't need the multibyte modules.
18893
18894         I discovered this problem when attempting modify Emacs to use the
18895         strftime module.  With the previous gnulib, this caused Emacs to
18896         need 31 new files, ranging from lib/config.charset to
18897         m4/wint_t.m4.  This was overkill and I expect would be offputting
18898         to the Emacs maintainers.  After this change, only 6 new files are
18899         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18900         stdbool.m4, and tm_gmtoff.m4.
18901
18902         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18903         Suggested by Bruno Haible in
18904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18905         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18906         and do not check for wchar.h.
18907         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18908         (Depends-on): Remove mbrlen, mbsinit, wchar.
18909
18910 2011-01-18  Bruno Haible  <bruno@clisp.org>
18911
18912         Tests for module 'get-rusage-as'.
18913         * modules/get-rusage-as-tests: New file.
18914         * tests/test-get-rusage-as.c: New file.
18915
18916         New module 'get-rusage-as'.
18917         * modules/get-rusage-as: New file.
18918         * lib/resource-ext.h: New file.
18919         * lib/get-rusage-as.c: New file.
18920
18921 2011-01-17  Eric Blake  <eblake@redhat.com>
18922
18923         sigaction: relax license from LGPLv3+ to LGPLv2+
18924         * modules/sigaction (License): Relax to LGPLv2+.
18925
18926 2011-01-14  Bruno Haible  <bruno@clisp.org>
18927
18928         filemode: Make function declarations usable in C++ mode.
18929         * lib/filemode.h: Enclose function declarations in extern "C" block.
18930         Reported by John W. Eaton <jwe@gnu.org>.
18931
18932 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18933
18934         save-cwd: no longer include "xgetcwd.h"
18935         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18936         This avoids a compilation failure in projects that use save-cwd
18937         without also using the xgetcwd module.
18938
18939 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18940
18941         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18942         This is so that a program like Emacs, which needs only dtoastr,
18943         does not have to bother with distributing and compiling ftoastr
18944         and ldtoastr.
18945         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18946         * modules/dtoastr, modules/ldtoastr: New files.
18947         * modules/ftoastr: Now works just for 'float'.
18948         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18949         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18950         dtoastr.c, ldtoastr.c.
18951
18952 2011-01-11  Jim Meyering  <meyering@redhat.com>
18953
18954         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18955         There is no need to work around the lack of the fchdir function,
18956         since gnulib can now provide a replacement when required.
18957         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18958         * modules/save-cwd (Depends-on): Add fchdir.
18959
18960 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18961
18962         openat, save-cwd: avoid xmalloc
18963
18964         This removes a direct (but undocumented) dependency of openat on
18965         xalloc, along with an indirect dependency via save-cwd.  It also
18966         removes a dependency of save-cwd on xgetcwd, and thereby
18967         indirectly on xalloc.  This change causes the openat substitute
18968         to fall back on save_cwd when memory is tight, and for save_cwd to
18969         fail instead of dying when memory is tight, but that's good enough.
18970         Problem and initial idea for fix reported by Bastien Roucaries in
18971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18972
18973         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18974         xalloc.h (for xmalloc).
18975         (openat_proc_name): Use malloc, not xmalloc.
18976         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18977         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18978
18979         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18980         This avoids heap allocation for file names whose lengths are in
18981         the range 512..1023, with the upper bound increasing to at most
18982         4031 depending on the platform's PATH_MAX.  (We do not want
18983         pathmax.h here as it might supply a non-constant PATH_MAX.)
18984         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18985         Perhaps they should be moved to malloca.h?
18986         (OPENAT_BUFFER_SIZE): Use them.
18987
18988 2011-01-10  Bruno Haible  <bruno@clisp.org>
18989
18990         doc: Update users.txt.
18991         * users.txt: Add recutils.
18992
18993 2011-01-09  Karl Berry  <karl@gnu.org>
18994
18995         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18996
18997         * doc/configmake.texi: New file.
18998         * doc/gnulib.texi: Include it.
18999         * modules/configmake: Move documentation from here.
19000
19001 2011-01-09  Bruno Haible  <bruno@clisp.org>
19002
19003         Update to Unicode 6.0.0.
19004         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
19005         (get_lbp): Update for Unicode 6.0.0.
19006         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
19007         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
19008         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
19009         U+11001, U+11038..U+11046. Remove U+06DE.
19010         (uc_width): Fix bounds of planes.
19011         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19012         lib/uniwidth/width.c.
19013         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
19014         trailing whitespace removed.
19015         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
19016         without comments, but with the original copyright notice.
19017         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
19018         * lib/unicase/ignorable.h: Likewise.
19019         * lib/unicase/tocasefold.h: Likewise.
19020         * lib/unicase/tolower.h: Likewise.
19021         * lib/unicase/totitle.h: Likewise.
19022         * lib/unicase/toupper.h: Likewise.
19023         * lib/unictype/bidi_of.h: Likewise.
19024         * lib/unictype/blocks.h: Likewise.
19025         * lib/unictype/categ_C.h: Likewise.
19026         * lib/unictype/categ_Cn.h: Likewise.
19027         * lib/unictype/categ_L.h: Likewise.
19028         * lib/unictype/categ_Ll.h: Likewise.
19029         * lib/unictype/categ_Lm.h: Likewise.
19030         * lib/unictype/categ_Lo.h: Likewise.
19031         * lib/unictype/categ_Lu.h: Likewise.
19032         * lib/unictype/categ_M.h: Likewise.
19033         * lib/unictype/categ_Mc.h: Likewise.
19034         * lib/unictype/categ_Me.h: Likewise.
19035         * lib/unictype/categ_Mn.h: Likewise.
19036         * lib/unictype/categ_N.h: Likewise.
19037         * lib/unictype/categ_Nd.h: Likewise.
19038         * lib/unictype/categ_No.h: Likewise.
19039         * lib/unictype/categ_P.h: Likewise.
19040         * lib/unictype/categ_Po.h: Likewise.
19041         * lib/unictype/categ_S.h: Likewise.
19042         * lib/unictype/categ_Sc.h: Likewise.
19043         * lib/unictype/categ_Sk.h: Likewise.
19044         * lib/unictype/categ_Sm.h: Likewise.
19045         * lib/unictype/categ_So.h: Likewise.
19046         * lib/unictype/categ_of.h: Likewise.
19047         * lib/unictype/combining.h: Likewise.
19048         * lib/unictype/ctype_alnum.h: Likewise.
19049         * lib/unictype/ctype_alpha.h: Likewise.
19050         * lib/unictype/ctype_graph.h: Likewise.
19051         * lib/unictype/ctype_lower.h: Likewise.
19052         * lib/unictype/ctype_print.h: Likewise.
19053         * lib/unictype/ctype_punct.h: Likewise.
19054         * lib/unictype/ctype_upper.h: Likewise.
19055         * lib/unictype/decdigit.h: Likewise.
19056         * lib/unictype/digit.h: Likewise.
19057         * lib/unictype/numeric.h: Likewise.
19058         * lib/unictype/pr_alphabetic.h: Likewise.
19059         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19061         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19062         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19063         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19064         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19065         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19066         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19067         * lib/unictype/pr_case_ignorable.h: Likewise.
19068         * lib/unictype/pr_cased.h: Likewise.
19069         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
19070         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
19071         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
19072         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
19073         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
19074         * lib/unictype/pr_combining.h: Likewise.
19075         * lib/unictype/pr_composite.h: Likewise.
19076         * lib/unictype/pr_currency_symbol.h: Likewise.
19077         * lib/unictype/pr_decimal_digit.h: Likewise.
19078         * lib/unictype/pr_deprecated.h: Likewise.
19079         * lib/unictype/pr_format_control.h: Likewise.
19080         * lib/unictype/pr_grapheme_base.h: Likewise.
19081         * lib/unictype/pr_grapheme_extend.h: Likewise.
19082         * lib/unictype/pr_grapheme_link.h: Likewise.
19083         * lib/unictype/pr_id_continue.h: Likewise.
19084         * lib/unictype/pr_id_start.h: Likewise.
19085         * lib/unictype/pr_ideographic.h: Likewise.
19086         * lib/unictype/pr_lowercase.h: Likewise.
19087         * lib/unictype/pr_math.h: Likewise.
19088         * lib/unictype/pr_numeric.h: Likewise.
19089         * lib/unictype/pr_other_alphabetic.h: Likewise.
19090         * lib/unictype/pr_other_id_continue.h: Likewise.
19091         * lib/unictype/pr_other_math.h: Likewise.
19092         * lib/unictype/pr_punctuation.h: Likewise.
19093         * lib/unictype/pr_sentence_terminal.h: Likewise.
19094         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19095         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19096         * lib/unictype/pr_unified_ideograph.h: Likewise.
19097         * lib/unictype/pr_uppercase.h: Likewise.
19098         * lib/unictype/pr_xid_continue.h: Likewise.
19099         * lib/unictype/pr_xid_start.h: Likewise.
19100         * lib/unictype/scripts.h: Likewise.
19101         * lib/unictype/scripts_byname.gperf: Likewise.
19102         * lib/unictype/sy_java_ident.h: Likewise.
19103         * lib/unigbrk/gbrkprop.h: Likewise.
19104         * lib/unilbrk/lbrkprop1.h: Likewise.
19105         * lib/unilbrk/lbrkprop2.h: Likewise.
19106         * lib/uninorm/decomposition-table2.h: Likewise.
19107         * lib/uniwbrk/wbrkprop.h: Likewise.
19108         * tests/unicase/test-cased.c: Likewise.
19109         * tests/unicase/test-ignorable.c: Likewise.
19110         * tests/unicase/test-uc_tolower.c: Likewise.
19111         * tests/unicase/test-uc_totitle.c: Likewise.
19112         * tests/unicase/test-uc_toupper.c: Likewise.
19113         * tests/unictype/test-categ_C.c: Likewise.
19114         * tests/unictype/test-categ_Cn.c: Likewise.
19115         * tests/unictype/test-categ_L.c: Likewise.
19116         * tests/unictype/test-categ_Ll.c: Likewise.
19117         * tests/unictype/test-categ_Lm.c: Likewise.
19118         * tests/unictype/test-categ_Lo.c: Likewise.
19119         * tests/unictype/test-categ_Lu.c: Likewise.
19120         * tests/unictype/test-categ_M.c: Likewise.
19121         * tests/unictype/test-categ_Mc.c: Likewise.
19122         * tests/unictype/test-categ_Me.c: Likewise.
19123         * tests/unictype/test-categ_Mn.c: Likewise.
19124         * tests/unictype/test-categ_N.c: Likewise.
19125         * tests/unictype/test-categ_Nd.c: Likewise.
19126         * tests/unictype/test-categ_No.c: Likewise.
19127         * tests/unictype/test-categ_P.c: Likewise.
19128         * tests/unictype/test-categ_Po.c: Likewise.
19129         * tests/unictype/test-categ_S.c: Likewise.
19130         * tests/unictype/test-categ_Sc.c: Likewise.
19131         * tests/unictype/test-categ_Sk.c: Likewise.
19132         * tests/unictype/test-categ_Sm.c: Likewise.
19133         * tests/unictype/test-categ_So.c: Likewise.
19134         * tests/unictype/test-ctype_alnum.c: Likewise.
19135         * tests/unictype/test-ctype_alpha.c: Likewise.
19136         * tests/unictype/test-ctype_graph.c: Likewise.
19137         * tests/unictype/test-ctype_lower.c: Likewise.
19138         * tests/unictype/test-ctype_print.c: Likewise.
19139         * tests/unictype/test-ctype_punct.c: Likewise.
19140         * tests/unictype/test-ctype_upper.c: Likewise.
19141         * tests/unictype/test-decdigit.h: Likewise.
19142         * tests/unictype/test-digit.h: Likewise.
19143         * tests/unictype/test-numeric.h: Likewise.
19144         * tests/unictype/test-pr_alphabetic.c: Likewise.
19145         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19146         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19147         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19148         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19149         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19150         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19151         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19152         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19153         * tests/unictype/test-pr_case_ignorable.c: Likewise.
19154         * tests/unictype/test-pr_cased.c: Likewise.
19155         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
19156         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
19157         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
19158         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
19159         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
19160         * tests/unictype/test-pr_combining.c: Likewise.
19161         * tests/unictype/test-pr_composite.c: Likewise.
19162         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19163         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19164         * tests/unictype/test-pr_deprecated.c: Likewise.
19165         * tests/unictype/test-pr_format_control.c: Likewise.
19166         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19167         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19168         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19169         * tests/unictype/test-pr_id_continue.c: Likewise.
19170         * tests/unictype/test-pr_id_start.c: Likewise.
19171         * tests/unictype/test-pr_ideographic.c: Likewise.
19172         * tests/unictype/test-pr_lowercase.c: Likewise.
19173         * tests/unictype/test-pr_math.c: Likewise.
19174         * tests/unictype/test-pr_numeric.c: Likewise.
19175         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19176         * tests/unictype/test-pr_other_id_continue.c: Likewise.
19177         * tests/unictype/test-pr_other_math.c: Likewise.
19178         * tests/unictype/test-pr_punctuation.c: Likewise.
19179         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19180         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19181         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19182         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19183         * tests/unictype/test-pr_uppercase.c: Likewise.
19184         * tests/unictype/test-pr_xid_continue.c: Likewise.
19185         * tests/unictype/test-pr_xid_start.c: Likewise.
19186         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19187         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19188         changes.
19189         * lib/unictype/categ_Cc.h: Likewise.
19190         * lib/unictype/categ_Cf.h: Likewise.
19191         * lib/unictype/categ_Co.h: Likewise.
19192         * lib/unictype/categ_Cs.h: Likewise.
19193         * lib/unictype/categ_Lt.h: Likewise.
19194         * lib/unictype/categ_Nl.h: Likewise.
19195         * lib/unictype/categ_Pc.h: Likewise.
19196         * lib/unictype/categ_Pd.h: Likewise.
19197         * lib/unictype/categ_Pe.h: Likewise.
19198         * lib/unictype/categ_Pf.h: Likewise.
19199         * lib/unictype/categ_Pi.h: Likewise.
19200         * lib/unictype/categ_Ps.h: Likewise.
19201         * lib/unictype/categ_Z.h: Likewise.
19202         * lib/unictype/categ_Zl.h: Likewise.
19203         * lib/unictype/categ_Zp.h: Likewise.
19204         * lib/unictype/categ_Zs.h: Likewise.
19205         * lib/unictype/ctype_blank.h: Likewise.
19206         * lib/unictype/ctype_cntrl.h: Likewise.
19207         * lib/unictype/ctype_digit.h: Likewise.
19208         * lib/unictype/ctype_space.h: Likewise.
19209         * lib/unictype/ctype_xdigit.h: Likewise.
19210         * lib/unictype/mirror.h: Likewise.
19211         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19212         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19213         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19214         * lib/unictype/pr_bidi_control.h: Likewise.
19215         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19216         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19217         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19218         * lib/unictype/pr_bidi_pdf.h: Likewise.
19219         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19220         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19221         * lib/unictype/pr_dash.h: Likewise.
19222         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19223         * lib/unictype/pr_diacritic.h: Likewise.
19224         * lib/unictype/pr_extender.h: Likewise.
19225         * lib/unictype/pr_hex_digit.h: Likewise.
19226         * lib/unictype/pr_hyphen.h: Likewise.
19227         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19228         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19229         * lib/unictype/pr_ignorable_control.h: Likewise.
19230         * lib/unictype/pr_iso_control.h: Likewise.
19231         * lib/unictype/pr_join_control.h: Likewise.
19232         * lib/unictype/pr_left_of_pair.h: Likewise.
19233         * lib/unictype/pr_line_separator.h: Likewise.
19234         * lib/unictype/pr_logical_order_exception.h: Likewise.
19235         * lib/unictype/pr_non_break.h: Likewise.
19236         * lib/unictype/pr_not_a_character.h: Likewise.
19237         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19238         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19239         * lib/unictype/pr_other_id_start.h: Likewise.
19240         * lib/unictype/pr_other_lowercase.h: Likewise.
19241         * lib/unictype/pr_other_uppercase.h: Likewise.
19242         * lib/unictype/pr_paired_punctuation.h: Likewise.
19243         * lib/unictype/pr_paragraph_separator.h: Likewise.
19244         * lib/unictype/pr_pattern_syntax.h: Likewise.
19245         * lib/unictype/pr_pattern_white_space.h: Likewise.
19246         * lib/unictype/pr_private_use.h: Likewise.
19247         * lib/unictype/pr_quotation_mark.h: Likewise.
19248         * lib/unictype/pr_radical.h: Likewise.
19249         * lib/unictype/pr_soft_dotted.h: Likewise.
19250         * lib/unictype/pr_space.h: Likewise.
19251         * lib/unictype/pr_titlecase.h: Likewise.
19252         * lib/unictype/pr_variation_selector.h: Likewise.
19253         * lib/unictype/pr_white_space.h: Likewise.
19254         * lib/unictype/pr_zero_width.h: Likewise.
19255         * lib/unictype/sy_c_ident.h: Likewise.
19256         * lib/unictype/sy_c_whitespace.h: Likewise.
19257         * lib/unictype/sy_java_whitespace.h: Likewise.
19258         * lib/uninorm/composition-table.gperf: Likewise.
19259         * lib/uninorm/decomposition-table1.h: Likewise.
19260         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
19261         LB8.
19262         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19263         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19264         * modules/unictype/*: Bump version number of expected libunistring
19265         version.
19266
19267 2011-01-09  Bruno Haible  <bruno@clisp.org>
19268
19269         Update to Unicode 5.2.0.
19270         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
19271         trailing whitespace removed.
19272
19273 2011-01-09  Bruno Haible  <bruno@clisp.org>
19274
19275         New Unicode character properties, from Unicode 5.2.0.
19276         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
19277         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
19278         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
19279         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
19280         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
19281         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
19282         uc_is_property_cased, uc_is_property_case_ignorable,
19283         uc_is_property_changes_when_lowercased,
19284         uc_is_property_changes_when_uppercased,
19285         uc_is_property_changes_when_titlecased,
19286         uc_is_property_changes_when_casefolded,
19287         uc_is_property_changes_when_casemapped): New declarations.
19288         * lib/unictype/pr_byname.gperf: Add the new properties.
19289         * modules/unictype/property-byname (Depends-on): Depend on the new
19290         properties modules.
19291         * modules/unictype/property-all (Depends-on): Likewise.
19292         * MODULES.html.sh (Unicode string functions): Add
19293         unictype/property-case-ignorable, unictype/property-cased,
19294         unictype/property-changes-when-casefolded,
19295         unictype/property-changes-when-casemapped,
19296         unictype/property-changes-when-lowercased,
19297         unictype/property-changes-when-titlecased,
19298         unictype/property-changes-when-uppercased.
19299
19300         New module 'unictype/property-changes-when-casemapped'.
19301         * modules/unictype/property-changes-when-casemapped: New file.
19302         * lib/unictype/pr_changes_when_casemapped.c: New file.
19303         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
19304         generated by gen-uni-tables.
19305         * modules/unictype/property-changes-when-casemapped-tests: New file.
19306         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
19307         automatically generated by gen-uni-tables.
19308
19309         New module 'unictype/property-changes-when-casefolded'.
19310         * modules/unictype/property-changes-when-casefolded: New file.
19311         * lib/unictype/pr_changes_when_casefolded.c: New file.
19312         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
19313         generated by gen-uni-tables.
19314         * modules/unictype/property-changes-when-casefolded-tests: New file.
19315         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
19316         automatically generated by gen-uni-tables.
19317
19318         New module 'unictype/property-changes-when-titlecased'.
19319         * modules/unictype/property-changes-when-titlecased: New file.
19320         * lib/unictype/pr_changes_when_titlecased.c: New file.
19321         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
19322         generated by gen-uni-tables.
19323         * modules/unictype/property-changes-when-titlecased-tests: New file.
19324         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
19325         automatically generated by gen-uni-tables.
19326
19327         New module 'unictype/property-changes-when-uppercased'.
19328         * modules/unictype/property-changes-when-uppercased: New file.
19329         * lib/unictype/pr_changes_when_uppercased.c: New file.
19330         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
19331         generated by gen-uni-tables.
19332         * modules/unictype/property-changes-when-uppercased-tests: New file.
19333         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
19334         automatically generated by gen-uni-tables.
19335
19336         New module 'unictype/property-changes-when-lowercased'.
19337         * modules/unictype/property-changes-when-lowercased: New file.
19338         * lib/unictype/pr_changes_when_lowercased.c: New file.
19339         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
19340         generated by gen-uni-tables.
19341         * modules/unictype/property-changes-when-lowercased-tests: New file.
19342         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
19343         automatically generated by gen-uni-tables.
19344
19345         New module 'unictype/property-case-ignorable'.
19346         * modules/unictype/property-case-ignorable: New file.
19347         * lib/unictype/pr_case_ignorable.c: New file.
19348         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
19349         by gen-uni-tables.
19350         * modules/unictype/property-case-ignorable-tests: New file.
19351         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
19352         generated by gen-uni-tables.
19353
19354         New module 'unictype/property-cased'.
19355         * modules/unictype/property-cased: New file.
19356         * lib/unictype/pr_cased.c: New file.
19357         * lib/unictype/pr_cased.h: New file, automatically generated by
19358         gen-uni-tables.
19359         * modules/unictype/property-cased-tests: New file.
19360         * tests/unictype/test-pr_cased.c: New file, automatically generated by
19361         gen-uni-tables.
19362
19363 2011-01-09  Bruno Haible  <bruno@clisp.org>
19364
19365         Update to Unicode 5.2.0.
19366         * lib/gen-uni-tables.c (output_predicate, output_category,
19367         output_combclass, output_bidi_category, output_decimal_digit_test,
19368         output_decimal_digit, output_digit_test, output_digit,
19369         output_numeric_test, output_numeric, output_mirror, output_scripts,
19370         output_scripts_byname, output_blocks, output_ident_category): Fix
19371         comment header.
19372         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
19373         get_wbp.
19374         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
19375         items.
19376         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
19377         Changes_When_Lowercased, Changes_When_Uppercased,
19378         Changes_When_Titlecased, Changes_When_Casefolded,
19379         Changes_When_Casemapped.
19380         (is_property_alphabetic, is_property_default_ignorable_code_point):
19381         Update for Unicode 5.2.0.
19382         (is_property_cased, is_property_case_ignorable,
19383         is_property_changes_when_lowercased,
19384         is_property_changes_when_uppercased,
19385         is_property_changes_when_titlecased,
19386         is_property_changes_when_casefolded,
19387         is_property_changes_when_casemapped): New functions.
19388         (output_properties): Output also the properties cased, case_ignorable,
19389         changes_when_lowercased, changes_when_uppercased,
19390         changes_when_titlecased, changes_when_casefolded,
19391         changes_when_casemapped.
19392         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
19393         Unicode TR#11 revision 17 -> 19.
19394         (LBP_CP): New enumeration value.
19395         (LBP_*): Adjust values accordingly.
19396         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19397         TR#14 revision 22 -> 24.
19398         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
19399         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
19400         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19401         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
19402         is_WBP_MIDLETTER.
19403         (output_composition_tables): Allow for 24 bits instead of 16 bits in
19404         the code1 and code2 of each composition rule.
19405         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
19406         * lib/unicase/ignorable.h: Likewise.
19407         * lib/unicase/tocasefold.h: Likewise.
19408         * lib/unicase/tolower.h: Likewise.
19409         * lib/unicase/totitle.h: Likewise.
19410         * lib/unicase/toupper.h: Likewise.
19411         * lib/unictype/bidi_of.h: Likewise.
19412         * lib/unictype/blocks.h: Likewise.
19413         * lib/unictype/categ_C.h: Likewise.
19414         * lib/unictype/categ_Cf.h: Likewise.
19415         * lib/unictype/categ_Cn.h: Likewise.
19416         * lib/unictype/categ_L.h: Likewise.
19417         * lib/unictype/categ_Ll.h: Likewise.
19418         * lib/unictype/categ_Lm.h: Likewise.
19419         * lib/unictype/categ_Lo.h: Likewise.
19420         * lib/unictype/categ_Lu.h: Likewise.
19421         * lib/unictype/categ_M.h: Likewise.
19422         * lib/unictype/categ_Mc.h: Likewise.
19423         * lib/unictype/categ_Mn.h: Likewise.
19424         * lib/unictype/categ_N.h: Likewise.
19425         * lib/unictype/categ_Nd.h: Likewise.
19426         * lib/unictype/categ_Nl.h: Likewise.
19427         * lib/unictype/categ_No.h: Likewise.
19428         * lib/unictype/categ_P.h: Likewise.
19429         * lib/unictype/categ_Pd.h: Likewise.
19430         * lib/unictype/categ_Po.h: Likewise.
19431         * lib/unictype/categ_S.h: Likewise.
19432         * lib/unictype/categ_Sc.h: Likewise.
19433         * lib/unictype/categ_So.h: Likewise.
19434         * lib/unictype/categ_of.h: Likewise.
19435         * lib/unictype/combining.h: Likewise.
19436         * lib/unictype/ctype_alnum.h: Likewise.
19437         * lib/unictype/ctype_alpha.h: Likewise.
19438         * lib/unictype/ctype_graph.h: Likewise.
19439         * lib/unictype/ctype_lower.h: Likewise.
19440         * lib/unictype/ctype_print.h: Likewise.
19441         * lib/unictype/ctype_punct.h: Likewise.
19442         * lib/unictype/ctype_upper.h: Likewise.
19443         * lib/unictype/decdigit.h: Likewise.
19444         * lib/unictype/digit.h: Likewise.
19445         * lib/unictype/numeric.h: Likewise.
19446         * lib/unictype/pr_alphabetic.h: Likewise.
19447         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19448         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19449         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19450         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19451         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19452         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19453         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19454         * lib/unictype/pr_combining.h: Likewise.
19455         * lib/unictype/pr_composite.h: Likewise.
19456         * lib/unictype/pr_currency_symbol.h: Likewise.
19457         * lib/unictype/pr_dash.h: Likewise.
19458         * lib/unictype/pr_decimal_digit.h: Likewise.
19459         * lib/unictype/pr_deprecated.h: Likewise.
19460         * lib/unictype/pr_diacritic.h: Likewise.
19461         * lib/unictype/pr_extender.h: Likewise.
19462         * lib/unictype/pr_grapheme_base.h: Likewise.
19463         * lib/unictype/pr_grapheme_extend.h: Likewise.
19464         * lib/unictype/pr_grapheme_link.h: Likewise.
19465         * lib/unictype/pr_id_continue.h: Likewise.
19466         * lib/unictype/pr_id_start.h: Likewise.
19467         * lib/unictype/pr_ideographic.h: Likewise.
19468         * lib/unictype/pr_ignorable_control.h: Likewise.
19469         * lib/unictype/pr_logical_order_exception.h: Likewise.
19470         * lib/unictype/pr_lowercase.h: Likewise.
19471         * lib/unictype/pr_numeric.h: Likewise.
19472         * lib/unictype/pr_other_alphabetic.h: Likewise.
19473         * lib/unictype/pr_punctuation.h: Likewise.
19474         * lib/unictype/pr_sentence_terminal.h: Likewise.
19475         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19476         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19477         * lib/unictype/pr_unified_ideograph.h: Likewise.
19478         * lib/unictype/pr_uppercase.h: Likewise.
19479         * lib/unictype/pr_xid_continue.h: Likewise.
19480         * lib/unictype/pr_xid_start.h: Likewise.
19481         * lib/unictype/pr_zero_width.h: Likewise.
19482         * lib/unictype/scripts.h: Likewise.
19483         * lib/unictype/scripts_byname.gperf: Likewise.
19484         * lib/unictype/sy_java_ident.h: Likewise.
19485         * lib/unigbrk/gbrkprop.h: Likewise.
19486         * lib/unilbrk/lbrkprop1.h: Likewise.
19487         * lib/unilbrk/lbrkprop2.h: Likewise.
19488         * lib/unilbrk/lbrktables.h: Likewise.
19489         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
19490         LBP_CP. Implement rule LB30.
19491         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
19492         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
19493         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
19494         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
19495         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
19496         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
19497         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
19498         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
19499         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
19500         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
19501         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
19502         bits instead of 16 bits in the code1 and code2 of each composition
19503         rule.
19504         (uc_composition): Update for Unicode 5.2.0.
19505         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
19506         * lib/uninorm/decomposition-table2.h: Likewise.
19507         * lib/uniwbrk/wbrkprop.h: Likewise.
19508         * tests/unicase/test-cased.c: Likewise.
19509         * tests/unicase/test-ignorable.c: Likewise.
19510         * tests/unicase/test-uc_tolower.c: Likewise.
19511         * tests/unicase/test-uc_totitle.c: Likewise.
19512         * tests/unicase/test-uc_toupper.c: Likewise.
19513         * tests/unictype/test-categ_C.c: Likewise.
19514         * tests/unictype/test-categ_Cf.c: Likewise.
19515         * tests/unictype/test-categ_Cn.c: Likewise.
19516         * tests/unictype/test-categ_L.c: Likewise.
19517         * tests/unictype/test-categ_Ll.c: Likewise.
19518         * tests/unictype/test-categ_Lm.c: Likewise.
19519         * tests/unictype/test-categ_Lo.c: Likewise.
19520         * tests/unictype/test-categ_Lu.c: Likewise.
19521         * tests/unictype/test-categ_M.c: Likewise.
19522         * tests/unictype/test-categ_Mc.c: Likewise.
19523         * tests/unictype/test-categ_Mn.c: Likewise.
19524         * tests/unictype/test-categ_N.c: Likewise.
19525         * tests/unictype/test-categ_Nd.c: Likewise.
19526         * tests/unictype/test-categ_Nl.c: Likewise.
19527         * tests/unictype/test-categ_No.c: Likewise.
19528         * tests/unictype/test-categ_P.c: Likewise.
19529         * tests/unictype/test-categ_Pd.c: Likewise.
19530         * tests/unictype/test-categ_Po.c: Likewise.
19531         * tests/unictype/test-categ_S.c: Likewise.
19532         * tests/unictype/test-categ_Sc.c: Likewise.
19533         * tests/unictype/test-categ_So.c: Likewise.
19534         * tests/unictype/test-ctype_alnum.c: Likewise.
19535         * tests/unictype/test-ctype_alpha.c: Likewise.
19536         * tests/unictype/test-ctype_graph.c: Likewise.
19537         * tests/unictype/test-ctype_lower.c: Likewise.
19538         * tests/unictype/test-ctype_print.c: Likewise.
19539         * tests/unictype/test-ctype_punct.c: Likewise.
19540         * tests/unictype/test-ctype_upper.c: Likewise.
19541         * tests/unictype/test-decdigit.h: Likewise.
19542         * tests/unictype/test-digit.h: Likewise.
19543         * tests/unictype/test-numeric.h: Likewise.
19544         * tests/unictype/test-pr_alphabetic.c: Likewise.
19545         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19546         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19547         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19548         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19549         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19550         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19551         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19552         * tests/unictype/test-pr_combining.c: Likewise.
19553         * tests/unictype/test-pr_composite.c: Likewise.
19554         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19555         * tests/unictype/test-pr_dash.c: Likewise.
19556         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19557         * tests/unictype/test-pr_deprecated.c: Likewise.
19558         * tests/unictype/test-pr_diacritic.c: Likewise.
19559         * tests/unictype/test-pr_extender.c: Likewise.
19560         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19561         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19562         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19563         * tests/unictype/test-pr_id_continue.c: Likewise.
19564         * tests/unictype/test-pr_id_start.c: Likewise.
19565         * tests/unictype/test-pr_ideographic.c: Likewise.
19566         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19567         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19568         * tests/unictype/test-pr_lowercase.c: Likewise.
19569         * tests/unictype/test-pr_numeric.c: Likewise.
19570         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19571         * tests/unictype/test-pr_punctuation.c: Likewise.
19572         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19573         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19574         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19575         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19576         * tests/unictype/test-pr_uppercase.c: Likewise.
19577         * tests/unictype/test-pr_xid_continue.c: Likewise.
19578         * tests/unictype/test-pr_xid_start.c: Likewise.
19579         * tests/unictype/test-pr_zero_width.c: Likewise.
19580         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19581         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
19582         changed behaviour: line breaking is now disallowed between a letter
19583         or '=' and '('.
19584         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19585         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19586         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19587         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
19588         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19589         lib/uniwidth/width.c.
19590         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
19591         without comments, but with the original copyright notice.
19592         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19593         changes.
19594         * lib/unictype/categ_Cc.h: Likewise.
19595         * lib/unictype/categ_Co.h: Likewise.
19596         * lib/unictype/categ_Cs.h: Likewise.
19597         * lib/unictype/categ_Lt.h: Likewise.
19598         * lib/unictype/categ_Me.h: Likewise.
19599         * lib/unictype/categ_Pc.h: Likewise.
19600         * lib/unictype/categ_Pe.h: Likewise.
19601         * lib/unictype/categ_Pf.h: Likewise.
19602         * lib/unictype/categ_Pi.h: Likewise.
19603         * lib/unictype/categ_Ps.h: Likewise.
19604         * lib/unictype/categ_Sk.h: Likewise.
19605         * lib/unictype/categ_Sm.h: Likewise.
19606         * lib/unictype/categ_Z.h: Likewise.
19607         * lib/unictype/categ_Zl.h: Likewise.
19608         * lib/unictype/categ_Zp.h: Likewise.
19609         * lib/unictype/categ_Zs.h: Likewise.
19610         * lib/unictype/ctype_blank.h: Likewise.
19611         * lib/unictype/ctype_cntrl.h: Likewise.
19612         * lib/unictype/ctype_digit.h: Likewise.
19613         * lib/unictype/ctype_space.h: Likewise.
19614         * lib/unictype/ctype_xdigit.h: Likewise.
19615         * lib/unictype/mirror.h: Likewise.
19616         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19617         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19618         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19619         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19620         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19621         * lib/unictype/pr_bidi_control.h: Likewise.
19622         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19623         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19624         * lib/unictype/pr_bidi_pdf.h: Likewise.
19625         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19626         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19627         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19628         * lib/unictype/pr_format_control.h: Likewise.
19629         * lib/unictype/pr_hex_digit.h: Likewise.
19630         * lib/unictype/pr_hyphen.h: Likewise.
19631         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19632         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19633         * lib/unictype/pr_iso_control.h: Likewise.
19634         * lib/unictype/pr_join_control.h: Likewise.
19635         * lib/unictype/pr_left_of_pair.h: Likewise.
19636         * lib/unictype/pr_line_separator.h: Likewise.
19637         * lib/unictype/pr_math.h: Likewise.
19638         * lib/unictype/pr_non_break.h: Likewise.
19639         * lib/unictype/pr_not_a_character.h: Likewise.
19640         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19641         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19642         * lib/unictype/pr_other_id_continue.h: Likewise.
19643         * lib/unictype/pr_other_id_start.h: Likewise.
19644         * lib/unictype/pr_other_lowercase.h: Likewise.
19645         * lib/unictype/pr_other_math.h: Likewise.
19646         * lib/unictype/pr_other_uppercase.h: Likewise.
19647         * lib/unictype/pr_paired_punctuation.h: Likewise.
19648         * lib/unictype/pr_paragraph_separator.h: Likewise.
19649         * lib/unictype/pr_pattern_syntax.h: Likewise.
19650         * lib/unictype/pr_pattern_white_space.h: Likewise.
19651         * lib/unictype/pr_private_use.h: Likewise.
19652         * lib/unictype/pr_quotation_mark.h: Likewise.
19653         * lib/unictype/pr_radical.h: Likewise.
19654         * lib/unictype/pr_soft_dotted.h: Likewise.
19655         * lib/unictype/pr_space.h: Likewise.
19656         * lib/unictype/pr_titlecase.h: Likewise.
19657         * lib/unictype/pr_variation_selector.h: Likewise.
19658         * lib/unictype/pr_white_space.h: Likewise.
19659         * lib/unictype/sy_c_ident.h: Likewise.
19660         * lib/unictype/sy_c_whitespace.h: Likewise.
19661         * lib/unictype/sy_java_whitespace.h: Likewise.
19662         * modules/uni*/*: Bump version number of expected libunistring version.
19663         Reported by Simon Josefsson.
19664
19665 2011-01-09  Karl Heuer  <kwzh@gnu.org>
19666
19667         useless-if-before-free: fix typo in --help and make the internal,
19668         automatic version date update process work once again.
19669         --help output contained a NUL character instead of the
19670         backslash-zero that was intended.  Also, the "must lie within
19671         the first 8 lines" line is on line 9, and hence not getting
19672         automatically updated.
19673         * build-aux/useless-if-before-free: Fix the former by adding a
19674         backslash, and the latter by condensing the three lines of what-it-does
19675         to a single line, leaving one line of slack for the future.
19676
19677 2011-01-09  Bruno Haible  <bruno@clisp.org>
19678
19679         uniwidth/width: Fix width of U+1D173..U+1D17A.
19680         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
19681         symbolic_width, output_width_property_test): New functions.
19682         (main): Invoke output_nonspacing_property, output_width_property_test.
19683         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
19684         U+1D173..U+1D17A.
19685         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
19686         1.
19687         * modules/uniwidth/*: Bump version number of expected libunistring
19688         version.
19689         * modules/unilbrk/*: Likewise.
19690
19691 2011-01-08  Bruno Haible  <bruno@clisp.org>
19692
19693         uninorm tests: Preserve copyright of Unicode data file.
19694         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
19695         Mention modifications.
19696
19697 2011-01-08  Bruno Haible  <bruno@clisp.org>
19698
19699         gen-uni-tables: Prepare for Unicode 5.2.0.
19700         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
19701         (debug_output_lbp, output_lbp): Update.
19702
19703 2011-01-08  Bruno Haible  <bruno@clisp.org>
19704
19705         unilbrk: Clarify gen-uni-tables.c code.
19706         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
19707         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
19708         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
19709
19710 2011-01-07  Bruno Haible  <bruno@clisp.org>
19711
19712         strtod: Restore errno when successfully parsing Infinity or NaN.
19713         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
19714         restore the original errno.
19715
19716 2011-01-07  Bruno Haible  <bruno@clisp.org>
19717
19718         remove test: Avoid failure on HP-UX 11.
19719         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
19720
19721 2011-01-07  Bruno Haible  <bruno@clisp.org>
19722
19723         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
19724         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
19725         error code.
19726
19727 2011-01-07  Pádraig Brady <P@draigBrady.com>
19728
19729         ignore-value: fixup comments, and add Eric Blake
19730         as an author since he rewrote the macros.
19731         * lib/ignore-value.h (ignore_value):  State that
19732         we now support aggregates.  Also specify exactly
19733         when the GCC warn_unused_result feature was added.
19734
19735 2011-01-06  Eric Blake  <eblake@redhat.com>
19736
19737         ignore-value: support aggregate types
19738         * lib/ignore-value.h (ignore_value): Provide separate gcc
19739         definition.
19740         * modules/ignore-value-tests: New test module.
19741         * tests/test-ignore-value.c: New test.
19742
19743         maint.mk: improve sc_prohibit_strcmp regex
19744         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
19745         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
19746         definition of STRNEQ.
19747
19748         signal: work around Haiku issue with SIGBUS
19749         * lib/siglist.h: Add comment.
19750         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
19751         strsignal's favoring of SIGSEGV.
19752         * tests/test-signal.c (main): Avoid test failure.
19753         * doc/posix-headers/signal.texi (signal.h): Document the issue.
19754         Reported by Scott McCreary.
19755
19756         maint.mk: add pre-release check to ensure submodule commits are public
19757         * top/maint.mk (public-submodule-commit): New rule.
19758         (submodule-checks): New variable.
19759         (alpha beta stable): Depend on the variable.
19760
19761 2011-01-05  Pádraig Brady <P@draigBrady.com>
19762         and Jim Meyering  <meyering@redhat.com>
19763
19764         ignore-value: make ignore_value more generic; deprecate ignore_ptr
19765         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
19766         (ATTRIBUTE_DEPRECATED): Define.
19767         (_ignore_case): New function.
19768         (ignore_value): New macro, to replace the old function.
19769         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
19770         * modules/ignore-value (Depends-on): Add stdint.
19771
19772 2011-01-04  Eric Blake  <eblake@redhat.com>
19773
19774         doc: regenerate INSTALL
19775         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
19776         @firstparagraphindent support, now that autoconf dropped it.
19777         (INSTALL_PRELUDE): Reinstate old macro.
19778         * doc/install.texi: Resync from autoconf.
19779         * doc/INSTALL: Reflect recent autoconf update.
19780         * doc/INSTALL.ISO: Likewise.
19781         * doc/INSTALL.UTF-8: Likewise.
19782         Reported by Karl Berry.
19783
19784 2011-01-04  Bruce Korb  <address@hidden>
19785
19786         git-version-gen: avoid a sub-shell
19787         * build-aux/git-version-gen: Redirect stderr in `...` via
19788         "exec 2>...", rather than via an added sub-shell.
19789
19790 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
19791
19792         git-version-gen: use (...) rather than sh -c '...'
19793         * build-aux/git-version-gen: Rather than hard-coding a shell's name
19794         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
19795
19796 2011-01-03  Jim Meyering  <meyering@redhat.com>
19797
19798         git-version-gen: convert leading TABs to spaces
19799         * build-aux/git-version-gen: Expand leading TABs.
19800
19801         git-version-gen: handle failed "git rev-list"
19802         * build-aux/git-version-gen: Rather than leaking a "fatal" error
19803         from git and proceeding as if it had succeeded but printed no SHA1
19804         checksums, suppress the diagnostic and handle the failure.
19805         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19806
19807         git-version-gen: include command name in one more diagnostic
19808         * build-aux/git-version-gen: When the required .tarball-version file
19809         was missing or unreadable, you might see the diagnostic from "cat",
19810         but no trace of the name of the invoking script.  Now, you still see
19811         the diagnostic from cat, but also get one from "git-version-gen: ".
19812         Inspired by a patch from Bruce Korb.
19813
19814         update-copyright: adjust test to match changed code
19815         * tests/test-update-copyright.sh: Change test's expected output
19816         to match new actual output.
19817
19818 2011-01-02  Bruno Haible  <bruno@clisp.org>
19819
19820         getlogin_r: Avoid test failure on HP-UX 11.
19821         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19822         ERANGE when the second argument is zero.
19823         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19824         portability problem.
19825
19826 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19827
19828         * build-aux/update-copyright: doc Simon's changes
19829
19830 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19831
19832         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19833         environment variable.
19834
19835 2011-01-02  Bruno Haible  <bruno@clisp.org>
19836
19837         unigbrk: Avoid gcc warnings.
19838         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19839         unused variable.
19840         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19841         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19842         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19843         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19844         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19845         Change type of first argument to 'const char *'.
19846         (main): Remove unused variable.
19847         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19848         type of first argument to 'const char *'.
19849         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19850         Likewise.
19851         (main): Change type of variable 's'.
19852         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19853         to 'int'.
19854
19855 2011-01-02  Bruno Haible  <bruno@clisp.org>
19856
19857         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19858         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19859         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19860         bug.
19861         * lib/pwrite.c: Undo 2010-12-31 patch.
19862         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19863
19864 2011-01-02  Bruno Haible  <bruno@clisp.org>
19865
19866         pread: Fix test whether it works.
19867         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19868
19869 2011-01-02  Bruno Haible  <bruno@clisp.org>
19870
19871         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19872         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19873         ends in "6". Don't require a specific month name. Try also the locale
19874         names found on HP-UX 11 and Solaris 7.
19875
19876 2011-01-02  Bruno Haible  <bruno@clisp.org>
19877
19878         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19879         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19880         C linkage.
19881         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19882
19883 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19884
19885         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19886         for consistency, since the "cluster" term is not used elsewhere.
19887         * lib/unigbrk.in.h: Update name.
19888         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19889         * lib/unigbrk/u16-grapheme-next.c: Update name.
19890         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19891         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19892         * lib/unigbrk/u32-grapheme-next.c: Update name.
19893         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19894         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19895         * lib/unigbrk/u8-grapheme-next.c: Update name.
19896         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19897         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19898         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19899         Suggested by Bruno Haible.
19900
19901 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19902
19903         Remove module 'u8-grapheme-len' as too redundant with
19904         'u8-grapheme-next'.
19905         * modules/unigbrk/u8-grapheme-len: Delete file.
19906         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19907         * lib/unigbrk.in.h: Remove prototype for deleted function.
19908         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19909         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19910
19911         Remove module 'u16-grapheme-len' as too redundant with
19912         'u16-grapheme-next'.
19913         * modules/unigbrk/u16-grapheme-len: Delete file.
19914         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19915         * lib/unigbrk.in.h: Remove prototype for deleted function.
19916         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19917         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19918
19919         Remove module 'u32-grapheme-len' as too redundant with
19920         'u32-grapheme-next'.
19921         * modules/unigbrk/u32-grapheme-len: Delete file.
19922         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19923         * lib/unigbrk.in.h: Remove prototype for deleted function.
19924         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19925         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19926
19927         Suggested by Bruno Haible.
19928
19929 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19930
19931         * unigbrk.in.h: Fix typo: "ben" => "been".
19932         Reported by Bruno Haible.
19933
19934 2011-01-01  Jim Meyering  <meyering@redhat.com>
19935
19936         maint: update almost all copyright ranges to include 2011
19937         Run the new "make update-copyright" rule.
19938
19939 2011-01-01  Jim Meyering  <meyering@redhat.com>
19940
19941         maint: update-copyright: exempt doc/INSTALL*
19942         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19943         since they are generated.  Suggested by Bruno Haible.
19944
19945 2011-01-01  Jim Meyering  <meyering@redhat.com>
19946
19947         maint: refine the update-copyright rule
19948         * Makefile (update-copyright): Also exclude any file that includes
19949         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19950         code that merely generates the comment.
19951
19952 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19953
19954         New module 'u8-grapheme-len'.
19955         * modules/unigbrk/u8-grapheme-len: New file.
19956         * modules/unigbrk/u8-grapheme-len-tests: New file.
19957         * lib/unigbrk.in.h: Add prototype for new function.
19958         * lib/unigbrk/u8-grapheme-len.c: New file.
19959         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19960
19961         New module 'u16-grapheme-len'.
19962         * modules/unigbrk/u16-grapheme-len: New file.
19963         * modules/unigbrk/u16-grapheme-len-tests: New file.
19964         * lib/unigbrk.in.h: Add prototype for new function.
19965         * lib/unigbrk/u16-grapheme-len.c: New file.
19966         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19967
19968         New module 'u32-grapheme-len'.
19969         * modules/unigbrk/u32-grapheme-len: New file.
19970         * modules/unigbrk/u32-grapheme-len-tests: New file.
19971         * lib/unigbrk.in.h: Add prototype for new function.
19972         * lib/unigbrk/u32-grapheme-len.c: New file.
19973         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19974
19975         New module 'u8-grapheme-next'.
19976         * modules/unigbrk/u8-grapheme-next: New file.
19977         * modules/unigbrk/u8-grapheme-next-tests: New file.
19978         * lib/unigbrk.in.h: Add prototype for new function.
19979         * lib/unigbrk/u8-grapheme-next.c: New file.
19980         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19981
19982         New module 'u16-grapheme-next'.
19983         * modules/unigbrk/u16-grapheme-next: New file.
19984         * modules/unigbrk/u16-grapheme-next-tests: New file.
19985         * lib/unigbrk.in.h: Add prototype for new function.
19986         * lib/unigbrk/u16-grapheme-next.c: New file.
19987         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19988
19989         New module 'u32-grapheme-next'.
19990         * modules/unigbrk/u32-grapheme-next: New file.
19991         * modules/unigbrk/u32-grapheme-next-tests: New file.
19992         * lib/unigbrk.in.h: Add prototype for new function.
19993         * lib/unigbrk/u32-grapheme-next.c: New file.
19994         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19995
19996         New module 'u8-grapheme-prev'.
19997         * modules/unigbrk/u8-grapheme-prev: New file.
19998         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19999         * lib/unigbrk.in.h: Add prototype for new function.
20000         * lib/unigbrk/u8-grapheme-prev.c: New file.
20001         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
20002
20003         New module 'u16-grapheme-prev'.
20004         * modules/unigbrk/u16-grapheme-prev: New file.
20005         * modules/unigbrk/u16-grapheme-prev-tests: New file.
20006         * lib/unigbrk.in.h: Add prototype for new function.
20007         * lib/unigbrk/u16-grapheme-prev.c: New file.
20008         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
20009
20010         New module 'u32-grapheme-prev'.
20011         * modules/unigbrk/u32-grapheme-prev: New file.
20012         * modules/unigbrk/u32-grapheme-prev-tests: New file.
20013         * lib/unigbrk.in.h: Add prototype for new function.
20014         * lib/unigbrk/u32-grapheme-prev.c: New file.
20015         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
20016
20017         New module 'u8-grapheme-breaks'.
20018         * modules/unigbrk/u8-grapheme-breaks: New file.
20019         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
20020         * lib/unigbrk.in.h: Add prototype for new function.
20021         * lib/unigbrk/u8-grapheme-breaks.c: New file.
20022         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
20023
20024         New module 'u16-grapheme-breaks'.
20025         * modules/unigbrk/u16-grapheme-breaks: New file.
20026         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
20027         * lib/unigbrk.in.h: Add prototype for new function.
20028         * lib/unigbrk/u16-grapheme-breaks.c: New file.
20029         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
20030
20031         New module 'u32-grapheme-breaks'.
20032         * modules/unigbrk/u32-grapheme-breaks: New file.
20033         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
20034         * lib/unigbrk.in.h: Add prototype for new function.
20035         * lib/unigbrk/u32-grapheme-breaks.c: New file.
20036         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
20037
20038         New module 'ulc-grapheme-breaks'.
20039         * modules/unigbrk/ulc-grapheme-breaks: New file.
20040         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
20041         * m4/locale-ar.m4: New file.
20042         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
20043         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
20044         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
20045
20046 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20047
20048         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
20049         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
20050         modified how this file was generated before I initially submitted
20051         the module, but failed to regenerate it.  This meant that several
20052         of the level2 entries were wrong.
20053         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
20054         Remove the division-by-2 that is folded into the table now that
20055         gbrkprop.h has been regenerated properly.  Now -1 entries are
20056         handled correctly.
20057
20058         New module 'unigbrk/uc-gbrk-prop-tests'.
20059         * modules/unigbrk/uc-gbrk-prop-tests: New file.
20060         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
20061         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
20062         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
20063
20064 2011-01-01  Bruno Haible  <bruno@clisp.org>
20065
20066         Avoid use of hexadecimal escapes.
20067         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
20068         instead of hexadecimal escapes.
20069
20070 2011-01-01  Jim Meyering  <meyering@redhat.com>
20071
20072         maint: new rule to update copyright year ranges
20073         * Makefile (update-copyright): New rule.
20074
20075         maint: indent with TABs in Makefile
20076         * Makefile: Expand leading sequences of spaces to TABs
20077
20078         version-etc: update the copyright year it reports
20079         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
20080
20081 2010-12-31  Bruno Haible  <bruno@clisp.org>
20082
20083         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
20084         * lib/isfinite.c (zerof, zerod, zerol): New variables.
20085         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
20086         zero.
20087
20088 2010-12-31  Bruno Haible  <bruno@clisp.org>
20089
20090         pwrite: Work around HP-UX 11.11 bug.
20091         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
20092         works and set REPLACE_PWRITE if not.
20093         * lib/pwrite.c (pwrite): Add an implementation that uses the system
20094         function.
20095         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
20096
20097 2010-12-31  Bruno Haible  <bruno@clisp.org>
20098
20099         pread: Work around HP-UX 11 bugs.
20100         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
20101         and set REPLACE_PREAD if not.
20102         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
20103
20104 2010-12-31  Eric Blake  <eblake@redhat.com>
20105
20106         nl_langinfo: fix YESEXPR on Irix 6.5
20107         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
20108         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
20109         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
20110         it.
20111
20112 2010-12-31  Bruno Haible  <bruno@clisp.org>
20113
20114         iconv: Document HP-UX 11 bug.
20115         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
20116
20117 2010-12-31  Bruno Haible  <bruno@clisp.org>
20118
20119         ldexpl: Fix link error on HP-UX 11.
20120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
20121         LDEXPL_LIBM, using $ISNANL_LIBM.
20122
20123 2010-12-31  Eric Blake  <eblake@redhat.com>
20124
20125         ftello: avoid compilation failure with SunStudio c89
20126         * lib/ftello.c (ftello): Use lseek, not llseek.
20127
20128         tests: avoid failing coreutils tests on cygwin
20129         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
20130         (create_exe_shims_): Return 0 when skipping.
20131
20132 2010-12-31  Bruno Haible  <bruno@clisp.org>
20133
20134         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
20135         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
20136
20137 2010-12-31  Bruno Haible  <bruno@clisp.org>
20138
20139         waitpid: Fix link error in C++ mode.
20140         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
20141
20142 2010-12-31  Bruno Haible  <bruno@clisp.org>
20143
20144         isnan: Use GCC built-ins when possible.
20145         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
20146         __builtin_isnan.
20147         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
20148         (isnan): Define using GCC built-ins for GCC >= 4.0.
20149
20150 2010-12-31  Bruno Haible  <bruno@clisp.org>
20151
20152         isnand: Fix mistake.
20153         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
20154         __builtin_isnand.
20155
20156 2010-12-31  Bruno Haible  <bruno@clisp.org>
20157
20158         open: Avoid C++ error on HP-UX 11.
20159         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
20160
20161 2010-12-31  Bruno Haible  <bruno@clisp.org>
20162
20163         time_r: Add missing declarations on HP-UX 11.
20164         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
20165         instead of HAVE_LOCALTIME_R.
20166         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
20167         HAVE_LOCALTIME_R always.
20168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
20169         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
20170         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
20171         HAVE_LOCALTIME_R.
20172         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
20173         * doc/posix-functions/localtime_r.texi: Likewise.
20174
20175 2010-12-29  Eric Blake  <eblake@redhat.com>
20176
20177         mountlist: tweak previous commit
20178         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
20179         Reported by Paul Eggert.
20180
20181         mountlist: fix local drive detection on cygwin
20182         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
20183         that works for cygwin.
20184
20185 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20186
20187         ftoastr, snprintf: ftoastr + snprintf module
20188         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
20189         since the snprintf module now should be good enough here.
20190         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
20191         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
20192         and gl_MODULE_INDICATOR([snprintf]), but the former enables
20193         GNULIB_SNPRINTF only for the test directory, and the latter
20194         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
20195         seems to suffice by itself.
20196
20197 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20198
20199         alloca: one step towards thread-safety
20200         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
20201         need for a static variable.  All callers changed.  This does not
20202         make the alloca replacement thread-safe, but it's one step.
20203
20204         tests: minor indenting change
20205         * tests/init.sh: Sync from coreutils housekeeping patch
20206         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
20207         to keep lines within 80 columns.
20208
20209 2010-12-28  Jim Meyering  <meyering@redhat.com>
20210
20211         regex: don't infloop on persistent failing calloc
20212         * lib/regexec.c (build_trtable): Return failure indication upon
20213         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20214         In glibc, this was fixed for version 2.13:
20215         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
20216
20217 2010-12-28  Bruno Haible  <bruno@clisp.org>
20218             Paul Eggert <eggert@cs.ucla.edu>
20219
20220         linkat: Make implementation robust against system behaviour variations.
20221         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
20222         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
20223         way, and to -2 if it needs a generic runtime test.
20224         * lib/linkat.c (solaris_optimized_link_immediate,
20225         solaris_optimized_link_follow): New functions.
20226         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
20227         (check_same_link): Use it.
20228
20229 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
20230
20231         New module 'unigbrk/base'.
20232         * modules/unigbrk/base: New file.
20233         * lib/unigbrk.in.h: New file.
20234
20235         New module 'unigbrk/uc-gbrk-prop'.
20236         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
20237         * modules/unigbrk/uc-gbrk-prop: New file.
20238         * lib/unigbrk/gbrkprop.h: New file.
20239         * lib/unigbrk/uc-gbrk-prop.c: New file.
20240
20241         New module 'unigbrk/uc-is-grapheme-break'.
20242         * modules/unigbrk/uc-is-grapheme-break: New file.
20243         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
20244         * lib/unigbrk/uc-is-grapheme-break.c: New file.
20245         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
20246         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
20247         * tests/unigbrk/GraphemeBreakTest.txt: New file.
20248
20249         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
20250
20251 2010-12-27  Bruno Haible  <bruno@clisp.org>
20252
20253         linkat test: Avoid failure on Solaris 11 2010-11.
20254         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
20255
20256 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20257
20258         utimens: work around glibc rounding bug on more platforms
20259         * lib/utimens.c (fdutimens): Work around rounding bug even if
20260         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
20261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
20262
20263 2010-12-27  Bruno Haible  <bruno@clisp.org>
20264
20265         select tests: Improve comments.
20266         * tests/test-select.c (do_select): Add comments.
20267
20268 2010-12-27  Bruno Haible  <bruno@clisp.org>
20269
20270         select tests: Safer way of handling timeout.
20271         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
20272         at every invocation.
20273
20274 2010-12-27  Bruno Haible  <bruno@clisp.org>
20275
20276         select tests: Use 'bool' where appropriate.
20277         * tests/test-select.c (connect_to_socket): Change argument type to
20278         'bool'.
20279
20280 2010-12-27  Bruno Haible  <bruno@clisp.org>
20281
20282         select tests: Use existing modules.
20283         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
20284         (configure.ac): Don't test for unistd.h.
20285         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
20286         declared in <unistd.h>.
20287
20288 2010-12-27  Bruno Haible  <bruno@clisp.org>
20289
20290         mbrtowc: Work around a Solaris 7 bug.
20291         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
20292         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
20293         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
20294         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
20295         MBRTOWC_NULL_ARG1_BUG.
20296         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
20297         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
20298         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
20299         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
20300
20301 2010-12-27  Jim Meyering  <meyering@redhat.com>
20302
20303         read-file.c: tweak syntax
20304         * lib/read-file.c (fread_file): Remove space after "*" in function
20305         definitions.
20306
20307 2010-12-27  Bruno Haible  <bruno@clisp.org>
20308
20309         times test: Avoid gcc warnings on OSF/1.
20310         * tests/test-times.c (main): Cast printf arguments from clock_t to
20311         'long int'.
20312
20313 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20314
20315         utimens: work around glibc rounding bug on older Linux kernels
20316         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
20317         on Linux with a glibc whose utimes might not work, then work
20318         around a longstanding glibc bug involving rounding rather than
20319         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
20320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20321
20322 2010-12-26  Bruno Haible  <bruno@clisp.org>
20323
20324         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
20325         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
20326         _GL_CXXALIAS_SYS.
20327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20328
20329 2010-12-26  Bruno Haible  <bruno@clisp.org>
20330
20331         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
20332         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
20333         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20334         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
20335         looking for the declaration.
20336         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20337         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
20338         problem.
20339         * doc/posix-functions/inet_pton.texi: Likewise.
20340
20341 2010-12-26  Bruno Haible  <bruno@clisp.org>
20342
20343         arpa_inet: Use the common idioms with C++ support.
20344         * lib/arpa_inet.in.h: Include c++defs.h.
20345         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
20346         support.
20347         * modules/arpa_inet (Depends-on): Add c++defs.
20348         (Makefile.am): Substitute the contents of c++defs.h.
20349         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
20350         * modules/arpa_inet-c++-tests: New file.
20351         * tests/test-arpa_inet-c++.cc: New file.
20352
20353 2010-12-25  Bruno Haible  <bruno@clisp.org>
20354
20355         Fix more C++ link errors on Solaris 8.
20356         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
20357         $(LIB_EACCESS).
20358         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
20359         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
20360         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
20361         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
20362         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
20363
20364 2010-12-25  Bruno Haible  <bruno@clisp.org>
20365
20366         printf-posix: Fix link error when a non-GCC compiler is used.
20367         * lib/stdio.in.h (printf): When not using GCC, override printf
20368         correctly.
20369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20370
20371 2010-12-25  Bruno Haible  <bruno@clisp.org>
20372
20373         strerror_r-posix: Update doc.
20374         * doc/posix-functions/strerror_r.texi: Update doc about the return
20375         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
20376
20377 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20378
20379         utimens: simplify the logic of the previous change
20380         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
20381         This should not affect whether the test succeeds or fails.
20382
20383         utimens: configure better on hosts with NFS clock skew
20384         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
20385         uses the clock of the local host.  It might use the clock of the
20386         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
20387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20388
20389 2010-12-25  Bruno Haible  <bruno@clisp.org>
20390
20391         ptsname test: Avoid failure on Solaris.
20392         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
20393         open a pseudo-terminal; don't use BSD-style ptys.
20394         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
20395
20396 2010-12-25  Bruno Haible  <bruno@clisp.org>
20397
20398         ptsname: Avoid ERANGE failure on some systems.
20399         * lib/ptsname.c (buffer): Increase size.
20400
20401 2010-12-25  Bruno Haible  <bruno@clisp.org>
20402
20403         rename, renameat: Avoid test failures at NFS mounted locations.
20404         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
20405         so that subsequent mkdir calls succeed.
20406
20407 2010-12-25  Bruno Haible  <bruno@clisp.org>
20408
20409         iswblank: Fix C++ link error on Solaris 8.
20410         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
20411         _GL_FUNCDECL_SYS.
20412
20413 2010-12-25  Bruno Haible  <bruno@clisp.org>
20414
20415         unistd: Fix C++ link error on Solaris 8.
20416         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
20417
20418 2010-12-25  Bruno Haible  <bruno@clisp.org>
20419
20420         readlink doc: Mention an old glibc bug.
20421         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
20422
20423 2010-12-25  Bruno Haible  <bruno@clisp.org>
20424
20425         fcntl-h: Fix for use of C++ on glibc systems.
20426         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20427         also on glibc systems in C++ mode.
20428         Reported by Gary V. Vaughan <gary@gnu.org>.
20429
20430 2010-12-25  Bruno Haible  <bruno@clisp.org>
20431
20432         roundl-ieee: Make it work on OSF/1 5.1 with cc.
20433         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
20434
20435 2010-12-25  Bruno Haible  <bruno@clisp.org>
20436
20437         truncl-ieee: Make it work on OSF/1 5.1 with cc.
20438         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
20439         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
20440         test whether truncl works according to ISO C 99 with IEC 60559.
20441         * m4/truncl-ieee.m4: New file.
20442         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
20443         m4/signbit.m4.
20444         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
20445
20446 2010-12-25  Bruno Haible  <bruno@clisp.org>
20447
20448         ceill-ieee: Make it work on OSF/1 5.1 with cc.
20449         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
20450         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
20451         test whether ceill works according to ISO C 99 with IEC 60559.
20452         * m4/ceill-ieee.m4: New file.
20453         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
20454         m4/signbit.m4.
20455         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
20456
20457 2010-12-25  Bruno Haible  <bruno@clisp.org>
20458
20459         Ensure all prerequisites of <wchar.h> are included.
20460         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
20461         before <wchar.h>.
20462         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20463         gl_MBRLEN_NUL_RETVAL): Likewise.
20464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
20466         AC_FUNC_MBRTOWC): Likewise.
20467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20468         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
20469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20470         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20471         Likewise.
20472         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20473         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
20474         (gl_WCHAR_H): Improve comments.
20475         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20476
20477 2010-12-25  Bruno Haible  <bruno@clisp.org>
20478
20479         strtok_r: Fix C syntax error in autoconf macro.
20480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
20481         characters in test program.
20482
20483 2010-12-24  Bruno Haible  <bruno@clisp.org>
20484
20485         ceil, trunc, round: Fix gcc warnings.
20486         * lib/ceil.c (MIN): Undefine before redefining.
20487         * lib/trunc.c (MIN): Likewise.
20488         * lib/round.c (MIN): Likewise.
20489         Include <math.h> first.
20490
20491 2010-12-24  Bruno Haible  <bruno@clisp.org>
20492
20493         select tests: Avoid failures on OSF/1 5.1.
20494         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
20495         failure of closing the last socket; it may fail with ECONNRESET.
20496
20497 2010-12-24  Eric Blake  <eblake@redhat.com>
20498
20499         stdint: avoid HP-UX 10.20 preprocessor bug
20500         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
20501         than #if.
20502         * tests/test-floor2.c (main): Likewise.
20503         Reported by Peter O'Gorman.
20504
20505         pipe: make obsoletion transition easier
20506         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
20507         * modules/pipe (Files): Include revived file.
20508         (Include): Drop reference, to mirror getdate's behavior.
20509
20510 2010-12-24  Bruno Haible  <bruno@clisp.org>
20511
20512         sys_socket: Hide mismatch of declarations on NonStop Kernel.
20513         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
20514         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
20515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20516
20517 2010-12-24  Bruno Haible  <bruno@clisp.org>
20518
20519         gethostname: Ensure declaration on NonStop Kernel.
20520         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
20521         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20522
20523 2010-12-24  Bruno Haible  <bruno@clisp.org>
20524
20525         sys_select: Ensure all necessary types on NonStop Kernel.
20526         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
20527         include <sys/time.h>.
20528         * doc/posix-headers/sys_select.texi: Mention that it's missing on
20529         NonStop Kernel.
20530         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20531
20532 2010-12-24  Bruno Haible  <bruno@clisp.org>
20533
20534         sys_select: Remove unneeded include.
20535         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
20536         have <sys/select.h>.
20537
20538 2010-12-24  Bruno Haible  <bruno@clisp.org>
20539
20540         gethostname: Provide a fallback for HOST_NAME_MAX.
20541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20542         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
20543         instead.
20544         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20545
20546 2010-12-24  Bruno Haible  <bruno@clisp.org>
20547
20548         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
20549         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
20550         (SA_RESTART): Likewise.
20551         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20552
20553 2010-12-24  Bruno Haible  <bruno@clisp.org>
20554
20555         signal: Define NSIG.
20556         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
20557         * tests/test-signal.c (nsig): New variable.
20558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20559
20560 2010-12-24  Bruno Haible  <bruno@clisp.org>
20561
20562         rename, renameat: Avoid test failures on OSF/1 5.1.
20563         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
20564         alternative error codes.
20565         * tests/test-renameat.c (main): Likewise.
20566
20567 2010-12-24  Bruno Haible  <bruno@clisp.org>
20568
20569         *printf: Detect large precisions bug on Solaris 10/SPARC.
20570         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
20571         by Paul Eggert.
20572         * tests/test-snprintf-posix.h (test_function): Add this test code here
20573         too.
20574         * tests/test-sprintf-posix.h (test_function): Likewise.
20575         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20576         * tests/test-vasprintf-posix.c (test_function): Likewise.
20577         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
20578         around by gnulib.
20579         * doc/posix-functions/printf.texi: Likewise.
20580         * doc/posix-functions/snprintf.texi: Likewise.
20581         * doc/posix-functions/sprintf.texi: Likewise.
20582         * doc/posix-functions/vfprintf.texi: Likewise.
20583         * doc/posix-functions/vprintf.texi: Likewise.
20584         * doc/posix-functions/vsnprintf.texi: Likewise.
20585         * doc/posix-functions/vsprintf.texi: Likewise.
20586         * doc/posix-functions/dprintf.texi: Undo last commit.
20587         * doc/posix-functions/vdprintf.texi: Likewise.
20588
20589 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20590
20591         tests: port test-fdutimensat.c to Solaris 8
20592         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
20593         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
20594         On Solaris 8, it fails with errno == ENOSYS, because there is no
20595         futimens (so it can't use the fd), and there is no lutimens (so it
20596         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
20597
20598         vsnprintf: make more consistent with snprintf; doc fixes
20599
20600         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
20601         the byte count return problem was promoted from the snprintf-posix
20602         to the snprintf module.
20603         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20604         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
20605         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
20606         * tests/test-snprintf.c (main): Check the byte count returned.
20607         * tests/test-vsnprintf.c (main): Likewise.
20608
20609 2010-12-23  Eric Blake  <eblake@redhat.com>
20610
20611         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
20612         * modules/sigpipe (License): Relax license.
20613
20614 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20615
20616         doc: document Solaris printf bug with large float precisions
20617         * doc/posix-functions/dprintf.texi (dprintf):
20618         * doc/posix-functions/fprintf.texi (fprintf):
20619         * doc/posix-functions/printf.texi (printf):
20620         * doc/posix-functions/snprintf.texi (snprintf):
20621         * doc/posix-functions/sprintf.texi (sprintf):
20622         * doc/posix-functions/vdprintf.texi (vdprintf):
20623         * doc/posix-functions/vfprintf.texi (vfprintf):
20624         * doc/posix-functions/vprintf.texi (vprintf):
20625         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20626         * doc/posix-functions/vsprintf.texi (vsprintf):
20627         Mention that these functions mishandle large floating point
20628         precisions on Solaris 10.  The same bug is also present in Solaris
20629         8, and I assume earlier.  This causes "cd gnulib-tests; make
20630         check" to fail on Solaris 8 (and I assume, later) when building
20631         the latest coreutils, in test-vasprintf-posix's call to
20632         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
20633         the wide flavors (e.g., wprintf) so this patch just updates the
20634         documentation for the narrow ones.
20635
20636         test-posixtm.c: add two tests
20637         * tests/test-posixtm.c: Add two tests, to highlight the
20638         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
20639         around this bug; this is merely to document it.
20640
20641 2010-12-22  Bruno Haible  <bruno@clisp.org>
20642
20643         getlogin_r: Work around portability problem on OSF/1.
20644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
20645         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
20646         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
20647         test for a truncated result.
20648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
20649         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
20650         * modules/getlogin_r (Depends-on): Add memchr.
20651         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
20652
20653 2010-12-22  Bruno Haible  <bruno@clisp.org>
20654
20655         ptsname: Avoid test failure on OSF/1 5.1.
20656         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
20657         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
20658         (same_slave): New function.
20659         (main): Use it to compare ptsname's result with the expected file name.
20660
20661 2010-12-22  Bruno Haible  <bruno@clisp.org>
20662
20663         Port extended stdio modules to HP NonStop Kernel.
20664         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
20665         macros.
20666         * lib/fbufmode.c: Update comments.
20667         * lib/fflush.c: Likewise.
20668         * lib/fpurge.c: Likewise.
20669         * lib/freadable.c: Likewise.
20670         * lib/freadahead.c: Likewise.
20671         * lib/freading.c: Likewise.
20672         * lib/freadptr.c: Likewise.
20673         * lib/freadseek.c: Likewise.
20674         * lib/fseeko.c: Likewise.
20675         * lib/fseterr.c: Likewise.
20676         * lib/fwritable.c: Likewise.
20677         * lib/fwriting.c: Likewise.
20678         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20679
20680 2010-12-22  Bruno Haible  <bruno@clisp.org>
20681
20682         ttyname_r: Work around bug on OSF/1 5.1.
20683         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
20684         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
20685         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
20686         present.
20687         * lib/ttyname_r.c (ttyname_r): Update comments.
20688
20689 2010-12-22  Bruno Haible  <bruno@clisp.org>
20690
20691         round: Implement result sign according to IEEE 754.
20692         * lib/round.c (MIN, MINUS_ZERO): New macros.
20693         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
20694         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
20695         * tests/test-round-ieee.c (main): Likewise.
20696         * tests/test-roundl-ieee.c (main): Likewise.
20697
20698         trunc: Implement result sign according to IEEE 754.
20699         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
20700         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
20701         * tests/test-trunc2.c: Include minus-zero.h.
20702         (MINUS_ZERO): New macro.
20703         (trunc_reference): Keep in sync with lib/trunc.c.
20704         * tests/test-truncf2.c: Include minus-zero.h.
20705         (MINUS_ZERO): New macro.
20706         (truncf_reference): Keep in sync with lib/trunc.c.
20707         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
20708         * tests/test-trunc-ieee.c (main): Likewise.
20709         * tests/test-truncl-ieee.c (main): Likewise.
20710
20711         ceil: Implement result sign according to IEEE 754.
20712         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
20713         (FUNC): Return -0.0 for -1 < x < 0.
20714         * tests/test-ceil2.c: Include minus-zero.h.
20715         (MINUS_ZERO): New macro.
20716         (ceil_reference): Keep in sync with lib/ceil.c.
20717         * tests/test-ceilf2.c: Include minus-zero.h.
20718         (MINUS_ZERO): New macro.
20719         (ceilf_reference): Keep in sync with lib/ceil.c.
20720         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
20721         * tests/test-ceil-ieee.c (main): Likewise.
20722         * tests/test-ceill-ieee.c (main): Likewise.
20723
20724         floor: Implement result sign according to IEEE 754.
20725         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
20726         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
20727         * tests/test-floorf2.c (floorf_reference): Likewise.
20728         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
20729         * tests/test-floor-ieee.c (main): Likewise.
20730         * tests/test-floorl-ieee.c (main): Likewise.
20731
20732 2010-12-22  Bruno Haible  <bruno@clisp.org>
20733
20734         getaddrinfo: Update doc.
20735         * doc/posix-functions/gai_strerror.texi: Return type is also different
20736         on AIX and HP-UX.
20737
20738 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20739
20740         getaddrinfo, inet_ntop: Update doc for Solaris.
20741         * doc/posix-functions/gai_strerror.texi: Return type is also an
20742         issue on Solaris 9 and earlier.
20743         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
20744         on Solaris 10 and earlier.
20745
20746 2010-12-21  Bruno Haible  <bruno@clisp.org>
20747
20748         New module 'roundl-ieee'.
20749         * modules/roundl-ieee: New file.
20750         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
20751         test whether roundl works according to ISO C 99 with IEC 60559.
20752         * m4/roundl-ieee.m4: New file.
20753         * modules/roundl-ieee-tests: New file.
20754         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
20755         * tests/test-roundl.c (main): Remove signbit tests.
20756         * modules/roundl-tests (Depends-on): Remove signbit.
20757         * doc/posix-functions/roundl.texi: Mention the new module.
20758
20759 2010-12-21  Bruno Haible  <bruno@clisp.org>
20760
20761         New module 'truncl-ieee'.
20762         * modules/truncl-ieee: New file.
20763         * modules/truncl-ieee-tests: New file.
20764         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
20765         * tests/test-truncl.c (main): Remove signbit tests.
20766         * modules/truncl-tests (Depends-on): Remove signbit.
20767         * doc/posix-functions/truncl.texi: Mention the new module.
20768
20769 2010-12-21  Bruno Haible  <bruno@clisp.org>
20770
20771         New module 'ceill-ieee'.
20772         * modules/ceill-ieee: New file.
20773         * modules/ceill-ieee-tests: New file.
20774         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
20775         * tests/test-ceill.c (main): Remove signbit tests.
20776         * modules/ceill-tests (Depends-on): Remove signbit.
20777         * doc/posix-functions/ceill.texi: Mention the new module.
20778
20779 2010-12-21  Bruno Haible  <bruno@clisp.org>
20780
20781         New module 'floorl-ieee'.
20782         * modules/floorl-ieee: New file.
20783         * modules/floorl-ieee-tests: New file.
20784         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
20785         * tests/test-floorl.c (main): Remove signbit tests.
20786         * modules/floorl-tests (Depends-on): Remove signbit.
20787         * doc/posix-functions/floorl.texi: Mention the new module.
20788
20789 2010-12-21  Bruno Haible  <bruno@clisp.org>
20790
20791         New module 'round-ieee'.
20792         * modules/round-ieee: New file.
20793         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
20794         whether round works according to ISO C 99 with IEC 60559.
20795         * m4/round-ieee.m4: New file.
20796         * modules/round-ieee-tests: New file.
20797         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
20798         * tests/test-round1.c (main): Remove signbit tests.
20799         * modules/round-tests (Depends-on): Remove 'signbit'.
20800         * doc/posix-functions/round.texi: Mention the new module.
20801
20802 2010-12-21  Bruno Haible  <bruno@clisp.org>
20803
20804         New module 'trunc-ieee'.
20805         * modules/trunc-ieee: New file.
20806         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20807         whether trunc works according to ISO C 99 with IEC 60559.
20808         * m4/trunc-ieee.m4: New file.
20809         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20811         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20812         * modules/trunc-ieee-tests: New file.
20813         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20814         * tests/test-trunc1.c (main): Remove signbit tests.
20815         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20816         * doc/posix-functions/trunc.texi: Mention the new module.
20817
20818 2010-12-21  Bruno Haible  <bruno@clisp.org>
20819
20820         New module 'ceil-ieee'.
20821         * modules/ceil-ieee: New file.
20822         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20823         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20824         ISO C 99 with IEC 60559.
20825         * m4/ceil-ieee.m4: New file.
20826         * modules/ceil (Files): Add lib/ceil.c.
20827         (Depends-on): Add 'float'.
20828         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20829         * lib/math.in.h (ceil): New declaration.
20830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20831         REPLACE_CEIL.
20832         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20833         * modules/ceil-ieee-tests: New file.
20834         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20835         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20836         * doc/posix-functions/ceil.texi: Mention the new module.
20837
20838 2010-12-21  Bruno Haible  <bruno@clisp.org>
20839
20840         New module 'floor-ieee'.
20841         * modules/floor-ieee: New file.
20842         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20843         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20844         ISO C 99 with IEC 60559.
20845         * m4/floor-ieee.m4: New file.
20846         * modules/floor (Files): Add lib/floor.c.
20847         (Depends-on): Add 'float'.
20848         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20849         * lib/math.in.h (floor): New declaration.
20850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20851         REPLACE_FLOOR.
20852         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20853         * modules/floor-ieee-tests: New file.
20854         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20855         * tests/test-math-c++.cc: Check the signature of 'floor'.
20856         * doc/posix-functions/floor.texi: Mention the new module.
20857
20858 2010-12-21  Bruno Haible  <bruno@clisp.org>
20859
20860         New module 'roundf-ieee'.
20861         * modules/roundf-ieee: New file.
20862         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20863         test whether roundf works according to ISO C 99 with IEC 60559.
20864         * m4/roundf-ieee.m4: New file.
20865         * modules/roundf-ieee-tests: New file.
20866         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20867         * tests/test-roundf1.c (main): Remove signbit tests.
20868         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20869         * doc/posix-functions/roundf.texi: Mention the new module.
20870
20871 2010-12-21  Bruno Haible  <bruno@clisp.org>
20872
20873         New module 'truncf-ieee'.
20874         * modules/truncf-ieee: New file.
20875         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20876         test whether truncf works according to ISO C 99 with IEC 60559.
20877         * m4/truncf-ieee.m4: New file.
20878         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20880         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20881         * modules/truncf-ieee-tests: New file.
20882         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20883         * tests/test-truncf1.c (main): Remove signbit tests.
20884         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20885         * doc/posix-functions/truncf.texi: Mention the new module.
20886
20887 2010-12-21  Bruno Haible  <bruno@clisp.org>
20888
20889         New module 'ceilf-ieee'.
20890         * modules/ceilf-ieee: New file.
20891         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20892         test whether ceilf works according to ISO C 99 with IEC 60559.
20893         * m4/ceilf-ieee.m4: New file.
20894         * modules/ceilf-ieee-tests: New file.
20895         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20896         * tests/test-ceilf1.c (main): Remove signbit tests.
20897         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20898         * doc/posix-functions/ceilf.texi: Mention the new module.
20899
20900 2010-12-21  Bruno Haible  <bruno@clisp.org>
20901
20902         New module 'floorf-ieee'.
20903         * modules/floorf-ieee: New file.
20904         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20905         test whether floorf works according to ISO C 99 with IEC 60559.
20906         * m4/floorf-ieee.m4: New file.
20907         * modules/floorf-ieee-tests: New file.
20908         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20909         * tests/test-floorf1.c (main): Remove signbit tests.
20910         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20911         * doc/posix-functions/floorf.texi: Mention the new module.
20912
20913 2010-12-21  Bruno Haible  <bruno@clisp.org>
20914
20915         Support for minus zero in autoconf macros.
20916         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20917         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20918         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20919         * tests/minus-zero.h: Update comments.
20920
20921 2010-12-21  Bruno Haible  <bruno@clisp.org>
20922
20923         Tests for module 'ceil'.
20924         * modules/ceil-tests: New file.
20925         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20926         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20927
20928 2010-12-21  Bruno Haible  <bruno@clisp.org>
20929
20930         Tests for module 'floor'.
20931         * modules/floor-tests: New file.
20932         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20933         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20934
20935 2010-12-21  Bruno Haible  <bruno@clisp.org>
20936
20937         math: Fix indentation.
20938         * lib/math.in.h (floorf): Fix indentation.
20939
20940 2010-12-21  Bruno Haible  <bruno@clisp.org>
20941
20942         Fix cross-compilation guesses on Solaris.
20943         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20944         not match "solaris2.10".
20945         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20946         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20947         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20948
20949 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20950
20951         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20952         This fixes a problem observed with the latest coreutils snapshot
20953         that caused a test to fail on Solaris 8.  src/csplit.c's call
20954         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20955         earlier, instead of returning the number of bytes that would have
20956         been generated; this causes csplit to incorrectly report memory
20957         exhaustion.
20958         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20959         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20960         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20961         comments to match.
20962         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20963         Fix typo in matching older versions of Solaris: "solaris2.10"
20964         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20965         only for guessing while cross-compiling.
20966         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20967
20968 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20969
20970         ftoastr: fix comment again
20971         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20973         Also, simplify example a bit by using flags = 0.
20974
20975 2010-12-20  Bruno Haible  <bruno@clisp.org>
20976
20977         round*, trunc*: Update documentation regarding glibc.
20978         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20979         * doc/posix-functions/round.texi: Likewise.
20980         * doc/posix-functions/roundl.texi: Likewise.
20981         * doc/posix-functions/truncf.texi: Likewise.
20982         * doc/posix-functions/trunc.texi: Likewise.
20983         * doc/posix-functions/truncl.texi: Likewise.
20984
20985 2010-12-20  Bruno Haible  <bruno@clisp.org>
20986
20987         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20988         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20989         * doc/posix-functions/round.texi: Likewise.
20990         * doc/posix-functions/roundl.texi: Likewise.
20991
20992 2010-12-20  Bruno Haible  <bruno@clisp.org>
20993
20994         ttyname_r: Add missing declaration on HP-UX 11.
20995         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20996         HAVE_TTYNAME_R.
20997         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20998         declared. Set HAVE_TTYNAME_R always.
20999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21000         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
21001         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
21002         HAVE_TTYNAME_R.
21003         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
21004
21005 2010-12-20  Bruno Haible  <bruno@clisp.org>
21006
21007         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
21008         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
21009         * doc/posix-functions/getlogin_r.texi: Likewise.
21010         * tests/test-getlogin.c: Include <errno.h>.
21011         (main): Avoid test failure on HP-UX 11.11.
21012         * tests/test-getlogin_r.c (main): Likewise.
21013
21014 2010-12-20  Bruno Haible  <bruno@clisp.org>
21015
21016         getlogin_r: Add missing declaration on HP-UX 11.
21017         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
21018         declared also when it exists as a function.
21019         * doc/posix-functions/getlogin_r.texi: Document this workaround.
21020
21021 2010-12-20  Bruno Haible  <bruno@clisp.org>
21022
21023         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
21024         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
21025         through wcrtomb.
21026
21027 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21028
21029         ftoastr: fix comment
21030         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21031         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
21032
21033 2010-12-19  Bruno Haible  <bruno@clisp.org>
21034
21035         isnan: Ensure it is a macro.
21036         * lib/math.in.h (isnan): Define as a macro if not already a macro.
21037         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
21038         Solaris.
21039
21040 2010-12-19  Bruno Haible  <bruno@clisp.org>
21041
21042         ldexpl test: Fix link error on OSF/1 5.1.
21043         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
21044
21045 2010-12-19  Bruno Haible  <bruno@clisp.org>
21046
21047         wctype: Make it work in C++ mode on OSF/1 5.1.
21048         * lib/wctype.in.h (iswblank): Declare but not define here.
21049         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
21050         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
21051         * modules/wctype (Files): Add lib/iswblank.c.
21052
21053 2010-12-19  Bruno Haible  <bruno@clisp.org>
21054
21055         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
21056         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
21057         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
21058
21059 2010-12-19  Bruno Haible  <bruno@clisp.org>
21060
21061         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
21062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
21063         _POSIX_PII_SOCKET.
21064         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
21065         * doc/posix-functions/recvfrom.texi: Likewise.
21066         * doc/posix-functions/send.texi: Likewise.
21067         * doc/posix-functions/sendto.texi: Likewise.
21068
21069 2010-12-19  Bruno Haible  <bruno@clisp.org>
21070
21071         tcgetsid: Add missing declaration on OSF/1 5.1.
21072         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
21073         HAVE_TCGETSID.
21074         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
21075         Don't set HAVE_TCGETSID.
21076         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
21077         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
21078         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
21079         HAVE_TCGETSID.
21080         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
21081
21082 2010-12-19  Bruno Haible  <bruno@clisp.org>
21083
21084         stdio: Fix problem with popen() declaration on OSF/1 5.1.
21085         * lib/stdio.in.h: During the include_next statement, let recursive
21086         includes of this file include only the system header file.
21087
21088 2010-12-19  Bruno Haible  <bruno@clisp.org>
21089
21090         iconv_open: Fix regression from 2010-12-04.
21091         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
21092         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
21093
21094 2010-12-19  Bruno Haible  <bruno@clisp.org>
21095
21096         stdbool test: Avoid a gcc warning.
21097         * tests/test-stdbool.c (main): Fail if e1 is false.
21098         Reported by Jim Meyering.
21099
21100 2010-12-19  Jim Meyering  <meyering@redhat.com>
21101
21102         setenv: restore to working order
21103         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
21104         mistakenly removed.
21105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
21106         HAVE_SETENV.
21107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
21108         HAVE_SETENV.
21109
21110 2010-12-19  Bruno Haible  <bruno@clisp.org>
21111
21112         Document some different function declarations on OSF/1 5.1.
21113         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
21114         * doc/posix-functions/inet_ntop.texi: Likewise.
21115         * doc/posix-functions/gethostname.texi: Likewise.
21116         * lib/unistd.in.h (gethostname): Update comment.
21117
21118 2010-12-19  Bruno Haible  <bruno@clisp.org>
21119
21120         doc: Mention vasprintf-posix module.
21121         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
21122         the 'vasprintf-posix' module.
21123         * doc/glibc-functions/vasprintf.texi: Likewise.
21124
21125 2010-12-19  Bruno Haible  <bruno@clisp.org>
21126
21127         unsetenv: Add missing declaration on OSF/1 5.1.
21128         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
21129         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
21130         Don't set HAVE_UNSETENV. In the test program, set _BSD.
21131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
21132         not HAVE_UNSETENV.
21133         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
21134         HAVE_UNSETENV.
21135         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
21136
21137 2010-12-19  Bruno Haible  <bruno@clisp.org>
21138
21139         setenv: Add missing declaration on OSF/1 5.1.
21140         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
21141         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
21142         declared. Don't set HAVE_SETENV.
21143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
21144         not HAVE_SETENV.
21145         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
21146         HAVE_SETENV.
21147         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
21148
21149 2010-12-19  Bruno Haible  <bruno@clisp.org>
21150
21151         nl_langinfo tests: Avoid gcc warning.
21152         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
21153
21154 2010-12-19  Bruno Haible  <bruno@clisp.org>
21155
21156         mknod: Avoid error in C++ mode on OSF/1 with GCC.
21157         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
21158         _GL_CXXALIAS_SYS.
21159
21160 2010-12-19  Bruno Haible  <bruno@clisp.org>
21161
21162         stdbool: Relax test.
21163         * tests/test-stdbool.c (e): Don't require that casts from a variable's
21164         address to 'bool' work in static initializer, for compilers other than
21165         GCC.
21166
21167 2010-12-19  Bruno Haible  <bruno@clisp.org>
21168
21169         ftello: Add missing declaration on OSF/1 5.1.
21170         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
21171         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
21172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
21173         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
21174         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
21175
21176 2010-12-19  Bruno Haible  <bruno@clisp.org>
21177
21178         fseeko: Add missing declaration on OSF/1 5.1.
21179         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
21180         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
21181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
21182         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
21183         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
21184
21185 2010-12-19  Bruno Haible  <bruno@clisp.org>
21186
21187         fchdir: Add missing declaration on OSF/1 5.1.
21188         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
21189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
21190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
21191         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
21192         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
21193
21194 2010-12-19  Bruno Haible  <bruno@clisp.org>
21195
21196         relocatable-prog-wrapper: Separate from relocatable-prog.
21197         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
21198         uninstall-relocwrapper rule here.
21199         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
21200         Reported by Ian Beckwith <ianb@erislabs.net>.
21201
21202 2010-12-19  Bruno Haible  <bruno@clisp.org>
21203
21204         unistr/u8-mbsnlen: Add missing dependency.
21205         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
21206         Reported by Ian Beckwith <ianb@erislabs.net>.
21207
21208 2010-12-19  Bruno Haible  <bruno@clisp.org>
21209
21210         iconv: Make it possible again to use this module without 'iconv-h'.
21211         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
21212         if it is not defined.
21213         Reported by Ian Beckwith <ianb@erislabs.net>.
21214
21215 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21216
21217         acl: port to Solaris 8 when copying from tmpfs to ufs
21218         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
21219         error number.  Problem observed on Solaris 8 with latest
21220         coreutils, with "mv A B", where A is on a tmpfs file system and B
21221         is on a ufs file system.  This caused coreutils' mv/part-symlink
21222         test to fail.
21223
21224         tests: set fail=0 at start
21225         * tests/init.sh (setup_): Move fail=0 initialization here ...
21226         (mktempd_): ... from here, so that tests can rely on fail being
21227         set to 0 initially.  This fixes a problem in coreutils; see:
21228         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
21229
21230 2010-12-18  Bruno Haible  <bruno@clisp.org>
21231
21232         memmem-simple: Stylistic changes.
21233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
21234         Fix preprocessor directive indentation.
21235
21236 2010-12-15  Pádraig Brady <P@draigBrady.com>
21237
21238         memmem, memmem-simple: reorganize and expand empty needle check
21239         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
21240         functional checks to memmem-simple so that one has a fully functional
21241         memmem by using just this module.
21242         Restrict the performance only check to the memmem module.
21243         Also expand the empty needle check to ensure the correct
21244         pointer is returned, not just a non NULL pointer.
21245         * doc/glibc-functions/memmem.texi: Rearrange the portability
21246         documentation to correlate with the rearranged checks.
21247         Clarify exactly how the memmem and memmem-simple modules
21248         relate to each other.
21249
21250 2010-12-15  Pádraig Brady <P@draigBrady.com>
21251             Bruno Haible  <bruno@clisp.org>
21252
21253         Improve cross-compilation guesses for uClibc.
21254         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
21255         that uClibc does not have the glibc bug.
21256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21257         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
21258
21259 2010-12-14  Eric Blake  <eblake@redhat.com>
21260
21261         configmake: provide fallbacks for oldest supported autotools
21262         * m4/configmake.m4: New file.
21263         * modules/configmake (Files): Ship it.
21264         (configure.ac): Use it to guarantee fallbacks.
21265
21266 2010-12-13  Pádraig Brady <P@draigBrady.com>
21267
21268         read-file: Improve handling of large files
21269         * lib/read-file.c (fread_file): Minimize realloc()s
21270         for regular files, and better manage sizes around SIZE_MAX.
21271
21272 2010-12-13  Eric Blake  <eblake@redhat.com>
21273
21274         cloexec, fcntl: relax license
21275         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
21276         consent from all contributors.
21277         * modules/fcntl (License): Likewise.
21278
21279 2010-12-10  Bruno Haible  <bruno@clisp.org>
21280
21281         Tests for module 'pipe-posix'.
21282         * modules/pipe-posix-tests: New file.
21283         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
21284
21285 2010-12-10  Bruno Haible  <bruno@clisp.org>
21286
21287         pipe-posix: Make it work in C++ mode.
21288         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
21289         (pipe): Use common idiom, not a macro definition.
21290         * lib/pipe.c: New file.
21291         * m4/pipe.m4: New file.
21292         * modules/pipe-posix (Description): Enhance.
21293         (Files): Add lib/pipe.c, m4/pipe.m4.
21294         (configure.ac): Invoke gl_FUNC_PIPE.
21295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
21296         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
21297         * tests/test-unistd-c++.cc: Check the signature of pipe.
21298
21299 2010-12-10  Bruno Haible  <bruno@clisp.org>
21300
21301         Rename module 'pipe' to 'spawn-pipe'.
21302         * modules/spawn-pipe: New file, renamed from modules/pipe.
21303         (Files, configure.ac, Makefile.am): Update.
21304         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
21305         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
21306         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
21307         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
21308         "spawn-pipe.h" instead of "pipe.h".
21309         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
21310         to gl_SPAWN_PIPE.
21311         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
21312         (Files, Makefile.am): Update.
21313         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
21314         Update.
21315         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
21316         Include "spawn-pipe.h" instead of "pipe.h".
21317         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
21318         * lib/javacomp.c: Likewise.
21319         * lib/javaversion.c: Likewise.
21320         * lib/pipe-filter-gi.c: Likewise.
21321         * lib/pipe-filter-ii.c: Likewise.
21322         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
21323         * modules/javacomp (Depends-on): Likewise.
21324         * modules/javaversion (Depends-on): Likewise.
21325         * modules/pipe-filter-gi (Depends-on): Likewise.
21326         * modules/pipe-filter-ii (Depends-on): Likewise.
21327         * MODULES.html.sh (Executing programs): Update.
21328         * NEWS: Mention the change.
21329
21330 2010-12-10  Eric Blake  <eblake@redhat.com>
21331
21332         pipe-posix: new module
21333         * modules/pipe-posix: New file.
21334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
21335         (gl_UNISTD_H): Check for declaration.
21336         * modules/unistd (Makefile.am): Substitute it.
21337         * lib/unistd.in.h (pipe): Provide it for mingw.
21338         * doc/posix-functions/pipe.texi (pipe): Update documentation.
21339         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
21340
21341 2010-12-07  Bruno Haible  <bruno@clisp.org>
21342
21343         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
21344         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
21345         u8_strcmp_gnu.
21346         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
21347
21348 2010-12-06  Bruno Haible  <bruno@clisp.org>
21349
21350         Update internal documentation.
21351         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
21352
21353 2010-12-04  Bruno Haible  <bruno@clisp.org>
21354
21355         Put more information about failed tests into the test return codes.
21356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
21357         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
21358         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21360         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21362         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21363         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21364         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
21365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21366         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
21367         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21368         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21369         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21370         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
21371         returns a bit mask.
21372         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21373         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
21374         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
21375         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21376         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21377         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21378         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21380         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21382         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21383         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21384         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21385         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21386         * m4/link.m4 (gl_FUNC_LINK): Likewise.
21387         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21388         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
21389         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
21390         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21391         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
21392         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21393         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21395         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21396         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21397         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21398         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21399         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21400         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21401         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
21402         gl_PRINTF_PRECISION): Likewise.
21403         * m4/regex.m4 (gl_REGEX): Likewise.
21404         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
21407         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21411         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
21412         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21413         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21414         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21417         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21418         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21419         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21420         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21421         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21423         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
21424         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
21425         enumerated value.
21426         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
21427
21428 2010-12-04  Bruno Haible  <bruno@clisp.org>
21429
21430         Update for Solaris 11 2010-11.
21431         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
21432         Express, released in November 2010.
21433
21434 2010-12-04  Bruno Haible  <bruno@clisp.org>
21435
21436         nproc: Relax license.
21437         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
21438         and Paul Eggert.
21439         Requested by Ludovic Courtès <ludo@gnu.org>.
21440
21441 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21442
21443         utimecmp: fine-grained src to nearby coarse-grained dest
21444
21445         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
21446         and the source is on a file system with higher-resolution time
21447         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
21448         not work, and the time stamps are close together, the algorithm to
21449         determine the exact resolution from the read-back mtime was buggy:
21450         it had a "!=" where it should have had an "==".  This bug has been
21451         in the code ever since it was introduced to gnulib.
21452         Problem reported by Dan Jacobson in
21453         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
21454
21455 2010-11-30  Bruno Haible  <bruno@clisp.org>
21456
21457         strerror_r-posix: Fix autoconf test.
21458         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
21459
21460 2010-11-28  Bruno Haible  <bruno@clisp.org>
21461             Paul Eggert  <eggert@cs.ucla.edu>
21462
21463         Tests for module 'getdomainname'.
21464         * modules/getdomainname-tests: New file.
21465         * tests/test-getdomainname.c: New file, based on
21466         tests/test-gethostname.c.
21467
21468 2010-11-28  Bruno Haible  <bruno@clisp.org>
21469             Paul Eggert  <eggert@cs.ucla.edu>
21470
21471         getdomainname: Use the system function when possible.
21472         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
21473         (getdomainname): Replace if needed. Provide the declaration if it is
21474         missing. Don't use _GL_CXXALIAS_SYS_CAST.
21475         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
21476         (getdomainname): When the system has getdomainname, call the system
21477         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
21478         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21479         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
21480         found in libnsl. Look for the declaration also in <netdb.h>. Replace
21481         the function if its second argument is of type 'int' or if it is found
21482         in libnsl.
21483         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
21484         <sys/systeminfo.h> and sysinfo().
21485         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
21486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21487         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
21488         HAVE_GETDOMAINNAME.
21489         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
21490         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
21491         * doc/glibc-functions/getdomainname.texi: Document the problems with
21492         the getdomainname declaration.
21493
21494 2010-11-28  Bruno Haible  <bruno@clisp.org>
21495
21496         sys_socket: Ensure ss_family field on AIX.
21497         * lib/sys_socket.in.h (ss_family): New macro definition.
21498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
21499         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
21500         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21501         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21502         * modules/sys_socket (Makefile.am): Substitute
21503         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21504         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
21505
21506 2010-11-27  Bruno Haible  <bruno@clisp.org>
21507
21508         readline: Improve configure output.
21509         * m4/readline.m4 (gl_FUNC_READLINE): Make the
21510         "checking for readline..." result understandable.
21511
21512 2010-11-27  Bruno Haible  <bruno@clisp.org>
21513
21514         *printf-posix: Detect a bug on Solaris 10/x86.
21515         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
21516         for floating-point output.
21517         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
21518         directive.
21519         * tests/test-snprintf-posix.h (test_function): Likewise.
21520         * tests/test-sprintf-posix.h (test_function): Likewise.
21521         * tests/test-vasprintf-posix.c (test_function): Likewise.
21522         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
21523         * doc/posix-functions/printf.texi: Likewise.
21524         * doc/posix-functions/snprintf.texi: Likewise.
21525         * doc/posix-functions/sprintf.texi: Likewise.
21526         * doc/posix-functions/vfprintf.texi: Likewise.
21527         * doc/posix-functions/vprintf.texi: Likewise.
21528         * doc/posix-functions/vsnprintf.texi: Likewise.
21529         * doc/posix-functions/vsprintf.texi: Likewise.
21530         * doc/glibc-functions/obstack_printf.texi: Likewise.
21531         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21532
21533 2010-11-27  Bruno Haible  <bruno@clisp.org>
21534
21535         Fix link error when module libunistring-optional is in use.
21536         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
21537         * modules/striconveha-tests (Makefile.am): Likewise.
21538
21539 2010-11-27  Bruno Haible  <bruno@clisp.org>
21540
21541         regex: Mention link dependencies.
21542         * modules/regex (Link): New section.
21543         * modules/rpmatch (Link): Likewise.
21544         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
21545
21546 2010-11-27  Bruno Haible  <bruno@clisp.org>
21547
21548         ftoastr: Fix compilation error on Solaris.
21549         * lib/ftoastr.c: Include <config.h>.
21550
21551 2010-11-27  Bruno Haible  <bruno@clisp.org>
21552
21553         getloadavg: Update documentation.
21554         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
21555
21556 2010-11-27  Bruno Haible  <bruno@clisp.org>
21557
21558         sys_socket: Fix test whether the functions are declared.
21559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
21560         not <sys/select.h>.
21561
21562 2010-11-27  Bruno Haible  <bruno@clisp.org>
21563
21564         getpass: Make sure to get system declaration on some platforms.
21565         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
21566         gl_USE_SYSTEM_EXTENSIONS.
21567         * modules/getpass (Depends-on): Add extensions.
21568
21569 2010-11-26  Bruno Haible  <bruno@clisp.org>
21570
21571         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
21572         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
21573         'iconv' module is present.
21574         (ICONV_CONST): New macro.
21575         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
21576         ICONV_CONST.
21577         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
21578         set ICONV_CONST.
21579         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
21580         here.
21581         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
21582         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
21583         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
21584         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
21585         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
21586         present.
21587
21588 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21589
21590         ftoastr: comment fix
21591         * lib/ftoastr.c: "little" -> "little or no" in comment
21592
21593 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21594
21595         stdint: port to GCC 4.3 + OSX + Octave
21596         On this platform, stdint.h is buggy and defines int64_t to long
21597         long int.  The replacement defined it to long int, causing
21598         problems with C++ style name mangling.  Instead, trust the system
21599         definition if INT64_MAX is defined, and likewise for the unsigned
21600         variant.   Problem reported by Jarno Rajahalme in
21601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
21602         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
21603         and don't mess with int64_t and INT64_MAX in this case.
21604         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
21605
21606 2010-11-24  Bruno Haible  <bruno@clisp.org>
21607
21608         doc: Corrections regarding MacOS X 10.4 and 10.5.
21609         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
21610         MacOS X.
21611         Reported by Simon Josefsson.
21612
21613 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
21614
21615         Uninstall ".bin" files installed by relocwrapper.
21616         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
21617         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
21618         unless it is already there.
21619
21620 2010-11-21  Bruno Haible  <bruno@clisp.org>
21621
21622         Update for NetBSD 5.0.
21623         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21624         NetBSD; the test fails on NetBSD 5.0.
21625         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21626         about NetBSD.
21627
21628 2010-11-21  Bruno Haible  <bruno@clisp.org>
21629
21630         Update for HP-UX 11.23 and HP-UX 11.31.
21631         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
21632         HP-UX.
21633
21634 2010-11-21  Bruno Haible  <bruno@clisp.org>
21635
21636         Update for MacOS X 10.5.
21637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21638         MacOS X; the test fails on MacOS X 10.5.8.
21639         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21640         about MacOS X.
21641
21642 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
21643
21644         bootstrap: add bootstrap_sync option.
21645         See discussion at
21646         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
21647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
21648         * build-aux/bootstrap: Accept --bootstrap-sync to update
21649         bootstrap if it is not identical to the local gnulib's
21650         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
21651         enable this by default.  Accept --no-bootstrap-sync to disable
21652         it.
21653
21654 2010-11-20  Bruno Haible  <bruno@clisp.org>
21655
21656         Ensure that <features.h> is included before __GLIBC__ is tested.
21657         * lib/printf-parse.h: Include <features.h>.
21658         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
21659         Reported by Mike Frysinger <vapier@gentoo.org>.
21660
21661         Ensure that <features.h> is included before __GLIBC__ is tested.
21662         * lib/wchar.in.h: Include <features.h>.
21663         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
21664         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
21665         Reported by Mike Frysinger <vapier@gentoo.org>.
21666
21667         Ensure that <features.h> is included before __GLIBC__ is tested.
21668         * lib/arpa_inet.in.h: Include <features.h>.
21669         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
21670         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
21671         Reported by Mike Frysinger <vapier@gentoo.org>.
21672
21673         Ensure that <features.h> is included before __GLIBC__ is tested.
21674         * build-aux/link-warning.h: Include <features.h>.
21675         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
21676         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
21677         Reported by Mike Frysinger <vapier@gentoo.org>.
21678
21679         Ensure that <features.h> is included before __GLIBC__ is tested.
21680         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
21681         Reported by Mike Frysinger <vapier@gentoo.org>.
21682
21683 2010-11-20  Bruno Haible  <bruno@clisp.org>
21684
21685         memmem: Fix autoconf test.
21686         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
21687
21688 2010-11-20  Bruno Haible  <bruno@clisp.org>
21689
21690         Port to uClibc.
21691         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
21692         * lib/fcntl.in.h: Likewise.
21693         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
21694         * lib/mbrtowc.c (mbrtowc): Likewise.
21695         * lib/relocatable.c (find_shared_library_fullname): Likewise.
21696         * lib/strerror_r.c: Likewise.
21697         * lib/unistr/u8-strnlen.c: Likewise.
21698         * lib/vasnprintf.c (decimal_point_char): Likewise.
21699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21700         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21702         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21703         * tests/test-sigaction.c (handler, main): Likewise.
21704         * lib/freading.h: Treat uClibc like a non-glibc platform.
21705         * lib/freading.c: Likewise.
21706         * lib/gettext.h: Likewise.
21707         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
21708         Likewise.
21709         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
21710         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21711         * lib/propername.c (proper_name_utf8): Likewise.
21712         * lib/spawn.in.h: Likewise.
21713         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
21714         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
21715         mem_cd_iconveh_internal): Likewise.
21716         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
21717         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21718         strstr, strcasestr): Likewise.
21719         * lib/unicodeio.c (unicode_to_mb): Likewise.
21720         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
21721         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
21722         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
21723         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
21724         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
21725         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
21726         * lib/unistr/u8-stpncpy.c: Likewise.
21727         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21728         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
21729         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21730         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21731         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
21733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
21734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
21735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
21736         Likewise.
21737         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21738         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21742         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21743         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21744         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21745         * tests/test-getopt.h (OPTIND_MIN): Likewise.
21746         * tests/test-striconveha.c (main): Likewise.
21747         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21748         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
21749         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
21750         * doc/posix-functions/getline.texi: Likewise.
21751         Reported by Mike Frysinger <vapier@gentoo.org>.
21752
21753 2010-11-20  Bruno Haible  <bruno@clisp.org>
21754
21755         nproc: Fix condition.
21756         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
21757         HAVE_PTHREAD_AFFINITY_NP.
21758
21759 2010-11-20  Bruno Haible  <bruno@clisp.org>
21760
21761         Fix a comment.
21762         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
21763
21764 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
21765
21766         ftoastr: don't assume snprintf
21767         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
21768         Implement a subset of snprintf here, by using sprintf safely.
21769         * modules/ftoastr (Depends-on): Remove snprintf.
21770
21771 2010-11-19  Jim Meyering  <meyering@redhat.com>
21772
21773         test-rename.h: fix compilation failure
21774         * tests/test-rename.h (test_rename): Add omitted "}".
21775
21776 2010-11-17  Jim Meyering  <meyering@redhat.com>
21777
21778         maint.mk: add a URL discussing the no-@acronym policy
21779         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
21780
21781 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21782
21783         ftoastr: depend on snprintf, improve comments
21784         * lib/ftoastr.c: Also mention Loitsch's draft.
21785         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
21786         needed in the current implementation, but it might simplify
21787         speeding up the code later.
21788         * modules/ftoastr: Depend on snprintf; this improves portability.
21789         Suggested by Bruno Haible in the same email.
21790
21791         ftoastr: port to hosts lacking strtof and strtold
21792         Problem reported by Bruno Haible in
21793         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
21794         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
21795         environment and strtold (and presumably strtof) are not available.
21796         * modules/ftoastr (Files): Add m4/c-strtod.m4.
21797         (configure.ac): Require gl_C99_STRTOLD.
21798
21799 2010-11-18  Bruno Haible  <bruno@clisp.org>
21800
21801         c-strtold: Avoid link error on AIX 7.
21802         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
21803         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
21804         (gl_C_STRTOLD): Test whether strtold_l exists.
21805         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21806
21807 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         intprops: new macro INT_BITS_STRLEN_BOUND
21810         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21811         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21812         not exposed.  Also, it uses a slightly tighter bound than before;
21813         though this makes no practical difference, we might as well be as
21814         tight as we easily can.
21815
21816         ftoastr: new module, for lossless conversion of floats to short strings
21817         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21818         * modules/ftoastr: New files.
21819
21820 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21821
21822         bootstrap: port to Solaris sed
21823         * build-aux/bootstrap (get_version): Port to Solaris sed.
21824         See Ralf Wildenhues's note in
21825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21826
21827 2010-11-14  Jim Meyering  <meyering@redhat.com>
21828
21829         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21830         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21831         and move definition closer to sole use.
21832
21833 2010-11-13  Jim Meyering  <meyering@redhat.com>
21834
21835         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21836         Now we require at least autoconf-2.59, which means the work-around
21837         is no longer needed.
21838         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21841         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21842         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21843
21844 2010-11-13  Bruno Haible  <bruno@clisp.org>
21845
21846         rename, renameat: Avoid test failures at NFS mounted locations.
21847         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21848         functions.
21849         (test_rename): Use assert_nonexistent.
21850         * tests/test-rename.c: Include <dirent.h>.
21851         * tests/test-renameat.c: Likewise.
21852         Reported by Gary V. Vaughan <gary@gnu.org>.
21853
21854         rename, renameat: Document Linux bug with NFS
21855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21856         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21857         * doc/posix-functions/renameat.texi: Likewise.
21858         Suggested by Eric Blake.
21859
21860 2010-11-13  Bruno Haible  <bruno@clisp.org>
21861
21862         rename test: Add comments.
21863         * tests/test-rename.h (test_rename): Add structure and comments.
21864
21865 2010-11-13  Eric Blake  <eblake@redhat.com>
21866
21867         maintainer-makefile: cover a few more files
21868         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21869         scripts generated within C files, for libvirt.
21870
21871 2010-11-13  Bruno Haible  <bruno@clisp.org>
21872
21873         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21874         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21875         character, return the number of bytes that belong together, not always
21876         1.
21877         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21878         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21879         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21880         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21881         number of bytes of an invalid character.
21882         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21883         (main): Invoke it.
21884         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21885         results.
21886         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21887         malformed byte sequences.
21888         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21889         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21890         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21891         Reported by Ben Pfaff and Paolo Bonzini.
21892
21893 2010-11-13  Bruno Haible  <bruno@clisp.org>
21894
21895         openat: Work around glibc bug with fchownat() and empty file names.
21896         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21897         (gl_FUNC_FCHOWNAT): Invoke it.
21898         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21899         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21900         Reported by Gary V. Vaughan <gary@gnu.org>.
21901
21902 2010-11-13  Bruno Haible  <bruno@clisp.org>
21903
21904         openat: Ensure autoconf macro ordering.
21905         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21906         gl_USE_SYSTEM_EXTENSIONS.
21907         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21908
21909 2010-11-13  Bruno Haible  <bruno@clisp.org>
21910
21911         Update comments.
21912         * lib/unistr/u8-check.c: Update file name in comments.
21913         * lib/unistr/u8-mblen.c: Likewise.
21914         * lib/unistr/u8-prev.c: Likewise.
21915         * lib/unistr/u8-strmblen.c: Likewise.
21916         * lib/unistr/u8-strmbtouc.c: Likewise.
21917
21918 2010-11-13  Jim Meyering  <meyering@redhat.com>
21919
21920         tests: avoid test failure on Solaris 10 due to lack of PATH export
21921         * tests/test-update-copyright.sh: Don't forget to export PATH.
21922
21923         init.sh: ensure that IFS is defined, just in case...
21924         * tests/init.sh (setup_): Ensure that IFS is defined,
21925         so that saving and restoring it works as expected.  This
21926         appears to be useful at least for an old version of dash
21927         from a long time ago (RH 6).  See here for details:
21928         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21929
21930         maint.mk: tighten "test a == b" check
21931         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21932         test to files that contain something like #!/bin/sh.
21933         Without this, coreutils would get two false positives in
21934         the comments of C source files.
21935
21936 2010-11-12  Eric Blake  <eblake@redhat.com>
21937
21938         bootstrap: fix typo in previous attempt
21939         * build-aux/bootstrap (buildreq): Correct the grouping.
21940         Reported by Paul Eggert.
21941
21942         maintainer-makefile: prohibit test x == x
21943         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21944         Based on a report by Matthias Bolte.
21945
21946         bootstrap: allow FreeBSD gzip
21947         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21948         which has no '.' and goes to stderr.
21949         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21950         Reported by Matthias Bolte.
21951
21952         maintainer-makefile: check for i18n setup
21953         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21954         will likely work.
21955
21956 2010-11-12  Bruno Haible  <bruno@clisp.org>
21957
21958         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21959         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21960         * lib/nanosleep.c (nanosleep): Likewise.
21961
21962 2010-11-11  Bruno Haible  <bruno@clisp.org>
21963
21964         fcntl-h: Fix for use of C++ on glibc systems.
21965         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21966         also on glibc systems in C++ mode.
21967         Reported by Gary V. Vaughan <gary@gnu.org>.
21968
21969 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21970
21971         mknod: avoid false failure with dash
21972         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21973
21974 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21975
21976         unlink: Fix "is it should" typo in diagnostic.
21977         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21979
21980 2010-11-11  Bruno Haible  <bruno@clisp.org>
21981
21982         Tests for module 'strerror_r-posix'.
21983         * modules/strerror_r-posix-tests: New file.
21984         * tests/test-strerror_r.c: New file.
21985         * tests/test-string-c++.cc: Check the signature of strerror_r.
21986
21987         New module 'strerror_r-posix'.
21988         * lib/string.in.h (strerror_r): New declaration.
21989         * lib/strerror_r.c: New file.
21990         * m4/strerror_r.m4: New file.
21991         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21992         of strerror_r.
21993         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21994         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21995         * modules/strerror_r-posix: New file.
21996         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21997         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21998         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21999         portability problems.
22000
22001 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
22002
22003         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
22004         line is also considered for output. Quoted function name in shell
22005         command, so temporary files for functions like MyClass::operator()
22006         are removed correctly without errors.
22007
22008 2010-11-09  Bruno Haible  <bruno@clisp.org>
22009
22010         * doc/posix-functions/strerror.texi: List more failing platforms.
22011
22012         * doc/posix-functions/strerror.texi: Add a comment.
22013
22014 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22015
22016         fdopendir: fix bug on MacOS X when low on file descriptors
22017
22018         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
22019         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
22020         All callers changed.
22021         (fdopendir): Invoke save_cwd at the top level, not after using
22022         multiple dup() calls to use up file descriptors.  Then retry
22023         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
22024         less than the maximum number of open file descriptors, because
22025         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
22026         on Mac OS X 10.6.4 for tar 1.24
22027         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
22028         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
22029         and for tar 1.25
22030         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22031
22032 2010-11-07  Bruno Haible  <bruno@clisp.org>
22033
22034         vasnprintf: Support I flag on glibc systems.
22035         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
22036         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
22037         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
22038         snprintf function.
22039         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
22040         glibc systems.
22041         * tests/test-vasnprintf-posix3.c: New file.
22042         * modules/vasnprintf-posix-tests (Files): Add it.
22043         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
22044
22045 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22046
22047         [html] Fix copy/paste bug: Use unique name for compiler warnings.
22048         * MODULES.html.sh: For compiler warnings, use name
22049         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
22050
22051 2010-11-05  Eric Blake  <eblake@redhat.com>
22052
22053         ceil, floor: avoid spurious failure with icc
22054         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
22055         [denormals-as-zero] when optimizing without -mieee-fp option.
22056         * tests/test-floorf2.c (floorf_reference): Likewise.
22057         * tests/test-ceilf1.c (dummy): New function.
22058         (main): Use it to outsmart icc's optimization.
22059         * tests/test-floorf1.c (dummy, main): Likewise.
22060
22061         tests: require working signbit
22062         * modules/ceilf-tests (Depends-on): Add signbit.
22063         * modules/ceill-tests (Depends-on): Likewise.
22064         * modules/floorf-tests (Depends-on): Likewise.
22065         * modules/floorl-tests (Depends-on): Likewise.
22066         * modules/round-tests (Depends-on): Likewise.
22067         * modules/roundf-tests (Depends-on): Likewise.
22068         * modules/roundl-tests (Depends-on): Likewise.
22069         * modules/trunc-tests (Depends-on): Likewise.
22070         * modules/truncf-tests (Depends-on): Likewise.
22071         * modules/truncl-tests (Depends-on): Likewise.
22072
22073         strtod: work around icc bug
22074         * lib/strtod.c (minus_zero): Define to working value.
22075         (strtod): Use it to avoid icc bug.
22076
22077         copysign: enhance tests
22078         * modules/copysign-tests (Files): Add minus-zero.h.
22079         * tests/test-copysign.c (main): Also test zeros.
22080
22081 2010-11-04  Eric Blake  <eblake@redhat.com>
22082
22083         ceil, floor, round, trunc: enhance tests of -0
22084         * tests/test-ceilf1.c (main): Ensure correct sign of result.
22085         * tests/test-ceill.c (main): Likewise.
22086         * tests/test-floorf1.c (main): Likewise.
22087         * tests/test-floorl.c (main): Likewise.
22088         * tests/test-round1.c (main): Likewise.
22089         * tests/test-roundf1.c (main): Likewise.
22090         * tests/test-roundl.c (main): Likewise.
22091         * tests/test-trunc1.c (main): Likewise.
22092         * tests/test-truncf1.c (main): Likewise.
22093         * tests/test-truncl.c (main): Likewise.
22094
22095 2010-11-04  Eric Blake  <eblake@redhat.com>
22096
22097         frexp, tests: work around ICC bug with -zero
22098         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
22099         works with more compilers.
22100         * tests/minus-zero.h: New file.
22101         * modules/ceilf-tests (Files): Include it.
22102         * modules/ceill-tests (Files): Likewise.
22103         * modules/floorf-tests (Files): Likewise.
22104         * modules/floorl-tests (Files): Likewise.
22105         * modules/frexp-nolibm-tests (Files): Likewise.
22106         * modules/frexp-tests (Files): Likewise.
22107         * modules/frexpl-nolibm-tests (Files): Likewise.
22108         * modules/frexpl-tests (Files): Likewise.
22109         * modules/isnan-tests (Files): Likewise.
22110         * modules/isnand-nolibm-tests (Files): Likewise.
22111         * modules/isnand-tests (Files): Likewise.
22112         * modules/isnanf-nolibm-tests (Files): Likewise.
22113         * modules/isnanf-tests (Files): Likewise.
22114         * modules/isnanl-nolibm-tests (Files): Likewise.
22115         * modules/isnanl-tests (Files): Likewise.
22116         * modules/round-tests (Files): Likewise.
22117         * modules/roundf-tests (Files): Likewise.
22118         * modules/roundl-tests (Files): Likewise.
22119         * modules/ldexpl-tests (Files): Likewise.
22120         * modules/signbit-tests (Files): Likewise.
22121         * modules/snprintf-posix-tests (Files): Likewise.
22122         * modules/sprintf-posix-tests (Files): Likewise.
22123         * modules/strtod-tests (Files): Likewise.
22124         * modules/trunc-tests (Files): Likewise.
22125         * modules/truncf-tests (Files): Likewise.
22126         * modules/truncl-tests (Files): Likewise.
22127         * modules/vsnprintf-posix-tests (Files): Likewise.
22128         * modules/vsprintf-posix-tests (Files): Likewise.
22129         * modules/vasnprintf-posix-tests (Files): Likewise.
22130         * modules/vasprintf-posix-tests (Files): Likewise.
22131         * tests/test-ceilf1.c (main): Use it.
22132         * tests/test-ceill.c (main): Likewise.
22133         * tests/test-floorf1.c (main): Likewise.
22134         * tests/test-floorl.c (main): Likewise.
22135         * tests/test-frexp.c (main): Likewise.
22136         * tests/test-frexpl.c (main): Likewise.
22137         * tests/test-isnan.c (main): Likewise.
22138         * tests/test-isnand.h (main): Likewise.
22139         * tests/test-isnanf.h (main): Likewise.
22140         * tests/test-isnanl.h (main): Likewise.
22141         * tests/test-ldexpl.c (main): Likewise.
22142         * tests/test-round.c (main): Likewise.
22143         * tests/test-roundf.c (main): Likewise.
22144         * tests/test-roundl.c (main): Likewise.
22145         * tests/test-signbit.c (test_signbitf, test_signbitd)
22146         (test_signbitl): Likewise.
22147         * tests/test-snprintf-posix.h (test_function): Likewise.
22148         * tests/test-sprintf-posix.h (test_function): Likewise.
22149         * tests/test-strtod.c (main): Likewise.
22150         * tests/test-trunc1.c (main): Likewise.
22151         * tests/test-truncf1.c (main): Likewise.
22152         * tests/test-truncl.c (main): Likewise.
22153
22154         isnanl: work around icc bug
22155         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
22156
22157 2010-11-03  Eric Blake  <eblake@redhat.com>
22158
22159         tests: fix compiler warnings
22160         * tests/test-getopt.h (test_getopt): Fix condition.
22161         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22162         * tests/test-pipe2.c (main): Likewise.
22163         * tests/test-quotearg-simple.c (main): Avoid icc warning.
22164
22165         utimens: fix broken m4 test
22166         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
22167
22168 2010-10-28  Bruno Haible  <bruno@clisp.org>
22169
22170         posix_spawn*, getdtablesize: Relax license.
22171         * modules/posix_spawn (License): Change to LGPLv2+.
22172         * modules/posix_spawnp (License): Likewise.
22173         * modules/posix_spawn-internal (License): Likewise.
22174         * modules/posix_spawnattr_init (License): Likewise.
22175         * modules/posix_spawnattr_getflags (License): Likewise.
22176         * modules/posix_spawnattr_setflags (License): Likewise.
22177         * modules/posix_spawnattr_getpgroup (License): Likewise.
22178         * modules/posix_spawnattr_setpgroup (License): Likewise.
22179         * modules/posix_spawnattr_getschedparam (License): Likewise.
22180         * modules/posix_spawnattr_setschedparam (License): Likewise.
22181         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
22182         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
22183         * modules/posix_spawnattr_getsigdefault (License): Likewise.
22184         * modules/posix_spawnattr_setsigdefault (License): Likewise.
22185         * modules/posix_spawnattr_getsigmask (License): Likewise.
22186         * modules/posix_spawnattr_setsigmask (License): Likewise.
22187         * modules/posix_spawnattr_destroy (License): Likewise.
22188         * modules/posix_spawn_file_actions_init (License): Likewise.
22189         * modules/posix_spawn_file_actions_addclose (License): Likewise.
22190         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
22191         * modules/posix_spawn_file_actions_addopen (License): Likewise.
22192         * modules/posix_spawn_file_actions_destroy (License): Likewise.
22193         * modules/getdtablesize (License): Likewise.
22194         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
22195
22196 2010-10-26  Bruno Haible  <bruno@clisp.org>
22197
22198         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
22199         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
22200         Cygwin and mingw.
22201         Suggested by Eric Blake.
22202
22203 2010-10-26  Bruno Haible  <bruno@clisp.org>
22204
22205         stdio: Work around compilation error due to renameat() on Solaris 10.
22206         * lib/stdio.in.h: Include <unistd.h> on Solaris.
22207         * lib/renameat.c: Don't include <unistd.h> here.
22208         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
22209         Reported by Paul Eggert and Eric Blake.
22210
22211 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22212
22213         renameat: port to Solaris 10, which declares renameat in unistd.h
22214
22215         * lib/renameat.c: Include unistd.h before stdio.h, because
22216         Solaris 10 declares renameat in unistd.h.  Problem encountered
22217         when building GNU tar 1.24 on Solaris 10.
22218
22219 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22220
22221         fdopendir: fix C89 compilation
22222         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
22223         compilers.
22224
22225 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
22226
22227         inttostr: simplify by removing unnecessary redundancy
22228         * lib/anytostr.c: Don't include verify.h.
22229         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
22230         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
22231         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
22232         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
22233         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
22234         Likewise.
22235         * modules/inttostr (Depends-on): Remove 'verify'.
22236
22237 2010-10-23  Bruno Haible  <bruno@clisp.org>
22238
22239         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
22240         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
22241         Reported by Eric Blake.
22242
22243 2010-10-23  Bruno Haible  <bruno@clisp.org>
22244
22245         Tests: Fix LOCALE_JA on MirBSD 10.
22246         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
22247         to an UTF-8 locale.
22248         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
22249         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22250         Reported by Eric Blake.
22251
22252 2010-10-21  Bruno Haible  <bruno@clisp.org>
22253
22254         nl_langinfo test: Avoid test failure on NetBSD 5.
22255         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
22256         Reported by Eric Blake.
22257
22258 2010-10-21  Eric Blake  <eblake@redhat.com>
22259
22260         c-stack: work around libsigsegv 2.8 bug
22261         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
22262         overflow on at least PowerPC64.
22263
22264 2010-10-17  Bruno Haible  <bruno@clisp.org>
22265
22266         userspec: Drop redundant file.
22267         * modules/userspec (Files): Remove lib/inttostr.h.
22268
22269 2010-10-17  Bruno Haible  <bruno@clisp.org>
22270
22271         nl_langinfo tests: Silence some warnings.
22272         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
22273         Reported by Jim Meyering.
22274
22275 2010-10-17  Bruno Haible  <bruno@clisp.org>
22276
22277         Make use of GCC's attribute __alloc_size__.
22278         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
22279         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
22280         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
22281         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
22282         __alloc_size__.
22283         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22284         Suggested by Jim Meyering.
22285
22286 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
22287
22288         bootstrap: anchor .gitignore entries.
22289         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
22290         with...
22291         (insert_vc_ignore): ... this new function, which prepends `/' to
22292         all .gitignore entries before passing them to
22293         insert_sorted_if_absent.
22294
22295 2010-10-16  Bruno Haible  <bruno@clisp.org>
22296
22297         nextafter: Fix configure check.
22298         * modules/nextafter (configure.ac): Correct expected prototype.
22299
22300 2010-10-16  Bruno Haible  <bruno@clisp.org>
22301
22302         termios: Update documentation.
22303         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
22304
22305 2010-10-16  Bruno Haible  <bruno@clisp.org>
22306
22307         tests: Make them compile with TinyCC.
22308         * tests/test-strstr.c (main): Remove parentheses around array
22309         initializer.
22310
22311 2010-10-15  Eric Blake  <eblake@redhat.com>
22312
22313         ignore-value: make header idempotent
22314         * lib/ignore-value.h: Add double-inclusion guards.
22315         Reported by Stefan Berger.
22316
22317 2010-10-15  Jim Meyering  <meyering@redhat.com>
22318
22319         GNUmakefile: handle "stable" target, not "major"
22320         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
22321         lists in maint.mk and announce-gen.  Without this, "make stable"
22322         would fail to ensure that $(VERSION) is up to date.
22323
22324 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
22325
22326         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
22327         & co.
22328
22329 2010-10-14  Bruno Haible  <bruno@clisp.org>
22330
22331         vasnprintf: Don't set errno to 0.
22332         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
22333         block that sets it to 0.
22334         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
22335
22336 2010-10-14  Bruno Haible  <bruno@clisp.org>
22337
22338         socketlib: Fix.
22339         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
22340         gl_PREREQ_SYS_H_WINSOCK2.
22341         Reported by Ian Beckwith <ianb@erislabs.net>.
22342
22343 2010-10-13  Jim Meyering  <meyering@redhat.com>
22344
22345         test-select-stdin.c: avoid warn_unused_result warnings
22346         * tests/test-select-stdin.c: Include "macros.h".
22347         ASSERT that read and fflush succeed.
22348
22349 2010-10-13  Jim Meyering  <meyering@redhat.com>
22350
22351         git-version-gen: do require git-VC'd files in cwd
22352         * build-aux/git-version-gen: Reject a git version string
22353         if there are no commits associated with the current directory.
22354         This avoids an unlikely false-positive (unrelated dir whose parent
22355         repository also contains a tag matching v*), as pointed out
22356         by Giuseppe Scrivano in
22357         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
22358
22359 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22360
22361         argv-iter: omit nonconforming declaration
22362         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
22363         enum arg_iter_err declaration, which doesn't conform to C99.
22364         Solaris 10 cc warns about this.
22365
22366 2010-10-13  Eric Blake  <eblake@redhat.com>
22367
22368         termios: fix compilation on mingw
22369         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
22370         (gl_TERMIOS_H): Adjust it on mingw.
22371         * modules/termios (Makefile.am): Substitute new key.
22372         * lib/termios.in.h (includes): Make include_next conditional.
22373         * doc/posix-headers/termios.texi (termios.h): Update
22374         documentation.
22375         Reported by Daniel P. Berrange.
22376
22377 2010-10-13  Jim Meyering  <meyering@redhat.com>
22378
22379         git-version-gen: don't require that .git/ be in the current dir
22380         * build-aux/git-version-gen: Adjust this script so that it works
22381         when run from any working directory beneath the top-level .git/-
22382         containing directory.  Inspired by a patch from Giuseppe Scrivano,
22383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
22384
22385         test-select: avoid warn_unused_result warnings
22386         * tests/test-select.c: Include "macros.h".
22387         ASSERT that each call to read, write, and pipe succeeds.
22388         While not technically required, also check each "close".
22389         * modules/select-tests (Files): Add tests/macros.h.
22390
22391         test-symlinkat: remove declaration of unused local
22392         * tests/test-symlinkat.c (main): Remove unused local, "buf".
22393
22394         test-inttostr: avoid shadowing warnings
22395         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
22396         and use malloc rather than the stack for the same reason as
22397         mentioned in the comment justifying the other allocation.
22398
22399 2010-10-11  Bruno Haible  <bruno@clisp.org>
22400
22401         stdlib: Allow multiple gnulib generated replacements to coexist.
22402         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
22403         Reported by Sam Steingold <sds@gnu.org>.
22404
22405 2010-10-11  Jim Meyering  <meyering@redhat.com>
22406
22407         fix a documentation typo
22408         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
22409
22410 2010-10-11  Eric Blake  <eblake@redhat.com>
22411
22412         futimens: work around Solaris 11 bug
22413         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
22414         * tests/test-futimens.h (test_futimens): Enhance, rather than
22415         weaken test.
22416         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22417
22418 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22419
22420         Indentation.
22421         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
22422         higher-level operators more to the left.
22423
22424 2010-10-11  Jim Meyering  <meyering@redhat.com>
22425
22426         test-futimens: avoid unwarranted test failure on Solaris 5.11
22427         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
22428         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
22429         because it tries to dereference the NULL name argument.
22430
22431 2010-10-11  Bruno Haible  <bruno@clisp.org>
22432
22433         Indentation.
22434         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
22435         indentation.
22436
22437 2010-10-11  Jim Meyering  <meyering@redhat.com>
22438
22439         spawn.in.h: make indentation consistent with parentheses
22440         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
22441         Make indentation consistent with parentheses.
22442
22443 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
22444
22445         Fix mismatched parens in previous commit
22446         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
22447         parens.
22448
22449 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22450
22451         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
22452
22453         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
22454         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
22455         * lib/malloca.c: Include "verify.h".
22456         (verify1): Remove, replacing with a verify call.
22457         * lib/relocwrapper.c (verify1): Likewise.
22458         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
22459         Likewise.
22460         * modules/malloca (Depends-on): Add 'verify'.
22461         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
22462         * modules/vasnprintf (Depends-on): Add 'verify'.
22463         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22464         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22465         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22466         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22467         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22468         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22469         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22470
22471         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
22472
22473         Formerly the style was sometimes 2*X - 1, because the C standard
22474         was wrongly thought to disallow ?: in integral constant expressions.
22475         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
22476         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
22477         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22478         * lib/stdint.in.h (_verify_intmax_size): Likewise.
22479         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
22480         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
22481         verify that time_t cannot be floating.
22482
22483 2010-10-08  Eric Blake  <eblake@redhat.com>
22484
22485         time: enforce recent POSIX ruling that time_t is integral
22486         * lib/time.in.h (__time_t_must_be_integral): Detect any
22487         problematic systems, allowing the rest of gnulib to assume POSIX.
22488
22489 2010-10-08  Jim Meyering  <meyering@redhat.com>
22490
22491         fdopendir: fix a bug on systems lacking openat and /proc support
22492         OpenBSD 4.7 is one such system.  The most noticeable effect was
22493         failure of any application making nontrivial use of fts: rm, du,
22494         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
22495           ./rm: traversal failed: `a': Bad file descriptor
22496         Debugging that, you see that even though FD 6 was closed just
22497         prior to the opendir call in fd_clone_opendir, its resulting
22498         dir->dd_fd was 8, rather than the expected value of 6:
22499
22500         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
22501         93                close (fd);
22502         (gdb) n
22503         94                dir = fd_clone_opendir (dupfd);
22504         (gdb) n
22505         95                saved_errno = errno;
22506         (gdb) p dir->dd_fd
22507         $11 = 8
22508
22509         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
22510         The problem is that on OpenBSD, fd_clone_opendir has to resort
22511         to using the old-style save/restore CWD mechanism, due to its
22512         lack of openat/proc support, and *that* would steal the FD (6)
22513         that opendir was supposed to use.
22514
22515         The fix is to squirrel away the desired FD so that save_cwd uses a
22516         different one, and then free the dest FD right before calling opendir.
22517         That guarantees opendir will use the required file descriptor.
22518
22519         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
22520
22521 2010-10-08  Bruno Haible  <bruno@clisp.org>
22522
22523         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
22524         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
22525
22526 2010-10-08  Bruno Haible  <bruno@clisp.org>
22527
22528         nanosleep: Make replacement POSIX compliant.
22529         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
22530         is out of range.
22531         Reported by Jim Meyering.
22532
22533 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22534
22535         bootstrap: add hook for altering gnulib.mk, for Bison
22536         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
22537         the Bison bootstrapping process can rewrite file names and variables
22538         in this file before later parts of 'bootstrap' use the file.
22539         Bison wants to include lib/gnulib.mk from the top-level makefile,
22540         so it needs the file names in this file to be relative to the top
22541         level, not relative to lib; plus it needs variable names to be
22542         rewritten.
22543         (slurp): Use the new function.
22544
22545         bootstrap: reformat for readability
22546         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
22547
22548 2010-10-08  Eric Blake  <eblake@redhat.com>
22549
22550         docs: update cygwin progress
22551         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
22552         1.7.7.
22553         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
22554         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
22555         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
22556         * doc/posix-functions/carg.texi (carg): Likewise.
22557         * doc/posix-functions/cargf.texi (cargf): Likewise.
22558         * doc/posix-functions/casin.texi (casin): Likewise.
22559         * doc/posix-functions/casinf.texi (casinf): Likewise.
22560         * doc/posix-functions/casinh.texi (casinh): Likewise.
22561         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
22562         * doc/posix-functions/catan.texi (catan): Likewise.
22563         * doc/posix-functions/catanf.texi (catanf): Likewise.
22564         * doc/posix-functions/catanh.texi (catanh): Likewise.
22565         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
22566         * doc/posix-functions/ccos.texi (ccos): Likewise.
22567         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
22568         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
22569         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
22570         * doc/posix-functions/cexp.texi (cexp): Likewise.
22571         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
22572         * doc/posix-functions/cimag.texi (cimag): Likewise.
22573         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
22574         * doc/posix-functions/clog.texi (clog): Likewise.
22575         * doc/posix-functions/clogf.texi (clogf): Likewise.
22576         * doc/posix-functions/conj.texi (conj): Likewise.
22577         * doc/posix-functions/conjf.texi (conjf): Likewise.
22578         * doc/posix-functions/cpow.texi (cpow): Likewise.
22579         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
22580         * doc/posix-functions/cproj.texi (cproj): Likewise.
22581         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
22582         * doc/posix-functions/creal.texi (creal): Likewise.
22583         * doc/posix-functions/crealf.texi (crealf): Likewise.
22584         * doc/posix-functions/csin.texi (csin): Likewise.
22585         * doc/posix-functions/csinf.texi (csinf): Likewise.
22586         * doc/posix-functions/csinh.texi (csinh): Likewise.
22587         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
22588         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
22589         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
22590         * doc/posix-functions/ctan.texi (ctan): Likewise.
22591         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
22592         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
22593         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
22594         * doc/posix-headers/complex.texi (complex.h): Likewise.
22595
22596 2010-10-07  Jim Meyering  <meyering@redhat.com>
22597
22598         parse-datetime: avoid compilation failure on OpenBSD 4.7
22599         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
22600         This works around a compilation failure on OpenBSD 4.7:
22601         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
22602
22603 2010-10-07  Eric Blake  <eblake@redhat.com>
22604
22605         docs: update cygwin progress
22606         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
22607         1.7.6.
22608         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22609         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
22610         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
22611         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
22612         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
22613         Likewise.
22614         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
22615         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
22616         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
22617         Likewise.
22618         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
22619         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
22620         Likewise.
22621         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
22622         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
22623         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
22624         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
22625         Likewise.
22626         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
22627         Likewise.
22628         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
22629
22630         docs: update parse-datetime history
22631         * doc/parse-datetime.texi (Authors of parse_datetime): Better
22632         documentation of this function's history and alternatives.
22633
22634         cygwin: use more robust version check
22635         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
22636         exclude an eventual cygwin 1.9.1.
22637         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22639         (gl_FUNC_STRCASESTR): Likewise.
22640         Reported by Bruno Haible.
22641
22642 2010-10-06  Bruno Haible  <bruno@clisp.org>
22643
22644         string, sys_select: Avoid #including large headers unless necessary.
22645         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
22646         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
22647         OSF/1, BeOS, Haiku.
22648         Reported by Jim Meyering.
22649
22650 2010-10-05  Eric Blake  <eblake@redhat.com>
22651
22652         memmem, strstr, strcasestr: fix bug with long periodic needle
22653         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
22654         periodic needle having false positive.
22655         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
22656         and cygwin 1.7.7.
22657         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
22658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22659         (gl_FUNC_STRCASESTR): Likewise.
22660         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22661         * tests/test-memmem.c (main): Expose the bug.
22662         * tests/test-strcasestr.c (main): Likewise.
22663         * tests/test-strstr.c (main): Likewise.
22664         * tests/test-c-strcasestr.c (main): Likewise.
22665         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
22666         * doc/posix-functions/strstr.texi (strstr): Likewise.
22667         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22668         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
22669
22670 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22671
22672         parse-datetime: do some more renaming
22673         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
22674         parse_datetime, not get_date.  Mention the renaming.
22675         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
22676         in comments.
22677         * m4/bison.m4: Likewise.
22678
22679 2010-10-05  Eric Blake  <eblake@redhat.com>
22680
22681         parse-datetime: better name than get_date
22682         * NEWS: Reword the deprecation notice.
22683         * modules/get_date: Rename to modules/parse-datetime.
22684         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
22685         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
22686         * lib/get_date.y: Rename to lib/parse-datetime.y.
22687         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
22688         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
22689         * doc/getdate.texi: Provide fallback wrapper.
22690         * lib/getdate.h: Move guts, and wrap...
22691         * lib/parse-datetime.h: ...new file.
22692         * lib/parse-datetime.y (get_date): Rename...
22693         (parse_datetime): ...to this.
22694         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
22695         (gl_PARSE_DATETIME): ...to this.
22696         * doc/posix-functions/getdate.texi (get_date): Provide fallback
22697         documentation.
22698         * modules/getdate (Files): Provide fallback docs and header.
22699         (Notice, Depends-on): Update references.
22700         * tests/test-parse-datetime.c: Likewise.
22701         * DEPENDENCIES: Likewise.
22702         * MODULES.html.sh (Date and time <time.h>): Likewise.
22703         * doc/parse-datetime.texi (Date input formats)
22704         (Authors of parse_datetime): Likewise.
22705         * modules/parse-datetime (Files, configure.ac, Makefile.am)
22706         (Include): Likewise.
22707         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
22708         * gnulib-tool: Likewise.
22709         * m4/bison.m4 (gl_BISON): Likewise.
22710         Suggested by Bruno Haible.
22711
22712 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         more ports to Solaris tr, which needs [] around ranges
22715         * gnulib-tool: Solaris tr needs [] around ranges.
22716         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22717         * tests/test-pipe-filter-gi1.c (main): Likewise.
22718         * tests/test-pipe-filter-ii1.c (main): Likewise.
22719
22720 2010-10-05  Eric Blake  <eblake@redhat.com>
22721
22722         bootstrap: fix Solaris regression
22723         * build-aux/bootstrap (check_versions): Solaris tr still needs []
22724         around ranges.
22725         Reported by Pádraig Brady.
22726
22727         bootstrap: work with pkg-config
22728         * build-aux/bootstrap (check_versions): Also transliterate - in
22729         prerequisite name.
22730         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
22731         prerequisites that were already found, to avoid confusion.
22732         Reported by Justin Clift.
22733
22734         faccessat: remove unused wrappers
22735         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
22736         presence of these wrappers dragged in -lgen on Solaris.
22737         Reported by Clemens Brogi; fix suggested by Paul Eggert.
22738
22739 2010-10-05  Jim Meyering  <meyering@redhat.com>
22740
22741         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
22742         * Makefile (sc_pragma_columns): New syntax-check rule.
22743
22744 2010-10-04  Bruno Haible  <bruno@clisp.org>
22745
22746         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
22747         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
22748         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
22749         Reported by Bruce Korb and Eric Blake.
22750
22751 2010-10-04  Bruno Haible  <bruno@clisp.org>
22752
22753         threadlib: Make option --with-libpth-prefix work.
22754         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
22755         use $LIBPTH, not just -lpth.
22756
22757 2010-10-04  Bruno Haible  <bruno@clisp.org>
22758
22759         Avoid line length limitation from HP NonStop system header files.
22760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
22761         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
22762         * lib/ctype.in.h: Likewise.
22763         * lib/dirent.in.h: Likewise.
22764         * lib/errno.in.h: Likewise.
22765         * lib/fcntl.in.h: Likewise.
22766         * lib/float.in.h: Likewise.
22767         * lib/getopt.in.h: Likewise.
22768         * lib/iconv.in.h: Likewise.
22769         * lib/inttypes.in.h: Likewise.
22770         * lib/langinfo.in.h: Likewise.
22771         * lib/locale.in.h: Likewise.
22772         * lib/math.in.h: Likewise.
22773         * lib/netdb.in.h: Likewise.
22774         * lib/netinet_in.in.h: Likewise.
22775         * lib/poll.in.h: Likewise.
22776         * lib/pthread.in.h: Likewise.
22777         * lib/pty.in.h: Likewise.
22778         * lib/sched.in.h: Likewise.
22779         * lib/se-selinux.in.h: Likewise.
22780         * lib/search.in.h: Likewise.
22781         * lib/signal.in.h: Likewise.
22782         * lib/spawn.in.h: Likewise.
22783         * lib/stdarg.in.h: Likewise.
22784         * lib/stddef.in.h: Likewise.
22785         * lib/stdint.in.h: Likewise.
22786         * lib/stdio.in.h: Likewise.
22787         * lib/stdlib.in.h: Likewise.
22788         * lib/string.in.h: Likewise.
22789         * lib/strings.in.h: Likewise.
22790         * lib/sys_file.in.h: Likewise.
22791         * lib/sys_ioctl.in.h: Likewise.
22792         * lib/sys_select.in.h: Likewise.
22793         * lib/sys_socket.in.h: Likewise.
22794         * lib/sys_stat.in.h: Likewise.
22795         * lib/sys_time.in.h: Likewise.
22796         * lib/sys_times.in.h: Likewise.
22797         * lib/sys_utsname.in.h: Likewise.
22798         * lib/sys_wait.in.h: Likewise.
22799         * lib/sysexits.in.h: Likewise.
22800         * lib/termios.in.h: Likewise.
22801         * lib/time.in.h: Likewise.
22802         * lib/unistd.in.h: Likewise.
22803         * lib/wchar.in.h: Likewise.
22804         * lib/wctype.in.h: Likewise.
22805         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22806         * modules/ctype (Makefile.am): Likewise.
22807         * modules/dirent (Makefile.am): Likewise.
22808         * modules/errno (Makefile.am): Likewise.
22809         * modules/fcntl-h (Makefile.am): Likewise.
22810         * modules/float (Makefile.am): Likewise.
22811         * modules/getopt-posix (Makefile.am): Likewise.
22812         * modules/iconv-h (Makefile.am): Likewise.
22813         * modules/inttypes (Makefile.am): Likewise.
22814         * modules/langinfo (Makefile.am): Likewise.
22815         * modules/locale (Makefile.am): Likewise.
22816         * modules/math (Makefile.am): Likewise.
22817         * modules/netdb (Makefile.am): Likewise.
22818         * modules/netinet_in (Makefile.am): Likewise.
22819         * modules/poll-h (Makefile.am): Likewise.
22820         * modules/pthread (Makefile.am): Likewise.
22821         * modules/pty (Makefile.am): Likewise.
22822         * modules/sched (Makefile.am): Likewise.
22823         * modules/search (Makefile.am): Likewise.
22824         * modules/selinux-h (Makefile.am): Likewise.
22825         * modules/signal (Makefile.am): Likewise.
22826         * modules/spawn (Makefile.am): Likewise.
22827         * modules/stdarg (Makefile.am): Likewise.
22828         * modules/stddef (Makefile.am): Likewise.
22829         * modules/stdint (Makefile.am): Likewise.
22830         * modules/stdio (Makefile.am): Likewise.
22831         * modules/stdlib (Makefile.am): Likewise.
22832         * modules/string (Makefile.am): Likewise.
22833         * modules/strings (Makefile.am): Likewise.
22834         * modules/sys_file (Makefile.am): Likewise.
22835         * modules/sys_ioctl (Makefile.am): Likewise.
22836         * modules/sys_select (Makefile.am): Likewise.
22837         * modules/sys_socket (Makefile.am): Likewise.
22838         * modules/sys_stat (Makefile.am): Likewise.
22839         * modules/sys_time (Makefile.am): Likewise.
22840         * modules/sys_times (Makefile.am): Likewise.
22841         * modules/sys_utsname (Makefile.am): Likewise.
22842         * modules/sys_wait (Makefile.am): Likewise.
22843         * modules/sysexits (Makefile.am): Likewise.
22844         * modules/termios (Makefile.am): Likewise.
22845         * modules/time (Makefile.am): Likewise.
22846         * modules/unistd (Makefile.am): Likewise.
22847         * modules/wchar (Makefile.am): Likewise.
22848         * modules/wctype (Makefile.am): Likewise.
22849
22850 2010-10-04  Bruno Haible  <bruno@clisp.org>
22851
22852         read-file tests: Avoid a test failure on NonStop Kernel.
22853         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22854         a regular file.
22855         Reported by Joachim Schmitz <schmitz@hp.com>.
22856
22857 2010-10-03  Bruno Haible  <bruno@clisp.org>
22858
22859         gnulib-tool: Fixes for --create-testdir with --libtool.
22860         * gnulib-tool (func_get_automake_snippet): Don't augment
22861         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22862         an executable.
22863         (func_create_testdir): Handle module 'alloca' like func_import.
22864         Reported by Bruce Korb <bruce.korb@gmail.com>.
22865
22866 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22867
22868         Avoid some lines longer than 80 characters.
22869         * lib/stdint.in.h: Break long comment lines.
22870         * lib/math.in.h: Likewise.
22871         (_GL_NUM_UINT_WORDS): New macro, for readability.
22872         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22873         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22874         * lib/stdlib.in.h: Likewise.
22875         * lib/spawn.in.h: Likewise.
22876         * lib/sys_socket.in.h: Update an URL.
22877         * lib/sys_stat.in.h: Break long line.
22878
22879 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22880
22881         Improve pmccabe2html.
22882         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22883         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22884         when the sources change. Remove the line in the HTML about "Used
22885         ranges" (which implied that there might be other unused ranges),
22886         rename "Resume" to "Summary" (easier to understand for more users).
22887         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22888         styles, and some unnecessary blank lines.
22889
22890 2010-10-03  Bruno Haible  <bruno@clisp.org>
22891             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22892
22893         acl: Add support for ACLs on NonStop Kernel.
22894         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22895         Check whether the function aclsort() exists.
22896         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22897         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22898         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22899         (acl_nontrivial [HAVE_ACLSORT]: New function.
22900         (file_has_acl): Implement for NonStop Kernel.
22901         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22902         (qset_acl): Implement for NonStop Kernel.
22903         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22904         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22905         (main): Implement for NonStop Kernel.
22906         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22907         Kernel. Handle this flavor.
22908         * tests/test-set-mode-acl.sh: Likewise.
22909         * tests/test-copy-acl.sh: Likewise.
22910         * tests/test-copy-file.sh: Likewise.
22911
22912 2010-10-03  Bruno Haible  <bruno@clisp.org>
22913
22914         Info about ACLs on NonStop Kernel.
22915         * doc/acl-resources.txt: Add info about NonStop Kernel.
22916         References by Joachim Schmitz <schmitz@hp.com>.
22917
22918 2010-10-02  Bruno Haible  <bruno@clisp.org>
22919
22920         Define missing EDQUOT on NonStop Kernel.
22921         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22922         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22923         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22924         missing.
22925         * doc/posix-headers/errno.texi: Mention the NSK bug.
22926         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22927         Reported by Joachim Schmitz <schmitz@hp.com>.
22928
22929 2010-10-02  Bruno Haible  <bruno@clisp.org>
22930
22931         Update doc for POSIX:2008.
22932         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22933         Update URL of POSIX specification.
22934
22935 2010-10-02  Bruno Haible  <bruno@clisp.org>
22936
22937         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22938         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22939         from gnulib, not from Automake.
22940
22941 2010-10-02  Bruno Haible  <bruno@clisp.org>
22942
22943         New module 'system-posix'.
22944         * modules/system-posix: New file.
22945         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22946         module is present.
22947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22948         GNULIB_SYSTEM_POSIX.
22949         * modules/stdlib (Depends-on): Remove sys_wait.
22950         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22951         * doc/posix-functions/system.texi: Mention the new module.
22952         * doc/posix-headers/stdlib.texi: Likewise.
22953         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22954         define test_sys_wait_macros to a no-op.
22955         Reported by Sam Steingold <sds@gnu.org>.
22956
22957 2010-09-30  Bruno Haible  <bruno@clisp.org>
22958
22959         More renaming from 'getdate' to 'get_date'.
22960         * doc/get_date.texi: Renamed from doc/getdate.texi.
22961         * modules/get_date (Files): Update.
22962         * MODULES.html.sh (Date and time <time.h>): Update.
22963         * DEPENDENCIES: Update.
22964         * gnulib-tool: Update comment.
22965         * m4/bison.m4 (gl_BISON): Likewise.
22966         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22967
22968 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22969
22970         bootstrap: support ACLOCAL_FLAGS during aclocal
22971         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22972         can add additional -I dir for third-party .m4 files.
22973
22974 2010-09-30  Eric Blake  <eblake@redhat.com>
22975
22976         bootstrap: use glibtoolize on MacOS
22977         * build-aux/bootstrap (check_versions): Convert libtool into
22978         libtoolize.
22979         (tool search): Move libtool check earlier, and look for
22980         glibtoolize for MacOS.
22981         (gnulib_tool_options): Auto-add --libtool when appropriate.
22982         Reported by Justin Clift.
22983
22984         poll: fix typo that broke test on MacOS
22985         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22986         Reported by Justin Clift.
22987
22988         getdate: rename to get_date
22989         Note: getdate.h is not renamed, to minimize client impact.
22990         * modules/getdate: Mark obsolete.  Move old contents...
22991         * modules/get_date: ...to new module name.
22992         * modules/getdate-tests: Move...
22993         * modules/get_date-tests: ...here.
22994         * m4/getdate.m4: Move...
22995         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22996         * lib/getdate.y: Move...
22997         * lib/get_date.y: ...here.
22998         * tests/test-getdate.c: Move...
22999         * tests/test-get_date.c: ...here.
23000         * doc/posix-functions/getdate.texi (getdate): Update name.
23001         * NEWS: Mention the change.
23002
23003 2010-09-29  Bruno Haible  <bruno@clisp.org>
23004
23005         Separate the module 'waitpid' from the module 'sys_wait'.
23006         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
23007         present.
23008         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
23009         gl_MODULE_INDICATOR_FOR_TESTS.
23010         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
23011         * modules/sys_wait (Depends-on): Remove waitpid.
23012         (Makefile.am): Substitute GNULIB_WAITPID.
23013         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
23014         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
23015         signature only if the 'waitpid' module is present.
23016         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
23017         * NEWS: Mention the change.
23018         * modules/grantpt (Depends-on): Add waitpid.
23019         * modules/wait-process (Depends-on): Likewise.
23020
23021 2010-09-29  Bruno Haible  <bruno@clisp.org>
23022
23023         More tests for module 'sys_wait'.
23024         * modules/sys_wait-c++-tests: New file.
23025         * tests/test-sys_wait-c++.cc: New file.
23026         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
23027         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23028
23029 2010-09-29  Bruno Haible  <bruno@clisp.org>
23030
23031         New module 'waitpid'.
23032         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
23033         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
23034         Don't include <process.h>.
23035         (waitpid): Declare only, using modern idiom.
23036         * m4/waitpid.m4: New file.
23037         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
23038         * modules/waitpid: New file.
23039         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
23040         (Makefile.am): Update.
23041         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23042
23043 2010-09-28  Bruno Haible  <bruno@clisp.org>
23044
23045         poll: Assume ANSI C.
23046         * lib/poll.c (poll): Use an ANSI C declaration.
23047
23048 2010-09-28  Bruno Haible  <bruno@clisp.org>
23049
23050         poll-h: Create poll.h on all platforms.
23051         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
23052         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
23053         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
23054         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
23055         (gl_REPLACE_POLL_H): Don't set POLL_H.
23056         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
23057         * modules/poll-h (Depends-on): Add include_next.
23058         (Makefile.am): Create poll.h unconditionally. Substitute also
23059         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
23060
23061 2010-09-28  Bruno Haible  <bruno@clisp.org>
23062
23063         Tests for module 'poll-h'.
23064         * modules/poll-h-c++-tests: New file.
23065         * tests/test-poll-h-c++.cc: New file.
23066
23067         Tests for module 'poll-h'.
23068         * modules/poll-h-tests: New file.
23069         * tests/test-poll-h.c: New file.
23070
23071 2010-09-28  Bruno Haible  <bruno@clisp.org>
23072
23073         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
23074         * modules/poll-h (Depends-on): Add 'extensions'.
23075
23076 2010-09-28  Bruno Haible  <bruno@clisp.org>
23077
23078         New module 'poll-h'.
23079         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
23080         (poll): Use modern idiom.
23081         * modules/poll-h: New file.
23082         * modules/poll (Files): Remove lib/poll.in.h.
23083         (Depends-on): Add poll-h.
23084         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
23085         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
23086         * m4/poll_h.m4: New file.
23087         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
23088         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
23089         and invoke gl_REPLACE_POLL_H.
23090         * lib/poll.c: Use common idiom.
23091         * tests/test-poll.c: Likewise.
23092         * doc/posix-headers/poll.texi: Mention the poll-h module.
23093         Suggested by Eric Blake.
23094
23095 2010-09-26  Bruno Haible  <bruno@clisp.org>
23096
23097         sys_wait: Implement WSTOPSIG.
23098         * lib/sys_wait.in.h (WSTOPSIG): New macro.
23099         Reported by Simon Josefsson.
23100
23101 2010-09-26  Simon Josefsson  <simon@josefsson.org>
23102
23103         stdlib, sys_wait: Avoid compilation error on mingw.
23104         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
23105
23106 2010-09-26  Bruno Haible  <bruno@clisp.org>
23107
23108         stdlib tests: Avoid code duplication.
23109         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
23110         * modules/sys_wait-tests (Files): Likewise.
23111         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
23112         * tests/test-stdlib.c: Include test-sys_wait.h.
23113         (main): Invoke test_sys_wait_macros.
23114         * tests/test-sys_wait.c: Include test-sys_wait.h.
23115         (main): Invoke test_sys_wait_macros.
23116
23117 2010-09-25  Simon Josefsson  <simon@josefsson.org>
23118
23119         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
23120         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
23121         sure Windows sockets are working before calling getaddrinfo.
23122         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
23123         * doc/gnulib.texi (Windows sockets): Fix typo.
23124
23125 2010-09-25  Bruno Haible  <bruno@clisp.org>
23126
23127         Tests for module 'regex-quote'.
23128         * modules/regex-quote-tests: New file.
23129         * tests/test-regex-quote.c: New file.
23130
23131         New module 'regex-quote'.
23132         * lib/regex-quote.h: New file.
23133         * lib/regex-quote.c: New file.
23134         * modules/regex-quote: New file.
23135         Suggested by Reuben Thomas <rrt@sc3d.org>.
23136
23137 2010-09-24  Bruno Haible  <bruno@clisp.org>
23138
23139         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
23140         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
23141
23142 2010-09-23  Bruno Haible  <bruno@clisp.org>
23143
23144         setenv: Relax license.
23145         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
23146         Blake.
23147         Requested by Eric Blake.
23148
23149 2010-09-22  Bruno Haible  <bruno@clisp.org>
23150
23151         termios: Relax license.
23152         * modules/termios (License): Change to LGPLv2+.
23153         Requested by Eric Blake.
23154
23155 2010-09-22  Bruno Haible  <bruno@clisp.org>
23156
23157         threadlib: Allow the package to change the default to 'no'.
23158         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
23159         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
23160         Reported by Paul Eggert.
23161
23162 2010-09-22  Pádraig Brady  <P@draigbrady.com>
23163             Bruno Haible  <bruno@clisp.org>
23164
23165         Fix endless loop in mbmemcasecoll.
23166         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
23167         byte.
23168         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
23169
23170 2010-09-22  Bruno Haible  <bruno@clisp.org>
23171
23172         Tests for module 'memcoll'.
23173         * modules/memcoll-tests: New file.
23174         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
23175
23176         memcoll, xmemcoll: Clarify size vs. length.
23177         * modules/memcoll.c (memcoll0): Clarify specification.
23178         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
23179         passed to collate_error.
23180
23181 2010-09-22  Bruno Haible  <bruno@clisp.org>
23182
23183         Tests for module 'memcasecmp'.
23184         * modules/memcasecmp-tests: New file.
23185         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
23186
23187 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23188
23189         * lib/pthread.in.h: Add split double-inclusion guard, and include
23190         system <pthread.h> if there is one.  Use @@-style as in other
23191         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
23192         pthread.h doesn't.
23193         (pthread_mutexattr_destroy, pthread_mutexattr_init):
23194         (pthread_mutexattr_settype, pthread_mutex_trylock):
23195         New static inline functions, if there's no system <pthread.h>.
23196         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
23197         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
23198         Approximate with mutexes if the system lacks spinlocks, as in
23199         MacOS.
23200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
23201         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
23202         @@-style.  Check for spinlocks separately.
23203         (gl_PTHREAD_DEFAULTS): New macro.
23204         * modules/pthread: Redo to use a more typical style for in.h files.
23205
23206 2010-09-21  Eric Blake  <eblake@redhat.com>
23207
23208         net_if: enhance tests
23209         * tests/test-net_if.c (main): Move signature checks earlier.
23210         Print failures to stderr.
23211         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
23212         Document the bug that we do not yet fix.
23213
23214 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23215
23216         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
23217         about gnulib, not GSS.
23218
23219 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23220
23221         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
23222         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
23223         for Emacs.
23224         * build-aux/pmccabe2html: Make Makefile.am example code more
23225         cut-and-paste friendly.
23226
23227 2010-09-21  Simon Josefsson  <simon@josefsson.org>
23228
23229         * tests/test-net_if.c: New file.
23230         * modules/net_if-tests: New file.
23231
23232 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23233
23234         pthread: add pthread_spin_destroy
23235         * lib/pthread.in.h (pthread_spin_destroy): New function.
23236
23237 2010-09-19  Bruno Haible  <bruno@clisp.org>
23238
23239         gnulib-tool: Fix --help output.
23240         * gnulib-tool (func_usage): Fix help message.
23241         Reported by Reuben Thomas <rrt@sc3d.org>.
23242
23243 2010-09-18  Jim Meyering  <meyering@redhat.com>
23244
23245         maint.mk: avoid unexpanded \n in two diagnostics
23246         * top/maint.mk (sc_prohibit_always_true_header_tests):
23247         Don't use a literal \n in a halt=... assignment.  It would not be
23248         expanded, and the two \n bytes would appear in the diagnostic output
23249         rather than the desired newline.  Use halt=$$(printf ... instead.
23250         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23251
23252 2010-09-18  Bruno Haible  <bruno@clisp.org>
23253
23254         netinet_in: Doc tweak.
23255         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
23256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23257
23258 2010-09-18  Jim Meyering  <meyering@redhat.com>
23259
23260         init.sh: correct an outdated comment
23261         * tests/init.sh (create_exe_shims_):  s/function/alias/
23262
23263         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
23264         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
23265         a file named "*.exe" is removed between the glob expansion and the
23266         processing of that oddly named file.
23267
23268 2010-09-17  Eric Blake  <eblake@redhat.com>
23269
23270         mirbsd: add some more support
23271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
23272         in BSD family.
23273         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
23274         devices as OpenBSD.
23275         * m4/host-os.m4 (mirbsd): Add MirBSD.
23276
23277         tests: fix unportable assumption on sys/wait.h
23278         * tests/test-sys_wait.c (main): Relax test.
23279         * tests/test-stdlib.c (main): Likewise.
23280
23281         init.sh: accomodate directory with no .exes
23282         * tests/init.sh: Accomodate directory containing only scripts.
23283
23284         tests: avoid compiler warning
23285         * tests/test-stdlib.c (main): Use the variable.
23286
23287         fdutimens, fdutimensat: update signature, again
23288         * lib/utimens.h (gl_futimens): Delete, and move signature...
23289         (fdutimens): ...here.
23290         (fdutimensat): Rearrange signature.
23291         (lutimensat): Rename variable for clarity.
23292         * lib/fdutimensat.c (fdutimensat): Update signature.
23293         * lib/utimens.c (fdutimens): Likewise.
23294         (gl_futimens): Delete.
23295         (utimens, lutimens): Update callers.
23296         * lib/futimens.c (futimens): Likewise.
23297         * tests/test-fdutimensat.c: Likewise.
23298         * tests/test-utimens.c: Likewise.
23299         * tests/test-futimens.h: Update comment.
23300         * NEWS: Mention this.
23301         Suggested by Paul Eggert.
23302
23303 2010-09-17  Bruno Haible  <bruno@clisp.org>
23304
23305         Take over the maintenance of some older macros from Autoconf.
23306         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
23307         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
23308         GNU Autoconf.
23309         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
23310         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
23311
23312 2010-09-17  Eric Blake  <eblake@redhat.com>
23313
23314         fdutimensat: drop atflag validation
23315         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
23316         with valid fd, to close a race scenario where futimens is
23317         unsupported and FILE was replaced by a symlink.
23318         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
23319         accordingly.
23320         Suggested by Paul Eggert.
23321
23322 2010-09-16  Bruno Haible  <bruno@clisp.org>
23323
23324         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
23325         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
23326
23327 2010-09-16  Bruno Haible  <bruno@clisp.org>
23328
23329         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
23330         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
23331         login_tty exists.
23332         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23333
23334 2010-09-16  Bruno Haible  <bruno@clisp.org>
23335
23336         login_tty: Make the replacement code work on BSD systems.
23337         * lib/login_tty.c: Include <sys/ioctl.h>.
23338         (login_tty): Use ioctl TIOCSCTTY when available.
23339         * modules/login_tty (Depends-on): Add sys_ioctl.
23340         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23341
23342 2010-09-16  Bruno Haible  <bruno@clisp.org>
23343
23344         login_tty: Stricter unit test.
23345         * modules/login_tty-tests (Depends-on): Add tcgetsid.
23346         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
23347         and tcgetsid() after login_tty.
23348         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23349
23350 2010-09-16  Bruno Haible  <bruno@clisp.org>
23351
23352         New module 'tcgetsid'.
23353         * lib/tcgetsid.c: New file.
23354         * m4/tcgetsid.m4: New file.
23355         * modules/tcgetsid: New file.
23356         * modules/termios (Depends-on): Add c++defs, warn-on-use.
23357         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
23358         GNULIB_TCGETSID, HAVE_TCGETSID.
23359         * lib/termios.in.h: Include <sys/types.h>.
23360         (tcgetsid): New declaration.
23361         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
23362         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
23363         * doc/posix-functions/tcgetsid.texi: Mention the new module.
23364         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
23365
23366 2010-09-16  Bruno Haible  <bruno@clisp.org>
23367
23368         Tests for module 'termios'.
23369         * modules/termios-c++-tests: New file.
23370         * modules/termios-tests: New file.
23371         * tests/test-termios-c++.cc: New file.
23372         * tests/test-termios.c: New file.
23373
23374         New module 'termios'.
23375         * modules/termios: New file.
23376         * lib/termios.in.h: New file.
23377         * m4/termios_h.m4: New file.
23378         * doc/posix-headers/termios.texi: Mention the new module.
23379
23380 2010-09-16  Eric Blake  <eblake@redhat.com>
23381
23382         fdutimensat: add an atflag parameter
23383         * lib/fdutimensat.c (fdutimensat): Add new parameter.
23384         * lib/utimens.h (fdutimensat): Update prototype.
23385         * tests/test-fdutimensat.c: Adjust test to match.
23386         * NEWS: Document the change.
23387         Suggested by Paul Eggert.
23388
23389 2010-09-16  Bruno Haible  <bruno@clisp.org>
23390
23391         Fix typos in comments.
23392         * lib/striconveh.h: Fix typo in comment.
23393         * lib/login_tty.c (login_tty): Likewise.
23394
23395 2010-09-15  Bruno Haible  <bruno@clisp.org>
23396
23397         stdlib: clarify MirBSD WEXITSTATUS bug
23398         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
23399         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23400
23401 2010-09-15  Eric Blake  <eblake@redhat.com>
23402
23403         stdlib: work around MirBSD WEXITSTATUS bug
23404         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
23405         * modules/stdlib (Depends-on): Add sys_wait.
23406         * tests/test-sys_wait.c (main): Enhance test.
23407         * tests/test-stdlib.c (main): Likewise.
23408         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
23409
23410         docs: mention MacOS issue with WEXITSTATUS(constant)
23411         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
23412         issue.
23413         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23414
23415         strnlen: add tests
23416         * modules/strnlen-tests: New file.
23417         * tests/test-strnlen.c: Likewise.
23418
23419 2010-09-14  Bruno Haible  <bruno@clisp.org>
23420
23421         unistr/base: Avoid link errors when module 'libunistring' is also used.
23422         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
23423         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
23424         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
23425         Declare also when HAVE_LIBUNISTRING is set.
23426         Reported by Pádraig Brady <P@draigbrady.com>.
23427
23428 2010-09-14  Eric Blake  <eblake@redhat.com>
23429
23430         test-rawmemchr: make more robust
23431         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
23432         (Depends-on, configure.ac): Add needed prerequisites to use it.
23433         * modules/memchr-tests (Files, Depends-on, configure.ac):
23434         Likewise, to avoid implicit reliance on memchr module prereqs.
23435         * tests/test-memchr.c (main): Ensure proper masking.
23436         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
23437         reads.
23438
23439         memchr: detect glibc Alpha bug
23440         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
23441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
23442         Alpha.
23443         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
23444         * tests/test-memchr.c (main): Enhance test.
23445         Reported by Nelson H. F. Beebe.
23446
23447 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23448
23449         fts, getcwd, glob: audit for dirfd returning -1
23450         * lib/fts.c (opendir): Remove #define; no longer used.
23451         (opendirat): New arg PDIR_FD.  All callers changed.
23452         (fts_build, _opendir2): Use new opendirat to avoid the need for
23453         dirfd, or for checking whether dirfd returns a negative value.
23454         Don't use opendir; always use openat followed by fdopendir.
23455         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
23456         it.
23457         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
23458         returns -1 here.
23459         * modules/fts (Depends-on): Remove dirfd.
23460         * modules/getcwd (Depends-on): Likewise.
23461
23462 2010-09-13  Eric Blake  <eblake@redhat.com>
23463
23464         float: fix broken MirBSD header
23465         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
23466         * doc/posix-headers/float.texi (float.h): Document it.
23467
23468 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23469
23470         fts: use O_NOFOLLOW to avoid race condition when opening a directory
23471         * lib/fts.c (opendirat): New arg extra_flags.
23472         (__opendir2): Use it to avoid following symlinks when opening
23473         a directory, if symlinks are not supposed to be followed.  See
23474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
23475
23476         fdopendir: preserve argument fd before returning
23477         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
23478         (fdopendir_with_dup, fd_clone_opendir): New static functions.
23479         (fdopendir): Use them, arranging for FD to be open to the same
23480         directory that it was when it started.  (It might be temporarily
23481         closed while fdopendir is running, so this not thread- or
23482         signal-safe.)  Be careful to do the right thing even when file
23483         descriptors are scarce and dup fails with errno == EMFILE.  See
23484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
23485
23486 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
23487
23488         regex: Pass the system regex if its only problem is 32-bit regoff_t.
23489         * NEWS: Document change.
23490         * m4/regex.m4: Disable test for regoff_t size.
23491
23492 2010-09-13  Jim Meyering  <meyering@redhat.com>
23493
23494         fts: don't operate on an invalid file descriptor after failed dup
23495         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
23496         negative file descriptor.
23497
23498 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
23499
23500         savedir: add streamsavedir, deprecate fdsavedir
23501         * NEWS: Mention deprecation of fdsavedir.
23502         * lib/savedir.c (streamsavedir): New extern function, whose name
23503         ends in "savedir" to be consistent with the others.  This differs
23504         from savedirstream in that it doesn't close its argument.  The
23505         next version of GNU tar will use this instead of fdsavedir, to
23506         avoid some race conditions and conserve file descriptors.
23507         (savedirstream): Reimplement as a wrapper around streamsavedir.
23508         (fdsavedir): Add a comment deprecating this function.  As far as
23509         I know, only GNU tar used it, and GNU tar doesn't need it any more.
23510         * lib/savedir.h (streamsavedir): New decl.
23511         (fdsavedir): Add a comment deprecating this.
23512
23513 2010-09-10  Bruno Haible  <bruno@clisp.org>
23514
23515         langinfo: Fix last commit.
23516         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
23517         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
23518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23519
23520 2010-09-10  Bruno Haible  <bruno@clisp.org>
23521
23522         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
23523         * lib/progreloc.c (O_EXEC): Define fallback.
23524
23525 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
23526
23527         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
23528         * NEWS: Document recent changes to fcntl-h.
23529         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
23530         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
23531         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
23532         Similarly for O_SEARCH; this last was already true, but not documented.
23533         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
23534         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
23535         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
23536         Likewise.
23537         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
23538         is zero, not whether it is defined.
23539         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
23540         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
23541         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
23542
23543 2010-09-10  Bruno Haible  <bruno@clisp.org>
23544
23545         langinfo, nl_langinfo: Fix for IRIX 5.3.
23546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
23547         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
23548         HAVE_LANGINFO_YESEXPR.
23549         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
23550         HAVE_LANGINFO_YESEXPR.
23551         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
23552         HAVE_LANGINFO_T_FMT_AMPM is 0.
23553         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
23554         HAVE_LANGINFO_YESEXPR is 0.
23555         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
23556         NOEXPR.
23557         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
23558         * doc/posix-functions/nl_langinfo.texi: Likewise.
23559         Reported by Eric Blake.
23560
23561 2010-09-10  Bruno Haible  <bruno@clisp.org>
23562
23563         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
23564         * doc/glibc-functions/login_tty.texi: Mention the include file problem
23565         on FreeBSD 8.0 and OpenBSD 4.6.
23566         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
23567         * m4/pty_h.m4 (gl_PTY_H): Likewise.
23568         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
23569         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
23570         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
23571         ac_includes_default.
23572         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23573
23574 2010-09-09  Eric Blake  <eblake@redhat.com>
23575
23576         strsignal: work around NetBSD bug
23577         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
23578         * lib/string.in.h (includes): Likewise.
23579         * doc/posix-functions/strsignal.texi (strsignal): Document the
23580         bug.
23581         Reported by Nelson H. F. Beebe.
23582
23583         gnulib-tool: work with NetBSD /bin/sh
23584         * gnulib-tool (func_cache_var, func_cache_lookup_module)
23585         (func_get_description, func_get_comment, func_get_status)
23586         (func_get_notice, func_get_applicability, func_get_filelist)
23587         (func_get_dependencies, func_get_autoconf_early_snippet)
23588         (func_get_autoconf_snippet, func_get_automake_snippet)
23589         (func_get_include_directive, func_get_link_directive)
23590         (func_get_license, func_get_maintainer, func_import): Avoid
23591         shell syntax errors from parsing syntax extensions.
23592
23593 2010-09-09  Bruno Haible  <bruno@clisp.org>
23594
23595         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23596         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
23597         a reliable way to determine whether the 'alias' command works.
23598
23599 2010-09-08  Jim Meyering  <meyering@redhat.com>
23600
23601         init.sh: penalize a set-x-impaired shell; don't disqualify it
23602         * tests/init.sh: Too many shells corrupt application stderr when
23603         you set -x, so we can't afford to disqualify them, since at least
23604         on Irix-6.5, that would disqualify all bourne shells.
23605         Instead, use a two-pass approach.
23606         On the first pass, try to find a shell that meets the stricter
23607         condition that set -x does not corrupt stderr.
23608         If no shell meets the stricter condition, retest each candidate
23609         shell, but without that extra condition.  Finally, when
23610         VERBOSE=yes is requested and set -x might cause trouble, simply
23611         issue a warning and refrain from enabling debug output.
23612
23613 2010-09-08  Eric Blake  <eblake@redhat.com>
23614
23615         unsetenv: fix OpenBSD bug
23616         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
23617         * doc/posix-functions/unsetenv.texi (unsetenv): Update
23618         documentation.
23619         Reported by Jim Meyering.
23620
23621         strtod: work around IRIX 6.5 bug
23622         * lib/strtod.c (strtod): Reparse number on shorter string if
23623         exponent parse was invalid.
23624         * tests/test-strtod.c (main): Add check for "0x1p 2".
23625         Reported by Tom G. Christensen.
23626
23627         getopt: optimize previous patch
23628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
23629         empty variable.  Speed up awk script.
23630         Reported by Paolo Bonzini.
23631
23632 2010-09-08  Jim Meyering  <meyering@redhat.com>
23633
23634         test.sh: disqualify shells for which set -x corrupts stderr
23635         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
23636         and OpenBSD 4.7.  They make it so with "set -x", environment settings
23637         appear in stderr output.  For example, this command:
23638             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
23639         prints "P=1" on those two systems:
23640
23641 2010-09-08  Bruno Haible  <bruno@clisp.org>
23642
23643         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23644         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
23645         commands, because some shells ignore redirections when there is an
23646         error in the command lookup.
23647         Reported by Eric Blake.
23648
23649 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
23650
23651         * lib/regex.h: Fix a mention of `regex_compile' (should be
23652         `re_compile_pattern').
23653         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
23654         (re_set_registers): Correct name of parameter in comment.
23655
23656         * doc/regex.texi: Add documentation for missing syntax flags.
23657         Remove commented-out documentation of defunct syntax option
23658         RE_NO_EMPTY_ALTS.
23659         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
23660         Add documentation of re_set_registers.
23661         Document trick to re-use a pattern buffer by setting fastmap manually.
23662         Update documentation of struct re_pattern_buffer per public members.
23663         Uncomment documentation of equivalence class operators and
23664         collating symbol operators, since they are now implemented,
23665         Explain leftmost-longest matching in relation to alternatives.
23666         Tidy documentation of substring matching.
23667         Remove POSIX documentation, which is done better in
23668         glibc, and refer the reader there. Keep BSD API documentation, as
23669         that is not readily available elsewhere.
23670
23671 2010-09-07  Eric Blake  <eblake@redhat.com>
23672
23673         getopt: handle POSIXLY_CORRECT set but not exported
23674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
23675         export state of POSIXLY_CORRECT, due to bash set -o posix.
23676         Reported by Dustin J. Mitchell.
23677
23678 2010-09-05  Bruno Haible  <bruno@clisp.org>
23679
23680         gnulib-tool: Highlight the changed options.
23681         * gnulib-tool (func_usage): Display the --import, --add-import,
23682         --remove-import explanations in bold font.
23683
23684 2010-09-06  Karl Berry  <karl@gnu.org>
23685
23686         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
23687
23688 2010-09-05  Bruno Haible  <bruno@clisp.org>
23689
23690         uniwidth/width: Update comment.
23691         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
23692         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23693
23694 2010-09-05  Bruno Haible  <bruno@clisp.org>
23695
23696         isinf, isnan: Relax license.
23697         * modules/isinf (License): Change from GPL to LGPL, with consent from
23698         Ben Pfaff.
23699         * modules/isnan (License): Likewise.
23700         Requested by Ludovic Courtès.
23701
23702 2010-09-04  Bruno Haible  <bruno@clisp.org>
23703
23704         gnulib-tool: Help migration from --import to --add-import or --update.
23705         * gnulib-tool: Emit a verbose error message when --import is used
23706         without any module name.
23707
23708 2010-09-04  Bruno Haible  <bruno@clisp.org>
23709
23710         Update doc about gnulib-tool.
23711         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
23712         'gnulib-tool --update' in more detail.
23713         Reported by Eric Blake.
23714
23715 2010-09-04  Bruno Haible  <bruno@clisp.org>
23716
23717         gnulib-tool: Change --import. New options --add/remove-import.
23718         * gnulib-tool: New options --add-import, --remove-import.
23719         (func_usage): Document them.
23720         (have_associative): Define always.
23721         (func_import): In import mode, don't merge the specified settings with
23722         the cached settings. Implement remove-import mode.
23723         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
23724         Explain when to use them versus --import.
23725         (Simple update): Use --add-import instead of --import.
23726         * NEWS: Mention the change.
23727
23728 2010-09-04  Bruno Haible  <bruno@clisp.org>
23729
23730         * doc/gnulib-tool.texi (Initial import): Update paragraph about
23731         separate gnulib.mk.
23732
23733 2010-09-04  Bruno Haible  <bruno@clisp.org>
23734
23735         gnulib-tool: Don't talk about CVS any more.
23736         * gnulib-tool (func_usage, func_import): Write "version control"
23737         instead of CVS.
23738
23739 2010-09-04  Jim Meyering  <meyering@redhat.com>
23740
23741         maint.mk: avoid obscure sc_copyright_check failure in coreutils
23742         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
23743         false positives (whose names may be ill-chosen) when searching
23744         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
23745         would cause a false-positive.
23746
23747         avoid coreutils "make distcheck" failure
23748         Coreutils tests with an absolute build directory name that contains
23749         a space.  Not quoting this directory name caused a failure.
23750         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
23751         * tests/test-vc-list-files-cvs.sh: Likewise.
23752
23753 2010-09-04  Bruno Haible  <bruno@clisp.org>
23754
23755         gnulib-tool: Avoid error when run in a package without Makefile.am.
23756         * gnulib-tool: When collecting the m4dirs in a package that does not
23757         have a Makefile.am, eliminate those directories that contain no
23758         gnulib-cache.m4. Fix expression that counts these directories.
23759
23760 2010-09-04  Bruno Haible  <bruno@clisp.org>
23761
23762         update-copyright test: Improve output when perl is missing or too old.
23763         * tests/test-update-copyright.sh: Move test of Perl version down after
23764         the test whether Perl exists. Provide an explanation relating Perl's
23765         error message to Automake's SKIP: message.
23766
23767 2010-09-04  Bruno Haible  <bruno@clisp.org>
23768
23769         Don't augment PATH in TESTS_ENVIRONMENT.
23770         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
23771         set abs_aux_dir instead of augmenting PATH.
23772         * modules/vc-list-files-tests (Makefile.am): Likewise.
23773         * tests/test-update-copyright.sh: Augment PATH here.
23774         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
23775         path_prepend_.
23776         * tests/test-vc-list-files-git.sh: Likewise.
23777
23778 2010-09-04  Jim Meyering  <meyering@redhat.com>
23779
23780         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
23781         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
23782
23783 2010-09-04  Bruno Haible  <bruno@clisp.org>
23784
23785         strdup: Fix compilation error in C++ mode.
23786         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
23787         the macro.
23788
23789 2010-09-04  Bruno Haible  <bruno@clisp.org>
23790
23791         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
23792         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
23793         macro into a function.
23794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23795
23796 2010-09-04  Bruno Haible  <bruno@clisp.org>
23797
23798         Set PATH_SEPARATOR the same way autoconf does.
23799         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
23800         the value of PATH_SEPARATOR the same way autoconf-generated configure
23801         scripts do.
23802         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
23803         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23804
23805 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23806
23807         Set PATH_SEPARATOR the same way autoconf does.
23808         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23809         the same way autoconf-generated configure scripts do.
23810         * posix-modules: Likewise.
23811
23812 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23813
23814         hash: fix safe_hasher const typo
23815         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23816         const; otherwise, there is a type error later.
23817
23818 2010-09-02  Jim Meyering  <meyering@redhat.com>
23819
23820         test-update-copyright.sh: require perl 5.8.0
23821         * tests/test-update-copyright.sh: Require 5.8.0,
23822         which Tom G. Christensen has confirmed is adequate,
23823         while 5.6.1 is not.
23824
23825 2010-09-02  Eric Blake  <eblake@redhat.com>
23826
23827         tests: init.sh improvements for re-exec'ing with zsh
23828         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23829         -vx through shell re-exec.
23830         Reported by Tom G. Christensen.
23831
23832         wctype: fix typo in previous commit
23833         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23834         Reported by Ludovic Courtès.
23835
23836 2010-09-02  Jim Meyering  <meyering@redhat.com>
23837
23838         test-update-copyright.sh: skip test if Perl is too old
23839         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23840         Reported by Tom G. Christensen.
23841
23842 2010-09-02  Bruno Haible  <bruno@clisp.org>
23843
23844         wctype: Avoid compilation error on IRIX 6.5.30.
23845         * lib/wctype.in.h (iswblank): Declare with a replacement if
23846         REPLACE_ISWBLANK is set.
23847         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23848         declared. Set REPLACE_ISWBLANK.
23849         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23850         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23851         * doc/posix-headers/wctype.texi: Likewise.
23852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23853
23854 2010-09-01  Bruno Haible  <bruno@clisp.org>
23855
23856         New module 'socketlib'.
23857         * modules/socketlib: New file.
23858         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23859         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23860         * modules/sockets (Depends-on): Add socketlib.
23861         Suggested by Sam Steingold <sds@gnu.org>.
23862
23863 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23864
23865         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23866
23867         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23868         when one needs search access to a directory but not read access.
23869         On systems where it is available, it works in some cases where
23870         O_RDONLY does not, namely on directories that are searchable but
23871         not readable, and which need only to be searchable.  If O_SEARCH
23872         is not available, fall back to the traditional method of using
23873         O_RDONLY.
23874
23875         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23876         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23877         when opening a directory that needs only to be searchable.
23878         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23879         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23880         * lib/openat-proc.c (openat_proc_name): Likewise.
23881         * lib/openat.c (openat_needs_fchdir): Likewise.
23882         * lib/save-cwd.c (save_cwd): Likewise.
23883         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23884
23885 2010-08-28  Bruno Haible  <bruno@clisp.org>
23886
23887         New module 'host-cpu-c-abi'.
23888         * modules/host-cpu-c-abi: New file.
23889         * m4/host-cpu-c-abi.m4: New file, based on part of
23890         clisp/src/m4/general.m4.
23891         Requested by Sam Steingold <sds@gnu.org>.
23892
23893 2010-08-31  Eric Blake  <eblake@redhat.com>
23894         and Jim Meyering  <meyering@redhat.com>
23895
23896         hash: factor, and guard against misbehaving hasher function
23897         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23898         of table->hasher's return value.  Also protect against a hash value
23899         so large that adding it to table->bucket results in a NULL pointer.
23900         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23901         Use it in place of open-coded check-and-abort.
23902
23903 2010-08-30  Bruno Haible  <bruno@clisp.org>
23904
23905         hash: silence spurious clang warning
23906         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23907         Reported by Eric Blake.
23908
23909 2010-08-30  Eric Blake  <eblake@redhat.com>
23910
23911         strstr, memmem, strcasestr: avoid leaked shell message
23912         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23913         FreeBSD.
23914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23916
23917         tests: silence clang warning
23918         * tests/test-malloca.c (do_allocation): Avoid dead store.
23919
23920 2010-08-29  Bruno Haible  <bruno@clisp.org>
23921
23922         gettext: Fix recent mistake.
23923         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23924
23925 2010-08-29  Bruno Haible  <bruno@clisp.org>
23926
23927         selinux-h: Offer a --without-selinux option.
23928         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23929         --without-selinux was specified, skip all tests and define
23930         HAVE_SELINUX_SELINUX_H to 0.
23931         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23932         set LIB_SELINUX to empty.
23933         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23934         gl_LIBSELINUX. If --without-selinux was specified, replace
23935         selinux/context.h.
23936         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23937
23938 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23939             Bruno Haible  <bruno@clisp.org>
23940
23941         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23942         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23943         of HAVE_REALLOC.
23944         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23945         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23946         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23947         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23948
23949 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23950             Bruno Haible  <bruno@clisp.org>
23951
23952         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23953         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23954         HAVE_CALLOC.
23955         * lib/xmalloc.c: Update accordingly.
23956         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23957         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23958         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23959
23960 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23961             Bruno Haible  <bruno@clisp.org>
23962
23963         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23964         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23965         HAVE_MALLOC.
23966         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23967         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23968         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23969
23970 2010-08-29  Bruno Haible  <bruno@clisp.org>
23971
23972         Update modules list.
23973         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23974         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23975         (String handling <string.h>): Add astrxfrm.
23976         (File system functions): Add readlinkat.
23977
23978 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23979
23980         Tests for module 'realloc-gnu'.
23981         * modules/realloc-gnu-tests: New file.
23982         * tests/test-realloc-gnu.c: New file.
23983
23984         Tests for module 'calloc-gnu'.
23985         * modules/calloc-gnu-tests: New file.
23986         * tests/test-calloc-gnu.c: New file.
23987
23988         Tests for module 'malloc-gnu'.
23989         * modules/malloc-gnu-tests: New file.
23990         * tests/test-malloc-gnu.c: New file.
23991
23992 2010-08-28  Bruno Haible  <bruno@clisp.org>
23993
23994         Rename module 'realloc' -> 'realloc-gnu'.
23995         * modules/realloc-gnu: New file, copied from modules/realloc.
23996         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23997         obsolete.
23998         * modules/mgetgroups (Depends-on): Update.
23999         * doc/posix-functions/realloc.texi: Update.
24000         * NEWS: Mention the change.
24001
24002         Rename module 'calloc' -> 'calloc-gnu'.
24003         * modules/calloc-gnu: New file, copied from modules/calloc.
24004         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
24005         obsolete.
24006         * doc/posix-functions/calloc.texi: Update.
24007         * NEWS: Mention the change.
24008
24009         Rename module 'malloc' -> 'malloc-gnu'.
24010         * modules/malloc-gnu: New file, copied from modules/malloc.
24011         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
24012         obsolete.
24013         * modules/argp (Depends-on): Update.
24014         * modules/regex (Depends-on): Update.
24015         * doc/posix-functions/malloc.texi: Update.
24016         * NEWS: Mention the change.
24017
24018 2010-08-28  Eric Blake  <eblake@redhat.com>
24019
24020         pread, pwrite: add missing dependency
24021         * modules/pread (Depends-on): Add extensions.
24022         * modules/pwrite (Depends-on): Likewise.
24023
24024 2010-08-28  Bruno Haible  <bruno@clisp.org>
24025
24026         unistr/u*-strchr: Fix tests dependencies.
24027         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
24028         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
24029         Reported by Ian Beckwith <ianb@erislabs.net>.
24030
24031 2010-08-28  Bruno Haible  <bruno@clisp.org>
24032
24033         read-file: Don't occupy too much unused memory.
24034         * lib/read-file.c (fread_file): Shrink the buffer at the end.
24035
24036 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
24037             Eric Blake  <eblake@redhat.com>
24038             Bruno Haible  <bruno@clisp.org>
24039
24040         read-file: Avoid memory reallocations with regular files.
24041         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
24042         (fread_file): With regular files, use the remaining length as the
24043         initial buffer size.  Check against overflow.
24044         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
24045         sys_stat.
24046
24047 2010-08-28  Bruno Haible  <bruno@clisp.org>
24048
24049         ftello: Relax license.
24050         * modules/ftello (License): Relax to LGPLv2+.
24051         Reported by Eric Blake.
24052
24053 2010-08-28  Bruno Haible  <bruno@clisp.org>
24054
24055         Avoid relocwrapper link errors due to gnulib replacement functions.
24056         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
24057         function.
24058         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24059
24060 2010-08-28  Bruno Haible  <bruno@clisp.org>
24061
24062         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
24063         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
24064         defined.
24065         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
24066         Suggested by Eric Blake.
24067
24068 2010-08-28  Bruno Haible  <bruno@clisp.org>
24069
24070         sys_socket, netdb: Ensure socklen_t gets defined.
24071         * modules/sys_socket (Depends-on): Add socklen.
24072         * modules/netdb (Depends-on): Likewise.
24073         * modules/getaddrinfo (Depends-on): Remove socklen.
24074         * modules/getsockopt (Depends-on): Likewise.
24075         * modules/setsockopt (Depends-on): Likewise.
24076         * tests/test-sys_socket.c: Check that socklen_t is defined.
24077         * tests/test-netdb.c: Likewise.
24078         * m4/socklen.m4: Update comments.
24079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24080
24081 2010-08-27  Eric Blake  <eblake@redhat.com>
24082
24083         login_tty: add missing dependency
24084         * modules/login_tty (Depends-on): Add pty.
24085
24086 2010-08-26  Eric Blake  <eblake@redhat.com>
24087
24088         lib-symbol-versions: fix m4 quoting
24089         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
24090         format for AC_LINK_IFELSE.
24091
24092         glob: fix compile test
24093         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
24094
24095         btowc: fix missing file
24096         * modules/btowc (Files): Also ship locale-fr.m4.
24097
24098         lseek: fix link test
24099         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
24100         AC_LINK_IFELSE.
24101
24102         include_next: silence autoconf 2.68 warning
24103         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
24104         AC_COMPILE_IFELSE as special.
24105         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
24106         autoconf < 2.68.
24107
24108         acl: fix compilation test
24109         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
24110         AC_COMPILE_IFELSE.
24111
24112 2010-08-26  Bruno Haible  <bruno@clisp.org>
24113
24114         Modernize AC_TRY_RUN invocations.
24115         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
24116         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24117         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
24118         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
24119         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
24120         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24121         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24123         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24124         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24125         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24126         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24127         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24129         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24130         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24131         gl_MBRLEN_NUL_RETVAL): Likewise.
24132         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24133         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24134         Likewise.
24135         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24136         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24137         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24138         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24139         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
24140         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
24141         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
24142         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
24143         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
24144         Likewise.
24145         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24146         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
24147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24148         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24150         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24151         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24152         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
24153         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24155
24156 2010-08-26  Bruno Haible  <bruno@clisp.org>
24157
24158         Modernize AC_TRY_LINK invocations.
24159         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
24160         AC_TRY_LINK.
24161         * m4/argp.m4 (gl_ARGP): Likewise.
24162         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
24163         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24164         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
24165         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24166         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24167         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
24168         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
24169         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
24170         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24171         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
24172         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24173         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
24174         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
24175         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24176         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24177         * m4/hostent.m4 (gl_HOSTENT): Likewise.
24178         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24179         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
24180         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24181         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
24182         Likewise.
24183         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
24184         Likewise.
24185         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
24186         Likewise.
24187         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
24189         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
24190         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24191         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
24192         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24193         * m4/servent.m4 (gl_SERVENT): Likewise.
24194         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
24195         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
24196         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
24197         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
24198         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24199         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
24200         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24202         * modules/tsearch-tests (configure.ac): Likewise.
24203
24204 2010-08-26  Bruno Haible  <bruno@clisp.org>
24205
24206         Modernize AC_TRY_COMPILE invocations.
24207         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
24208         AC_TRY_COMPILE.
24209         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
24210         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
24211         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24212         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24213         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24214         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24215         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24216         * m4/lock.m4 (gl_LOCK): Likewise.
24217         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
24218         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24219         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
24220         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24221         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24222         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
24223         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
24224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
24225         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24226         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24227         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24228         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24229         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
24230         extraneous semicolon.
24231
24232 2010-08-26  Jim Meyering  <meyering@redhat.com>
24233
24234         stat-time: relax license LGPL
24235         * modules/stat-time (License): Change from GPL to LGPL,
24236         with consent from all contributors, for use in libguile.
24237         Requested by Ludovic Courtès.
24238
24239 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
24240
24241         poll: return immediately on POLLHUP.
24242         * lib/poll.c (poll): Always set timeout before wait_timeout is
24243         computed.
24244
24245 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24246
24247         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
24248         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
24249         rmdir ("dir/.//"), unlinkat.
24250
24251 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24252
24253         stdbool: avoid spurious failure with modern xlc
24254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
24255
24256 2010-08-24  Bruno Haible  <bruno@clisp.org>
24257
24258         getloadavg: simplify code
24259         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
24260         gl_have_func. Update comments.
24261
24262 2010-08-24  Eric Blake  <eblake@redhat.com>
24263
24264         getloadavg: don't define SVR4 on cygwin
24265         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
24266         only define SVR4 when -lkvm is required.
24267         Reported by Yaakov Selkowitz.
24268
24269 2010-08-24  Bruno Haible  <bruno@clisp.org>
24270
24271         priv-set: fix comment
24272         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
24273
24274 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24275
24276         priv-set: fix comments
24277         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
24278         to match code, as suggested by David Bartley in:
24279         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
24280
24281 2010-08-23  Eric Blake  <eblake@redhat.com>
24282
24283         stdbool: avoid rejecting clang
24284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
24285         * tests/test-stdbool.c: Enable more tests if using the system
24286         <stdbool.h> instead of the gnulib replacement.
24287         (main): Move xlc bug test to a runtime test for all compilers.
24288         Reported by Anders Kaseorg.
24289
24290         argz: fix shell quoting issue
24291         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
24292         Reported by Charles Wilson.
24293
24294 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
24295             Erik Faye-Lund <kusmabite@gmail.com>
24296
24297         poll, select: handle ERROR_BROKEN_PIPE.
24298         * lib/poll.c (win32_compute_revents): Return POLLHUP when
24299         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24300         * lib/select.c (win32_compute_revents): Do not mark a pipe
24301         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24302
24303 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
24304
24305         fts: allow compilation with C++
24306         * lib/fts_.h: Specify extern "C" linkage with C++.
24307
24308 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24309
24310         Fix gnulib-tool sed script de-commentation for AIX sed.
24311         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
24312         sed.
24313
24314 2010-08-17  Eric Blake  <eblake@redhat.com>
24315
24316         test-stddef: test for (some) offsetof bugs
24317         * tests/test-stddef.c: Enhance test to ensure correct type of
24318         offsetof.
24319         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
24320         that we are not fixing at this time.
24321
24322 2010-08-15  Bruno Haible  <bruno@clisp.org>
24323
24324         stpncpy: Allow stpncpy to be defined as a macro.
24325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
24326         if it's already correctly declared.
24327         * lib/string.in.h (stpncpy): Undefine before redefining.
24328         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
24329
24330 2010-08-14  Bruno Haible  <bruno@clisp.org>
24331
24332         Rename module 'memxfrm' to 'amemxfrm'.
24333         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
24334         (amemxfrm): Renamed from memxfrm.
24335         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
24336         (amemxfrm): Renamed from memxfrm.
24337         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
24338         * NEWS: Mention the change.
24339         * MODULES.html.sh (String handling <string.h>): Update.
24340         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
24341         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
24342         * lib/unicase/u16-casexfrm.c: Likewise.
24343         * lib/unicase/u32-casexfrm.c: Likewise.
24344         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
24345         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
24346         * lib/uninorm/u16-normxfrm.c: Likewise.
24347         * lib/uninorm/u32-normxfrm.c: Likewise.
24348         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
24349         memxfrm.
24350         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
24351         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
24352         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
24353         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
24354         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
24355         Suggested by Paul Eggert.
24356
24357 2010-08-14  Bruno Haible  <bruno@clisp.org>
24358
24359         Tests for module 'astrxfrm'.
24360         * modules/astrxfrm-tests: New file.
24361         * tests/test-astrxfrm.c: New file.
24362
24363         New module 'astrxfrm'.
24364         * lib/astrxfrm.h: New file.
24365         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
24366         * modules/astrxfrm: New file.
24367
24368 2010-08-14  Reuben Thomas <rrt@sc3d.org>
24369
24370         regex: Tweak doc.
24371         * doc/regex.texi (Overview): Don't mention regex.c.
24372         (GNU Regular Expression Compiling): Likewise.
24373         (Match-end-of-line Operator): Mention 'not_eol'.
24374
24375 2010-08-14  Brian Gough  <bjg@gnu.org>
24376             Bruno Haible  <bruno@clisp.org>
24377
24378         git-merge-changelog: add doc relating to use with bzr and hg.
24379         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
24380
24381 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
24382
24383         pthread: fix pthread.h creation for srcdir != builddir
24384         * modules/pthread (Makefile.am): Fix the rule to work also in a
24385         non-srcdir build.
24386
24387 2010-08-13  Karl Berry  <karl@gnu.org>
24388
24389         * doc/regex.texi (Predefined Syntaxes): @smallexample.
24390         * doc/posix-*/*: force line break before @url of POSIX
24391         specifications.
24392         Suggested by Werner Lemberg.
24393
24394 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24395
24396         strtod: fix const diagnostic
24397         * lib/strtod.c (strtod): Don't assign const char * to char *,
24398         as this elicits a warning from GCC when warnings are enabled.
24399
24400 2010-08-10  Pádraig Brady <P@draigbrady.com>
24401         and Eric Blake  <eblake@redhat.com>
24402
24403         copy-acl: ignore ENOTSUP on HP-UX
24404         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
24405         so that it is available for HP-UX.
24406         * lib/copy-acl.c (qcopy_acl): Use it.
24407         Reported by Patrick M. Callahan.
24408
24409 2010-08-10  Eric Blake  <eblake@redhat.com>
24410
24411         open, chown: relax license
24412         * modules/open (License): Change to LGPLv2+, with consent by all
24413         authors, for use in augeas.
24414         * modules/chown (License): Likewise.
24415         * modules/lchown (Likewise): Likewise.
24416         Requested by Adam Stokes.
24417
24418 2010-08-09  Karl Berry  <karl@gnu.org>
24419
24420         * build-aux/ar-lib: new file, import from Automake.
24421         * config/srclist.txt: autocheck for updates.
24422
24423 2010-08-09  Eric Blake  <eblake@redhat.com>
24424
24425         readlinkat: adjust client modules
24426         * modules/areadlinkat (Depends-on): Use readlinkat, not
24427         symlinkat.
24428         * modules/areadlinkat-with-size (Depends-on): Likewise.
24429
24430         mknod: be more vocal about danger of running tests as root
24431         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
24432         root, since that is just asking for problems.
24433         Suggested by Bruno Haible, based on a report by Rainer Tammer.
24434
24435         readlinkat: split into its own module
24436         * modules/symlinkat: Split readlinkat...
24437         * modules/readlinkat: ...into separate module.
24438         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
24439         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
24440         * lib/symlinkat.c (readlinkat): Move...
24441         * lib/readlinkat.c: ...into new file.
24442         * modules/symlinkat-tests: Split readlinkat test...
24443         * modules/readlinkat-tests: ...into separate module.
24444         * tests/test-symlinkat.c: Split...
24445         * tests/test-readlinkat.c: ...into new file.
24446         * NEWS: Document the split.
24447         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24448         * lib/unistd.in.h (readlinkat): Likewise.
24449         Suggested by Bruno Haible.
24450
24451 2010-08-08  Bruno Haible  <bruno@clisp.org>
24452
24453         memxfrm: Speed up.
24454         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
24455         that usually only one call to strxfrm is necessary for each string
24456         part.
24457         Reported by Paul Eggert <eggert@cs.ucla.edu>.
24458
24459 2010-08-07  Karl Berry  <karl@gnu.org>
24460
24461         * doc/posix-headers/limits.texi,
24462         * doc/posix-functions/malloc.texi,
24463         * doc/posix-functions/strsignal.texi: missing @item.
24464         * doc/ld-version-script.texi: spurious leading i.
24465         * doc/regex.texi (Interval Operators): no commas inside @var.
24466
24467 2010-08-01  Bruno Haible  <bruno@clisp.org>
24468
24469         Integrate the regex documentation.
24470         * doc/gnulib.texi: Define 'cn' index.
24471         (Regular expressions): New a chapter that includes regex.texi and
24472         regexprops-generic.texi.
24473         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
24474         syntax.
24475
24476         Whitespace cleanup.
24477         * doc/regex.texi: Remove trailing spaces.
24478
24479         Add regex documentation.
24480         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
24481         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
24482         Written by Kathy A. Hargreaves and Karl Berry.
24483
24484 2010-08-01  Bruno Haible  <bruno@clisp.org>
24485
24486         link: Update documentation.
24487         * doc/posix-functions/link.texi: Update regarding Solaris.
24488
24489 2010-07-31  Bruno Haible  <bruno@clisp.org>
24490
24491         Update modules list.
24492         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
24493         (String handling <string.h>): Add memcmp2, memxfrm.
24494         (Container data structures): Add xlist, xsublist, xoset.
24495         (Core language properties): Add alignof, unused-parameter.
24496         (Process control, Numeric conversion functions <stdlib.h>): Renamed
24497         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
24498         (Unibyte characters <ctype.h>): New section.
24499         (String handling <string.h>): New section.
24500         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
24501         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
24502         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
24503         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
24504         tan, tanh, tanl, y0, y1, yn.
24505         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
24506         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
24507         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
24508         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
24509         unlockpt, vdprintf, vdprintf-posix.
24510         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
24511         (File system functions): Add concat-filename, sys_file, sys_ioctl,
24512         xconcat-filename.
24513         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
24514         getdtablesize, pipe2, pipe2-safer.
24515         (Security): New section.
24516         (Networking functions): Add accept4.
24517         (Signal handling): Add sigpipe.
24518         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
24519         mbmemcasecoll.
24520         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
24521         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
24522         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
24523         pipe-filter-ii.
24524         (Misc): Add argp-version-etc, login_tty, parse-duration.
24525
24526 2010-07-31  Bruno Haible  <bruno@clisp.org>
24527
24528         Improve doc in MODULES.html.
24529         * modules/linkat (Description): Add the word "function".
24530         * modules/mkfifo (Description): Likewise.
24531         * modules/mknod (Description): Likewise.
24532         * modules/remove (Description): Likewise.
24533         * modules/renameat (Description): Likewise.
24534         * modules/stat (Description): Likewise.
24535         * modules/symlink (Description): Likewise.
24536         * modules/unlink (Description): Likewise.
24537
24538 2010-07-31  Bruno Haible  <bruno@clisp.org>
24539
24540         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
24541         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
24542         option --enable/disable-c++ instead of --enable/disable-cxx.
24543         * NEWS: Mention the change.
24544
24545 2010-07-31  Bruno Haible  <bruno@clisp.org>
24546
24547         readlink, areadlink: Relax test a bit.
24548         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
24549         alternative to ENOTDIR.
24550         * tests/test-areadlink.h (test_areadlink): Likewise.
24551         Reported by Rainer Tammer.
24552
24553 2010-07-31  Bruno Haible  <bruno@clisp.org>
24554
24555         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
24556         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
24557         character, perform the search using U_STRCHR.
24558         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
24559         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
24560         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
24561         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
24562         Suggested by Paolo Bonzini.
24563
24564 2010-07-31  Bruno Haible  <bruno@clisp.org>
24565
24566         unistr/u*-strstr: Fix dependencies.
24567         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24568         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
24569         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
24570
24571 2010-07-31  Bruno Haible  <bruno@clisp.org>
24572
24573         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
24574         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
24575         the beginning of the loop.
24576         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
24577         cases in 'switch' statement.
24578
24579         unistr/u8-strchr: Fix several bugs.
24580         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
24581         the string. When not found, return NULL, not a pointer near the end.
24582
24583         More tests for unistr/u8-strchr.
24584         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
24585         that the function does not read past the first occurrence of the byte
24586         being searched.
24587         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
24588         * tests/unistr/test-u16-strchr.c (main): New function.
24589         * tests/unistr/test-u32-strchr.c (main): New function.
24590
24591 2010-07-31  Bruno Haible  <bruno@clisp.org>
24592
24593         posix-modules: Ignore backup files of documentation files.
24594         * posix-modules: grep only through files named *.texi.
24595
24596 2010-07-31  Bruno Haible  <bruno@clisp.org>
24597
24598         symlinkat: Fix documentation.
24599         * doc/posix-functions/readlinkat.texi: Fix module name.
24600
24601 2010-07-31  Bruno Haible  <bruno@clisp.org>
24602
24603         fchownat: Replace also when chown has the trailing slash bug.
24604         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
24605         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
24606         introduced on 2010-04-10.
24607         Reported by Rainer Tammer.
24608
24609 2010-07-31  Bruno Haible  <bruno@clisp.org>
24610
24611         linkat: Work around AIX 7.1 bug.
24612         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
24613         whether linkat handles trailing slash correctly. If not, replace linkat
24614         and define LINKAT_TRAILING_SLASH_BUG.
24615         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
24616         check whether (fd1,file1) points to a directory if file1 or file2 ends
24617         in a slash. Code taken from lib/link.c.
24618         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
24619         Reported by Rainer Tammer.
24620
24621 2010-07-31  Bruno Haible  <bruno@clisp.org>
24622
24623         Correctly determine whether pow is available in libc on AIX 7 with xlc.
24624         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
24625         This disables an xlc optimization that was causing wrong test results.
24626         Reported by Rainer Tammer.
24627
24628 2010-07-31  Bruno Haible  <bruno@clisp.org>
24629
24630         iconv: Work around AIX 6.1..7.1 bug.
24631         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
24632         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
24633         cross-compiling, guess no on all versions of AIX.
24634         Reported by Rainer Tammer.
24635
24636 2010-07-31  Bruno Haible  <bruno@clisp.org>
24637
24638         readlink: Relax test a bit.
24639         * tests/test-readlink.h (test_readlink): Allow different errno value
24640         when readlink is called with a file name that ends in / and refers to
24641         a file.
24642         Suggested by Eric Blake.
24643         Reported by Rainer Tammer.
24644
24645 2010-07-31  Bruno Haible  <bruno@clisp.org>
24646
24647         copysign: Does not require -lm on glibc systems.
24648         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
24649         gl_COMMON_DOUBLE_MATHFUNC.
24650         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
24651
24652 2010-07-31  Bruno Haible  <bruno@clisp.org>
24653
24654         duplocale: Work around AIX 7.1 bug.
24655         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
24656         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
24657         * lib/duplocale.c (rpl_duplocale): Update comment.
24658         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
24659         Reported by Rainer Tammer.
24660
24661 2010-07-30  Bruno Haible  <bruno@clisp.org>
24662
24663         dirfd: Avoid link error on AIX 7.1.
24664         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
24665         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
24666         exist, set REPLACE_DIRFD.
24667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24668         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
24669         * doc/posix-functions/dirfd.texi: Update.
24670         Reported by Rainer Tammer.
24671
24672 2010-07-30  Eric Blake  <eblake@redhat.com>
24673
24674         strtod: next round of AIX fixes
24675         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
24676         exponent.
24677         * tests/test-strtod.c (main): Enhance tests.
24678         * doc/posix-functions/strtod.texi (strtod): Document next bug.
24679         Reported by Rainer Tammer.
24680
24681         futimens: fix configure check
24682         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
24683         Reported by Bruno Haible.
24684
24685 2010-07-30  Bruno Haible  <bruno@clisp.org>
24686
24687         getline: Update regarding AIX.
24688         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
24689         Reported by Rainer Tammer.
24690
24691 2010-07-30  Bruno Haible  <bruno@clisp.org>
24692
24693         wcwidth: Drop replacement on AIX 7.
24694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
24695         AIX 7.
24696         Reported by Rainer Tammer.
24697
24698 2010-07-30  Bruno Haible  <bruno@clisp.org>
24699
24700         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
24701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
24702         a 'char *'.
24703         Reported by Rainer Tammer.
24704
24705 2010-07-30  Bruno Haible  <bruno@clisp.org>
24706
24707         unlink: Update regarding AIX.
24708         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
24709         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
24710         Reported by Rainer Tammer.
24711
24712 2010-07-30  Bruno Haible  <bruno@clisp.org>
24713
24714         symlink: Update regarding AIX.
24715         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
24716         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
24717         Reported by Rainer Tammer.
24718
24719 2010-07-30  Bruno Haible  <bruno@clisp.org>
24720
24721         strndup: Update regarding AIX.
24722         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
24723         AIX 7.
24724         Reported by Rainer Tammer.
24725
24726 2010-07-30  Bruno Haible  <bruno@clisp.org>
24727
24728         stat: Update regarding AIX.
24729         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
24730         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
24731         Reported by Rainer Tammer.
24732
24733 2010-07-30  Bruno Haible  <bruno@clisp.org>
24734
24735         truncl: Fix autoconf test.
24736         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
24737         whether truncl works.
24738         Reported by Rainer Tammer.
24739
24740 2010-07-30  Bruno Haible  <bruno@clisp.org>
24741
24742         round: Update regarding AIX.
24743         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
24744         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
24745         Reported by Rainer Tammer.
24746
24747 2010-07-30  Bruno Haible  <bruno@clisp.org>
24748
24749         rename: Update regarding AIX.
24750         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
24751         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
24752         Reported by Rainer Tammer.
24753
24754 2010-07-30  Bruno Haible  <bruno@clisp.org>
24755
24756         printf.m4: Update regarding AIX.
24757         * m4/printf.m4: Update comments regarding AIX.
24758         Reported by Rainer Tammer.
24759
24760 2010-07-30  Bruno Haible  <bruno@clisp.org>
24761
24762         iconv: Update regarding AIX.
24763         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
24764         AIX 7.
24765         Reported by Rainer Tammer.
24766
24767 2010-07-30  Bruno Haible  <bruno@clisp.org>
24768
24769         getopt: Update regarding AIX.
24770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
24771         no on AIX.
24772         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
24773         Reported by Rainer Tammer.
24774
24775 2010-07-30  Bruno Haible  <bruno@clisp.org>
24776
24777         ldexpl; Update regarding AIX.
24778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
24779         on AIX 7.
24780         Reported by Rainer Tammer.
24781
24782 2010-07-30  Bruno Haible  <bruno@clisp.org>
24783
24784         frexpl: Update regarding AIX.
24785         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
24786         on AIX 7.
24787         Reported by Rainer Tammer.
24788
24789 2010-07-30  Bruno Haible  <bruno@clisp.org>
24790
24791         open, fopen: Update regarding AIX.
24792         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
24793         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24794         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
24795         * doc/posix-functions/fopen.texi: Likewise.
24796         Reported by Rainer Tammer.
24797
24798 2010-07-30  Bruno Haible  <bruno@clisp.org>
24799
24800         chown: Update doc regarding AIX.
24801         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
24802         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
24803         Reported by Rainer Tammer.
24804
24805 2010-07-30  Eric Blake  <eblake@redhat.com>
24806
24807         strtod: fix bug in replacement function on AIX
24808         * lib/strtod.c (strtod): Special case broken "0x" parse in
24809         underlying strtod.
24810         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24811         * doc/posix-functions/strtod.texi (strtod): Likewise.
24812         Reported by Rainer Tammer.
24813
24814 2010-07-30  Bruno Haible  <bruno@clisp.org>
24815
24816         mbrlen: Fix cross-compilation guess for AIX.
24817         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24818         guess. Leftover from 2008-12-22.
24819
24820 2010-07-30  Bruno Haible  <bruno@clisp.org>
24821
24822         mbrtowc: Fix cross-compilation guess for AIX.
24823         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24824         guess. Leftover from 2008-12-21.
24825
24826 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24827
24828         init.sh: work around trap limitation of some shells
24829         * tests/init.sh (setup_): Move exit trap outside of shell function.
24830
24831 2010-07-29  Eric Blake  <eblake@redhat.com>
24832
24833         strtod: aid debugging
24834         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24835         understanding why strtod is rejected.
24836
24837 2010-07-28  Bruno Haible  <bruno@clisp.org>
24838
24839         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24840         * lib/unistr/u8-chr.c: Include <string.h>.
24841         * tests/unistr/test-u8-chr.c: Likewise.
24842         * tests/unistr/test-u16-chr.c: Likewise.
24843         * tests/unistr/test-u32-chr.c: Likewise.
24844         * tests/unistr/test-u8-strchr.c: Likewise.
24845         * tests/unistr/test-u16-strchr.c: Likewise.
24846         * tests/unistr/test-u32-strchr.c: Likewise.
24847         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24848         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24849         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24850         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24851
24852 2010-07-28  Bruno Haible  <bruno@clisp.org>
24853
24854         Use spaces for indentation, not tabs.
24855         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24856
24857 2010-07-27  Bruno Haible  <bruno@clisp.org>
24858
24859         mbspcasecmp: Fix function specification.
24860         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24861         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24862         Reported by Eric Blake <eblake@redhat.com>.
24863
24864 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24865
24866         timespec: use cast and not conditional, as truncation isn't possible
24867         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24868         instead of a conditional.  Comment about the situation in more detail.
24869         This undoes most of the 2009-10-29 patch.
24870
24871 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24872
24873         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24874         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24875         * lib/unistr/u8-strchr.c: Likewise.
24876         * modules/unistr/u8-chr: Depend on memchr.
24877
24878         unistr/u*-strchr: add tests
24879         * modules/unistr/u8-strchr-tests: New file.
24880         * modules/unistr/u16-strchr-tests: New file.
24881         * modules/unistr/u32-strchr-tests: New file.
24882         * tests/unistr/test-strchr.h: New file.
24883         * tests/unistr/test-u8-strchr.c: New file.
24884         * tests/unistr/test-u16-strchr.c: New file.
24885         * tests/unistr/test-u32-strchr.c: New file.
24886
24887         unistr/u*-chr: test multibyte sequences more
24888         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24889         test vector.
24890         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24891         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24892         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24893
24894         unistr/u*-chr: test multibyte sequences
24895         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24896
24897         unistr/u*-chr: prepare for multibyte tests
24898         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24899         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24900         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24901         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24902         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24903         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24904
24905 2010-07-18  Bruno Haible  <bruno@clisp.org>
24906
24907         unistr/u8-strchr: Optimize non-ASCII argument case.
24908         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24909         because the first byte often matches anyway.
24910         Reported by Pádraig Brady <P@draigbrady.com>.
24911
24912 2010-07-15  Karl Berry  <karl@gnu.org>
24913
24914         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24915
24916 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24917
24918         getcwd: on Solaris, work better if ancestors are inaccessible
24919         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24920         buffer and size, try again with a large buffer.  This works better
24921         on Solaris, since its getcwd succeeds even if the path to the root
24922         is inaccessible, and this is helpful in common cases such as .zfs
24923         hidden directories.  Problem reported by J Chapman Flack in
24924         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24925         Use system getcwd if it's declared, not merely if it's partly
24926         working; use the partly-working test only to avoid needless effort
24927         if the system getcwd fails.
24928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24929         comment that was already obsolete and is now even more obsolete.
24930         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24931         now might call strdup.
24932
24933 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24934
24935         pthread: Add enough so that coreutils/src/sort.c compiles.
24936         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24937         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24938         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24939         Include <sys/types.h>, in case it defines pthread_t.
24940         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24941         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24942         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24943         (pthread_rwlockattr_t, pthread_spinlock_t):
24944         New typedefs, if HAVE_PTHREAD_T is not defined.
24945         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24946         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24947         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24948         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24949         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24950         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24951         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24952         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24953         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24954         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24955         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24956         New macros.
24957         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24958         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24959         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24960         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24961         (pthread_spin_unlock): New dummy functions.
24962         (pthread_create): Return EAGAIN; don't set errno.
24963         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24964         require AC_C_INLINE.
24965         * modules/pthread (Depends-on): Add sched, time.
24966         (pthread.h): Use AM_V_GEN.
24967
24968 2010-07-13  Bruno Haible  <bruno@clisp.org>
24969
24970         striconveh: Don't malloc memory if the result buffer is sufficient.
24971         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24972         buffer if its size is sufficient.
24973         Reported by Ludovic Courtès <ludo@gnu.org>.
24974
24975 2010-07-13  Bruno Haible  <bruno@clisp.org>
24976
24977         strtod: Add safety check.
24978         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24979
24980 2010-07-12  Bruno Haible  <bruno@clisp.org>
24981
24982         Unify tests that set gl_cv_func_ldexpl_no_libm.
24983         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24984         gl_FUNC_LDEXPL.
24985         (gl_FUNC_LDEXPL): Invoke it.
24986         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24987
24988 2010-07-12  Bruno Haible  <bruno@clisp.org>
24989
24990         Unify tests that set gl_cv_func_ldexp_no_libm.
24991         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24992         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24993         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24994         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24995         * modules/strtod (Files): Add m4/ldexp.m4.
24996
24997 2010-07-12  Bruno Haible  <bruno@clisp.org>
24998
24999         Unify tests that set gl_cv_func_frexpl_no_libm.
25000         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
25001         gl_FUNC_FREXPL_NO_LIBM.
25002         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
25003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25004
25005 2010-07-12  Bruno Haible  <bruno@clisp.org>
25006
25007         Unify tests that set gl_cv_func_frexp_no_libm.
25008         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
25009         gl_FUNC_FREXP_NO_LIBM.
25010         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
25011         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25012
25013 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25014
25015         memcoll: clarify sizes versus lengths, document better, and tweak perf
25016         * lib/memcoll.c (strcoll_loop, memcoll0):
25017         Improve quality of descriptive comments.  Name variables
25018         consistently as to whether they are lengths (which do not include
25019         terminating null) versus sizes (which do).
25020         * lib/xmemcoll.c (xmemcoll0): Likewise.
25021         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
25022         returned when s1size == 0; this is easier to compile and saves
25023         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
25024
25025 2010-07-12  Bruno Haible  <bruno@clisp.org>
25026
25027         Tests for module '_Exit'.
25028         * modules/_Exit-tests: New file.
25029         * tests/test-_Exit.sh: New file.
25030         * tests/test-_Exit.c: New file.
25031
25032         New module '_Exit'.
25033         * lib/stdlib.in.h (__attribute__): New macro.
25034         (_Exit): New declaration.
25035         * lib/_Exit.c: New file.
25036         * m4/_Exit.m4: New file.
25037         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
25038         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
25039         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
25040         * modules/_Exit: New file.
25041         * tests/test-stdlib-c++.cc (_Exit): Check signature.
25042         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
25043
25044 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25045
25046         strtod: make it more-accurate typically, and don't require libm
25047         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
25048         Include limits.h.  Don't include string.h.
25049         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
25050         (locale_isspace): New function, so that no casts are needed to
25051         check whether *s is a space.
25052         (ldexp): Provide an unused dummy if not available.
25053         (scale_radix_exp, parse_number, underlying_strtod): New functions.
25054         (strtod): Use them.  This implementation prefers to use the
25055         underlying strtod if available, falling back on our own code
25056         only to fix known bugs.  This is more likely to produce an
25057         accurate result.  Also, it avoids the use of libm functions.
25058         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
25059         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
25060         was absent, but it caused a test failure with coreutils.
25061         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
25062         with libm.
25063         * modules/strtod (Makefile.am, Link): libm is no longer needed.
25064         * modules/strtod-tests (Makefile.am): Likewise.
25065
25066 2010-07-11  Pádraig Brady  <P@draigBrady.com>
25067             Bruno Haible  <bruno@clisp.org>
25068
25069         unistr/u8-strchr: Optimize ASCII argument case.
25070         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
25071
25072 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25073
25074         (x)memcoll: minor tweaks
25075         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
25076         is after the type that it qualifies.
25077         (memcoll0): Likewise.
25078         * lib/memcoll.h (memcoll0): Likewise.
25079         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
25080         * lib/xmemcoll.h (xmemcoll0): Likewise.
25081         * lib/memcoll.c (memcoll0): Correct the comment.  This function
25082         differs from memcoll in that the NUL byte is part of the argument.
25083         Omit the abort-checks, as performance is a real issue here.  Plus,
25084         the checks were wrong anyway (an off-by-one error).  Omit local
25085         variable 'diff', as it's a bit clearer that way.
25086         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
25087         no longer needed.
25088
25089 2010-07-08  Chen Guo <chenguo4@yahoo.com>
25090
25091         (x)memcoll: speedup when input is known to be NUL delimited
25092         * lib/memcoll.c: Include stdlib.
25093         (memcoll0): New function.
25094         (strcoll_loop): New function, refactored for use in both memcoll
25095         and memcoll0.
25096         * lib/memcoll.h (memcoll0): Add prototype.
25097         * lib/xmemcoll.c (xmemcoll0): New function.
25098         (collate_error): New function, refactored for use in both xmemcoll
25099         and xmemcoll0.
25100         * lib/xmemcoll.h (xmemcoll0): Add prototype.
25101         * m4/memcoll.m4: add inline invocation.
25102
25103 2010-07-06  Pádraig Brady  <P@draigBrady.com>
25104
25105         * build-aux/bootstrap: Remove any local translations
25106         from the translation project synchronization directory,
25107         so that local only translations are not distributed.
25108
25109 2010-07-04  Bruno Haible  <bruno@clisp.org>
25110
25111         fsusage: Clarify which code applies to which platforms.
25112         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
25113         platform.
25114         * lib/fsusage.c (get_fs_usage): Likewise.
25115
25116 2010-07-04  Bruno Haible  <bruno@clisp.org>
25117
25118         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
25119         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
25120         Reported by Martin Lambers <marlam@marlam.de>.
25121
25122 2010-07-04  Jim Meyering  <meyering@redhat.com>
25123
25124         hash: once again explicitly disallow insertion of NULL
25125         * lib/hash.c (hash_insert0): Reinstate just-removed test:
25126         inserting a NULL pointer cannot work with these functions.
25127         Add a comment with details.
25128         This reverts part of the 2010-07-01 commit, 5bef1a35
25129         "hash: extend module to deal with non-pointer keys".
25130
25131 2010-07-01  Bruno Haible  <bruno@clisp.org>
25132
25133         stdbool: Update doc.
25134         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
25135         Info from Christian Weisgerber <naddy@mips.inka.de>.
25136
25137 2010-07-01  Jim Meyering  <meyering@redhat.com>
25138
25139         hash: extend module to deal with non-pointer keys
25140         * lib/hash.c (hash_insert0): New interface, much like hash_insert
25141         but that allows insertion of non-pointer entries.
25142         Do not disallow an ENTRY value of NULL.
25143         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
25144         * lib/hash.h (hash_insert0): Declare.
25145
25146 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25147
25148         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
25149         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
25150         not present (i.e. with autoconf 2.59 and when using gettextize, not
25151         gnulib), require AC_GNU_SOURCE instead.
25152
25153 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
25154
25155         idpriv-drop: Fix tests.
25156         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
25157         not to the test-idpriv-droptemp program.
25158
25159 2010-06-29  Bruno Haible  <bruno@clisp.org>
25160
25161         string: Fix syntax error with g++ 2.96.
25162         * lib/string.in.h (__pure__): Remove definition.
25163         (_GL_ATTRIBUTE_PURE): New macro.
25164         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
25165         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
25166         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25167
25168 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
25169
25170         unitypes: Fix bug introduced on 2010-05-18.
25171         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
25172
25173 2010-06-22  Eric Blake  <eblake@redhat.com>
25174
25175         memmem: slight optimization
25176         * lib/str-two-way.h (critical_factorization): Update comments.
25177         Reduce work during factorization phase.
25178         Reported by Carlos Bueno <carlos@bueno.org>.
25179
25180 2010-06-21  Bruno Haible  <bruno@clisp.org>
25181
25182         Fix HAVE_CALLOC_POSIX misnomer.
25183         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
25184         !HAVE_CALLOC_POSIX.
25185         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
25186         HAVE_CALLOC_POSIX.
25187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
25188         instead of HAVE_CALLOC_POSIX.
25189         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
25190         HAVE_CALLOC_POSIX.
25191
25192         Use modern idiom for calloc() replacement.
25193         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
25194         AC_FUNC_CALLOC.
25195         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
25196         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
25197         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25198         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
25199         (gl_REPLACE_CALLOC): New macro.
25200
25201 2010-06-21  Bruno Haible  <bruno@clisp.org>
25202
25203         Fix HAVE_REALLOC_POSIX misnomer.
25204         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
25205         !HAVE_REALLOC_POSIX.
25206         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
25207         HAVE_REALLOC_POSIX.
25208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
25209         instead of HAVE_REALLOC_POSIX.
25210         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
25211         HAVE_REALLOC_POSIX.
25212
25213         Use modern idiom for realloc() replacement.
25214         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
25215         AC_FUNC_REALLOC.
25216         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
25217         Autoconf's AC_FUNC_REALLOC.
25218         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25219         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
25220         (gl_REPLACE_REALLOC): New macro.
25221         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25222
25223 2010-06-21  Bruno Haible  <bruno@clisp.org>
25224
25225         Fix HAVE_MALLOC_POSIX misnomer.
25226         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
25227         !HAVE_MALLOC_POSIX.
25228         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
25229         HAVE_MALLOC_POSIX.
25230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
25231         instead of HAVE_MALLOC_POSIX.
25232         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
25233         HAVE_MALLOC_POSIX.
25234
25235         Use modern idiom for malloc() replacement.
25236         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
25237         AC_FUNC_MALLOC.
25238         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
25239         Autoconf's AC_FUNC_MALLOC.
25240         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25241         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
25242         (gl_REPLACE_MALLOC): New macro.
25243         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25244
25245 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
25246
25247         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
25248         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
25249         This macro takes 3 arguments, not 4.
25250
25251 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
25252
25253         ipv6: fix detection under mingw
25254         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
25255         in6_addr.
25256
25257 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
25258
25259         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
25260         that strtod() works when cross-compiling to a glibc version known
25261         to work.
25262
25263 2010-06-15  Bruno Haible  <bruno@clisp.org>
25264
25265         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
25266
25267 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
25268
25269         select: Correct timeout.
25270         * lib/select.c (rpl_select): Compute wait_timeout correctly.
25271
25272 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25273
25274         git-version-gen: init shell var to avoid env var influence
25275         * build-aux/git-version-gen (v): Init shell var to empty.
25276
25277 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
25278
25279         priv-set: Don't assume that priv.h exists merely because getppriv does.
25280         See Jan Andersen's bug report about AIX 5L in
25281         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
25282         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
25283         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
25284         * lib/priv-set.h: Likewise.
25285         * tests/test-priv-set.c: Likewise.
25286
25287 2010-06-13  Bruno Haible  <bruno@clisp.org>
25288
25289         relocatable: Make it easier to test whether to install wrappers.
25290         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
25291         RELOCATABLE_VIA_WRAPPER.
25292
25293 2010-06-13  Bruno Haible  <bruno@clisp.org>
25294
25295         gnulib-tool: Display specified modules and dependencies differently.
25296         * gnulib-tool (func_show_module_list): New function.
25297         (func_import, func_create_testdir): Invoke it.
25298         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25299
25300 2010-06-13  Bruno Haible  <bruno@clisp.org>
25301
25302         gnulib-tool: Align code of func_import and func_create_testdir.
25303         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
25304         specified_modules.
25305
25306 2010-06-12  Jim Meyering  <meyering@redhat.com>
25307
25308         test-inttostr: avoid spurious failure on Solaris 9
25309         * tests/test-inttostr.c (main): Skip the test when snprintf fails
25310         to accept "%ju".  Reported by Bruno Haible.
25311
25312 2010-06-11  Jim Meyering  <meyering@redhat.com>
25313
25314         test-sys_socket: mark variables as used more readably
25315         * tests/test-sys_socket.c (main): Mark otherwise unused variables
25316         as "used" explicitly via (void) statement casts.  This is more
25317         readable than using them in an artificial return expression.
25318         Suggestion from Bruno Haible.
25319
25320 2010-06-11  Bruno Haible  <bruno@clisp.org>
25321
25322         Avoid some more warnings from "gcc -Wwrite-strings".
25323         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
25324         to 'const char *'.
25325         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
25326         * tests/test-c-strcasestr.c (main): Likewise.
25327         * tests/test-mbscasestr1.c (main): Likewise.
25328         * tests/test-mbscasestr2.c (main): Likewise.
25329         * tests/test-memmem.c (main): Likewise.
25330         * tests/test-strstr.c (main): Likewise.
25331         * tests/test-strcasestr.c (main): Likewise.
25332
25333 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25334
25335         init.sh: change framework_failure_ to fail with status 99, not 1
25336         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
25337         automake's parallel-tests rule that this is an unexpected failure,
25338         even if the test is listed in XFAIL_TESTS.
25339
25340 2010-06-11  Jim Meyering  <meyering@redhat.com>
25341
25342         test-inttostr: avoid warnings about 4-6KB literal strings
25343         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
25344         Include "macros.h", for its definition of ASSERT.
25345         (CK): s/assert/ASSERT/
25346         * modules/inttostr-tests (Files): Add macros.h.
25347
25348         init.sh: don't use $ME_ or skip_ before they are defined
25349         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
25350         their first uses.  Also hoist their companions: warn_, fail_,
25351         framework_failure_, $stderr_fileno.  Prompted by a patch from
25352         Stefano Lattarini.
25353
25354         test-sys_socket: avoid set-but-not-used warnings from gcc
25355         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
25356         avoid warning about set-but-not-used variables.
25357
25358         test-xvasprintf: avoid 'const' discard warnings
25359         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
25360         "const" when assigning from literal strings.
25361         (test_xasprintf): Add "void" in function argument list to placate
25362         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
25363
25364         tests: avoid compilation warnings in argmatch and exclude tests...
25365         in packages that define ARGMATCH_DIE_DECL, like coreutils.
25366         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
25367         Since it always exits, declare with the "noreturn" attribute.
25368         * tests/test-argmatch.c: Likewise.
25369
25370         tests: avoid 'const' discard warnings in mbsstr tests
25371         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
25372         * tests/test-mbsstr2.c (main): Likewise.
25373
25374         test-verify: avoid warning from gcc's -Wmissing-declarations
25375         * tests/test-verify.c (function): Declare to be static.
25376
25377         test-inttostr.c: include <string.h> for use of strcmp
25378         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
25379
25380         test-linkat: avoid failed assertion on "other" architectures
25381         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
25382         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
25383         sparc: https://bugs.launchpad.net/bugs/591968
25384
25385 2010-06-11  Jim Meyering  <meyering@redhat.com>
25386
25387         printf.m4: avoid autoconf's "Expanded Before Required" warning
25388         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
25389         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
25390         autoconf warning.
25391
25392 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
25393
25394         Replacement header templates are now named with ".in", not "_".
25395         * doc/gnulib-intro.texi: Correct.
25396
25397 2010-06-10  Jim Meyering  <meyering@redhat.com>
25398
25399         inttostr-tests: depend on snprintf, not snprintf-posix
25400         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
25401         snprintf-posix, to avoid this aclocal failure:
25402           missing file gnulib-tests/vasnprintf.c
25403           configure.ac:45: error: expected source file, required through \
25404           AC_LIBSOURCES, not found
25405
25406 2010-06-10  Jim Meyering  <meyering@redhat.com>
25407
25408         inttostr: add a new function, inttostr, and tests
25409         The namesake function was not available.  The existence of the
25410         template file, inttostr.c makes its addition nontrivial.
25411         * lib/anytostr.c: Rename from inttostr.c.
25412         (anytostr): Rename from inttostr.
25413         * lib/inttostr.c: New file.
25414         * modules/inttostr (Files): Add anytostr.c.
25415         (Makefile.am): Set lib_SOURCES instead of ...
25416         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
25417         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
25418         * lib/offtostr.c: Likewise.
25419         * lib/uinttostr.c: Likewise.
25420         * lib/umaxtostr.c: Likewise.
25421         * modules/inttostr-tests: New file.
25422         * tests/test-inttostr.c: New file.  Test these functions.
25423
25424 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
25425             Bruno Haible  <bruno@clisp.org>
25426
25427         Add "Extending Gnulib" chapter to manual.
25428         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
25429         chapter.
25430         (Extending Gnulib): New chapter.
25431         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
25432         chapter.
25433
25434 2010-06-09  Bruno Haible  <bruno@clisp.org>
25435
25436         Avoid relocwrapper link errors due to gnulib replacement functions.
25437         * lib/areadlink.c: Use the system's malloc, realloc functions.
25438         (areadlink): Set errno to ENOMEM explicitly.
25439         * modules/areadlink (Depends-on): Remove malloc-posix.
25440         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25441
25442 2010-06-09  Bruno Haible  <bruno@clisp.org>
25443
25444         Avoid relocwrapper link errors due to gnulib replacement functions.
25445         * lib/canonicalize-lgpl.c: Use the system's malloc function.
25446         * lib/malloca.c: Likewise.
25447         * lib/relocatable.c: Likewise.
25448         * lib/progreloc.c: Use the system's malloc, sprintf functions.
25449         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
25450         * lib/setenv.c: Use the system's malloc, realloc functions.
25451         * lib/strerror.c: Use the system's sprintf function.
25452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25453
25454 2010-06-04  Bruno Haible  <bruno@clisp.org>
25455
25456         Prefer documented low-level autoconf macro names.
25457         * m4/lib-link.m4: Use m4_translit instead of translit.
25458         * m4/environ.m4: Likewise.
25459         * m4/mathfunc.m4: Likewise.
25460         * m4/onceonly.m4: Likewise.
25461         * m4/stdint.m4: Likewise.
25462         Suggested by Eric Blake.
25463
25464 2010-06-04  Martin Lambers  <marlam@marlam.de>
25465             Bruno Haible  <bruno@clisp.org>
25466
25467         havelib: Allow library names with '+' characters.
25468         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25469         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
25470
25471 2010-06-09  Bruno Haible  <bruno@clisp.org>
25472
25473         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
25474         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
25475         realloc failed.
25476
25477 2010-06-08  Peter Simons  <simons@cryp.to>
25478
25479         maint.mk: make the news-check rule more configurable
25480         * top/maint.mk (news-check-lines-spec): New variable.
25481         (news-check): Use "sed -n 1,10p" in place of "head".
25482
25483 2010-06-07  Jim Meyering  <meyering@redhat.com>
25484
25485         do-release-commit-and-tag: fix typo in --help
25486         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
25487
25488         regex: avoid new dead-code warning with gcc-4.6.0
25489         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
25490         if-block containing a while-loop.  It's been unused for at least
25491         5 years.
25492
25493 2010-06-05  Bruno Haible  <bruno@clisp.org>
25494
25495         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
25496         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
25497
25498 2010-06-04  Bruno Haible  <bruno@clisp.org>
25499
25500         Update to GNU gettext 0.18.1.
25501         * modules/gettext (configure.ac): Require gettext infrastructure from
25502         version 0.18.1.
25503
25504 2010-06-03  Bruno Haible  <bruno@clisp.org>
25505
25506         Don't use AC_LIBOBJ with file names in subdirectories.
25507         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
25508         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
25509         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
25510         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
25511         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
25512         gl_LIBUNISTRING_LIBSOURCE.
25513         (Makefile.am): Augment lib_SOURCES here, conditionally.
25514         * NEWS: Drop requirement for Automake option 'subdir-objects'.
25515
25516 2010-06-03  Bruno Haible  <bruno@clisp.org>
25517
25518         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
25519         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
25520         expansion does not end with a newline.
25521         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
25522         unnecessary newline.
25523
25524 2010-06-03  Bruno Haible  <bruno@clisp.org>
25525
25526         Reduce dependencies.
25527         * tests/test-quotearg.h: New file, extracted from
25528         tests/test-quotearg.c.
25529         * tests/test-quotearg-simple.c: New file, extracted from
25530         tests/test-quotearg.c.
25531         * tests/test-quotearg.c: Don't include <ctype.h>.
25532         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
25533         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
25534         use_quote_double_quotes, use_quotearg_colon): Moved to
25535         tests/test-quotearg.h.
25536         (results_g, flag_results, custom_quotes, custom_results): Moved
25537         to tests/test-quotearg-simple.c.
25538         (main): Moved the part that does not depend on gettext to
25539         tests/test-quotearg-simple.c. Return 77 if the test cannot be
25540         performed.
25541         * modules/quotearg-simple: New file.
25542         * modules/quotearg-simple-tests: New file.
25543         * modules/quotearg (Depends-on): Add quotearg-simple.
25544         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
25545         (Files): Add tests/test-quotearg.h.
25546         Reported by Paolo Bonzini.
25547
25548 2010-06-03  Bruno Haible  <bruno@clisp.org>
25549
25550         Reduce dependencies.
25551         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
25552
25553 2010-06-03  Bruno Haible  <bruno@clisp.org>
25554
25555         time: Undefine more broken macros.
25556         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
25557         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
25558         Reported by Eric Blake.
25559
25560 2010-06-03  Bruno Haible  <bruno@clisp.org>
25561
25562         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
25563         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
25564         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
25565         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
25566         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
25567         Reported by Ludovic Courtès <ludo@gnu.org>.
25568
25569 2010-06-02  Eric Blake  <eblake@redhat.com>
25570
25571         time: work with mingw + pthreads-win32 library
25572         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
25573         if timespec is defined only in pthread.h.
25574         * modules/time (Makefile.am): Substitute it.
25575         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
25576         <pthread.h>, when needed.
25577         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
25578         from the library.
25579
25580 2010-05-31  Bruno Haible  <bruno@clisp.org>
25581
25582         Avoid expanding two macros in the wrong order.
25583         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
25584         gl_LIBUNISTRING if it is defined.
25585         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
25586         autoconf >= 2.64.
25587         Reported by Ludovic Courtès <ludo@gnu.org>.
25588
25589 2010-05-27  Jim Meyering  <meyering@redhat.com>
25590
25591         maint.mk: also prohibit "#undef" of always-defined symbols
25592         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
25593         Allow more than one space before the symbol name.
25594         (sc_prohibit_always-defined_macros): Use grep's -E, now that
25595         the regexp uses alternation.
25596
25597 2010-05-26  Eric Blake  <eblake@redhat.com>
25598
25599         maint.mk: avoid echo -e
25600         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
25601         Convert all uses of echo -* to printf.
25602         Reported by Matthias Bolte.
25603
25604 2010-05-25  Bruno Haible  <bruno@clisp.org>
25605
25606         Update to GNU gettext 0.18, part 2.
25607         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
25608         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
25609
25610 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25611
25612         Add missing include in test-pwrite.c.
25613         * tests/test-pwrite.c: Include string.h, for strcmp.
25614
25615 2010-05-24  Bruno Haible  <bruno@clisp.org>
25616
25617         * NEWS: Mention requirement for Automake option 'subdir-objects'.
25618
25619 2010-05-24  Bruno Haible  <bruno@clisp.org>
25620
25621         Don't use conversion with transliteration in u{8,16,32}_strcoll.
25622         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
25623         iconveh_error argument.
25624         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
25625         U_STRCONV_TO_LOCALE.
25626         * lib/unistr/u16-strcoll.c: Likewise.
25627         * lib/unistr/u32-strcoll.c: Likewise.
25628         * modules/unistr/u8-strcoll (Depends-on): Add
25629         uniconv/u8-strconv-to-enc, localcharset. Remove
25630         uniconv/u8-strconv-to-locale.
25631         (configure.ac): Bump version number.
25632         * modules/unistr/u16-strcoll (Depends-on): Add
25633         uniconv/u16-strconv-to-enc, localcharset. Remove
25634         uniconv/u16-strconv-to-locale.
25635         (configure.ac): Bump version number.
25636         * modules/unistr/u32-strcoll (Depends-on): Add
25637         uniconv/u32-strconv-to-enc, localcharset. Remove
25638         uniconv/u32-strconv-to-locale.
25639         (configure.ac): Bump version number.
25640
25641 2010-05-24  Bruno Haible  <bruno@clisp.org>
25642
25643         Avoid a test failure on NetBSD 5.0.
25644         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
25645         an iconv() bug.
25646
25647 2010-05-24  Bruno Haible  <bruno@clisp.org>
25648
25649         Adjust #include directive style.
25650         * modules/regex (Includes): Recommend to write <regex.h>.
25651
25652 2010-05-24  Bruno Haible  <bruno@clisp.org>
25653
25654         regex: Don't require alloca.
25655         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
25656         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
25657         only inside if (0).
25658
25659 2010-05-23  Jim Meyering  <meyering@redhat.com>
25660
25661         test-renameat.c: include <sys/stat.h>
25662         * tests/test-renameat.c: Include <sys/stat.h>; required for
25663         definition of S_IS* macros.
25664
25665 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
25666
25667         Update maintainer documentation for 'relocatable-prog' module.
25668         * doc/relocatable-maint.texi: Update.
25669         Comments by Bruno Haible.
25670
25671 2010-05-23  Bruno Haible  <bruno@clisp.org>
25672
25673         git-merge-changelog: Enable --split-merged-entry by default.
25674         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
25675         (usage): Don't mention this option any more.
25676         Reported by Ralf Wildenhues.
25677
25678 2010-05-23  Jim Meyering  <meyering@redhat.com>
25679
25680         test-pwrite: do not leave behind a test file named "out"
25681         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
25682         The trivial-looking use of init.sh is really necessary.
25683         It ensures that the temporary file, "out", is created in
25684         a temporary directory, and removed upon termination.
25685         * tests/test-pwrite.sh: Re-add file.
25686         * modules/pwrite-tests: Reference it.
25687
25688 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25689
25690         Fix output redirection buglet in init.sh.
25691         * tests/init.sh: Fix redirection of stderr.
25692
25693 2010-05-20  Simon Josefsson  <simon@josefsson.org>
25694
25695         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
25696
25697 2010-05-17  Simon Josefsson  <simon@josefsson.org>
25698
25699         * modules/valgrind-tests: New file.
25700         * m4/valgrind-tests.m4: New file.
25701         * doc/valgrind-tests.texi: New file.
25702         * doc/gnulib.texi (Running self-tests under valgrind): New
25703         section.
25704
25705 2010-05-19  Bruno Haible  <bruno@clisp.org>
25706
25707         Clean up dead code in recent commit.
25708         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
25709         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
25710         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
25711         Suggested by Paolo Bonzini.
25712
25713 2010-05-19  Bruno Haible  <bruno@clisp.org>
25714
25715         Avoid valgrind error reports from libunistring.
25716         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
25717         * modules/libunistring (Files): Add it.
25718         * modules/libunistring-optional (Files): Likewise.
25719
25720 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
25721             Bruno Haible  <bruno@clisp.org>
25722
25723         New module 'libunistring-optional'.
25724         * modules/libunistring-optional: New file.
25725         * m4/libunistring-base.m4: New file.
25726         * m4/libunistring-optional.m4: New file.
25727         * lib/unicase.in.h: Renamed from lib/unicase.h.
25728         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
25729         * lib/unictype.in.h: Renamed from lib/unictype.h.
25730         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
25731         * lib/uniname.in.h: Renamed from lib/uniname.h.
25732         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
25733         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
25734         * lib/unistr.in.h: Renamed from lib/unistr.h.
25735         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
25736         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
25737         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
25738         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
25739         gl_LIBUNISTRING. If the library was found, determine the installed
25740         version and set LIBUNISTRING_VERSION.
25741         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
25742         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
25743         handle a configuration option --with-included-libunistring.
25744         * modules/libunistring (Files): Add m4/absolute-header.m4.
25745         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
25746         Add m4/libunistring-base.m4.
25747         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25748         (Makefile.am): Build unicase.h from unicase.in.h.
25749         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
25750         Add m4/libunistring-base.m4.
25751         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25752         (Makefile.am): Build uniconv.h from uniconv.in.h.
25753         * modules/unictype/base (Files): Use unictype.in.h instead of
25754         unictype.h. Add m4/libunistring-base.m4.
25755         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25756         (Makefile.am): Build unictype.h from unictype.in.h.
25757         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
25758         Add m4/libunistring-base.m4.
25759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25760         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
25761         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
25762         Add m4/libunistring-base.m4.
25763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25764         (Makefile.am): Build uniname.h from uniname.in.h.
25765         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
25766         Add m4/libunistring-base.m4.
25767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25768         (Makefile.am): Build uninorm.h from uninorm.in.h.
25769         * modules/unistdio/base (Files): Use unistdio.in.h instead of
25770         unistdio.h. Add m4/libunistring-base.m4.
25771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25772         (Makefile.am): Build unistdio.h from unistdio.in.h.
25773         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
25774         Add m4/libunistring-base.m4.
25775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25776         (Makefile.am): Build unistr.h from unistr.in.h.
25777         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
25778         Add m4/libunistring-base.m4.
25779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25780         (Makefile.am): Build unitypes.h from unitypes.in.h.
25781         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
25782         Add m4/libunistring-base.m4.
25783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25784         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
25785         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
25786         uniwidth.h. Add m4/libunistring-base.m4.
25787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25788         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
25789         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
25790         instead of augmenting lib_SOURCES.
25791         * modules/unicase/empty-suffix-context: Likewise.
25792         * modules/unicase/locale-language: Likewise.
25793         * modules/unicase/tolower: Likewise.
25794         * modules/unicase/totitle: Likewise.
25795         * modules/unicase/toupper: Likewise.
25796         * modules/unicase/u8-casecmp: Likewise.
25797         * modules/unicase/u8-casecoll: Likewise.
25798         * modules/unicase/u8-casefold: Likewise.
25799         * modules/unicase/u8-casexfrm: Likewise.
25800         * modules/unicase/u8-ct-casefold: Likewise.
25801         * modules/unicase/u8-ct-tolower: Likewise.
25802         * modules/unicase/u8-ct-totitle: Likewise.
25803         * modules/unicase/u8-ct-toupper: Likewise.
25804         * modules/unicase/u8-is-cased: Likewise.
25805         * modules/unicase/u8-is-casefolded: Likewise.
25806         * modules/unicase/u8-is-lowercase: Likewise.
25807         * modules/unicase/u8-is-titlecase: Likewise.
25808         * modules/unicase/u8-is-uppercase: Likewise.
25809         * modules/unicase/u8-prefix-context: Likewise.
25810         * modules/unicase/u8-suffix-context: Likewise.
25811         * modules/unicase/u8-tolower: Likewise.
25812         * modules/unicase/u8-totitle: Likewise.
25813         * modules/unicase/u8-toupper: Likewise.
25814         * modules/unicase/u16-casecmp: Likewise.
25815         * modules/unicase/u16-casecoll: Likewise.
25816         * modules/unicase/u16-casefold: Likewise.
25817         * modules/unicase/u16-casexfrm: Likewise.
25818         * modules/unicase/u16-ct-casefold: Likewise.
25819         * modules/unicase/u16-ct-tolower: Likewise.
25820         * modules/unicase/u16-ct-totitle: Likewise.
25821         * modules/unicase/u16-ct-toupper: Likewise.
25822         * modules/unicase/u16-is-cased: Likewise.
25823         * modules/unicase/u16-is-casefolded: Likewise.
25824         * modules/unicase/u16-is-lowercase: Likewise.
25825         * modules/unicase/u16-is-titlecase: Likewise.
25826         * modules/unicase/u16-is-uppercase: Likewise.
25827         * modules/unicase/u16-prefix-context: Likewise.
25828         * modules/unicase/u16-suffix-context: Likewise.
25829         * modules/unicase/u16-tolower: Likewise.
25830         * modules/unicase/u16-totitle: Likewise.
25831         * modules/unicase/u16-toupper: Likewise.
25832         * modules/unicase/u32-casecmp: Likewise.
25833         * modules/unicase/u32-casecoll: Likewise.
25834         * modules/unicase/u32-casefold: Likewise.
25835         * modules/unicase/u32-casexfrm: Likewise.
25836         * modules/unicase/u32-ct-casefold: Likewise.
25837         * modules/unicase/u32-ct-tolower: Likewise.
25838         * modules/unicase/u32-ct-totitle: Likewise.
25839         * modules/unicase/u32-ct-toupper: Likewise.
25840         * modules/unicase/u32-is-cased: Likewise.
25841         * modules/unicase/u32-is-casefolded: Likewise.
25842         * modules/unicase/u32-is-lowercase: Likewise.
25843         * modules/unicase/u32-is-titlecase: Likewise.
25844         * modules/unicase/u32-is-uppercase: Likewise.
25845         * modules/unicase/u32-prefix-context: Likewise.
25846         * modules/unicase/u32-suffix-context: Likewise.
25847         * modules/unicase/u32-tolower: Likewise.
25848         * modules/unicase/u32-totitle: Likewise.
25849         * modules/unicase/u32-toupper: Likewise.
25850         * modules/unicase/ulc-casecmp: Likewise.
25851         * modules/unicase/ulc-casecoll: Likewise.
25852         * modules/unicase/ulc-casexfrm: Likewise.
25853         * modules/uniconv/u8-conv-from-enc: Likewise.
25854         * modules/uniconv/u8-conv-to-enc: Likewise.
25855         * modules/uniconv/u8-strconv-from-enc: Likewise.
25856         * modules/uniconv/u8-strconv-from-locale: Likewise.
25857         * modules/uniconv/u8-strconv-to-enc: Likewise.
25858         * modules/uniconv/u8-strconv-to-locale: Likewise.
25859         * modules/uniconv/u16-conv-from-enc: Likewise.
25860         * modules/uniconv/u16-conv-to-enc: Likewise.
25861         * modules/uniconv/u16-strconv-from-enc: Likewise.
25862         * modules/uniconv/u16-strconv-from-locale: Likewise.
25863         * modules/uniconv/u16-strconv-to-enc: Likewise.
25864         * modules/uniconv/u16-strconv-to-locale: Likewise.
25865         * modules/uniconv/u32-conv-from-enc: Likewise.
25866         * modules/uniconv/u32-conv-to-enc: Likewise.
25867         * modules/uniconv/u32-strconv-from-enc: Likewise.
25868         * modules/uniconv/u32-strconv-from-locale: Likewise.
25869         * modules/uniconv/u32-strconv-to-enc: Likewise.
25870         * modules/uniconv/u32-strconv-to-locale: Likewise.
25871         * modules/unictype/bidicategory-byname: Likewise.
25872         * modules/unictype/bidicategory-name: Likewise.
25873         * modules/unictype/bidicategory-of: Likewise.
25874         * modules/unictype/bidicategory-test: Likewise.
25875         * modules/unictype/block-list: Likewise.
25876         * modules/unictype/block-test: Likewise.
25877         * modules/unictype/category-C: Likewise.
25878         * modules/unictype/category-Cc: Likewise.
25879         * modules/unictype/category-Cf: Likewise.
25880         * modules/unictype/category-Cn: Likewise.
25881         * modules/unictype/category-Co: Likewise.
25882         * modules/unictype/category-Cs: Likewise.
25883         * modules/unictype/category-L: Likewise.
25884         * modules/unictype/category-Ll: Likewise.
25885         * modules/unictype/category-Lm: Likewise.
25886         * modules/unictype/category-Lo: Likewise.
25887         * modules/unictype/category-Lt: Likewise.
25888         * modules/unictype/category-Lu: Likewise.
25889         * modules/unictype/category-M: Likewise.
25890         * modules/unictype/category-Mc: Likewise.
25891         * modules/unictype/category-Me: Likewise.
25892         * modules/unictype/category-Mn: Likewise.
25893         * modules/unictype/category-N: Likewise.
25894         * modules/unictype/category-Nd: Likewise.
25895         * modules/unictype/category-Nl: Likewise.
25896         * modules/unictype/category-No: Likewise.
25897         * modules/unictype/category-P: Likewise.
25898         * modules/unictype/category-Pc: Likewise.
25899         * modules/unictype/category-Pd: Likewise.
25900         * modules/unictype/category-Pe: Likewise.
25901         * modules/unictype/category-Pf: Likewise.
25902         * modules/unictype/category-Pi: Likewise.
25903         * modules/unictype/category-Po: Likewise.
25904         * modules/unictype/category-Ps: Likewise.
25905         * modules/unictype/category-S: Likewise.
25906         * modules/unictype/category-Sc: Likewise.
25907         * modules/unictype/category-Sk: Likewise.
25908         * modules/unictype/category-Sm: Likewise.
25909         * modules/unictype/category-So: Likewise.
25910         * modules/unictype/category-Z: Likewise.
25911         * modules/unictype/category-Zl: Likewise.
25912         * modules/unictype/category-Zp: Likewise.
25913         * modules/unictype/category-Zs: Likewise.
25914         * modules/unictype/category-and: Likewise.
25915         * modules/unictype/category-and-not: Likewise.
25916         * modules/unictype/category-byname: Likewise.
25917         * modules/unictype/category-name: Likewise.
25918         * modules/unictype/category-none: Likewise.
25919         * modules/unictype/category-of: Likewise.
25920         * modules/unictype/category-or: Likewise.
25921         * modules/unictype/category-test: Likewise.
25922         * modules/unictype/combining-class: Likewise.
25923         * modules/unictype/ctype-alnum: Likewise.
25924         * modules/unictype/ctype-alpha: Likewise.
25925         * modules/unictype/ctype-blank: Likewise.
25926         * modules/unictype/ctype-cntrl: Likewise.
25927         * modules/unictype/ctype-digit: Likewise.
25928         * modules/unictype/ctype-graph: Likewise.
25929         * modules/unictype/ctype-lower: Likewise.
25930         * modules/unictype/ctype-print: Likewise.
25931         * modules/unictype/ctype-punct: Likewise.
25932         * modules/unictype/ctype-space: Likewise.
25933         * modules/unictype/ctype-upper: Likewise.
25934         * modules/unictype/ctype-xdigit: Likewise.
25935         * modules/unictype/decimal-digit: Likewise.
25936         * modules/unictype/digit: Likewise.
25937         * modules/unictype/mirror: Likewise.
25938         * modules/unictype/numeric: Likewise.
25939         * modules/unictype/property-alphabetic: Likewise.
25940         * modules/unictype/property-ascii-hex-digit: Likewise.
25941         * modules/unictype/property-bidi-arabic-digit: Likewise.
25942         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25943         * modules/unictype/property-bidi-block-separator: Likewise.
25944         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25945         * modules/unictype/property-bidi-common-separator: Likewise.
25946         * modules/unictype/property-bidi-control: Likewise.
25947         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25948         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25949         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25950         * modules/unictype/property-bidi-european-digit: Likewise.
25951         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25952         * modules/unictype/property-bidi-left-to-right: Likewise.
25953         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25954         * modules/unictype/property-bidi-other-neutral: Likewise.
25955         * modules/unictype/property-bidi-pdf: Likewise.
25956         * modules/unictype/property-bidi-segment-separator: Likewise.
25957         * modules/unictype/property-bidi-whitespace: Likewise.
25958         * modules/unictype/property-byname: Likewise.
25959         * modules/unictype/property-combining: Likewise.
25960         * modules/unictype/property-composite: Likewise.
25961         * modules/unictype/property-currency-symbol: Likewise.
25962         * modules/unictype/property-dash: Likewise.
25963         * modules/unictype/property-decimal-digit: Likewise.
25964         * modules/unictype/property-default-ignorable-code-point: Likewise.
25965         * modules/unictype/property-deprecated: Likewise.
25966         * modules/unictype/property-diacritic: Likewise.
25967         * modules/unictype/property-extender: Likewise.
25968         * modules/unictype/property-format-control: Likewise.
25969         * modules/unictype/property-grapheme-base: Likewise.
25970         * modules/unictype/property-grapheme-extend: Likewise.
25971         * modules/unictype/property-grapheme-link: Likewise.
25972         * modules/unictype/property-hex-digit: Likewise.
25973         * modules/unictype/property-hyphen: Likewise.
25974         * modules/unictype/property-id-continue: Likewise.
25975         * modules/unictype/property-id-start: Likewise.
25976         * modules/unictype/property-ideographic: Likewise.
25977         * modules/unictype/property-ids-binary-operator: Likewise.
25978         * modules/unictype/property-ids-trinary-operator: Likewise.
25979         * modules/unictype/property-ignorable-control: Likewise.
25980         * modules/unictype/property-iso-control: Likewise.
25981         * modules/unictype/property-join-control: Likewise.
25982         * modules/unictype/property-left-of-pair: Likewise.
25983         * modules/unictype/property-line-separator: Likewise.
25984         * modules/unictype/property-logical-order-exception: Likewise.
25985         * modules/unictype/property-lowercase: Likewise.
25986         * modules/unictype/property-math: Likewise.
25987         * modules/unictype/property-non-break: Likewise.
25988         * modules/unictype/property-not-a-character: Likewise.
25989         * modules/unictype/property-numeric: Likewise.
25990         * modules/unictype/property-other-alphabetic: Likewise.
25991         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25992         * modules/unictype/property-other-grapheme-extend: Likewise.
25993         * modules/unictype/property-other-id-continue: Likewise.
25994         * modules/unictype/property-other-id-start: Likewise.
25995         * modules/unictype/property-other-lowercase: Likewise.
25996         * modules/unictype/property-other-math: Likewise.
25997         * modules/unictype/property-other-uppercase: Likewise.
25998         * modules/unictype/property-paired-punctuation: Likewise.
25999         * modules/unictype/property-paragraph-separator: Likewise.
26000         * modules/unictype/property-pattern-syntax: Likewise.
26001         * modules/unictype/property-pattern-white-space: Likewise.
26002         * modules/unictype/property-private-use: Likewise.
26003         * modules/unictype/property-punctuation: Likewise.
26004         * modules/unictype/property-quotation-mark: Likewise.
26005         * modules/unictype/property-radical: Likewise.
26006         * modules/unictype/property-sentence-terminal: Likewise.
26007         * modules/unictype/property-soft-dotted: Likewise.
26008         * modules/unictype/property-space: Likewise.
26009         * modules/unictype/property-terminal-punctuation: Likewise.
26010         * modules/unictype/property-test: Likewise.
26011         * modules/unictype/property-titlecase: Likewise.
26012         * modules/unictype/property-unassigned-code-value: Likewise.
26013         * modules/unictype/property-unified-ideograph: Likewise.
26014         * modules/unictype/property-uppercase: Likewise.
26015         * modules/unictype/property-variation-selector: Likewise.
26016         * modules/unictype/property-white-space: Likewise.
26017         * modules/unictype/property-xid-continue: Likewise.
26018         * modules/unictype/property-xid-start: Likewise.
26019         * modules/unictype/property-zero-width: Likewise.
26020         * modules/unictype/scripts: Likewise.
26021         * modules/unictype/syntax-c-ident: Likewise.
26022         * modules/unictype/syntax-c-whitespace: Likewise.
26023         * modules/unictype/syntax-java-ident: Likewise.
26024         * modules/unictype/syntax-java-whitespace: Likewise.
26025         * modules/unilbrk/u8-possible-linebreaks: Likewise.
26026         * modules/unilbrk/u8-width-linebreaks: Likewise.
26027         * modules/unilbrk/u16-possible-linebreaks: Likewise.
26028         * modules/unilbrk/u16-width-linebreaks: Likewise.
26029         * modules/unilbrk/u32-possible-linebreaks: Likewise.
26030         * modules/unilbrk/u32-width-linebreaks: Likewise.
26031         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
26032         * modules/unilbrk/ulc-width-linebreaks: Likewise.
26033         * modules/uniname/uniname: Likewise.
26034         * modules/uninorm/canonical-decomposition: Likewise.
26035         * modules/uninorm/composition: Likewise.
26036         * modules/uninorm/decomposing-form: Likewise.
26037         * modules/uninorm/decomposition: Likewise.
26038         * modules/uninorm/filter: Likewise.
26039         * modules/uninorm/nfc: Likewise.
26040         * modules/uninorm/nfd: Likewise.
26041         * modules/uninorm/nfkc: Likewise.
26042         * modules/uninorm/nfkd: Likewise.
26043         * modules/uninorm/u8-normalize: Likewise.
26044         * modules/uninorm/u8-normcmp: Likewise.
26045         * modules/uninorm/u8-normcoll: Likewise.
26046         * modules/uninorm/u8-normxfrm: Likewise.
26047         * modules/uninorm/u16-normalize: Likewise.
26048         * modules/uninorm/u16-normcmp: Likewise.
26049         * modules/uninorm/u16-normcoll: Likewise.
26050         * modules/uninorm/u16-normxfrm: Likewise.
26051         * modules/uninorm/u32-normalize: Likewise.
26052         * modules/uninorm/u32-normcmp: Likewise.
26053         * modules/uninorm/u32-normcoll: Likewise.
26054         * modules/uninorm/u32-normxfrm: Likewise.
26055         * modules/unistdio/u8-asnprintf: Likewise.
26056         * modules/unistdio/u8-asprintf: Likewise.
26057         * modules/unistdio/u8-snprintf: Likewise.
26058         * modules/unistdio/u8-sprintf: Likewise.
26059         * modules/unistdio/u8-u8-asnprintf: Likewise.
26060         * modules/unistdio/u8-u8-asprintf: Likewise.
26061         * modules/unistdio/u8-u8-snprintf: Likewise.
26062         * modules/unistdio/u8-u8-sprintf: Likewise.
26063         * modules/unistdio/u8-u8-vasnprintf: Likewise.
26064         * modules/unistdio/u8-u8-vasprintf: Likewise.
26065         * modules/unistdio/u8-u8-vsnprintf: Likewise.
26066         * modules/unistdio/u8-u8-vsprintf: Likewise.
26067         * modules/unistdio/u8-vasnprintf: Likewise.
26068         * modules/unistdio/u8-vasprintf: Likewise.
26069         * modules/unistdio/u8-vsnprintf: Likewise.
26070         * modules/unistdio/u8-vsprintf: Likewise.
26071         * modules/unistdio/u16-asnprintf: Likewise.
26072         * modules/unistdio/u16-asprintf: Likewise.
26073         * modules/unistdio/u16-snprintf: Likewise.
26074         * modules/unistdio/u16-sprintf: Likewise.
26075         * modules/unistdio/u16-u16-asnprintf: Likewise.
26076         * modules/unistdio/u16-u16-asprintf: Likewise.
26077         * modules/unistdio/u16-u16-snprintf: Likewise.
26078         * modules/unistdio/u16-u16-sprintf: Likewise.
26079         * modules/unistdio/u16-u16-vasnprintf: Likewise.
26080         * modules/unistdio/u16-u16-vasprintf: Likewise.
26081         * modules/unistdio/u16-u16-vsnprintf: Likewise.
26082         * modules/unistdio/u16-u16-vsprintf: Likewise.
26083         * modules/unistdio/u16-vasnprintf: Likewise.
26084         * modules/unistdio/u16-vasprintf: Likewise.
26085         * modules/unistdio/u16-vsnprintf: Likewise.
26086         * modules/unistdio/u16-vsprintf: Likewise.
26087         * modules/unistdio/u32-asnprintf: Likewise.
26088         * modules/unistdio/u32-asprintf: Likewise.
26089         * modules/unistdio/u32-snprintf: Likewise.
26090         * modules/unistdio/u32-sprintf: Likewise.
26091         * modules/unistdio/u32-u32-asnprintf: Likewise.
26092         * modules/unistdio/u32-u32-asprintf: Likewise.
26093         * modules/unistdio/u32-u32-snprintf: Likewise.
26094         * modules/unistdio/u32-u32-sprintf: Likewise.
26095         * modules/unistdio/u32-u32-vasnprintf: Likewise.
26096         * modules/unistdio/u32-u32-vasprintf: Likewise.
26097         * modules/unistdio/u32-u32-vsnprintf: Likewise.
26098         * modules/unistdio/u32-u32-vsprintf: Likewise.
26099         * modules/unistdio/u32-vasnprintf: Likewise.
26100         * modules/unistdio/u32-vasprintf: Likewise.
26101         * modules/unistdio/u32-vsnprintf: Likewise.
26102         * modules/unistdio/u32-vsprintf: Likewise.
26103         * modules/unistdio/ulc-asnprintf: Likewise.
26104         * modules/unistdio/ulc-asprintf: Likewise.
26105         * modules/unistdio/ulc-fprintf: Likewise.
26106         * modules/unistdio/ulc-snprintf: Likewise.
26107         * modules/unistdio/ulc-sprintf: Likewise.
26108         * modules/unistdio/ulc-vasnprintf: Likewise.
26109         * modules/unistdio/ulc-vasprintf: Likewise.
26110         * modules/unistdio/ulc-vfprintf: Likewise.
26111         * modules/unistdio/ulc-vsnprintf: Likewise.
26112         * modules/unistdio/ulc-vsprintf: Likewise.
26113         * modules/unistr/u8-check: Likewise.
26114         * modules/unistr/u8-chr: Likewise.
26115         * modules/unistr/u8-cmp: Likewise.
26116         * modules/unistr/u8-cmp2: Likewise.
26117         * modules/unistr/u8-cpy: Likewise.
26118         * modules/unistr/u8-cpy-alloc: Likewise.
26119         * modules/unistr/u8-endswith: Likewise.
26120         * modules/unistr/u8-mblen: Likewise.
26121         * modules/unistr/u8-mbsnlen: Likewise.
26122         * modules/unistr/u8-mbtouc: Likewise.
26123         * modules/unistr/u8-mbtouc-unsafe: Likewise.
26124         * modules/unistr/u8-mbtoucr: Likewise.
26125         * modules/unistr/u8-move: Likewise.
26126         * modules/unistr/u8-next: Likewise.
26127         * modules/unistr/u8-prev: Likewise.
26128         * modules/unistr/u8-set: Likewise.
26129         * modules/unistr/u8-startswith: Likewise.
26130         * modules/unistr/u8-stpcpy: Likewise.
26131         * modules/unistr/u8-stpncpy: Likewise.
26132         * modules/unistr/u8-strcat: Likewise.
26133         * modules/unistr/u8-strchr: Likewise.
26134         * modules/unistr/u8-strcmp: Likewise.
26135         * modules/unistr/u8-strcoll: Likewise.
26136         * modules/unistr/u8-strcpy: Likewise.
26137         * modules/unistr/u8-strcspn: Likewise.
26138         * modules/unistr/u8-strdup: Likewise.
26139         * modules/unistr/u8-strlen: Likewise.
26140         * modules/unistr/u8-strmblen: Likewise.
26141         * modules/unistr/u8-strmbtouc: Likewise.
26142         * modules/unistr/u8-strncat: Likewise.
26143         * modules/unistr/u8-strncmp: Likewise.
26144         * modules/unistr/u8-strncpy: Likewise.
26145         * modules/unistr/u8-strnlen: Likewise.
26146         * modules/unistr/u8-strpbrk: Likewise.
26147         * modules/unistr/u8-strrchr: Likewise.
26148         * modules/unistr/u8-strspn: Likewise.
26149         * modules/unistr/u8-strstr: Likewise.
26150         * modules/unistr/u8-strtok: Likewise.
26151         * modules/unistr/u8-to-u16: Likewise.
26152         * modules/unistr/u8-to-u32: Likewise.
26153         * modules/unistr/u8-uctomb: Likewise.
26154         * modules/unistr/u16-check: Likewise.
26155         * modules/unistr/u16-chr: Likewise.
26156         * modules/unistr/u16-cmp: Likewise.
26157         * modules/unistr/u16-cmp2: Likewise.
26158         * modules/unistr/u16-cpy: Likewise.
26159         * modules/unistr/u16-cpy-alloc: Likewise.
26160         * modules/unistr/u16-endswith: Likewise.
26161         * modules/unistr/u16-mblen: Likewise.
26162         * modules/unistr/u16-mbsnlen: Likewise.
26163         * modules/unistr/u16-mbtouc: Likewise.
26164         * modules/unistr/u16-mbtouc-unsafe: Likewise.
26165         * modules/unistr/u16-mbtoucr: Likewise.
26166         * modules/unistr/u16-move: Likewise.
26167         * modules/unistr/u16-next: Likewise.
26168         * modules/unistr/u16-prev: Likewise.
26169         * modules/unistr/u16-set: Likewise.
26170         * modules/unistr/u16-startswith: Likewise.
26171         * modules/unistr/u16-stpcpy: Likewise.
26172         * modules/unistr/u16-stpncpy: Likewise.
26173         * modules/unistr/u16-strcat: Likewise.
26174         * modules/unistr/u16-strchr: Likewise.
26175         * modules/unistr/u16-strcmp: Likewise.
26176         * modules/unistr/u16-strcoll: Likewise.
26177         * modules/unistr/u16-strcpy: Likewise.
26178         * modules/unistr/u16-strcspn: Likewise.
26179         * modules/unistr/u16-strdup: Likewise.
26180         * modules/unistr/u16-strlen: Likewise.
26181         * modules/unistr/u16-strmblen: Likewise.
26182         * modules/unistr/u16-strmbtouc: Likewise.
26183         * modules/unistr/u16-strncat: Likewise.
26184         * modules/unistr/u16-strncmp: Likewise.
26185         * modules/unistr/u16-strncpy: Likewise.
26186         * modules/unistr/u16-strnlen: Likewise.
26187         * modules/unistr/u16-strpbrk: Likewise.
26188         * modules/unistr/u16-strrchr: Likewise.
26189         * modules/unistr/u16-strspn: Likewise.
26190         * modules/unistr/u16-strstr: Likewise.
26191         * modules/unistr/u16-strtok: Likewise.
26192         * modules/unistr/u16-to-u32: Likewise.
26193         * modules/unistr/u16-to-u8: Likewise.
26194         * modules/unistr/u16-uctomb: Likewise.
26195         * modules/unistr/u32-check: Likewise.
26196         * modules/unistr/u32-chr: Likewise.
26197         * modules/unistr/u32-cmp: Likewise.
26198         * modules/unistr/u32-cmp2: Likewise.
26199         * modules/unistr/u32-cpy: Likewise.
26200         * modules/unistr/u32-cpy-alloc: Likewise.
26201         * modules/unistr/u32-endswith: Likewise.
26202         * modules/unistr/u32-mblen: Likewise.
26203         * modules/unistr/u32-mbsnlen: Likewise.
26204         * modules/unistr/u32-mbtouc: Likewise.
26205         * modules/unistr/u32-mbtouc-unsafe: Likewise.
26206         * modules/unistr/u32-mbtoucr: Likewise.
26207         * modules/unistr/u32-move: Likewise.
26208         * modules/unistr/u32-next: Likewise.
26209         * modules/unistr/u32-prev: Likewise.
26210         * modules/unistr/u32-set: Likewise.
26211         * modules/unistr/u32-startswith: Likewise.
26212         * modules/unistr/u32-stpcpy: Likewise.
26213         * modules/unistr/u32-stpncpy: Likewise.
26214         * modules/unistr/u32-strcat: Likewise.
26215         * modules/unistr/u32-strchr: Likewise.
26216         * modules/unistr/u32-strcmp: Likewise.
26217         * modules/unistr/u32-strcoll: Likewise.
26218         * modules/unistr/u32-strcpy: Likewise.
26219         * modules/unistr/u32-strcspn: Likewise.
26220         * modules/unistr/u32-strdup: Likewise.
26221         * modules/unistr/u32-strlen: Likewise.
26222         * modules/unistr/u32-strmblen: Likewise.
26223         * modules/unistr/u32-strmbtouc: Likewise.
26224         * modules/unistr/u32-strncat: Likewise.
26225         * modules/unistr/u32-strncmp: Likewise.
26226         * modules/unistr/u32-strncpy: Likewise.
26227         * modules/unistr/u32-strnlen: Likewise.
26228         * modules/unistr/u32-strpbrk: Likewise.
26229         * modules/unistr/u32-strrchr: Likewise.
26230         * modules/unistr/u32-strspn: Likewise.
26231         * modules/unistr/u32-strstr: Likewise.
26232         * modules/unistr/u32-strtok: Likewise.
26233         * modules/unistr/u32-to-u16: Likewise.
26234         * modules/unistr/u32-to-u8: Likewise.
26235         * modules/unistr/u32-uctomb: Likewise.
26236         * modules/uniwbrk/u8-wordbreaks: Likewise.
26237         * modules/uniwbrk/u16-wordbreaks: Likewise.
26238         * modules/uniwbrk/u32-wordbreaks: Likewise.
26239         * modules/uniwbrk/ulc-wordbreaks: Likewise.
26240         * modules/uniwbrk/wordbreak-property: Likewise.
26241         * modules/uniwidth/u8-strwidth: Likewise.
26242         * modules/uniwidth/u8-width: Likewise.
26243         * modules/uniwidth/u16-strwidth: Likewise.
26244         * modules/uniwidth/u16-width: Likewise.
26245         * modules/uniwidth/u32-strwidth: Likewise.
26246         * modules/uniwidth/u32-width: Likewise.
26247         * modules/uniwidth/width: Likewise.
26248         * modules/unicase/cased-tests (Makefile.am): Link all test programs
26249         with $(LIBUNISTRING).
26250         * modules/unicase/ignorable-tests: Likewise.
26251         * modules/unicase/locale-language-tests: Likewise.
26252         * modules/unicase/tolower-tests: Likewise.
26253         * modules/unicase/totitle-tests: Likewise.
26254         * modules/unicase/toupper-tests: Likewise.
26255         * modules/unicase/u8-casecmp-tests: Likewise.
26256         * modules/unicase/u8-casecoll-tests: Likewise.
26257         * modules/unicase/u8-casefold-tests: Likewise.
26258         * modules/unicase/u8-is-cased-tests: Likewise.
26259         * modules/unicase/u8-is-casefolded-tests: Likewise.
26260         * modules/unicase/u8-is-lowercase-tests: Likewise.
26261         * modules/unicase/u8-is-titlecase-tests: Likewise.
26262         * modules/unicase/u8-is-uppercase-tests: Likewise.
26263         * modules/unicase/u8-tolower-tests: Likewise.
26264         * modules/unicase/u8-totitle-tests: Likewise.
26265         * modules/unicase/u8-toupper-tests: Likewise.
26266         * modules/unicase/u16-casecmp-tests: Likewise.
26267         * modules/unicase/u16-casecoll-tests: Likewise.
26268         * modules/unicase/u16-casefold-tests: Likewise.
26269         * modules/unicase/u16-is-cased-tests: Likewise.
26270         * modules/unicase/u16-is-casefolded-tests: Likewise.
26271         * modules/unicase/u16-is-lowercase-tests: Likewise.
26272         * modules/unicase/u16-is-titlecase-tests: Likewise.
26273         * modules/unicase/u16-is-uppercase-tests: Likewise.
26274         * modules/unicase/u16-tolower-tests: Likewise.
26275         * modules/unicase/u16-totitle-tests: Likewise.
26276         * modules/unicase/u16-toupper-tests: Likewise.
26277         * modules/unicase/u32-casecmp-tests: Likewise.
26278         * modules/unicase/u32-casecoll-tests: Likewise.
26279         * modules/unicase/u32-casefold-tests: Likewise.
26280         * modules/unicase/u32-is-cased-tests: Likewise.
26281         * modules/unicase/u32-is-casefolded-tests: Likewise.
26282         * modules/unicase/u32-is-lowercase-tests: Likewise.
26283         * modules/unicase/u32-is-titlecase-tests: Likewise.
26284         * modules/unicase/u32-is-uppercase-tests: Likewise.
26285         * modules/unicase/u32-tolower-tests: Likewise.
26286         * modules/unicase/u32-totitle-tests: Likewise.
26287         * modules/unicase/u32-toupper-tests: Likewise.
26288         * modules/unicase/ulc-casecmp-tests: Likewise.
26289         * modules/unicase/ulc-casecoll-tests: Likewise.
26290         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
26291         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
26292         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
26293         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
26294         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
26295         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
26296         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
26297         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
26298         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
26299         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
26300         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
26301         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
26302         * modules/unictype/bidicategory-byname-tests: Likewise.
26303         * modules/unictype/bidicategory-name-tests: Likewise.
26304         * modules/unictype/bidicategory-of-tests: Likewise.
26305         * modules/unictype/bidicategory-test-tests: Likewise.
26306         * modules/unictype/block-list-tests: Likewise.
26307         * modules/unictype/block-of-tests: Likewise.
26308         * modules/unictype/block-test-tests: Likewise.
26309         * modules/unictype/category-C-tests: Likewise.
26310         * modules/unictype/category-Cc-tests: Likewise.
26311         * modules/unictype/category-Cf-tests: Likewise.
26312         * modules/unictype/category-Cn-tests: Likewise.
26313         * modules/unictype/category-Co-tests: Likewise.
26314         * modules/unictype/category-Cs-tests: Likewise.
26315         * modules/unictype/category-L-tests: Likewise.
26316         * modules/unictype/category-Ll-tests: Likewise.
26317         * modules/unictype/category-Lm-tests: Likewise.
26318         * modules/unictype/category-Lo-tests: Likewise.
26319         * modules/unictype/category-Lt-tests: Likewise.
26320         * modules/unictype/category-Lu-tests: Likewise.
26321         * modules/unictype/category-M-tests: Likewise.
26322         * modules/unictype/category-Mc-tests: Likewise.
26323         * modules/unictype/category-Me-tests: Likewise.
26324         * modules/unictype/category-Mn-tests: Likewise.
26325         * modules/unictype/category-N-tests: Likewise.
26326         * modules/unictype/category-Nd-tests: Likewise.
26327         * modules/unictype/category-Nl-tests: Likewise.
26328         * modules/unictype/category-No-tests: Likewise.
26329         * modules/unictype/category-P-tests: Likewise.
26330         * modules/unictype/category-Pc-tests: Likewise.
26331         * modules/unictype/category-Pd-tests: Likewise.
26332         * modules/unictype/category-Pe-tests: Likewise.
26333         * modules/unictype/category-Pf-tests: Likewise.
26334         * modules/unictype/category-Pi-tests: Likewise.
26335         * modules/unictype/category-Po-tests: Likewise.
26336         * modules/unictype/category-Ps-tests: Likewise.
26337         * modules/unictype/category-S-tests: Likewise.
26338         * modules/unictype/category-Sc-tests: Likewise.
26339         * modules/unictype/category-Sk-tests: Likewise.
26340         * modules/unictype/category-Sm-tests: Likewise.
26341         * modules/unictype/category-So-tests: Likewise.
26342         * modules/unictype/category-Z-tests: Likewise.
26343         * modules/unictype/category-Zl-tests: Likewise.
26344         * modules/unictype/category-Zp-tests: Likewise.
26345         * modules/unictype/category-Zs-tests: Likewise.
26346         * modules/unictype/category-and-not-tests: Likewise.
26347         * modules/unictype/category-and-tests: Likewise.
26348         * modules/unictype/category-byname-tests: Likewise.
26349         * modules/unictype/category-name-tests: Likewise.
26350         * modules/unictype/category-none-tests: Likewise.
26351         * modules/unictype/category-of-tests: Likewise.
26352         * modules/unictype/category-or-tests: Likewise.
26353         * modules/unictype/category-test-withtable-tests: Likewise.
26354         * modules/unictype/combining-class-tests: Likewise.
26355         * modules/unictype/ctype-alnum-tests: Likewise.
26356         * modules/unictype/ctype-alpha-tests: Likewise.
26357         * modules/unictype/ctype-blank-tests: Likewise.
26358         * modules/unictype/ctype-cntrl-tests: Likewise.
26359         * modules/unictype/ctype-digit-tests: Likewise.
26360         * modules/unictype/ctype-graph-tests: Likewise.
26361         * modules/unictype/ctype-lower-tests: Likewise.
26362         * modules/unictype/ctype-print-tests: Likewise.
26363         * modules/unictype/ctype-punct-tests: Likewise.
26364         * modules/unictype/ctype-space-tests: Likewise.
26365         * modules/unictype/ctype-upper-tests: Likewise.
26366         * modules/unictype/ctype-xdigit-tests: Likewise.
26367         * modules/unictype/decimal-digit-tests: Likewise.
26368         * modules/unictype/digit-tests: Likewise.
26369         * modules/unictype/mirror-tests: Likewise.
26370         * modules/unictype/numeric-tests: Likewise.
26371         * modules/unictype/property-alphabetic-tests: Likewise.
26372         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
26373         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
26374         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
26375         * modules/unictype/property-bidi-block-separator-tests: Likewise.
26376         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
26377         * modules/unictype/property-bidi-common-separator-tests: Likewise.
26378         * modules/unictype/property-bidi-control-tests: Likewise.
26379         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
26380         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
26381         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
26382         * modules/unictype/property-bidi-european-digit-tests: Likewise.
26383         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
26384         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
26385         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
26386         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
26387         * modules/unictype/property-bidi-pdf-tests: Likewise.
26388         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
26389         * modules/unictype/property-bidi-whitespace-tests: Likewise.
26390         * modules/unictype/property-byname-tests: Likewise.
26391         * modules/unictype/property-combining-tests: Likewise.
26392         * modules/unictype/property-composite-tests: Likewise.
26393         * modules/unictype/property-currency-symbol-tests: Likewise.
26394         * modules/unictype/property-dash-tests: Likewise.
26395         * modules/unictype/property-decimal-digit-tests: Likewise.
26396         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
26397         * modules/unictype/property-deprecated-tests: Likewise.
26398         * modules/unictype/property-diacritic-tests: Likewise.
26399         * modules/unictype/property-extender-tests: Likewise.
26400         * modules/unictype/property-format-control-tests: Likewise.
26401         * modules/unictype/property-grapheme-base-tests: Likewise.
26402         * modules/unictype/property-grapheme-extend-tests: Likewise.
26403         * modules/unictype/property-grapheme-link-tests: Likewise.
26404         * modules/unictype/property-hex-digit-tests: Likewise.
26405         * modules/unictype/property-hyphen-tests: Likewise.
26406         * modules/unictype/property-id-continue-tests: Likewise.
26407         * modules/unictype/property-id-start-tests: Likewise.
26408         * modules/unictype/property-ideographic-tests: Likewise.
26409         * modules/unictype/property-ids-binary-operator-tests: Likewise.
26410         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
26411         * modules/unictype/property-ignorable-control-tests: Likewise.
26412         * modules/unictype/property-iso-control-tests: Likewise.
26413         * modules/unictype/property-join-control-tests: Likewise.
26414         * modules/unictype/property-left-of-pair-tests: Likewise.
26415         * modules/unictype/property-line-separator-tests: Likewise.
26416         * modules/unictype/property-logical-order-exception-tests: Likewise.
26417         * modules/unictype/property-lowercase-tests: Likewise.
26418         * modules/unictype/property-math-tests: Likewise.
26419         * modules/unictype/property-non-break-tests: Likewise.
26420         * modules/unictype/property-not-a-character-tests: Likewise.
26421         * modules/unictype/property-numeric-tests: Likewise.
26422         * modules/unictype/property-other-alphabetic-tests: Likewise.
26423         * modules/unictype/property-other-default-ignorable-code-point-tests:
26424         Likewise.
26425         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
26426         * modules/unictype/property-other-id-continue-tests: Likewise.
26427         * modules/unictype/property-other-id-start-tests: Likewise.
26428         * modules/unictype/property-other-lowercase-tests: Likewise.
26429         * modules/unictype/property-other-math-tests: Likewise.
26430         * modules/unictype/property-other-uppercase-tests: Likewise.
26431         * modules/unictype/property-paired-punctuation-tests: Likewise.
26432         * modules/unictype/property-paragraph-separator-tests: Likewise.
26433         * modules/unictype/property-pattern-syntax-tests: Likewise.
26434         * modules/unictype/property-pattern-white-space-tests: Likewise.
26435         * modules/unictype/property-private-use-tests: Likewise.
26436         * modules/unictype/property-punctuation-tests: Likewise.
26437         * modules/unictype/property-quotation-mark-tests: Likewise.
26438         * modules/unictype/property-radical-tests: Likewise.
26439         * modules/unictype/property-sentence-terminal-tests: Likewise.
26440         * modules/unictype/property-soft-dotted-tests: Likewise.
26441         * modules/unictype/property-space-tests: Likewise.
26442         * modules/unictype/property-terminal-punctuation-tests: Likewise.
26443         * modules/unictype/property-test-tests: Likewise.
26444         * modules/unictype/property-titlecase-tests: Likewise.
26445         * modules/unictype/property-unassigned-code-value-tests: Likewise.
26446         * modules/unictype/property-unified-ideograph-tests: Likewise.
26447         * modules/unictype/property-uppercase-tests: Likewise.
26448         * modules/unictype/property-variation-selector-tests: Likewise.
26449         * modules/unictype/property-white-space-tests: Likewise.
26450         * modules/unictype/property-xid-continue-tests: Likewise.
26451         * modules/unictype/property-xid-start-tests: Likewise.
26452         * modules/unictype/property-zero-width-tests: Likewise.
26453         * modules/unictype/scripts-tests: Likewise.
26454         * modules/unictype/syntax-c-ident-tests: Likewise.
26455         * modules/unictype/syntax-c-whitespace-tests: Likewise.
26456         * modules/unictype/syntax-java-ident-tests: Likewise.
26457         * modules/unictype/syntax-java-whitespace-tests: Likewise.
26458         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
26459         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
26460         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
26461         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
26462         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
26463         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
26464         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
26465         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
26466         * modules/uniname/uniname-tests: Likewise.
26467         * modules/uninorm/canonical-decomposition-tests: Likewise.
26468         * modules/uninorm/compat-decomposition-tests: Likewise.
26469         * modules/uninorm/composition-tests: Likewise.
26470         * modules/uninorm/decomposing-form-tests: Likewise.
26471         * modules/uninorm/decomposition-tests: Likewise.
26472         * modules/uninorm/filter-tests: Likewise.
26473         * modules/uninorm/nfc-tests: Likewise.
26474         * modules/uninorm/nfd-tests: Likewise.
26475         * modules/uninorm/nfkc-tests: Likewise.
26476         * modules/uninorm/nfkd-tests: Likewise.
26477         * modules/uninorm/u8-normcmp-tests: Likewise.
26478         * modules/uninorm/u8-normcoll-tests: Likewise.
26479         * modules/uninorm/u16-normcmp-tests: Likewise.
26480         * modules/uninorm/u16-normcoll-tests: Likewise.
26481         * modules/uninorm/u32-normcmp-tests: Likewise.
26482         * modules/uninorm/u32-normcoll-tests: Likewise.
26483         * modules/unistdio/u8-asnprintf-tests: Likewise.
26484         * modules/unistdio/u8-vasnprintf-tests: Likewise.
26485         * modules/unistdio/u8-vasprintf-tests: Likewise.
26486         * modules/unistdio/u8-vsnprintf-tests: Likewise.
26487         * modules/unistdio/u8-vsprintf-tests: Likewise.
26488         * modules/unistdio/u16-asnprintf-tests: Likewise.
26489         * modules/unistdio/u16-vasnprintf-tests: Likewise.
26490         * modules/unistdio/u16-vasprintf-tests: Likewise.
26491         * modules/unistdio/u16-vsnprintf-tests: Likewise.
26492         * modules/unistdio/u16-vsprintf-tests: Likewise.
26493         * modules/unistdio/u32-asnprintf-tests: Likewise.
26494         * modules/unistdio/u32-vasnprintf-tests: Likewise.
26495         * modules/unistdio/u32-vasprintf-tests: Likewise.
26496         * modules/unistdio/u32-vsnprintf-tests: Likewise.
26497         * modules/unistdio/u32-vsprintf-tests: Likewise.
26498         * modules/unistdio/ulc-asnprintf-tests: Likewise.
26499         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
26500         * modules/unistdio/ulc-vasprintf-tests: Likewise.
26501         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
26502         * modules/unistdio/ulc-vsprintf-tests: Likewise.
26503         * modules/unistr/u8-check-tests: Likewise.
26504         * modules/unistr/u8-chr-tests: Likewise.
26505         * modules/unistr/u8-cmp-tests: Likewise.
26506         * modules/unistr/u8-cmp2-tests: Likewise.
26507         * modules/unistr/u8-cpy-alloc-tests: Likewise.
26508         * modules/unistr/u8-cpy-tests: Likewise.
26509         * modules/unistr/u8-mblen-tests: Likewise.
26510         * modules/unistr/u8-mbsnlen-tests: Likewise.
26511         * modules/unistr/u8-mbtouc-tests: Likewise.
26512         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
26513         * modules/unistr/u8-mbtoucr-tests: Likewise.
26514         * modules/unistr/u8-move-tests: Likewise.
26515         * modules/unistr/u8-next-tests: Likewise.
26516         * modules/unistr/u8-prev-tests: Likewise.
26517         * modules/unistr/u8-set-tests: Likewise.
26518         * modules/unistr/u8-stpcpy-tests: Likewise.
26519         * modules/unistr/u8-stpncpy-tests: Likewise.
26520         * modules/unistr/u8-strcat-tests: Likewise.
26521         * modules/unistr/u8-strcmp-tests: Likewise.
26522         * modules/unistr/u8-strcoll-tests: Likewise.
26523         * modules/unistr/u8-strcpy-tests: Likewise.
26524         * modules/unistr/u8-strdup-tests: Likewise.
26525         * modules/unistr/u8-strlen-tests: Likewise.
26526         * modules/unistr/u8-strmblen-tests: Likewise.
26527         * modules/unistr/u8-strmbtouc-tests: Likewise.
26528         * modules/unistr/u8-strncat-tests: Likewise.
26529         * modules/unistr/u8-strncmp-tests: Likewise.
26530         * modules/unistr/u8-strncpy-tests: Likewise.
26531         * modules/unistr/u8-strnlen-tests: Likewise.
26532         * modules/unistr/u8-to-u16-tests: Likewise.
26533         * modules/unistr/u8-to-u32-tests: Likewise.
26534         * modules/unistr/u8-uctomb-tests: Likewise.
26535         * modules/unistr/u16-check-tests: Likewise.
26536         * modules/unistr/u16-chr-tests: Likewise.
26537         * modules/unistr/u16-cmp-tests: Likewise.
26538         * modules/unistr/u16-cmp2-tests: Likewise.
26539         * modules/unistr/u16-cpy-alloc-tests: Likewise.
26540         * modules/unistr/u16-cpy-tests: Likewise.
26541         * modules/unistr/u16-mblen-tests: Likewise.
26542         * modules/unistr/u16-mbsnlen-tests: Likewise.
26543         * modules/unistr/u16-mbtouc-tests: Likewise.
26544         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
26545         * modules/unistr/u16-mbtoucr-tests: Likewise.
26546         * modules/unistr/u16-move-tests: Likewise.
26547         * modules/unistr/u16-next-tests: Likewise.
26548         * modules/unistr/u16-prev-tests: Likewise.
26549         * modules/unistr/u16-set-tests: Likewise.
26550         * modules/unistr/u16-stpcpy-tests: Likewise.
26551         * modules/unistr/u16-stpncpy-tests: Likewise.
26552         * modules/unistr/u16-strcat-tests: Likewise.
26553         * modules/unistr/u16-strcmp-tests: Likewise.
26554         * modules/unistr/u16-strcoll-tests: Likewise.
26555         * modules/unistr/u16-strcpy-tests: Likewise.
26556         * modules/unistr/u16-strdup-tests: Likewise.
26557         * modules/unistr/u16-strlen-tests: Likewise.
26558         * modules/unistr/u16-strmblen-tests: Likewise.
26559         * modules/unistr/u16-strmbtouc-tests: Likewise.
26560         * modules/unistr/u16-strncat-tests: Likewise.
26561         * modules/unistr/u16-strncmp-tests: Likewise.
26562         * modules/unistr/u16-strncpy-tests: Likewise.
26563         * modules/unistr/u16-strnlen-tests: Likewise.
26564         * modules/unistr/u16-to-u32-tests: Likewise.
26565         * modules/unistr/u16-to-u8-tests: Likewise.
26566         * modules/unistr/u16-uctomb-tests: Likewise.
26567         * modules/unistr/u32-check-tests: Likewise.
26568         * modules/unistr/u32-chr-tests: Likewise.
26569         * modules/unistr/u32-cmp-tests: Likewise.
26570         * modules/unistr/u32-cmp2-tests: Likewise.
26571         * modules/unistr/u32-cpy-alloc-tests: Likewise.
26572         * modules/unistr/u32-cpy-tests: Likewise.
26573         * modules/unistr/u32-mblen-tests: Likewise.
26574         * modules/unistr/u32-mbsnlen-tests: Likewise.
26575         * modules/unistr/u32-mbtouc-tests: Likewise.
26576         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
26577         * modules/unistr/u32-mbtoucr-tests: Likewise.
26578         * modules/unistr/u32-move-tests: Likewise.
26579         * modules/unistr/u32-next-tests: Likewise.
26580         * modules/unistr/u32-prev-tests: Likewise.
26581         * modules/unistr/u32-set-tests: Likewise.
26582         * modules/unistr/u32-stpcpy-tests: Likewise.
26583         * modules/unistr/u32-stpncpy-tests: Likewise.
26584         * modules/unistr/u32-strcat-tests: Likewise.
26585         * modules/unistr/u32-strcmp-tests: Likewise.
26586         * modules/unistr/u32-strcoll-tests: Likewise.
26587         * modules/unistr/u32-strcpy-tests: Likewise.
26588         * modules/unistr/u32-strdup-tests: Likewise.
26589         * modules/unistr/u32-strlen-tests: Likewise.
26590         * modules/unistr/u32-strmblen-tests: Likewise.
26591         * modules/unistr/u32-strmbtouc-tests: Likewise.
26592         * modules/unistr/u32-strncat-tests: Likewise.
26593         * modules/unistr/u32-strncmp-tests: Likewise.
26594         * modules/unistr/u32-strncpy-tests: Likewise.
26595         * modules/unistr/u32-strnlen-tests: Likewise.
26596         * modules/unistr/u32-to-u16-tests: Likewise.
26597         * modules/unistr/u32-to-u8-tests: Likewise.
26598         * modules/unistr/u32-uctomb-tests: Likewise.
26599         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
26600         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
26601         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
26602         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
26603         * modules/uniwidth/u8-strwidth-tests: Likewise.
26604         * modules/uniwidth/u8-width-tests: Likewise.
26605         * modules/uniwidth/u16-strwidth-tests: Likewise.
26606         * modules/uniwidth/u16-width-tests: Likewise.
26607         * modules/uniwidth/u32-strwidth-tests: Likewise.
26608         * modules/uniwidth/u32-width-tests: Likewise.
26609         * modules/uniwidth/width-tests: Likewise.
26610
26611 2010-05-18  Richard Jones  <rjones@redhat.com>
26612
26613         doc: users.txt: list hivex
26614         * users.txt: Add hivex.
26615
26616 2010-05-18  Richard Jones  <rjones@redhat.com>
26617
26618         doc: users.txt: list febootstrap
26619         * users.txt: Add febootstrap.
26620
26621 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
26622
26623         bootstrap: fix an error when gnulib is not used as a git submodule
26624         * build-aux/bootstrap (gnulib_path): If its length is zero then
26625         assign "gnulib" to it.
26626         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
26627
26628 2010-05-16  Bruno Haible  <bruno@clisp.org>
26629
26630         Avoid autoconf warnings about AM_ICONV.
26631         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
26632         2.64.
26633
26634 2010-05-16  Bruno Haible  <bruno@clisp.org>
26635
26636         absolute-header: Make the macro usable in more situations.
26637         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
26638         from gl_ABSOLUTE_HEADER.
26639         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
26640
26641 2010-05-16  James Youngman  <jay@gnu.org>
26642
26643         doc: update users.txt
26644         * users.txt: Add CSSC.
26645
26646 2010-05-16  Jim Meyering  <meyering@redhat.com>
26647
26648         init.sh: fix an error in the previous change; add more comments
26649         * tests/init.sh: Compare exit code in loop against 9, not 2.
26650         Patch by Bruno Haible.
26651         Make the two tests more similar by adding an empty "then" clause.
26652         Add comments.
26653
26654         init.sh: avoid unnecessary shell re-exec
26655         * tests/init.sh: Improve the re-exec-required check to first test the
26656         current shell.  If it passes the test, do not search for a shell that
26657         does pass, and do not re-exec.  This test is particularly contorted to
26658         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
26659         of $(...) evokes a syntax error and causes immediate shell exit with
26660         status 2.  Bruno Haible reported that the re-exec made it impossible
26661         to single-step through any init.sh-using script.
26662
26663 2010-05-16  Bruno Haible  <bruno@clisp.org>
26664
26665         Fix collision between gnulib's and libintl's printf replacements.
26666         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
26667         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
26668         (printf): When using GNU C, map the __printf__ function to rpl_printf
26669         via __asm__. When not using GNU C, define rpl_printf instead of
26670         __printf__.
26671         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
26672         commit.
26673         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
26674         commit.
26675         * m4/asm-underscore.m4: New file.
26676         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
26677         * modules/stdio (Files): Add m4/asm-underscore.m4.
26678         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
26679         Reported by Ben Pfaff.
26680
26681 2010-05-16  Bruno Haible  <bruno@clisp.org>
26682
26683         verify: Avoid skipping the test on openSUSE 11.0.
26684         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
26685
26686 2010-05-13  Bruno Haible  <bruno@clisp.org>
26687
26688         Avoid useless warnings from G++.
26689         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
26690         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
26691         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26692
26693 2010-05-11  Jim Meyering  <meyering@redhat.com>
26694
26695         maint.mk: tweak preceding change
26696         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
26697         regexps tighter by anchoring at EOL, and make the new group "shy"
26698         for slightly decreased overhead.
26699
26700 2010-05-11  Eric Blake  <eblake@redhat.com>
26701
26702         maint.mk: gnulib doesn't guarantee NSIG
26703         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
26704
26705 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26706
26707         test-pwrite.c: Remove unused variable declaration.
26708         * tests/test-pwrite.c (main): Remove read_buf declaration.
26709
26710         Remove useless test-pwrite.sh file.
26711         * tests/test-pwrite.sh: Delete file.
26712         * modules/pwrite-tests: Remove references.
26713         Reported by Bruno Haible.
26714
26715 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26716
26717         init.sh: fix a typo
26718         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
26719
26720 2010-05-10  Jim Meyering  <meyering@redhat.com>
26721
26722         maint.mk: avoid using a temporary file in the always-defined-macros check
26723         * top/maint.mk (.re-defmac): Remove rule.
26724         (gl_trap_): Remove definition.
26725         (sc_prohibit_always-defined_macros): Rewrite not to create and
26726         depend on a temporary file.  Instead, depend on GNU grep's ability
26727         to read a list of regular expressions from stdin when given "-f -".
26728
26729 2010-05-09  Bruno Haible  <bruno@clisp.org>
26730
26731         Update to GNU gettext 0.18, part 1.
26732         * m4/gettext.m4: Update to GNU gettext 0.18.
26733         * m4/intl.m4: Likewise.
26734         * m4/po.m4: Likewise.
26735         * modules/gettext (Files): Add m4/fcntl-o.m4.
26736         (configure.ac): Require gettext infrastructure from version 0.18.
26737
26738 2010-05-09  Jim Meyering  <meyering@redhat.com>
26739
26740         init.sh: enable MALLOC_PERTURB_
26741         * tests/init.sh: Enable glibc's malloc-perturbing option.
26742
26743         maint.mk: improve sc_cross_check_PATH_usage_in_tests
26744         With my recent change in init.sh from the two-line form:
26745             -#   : ${srcdir=.}
26746             -#   . "$srcdir/init.sh"; path_prepend_ .
26747             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
26748         I noticed that using the one-line form would cause this test
26749         to fail with a false-positive, or to stop working altogether,
26750         depending on whether help-version changed or all the tests did.
26751         * top/maint.mk (_hv_regex): Remove this definition.
26752         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
26753         (_hv_regex_strong): Use a stronger regex to check for conformance.
26754         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
26755         Give a separate diagnostic for lack of conforming use.
26756
26757         maint.mk: prohibit definition of symbols defined by gnulib
26758         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
26759         definition of symbols defined by gnulib.
26760
26761 2010-05-09  Bruno Haible  <bruno@clisp.org>
26762
26763         acl: Avoid test failure on Cygwin-hosted mingw.
26764         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
26765
26766 2010-05-09  Bruno Haible  <bruno@clisp.org>
26767
26768         error: Use system's fcntl function.
26769         * lib/error.c (fcntl): Undefine.
26770
26771 2010-05-09  Jim Meyering  <meyering@redhat.com>
26772
26773         verify: adjust formatting to be more consistent
26774         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
26775         argument-list '('s, and after one comma.
26776
26777 2010-05-09  Bruno Haible  <bruno@clisp.org>
26778
26779         error: More reliable output on mingw.
26780         * lib/error.c: Include <windows.h>.
26781         (is_open): New function.
26782         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
26783         defined.
26784
26785 2010-05-09  Bruno Haible  <bruno@clisp.org>
26786
26787         vasnprintf: Fix syntax errors in libintl build on mingw.
26788         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
26789         pad_ourselves and prec_ourselves after use.
26790
26791 2010-05-08  Bruno Haible  <bruno@clisp.org>
26792
26793         * lib/config.charset: Update comments for Cygwin 1.7.
26794         * lib/localcharset.c: Likewise.
26795
26796 2010-05-07  Jim Meyering  <meyering@redhat.com>
26797
26798         init.sh: improve comments
26799         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
26800         . "${srcdir=.}/init.sh"; path_prepend_ .
26801         Add a note about path_prepend_ and the alternative of using
26802         TESTS_ENVIRONMENT.
26803
26804 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26805
26806         exclude: Unescape hashed patterns in wildcard mode.
26807         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26808         to the hash list.
26809         * tests/test-exclude8.sh: New test case.
26810         * modules/exclude-tests: Add new test.
26811
26812 2010-05-05  Eric Blake  <eblake@redhat.com>
26813
26814         verify: automate tests
26815         * modules/verify-tests: New module.
26816         * tests/test-verify.sh: New file.
26817         * tests/test-verify.c: Guard each negative test with a unique id.
26818         Also avoid warning about unused left hand of comma expressions.
26819
26820 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26821
26822         Further improvements to verify.h, suggested by Eric Blake.
26823         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26824         the GL_* versions, to avoid collision with OpenGL.
26825         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26826         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26827         than testing merely whether it's defined.
26828
26829         Modify verify.h to pacify gcc -Wredundant_decls.
26830         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26831         These use the prefix "GL_" since they're likely to be useful elsewhere.
26832         We may need to break them out into a different .h file.
26833         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26834         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26835         of verify_function__.
26836
26837 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26838
26839         Tests for module pwrite.
26840         * modules/pwrite-tests: New file.
26841         * tests/test-pwrite.sh: New file.
26842         * tests/test-pwrite.c: New file.
26843
26844         New module pwrite.
26845         * lib/unistd.in.h (pwrite): New declaration.
26846         * lib/pwrite.c: New file, from glibc with modifications.
26847         * m4/pwrite.m4: New file.
26848         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26849         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26850         REPLACE_PWRITE.
26851         * modules/pwrite: New file.
26852         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26853         REPLACE_PWRITE.
26854         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26855         * doc/posix-functions/pwrite.texi: Mention the new module.
26856
26857 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26858
26859         pread: Update documentation.
26860         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26861
26862 2010-05-04  Eric Blake  <eblake@redhat.com>
26863
26864         docs: update cygwin progress
26865         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26866         this bug.
26867         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26868         Added in cygwin 1.7.2.
26869         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26870         Likewise.
26871         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26872         Likewise.
26873         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26874         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26875         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26876         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26877         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26878         Mention nproc module.
26879         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26880         bug in cygwin 1.7.5 addition.
26881         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26882         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26883         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26884         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26885         1.7.5.
26886         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26887         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26888         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26889         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26890         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26891         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26892         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26893         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26894         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26895         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26896         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26897         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26898         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26899         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26900         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26901         Likewise.
26902         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26903         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26904         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26905         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26906         Likewise.
26907         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26908         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26909         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26910         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26911         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26912         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26913         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26914         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26915         Likewise.
26916         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26917         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26918         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26919         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26920         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26921         Likewise.
26922         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26923         Likewise.
26924         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26925         Likewise.
26926         * doc/glibc-functions/xdrrec_endofrecord.texi
26927         (xdrrec_endofrecord): Likewise.
26928         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26929         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26930         Likewise.
26931         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26932         Likewise.
26933
26934 2010-05-04  Jim Meyering  <meyering@redhat.com>
26935
26936         gendocs.sh: make its "-s FILE" option more useful
26937         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26938         $PACKAGE to reflect the probably-different basename of "FILE".
26939
26940 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26941
26942         bootstrap: don't ignore download_po_files failure
26943         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26944         failure.
26945
26946 2010-05-03  Jim Meyering  <meyering@redhat.com>
26947
26948         maint.mk: allow to pass options to gendocs.sh
26949         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26950         (gendocs_options_): New overridable variable.
26951
26952         gnu-web-doc-update: don't ignore configure or build failure
26953         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26954
26955         announce-gen: backslash-escape '@'s in --help output
26956         * build-aux/announce-gen: Fix syntax errors.
26957
26958         maint.mk, announce-gen: allow project-specific announcement mail headers
26959         * top/maint.mk (translation_project_): Define default.
26960         (announcement_Cc_, announcement_mail_headers_): Likewise.
26961         (announcement): Invoke announce-gen with new --mail-headers option.
26962         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26963
26964         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26965         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26966         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26967         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26968         line in the "err2" output file when running "make check" in verbose
26969         mode (i.e., with set -x enabled).
26970
26971 2010-05-03  Bruno Haible  <bruno@clisp.org>
26972
26973         wctob: Fix for weird platforms.
26974         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26975         argument value.
26976
26977 2010-05-03  Jim Meyering  <meyering@redhat.com>
26978
26979         maint.mk: prohibit unwarranted use of <strings.h>
26980         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26981         strings.h in a file that does not also use strcasecmp, strncasecmp,
26982         ffs or ffsll.
26983
26984         maint.mk: remove obsolete comments
26985         * top/maint.mk: Remove stale, commented-out rules.
26986
26987 2010-05-02  Bruno Haible  <bruno@clisp.org>
26988
26989         wcwidth: Declare also when it's aliased.
26990         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26991         macro.
26992
26993 2010-05-02  Bruno Haible  <bruno@clisp.org>
26994
26995         Fix regression from 2010-04-25.
26996         * gnulib-tool (func_modules_transitive_closure): Check the status of
26997         all modules, not only of the tests that are of the form foo-tests where
26998         foo is a module.
26999
27000 2010-05-02  Bruno Haible  <bruno@clisp.org>
27001
27002         wctob: Work around nasty Cygwin 1.7.2 bug.
27003         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
27004         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
27005
27006 2010-05-01  Bruno Haible  <bruno@clisp.org>
27007
27008         fpurge: Sharper test.
27009         * tests/test-fpurge.c (main): Add one more ftell check.
27010         * modules/fpurge-tests (Depends-on): Add ftell.
27011         Suggested by Eric Blake.
27012
27013 2010-05-01  Bruno Haible  <bruno@clisp.org>
27014
27015         ftello: Another test.
27016         * tests/test-ftello3.c: New file.
27017         * modules/ftello-tests (Files): Add it.
27018         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27019         MOSTLYCLEANFILES.
27020
27021         ftell: Another test.
27022         * tests/test-ftell3.c: New file.
27023         * modules/ftell-tests (Files): Add it.
27024         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27025         MOSTLYCLEANFILES.
27026
27027 2010-05-01  Bruno Haible  <bruno@clisp.org>
27028
27029         ftell, ftello: Work around Solaris bug.
27030         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
27031         * lib/ftello.c: Include stdio-impl.h.
27032         (ftello): On Solaris, when _IOWRT is set, compute the result without
27033         looking at _IOREAD.
27034         * modules/ftello (Files): Add lib/stdio-impl.h.
27035         * doc/posix-functions/ftell.texi: Mention Solaris bug.
27036         * doc/posix-functions/ftello.texi: Likewise.
27037         Reported by Eric Blake.
27038
27039 2010-05-01  Bruno Haible  <bruno@clisp.org>
27040
27041         freading: Adapt to special meaning of _IOREAD flag on Solaris.
27042         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
27043         the _IOWRT flag is also set.
27044
27045 2010-05-01  Bruno Haible  <bruno@clisp.org>
27046
27047         Fix doc about a HP-UX stdio bug.
27048         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
27049         * doc/posix-functions/ftello.texi: Likewise.
27050
27051 2010-05-01  Bruno Haible  <bruno@clisp.org>
27052
27053         lseek test: Fix failure on Solaris.
27054         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
27055         output.
27056
27057 2010-04-30  Jim Meyering  <meyering@redhat.com>
27058
27059         bootstrap: don't ignore failure to generate po*/Makevars
27060         * build-aux/bootstrap (with_gettext): Don't ignore failure
27061         to create po/Makevars or runtime-po/Makevars.
27062
27063 2010-04-29  Eric Blake  <eblake@redhat.com>
27064
27065         headers: relax license to LGPLv2+
27066         * modules/fcntl-h (License): Relax license.
27067         * modules/getopt-posix (License): Likewise.
27068         * modules/locale (License): Likewise.
27069         * modules/math (License): Likewise.
27070         * modules/pty (License): Likewise.
27071         * modules/sched (License): Likewise.
27072         * modules/search (License): Likewise.
27073         * modules/spawn (License): Likewise.
27074         * modules/stdarg (License): Likewise.
27075         * modules/sysexits (License): Likewise.
27076
27077 2010-04-29  Jim Meyering  <meyering@redhat.com>
27078
27079         inttypes: relax license to LGPLv2+
27080         * modules/inttypes (License): Relax license.
27081
27082 2010-04-29  Simon Josefsson  <simon@josefsson.org>
27083
27084         * top/maint.mk (indent): Run twice to produce idempotent results.
27085
27086 2010-04-28  Bruno Haible  <bruno@clisp.org>
27087
27088         getdate: Generate getdate.c in the source directory.
27089         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
27090         MOSTLYCLEANFILES.
27091         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
27092
27093 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
27094
27095         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
27096         is not declared as a const *; avoid warnings in that case.
27097
27098 2010-04-28  Eric Blake  <eblake@redhat.com>
27099
27100         canonicalize-lgpl: avoid compiler warning
27101         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
27102         declaration' / 'extraneous semicolon' warning with some compilers.
27103         Reported by Andreas Gruenbacher.
27104
27105 2010-04-28  Jim Meyering  <meyering@redhat.com>
27106
27107         init.sh: ensure a more reliable exit status when exiting via trap
27108         * tests/init.sh (setup_): Don't rely on $? in signal handler.
27109         Inspired by patches from Dmitry V. Levin.
27110         Also trap on signal 3 (SIGQUIT).
27111
27112 2010-04-27  Bruno Haible  <bruno@clisp.org>
27113
27114         Update doc about utimes().
27115         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
27116         'utimens' module.
27117         Reported by Andreas Gruenbacher <agruen@suse.de>.
27118
27119 2010-04-27  Eric Blake  <eblake@redhat.com>
27120
27121         full-read, full-write: relax license
27122         * modules/full-read (License): Drop to LGPLv2+.
27123         * modules/full-write (License): Likewise.
27124         * modules/safe-read (License): Likewise.
27125         * modules/safe-write (License): Likewise.
27126
27127         pthread: mention library for linking
27128         * modules/pthread (Link): Mention $(LIB_PTHREAD).
27129
27130 2010-04-27  Jim Meyering  <meyering@redhat.com>
27131
27132         maint.mk: fix a bug introduced in last change
27133         * top/maint.mk (gl_assured_headers_): Now that all names are on
27134         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
27135         is not anchored to end of word, it should be adequate.
27136
27137         maint.mk: avoid side-effect in latest syntax-check
27138         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
27139         to run commands via $(shell...), and hence to incur cost only when
27140         the new rule is actually run.
27141
27142         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
27143         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
27144         and use that to create a regexp used to detect all #if HAVE_..._H uses.
27145         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
27146         (gl_assured_headers_, az_, AZ_): Define.
27147         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
27148
27149 2010-04-26  Jim Meyering  <jim@meyering.net>
27150             Bruno Haible  <bruno@clisp.org>
27151
27152         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
27153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
27154         Prompted by an exchange with Gilles Espinasse.
27155
27156 2010-04-26  Jim Meyering  <meyering@redhat.com>
27157
27158         git-version-gen: aesthetic tweak
27159         * build-aux/git-version-gen: Use "$nl" rather than a literal,
27160         so that the command remains on a single line.
27161
27162 2010-04-26  Eric Blake  <eblake@redhat.com>
27163
27164         git-version-gen: allow use on EBCDIC hosts
27165         * build-aux/git-version-gen (dirty): Use literal rather than tying
27166         ourselves to ascii.
27167         Reported by Steve Goetze.
27168
27169 2010-04-25  Bruno Haible  <bruno@clisp.org>
27170
27171         netdb: Add support for GNULIB_POSIXCHECK.
27172         * lib/netdb.in.h: Include warn-on-use.h.
27173         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
27174         functions are used when GNULIB_POSIXCHECK is defined and the
27175         getaddrinfo module is not in use.
27176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
27177         freeaddrinfo, gai_strerror, getnameinfo are declared.
27178         * modules/netdb (Depends-on): Add warn-on-use.
27179         (Makefile.am): Include warn-on-use.h in netdb.h.
27180
27181 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
27182
27183         build: avoid "make check" failure without .git/ directory
27184         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
27185         there is no .git/ directory.
27186
27187 2010-04-25  Bruno Haible  <bruno@clisp.org>
27188
27189         ptsname: Fix misuse of ttyname_r.
27190         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
27191         of errno.
27192
27193 2010-04-25  Bruno Haible  <bruno@clisp.org>
27194
27195         ttyname_r: Make it work on Solaris 10.
27196         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
27197         if the system function has the POSIX declaration. Test whether the
27198         function fails if the buffer is less than 128 bytes large.
27199         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
27200         system's ttyname_r function. Provide a reasonably large buffer.
27201         * modules/ttyname_r (Depends-on): Add extensions.
27202         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
27203
27204 2010-04-25  Bruno Haible  <bruno@clisp.org>
27205
27206         Use the 'extensions' module for some more functions on Solaris.
27207         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
27208         module.
27209         * doc/posix-functions/ctime_r.texi: Likewise.
27210         * doc/posix-functions/getgrgid_r.texi: Likewise.
27211         * doc/posix-functions/getgrnam_r.texi: Likewise.
27212         * doc/posix-functions/getpwnam_r.texi: Likewise.
27213         * doc/posix-functions/getpwuid_r.texi: Likewise.
27214         * doc/posix-functions/readdir_r.texi: Likewise.
27215         * doc/posix-functions/sigwait.texi: Likewise.
27216         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
27217         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
27218
27219 2010-04-25  Bruno Haible  <bruno@clisp.org>
27220
27221         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
27222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
27223         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
27224         * lib/ttyname_r.c: Include <limits.h>.
27225         (ttyname_r): Define using the system's ttyname_r function, if it exists
27226         and not on Solaris.
27227         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
27228         set.
27229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
27230         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
27231         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
27232         Reported by Simon Josefsson.
27233
27234 2010-04-25  Bruno Haible  <bruno@clisp.org>
27235
27236         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
27237         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
27238         * doc/posix-functions/ctime_r.texi: Likewise.
27239         * doc/posix-functions/getgrgid_r.texi: Likewise.
27240         * doc/posix-functions/getgrnam_r.texi: Likewise.
27241         * doc/posix-functions/getlogin_r.texi: Likewise.
27242         * doc/posix-functions/getpwnam_r.texi: Likewise.
27243         * doc/posix-functions/getpwuid_r.texi: Likewise.
27244         * doc/posix-functions/readdir_r.texi: Likewise.
27245         * doc/posix-functions/sigwait.texi: Likewise.
27246         * doc/posix-functions/ttyname_r.texi: Likewise.
27247         Reported by Simon Josefsson.
27248
27249 2010-04-25  Bruno Haible  <bruno@clisp.org>
27250
27251         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
27252         * gnulib-tool (func_usage): Document that --with-*-tests options apply
27253         also to --create-testdir.
27254         (func_acceptable): Don't consider the status of *-tests modules here.
27255         (func_modules_transitive_closure): Consider it here, before including a
27256         test module.
27257         (func_import, func_create_testdir): Set inc_all_direct_tests,
27258         inc_all_indirect_tests.
27259         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
27260         --create-testdir and --create-megatestdir.
27261
27262 2010-04-25  Bruno Haible  <bruno@clisp.org>
27263
27264         gnulib-tool: Add --without-*-tests options.
27265         * gnulib-tool (func_usage): Document the --without-*-tests options.
27266         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
27267         excl_unportable_tests): New variables.
27268         Fail if they are specified with --import or --update.
27269         (func_acceptable): Respect the excl_*_tests variables.
27270         (func_import): Set the excl_*_tests variables to empty.
27271
27272 2010-04-25  Simon Josefsson  <simon@josefsson.org>
27273             Bruno Haible  <bruno@clisp.org>
27274
27275         Work around a MacOS X 10.4 bug with openpty.
27276         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
27277         * tests/test-openpty.c (main): Close the master side explicitly.
27278
27279 2010-04-25  Bruno Haible  <bruno@clisp.org>
27280
27281         strnlen: Fix a C++ test error on MacOS X and Solaris.
27282         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
27283         the function is not declared.
27284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
27285         Simon Josefsson.
27286
27287 2010-04-24  Bruno Haible  <bruno@clisp.org>
27288
27289         Avoid a gcc warning.
27290         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
27291         of correct type for %08lx directive.
27292         Reported by Eric Blake.
27293
27294 2010-04-24  Bruno Haible  <bruno@clisp.org>
27295
27296         vasnprintf: Correct errno value in case of out-of-memory.
27297         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
27298         or sprintf. Use the errno value from SNPRINTF or sprintf.
27299         Reported by Ian Beckwith <ianb@erislabs.net>.
27300
27301 2010-04-24  Bruno Haible  <bruno@clisp.org>
27302
27303         ansi-c++-opt: Find correct compiler when cross-compiling.
27304         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
27305         AC_CHECK_PROGS.
27306         Reported by Simon Josefsson.
27307
27308 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
27309
27310         vc-list-files: Add support for subversion
27311         * build-aux/vc-list-files: Use "svn list" to generate the list of
27312         files controlled by subversion.
27313
27314 2010-04-23  Jim Meyering  <meyering@redhat.com>
27315
27316         vc-list-files tests: convert to use init.sh
27317         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
27318         path_prepend_.
27319         Use Exit, not exit.
27320         Use skip_ rather than open coding it.
27321         Remove trap set-up and compare definitions.
27322         * tests/test-vc-list-files-git.sh: Likewise.
27323         * modules/vc-list-files-tests (Files): Add tests/init.sh.
27324
27325 2010-04-22  Simon Josefsson  <simon@josefsson.org>
27326
27327         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
27328         backup files.
27329
27330 2010-04-21  Simon Josefsson  <simon@josefsson.org>
27331
27332         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
27333
27334 2010-04-20  Eric Blake  <eblake@redhat.com>
27335
27336         tests: be robust to ignored SIGPIPE
27337         * tests/test-select-in.sh: Consume all output.
27338         * tests/test-lseek.sh: Check correct exit status, while avoiding
27339         EPIPE.
27340
27341 2010-04-20  Simon Josefsson  <simon@josefsson.org>
27342             Bruno Haible  <bruno@clisp.org>
27343
27344         visibility: Don't use -fvisibility if it leads to a warning.
27345         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
27346         yes, don't pretend that visibility works if it leads to a warning.
27347         Reported by Mike Gran <spk121@yahoo.com>.
27348
27349 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
27350
27351         * build-aux/bootstrap: Use "git -h" for testing for supported options
27352         instead of "git --help".  The short-form option only shows a summary,
27353         and doesn't layout the full man page.  Grep for the full option name
27354         in the summary, too.
27355
27356 2010-04-19  Bruno Haible  <bruno@clisp.org>
27357
27358         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
27359         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
27360         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
27361         mention of RELOCATABLE_STRIP.
27362         Reported by Sylvain Beucler <beuc@beuc.net>.
27363
27364 2010-04-19  Bruno Haible  <bruno@clisp.org>
27365
27366         * lib/diffseq.h: Fix typo in comment.
27367         Reported by Eric Blake.
27368
27369 2010-04-19  Bruno Haible  <bruno@clisp.org>
27370
27371         ioctl: Move autoconf macro to a .m4 file.
27372         * m4/ioctl.m4: New file, extracted from modules/ioctl.
27373         * modules/ioctl (Files): Add it.
27374         (configure.ac): Simply invoke gl_FUNC_IOCTL.
27375         Reported by Ian Beckwith <ianb@erislabs.net>.
27376
27377 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
27378             Bruno Haible  <bruno@clisp.org>
27379
27380         diffseq: Accommodate use-case with abstract arrays.
27381         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
27382         is not defined.
27383         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
27384         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
27385
27386 2010-04-18  Bruno Haible  <bruno@clisp.org>
27387
27388         * doc/posix-headers/stdbool.texi: More precise wording.
27389
27390 2010-04-17  Jim Meyering  <meyering@redhat.com>
27391
27392         maint.mk: use gnu-style indentation in an embedded perl script
27393         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
27394         Rename variable: s/two/last_two_bytes/
27395
27396 2010-04-16  Eric Blake  <eblake@redhat.com>
27397
27398         test-stdbool: skip test that fails with Solaris CC
27399         * tests/test-stdbool.c (f): Skip test that causes compilation
27400         error under buggy C++ compiler.
27401         * lib/stdbool.in.h: Document the limitation.
27402         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
27403
27404         setenv: allow compilation with C++
27405         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
27406         register keyword.
27407
27408         stdint: allow test to pass with C++
27409         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
27410
27411         getopt: allow compilation with C++
27412         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
27413         struct.
27414         * lib/getopt.c (_getopt_internal_r): Use correct type.
27415         Reported by Dagobert Michelson, via Joel E. Denny.
27416
27417 2010-04-16  Bruno Haible  <bruno@clisp.org>
27418
27419         Override netdb.h always.
27420         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
27421         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
27422         Reported by Ludovic Courtès <ludo@gnu.org>.
27423
27424 2010-04-15  Bruno Haible  <bruno@clisp.org>
27425
27426         openpty: Fix mistake from 2010-03-21.
27427         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
27428         Reported by Simon Josefsson.
27429
27430 2010-04-15  Eric Blake  <eblake@redhat.com>
27431
27432         test-forkpty: fix expected signature
27433         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
27434         Reported by Simon Josefsson.
27435
27436 2010-04-15  Jim Meyering  <meyering@redhat.com>
27437
27438         maint.mk: texinfo_suffix_re_: correct the default regexp
27439         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
27440
27441         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
27442         make it configurable via texinfo_suffix_re_.
27443
27444 2010-04-14  Eric Blake  <eblake@redhat.com>
27445
27446         strtok_r: relax license to LGPLv2+
27447         * modules/strtok_r (License): Relax license.
27448         Reported by Matthias Bolte.
27449
27450 2010-04-14  Simon Josefsson  <simon@josefsson.org>
27451
27452         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
27453         version 1.4.4 by default instead of requiring the libgcrypt
27454         version used during build.  This makes it possible to use the
27455         application with older but still binary compatible libgcrypt
27456         versions.
27457
27458 2010-04-13  Eric Blake  <eblake@redhat.com>
27459
27460         getopt-gnu: match recent glibc fixes and posix ruling
27461         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
27462         '+' handling, when requesting extensions.
27463         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
27464         'W;' handling.
27465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
27466         * doc/posix-functions/getopt.texi (getopt): Document this.
27467         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27468         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27469         Likewise.
27470
27471         getopt: merge bug fixes from glibc
27472         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
27473         diagnostics.  Honor '+:' correctly.  Reject ';'.
27474
27475         getopt-posix: detect MacOS bug
27476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
27477         optind when missing a required argument.
27478         * doc/posix-functions/getopt.texi (getopt): Document the bug.
27479         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27480         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27481         Likewise.
27482
27483         getopt-posix: avoid spurious failure on Solaris
27484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
27485         an indicator that setting optind=1 is sufficient for reset.
27486
27487         getopt-posix: avoid spurious failure on FreeBSD
27488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
27489         in POSIX mode, since the m4 test uses it.
27490
27491         gnulib-tool: silence warning on BSD sh
27492         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
27493
27494 2010-04-13  Jim Meyering  <meyering@redhat.com>
27495
27496         doc: users.txt: GNU patch now uses gnulib
27497         * users.txt: Add patch.
27498
27499 2010-04-12  Jim Meyering  <meyering@redhat.com>
27500
27501         maint.mk: generate more concise timing data for syntax-check rules
27502         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
27503         " done" from each line that reports a syntax-check test duration.
27504
27505 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
27506
27507         git-version-gen: use "git update-index..." rather than "git status"
27508         * build-aux/git-version-gen: Use git update-index --refresh, not
27509         "git status".  With some versions of git, "git status" would fail
27510         to update the index and result in an unwarranted "-dirty" suffix.
27511
27512 2010-04-11  Jim Meyering  <meyering@redhat.com>
27513
27514         openat: correct formatting (no semantic change)
27515         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
27516         Suggested by Bruno Haible.
27517
27518 2010-04-11  Bruno Haible  <bruno@clisp.org>
27519
27520         Stricter declaration checking in testdirs.
27521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27522         If for_tests is true, augment AM_CPPFLAGS to define
27523         GNULIB_STRICT_CHECKING.
27524         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
27525         GNULIB_STRICT_CHECKING is defined, verify that the function is
27526         declared.
27527
27528 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
27529             Bruno Haible  <bruno@clisp.org>
27530
27531         libunistring: Improve configure output.
27532         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
27533         Don't say "consider installing GNU libunistring" when checking again
27534         with libiconv.
27535
27536 2010-04-11  Bruno Haible  <bruno@clisp.org>
27537
27538         libunistring: Correct value of $LTLIBUNISTRING.
27539         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
27540         correct the value of $LTLIBUNISTRING.
27541
27542 2010-04-11  Bruno Haible  <bruno@clisp.org>
27543
27544         havelib: Add static libraries to LIBS in the right order.
27545         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
27546         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
27547
27548 2010-04-11  Bruno Haible  <bruno@clisp.org>
27549
27550         libunistring: Detect libunistring also when it depends on libiconv.
27551         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
27552         the second AC_LIB_HAVE_LINKFLAGS invocation.
27553
27554 2010-04-11  James Youngman  <jay@gnu.org>
27555
27556         close-stream: declare local scalars to be "const"
27557         * lib/close-stream.c (close_stream): Make boolean variables const
27558         to document the fact that we set but do not change them.
27559
27560 2010-04-11  Bruno Haible  <bruno@clisp.org>
27561
27562         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
27563
27564 2010-04-11  Jim Meyering  <meyering@redhat.com>
27565
27566         maint.mk: don't include dist-check.mk
27567         * top/maint.mk: Remove bogus include directive.
27568
27569         maint.mk: improve empty-line-at-EOF check
27570         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
27571         solution, rather than tail+Perl-based one.  The latter would read
27572         a few kilobytes from the end of each file, and did not handle empty
27573         files properly.
27574
27575         maint.mk: print the elapsed time for each syntax-check rule
27576         * top/maint.mk (sc_m_rules_): Save start time in a file.
27577         (sc_z_rules_): New rules: remove temp file and print elapsed time.
27578         (local-check): Interpose the .z rules
27579
27580 2010-04-11  Jim Meyering  <meyering@redhat.com>
27581
27582         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
27583         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
27584         empty file with one that ends in an empty line.
27585
27586 2010-04-10  Bruno Haible  <bruno@clisp.org>
27587
27588         mkdir: Make it work on mingw64.
27589         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
27590         * lib/mkdir.c: Update comment.
27591         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
27592
27593 2010-04-10  Bruno Haible  <bruno@clisp.org>
27594
27595         Don't override improved macro from newer autoconf.
27596         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
27597         autoconf >= 2.62.
27598         Reported by Joel E. Denny <jdenny@clemson.edu>.
27599
27600 2010-04-10  Jim Meyering  <meyering@redhat.com>
27601
27602         maint.mk: new syntax-check rule: prohibit empty lines at end of file
27603         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
27604
27605         maint.mk: correct a diagnostic
27606         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
27607         in diagnostic; now use $prohibit.
27608
27609 2010-04-10  Bruno Haible  <address@hidden>
27610
27611         fchownat: Fix a C++ test error on Solaris 8.
27612         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
27613         the function does not exist.
27614
27615 2010-04-10  Bruno Haible  <bruno@clisp.org>
27616
27617         vasnprintf: Add more tests.
27618         * tests/test-vasnprintf-posix.c: Include <errno.h>.
27619         (test_function): Test converting an invalid wide string.
27620
27621         vasnprintf: Correct handling of unconvertible wide string arguments.
27622         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
27623         VASNPRINTF.
27624         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
27625         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
27626         smaller than the expected maximum need for the directive. Set errno to
27627         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
27628         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
27630         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
27631         * modules/vasnprintf (Files): Add m4/printf.m4.
27632         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27633
27634 2010-04-10  Bruno Haible  <bruno@clisp.org>
27635
27636         vasnprintf: Fix crash in %ls directive.
27637         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
27638         string is passed as argument to %ls, with no precision and no width.
27639         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27640
27641 2010-04-10  Bruno Haible  <bruno@clisp.org>
27642
27643         vasnprintf: Fix multiple test failures on mingw.
27644         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
27645         _snprintf, or snwprintf, not _snwprintf.
27646
27647 2010-04-10  Bruno Haible  <bruno@clisp.org>
27648
27649         write: Fix a C++ test error on mingw.
27650         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
27651
27652 2010-04-10  Bruno Haible  <bruno@clisp.org>
27653
27654         vasnprintf test: Reduce code duplication.
27655         * tests/test-vasnprintf.c (test_function): New function, extracted from
27656         test_vasnprintf.
27657         (test_vasnprintf, test_asnprintf): Invoke it.
27658
27659 2010-04-10  Bruno Haible  <bruno@clisp.org>
27660
27661         strnlen: Fix warning in C++ mode on MacOS X.
27662         * lib/string.in.h (strnlen): Use the modern idiom.
27663         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
27664         defining strnlen as a macro already in <config.h>.
27665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27666         REPLACE_STRNLEN.
27667         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
27668         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27669
27670 2010-04-08  James Youngman  <jay@gnu.org>
27671
27672         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
27673         the example.
27674
27675 2010-04-09  Jim Meyering  <meyering@redhat.com>
27676
27677         maint.mk: print better diagnostic when there is no $(_hv_file)
27678         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
27679         announce that when $(_hv_file) (aka help-version) does not exist.
27680
27681         init.sh: run tr in the "C" locale to avoid multibyte interpretation
27682         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
27683         not try to interpret its random input bytes.  Jarno Rajahalme reported
27684         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
27685         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
27686         (mktempd_): Likewise, just in case.
27687
27688         ftruncate: add two years to projected module removal date: 2012
27689         * m4/ftruncate.m4: Adjust comments.
27690
27691         ftruncate: mark module as obsolete; even MinGW provides it, now
27692         * modules/ftruncate (Status): Obsolete.
27693         (Notice): Say that.
27694         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
27695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
27696
27697 2010-04-08  Bruno Haible  <bruno@clisp.org>
27698
27699         Fix side effects from tests-related modules.
27700         * modules/dprintf-posix (Comment): New section.
27701         * modules/fprintf-posix (Comment): Likewise.
27702         * modules/obstack-printf-posix (Comment): Likewise.
27703         * modules/printf-posix (Comment): Likewise.
27704         * modules/snprintf-posix (Comment): Likewise.
27705         * modules/sprintf-posix (Comment): Likewise.
27706         * modules/vasnprintf-posix (Comment): Likewise.
27707         * modules/vasprintf-posix (Comment): Likewise.
27708         * modules/vdprintf-posix (Comment): Likewise.
27709         * modules/vfprintf-posix (Comment): Likewise.
27710         * modules/vprintf-posix (Comment): Likewise.
27711         * modules/vsnprintf-posix (Comment): Likewise.
27712         * modules/vsprintf-posix (Comment): Likewise.
27713         * modules/xprintf-posix (Comment): Likewise.
27714         * modules/xvasprintf-posix (Comment): Likewise.
27715         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
27716         * modules/floorf-tests (Depends-on): Likewise.
27717         * modules/round-tests (Depends-on): Likewise.
27718         * modules/roundf-tests (Depends-on): Likewise.
27719         * modules/trunc-tests (Depends-on): Likewise.
27720         * modules/truncf-tests (Depends-on): Likewise.
27721         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
27722         'fprintf-posix' module is not present.
27723         * tests/test-floorf2.c (check): Likewise.
27724         * tests/test-trunc2.c (check): Likewise.
27725         * tests/test-truncf2.c (check): Likewise.
27726         * tests/test-round2.c (equal): Likewise.
27727         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27728
27729 2010-04-07  Karl Berry  <karl@gnu.org>
27730
27731         * config/srclist.txt,
27732         * config/srclistvars.sh,
27733         * config/srclist-update: doc fixes.
27734
27735 2010-04-07  Jim Meyering  <meyering@redhat.com>
27736
27737         maint.mk: add a PATH crosschecking syntax-check rule
27738         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
27739         Useful if you use a test like the one in help-version (coreutils,
27740         diffutils, grep, gzip) that ensures $(VERSION) matches what is
27741         printed by prog --version.
27742
27743 2010-04-06  Bruno Haible  <bruno@clisp.org>
27744
27745         Fix link error on mingw.
27746         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
27747         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
27748
27749 2010-04-06  Bruno Haible  <bruno@clisp.org>
27750
27751         Assume rmdir exists.
27752         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
27753
27754 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27755
27756         doc: update users.txt
27757         * users.txt: Add gcal.
27758
27759 2010-04-06  Jim Meyering  <meyering@redhat.com>
27760
27761         init.sh: simply unset TMPDIR rather than risking env -i
27762         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
27763         although it probably works fine on all Unix-based systems, some
27764         systems (Cygwin?) cannot tolerate a totally cleared environment.
27765         Suggestion from Eric Blake.
27766
27767 2010-04-06  Jim Meyering  <meyering@redhat.com>
27768
27769         init.sh: portability fix: use env's POSIX-specified -i option not -u
27770         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
27771         than unportable env -u.  Solaris 5.11's env lacks support for -u.
27772
27773 2010-04-05  Bruno Haible  <bruno@clisp.org>
27774
27775         btowc: Work around Cygwin 1.7.2 bug.
27776         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
27777         does not map NUL to 0.
27778         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
27779
27780 2010-04-05  Bruno Haible  <bruno@clisp.org>
27781
27782         Make the multithread modules work on Cygwin 1.7.2.
27783         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
27784         imported symbols can be declared weak, so that it returns "no" on
27785         Cygwin 1.7.2.
27786
27787 2010-04-05  Bruno Haible  <bruno@clisp.org>
27788
27789         Use the module 'strncat'.
27790         * modules/unistr/u8-strncat (Depends-on): Add strncat.
27791
27792         Tests for module 'strncat'.
27793         * modules/strncat-tests: New file.
27794         * tests/test-strncat.c: New file.
27795
27796         New module 'strncat'.
27797         * lib/string.in.h (strncat): New declaration.
27798         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
27799         * m4/strncat.m4: New file, based on m4/memchr.m4.
27800         * modules/strncat: New file.
27801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
27802         is declared.
27803         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
27804         REPLACE_STRNCAT.
27805         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27806         REPLACE_STRNCAT.
27807         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27808         module.
27809         * tests/test-string-c++.cc: Check signature of strncat.
27810
27811 2010-04-05  Jim Meyering  <meyering@redhat.com>
27812
27813         xstrtoumax-tests: convert to use init.sh
27814         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27815         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27816         Use Exit, not exit.
27817         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27818
27819         xstrtoimax-tests: convert to use init.sh
27820         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27821         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27822         Use Exit, not exit.
27823         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27824
27825 2010-04-05  Bruno Haible  <bruno@clisp.org>
27826
27827         sys_socket: Avoid #define replacements in C++ mode.
27828         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27829         warning to the function if possible, rather than #defining the symbol
27830         to a dysfunctional alias.
27831
27832 2010-04-05  Bruno Haible  <bruno@clisp.org>
27833
27834         fseeko: Fix C++ test error on mingw.
27835         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27836         gl_FUNC_FSEEKO.
27837         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27838         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27839         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27840         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27841
27842 2010-04-05  Bruno Haible  <bruno@clisp.org>
27843
27844         duplocale: Improve test output.
27845         * tests/test-duplocale.c (main): Print reason for skipped test.
27846
27847 2010-04-05  Bruno Haible  <bruno@clisp.org>
27848
27849         Assume rmdir exists.
27850         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27851         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27852
27853 2010-04-05  Bruno Haible  <bruno@clisp.org>
27854
27855         Fix link error on Solaris 8 with cc.
27856         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27857
27858 2010-04-05  Bruno Haible  <bruno@clisp.org>
27859
27860         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27861         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27862
27863 2010-04-05  Bruno Haible  <bruno@clisp.org>
27864
27865         vasprintf: Update documentation.
27866         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27867
27868 2010-04-05  Bruno Haible  <bruno@clisp.org>
27869
27870         ptsname: Improve test.
27871         * tests/test-ptsname.c (main): Also try the various master names of BSD
27872         systems.
27873
27874 2010-04-05  Bruno Haible  <bruno@clisp.org>
27875
27876         memchr: Avoid a possible C++ test error.
27877         * lib/string.in.h (memchr): Provide declaration if function is missing.
27878         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27879         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27881         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27882
27883 2010-04-05  Bruno Haible  <bruno@clisp.org>
27884
27885         strtok_r: Improve idiom.
27886         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27887         AC_LIBOBJ is used.
27888
27889 2010-04-05  Bruno Haible  <bruno@clisp.org>
27890
27891         strdup: Improve idiom.
27892         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27893         AC_LIBOBJ is used.
27894         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27895         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27896         when AC_LIBOBJ is used.
27897
27898 2010-04-05  Bruno Haible  <bruno@clisp.org>
27899
27900         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27901         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27902         don't set REPLACE_MBSINIT to 1.
27903         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27904         don't set REPLACE_MBRTOWC to 1.
27905         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27906         exist, don't set REPLACE_MBSRTOWCS to 1.
27907         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27908         exist, don't set REPLACE_MBSNRTOWCS to 1.
27909         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27910         don't set REPLACE_WCRTOMB to 1.
27911         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27912         exist, don't set REPLACE_WCSRTOMBS to 1.
27913         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27914         exist, don't set REPLACE_WCSNRTOMBS to 1.
27915
27916 2010-04-05  Bruno Haible  <bruno@clisp.org>
27917
27918         ldexpl: Improve idiom.
27919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27920         make sure to set HAVE_DECL_LDEXPL to 0.
27921
27922 2010-04-05  Jim Meyering  <meyering@redhat.com>
27923
27924         xstrtol-tests: convert to use init.sh
27925         * modules/xstrtol-tests (Files): Add tests/init.sh.
27926         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27927         Use Exit, not exit.
27928         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27929
27930         atexit-tests: convert to use init.sh
27931         * modules/atexit-tests (Files): Add tests/init.sh.
27932         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27933         Use Exit, not exit.
27934         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27935
27936         init.sh: fix typo
27937         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27938
27939         init.sh: make it easier for a test script to write to the tty, ...
27940         when using automake's parallel-tests mode.
27941         * tests/init.sh (stderr_fileno_): Define overridable variable.
27942         (warn_): New function, to use it.
27943         (fail_, skip_, framework_failure_): Use warn_.
27944
27945 2010-04-04  Bruno Haible  <bruno@clisp.org>
27946
27947         btowc: Avoid warning.
27948         * lib/btowc.c: Include <stdlib.h>.
27949         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27950
27951 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27952             Bruno Haible  <bruno@clisp.org>
27953
27954         wchar: Port to NetBSD 1.5.
27955         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27956         * lib/wctype.in.h (WEOF): Likewise.
27957
27958 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27959             Bruno Haible  <bruno@clisp.org>
27960
27961         Port extended stdio to NetBSD 1.5.
27962         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27963         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27964         older.
27965
27966 2010-04-04  Bruno Haible  <bruno@clisp.org>
27967
27968         string: Remove unused substitution.
27969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27970         HAVE_DECL_STRERROR.
27971         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27972
27973 2010-04-04  Bruno Haible  <bruno@clisp.org>
27974
27975         strtod: Avoid a possible C++ test error.
27976         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27977         set REPLACE_STRTOD.
27978
27979 2010-04-04  Bruno Haible  <bruno@clisp.org>
27980
27981         strerror: Update documentation.
27982         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27983
27984 2010-04-04  Bruno Haible  <bruno@clisp.org>
27985
27986         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27987         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27988         _GL_CXXALIAS_SYS_CAST.
27989
27990 2010-04-04  Bruno Haible  <bruno@clisp.org>
27991
27992         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27993         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27994         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27995         REPLACE_FREXPL to 1.
27996         * doc/posix-functions/frexpl.texi: Update documentation.
27997
27998 2010-04-04  Bruno Haible  <bruno@clisp.org>
27999
28000         math: Fix some C++ test errors on Solaris 8 and Cygwin.
28001         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
28002
28003 2010-04-04  Bruno Haible  <bruno@clisp.org>
28004
28005         Implement nanosleep for native Windows.
28006         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
28007
28008 2010-04-04  Bruno Haible  <bruno@clisp.org>
28009
28010         math: Fix some C++ test errors on Solaris 8.
28011         * lib/math.in.h (truncf, trunc): Use simpler idiom.
28012
28013 2010-04-04  Bruno Haible  <bruno@clisp.org>
28014
28015         math: Fix some C++ test errors on Cygwin.
28016         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
28017         truncl): Provide declaration if the system does not have it.
28018         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
28019         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
28020         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
28021         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
28022         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
28023         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
28024         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
28025         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
28026         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
28027         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
28028         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
28029         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
28030         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
28031         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
28032         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
28033         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
28034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
28035         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28036         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28037         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
28038         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28039         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28040
28041 2010-04-04  Bruno Haible  <bruno@clisp.org>
28042
28043         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
28044         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28045         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28046         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28047         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28048         * m4/isinf.m4 (gl_ISINF): Likewise.
28049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28050
28051 2010-04-04  Bruno Haible  <bruno@clisp.org>
28052
28053         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
28054         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28055
28056 2010-04-04  Bruno Haible  <bruno@clisp.org>
28057
28058         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
28059         * modules/tmpfile (configure.ac): Update.
28060
28061         tmpfile: Fix C++ test error on mingw.
28062         * lib/stdio.in.h (tmpfile): New declaration.
28063         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
28064         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
28065         * modules/tmpfile (Depends-on): Add stdio.
28066         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28067         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
28068         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
28069         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
28070         REPLACE_TMPFILE.
28071         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
28072
28073 2010-04-04  Bruno Haible  <bruno@clisp.org>
28074
28075         ioctl: Fix C++ test error on mingw.
28076         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
28077         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
28078         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
28079
28080 2010-04-03  Bruno Haible  <bruno@clisp.org>
28081
28082         wcwidth: Fix C++ test error on mingw.
28083         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
28084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
28085         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
28086
28087 2010-04-03  Bruno Haible  <bruno@clisp.org>
28088
28089         nanosleep: Fix C++ test error on mingw.
28090         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
28091         * lib/time.in.h (nanosleep): Use modern idiom.
28092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
28093         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
28094         REPLACE_NANOSLEEP to 1.
28095         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
28096         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
28097
28098 2010-04-03  Bruno Haible  <bruno@clisp.org>
28099
28100         strptime: Fix C++ test error on mingw.
28101         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
28102         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
28103         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
28104         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
28105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
28106         not REPLACE_STRPTIME.
28107         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
28108         REPLACE_STRPTIME.
28109
28110 2010-04-03  Bruno Haible  <bruno@clisp.org>
28111
28112         timegm: Fix C++ test error on mingw.
28113         * lib/time.in.h (timegm): Use modern idiom.
28114         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
28115         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
28116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
28117         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
28118
28119 2010-04-03  Bruno Haible  <bruno@clisp.org>
28120
28121         timegm: Assume declaration if function exists.
28122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
28123         if it exists. Don't clobber ac_cv_func_timegm.
28124
28125 2010-04-03  Bruno Haible  <bruno@clisp.org>
28126
28127         time_r: Fix C++ test error on mingw.
28128         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
28129         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
28130         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
28131         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
28132         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
28133
28134 2010-04-03  Bruno Haible  <bruno@clisp.org>
28135
28136         time_r: Minor updates.
28137         * modules/time_r (Description): Mention the provided functions.
28138         * lib/time_r.c: Don't include <string.h>.
28139         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
28140         * doc/posix-functions/localtime_r.texi: Likewise.
28141
28142 2010-04-03  Bruno Haible  <bruno@clisp.org>
28143
28144         time: Fix regression introduced on 2010-03-08.
28145         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
28146         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
28147
28148 2010-04-03  Jim Meyering  <meyering@redhat.com>
28149
28150         maint.mk: don't silently disable project-specific syntax-check rules
28151         * top/maint.mk (_prohibit_regexp): Define, to help people realize
28152         that they need to convert their project-specific syntax-check rules
28153         to use the new _sc_search_regexp.
28154
28155 2010-04-03  Bruno Haible  <bruno@clisp.org>
28156
28157         fchdir: Fix regression introduced on 2010-03-08.
28158         * lib/unistd.in.h (fchdir): Fix declaration.
28159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
28160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
28161         REPLACE_FCHDIR.
28162         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
28163         REPLACE_FCHDIR.
28164
28165 2010-04-03  Bruno Haible  <bruno@clisp.org>
28166
28167         getpagesize: Fix C++ test error on mingw.
28168         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
28169         system does not declare the function.
28170         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
28171         declared.
28172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28173         HAVE_DECL_GETPAGESIZE.
28174         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
28175
28176 2010-04-03  Bruno Haible  <bruno@clisp.org>
28177
28178         stdio: Make C++ tests work on mingw.
28179         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
28180         does not declare the function.
28181
28182 2010-04-03  Bruno Haible  <bruno@clisp.org>
28183
28184         ftello: Fix C++ test error on mingw.
28185         * lib/stdio.in.h (ftello): Use modern idiom.
28186         * lib/ftello.c (ftello): Renamed from rpl_ftello.
28187         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
28188         is missing and that it needs to be replaced.
28189         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
28190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
28191         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
28192
28193 2010-04-03  Bruno Haible  <bruno@clisp.org>
28194
28195         fseeko: Fix C++ test error on mingw.
28196         * lib/stdio.in.h (fseeko): Use modern idiom.
28197         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
28198         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
28199         is missing and that it needs to be replaced.
28200         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
28201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
28202         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
28203
28204 2010-04-03  Bruno Haible  <bruno@clisp.org>
28205
28206         mkstemp: Fix C++ test error on mingw.
28207         * lib/stdlib.in.h (mkstemp): Use modern idiom.
28208         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
28209         function is missing and that it needs to be replaced.
28210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
28211         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
28212
28213 2010-04-03  Bruno Haible  <bruno@clisp.org>
28214
28215         stpncpy: Fix C++ test error on mingw.
28216         * lib/string.in.h (stpncpy): Use modern idiom.
28217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
28218         function is missing and that it needs to be replaced.
28219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28220         REPLACE_STPNCPY.
28221         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
28222
28223 2010-04-03  Bruno Haible  <bruno@clisp.org>
28224
28225         sys_stat: Fix C++ test error on mingw.
28226         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
28227         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
28228
28229 2010-04-03  Bruno Haible  <bruno@clisp.org>
28230
28231         pty: Update doc.
28232         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
28233
28234 2010-04-03  Bruno Haible  <bruno@clisp.org>
28235
28236         unistd: Fix C++ test error on mingw.
28237         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
28238
28239 2010-04-03  Bruno Haible  <bruno@clisp.org>
28240
28241         Update doc regarding mingw.
28242         * doc/glibc-functions/openpty.texi: Update regarding mingw.
28243         * doc/glibc-functions/login_tty.texi: Likewise.
28244         * doc/glibc-functions/forkpty.texi: Likewise.
28245
28246 2010-04-03  Bruno Haible  <bruno@clisp.org>
28247
28248         stdlib: Avoid compilation failure of c-strtold on mingw.
28249         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
28250
28251 2010-04-03  Bruno Haible  <bruno@clisp.org>
28252
28253         locale: Make C++ tests work on Cygwin and mingw.
28254         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
28255         cannot provide the function.
28256         Reported by Simon Josefsson.
28257
28258 2010-04-03  Bruno Haible  <bruno@clisp.org>
28259
28260         localename: Port to MacOS X 10.6.
28261         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
28262         memory layout of the locales in MacOS X 10.6 as well.
28263         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
28264
28265 2010-04-02  Bruno Haible  <bruno@clisp.org>
28266
28267         gnulib-tool: Ensure that long-running tests are executed last.
28268         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
28269         running tests after the one for the other tests.
28270
28271 2010-04-02  Bruno Haible  <bruno@clisp.org>
28272
28273         gnulib-tool: Ensure the tests in the main directory are executed first.
28274         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
28275         start with the current directory.
28276
28277 2010-04-02  Bruno Haible  <bruno@clisp.org>
28278
28279         Tests for module 'havelib', moved here from GNU gettext.
28280         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
28281         modifications.
28282         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
28283         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
28284         with modifications.
28285         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
28286         modifications.
28287         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
28288         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
28289         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
28290         with modifications.
28291         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
28292         with modifications.
28293         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
28294         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
28295         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
28296         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
28297         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
28298         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
28299         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
28300         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
28301         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
28302         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
28303         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
28304         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
28305         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
28306         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
28307         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
28308         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
28309         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
28310         with modifications.
28311         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
28312         with modifications.
28313         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
28314         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
28315         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
28316         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
28317         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
28318         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
28319         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
28320         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
28321         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
28322         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
28323         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
28324         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
28325         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
28326         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
28327         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
28328         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
28329         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
28330         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
28331         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
28332         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
28333         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
28334         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
28335         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
28336         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
28337         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
28338         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
28339         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
28340         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
28341         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
28342         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
28343         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
28344         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
28345         * tests/havelib/rpathx/rpathx.c: New file, from
28346         gettext/autoconf-lib-link.
28347         * tests/havelib/rpathx/Makefile.am: New file, from
28348         gettext/autoconf-lib-link.
28349         * tests/havelib/rpathx/configure.ac: New file, from
28350         gettext/autoconf-lib-link with modifications.
28351         * tests/havelib/rpathy/rpathy.c: New file, from
28352         gettext/autoconf-lib-link.
28353         * tests/havelib/rpathy/Makefile.am: New file, from
28354         gettext/autoconf-lib-link.
28355         * tests/havelib/rpathy/configure.ac: New file, from
28356         gettext/autoconf-lib-link with modifications.
28357         * tests/havelib/rpathz/rpathz.c: New file, from
28358         gettext/autoconf-lib-link.
28359         * tests/havelib/rpathz/Makefile.am: New file, from
28360         gettext/autoconf-lib-link.
28361         * tests/havelib/rpathz/configure.ac: New file, from
28362         gettext/autoconf-lib-link with modifications.
28363         * tests/havelib/rpathlx/usex.c: New file, from
28364         gettext/autoconf-lib-link.
28365         * tests/havelib/rpathlx/Makefile.am: New file, from
28366         gettext/autoconf-lib-link.
28367         * tests/havelib/rpathlx/configure.ac: New file, from
28368         gettext/autoconf-lib-link with modifications.
28369         * tests/havelib/rpathly/usey.c: New file, from
28370         gettext/autoconf-lib-link.
28371         * tests/havelib/rpathly/Makefile.am: New file, from
28372         gettext/autoconf-lib-link.
28373         * tests/havelib/rpathly/configure.ac: New file, from
28374         gettext/autoconf-lib-link with modifications.
28375         * tests/havelib/rpathlz/usez.c: New file, from
28376         gettext/autoconf-lib-link.
28377         * tests/havelib/rpathlz/Makefile.am: New file, from
28378         gettext/autoconf-lib-link.
28379         * tests/havelib/rpathlz/configure.ac: New file, from
28380         gettext/autoconf-lib-link with modifications.
28381         * tests/havelib/rpathlyx/usey.c: New file, from
28382         gettext/autoconf-lib-link.
28383         * tests/havelib/rpathlyx/Makefile.am: New file, from
28384         gettext/autoconf-lib-link.
28385         * tests/havelib/rpathlyx/configure.ac: New file, from
28386         gettext/autoconf-lib-link with modifications.
28387         * tests/havelib/rpathlzyx/usez.c: New file, from
28388         gettext/autoconf-lib-link.
28389         * tests/havelib/rpathlzyx/Makefile.am: New file, from
28390         gettext/autoconf-lib-link.
28391         * tests/havelib/rpathlzyx/configure.ac: New file, from
28392         gettext/autoconf-lib-link with modifications.
28393         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
28394         with modifications.
28395
28396 2010-04-02  Bruno Haible  <bruno@clisp.org>
28397
28398         gnulib-tool: Create distributed built sources also for the tests.
28399         * gnulib-tool (func_create_testdir): Also generate distributed built
28400         sources in the tests directory.
28401
28402 2010-04-02  Bruno Haible  <bruno@clisp.org>
28403
28404         gnulib-tool: Obey user's environment variables.
28405         * gnulib-tool (func_create_testdir): When creating built sources,
28406         respect the environment variables for autoconf, automake, etc. given by
28407         the user.
28408
28409 2010-04-02  Bruno Haible  <bruno@clisp.org>
28410
28411         gnulib-tool: Provide the value of --m4-base to modules.
28412         * gnulib-tool (func_import, func_create_testdir): Emit a definition
28413         of gl_m4_base.
28414
28415 2010-04-02  Eric Blake  <eblake@redhat.com>
28416
28417         maint.mk: fix some fallout
28418         * NEWS: Document the incompatible change, and its effect on cfg.mk.
28419         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
28420
28421 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28422
28423         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
28424         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
28425         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
28426         (sc_cast_of_x_alloc_return_value): Likewise.
28427         (sc_cast_of_alloca_return_value): Likewise.
28428         (sc_space_tab): Likewise.
28429         (sc_prohibit_atoi_atof): Likewise.
28430         (sc_prohibit_magic_number_exit): Likewise.
28431         (sc_error_exit_success): Likewise.
28432         (sc_file_system): Likewise.
28433         (sc_prohibit_have_config_h): Likewise.
28434         (sc_require_config_h): Likewise.
28435         (sc_prohibit_HAVE_MBRTOWC): Likewise.
28436         (sc_obsolete_symbols): Likewise.
28437         (sc_changelog): Likewise.
28438         (sc_program_name): Likewise.
28439         (sc_the_the): Likewise.
28440         (sc_trailing_blank): Likewise.
28441         (sc_two_space_separator_in_usage): Likewise.
28442         (sc_useless_cpp_parens): Likewise.
28443         (sc_GPL_version): Likewise.
28444         (sc_GFDL_version): Likewise.
28445         (sc_texinfo_acronym): Likewise.
28446         (sc_prohibit_cvs_keyword): Likewise.
28447         (sc_prohibit_stat_st_blocks): Likewise.
28448         (sc_prohibit_S_IS_definition): Likewise.
28449         (sc_redundant_const): Likewise.
28450         (sc_makefile_TAB_only_indentation): Likewise.
28451         (sc_m4_quote_check): Likewise.
28452         (sc_makefile_path_separator_check): Likewise.
28453         (sc_copyright_check): Likewise.
28454         (sc_Wundef_boolean): Likewise.
28455         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28456
28457         maint.mk: match 0 or more whitespace-before-function-call '('
28458         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
28459         that have zero or two-and-more spaces between the function name
28460         and the open parenthesis.
28461         (sc_error_message_warn_fatal): Likewise.
28462         (sc_error_message_uppercase): Likewise.
28463         (sc_error_message_period): Likewise.
28464
28465 2010-03-31  Eric Blake  <eblake@redhat.com>
28466
28467         maint.mk: check for [ as well as test
28468         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
28469         Based on a libvirt report by Matthias Bolte.
28470
28471         gnumakefile: don't squelch _version output
28472         * top/GNUmakefile (_version): Create one-shot dependency rather
28473         than using $(shell) when version must be regenerated.
28474         (_autoreconf): Run verbosely, by default.
28475
28476         sys_time: avoid compiler warnings
28477         * lib/sys_time.in.h (includes): Ensure gcc pragma is
28478         unconditional, fixing regression from 2010-03-29.
28479         Reported by Simon Josefsson.
28480
28481 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28482
28483         maint.mk: s/_header_without_use/_sc_header_without_use/
28484         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
28485         (sc_prohibit_assert_without_use): Use the new name.
28486         (sc_prohibit_close_stream_without_use): Likewise.
28487         (sc_prohibit_getopt_without_use): Likewise.
28488         (sc_prohibit_quotearg_without_use): Likewise.
28489         (sc_prohibit_quote_without_use): Likewise.
28490         (sc_prohibit_long_options_without_use): Likewise.
28491         (sc_prohibit_inttostr_without_use): Likewise.
28492         (sc_prohibit_ignore_value_without_use): Likewise.
28493         (sc_prohibit_error_without_use): Likewise.
28494         (sc_prohibit_xalloc_without_use): Likewise.
28495         (sc_prohibit_hash_without_use): Likewise.
28496         (sc_prohibit_hash_pjw_without_use): Likewise.
28497         (sc_prohibit_safe_read_without_use): Likewise.
28498         (sc_prohibit_argmatch_without_use): Likewise.
28499         (sc_prohibit_canonicalize_without_use): Likewise.
28500         (sc_prohibit_root_dev_ino_without_use): Likewise.
28501         (sc_prohibit_openat_without_use): Likewise.
28502         (sc_prohibit_c_ctype_without_use): Likewise.
28503         (sc_prohibit_signal_without_use): Likewise.
28504         (sc_prohibit_intprops_without_use): Likewise.
28505
28506 2010-03-30  Eric Blake  <eblake@redhat.com>
28507
28508         maint: improve module indicators
28509         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
28510         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
28511         columns, and avoid extra macro expansion.
28512
28513         fdopendir: work around FreeBSD bug
28514         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28515         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
28516         * modules/dirent (Makefile.am): Substitute it.
28517         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
28518         declaration.
28519         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
28520         fix.
28521         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28522
28523 2010-03-29  Bruno Haible  <bruno@clisp.org>
28524
28525         Emit #pragma system_header after the inclusion guard, not before.
28526         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
28527         guard that spans the entire file, not before. This enables an
28528         optimization in GCC's preprocessor.
28529         * lib/ctype.in.h: Likewise.
28530         * lib/dirent.in.h: Likewise.
28531         * lib/errno.in.h: Likewise.
28532         * lib/float.in.h: Likewise.
28533         * lib/getopt.in.h: Likewise.
28534         * lib/iconv.in.h: Likewise.
28535         * lib/langinfo.in.h: Likewise.
28536         * lib/locale.in.h: Likewise.
28537         * lib/math.in.h: Likewise.
28538         * lib/netdb.in.h: Likewise.
28539         * lib/netinet_in.in.h: Likewise.
28540         * lib/pty.in.h: Likewise.
28541         * lib/sched.in.h: Likewise.
28542         * lib/se-selinux.in.h: Likewise.
28543         * lib/search.in.h: Likewise.
28544         * lib/spawn.in.h: Likewise.
28545         * lib/stdarg.in.h: Likewise.
28546         * lib/stdint.in.h: Likewise.
28547         * lib/string.in.h: Likewise.
28548         * lib/strings.in.h: Likewise.
28549         * lib/sys_file.in.h: Likewise.
28550         * lib/sys_ioctl.in.h: Likewise.
28551         * lib/sys_time.in.h: Likewise.
28552         * lib/sys_times.in.h: Likewise.
28553         * lib/sys_utsname.in.h: Likewise.
28554         * lib/sys_wait.in.h: Likewise.
28555         * lib/sysexits.in.h: Likewise.
28556         * lib/wctype.in.h: Likewise.
28557
28558 2010-03-28  James Youngman  <jay@gnu.org>
28559
28560         save-cwd: don't leak a file descriptor when the caller execs.
28561         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
28562         saved file descriptor.
28563         * modules/save-cwd (Depends-on): Depend on cloexec.
28564
28565 2010-03-29  Bruno Haible  <bruno@clisp.org>
28566
28567         Remove vestiges of fts-lgpl module.
28568         * lib/fts_.h: Assume GNULIB_FTS is 1.
28569         * lib/fts.c: Likewise.
28570         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28571
28572 2010-03-28  Bruno Haible  <bruno@clisp.org>
28573
28574         Fix definition of tests witness macro.
28575         * gnulib-tool (func_import): Fix definition of witness macro.
28576
28577 2010-03-28  Bruno Haible  <bruno@clisp.org>
28578
28579         Fix ioctl's protoype on glibc systems.
28580         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
28581         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
28582         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
28583         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
28584         signature. If not, arrange to replace the ioctl function.
28585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28586         REPLACE_IOCTL.
28587         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
28588         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
28589         Reported by Ludovic Courtès <ludo@gnu.org>.
28590
28591 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28592
28593         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
28594         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
28595         made it so grep -r --include=GLOB* ... did not work.
28596
28597 2010-03-26  Jim Meyering  <meyering@redhat.com>
28598             Eric Blake  <eblake@redhat.com>
28599
28600         maint.mk: prohibit use of test's -o and -a operators
28601         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
28602
28603 2010-03-28  Bruno Haible  <bruno@clisp.org>
28604
28605         Remove unused GNULIB_XYZ macro definitions.
28606         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
28607         invocation.
28608
28609 2010-03-28  Bruno Haible  <bruno@clisp.org>
28610
28611         Mark privileged tests modules.
28612         * modules/idpriv-drop-tests (Status): New section.
28613         * modules/idpriv-droptemp-tests (Status): New section.
28614
28615 2010-03-28  Bruno Haible  <bruno@clisp.org>
28616
28617         Split C++ tests into separate tests modules.
28618         * modules/dirent-c++-tests: New file, extracted from
28619         modules/dirent-tests.
28620         * modules/dirent-tests: Depend on it.
28621         * modules/fcntl-h-c++-tests: New file, extracted from
28622         modules/fcntl-h-tests.
28623         * modules/fcntl-h-tests: Depend on it.
28624         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
28625         * modules/glob-tests: Depend on it.
28626         * modules/iconv-h-c++-tests: New file, extracted from
28627         modules/iconv-h-tests.
28628         * modules/iconv-h-tests: Depend on it.
28629         * modules/langinfo-c++-tests: New file, extracted from
28630         modules/langinfo-tests.
28631         * modules/langinfo-tests: Depend on it.
28632         * modules/locale-c++-tests: New file, extracted from
28633         modules/locale-tests.
28634         * modules/locale-tests: Depend on it.
28635         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28636         * modules/math-tests: Depend on it.
28637         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
28638         * modules/pty-tests: Depend on it.
28639         * modules/search-c++-tests: New file, extracted from
28640         modules/search-tests.
28641         * modules/search-tests: Depend on it.
28642         * modules/signal-c++-tests: New file, extracted from
28643         modules/signal-tests.
28644         * modules/signal-tests: Depend on it.
28645         * modules/spawn-c++-tests: New file, extracted from
28646         modules/spawn-tests.
28647         * modules/spawn-tests: Depend on it.
28648         * modules/stdio-c++-tests: New file, extracted from
28649         modules/stdio-tests.
28650         * modules/stdio-tests: Depend on it.
28651         * modules/stdlib-c++-tests: New file, extracted from
28652         modules/stdlib-tests.
28653         * modules/stdlib-tests: Depend on it.
28654         * modules/string-c++-tests: New file, extracted from
28655         modules/string-tests.
28656         * modules/string-tests: Depend on it.
28657         * modules/sys_ioctl-c++-tests: New file, extracted from
28658         modules/sys_ioctl-tests.
28659         * modules/sys_ioctl-tests: Depend on it.
28660         * modules/sys_select-c++-tests: New file, extracted from
28661         modules/sys_select-tests.
28662         * modules/sys_select-tests: Depend on it.
28663         * modules/sys_socket-c++-tests: New file, extracted from
28664         modules/sys_socket-tests.
28665         * modules/sys_socket-tests: Depend on it.
28666         * modules/sys_stat-c++-tests: New file, extracted from
28667         modules/sys_stat-tests.
28668         * modules/sys_stat-tests: Depend on it.
28669         * modules/sys_time-c++-tests: New file, extracted from
28670         modules/sys_time-tests.
28671         * modules/sys_time-tests: Depend on it.
28672         * modules/time-c++-tests: New file, extracted from modules/time-tests.
28673         * modules/time-tests: Depend on it.
28674         * modules/unistd-c++-tests: New file, extracted from
28675         modules/unistd-tests.
28676         * modules/unistd-tests: Depend on it.
28677         * modules/wchar-c++-tests: New file, extracted from
28678         modules/wchar-tests.
28679         * modules/wchar-tests: Depend on it.
28680         * modules/wctype-c++-tests: New file, extracted from
28681         modules/wctype-tests.
28682         * modules/wctype-tests: Depend on it.
28683         Reported by Simon Josefsson.
28684
28685 2010-03-28  Bruno Haible  <bruno@clisp.org>
28686
28687         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
28688         * gnulib-tool (func_exists_module): New function, extracted from
28689         func_verify_module.
28690         (func_verify_module): Use it.
28691         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
28692         'foo' only if 'foo' exists.
28693         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
28694         module.
28695
28696 2010-03-28  Bruno Haible  <bruno@clisp.org>
28697
28698         gnulib-tool: Add support for special categories of tests.
28699         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
28700         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
28701         (func_usage): Document them.
28702         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
28703         inc_unportable_tests, inc_all_tests): New variables.
28704         (func_acceptable): Consider these variables.
28705         (func_modules_transitive_closure): Make it work when the 'Status' field
28706         consists of multiple words.
28707         (func_import): Store and restore the values of inc_cxx_tests,
28708         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
28709         inc_all_tests in gnulib-comp.m4.
28710         (func_create_testdir): Set inc_all_tests to true.
28711         * doc/gnulib.texi (Extra tests modules): New section.
28712         Suggested by Jim Meyering.
28713
28714 2010-03-28  Bruno Haible  <bruno@clisp.org>
28715
28716         ansi-c++-opt: Allow turning off the C++ build by default.
28717         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
28718         gl_CXX_CHOICE_DEFAULT_NO is defined.
28719         Requested by Eric Blake.
28720
28721 2010-03-28  Bruno Haible  <bruno@clisp.org>
28722
28723         unistd: Avoid #define replacements in C++ mode.
28724         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28725         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28726         setsockopt, shutdown, select): In C++, attach a warning to the function
28727         if possible, rather than #defining the symbol to a dysfunctional alias.
28728         Reported by John W. Eaton <jwe@gnu.org>.
28729
28730 2010-03-28  Bruno Haible  <bruno@clisp.org>
28731
28732         Fix link errors on mingw.
28733         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
28734         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
28735         $(LIBSOCKET).
28736         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
28737         $(LIBSOCKET).
28738
28739 2010-03-28  Bruno Haible  <bruno@clisp.org>
28740             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28741
28742         lib-ignore: Determine different options for different compilers.
28743         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
28744         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
28745         Add comments.
28746         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
28747         * NEWS: Mention the change.
28748
28749 2010-03-27  Bruno Haible  <bruno@clisp.org>
28750
28751         Remove unused GNULIB_XYZ macro definitions.
28752         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28753         * modules/fseek (configure.ac): Likewise.
28754         * modules/ioctl (configure.ac): Likewise.
28755         * modules/open (configure.ac): Likewise.
28756         * modules/stdlib-safer (configure.ac): Likewise.
28757
28758 2010-03-27  Bruno Haible  <bruno@clisp.org>
28759
28760         Add a remark about certain modules.
28761         * modules/malloc (Comment): New section.
28762         * modules/realloc (Comment): Likewise.
28763         * modules/sigpipe (Comment): Likewise.
28764
28765 2010-03-27  Bruno Haible  <bruno@clisp.org>
28766
28767         Resolve conflict between the two kinds of module indicators.
28768         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
28769         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
28770         * modules/canonicalize (configure.ac): Invoke
28771         gl_MODULE_INDICATOR_FOR_TESTS.
28772         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
28773         GNULIB_XYZ.
28774         * tests/test-dirent-c++.cc: Likewise.
28775         * tests/test-dirent-safer.c: Likewise.
28776         * tests/test-dup2.c: Likewise.
28777         * tests/test-fchdir.c: Likewise.
28778         * tests/test-fcntl-h-c++.cc: Likewise.
28779         * tests/test-getopt.c: Likewise.
28780         * tests/test-getopt.h: Likewise.
28781         * tests/test-langinfo-c++.cc: Likewise.
28782         * tests/test-locale-c++.cc: Likewise.
28783         * tests/test-math-c++.cc: Likewise.
28784         * tests/test-pty-c++.cc: Likewise.
28785         * tests/test-search-c++.cc: Likewise.
28786         * tests/test-signal-c++.cc: Likewise.
28787         * tests/test-spawn-c++.cc: Likewise.
28788         * tests/test-stdio-c++.cc: Likewise.
28789         * tests/test-stdlib-c++.cc: Likewise.
28790         * tests/test-string-c++.cc: Likewise.
28791         * tests/test-sys_ioctl-c++.cc: Likewise.
28792         * tests/test-sys_select-c++.cc: Likewise.
28793         * tests/test-sys_socket-c++.cc: Likewise.
28794         * tests/test-sys_stat-c++.cc: Likewise.
28795         * tests/test-sys_time-c++.cc: Likewise.
28796         * tests/test-time-c++.cc: Likewise.
28797         * tests/test-unistd-c++.cc: Likewise.
28798         * tests/test-wchar-c++.cc: Likewise.
28799         * tests/uninorm/test-u8-nfc.c: Likewise.
28800         * tests/uninorm/test-u8-nfd.c: Likewise.
28801         * tests/uninorm/test-u8-nfkc.c: Likewise.
28802         * tests/uninorm/test-u8-nfkd.c: Likewise.
28803         * tests/uninorm/test-u16-nfc.c: Likewise.
28804         * tests/uninorm/test-u16-nfd.c: Likewise.
28805         * tests/uninorm/test-u16-nfkc.c: Likewise.
28806         * tests/uninorm/test-u16-nfkd.c: Likewise.
28807         * tests/uninorm/test-u32-nfc.c: Likewise.
28808         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28809         * tests/uninorm/test-u32-nfd.c: Likewise.
28810         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28811         * tests/uninorm/test-u32-nfkc.c: Likewise.
28812         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28813         * tests/uninorm/test-u32-nfkd.c: Likewise.
28814         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28815         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28816
28817 2010-03-27  Bruno Haible  <bruno@clisp.org>
28818
28819         Distinguish two kinds of module indicators.
28820         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28821         gl_MODULE_INDICATOR.
28822         (gl_MODULE_INDICATOR): New macro.
28823         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28824         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28825         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28826         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28827         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28828         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28829         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28830         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28831         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28832         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28833         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28834         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28836         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28837         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28838         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28839         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28840         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28841         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28842         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28843         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28844         * modules/cloexec (configure.ac): Likewise.
28845         * modules/getopt-gnu (configure.ac): Likewise.
28846         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28847         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28848         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28849         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28850
28851 2010-03-27  Bruno Haible  <bruno@clisp.org>
28852
28853         New module description field 'Comment'.
28854         * gnulib-tool: New option --extract-comment.
28855         (func_usage): Document it.
28856         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28857         (func_get_comment): New function.
28858         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28859
28860 2010-03-27  Bruno Haible  <bruno@clisp.org>
28861
28862         Addendum to 2010-02-07 commit.
28863         * gnulib-tool (func_usage): Document --extract-applicability option.
28864
28865 2010-03-27  Bruno Haible  <bruno@clisp.org>
28866
28867         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28868         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28869         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28870         rather than link errors.
28871
28872 2010-03-27  Bruno Haible  <bruno@clisp.org>
28873
28874         Avoid side effects from tests-related modules on the compilation of lib.
28875         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28876         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28877         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28878         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28879         macro.
28880         (func_import): Define a witness macro. Assign it a value that depends
28881         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28882         tests-related modules.
28883         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28884         Reported by Jim Meyering.
28885
28886 2010-03-27  Bruno Haible  <bruno@clisp.org>
28887
28888         Factorize common .m4 code.
28889         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28890         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28891         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28892         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28893         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28894         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28895         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28896         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28897         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28898         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28899         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28900         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28901         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28902         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28903         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28904         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28905         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28906         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28908         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28909         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28910         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28911         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28912         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28913         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28914         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28915         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28917         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28918         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28919         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28920         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28921
28922 2010-03-27  Bruno Haible  <bruno@clisp.org>
28923
28924         Fix a compilation error on Cygwin with g++ >= 4.3.
28925         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28926         if it is undefined or if we alias it to chmod.
28927         (lstat): Don't warn about the use of this function if it is undefined
28928         or if we alias it to stat.
28929         Reported by Simon Josefsson.
28930
28931 2010-03-27  Bruno Haible  <bruno@clisp.org>
28932
28933         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28934         * modules/getlogin (configure.ac): Update.
28935
28936         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28937         * modules/getlogin_r (configure.ac): Update.
28938
28939         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28941         * modules/inet_ntop (configure.ac): Update.
28942
28943         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28944         * modules/inet_pton (configure.ac): Update.
28945
28946         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28947         * modules/mbslen (configure.ac): Update.
28948
28949         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28950         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28951         * modules/forkpty (configure.ac): Update.
28952         * modules/openpty (configure.ac): Update.
28953
28954 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28955
28956         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28957         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28958
28959 2010-03-25  Eric Blake  <eblake@redhat.com>
28960
28961         maint: use pragma consistently across replacement headers
28962         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28963         * lib/dirent.in.h (system_header): Likewise.
28964         * lib/errno.in.h (system_header): Likewise.
28965         * lib/float.in.h (system_header): Likewise.
28966         * lib/getopt.in.h (system_header): Likewise.
28967         * lib/iconv.in.h (system_header): Likewise.
28968         * lib/inttypes.in.h (system_header): Likewise.
28969         * lib/langinfo.in.h (system_header): Likewise.
28970         * lib/locale.in.h (system_header): Likewise.
28971         * lib/math.in.h (system_header): Likewise.
28972         * lib/netdb.in.h (system_header): Likewise.
28973         * lib/netinet_in.in.h (system_header): Likewise.
28974         * lib/pty.in.h (system_header): Likewise.
28975         * lib/sched.in.h (system_header): Likewise.
28976         * lib/se-selinux.in.h (system_header): Likewise.
28977         * lib/search.in.h (system_header): Likewise.
28978         * lib/spawn.in.h (system_header): Likewise.
28979         * lib/stdarg.in.h (system_header): Likewise.
28980         * lib/stdint.in.h (system_header): Likewise.
28981         * lib/string.in.h (system_header): Likewise.
28982         * lib/strings.in.h (system_header): Likewise.
28983         * lib/sys_file.in.h (system_header): Likewise.
28984         * lib/sys_ioctl.in.h (system_header): Likewise.
28985         * lib/sys_socket.in.h (system_header): Likewise.
28986         * lib/sys_times.in.h (system_header): Likewise.
28987         * lib/sys_utsname.in.h (system_header): Likewise.
28988         * lib/sys_wait.in.h (system_header): Likewise.
28989         * lib/sysexits.in.h (system_header): Likewise.
28990         * lib/unistd.in.h (system_header): Likewise.
28991         * lib/wctype.in.h (system_header): Likewise.
28992
28993         arpa/inet: fix mingw compilation warning
28994         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28995         Reported by Matthew Bolte.
28996
28997 2010-03-25  Bruno Haible  <bruno@clisp.org>
28998
28999         Avoid collision between gnulib wrapper and libintl wrapper.
29000         * lib/printf.c (printf): Don't define if a printf wrapper is already
29001         defined in intl/printf.c.
29002         Reported by Michel Boaventura <michel@michelboaventura.com>.
29003
29004 2010-03-25  Bruno Haible  <bruno@clisp.org>
29005
29006         Use ANSI C.
29007         * lib/readutmp.h (getutent): Provide ANSI C prototype.
29008
29009 2010-03-25  Bruno Haible  <bruno@clisp.org>
29010
29011         Minor formatting changes.
29012         * lib/acosl.c: Insert space before function argument list.
29013         * lib/argz.c: Likewise.
29014         * lib/asinl.c: Likewise.
29015         * lib/expl.c: Likewise.
29016         * lib/gen-uni-tables.c: Likewise.
29017         * lib/gettext.h: Likewise.
29018         * lib/glthread/lock.h: Likewise.
29019         * lib/tanl.c: Likewise.
29020         * lib/uniname/uniname.c: Likewise.
29021         * tests/test-idpriv-drop.c: Likewise.
29022         * tests/test-idpriv-droptemp.c: Likewise.
29023         * tests/test-lock.c: Likewise.
29024         * tests/test-tls.c: Likewise.
29025         * lib/argp-help.c: Insert space before function-like macro argument
29026         list.
29027         * lib/memcmp.c: Likewise.
29028         * tests/test-base64.c: Likewise.
29029         * lib/localename.c: Insert space before sizeof's argument list.
29030         * lib/safe-alloc.h: Likewise.
29031         * lib/file-set.h: Insert space before macro argument list.
29032         * tests/test-argp.c: Likewise.
29033         * lib/argp-namefrob.h: Insert space before function parameter list.
29034         * lib/getaddrinfo.c: Likewise.
29035         * lib/netdb.in.h: Likewise.
29036         * lib/parse-duration.h: Likewise.
29037         * lib/parse-duration.c: Likewise.
29038         * lib/poll.c: Likewise.
29039         * lib/select.c: Likewise.
29040         * lib/trim.h: Likewise.
29041         * tests/test-usleep.c: Likewise.
29042         * lib/ldexpl.c: Insert space before function parameter list and before
29043         function argument list.
29044         * lib/logl.c: Likewise.
29045         * lib/sqrtl.c: Likewise.
29046         * lib/trim.c: Likewise.
29047         * lib/cosl.c: Use GNU style indentation. Insert space before function
29048         argument list.
29049         * lib/sinl.c: Likewise.
29050         * lib/tsearch.c: Insert space after 'for'.
29051         Reported by Jim Meyering.
29052
29053 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
29054
29055         * maint.mk (sc_Wundef_boolean): Check for the presence of the
29056         config header before grepping, as it's not present before
29057         autoreconf/configure are run.  Reported by Simon Josefsson.
29058
29059 2010-03-23  Bruno Haible  <bruno@clisp.org>
29060
29061         pt_chown: Make it work with automake < 1.11.
29062         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
29063         Reported by Simon Josefsson.
29064
29065 2010-03-23  Bruno Haible  <bruno@clisp.org>
29066
29067         pt_chown: Don't depend on GPLed modules.
29068         * lib/pt_chown.c: Don't include idpriv.h.
29069         (main): Don't drop privileges.
29070         * modules/pt_chown (Depends-on): Remove idpriv-drop.
29071         Reported by Simon Josefsson.
29072
29073 2010-03-24  Simon Josefsson  <simon@josefsson.org>
29074
29075         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
29076         suggestions from karl@freefriends.org (Karl Berry).
29077
29078 2010-03-22  Eric Blake  <eblake@redhat.com>
29079
29080         gethostname: further tweaks
29081         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
29082         are overriding gethostname.
29083         Suggested by Bruno Haible.
29084
29085 2010-03-21  Bruno Haible  <bruno@clisp.org>
29086
29087         Fix comments.
29088         * lib/forkpty.c (rpl_forkpty): Fix comment.
29089         * lib/openpty.c (rpl_openpty): Likewise.
29090         Reported by Eric Blake.
29091
29092 2010-03-22  Eric Blake  <eblake@redhat.com>
29093
29094         gethostname: fix build on mingw
29095         * lib/unistd.in.h (includes): Work around fact that mingw
29096         <winsock2.h> re-includes <unistd.h>, by avoiding any
29097         redeclarations if we are being included by <winsock2.h>.
29098         Reported by Matthias Bolte.
29099
29100 2010-03-21  Bruno Haible  <bruno@clisp.org>
29101
29102         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29103         * lib/forkpty.c (forkpty): New replacement function, from glibc with
29104         modifications.
29105         * lib/pty.in.h (forkpty): Update declaration. Add comments.
29106         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
29107         provide the replacement.
29108         * modules/forkpty (Depends-on): Add openpty, login_tty.
29109         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
29110         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
29111         * doc/glibc-functions/forkpty.texi: More supported platforms.
29112         * config/srclist.txt: Add forkpty.c (commented).
29113
29114 2010-03-21  Bruno Haible  <bruno@clisp.org>
29115
29116         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
29117         (Makefile.am): Verify that PTY_LIB is defined.
29118
29119         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
29120
29121 2010-03-21  Bruno Haible  <bruno@clisp.org>
29122
29123         Tests for module 'login_tty'.
29124         * modules/login_tty-tests: New file.
29125         * tests/test-login_tty.c: New file.
29126
29127         New module 'login_tty'.
29128         * lib/login_tty.c: New file.
29129         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
29130         * modules/login_tty: New file.
29131         * doc/glibc-functions/login_tty.texi: Mention the new module.
29132
29133 2010-03-21  Bruno Haible  <bruno@clisp.org>
29134
29135         login_tty: Documentation.
29136         * doc/glibc-functions/login_tty.texi: New file.
29137         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
29138
29139 2010-03-21  Bruno Haible  <bruno@clisp.org>
29140
29141         pty: Consistent macro naming.
29142         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
29143         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
29144         * modules/pty (configure.ac): Update.
29145
29146 2010-03-21  Bruno Haible  <bruno@clisp.org>
29147
29148         Tests for openpty: Make stricter.
29149         * tests/test-openpty.c (main): Add test of canonical processing and
29150         erase.
29151         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
29152
29153         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29154         * lib/openpty.c (openpty): New replacement function.
29155         * lib/pty.in.h: Include <termios.h>.
29156         (openpty): Update declaration. Add comments.
29157         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
29158         is not declared, arrange to provide the replacement. Check for _getpty
29159         and posix_openpt.
29160         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
29161         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
29162         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
29163         * modules/pty-tests (test_pty_c___LDADD): New variable.
29164         * doc/glibc-functions/openpty.texi: More supported platforms.
29165
29166 2010-03-21  Bruno Haible  <bruno@clisp.org>
29167
29168         setenv: Tweaks.
29169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
29170         the test program.
29171         * doc/posix-functions/setenv.texi: Update platforms list.
29172
29173 2010-03-21  Bruno Haible  <bruno@clisp.org>
29174
29175         New module 'unlockpt'.
29176         * lib/unlockpt.c: New file, from glibc with modifications.
29177         * m4/unlockpt.m4: New file.
29178         * modules/unlockpt: New file.
29179         * lib/stdlib.in.h (unlockpt): New declaration.
29180         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
29181         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
29182         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
29183         HAVE_UNLOCKPT.
29184         * doc/posix-functions/unlockpt.texi: Mention the new module.
29185         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
29186         * config/srclist.txt: Add unlockpt.c (commented).
29187
29188 2010-03-21  Jim Meyering  <meyering@redhat.com>
29189
29190         maint.mk: prohibit inclusion of "intprops.h" without use
29191         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
29192
29193 2010-03-21  Bruno Haible  <bruno@clisp.org>
29194
29195         New module 'grantpt'.
29196         * lib/grantpt.c: New file, from glibc with modifications.
29197         * m4/grantpt.m4: New file.
29198         * modules/grantpt: New file.
29199         * lib/stdlib.in.h (grantpt): New declaration.
29200         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
29201         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
29202         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
29203         HAVE_GRANTPT.
29204         * doc/posix-functions/grantpt.texi: Mention the new module.
29205         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
29206         * config/srclist.txt: Add grantpt.c (commented).
29207
29208 2010-03-21  Bruno Haible  <bruno@clisp.org>
29209
29210         New module 'pt_chown'.
29211         * lib/pt_chown.c: New file, from glibc with modifications.
29212         * lib/pty-private.h: New file, from glibc with modifications.
29213         * modules/pt_chown: New file.
29214         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
29215
29216 2010-03-21  Bruno Haible  <bruno@clisp.org>
29217
29218         Tests for module 'ptsname'.
29219         * modules/ptsname-tests: New file.
29220         * tests/test-ptsname.c: New file.
29221
29222         New module 'ptsname'.
29223         * lib/ptsname.c: New file, from glibc with modifications.
29224         * m4/ptsname.m4: New file.
29225         * modules/ptsname: New file.
29226         * lib/stdlib.in.h (ptsname): New declaration.
29227         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
29228         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
29229         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
29230         HAVE_PTSNAME.
29231         * doc/posix-functions/ptsname.texi: Mention the new module.
29232         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
29233         * config/srclist.txt: Add ptsname.c (commented).
29234
29235 2010-03-21  Bruno Haible  <bruno@clisp.org>
29236
29237         Tests for module 'ttyname_r'.
29238         * modules/ttyname_r-tests: New file.
29239         * tests/test-ttyname_r.c: New file.
29240
29241         New module 'ttyname_r'.
29242         * lib/ttyname_r.c: New file.
29243         * m4/ttyname_r.m4: New file.
29244         * modules/ttyname_r: New file.
29245         * lib/unistd.in.h (ttyname_r): New declaration.
29246         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
29247         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
29248         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
29249         HAVE_TTYNAME_R.
29250         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
29251         * doc/posix-functions/ttyname_r.texi: Mention the new module.
29252
29253 2010-03-20  Bruno Haible  <bruno@clisp.org>
29254
29255         signal: Undefine macro definitions in C++ mode.
29256         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
29257         sigfillset): Undefine macro definitions from the system header in C++
29258         mode.
29259         Reported by John W. Eaton <jwe@gnu.org>.
29260
29261 2010-03-20  Bruno Haible  <bruno@clisp.org>
29262
29263         Ensure no #include statements inside extern "C" { ... }.
29264         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
29265         contain #include statements.
29266         * lib/time.in.h: Likewise.
29267
29268 2010-03-20  Bruno Haible  <bruno@clisp.org>
29269
29270         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
29271         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
29272         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
29273         Reported by John W. Eaton <jwe@gnu.org>.
29274
29275 2010-03-20  Bruno Haible  <bruno@clisp.org>
29276
29277         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
29278         Reported by Jim Meyering.
29279
29280 2010-03-20  Bruno Haible  <bruno@clisp.org>
29281
29282         pipe: Set errno upon failure.
29283         * lib/pipe.h: Specify that when -1 is returned, errno is set.
29284         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
29285         errno value in error message.
29286
29287 2010-03-20  Bruno Haible  <bruno@clisp.org>
29288             Jim Meyering  <meyering@redhat.com>
29289
29290         lchown: Avoid "unused variable" warning.
29291         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
29292
29293 2010-03-20  Bruno Haible  <bruno@clisp.org>
29294
29295         Work around unlink() bug on MacOS X 10.5.6.
29296         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
29297         attempting to unlink a parent directory.
29298         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
29299         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
29300         activate for the replacement function.
29301         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
29302
29303 2010-03-20  Bruno Haible  <bruno@clisp.org>
29304
29305         Fix link errors on Solaris 8.
29306         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
29307         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
29308
29309 2010-03-19  Jim Meyering  <meyering@redhat.com>
29310
29311         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
29312         The _LIBC implementation of build_range_exp correctly honors the
29313         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
29314         However, the non-_LIBC implementation would ignore that syntax-bit
29315         flag and return REG_ERANGE unconditionally.
29316         This change makes it honor that flag.
29317         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
29318         Make two pointer parameters "const".
29319         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
29320         (parse_bracket_exp): Update caller.
29321
29322         regex.m4: correct the reversed range endpoint ([b-a]) test
29323         * m4/regex.m4: When requiring that [b-a] evoke failure,
29324         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
29325         test pass once again for x86-based systems.
29326
29327 2010-03-19  Bruno Haible  <bruno@clisp.org>
29328
29329         scandir: Fix link error on Solaris 8.
29330         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
29331         macros.
29332
29333 2010-03-19  Bruno Haible  <bruno@clisp.org>
29334
29335         getusershell: Fix documentation.
29336         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
29337         module.
29338         * doc/glibc-functions/setusershell.texi: Likewise.
29339
29340         getusershell: Provide declaration, missing on Solaris 9.
29341         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
29342         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
29343         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
29344         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
29345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29346         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
29347         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
29348         HAVE_GETUSERSHELL.
29349         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
29350
29351 2010-03-19  Bruno Haible  <bruno@clisp.org>
29352
29353         wctype: Provide iswblank function.
29354         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
29355         exists and is fine.
29356         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
29357         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
29358         * tests/test-wctype.c (main): Re-enable the iswblank tests.
29359         * doc/posix-functions/iswblank.texi: Update.
29360
29361 2010-03-19  Bruno Haible  <bruno@clisp.org>
29362
29363         Tests of module 'pty' in C++ mode.
29364         * modules/pty-tests: New file.
29365         * tests/test-pty-c++.cc: New file.
29366         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29367
29368 2010-03-19  Eric Blake  <eblake@redhat.com>
29369
29370         logb: fix documentation
29371         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
29372         1.5 declaration bug.
29373
29374         forkpty, openpty: prefer glibc's const-safe prototype
29375         * lib/forkpty.c (rpl_forkpty): New file.
29376         * lib/openpty.c (rpl_openpty): Likewise.
29377         * modules/forkpty (Files): Distribute it.
29378         * modules/openpty (Files): Likewise.
29379         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
29380         check...
29381         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
29382         replacement for for non-const BSD signature.
29383         * modules/pty (Makefile.am): Substitute witnesses.
29384         * lib/pty.in.h (forkpty, openpty): Declare replacements.
29385         * tests/test-forkpty.c: Update signature check.
29386         * tests/test-openpty.c: Likewise.
29387         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
29388         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29389
29390         forkpty, openpty: split functions into new modules
29391         * modules/pty (Makefile.am): Substitute new witnesses.
29392         (Libraries): Move library detection...
29393         * modules/forkpty: ...into new module.
29394         * modules/openpty: Another new module.
29395         * modules/pty-tests: Rename and split...
29396         * modules/forkpty-tests: ...to this...
29397         * modules/openpty-tests: ...and this.
29398         * tests/test-pty.c: Rename and split...
29399         * tests/test-forkpty.c: ...to this...
29400         * tests/test-openpty.c: ...and this.
29401         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
29402         (gl_PTY): Split library searching...
29403         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
29404         (gl_FORKPTY, gl_OPENPTY): New macros.
29405         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
29406         * NEWS: Mention the split.
29407         * MODULES.html.sh (Misc): Document the modules.
29408         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
29409         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29410
29411         pty: improve replacement header
29412         * lib/pty.in.h: New file.
29413         * modules/pty (Files): Ship it.
29414         (Makefile.am): Always build replacement.
29415         * m4/pty.m4: Rename...
29416         * m4/pty_h.m4: ...to this.
29417         (gl_PTY): Modernize setting of witness macros; update check of
29418         forkpty to take proper advantage of cache.
29419         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
29420
29421         getopt: avoid compiler warning
29422         * lib/getopt.c (attribute_hidden): Remove unused macro.
29423
29424 2010-03-18  Bruno Haible  <bruno@clisp.org>
29425
29426         Fix link errors on Solaris 8.
29427         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
29428         * modules/search-tests (test_search_c___LDADD): Likewise.
29429         * modules/signal-tests (test_signal_c___LDADD): Likewise.
29430         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
29431         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
29432         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
29433         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
29434         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
29435         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
29436
29437 2010-03-18  Bruno Haible  <bruno@clisp.org>
29438
29439         Fix bug introduced on 2010-03-14.
29440         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
29441         (gl_SPAWN_H): Require it.
29442         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
29443         Reported by Simon Josefsson.
29444
29445 2010-03-18  Bruno Haible  <bruno@clisp.org>
29446
29447         Fix typo introduced on 2009-12-31.
29448         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
29449         posix_spawn_file_actions_adddup2.
29450
29451 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
29452         and Eric Blake  <eblake@redhat.com>
29453
29454         test-vc-list-files-git: make more robust
29455         * tests/test-vc-list-files-git.sh: Unset problematic environment
29456         variables.  Chain commands together.
29457
29458 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
29459
29460         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
29461         `AC_CHECK_DECL' invocation.
29462
29463 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
29464
29465         * lib/inttostr.c (inttostr): Make sure the invocation of verify
29466         appears before executable statements. Suggested by Petr Sumbera
29467         <Petr.Sumbera@Sun.COM>.
29468
29469 2010-03-14  Bruno Haible  <bruno@clisp.org>
29470
29471         * tests/test-flock.c (test_exclusive): Comment out a test that causes
29472         portability problems. Instead use a simpler test.
29473         (main): Check that invalid arguments are rejected only on Linux.
29474
29475 2010-03-14  Bruno Haible  <bruno@clisp.org>
29476
29477         Fix bug introduced on 2009-12-31.
29478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29479         gl_PREREQ_SYS_H_WINSOCK2 always.
29480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
29481         SYS_SOCKET_H variable.
29482         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
29483         Update comments.
29484         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
29485         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29486         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29488         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29489
29490 2010-03-14  Bruno Haible  <bruno@clisp.org>
29491
29492         Fix values returned by sinl, cosl.
29493         * lib/trigl.h: Add specification comments.
29494         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
29495         that combines the values from the precomputed table with the values of
29496         the Chebyshev polynomials.
29497
29498 2010-03-14  Bruno Haible  <bruno@clisp.org>
29499
29500         Fix compilation error when modules 'posix_spawn[p]' are not used.
29501         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
29502         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
29503
29504 2010-03-14  Bruno Haible  <bruno@clisp.org>
29505
29506         Fix compilation error on mingw when module 'time_r' is not used.
29507         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
29508         is 1.
29509         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
29510         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29511         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
29512         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
29513
29514 2010-03-14  Bruno Haible  <bruno@clisp.org>
29515
29516         Fix compilation error with Sun C.
29517         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
29518         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
29519         instead of GCC specific ULONG_LONG_MAX.
29520         * lib/xstrtoll.c: Likewise.
29521         * lib/xstrtoull.c: Likewise.
29522
29523 2010-03-13  Bruno Haible  <bruno@clisp.org>
29524
29525         Allow the user to disable C++ code and tests.
29526         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
29527         (gl_PROG_ANSI_CXX): Require it.
29528
29529 2010-03-13  Bruno Haible  <bruno@clisp.org>
29530
29531         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
29532         cases.
29533
29534 2010-03-13  Bruno Haible  <bruno@clisp.org>
29535
29536         Test that gnulib does not break the standard C++ headers.
29537         * tests/test-locale-c++2.cc: New file.
29538         * modules/locale-tests (Files): Add it.
29539         (Makefile.am): Compile it for test-locale-c++.
29540         * tests/test-math-c++2.cc: New file.
29541         * modules/math-tests (Files): Add it.
29542         (Makefile.am): Compile it for test-math-c++.
29543         * tests/test-signal-c++2.cc: New file.
29544         * modules/signal-tests (Files): Add it.
29545         (Makefile.am): Compile it for test-signal-c++.
29546         * tests/test-stdio-c++2.cc: New file.
29547         * modules/stdio-tests (Files): Add it.
29548         (Makefile.am): Compile it for test-stdio-c++.
29549         * tests/test-stdlib-c++2.cc: New file.
29550         * modules/stdlib-tests (Files): Add it.
29551         (Makefile.am): Compile it for test-stdlib-c++.
29552         * tests/test-string-c++2.cc: New file.
29553         * modules/string-tests (Files): Add it.
29554         (Makefile.am): Compile it for test-string-c++.
29555         * tests/test-time-c++2.cc: New file.
29556         * modules/time-tests (Files): Add it.
29557         (Makefile.am): Compile it for test-time-c++.
29558         Reported by John W. Eaton <jwe@gnu.org>.
29559
29560 2010-03-13  Bruno Haible  <bruno@clisp.org>
29561
29562         * gnulib-tool (func_usage): Clarify which options are available for
29563         --create-testdir and --create-megatestdir.
29564
29565 2010-03-13  Bruno Haible  <bruno@clisp.org>
29566
29567         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
29568         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
29569         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
29570         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29571         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
29572         when appropriate.
29573         Reported by Jim Meyering.
29574
29575 2010-03-12  Simon Josefsson  <simon@josefsson.org>
29576
29577         * gnulib-tool (func_import): Explain origin of code.
29578
29579 2010-03-12  Bruno Haible  <bruno@clisp.org>
29580
29581         Fix problem with automake's definition of CXXLINK.
29582         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
29583         Reported by Simon Josefsson and Ludovic Courtès.
29584
29585 2010-03-12  Bruno Haible  <bruno@clisp.org>
29586
29587         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
29588         stable releases.
29589
29590 2010-03-11  Bruno Haible  <bruno@clisp.org>
29591
29592         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
29593         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
29594         whether the system provides one variant or multiple variants of the
29595         function.
29596         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
29597         C++ compilers.
29598         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
29599         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
29600         Reported by Jim Meyering.
29601
29602 2010-03-09  Simon Josefsson  <simon@josefsson.org>
29603
29604         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
29605
29606 2010-03-08  Bruno Haible  <bruno@clisp.org>
29607
29608         gnulib-tool: Add support for --libtool in --create-testdir.
29609         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
29610         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
29611
29612 2010-03-08  Eric Blake  <eblake@redhat.com>
29613
29614         gnulib-tool.texi: mention possibility of git submodule
29615         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
29616         submodules.
29617         * doc/.gitignore: Ignore another generated file.
29618
29619 2010-03-08  Karl Berry  <karl@gnu.org>
29620
29621         * doc/gnulib-tool.texi (VCS Issues): Mention third option
29622         of committing gnulib files while skipping others.
29623
29624 2010-03-07  Bruno Haible  <bruno@clisp.org>
29625
29626         Tests of module 'wctype' in C++ mode.
29627         * tests/test-wctype-c++.cc: New file.
29628         * modules/wctype-tests (Files): Add it and tests/signature.h.
29629         (Depends-on): Add ansi-c++-opt.
29630         (Makefile.am): Arrange to compile and run test-wctype-c++.
29631
29632         Tests of module 'wchar' in C++ mode.
29633         * tests/test-wchar-c++.cc: New file.
29634         * modules/wchar-tests (Files): Add it and tests/signature.h.
29635         (Depends-on): Add ansi-c++-opt.
29636         (Makefile.am): Arrange to compile and run test-wchar-c++.
29637         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
29638         gl_MODULE_INDICATOR.
29639
29640         Tests of module 'unistd' in C++ mode.
29641         * tests/test-unistd-c++.cc: New file.
29642         * modules/unistd-tests (Files): Add it and tests/signature.h.
29643         (Depends-on): Add ansi-c++-opt.
29644         (Makefile.am): Arrange to compile and run test-unistd-c++.
29645         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
29646         gl_MODULE_INDICATOR.
29647
29648         Tests of module 'time' in C++ mode.
29649         * tests/test-time-c++.cc: New file.
29650         * modules/time-tests (Files): Add it and tests/signature.h.
29651         (Depends-on): Add ansi-c++-opt.
29652         (Makefile.am): Arrange to compile and run test-time-c++.
29653         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29654
29655         Tests of module 'sys_time' in C++ mode.
29656         * tests/test-sys_time-c++.cc: New file.
29657         * modules/sys_time-tests (Files): Add it and tests/signature.h.
29658         (Depends-on): Add ansi-c++-opt.
29659         (Makefile.am): Arrange to compile and run test-sys_time-c++.
29660         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
29661         gl_MODULE_INDICATOR.
29662
29663         Tests of module 'sys_stat' in C++ mode.
29664         * tests/test-sys_stat-c++.cc: New file.
29665         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
29666         (Depends-on): Add ansi-c++-opt.
29667         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
29668         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
29669         gl_MODULE_INDICATOR.
29670
29671         Tests of module 'sys_socket' in C++ mode.
29672         * tests/test-sys_socket-c++.cc: New file.
29673         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
29674         (Depends-on): Add ansi-c++-opt.
29675         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
29676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
29677         gl_MODULE_INDICATOR.
29678
29679         Tests of module 'sys_select' in C++ mode.
29680         * tests/test-sys_select-c++.cc: New file.
29681         * modules/sys_select-tests (Files): Add it and tests/signature.h.
29682         (Depends-on): Add ansi-c++-opt.
29683         (Makefile.am): Arrange to compile and run test-sys_select-c++.
29684         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
29685         gl_MODULE_INDICATOR.
29686
29687         Tests of module 'sys_ioctl' in C++ mode.
29688         * tests/test-sys_ioctl-c++.cc: New file.
29689         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
29690         (Depends-on): Add ansi-c++-opt.
29691         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
29692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
29693         gl_MODULE_INDICATOR.
29694
29695         Tests of module 'string' in C++ mode.
29696         * tests/test-string-c++.cc: New file.
29697         * modules/string-tests (Files): Add it and tests/signature.h.
29698         (Depends-on): Add ansi-c++-opt.
29699         (Makefile.am): Arrange to compile and run test-string-c++.
29700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
29701         gl_MODULE_INDICATOR.
29702
29703         Tests of module 'stdlib' in C++ mode.
29704         * tests/test-stdlib-c++.cc: New file.
29705         * modules/stdlib-tests (Files): Add it and tests/signature.h.
29706         (Depends-on): Add ansi-c++-opt.
29707         (Makefile.am): Arrange to compile and run test-stdlib-c++.
29708         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
29709         gl_MODULE_INDICATOR.
29710
29711         Tests of module 'stdio' in C++ mode.
29712         * tests/test-stdio-c++.cc: New file.
29713         * modules/stdio-tests (Files): Add it and tests/signature.h.
29714         (Depends-on): Add ansi-c++-opt.
29715         (Makefile.am): Arrange to compile and run test-stdio-c++.
29716         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
29717         gl_MODULE_INDICATOR.
29718
29719         Tests of module 'spawn' in C++ mode.
29720         * tests/test-spawn-c++.cc: New file.
29721         * modules/spawn-tests (Files): Add it and tests/signature.h.
29722         (Depends-on): Add ansi-c++-opt.
29723         (Makefile.am): Arrange to compile and run test-spawn-c++.
29724         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
29725         gl_MODULE_INDICATOR.
29726
29727         Tests of module 'signal' in C++ mode.
29728         * tests/test-signal-c++.cc: New file.
29729         * modules/signal-tests (Files): Add it and tests/signature.h.
29730         (Depends-on): Add ansi-c++-opt.
29731         (Makefile.am): Arrange to compile and run test-signal-c++.
29732         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
29733         gl_MODULE_INDICATOR.
29734
29735         Tests of module 'search' in C++ mode.
29736         * tests/test-search-c++.cc: New file.
29737         * modules/search-tests (Files): Add it and tests/signature.h.
29738         (Depends-on): Add ansi-c++-opt.
29739         (Makefile.am): Arrange to compile and run test-search-c++.
29740         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
29741         gl_MODULE_INDICATOR.
29742
29743         Tests of module 'math' in C++ mode.
29744         * tests/test-math-c++.cc: New file.
29745         * modules/math-tests (Files): Add it and tests/signature.h.
29746         (Depends-on): Add ansi-c++-opt.
29747         (Makefile.am): Arrange to compile and run test-math-c++.
29748         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29749
29750         Tests of module 'locale' in C++ mode.
29751         * tests/test-locale-c++.cc: New file.
29752         * modules/locale-tests (Files): Add it and tests/signature.h.
29753         (Depends-on): Add ansi-c++-opt.
29754         (Makefile.am): Arrange to compile and run test-locale-c++.
29755         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
29756         gl_MODULE_INDICATOR.
29757
29758         Tests of module 'langinfo' in C++ mode.
29759         * tests/test-langinfo-c++.cc: New file.
29760         * modules/langinfo-tests (Files): Add it and tests/signature.h.
29761         (Depends-on): Add ansi-c++-opt.
29762         (Makefile.am): Arrange to compile and run test-langinfo-c++.
29763         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
29764         gl_MODULE_INDICATOR.
29765
29766         Tests of module 'iconv-h' in C++ mode.
29767         * tests/test-iconv-h-c++.cc: New file.
29768         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
29769         (Depends-on): Add ansi-c++-opt.
29770         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
29771
29772         Tests of module 'glob' in C++ mode.
29773         * tests/test-glob-c++.cc: New file.
29774         * modules/glob-tests (Files): Add it.
29775         (Depends-on): Add ansi-c++-opt.
29776         (Makefile.am): Arrange to compile and run test-glob-c++.
29777
29778         Tests of module 'fcntl-h' in C++ mode.
29779         * tests/test-fcntl-h-c++.cc: New file.
29780         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
29781         (Depends-on): Add ansi-c++-opt.
29782         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
29783         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
29784         gl_MODULE_INDICATOR.
29785
29786         Tests of module 'dirent' in C++ mode.
29787         * tests/test-dirent-c++.cc: New file.
29788         * modules/dirent-tests (Files): Add it and tests/signature.h.
29789         (Depends-on): Add ansi-c++-opt.
29790         (Makefile.am): Arrange to compile and run test-dirent-c++.
29791         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29792         gl_MODULE_INDICATOR.
29793
29794         New module 'ansi-c++-opt'.
29795         * modules/ansi-c++-opt: New file.
29796         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
29797
29798         Document C++ namespace mode.
29799         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
29800
29801         wctype: Avoid #define replacements in C++ mode.
29802         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
29803         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
29804         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
29805         In C++, define a namespaced alias symbol.
29806         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29807         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29808         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29809         rule.
29810
29811         wchar: Avoid #define replacements in C++ mode.
29812         * lib/wchar.in.h: Include c++defs.h.
29813         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29814         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29815         symbol.
29816         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29817         * modules/wchar (Depends-on): Add c++defs.
29818         (Makefile.am): Update wchar.h rule.
29819
29820         unistd: Avoid #define replacements in C++ mode.
29821         * lib/unistd.in.h: Include c++defs.h.
29822         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29823         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29824         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29825         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29826         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29827         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29828         symbol.
29829         (environ): Update.
29830         * modules/unistd (Depends-on): Add c++defs.
29831         (Makefile.am): Update unistd.h rule.
29832
29833         time: Avoid #define replacements in C++ mode.
29834         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29835         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29836         define a namespaced alias symbol.
29837         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29838         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29839         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29840         * modules/time (Depends-on): Add c++defs, warn-on-use.
29841         (Makefile.am): Update time.h rule.
29842         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29843         * modules/nanosleep (configure.ac): Likewise.
29844         * modules/strptime (configure.ac): Likewise.
29845         * modules/timegm (configure.ac): Likewise.
29846
29847         sys_time: Avoid #define replacements in C++ mode.
29848         * lib/sys_time.in.h: Include c++defs.h.
29849         (gettimeofday): In C++, define a namespaced alias symbol.
29850         * modules/sys_time (Depends-on): Add c++defs.
29851         (Makefile.am): Update sys/time.h rule.
29852
29853         sys_stat: Avoid #define replacements in C++ mode.
29854         * lib/sys_stat.in.h: Include c++defs.h.
29855         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29856         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29857         namespaced alias symbol.
29858         In C++, define a namespaced alias symbol.
29859         * modules/sys_stat (Depends-on): Add c++defs.
29860         (Makefile.am): Update sys/stat.h rule.
29861
29862         sys_socket: Avoid #define replacements in C++ mode.
29863         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29864         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29865         definitions also when the system has a <sys/socket.h>.
29866         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29867         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29868         In C++, define a namespaced alias symbol.
29869         * modules/sys_socket (Depends-on): Add c++defs.
29870         (Makefile.am): Update sys/socket.h rule.
29871
29872         sys_select: Avoid #define replacements in C++ mode.
29873         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29874         definitions also when the system has a <sys/select.h>.
29875         (select): In C++, define a namespaced alias symbol.
29876         * modules/sys_select (Depends-on): Add c++defs.
29877         (Makefile.am): Update sys/select.h rule.
29878
29879         sys_ioctl: Avoid #define replacements in C++ mode.
29880         * lib/sys_ioctl.in.h: Include c++defs.h.
29881         (ioctl): In C++, define a namespaced alias symbol.
29882         * modules/sys_ioctl (Depends-on): Add c++defs.
29883         (Makefile.am): Update sys/ioctl.h rule.
29884
29885         string: Avoid #define replacements in C++ mode.
29886         * lib/string.in.h: Include c++defs.h.
29887         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29888         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29889         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29890         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29891         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29892         * modules/string (Depends-on): Add c++defs.
29893         (Makefile.am): Update string.h rule.
29894
29895         stdlib: Avoid #define replacements in C++ mode.
29896         * lib/stdlib.in.h: Include c++defs.h.
29897         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29898         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29899         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29900         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29901         symbol.
29902         * modules/stdlib (Depends-on): Add c++defs.
29903         (Makefile.am): Update stdlib.h rule.
29904
29905         stdio: Avoid #define replacements in C++ mode.
29906         * lib/stdio.in.h: Include c++defs.h.
29907         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29908         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29909         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29910         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29911         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29912         namespaced alias symbol.
29913         * modules/stdio (Depends-on): Add c++defs.
29914         (Makefile.am): Update stdio.h rule.
29915
29916         spawn: Avoid #define replacements in C++ mode.
29917         * lib/spawn.in.h: Include c++defs.h.
29918         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29919         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29920         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29921         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29922         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29923         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29924         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29925         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29926         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29927         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29928         In C++, define a namespaced alias symbol.
29929         * modules/spawn (Depends-on): Add c++defs.
29930         (Makefile.am): Update spawn.h rule.
29931
29932         signal: Avoid #define replacements in C++ mode.
29933         * lib/signal.in.h: Include c++defs.h.
29934         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29935         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29936         namespaced alias symbol.
29937         * modules/signal (Depends-on): Add c++defs.
29938         (Makefile.am): Update signal.h rule.
29939
29940         search: Avoid #define replacements in C++ mode.
29941         * lib/search.in.h: Include c++defs.h.
29942         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29943         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29944         symbol.
29945         * modules/search (Depends-on): Add c++defs.
29946         (Makefile.am): Update search.h rule.
29947
29948         math: Avoid #define replacements in C++ mode.
29949         * lib/math.in.h: Include c++defs.h.
29950         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29951         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29952         trunc, truncl): In C++, define a namespaced alias symbol.
29953         * modules/math (Depends-on): Add c++defs.
29954         (Makefile.am): Update math.h rule.
29955
29956         locale: Avoid #define replacements in C++ mode.
29957         * lib/locale.in.h: Include c++defs.h.
29958         (duplocale): In C++, define a namespaced alias symbol.
29959         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29960         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29961         * modules/locale (Depends-on): Add c++defs.
29962         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29963
29964         langinfo: Avoid #define replacements in C++ mode.
29965         * lib/langinfo.in.h: Include c++defs.h.
29966         (nl_langinfo): In C++, define a namespaced alias symbol.
29967         * modules/langinfo (Depends-on): Add c++defs.
29968         (Makefile.am): Update langinfo.h rule.
29969
29970         iconv-h: Avoid #define replacements in C++ mode.
29971         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29972         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29973         symbol.
29974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29975         whenever iconv is present.
29976         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29977         (Makefile.am): Update iconv.h rule.
29978
29979         glob: Avoid #define replacements in C++ mode.
29980         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29981         (_gl_glob_errfunc_fn): New type.
29982         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29983         symbol.
29984         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29985         (Makefile.am): Update glob.h rule.
29986
29987         fcntl-h: Avoid #define replacements in C++ mode.
29988         * lib/fcntl.in.h: Include c++defs.h.
29989         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29990         * modules/fcntl-h (Depends-on): Add c++defs.
29991         (Makefile.am): Update fcntl.h rule.
29992
29993         dirent: Avoid #define replacements in C++ mode.
29994         * lib/dirent.in.h: Include c++defs.h.
29995         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29996         namespaced alias symbol.
29997         (dirfd): Update declaration.
29998         * modules/dirent (Depends-on): Add c++defs.
29999         (Makefile.am): Update dirent.h rule.
30000
30001         ctype: Make it usable in C++ code.
30002         * lib/ctype.in.h: Include c++defs.h.
30003         (isblank): Declare as extern "C".
30004         * modules/ctype (Depends-on): Add c++defs.
30005         (Makefile.am): Update ctype.h rule.
30006
30007         New module 'c++defs'.
30008         * modules/c++defs: New file.
30009         * build-aux/c++defs.h: New file.
30010         Reported by John W. Eaton <jwe@gnu.org>.
30011
30012 2010-03-07  Bruno Haible  <bruno@clisp.org>
30013
30014         logb: Provide missing declaration for Cygwin.
30015         * lib/math.in.h (logb): New declaration.
30016         * m4/logb.m4: New file.
30017         * modules/logb (Files): Add m4/logb.m4.
30018         (Depends-on): Add math.
30019         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
30020         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
30021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
30022         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
30023         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
30024
30025 2010-03-07  Bruno Haible  <bruno@clisp.org>
30026
30027         Fix test-cond link error.
30028         * tests/test-cond.c: Include <stdio.h>.
30029
30030 2010-03-07  Bruno Haible  <bruno@clisp.org>
30031
30032         Fix test-dirent-safer link error.
30033         * modules/dirent-safer-tests (Makefile.am): Define
30034         test_dirent_safer_LDADD.
30035
30036 2010-03-07  Bruno Haible  <bruno@clisp.org>
30037
30038         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
30039         among default module list.
30040
30041 2010-03-07  Bruno Haible  <bruno@clisp.org>
30042
30043         Fix link error on platforms with GNU libiconv.
30044         * modules/unistr/u8-strcoll-tests (Makefile): Define
30045         test_u8_strcoll_LDADD.
30046         * modules/unistr/u16-strcoll-tests (Makefile): Define
30047         test_u16_strcoll_LDADD.
30048         * modules/unistr/u32-strcoll-tests (Makefile): Define
30049         test_u32_strcoll_LDADD.
30050
30051 2010-03-07  Bruno Haible  <bruno@clisp.org>
30052
30053         Use POSIX declarations for socket functions.
30054         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
30055         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
30056         rpl_sendto): Change declaration to match POSIX.
30057         * lib/connect.c (rpl_connect): Likewise.
30058         * lib/accept.c (rpl_accept): Likewise.
30059         * lib/bind.c (rpl_bind): Likewise.
30060         * lib/getpeername.c (rpl_getpeername): Likewise.
30061         * lib/getsockname.c (rpl_getsockname): Likewise.
30062         * lib/recv.c (rpl_recv): Likewise.
30063         * lib/send.c (rpl_send): Likewise.
30064         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30065         * lib/sendto.c (rpl_sendto): Likewise.
30066
30067 2010-03-06  Bruno Haible  <bruno@clisp.org>
30068
30069         Clarify access, euidaccess, faccessat.
30070         * doc/posix-functions/faccessat.texi: Mention security problem under
30071         "Other problems", not "Portability problems".
30072         * doc/posix-functions/access.texi: Likewise. Mention a related security
30073         problem.
30074         * doc/glibc-functions/euidaccess.texi: Mention security problems.
30075         * lib/euidaccess.c: Add comments about platforms.
30076         * lib/unistd.in.h (access, euidaccess): Add warnings.
30077
30078 2010-03-07  Bruno Haible  <bruno@clisp.org>
30079
30080         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
30081         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
30082         (POSIX_SPAWN_SETSCHEDULER): Likewise.
30083         (POSIX_SPAWN_USEVFORK): Define in a way that works when
30084         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30085         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
30086         declare when POSIX_SPAWN_SETSCHEDULER is zero.
30087         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
30088         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
30089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
30090         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
30091         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
30092         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
30093         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
30094         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
30095         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
30096         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
30097         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
30098         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
30099         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
30100         Likewise.
30101         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
30102         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
30103         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
30104         Likewise.
30105         * tests/test-spawn.c (main): Make it work when
30106         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30107
30108 2010-03-07  Bruno Haible  <bruno@clisp.org>
30109
30110         Fix incorrect Makefile.am generation in German locale.
30111         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30112         Execute sed command with character range in C locale.
30113
30114 2010-03-06  Bruno Haible  <bruno@clisp.org>
30115
30116         Tests for module 'iconv-h'.
30117         * modules/iconv-h-tests: New file.
30118         * tests/test-iconv-h.c: New file.
30119
30120         New module 'iconv-h'.
30121         * modules/iconv-h: New file.
30122         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
30123         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
30124         (configure.ac): Remove gl_ICONV_H.
30125         (Makefile.am): Remove rule for iconv.h.
30126
30127 2010-03-06  Bruno Haible  <bruno@clisp.org>
30128
30129         More consistent naming of *.m4 files.
30130         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
30131         * modules/wctype (Files): Update.
30132
30133         More consistent naming of *.m4 files.
30134         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
30135         * modules/wchar (Files): Update.
30136
30137 2010-03-06  Jim Meyering  <meyering@redhat.com>
30138
30139         euidaccess: relax license to LGPLv2+
30140         * modules/euidaccess (License): Relax to LGPLv2+.
30141
30142 2010-03-06  Bruno Haible  <bruno@clisp.org>
30143
30144         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
30145         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
30146         (Makefile.am): Augment lib_SOURCES instead.
30147
30148 2010-03-04  Jim Meyering  <meyering@redhat.com>
30149
30150         utime: remove obsolete module
30151         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
30152         unnecessary for years, and has been marked as obsolete for 10 months.
30153         * modules/utime: Remove file.
30154         * lib/utime.c: Remove file.
30155         * m4/utime.m4: Remove file.
30156         * m4/utimes-null.m4: Remove file.
30157         * doc/posix-functions/utime.texi (utime): Remove reference to
30158         the module.  Move the sole "fixed by gnulib" item into the
30159         "problems not fixed by Gnulib" list.
30160         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
30161
30162 2010-03-05  Simon Josefsson  <simon@josefsson.org>
30163
30164         * modules/exit (License): Relax license to LGPLv2+.
30165         (Status): Mark as obsolete.
30166         * NEWS: Mention deprecated 'exit' module.
30167         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
30168         of now obsolete 'exit'.
30169
30170 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30171
30172         fts-lgpl: remove unused module
30173         * modules/fts-lgpl: Remove.
30174         * MODULES.html.sh (func_all_modules): Adjust.
30175         * check-module (find_included_lib_files): Adjust.
30176         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
30177
30178 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
30179
30180         copy-acl: enhance Solaris ACL error handling
30181         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
30182         * lib/set-mode-acl.c (qset_acl): Likewise.
30183
30184 2010-03-02  Bruno Haible  <bruno@clisp.org>
30185
30186         spawn: Don't override the system defined values on FreeBSD 8.
30187         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
30188         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
30189         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
30190         if HAVE_POSIX_SPAWN is 1.
30191         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
30192
30193 2010-03-01  Bruno Haible  <bruno@clisp.org>
30194
30195         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
30196         regarding Automake.
30197
30198 2010-02-25  Bruno Haible  <bruno@clisp.org>
30199
30200         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
30201         * gnulib-tool: Define 'echo' as a function only before the ksh alias
30202         setting, not afterwards.
30203         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
30204
30205 2010-02-24  Eric Blake  <eblake@redhat.com>
30206
30207         bootstrap, git-version-gen: use timestamp
30208         * build-aux/git-version-gen (scriptversion): Force UTC.
30209         * build-aux/bootstrap (scriptversion): New variable.
30210
30211         bootstrap: allow older git
30212         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
30213         older than 1.6.4.  Requested by the libvirt project.
30214
30215 2010-02-23  Eric Blake  <eblake@redhat.com>
30216
30217         warn-on-use: work with old autoconf
30218         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
30219         AS_VAR semantics of autoconf 2.60.
30220         Reported by Bruno Haible.
30221
30222         bootstrap: improve some comments
30223         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
30224         clarification comments.
30225
30226         gettimeofday: provide correct function
30227         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
30228         when replacement is declared, otherwise provide gettimeofday.
30229         Reported by Michael Goffioul.
30230
30231 2010-02-23  Jim Meyering  <meyering@redhat.com>
30232
30233         lib-ignore: relax license to "unlimited", not LGPLv2+
30234         * modules/lib-ignore (License): Relax to "unlimited".
30235
30236 2010-02-23  Jim Meyering  <meyering@redhat.com>
30237
30238         lib-ignore: relax license to LGPLv2+
30239         * modules/lib-ignore (License): Relax to LGPLv2+.
30240
30241 2010-02-22  Eric Blake  <eblake@redhat.com>
30242
30243         lseek: avoid bash 3.2 broken pipe bug
30244         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
30245         warning from bash 3.2.
30246         Reported by Ben Pfaff, with analysis from Bruno Haible.
30247
30248         bootstrap: support non-FSF copyright holder
30249         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
30250         bootstrap.conf override of COPYRIGHT_HOLDER.
30251         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
30252
30253         bootstrap: interoperate with gettext 0.14.1
30254         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
30255
30256         bootstrap: allow for alternate submodule location
30257         * build-aux/bootstrap (gnulib_path): New variable; use instead of
30258         hardcoding submodule location.
30259         (gnulib_mk): Allow direct use of Makefile.am.
30260
30261         bootstrap: use GNULIB_SRCDIR to reduce disk usage
30262         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
30263         rather than reconfiguring where the submodule points.
30264
30265         gettimeofday: restore support for platforms that lack function
30266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
30267         replacement if function is missing.
30268         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
30269         * modules/sys_time (Makefile.am): Substitute it.
30270         * lib/sys_time.in.h (gettimeofday): Check it.
30271         Reported by Michael Goffioul.
30272
30273 2010-02-21  Bruno Haible  <bruno@clisp.org>
30274
30275         * lib/stdio.in.h (obstack_printf): Fix typo.
30276
30277 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
30278
30279         vc-list-files: use bzr ls's -R option
30280         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
30281         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
30282
30283 2010-02-21  Jim Meyering  <meyering@redhat.com>
30284
30285         init.sh: fix EXEEXT shims to work also for names like test-prog
30286         * tests/init.sh: Re-exec a better shell, when needed.
30287         If the current shell lacks support for posix $(...), an init.sh-using
30288         test will now try to find a shell that supports that.  If EXEEXT is
30289         nonempty, we also require support for hyphen-in-alias-name and shell
30290         substitutions like ${var#glob}.  Failure to find such a shell results
30291         in a skipped test.
30292
30293 2010-02-21  Bruno Haible  <bruno@clisp.org>
30294
30295         Really work around around "broken pipe" error message from bash 3.2.
30296         * gnulib-tool (func_reset_sigpipe): Remove function.
30297         (echo): In bash 3.2, define to a function that uses printf.
30298         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
30299
30300 2010-02-20  Bruno Haible  <bruno@clisp.org>
30301
30302         Restore support for automake 1.9.6 with autoconf 2.61.
30303         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
30304         Reported by James Youngman <jay@gnu.org>.
30305
30306 2010-02-20  Bruno Haible  <bruno@clisp.org>
30307
30308         Improve *printf warning condition.
30309         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
30310         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
30311         and the function is overridden due to SIGPIPE emulation.
30312
30313 2010-02-20  Bruno Haible  <bruno@clisp.org>
30314
30315         * lib/stdio.in.h: Tweak comments.
30316
30317 2010-02-19  Bruno Haible  <bruno@clisp.org>
30318
30319         Make it easier to find modules. New gnulib-tool option '--find'.
30320         * gnulib-tool: New option --find.
30321         (func_usage): Document it.
30322         (func_sanitize_modulelist): New function, extracted from
30323         func_all_modules.
30324         (func_all_modules): Invoke it.
30325         * doc/gnulib-tool.texi (Which modules?): New node.
30326
30327 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
30328
30329         * lib/sys_select.in.h: Provide select replacement even if
30330         sys/select.h exists on a system, for Interix.
30331
30332 2010-02-18  Jim Meyering  <meyering@redhat.com>
30333
30334         init.sh: don't use $(...) just yet
30335         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
30336         to accommodate e.g., Solaris' /bin/sh.
30337
30338 2010-02-17  Bruno Haible  <bruno@clisp.org>
30339
30340         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
30341         Reported by Ludovic Courtès <ludo@gnu.org>.
30342
30343 2010-02-16  Simon Josefsson  <simon@josefsson.org>
30344
30345         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
30346         linking with -lintl.
30347
30348 2010-02-17  Simon Josefsson  <simon@josefsson.org>
30349
30350         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
30351         if not provided by the system's netdb.h.  Reported by
30352         ludo@gnu.org (Ludovic Courtès).
30353
30354 2010-02-15  Jim Meyering  <meyering@redhat.com>
30355
30356         init.sh: improve portability and efficiency
30357         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
30358         "dummy" in a for loop.
30359         Use '!', not '^' to select the complement of a character set used
30360         in a "case" statement.
30361         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
30362         Suggestions from Eric Blake.
30363
30364         init.sh: automatically accommodate programs with the .exe suffix
30365         Automatically arrange for an invocation of "prog" to execute the
30366         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
30367         may use the simpler "prog", yet still work when built on a system
30368         that requires specifying the added suffix.
30369         Do this by constructing a function named "prog" that invokes
30370         "prog.exe" for each .exe file in selected directories.
30371         * tests/init.sh (find_exe_basenames_): New function.
30372         (create_exe_shim_functions_): New function.
30373         (path_prepend_): Use it.
30374
30375         maint.mk: mark syntax-check sc_*.m rules as .PHONY
30376         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
30377         "make -t syntax-check" doesn't create a ton of sc_*.m files.
30378
30379 2010-02-14  Jim Meyering  <meyering@redhat.com>
30380
30381         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
30382         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
30383         (sc_prohibit_hash_pjw_without_use): New rule.
30384
30385         maint.mk: allow the default upload destination dir to be overridden
30386         * top/maint.mk (upload_dest_dir_): Define with a default that
30387         preserves the status quo.
30388         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
30389         Reported by Peter Simons.
30390
30391         maint.mk: prohibit inclusion of "hash.h" without_use
30392         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
30393
30394 2010-02-10  Jim Meyering  <meyering@redhat.com>
30395
30396         maint.mk: prohibit inclusion of "ignore-value.h" without_use
30397         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
30398
30399 2010-02-09  Eric Blake  <ebb9@byu.net>
30400         and Bruno Haible  <bruno@clisp.org>
30401
30402         obstack-printf-posix: ensure declaration
30403         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
30404         extracted from gl_FUNC_OBSTACK_PRINTF.
30405         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
30406         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30407         Likewise.
30408         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
30409         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
30410         0.
30411
30412 2010-02-08  Bruno Haible  <bruno@clisp.org>
30413
30414         gnulib-tool: Fix typo in 2010-02-07 commit.
30415         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
30416         Reported by Eric Blake.
30417
30418 2010-02-07  Bruno Haible  <bruno@clisp.org>
30419
30420         gnulib-tool: Fix up caching patches.
30421         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
30422         option --no-cache. Use associative arrays when supported by the shell.
30423         (sed_comments): New variable.
30424         (modcache): Renamed from do_cache.
30425         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
30426         abbreviate unnecessarily.
30427         (have_associative): New variable.
30428         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
30429         way also for ksh and zsh.
30430         (func_init_sed_convert_to_cache_statements): New function, extracted
30431         from func_cache_lookup_module. Add support for associative arrays.
30432         Don't set the c_MODULE_cached variable here. Ignore all lines before
30433         the first field header. Remove only the final newline, not all trailing
30434         newlines. Support empty fields correctly. Limit the use of 'eval' to
30435         assignments.
30436         (func_get_description, func_get_status, func_get_notice,
30437         func_get_applicability, func_get_filelist, func_get_dependencies,
30438         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
30439         func_get_automake_snippet, func_get_include_directive,
30440         func_get_link_directive, func_get_license, func_get_maintainer):
30441         Update documentation. List the unoptimized code first. Add support for
30442         associative arrays. Limit the use of 'eval' to assignments.
30443         (func_get_applicability): Undo stylistic pessimisations.
30444         (func_get_automake_snippet, func_get_include_directive): Reduce code
30445         duplication.
30446         (func_modules_transitive_closure, func_modules_add_dummy,
30447         func_modules_notice, func_modules_to_filelist, func_add_file,
30448         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
30449         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
30450         func_create_testdir, func_create_megatestdir): Update documentation.
30451
30452 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30453
30454         * gnulib-tool (func_cache_lookup_module): Store the module name
30455         belonging to the cache variable; error out if two different
30456         module names map to the same cache variable name.
30457
30458 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30459
30460         gnulib-tool: Make caching optional.
30461         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
30462         Update matching short versions of --no-changelog.
30463         (func_usage): Update.
30464         (sed_extract_cache_prog): Renamed from ...
30465         (sed_extract_prog): ... this; revert to old extraction script.
30466         (func_get_description, func_get_status)
30467         (func_get_notice, func_get_applicability, func_get_filelist)
30468         (func_get_dependencies, func_get_autoconf_early_snippet)
30469         (func_get_autoconf_snippet, func_get_automake_snippet)
30470         (func_get_include_directive, func_get_link_directive)
30471         (func_get_license, func_get_maintainer): If $do_cache is false,
30472         use old, non-caching extraction scripts.
30473         Suggestion by Bruno Haible.
30474
30475 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30476
30477         gnulib-tool: cache module metainformation.
30478         * gnulib-tool (sed_extract_prog): Match newline before each
30479         header, and rewrite header to a shell variable suffix.
30480         (func_cache_var, func_cache_lookup_module): New functions,
30481         to turn a module name into a cache variable prefix, and to
30482         look up and cache module metainformation.
30483         (func_get_description, func_get_status)
30484         (func_get_notice, func_get_applicability, func_get_filelist)
30485         (func_get_dependencies, func_get_autoconf_early_snippet)
30486         (func_get_autoconf_snippet, func_get_automake_snippet)
30487         (func_get_include_directive, func_get_link_directive)
30488         (func_get_license, func_get_maintainer): Use
30489         func_cache_lookup_module.
30490
30491 2010-02-07  Bruno Haible  <bruno@clisp.org>
30492
30493         fnctl: Fix missing dependency.
30494         * modules/fcntl (Depends-on): Add getdtablesize.
30495         Reported by John W. Eaton <jwe@gnu.org>.
30496
30497 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30498
30499         Argp: fix recognition of short alias options.
30500
30501         * lib/argp-parse.c (convert_options): Fix improper use of
30502         `|' between character values.
30503         * tests/test-argp.c (group1_option): New alias option
30504         --read (-r).
30505         (group1_parser): Special handling for 'r'.
30506         (test15): New test case.
30507         (test_fun): Add test15.
30508         * tests/test-argp-2.sh: Update expected --help and --usage
30509         outputs.
30510
30511 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30512
30513         * tests/test-argp.c: Fix indentation.
30514
30515 2010-02-04  Eric Blake  <ebb9@byu.net>
30516
30517         gettimeofday: expose type of second argument
30518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
30519         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
30520         * tests/test-gettimeofday.c: Use it to silence warning.
30521         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
30522         the issue.
30523
30524 2010-02-03  Jim Meyering  <meyering@redhat.com>
30525
30526         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
30527         * lib/regcomp.c (TYPE_SIGNED): Define.
30528         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
30529
30530         regcomp.c: avoid a new -Wshadow warning
30531         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
30532
30533 2010-02-01  Jim Meyering  <meyering@redhat.com>
30534
30535         removing useless parentheses in cpp #define directives
30536         For motivation, see commit c0221df4, "define STREQ(a,b)
30537         consistently, removing useless parentheses"
30538         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
30539         * lib/mountlist.c (MNT_IGNORE): Likewise.
30540         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
30541
30542 2010-02-01  Eric Blake  <ebb9@byu.net>
30543
30544         sys_time: use link-warning
30545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
30546         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
30547         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
30548         * modules/sys_time (Depends-on): Add warn-on-use.
30549         (Makefile.am): Always build replacement.
30550         (configure.ac): Update substitutions.
30551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
30552         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
30553         bother with SYS_TIME_H.
30554         * modules/gettimeofday (configure.ac): Declare indicator.
30555         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
30556         in use.
30557
30558         closein-tests: silence compiler warning
30559         * tests/test-closein.c (main): Ignore fread result.
30560         * modules/closein-tests (Depends-on): Add ignore-value.
30561
30562         tests: silence warning about system return
30563         * tests/test-areadlink-with-size.c (main): Ignore system result.
30564         * tests/test-areadlink.c (main): Likewise.
30565         * tests/test-areadlinkat-with-size.c (main): Likewise.
30566         * tests/test-areadlinkat.c (main): Likewise.
30567         * tests/test-canonicalize-lgpl.c (main): Likewise.
30568         * tests/test-canonicalize.c (main): Likewise.
30569         * tests/test-chown.c (main): Likewise.
30570         * tests/test-fchownat.c (main): Likewise.
30571         * tests/test-fdutimensat.c (main): Likewise.
30572         * tests/test-fstatat.c (main): Likewise.
30573         * tests/test-futimens.c (main): Likewise.
30574         * tests/test-lchown.c (main): Likewise.
30575         * tests/test-link.c (main): Likewise.
30576         * tests/test-linkat.c (main): Likewise.
30577         * tests/test-lstat.c (main): Likewise.
30578         * tests/test-mkdir.c (main): Likewise.
30579         * tests/test-mkdirat.c (main): Likewise.
30580         * tests/test-mkfifo.c (main): Likewise.
30581         * tests/test-mkfifoat.c (main): Likewise.
30582         * tests/test-mknod.c (main): Likewise.
30583         * tests/test-readlink.c (main): Likewise.
30584         * tests/test-remove.c (main): Likewise.
30585         * tests/test-rename.c (main): Likewise.
30586         * tests/test-renameat.c (main): Likewise.
30587         * tests/test-rmdir.c (main): Likewise.
30588         * tests/test-symlink.c (main): Likewise.
30589         * tests/test-symlinkat.c (main): Likewise.
30590         * tests/test-unlink.c (main): Likewise.
30591         * tests/test-unlinkat.c (main): Likewise.
30592         * tests/test-utimens.c (main): Likewise.
30593         * tests/test-utimensat.c (main): Likewise.
30594         * modules/areadlink-tests (Depends-on): Add ignore-value.
30595         * modules/areadlink-with-size-tests (Depends-on): Likewise.
30596         * modules/areadlinkat-tests (Depends-on): Likewise.
30597         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
30598         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30599         * modules/canonicalize-tests (Depends-on): Likewise.
30600         * modules/chown-tests (Depends-on): Likewise.
30601         * modules/fdutimensat-tests (Depends-on): Likewise.
30602         * modules/futimens-tests (Depends-on): Likewise.
30603         * modules/lchown-tests (Depends-on): Likewise.
30604         * modules/link-tests (Depends-on): Likewise.
30605         * modules/linkat-tests (Depends-on): Likewise.
30606         * modules/lstat-tests (Depends-on): Likewise.
30607         * modules/mkdir-tests (Depends-on): Likewise.
30608         * modules/mkfifo-tests (Depends-on): Likewise.
30609         * modules/mkfifoat-tests (Depends-on): Likewise.
30610         * modules/mknod-tests (Depends-on): Likewise.
30611         * modules/openat-tests (Depends-on): Likewise.
30612         * modules/readlink-tests (Depends-on): Likewise.
30613         * modules/remove-tests (Depends-on): Likewise.
30614         * modules/rename-tests (Depends-on): Likewise.
30615         * modules/renameat-tests (Depends-on): Likewise.
30616         * modules/rmdir-tests (Depends-on): Likewise.
30617         * modules/symlink-tests (Depends-on): Likewise.
30618         * modules/symlinkat-tests (Depends-on): Likewise.
30619         * modules/unlink-tests (Depends-on): Likewise.
30620         * modules/utimens-tests (Depends-on): Likewise.
30621         * modules/utimensat-tests (Depends-on): Likewise.
30622
30623 2010-01-31  Bruno Haible  <bruno@clisp.org>
30624
30625         Perform the same test for many <math.h> functions.
30626         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
30627         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
30628         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
30629         of gl_MATHFUNC.
30630         * modules/acos (configure.ac): Likewise.
30631         * modules/asin (configure.ac): Likewise.
30632         * modules/atan (configure.ac): Likewise.
30633         * modules/atan2 (configure.ac): Likewise.
30634         * modules/cbrt (configure.ac): Likewise.
30635         * modules/copysign (configure.ac): Likewise.
30636         * modules/cos (configure.ac): Likewise.
30637         * modules/cosh (configure.ac): Likewise.
30638         * modules/erf (configure.ac): Likewise.
30639         * modules/erfc (configure.ac): Likewise.
30640         * modules/exp (configure.ac): Likewise.
30641         * modules/fmod (configure.ac): Likewise.
30642         * modules/hypot (configure.ac): Likewise.
30643         * modules/j0 (configure.ac): Likewise.
30644         * modules/j1 (configure.ac): Likewise.
30645         * modules/jn (configure.ac): Likewise.
30646         * modules/lgamma (configure.ac): Likewise.
30647         * modules/log (configure.ac): Likewise.
30648         * modules/log10 (configure.ac): Likewise.
30649         * modules/log1p (configure.ac): Likewise.
30650         * modules/pow (configure.ac): Likewise.
30651         * modules/remainder (configure.ac): Likewise.
30652         * modules/sin (configure.ac): Likewise.
30653         * modules/sinh (configure.ac): Likewise.
30654         * modules/tan (configure.ac): Likewise.
30655         * modules/tanh (configure.ac): Likewise.
30656         * modules/y0 (configure.ac): Likewise.
30657         * modules/y1 (configure.ac): Likewise.
30658         * modules/yn (configure.ac): Likewise.
30659         Suggested by Paolo Bonzini.
30660
30661 2010-01-31  Bruno Haible  <bruno@clisp.org>
30662
30663         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
30664
30665 2010-01-31  Bruno Haible  <bruno@clisp.org>
30666
30667         Work around getdelim() bug on FreeBSD 8.0.
30668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
30669         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
30670         not work.
30671         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
30672         is 1.
30673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
30674         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
30675         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
30676         a non-zero size.
30677         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
30678
30679 2010-01-31  Bruno Haible  <bruno@clisp.org>
30680
30681         Work around getline() bug on FreeBSD 8.0.
30682         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
30683         and a non-zero size.
30684         * tests/test-getline.c (main): Likewise.
30685         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
30686         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
30687
30688 2010-01-28  Eric Blake  <ebb9@byu.net>
30689
30690         regex: fix build failure
30691         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
30692         platforms.
30693
30694 2010-01-28  Jim Meyering  <meyering@redhat.com>
30695
30696         regex: do not ignore memory allocation failure
30697         * lib/regex_internal.c (create_cd_newstate): Detect
30698         re_node_set_init_copy failure.   Extracted from glibc commit
30699         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30700
30701         regex: sync more white-space changes from libc
30702         * lib/regex_internal.c: White-space only changes.
30703         * lib/regexec.c: Likewise.
30704
30705         regex: add many uses of __attribute_warn_unused_result__
30706         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
30707         * lib/regexec.c: Likewise.
30708         Extracted from a messy glibc commit.
30709
30710         regcomp.c: spelling and merge-artifact from glibc
30711         * lib/regcomp.c: Merge remainder of glibc's
30712         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30713
30714         regcomp.c: sync white-space changes from glibc
30715         * lib/regcomp.c: Merge to accommodate white space
30716         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30717
30718         regcomp.c: do not ignore internal return values
30719         * lib/regcomp.c: Do not ignore internal return values.
30720         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
30721         but without its white-space changes and spelling fixes.
30722
30723         regex_internal.h: define __attribute_warn_unused_result__
30724         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
30725
30726         maint: add a syntax-check rule to check for vulnerable Makefile.in
30727         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
30728
30729 2010-01-27  Jim Meyering  <meyering@redhat.com>
30730
30731         ncftpput-ftp: clean up spaces
30732         * build-aux/ncftpput-ftp: Make Copyright line consistent.
30733         Remove trailing blanks.
30734
30735 2010-01-27  Simon Josefsson  <simon@josefsson.org>
30736
30737         * build-aux/git-version-gen: Fix copyright statement.
30738         * build-aux/gnupload: Likewise.
30739         * tests/test-arcfour.c: Likewise.
30740         * tests/test-arctwo.c: Likewise.
30741         * tests/test-count-one-bits.c: Likewise.
30742         * tests/test-crc.c: Likewise.
30743         * tests/test-des.c: Likewise.
30744         * tests/test-gc-arcfour.c: Likewise.
30745         * tests/test-gc-arctwo.c: Likewise.
30746         * tests/test-gc-des.c: Likewise.
30747         * tests/test-gc-hmac-md5.c: Likewise.
30748         * tests/test-gc-hmac-sha1.c: Likewise.
30749         * tests/test-gc-md2.c: Likewise.
30750         * tests/test-gc-md4.c: Likewise.
30751         * tests/test-gc-md5.c: Likewise.
30752         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30753         * tests/test-gc-rijndael.c: Likewise.
30754         * tests/test-gc-sha1.c: Likewise.
30755         * tests/test-gc.c: Likewise.
30756         * tests/test-gethostname.c: Likewise.
30757         * tests/test-gettimeofday.c: Likewise.
30758         * tests/test-hash.c: Likewise.
30759         * tests/test-hmac-md5.c: Likewise.
30760         * tests/test-hmac-sha1.c: Likewise.
30761         * tests/test-md2.c: Likewise.
30762         * tests/test-md4.c: Likewise.
30763         * tests/test-md5.c: Likewise.
30764         * tests/test-memchr.c: Likewise.
30765         * tests/test-memchr2.c: Likewise.
30766         * tests/test-memcmp.c: Likewise.
30767         * tests/test-memmem.c: Likewise.
30768         * tests/test-memrchr.c: Likewise.
30769         * tests/test-rawmemchr.c: Likewise.
30770         * tests/test-read-file.c: Likewise.
30771         * tests/test-rijndael.c: Likewise.
30772         * tests/test-sockets.c: Likewise.
30773         * tests/test-strchrnul.c: Likewise.
30774         * tests/test-strstr.c: Likewise.
30775         * tests/test-strtod.c: Likewise.
30776         * build-aux/ncftpput-ftp: Likewise.
30777
30778 2010-01-26  Eric Blake  <ebb9@byu.net>
30779
30780         ignore-value: update recommended header name
30781         * modules/ignore-value (Include): Only use <> for headers that
30782         exist in glibc.
30783
30784 2010-01-26  Jim Meyering  <meyering@redhat.com>
30785
30786         test-userspec.c: avoid compiler warnings
30787         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
30788         and "initialization discards qualifiers..." warnings.
30789         Put the first "uid" in its own scope, and make char* members "const".
30790
30791 2010-01-25  Bruno Haible  <bruno@clisp.org>
30792
30793         gnulib-tool: Make warning diagnostics consistent.
30794         * gnulib-tool (func_warning): New function.
30795         Use it everywhere where gnulib-tool produces output to stderr and it is
30796         not a fatal error.
30797
30798 2010-01-25  Bruno Haible  <bruno@clisp.org>
30799
30800         Fix test dependencies.
30801         * modules/xstrtol-tests (Depends-on): Add inttypes.
30802         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
30803
30804 2010-01-25 Pádraig Brady <P@draigBrady.com>
30805
30806         syntax-check: detect incorrect boolean macro values in config.h
30807         * modules/maintainer-makefile (configure.ac): Parameterize the location
30808         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30809         The logic is from Eric Blake and the location indicated by Jim Meyering.
30810         Note the more natural CONFIG_HEADER name is prohibited by automake
30811         for backwards compatibility reasons.
30812         * top/maint.mk (sc_Wundef_boolean): New rule.
30813
30814 2010-01-25  Jim Meyering  <meyering@redhat.com>
30815
30816         bootstrap: detect MacOS 10.6's shasum, too
30817         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30818         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30819
30820 2010-01-23  Jim Meyering  <meyering@redhat.com>
30821
30822         xstrtoll: new module
30823         * modules/xstrtoll: New file.
30824         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30825         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30826         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30827         ./configure fails if you use this module and lack "long long".
30828         * modules/xstrtoll-tests: New module.
30829         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30830         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30831         new init.sh-based test framework.
30832
30833 2010-01-24  Bruno Haible  <bruno@clisp.org>
30834
30835         Tests for module 'yn'.
30836         * modules/yn-tests: New file.
30837         * tests/test-yn.c: New file.
30838
30839         Tests for module 'y1'.
30840         * modules/y1-tests: New file.
30841         * tests/test-y1.c: New file.
30842
30843         Tests for module 'y0'.
30844         * modules/y0-tests: New file.
30845         * tests/test-y0.c: New file.
30846
30847         Tests for module 'tanh'.
30848         * modules/tanh-tests: New file.
30849         * tests/test-tanh.c: New file.
30850
30851         Tests for module 'tan'.
30852         * modules/tan-tests: New file.
30853         * tests/test-tan.c: New file.
30854
30855         Tests for module 'sqrt'.
30856         * modules/sqrt-tests: New file.
30857         * tests/test-sqrt.c: New file.
30858
30859         Tests for module 'sinh'.
30860         * modules/sinh-tests: New file.
30861         * tests/test-sinh.c: New file.
30862
30863         Tests for module 'sin'.
30864         * modules/sin-tests: New file.
30865         * tests/test-sin.c: New file.
30866
30867         Tests for module 'rint'.
30868         * modules/rint-tests: New file.
30869         * tests/test-rint.c: New file.
30870
30871         Tests for module 'remainder'.
30872         * modules/remainder-tests: New file.
30873         * tests/test-remainder.c: New file.
30874
30875         Tests for module 'pow'.
30876         * modules/pow-tests: New file.
30877         * tests/test-pow.c: New file.
30878
30879         Tests for module 'nextafter'.
30880         * modules/nextafter-tests: New file.
30881         * tests/test-nextafter.c: New file.
30882
30883         Tests for module 'modf'.
30884         * modules/modf-tests: New file.
30885         * tests/test-modf.c: New file.
30886
30887         Tests for module 'logb'.
30888         * modules/logb-tests: New file.
30889         * tests/test-logb.c: New file.
30890
30891         Tests for module 'log1p'.
30892         * modules/log1p-tests: New file.
30893         * tests/test-log1p.c: New file.
30894
30895         Tests for module 'log10'.
30896         * modules/log10-tests: New file.
30897         * tests/test-log10.c: New file.
30898
30899         Tests for module 'log'.
30900         * modules/log-tests: New file.
30901         * tests/test-log.c: New file.
30902
30903         Tests for module 'lgamma'.
30904         * modules/lgamma-tests: New file.
30905         * tests/test-lgamma.c: New file.
30906
30907         Tests for module 'ldexp'.
30908         * modules/ldexp-tests: New file.
30909         * tests/test-ldexp.c: New file.
30910
30911         Tests for module 'jn'.
30912         * modules/jn-tests: New file.
30913         * tests/test-jn.c: New file.
30914
30915         Tests for module 'j1'.
30916         * modules/j1-tests: New file.
30917         * tests/test-j1.c: New file.
30918
30919         Tests for module 'j0'.
30920         * modules/j0-tests: New file.
30921         * tests/test-j0.c: New file.
30922
30923         Tests for module 'hypot'.
30924         * modules/hypot-tests: New file.
30925         * tests/test-hypot.c: New file.
30926
30927         Tests for module 'fmod'.
30928         * modules/fmod-tests: New file.
30929         * tests/test-fmod.c: New file.
30930
30931         Tests for module 'fabs'.
30932         * modules/fabs-tests: New file.
30933         * tests/test-fabs.c: New file.
30934
30935         Tests for module 'exp'.
30936         * modules/exp-tests: New file.
30937         * tests/test-exp.c: New file.
30938
30939         Tests for module 'erfc'.
30940         * modules/erfc-tests: New file.
30941         * tests/test-erfc.c: New file.
30942
30943         Tests for module 'erf'.
30944         * modules/erf-tests: New file.
30945         * tests/test-erf.c: New file.
30946
30947         Tests for module 'cosh'.
30948         * modules/cosh-tests: New file.
30949         * tests/test-cosh.c: New file.
30950
30951         Tests for module 'cos'.
30952         * modules/cos-tests: New file.
30953         * tests/test-cos.c: New file.
30954
30955         Tests for module 'copysign'.
30956         * modules/copysign-tests: New file.
30957         * tests/test-copysign.c: New file.
30958
30959         Tests for module 'cbrt'.
30960         * modules/cbrt-tests: New file.
30961         * tests/test-cbrt.c: New file.
30962
30963         Tests for module 'atan2'.
30964         * modules/atan2-tests: New file.
30965         * tests/test-atan2.c: New file.
30966
30967         Tests for module 'atan'.
30968         * modules/atan-tests: New file.
30969         * tests/test-atan.c: New file.
30970
30971         Tests for module 'asin'.
30972         * modules/asin-tests: New file.
30973         * tests/test-asin.c: New file.
30974
30975         Tests for module 'acos'.
30976         * modules/acos-tests: New file.
30977         * tests/test-acos.c: New file.
30978
30979 2010-01-24  Bruno Haible  <bruno@clisp.org>
30980
30981         Fix tests for common <math.h> functions.
30982         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30983         code snippet that references the function pointer, rather than merely
30984         calling the function. Substitute the FUNC_LIBM variable.
30985         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30986         * modules/acos (configure.ac): Likewise.
30987         * modules/asin (configure.ac): Likewise.
30988         * modules/atan (configure.ac): Likewise.
30989         * modules/atan2 (configure.ac): Likewise.
30990         * modules/cbrt (configure.ac): Likewise.
30991         * modules/copysign (configure.ac): Likewise.
30992         * modules/cos (configure.ac): Likewise.
30993         * modules/cosh (configure.ac): Likewise.
30994         * modules/erf (configure.ac): Likewise.
30995         * modules/erfc (configure.ac): Likewise.
30996         * modules/exp (configure.ac): Likewise.
30997         * modules/fabs (configure.ac): Likewise.
30998         * modules/fmod (configure.ac): Likewise.
30999         * modules/hypot (configure.ac): Likewise.
31000         * modules/j0 (configure.ac): Likewise.
31001         * modules/j1 (configure.ac): Likewise.
31002         * modules/jn (configure.ac): Likewise.
31003         * modules/ldexp (configure.ac): Likewise.
31004         * modules/lgamma (configure.ac): Likewise.
31005         * modules/log (configure.ac): Likewise.
31006         * modules/log10 (configure.ac): Likewise.
31007         * modules/log1p (configure.ac): Likewise.
31008         * modules/logb (configure.ac): Likewise.
31009         * modules/modf (configure.ac): Likewise.
31010         * modules/nextafter (configure.ac): Likewise.
31011         * modules/pow (configure.ac): Likewise.
31012         * modules/remainder (configure.ac): Likewise.
31013         * modules/rint (configure.ac): Likewise.
31014         * modules/sin (configure.ac): Likewise.
31015         * modules/sinh (configure.ac): Likewise.
31016         * modules/tan (configure.ac): Likewise.
31017         * modules/tanh (configure.ac): Likewise.
31018         * modules/y0 (configure.ac): Likewise.
31019         * modules/y1 (configure.ac): Likewise.
31020         * modules/yn (configure.ac): Likewise.
31021
31022 2010-01-24  Bruno Haible  <bruno@clisp.org>
31023
31024         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
31025         * tests/test-acosl.c (x): New variable.
31026         (main): Store argument in x and fetch it from x.
31027         * tests/test-asinl.c (x): New variable.
31028         (main): Store argument in x and fetch it from x.
31029         * tests/test-atanl.c (x): New variable.
31030         (main): Store argument in x and fetch it from x.
31031         * tests/test-cosl.c (x): New variable.
31032         (main): Store argument in x and fetch it from x.
31033         * tests/test-expl.c (x): New variable.
31034         (main): Store argument in x and fetch it from x.
31035         * tests/test-logl.c (x): New variable.
31036         (main): Store argument in x and fetch it from x.
31037         * tests/test-sinl.c (x): New variable.
31038         (main): Store argument in x and fetch it from x.
31039         * tests/test-sqrtl.c (x): New variable.
31040         (main): Store argument in x and fetch it from x.
31041         * tests/test-tanl.c (x): New variable.
31042         (main): Store argument in x and fetch it from x.
31043
31044 2010-01-24  Bruno Haible  <bruno@clisp.org>
31045
31046         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
31047         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
31048         assignments to the initial TESTS_ENVIRONMENT.
31049         * doc/gnulib.texi (Unit test modules): Document it.
31050         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
31051         TESTS_ENVIRONMENT.
31052         * modules/btowc-tests (Makefile.am): Likewise.
31053         * modules/c-stack-tests (Makefile.am): Likewise.
31054         * modules/c-strcase-tests (Makefile.am): Likewise.
31055         * modules/copy-file-tests (Makefile.am): Likewise.
31056         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
31057         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
31058         * modules/mbrtowc-tests (Makefile.am): Likewise.
31059         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31060         * modules/mbscasestr-tests (Makefile.am): Likewise.
31061         * modules/mbschr-tests (Makefile.am): Likewise.
31062         * modules/mbscspn-tests (Makefile.am): Likewise.
31063         * modules/mbsinit-tests (Makefile.am): Likewise.
31064         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31065         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
31066         * modules/mbspbrk-tests (Makefile.am): Likewise.
31067         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31068         * modules/mbsrchr-tests (Makefile.am): Likewise.
31069         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
31070         * modules/mbsspn-tests (Makefile.am): Likewise.
31071         * modules/mbsstr-tests (Makefile.am): Likewise.
31072         * modules/nl_langinfo-tests (Makefile.am): Likewise.
31073         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
31074         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31075         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31076         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31077         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31078         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
31079         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31080         * modules/wcrtomb-tests (Makefile.am): Likewise.
31081         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
31082         * modules/wcsrtombs-tests (Makefile.am): Likewise.
31083         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
31084         assignments from TESTS_ENVIRONMENT.
31085         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
31086         augmentation.
31087         * modules/argp-version-etc-tests (Makefile.am): Likewise.
31088         * modules/atexit-tests (Makefile.am): Likewise.
31089         * modules/binary-io-tests (Makefile.am): Likewise.
31090         * modules/closein-tests (Makefile.am): Likewise.
31091         * modules/dprintf-posix-tests (Makefile.am): Likewise.
31092         * modules/exclude-tests (Makefile.am): Likewise.
31093         * modules/fflush-tests (Makefile.am): Likewise.
31094         * modules/fpending-tests (Makefile.am): Likewise.
31095         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31096         * modules/freadahead-tests (Makefile.am): Likewise.
31097         * modules/freadptr-tests (Makefile.am): Likewise.
31098         * modules/freadseek-tests (Makefile.am): Likewise.
31099         * modules/fseek-tests (Makefile.am): Likewise.
31100         * modules/fseeko-tests (Makefile.am): Likewise.
31101         * modules/ftell-tests (Makefile.am): Likewise.
31102         * modules/ftello-tests (Makefile.am): Likewise.
31103         * modules/idpriv-drop-tests (Makefile.am): Likewise.
31104         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
31105         * modules/lseek-tests (Makefile.am): Likewise.
31106         * modules/parse-duration-tests (Makefile.am): Likewise.
31107         * modules/perror-tests (Makefile.am): Likewise.
31108         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
31109         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
31110         * modules/pipe-tests (Makefile.am): Likewise.
31111         * modules/pread-tests (Makefile.am): Likewise.
31112         * modules/printf-posix-tests (Makefile.am): Likewise.
31113         * modules/select-tests (Makefile.am): Likewise.
31114         * modules/sigpipe-tests (Makefile.am): Likewise.
31115         * modules/tsearch-tests (Makefile.am): Likewise.
31116         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
31117         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
31118         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31119         * modules/uniwidth/width-tests (Makefile.am): Likewise.
31120         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
31121         * modules/version-etc-tests (Makefile.am): Likewise.
31122         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31123         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31124         * modules/xalloc-die-tests (Makefile.am): Likewise.
31125         * modules/xprintf-posix-tests (Makefile.am): Likewise.
31126         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31127         * modules/xstrtol-tests (Makefile.am): Likewise.
31128         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31129         * modules/yesno-tests (Makefile.am): Likewise.
31130         Suggested by Jim Meyering.
31131
31132 2010-01-24  Bruno Haible  <bruno@clisp.org>
31133
31134         More documentation.
31135         * doc/gnulib.texi (Writing modules): New chapter.
31136         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
31137         the new chapter.
31138
31139 2010-01-24  Jim Meyering  <meyering@redhat.com>
31140
31141         maint.mk: do not prepend "./" after filtering
31142         * top/maint.mk (_prepend_srcdir_prefix): New variable
31143         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
31144         "./" when $(srcdir) is ".".
31145
31146         define STREQ(a,b) consistently, removing useless parentheses
31147         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
31148         since the only risk is that "a" or "b" contains an unparenthesized
31149         comma, but if either did that, STREQ would have 3 or more arguments.
31150         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
31151         * lib/fts.c (STREQ): Remove unnecessary parentheses.
31152         * lib/hash-triple.c (STREQ): Likewise.
31153         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
31154         * lib/getugroups.c (STREQ): Likewise.
31155
31156 2010-01-23  Jim Meyering  <meyering@redhat.com>
31157
31158         maint.mk: fix syntax-check in a non-srcdir build directory
31159         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
31160         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
31161
31162 2010-01-22  Jim Meyering  <meyering@redhat.com>
31163
31164         userspec: add unit tests
31165         * tests/test-userspec.c: New file.
31166         * modules/userspec-tests: Likewise.
31167
31168 2010-01-21  Jim Meyering  <meyering@redhat.com>
31169
31170         maint.mk: handle source file names containing "." robustly
31171         * top/maint.mk (_dot_escaped_srcdir): Define.
31172         (VC_LIST): Use it in LHS of sed substitution.
31173
31174 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
31175
31176         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
31177         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
31178         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
31179         from a non-srcdir build.
31180
31181 2010-01-20  Eric Blake  <ebb9@byu.net>
31182
31183         warn-on-use: use instead of link-warning
31184         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
31185         * modules/unistd (Depends-on, Makefile.am): Likewise.
31186         * modules/arpa_inet (Depends-on): Replace link-warning with
31187         warn-on-use.
31188         (Makefile.am): Update rules accordingly.
31189         * modules/ctype (Depends-on, Makefile.am): Likewise.
31190         * modules/dirent (Depends-on, Makefile.am): Likewise.
31191         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
31192         * modules/inttypes (Depends-on, Makefile.am): Likewise.
31193         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31194         * modules/locale (Depends-on, Makefile.am): Likewise.
31195         * modules/math (Depends-on, Makefile.am): Likewise.
31196         * modules/search (Depends-on, Makefile.am): Likewise.
31197         * modules/signal (Depends-on, Makefile.am): Likewise.
31198         * modules/spawn (Depends-on, Makefile.am): Likewise.
31199         * modules/stdlib (Depends-on, Makefile.am): Likewise.
31200         * modules/string (Depends-on, Makefile.am): Likewise.
31201         * modules/strings (Depends-on, Makefile.am): Likewise.
31202         * modules/sys_file (Depends-on, Makefile.am): Likewise.
31203         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
31204         * modules/sys_select (Depends-on, Makefile.am): Likewise.
31205         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
31206         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
31207         * modules/sys_times (Depends-on, Makefile.am): Likewise.
31208         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31209         * modules/wchar (Depends-on, Makefile.am): Likewise.
31210         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
31211         should be poisoned.
31212         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
31213         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
31214         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
31215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31216         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31217         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31218         * m4/math_h.m4 (gl_MATH_H): Likewise.
31219         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31220         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31221         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31222         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31223         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31224         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31225         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31226         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
31227         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
31228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31231         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31232         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31233         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31234         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31235         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
31236         GL_LINK_WARNING.
31237         * lib/ctype.in.h: Likewise.
31238         * lib/dirent.in.h: Likewise.
31239         * lib/fcntl.in.h: Likewise.
31240         * lib/inttypes.in.h: Likewise.
31241         * lib/langinfo.in.h: Likewise.
31242         * lib/locale.in.h: Likewise.
31243         * lib/math.in.h: Likewise.
31244         * lib/search.in.h: Likewise.
31245         * lib/signal.in.h: Likewise.
31246         * lib/spawn.in.h: Likewise.
31247         * lib/stdio.in.h: Likewise.
31248         * lib/stdlib.in.h: Likewise.
31249         * lib/string.in.h: Likewise.
31250         * lib/strings.in.h: Likewise.
31251         * lib/sys_file.in.h: Likewise.
31252         * lib/sys_ioctl.in.h: Likewise.
31253         * lib/sys_select.in.h: Likewise.
31254         * lib/sys_socket.in.h: Likewise.
31255         * lib/sys_stat.in.h: Likewise.
31256         * lib/sys_times.in.h: Likewise.
31257         * lib/sys_utsname.in.h: Likewise.
31258         * lib/unistd.in.h: Likewise.
31259         * lib/wchar.in.h: Likewise.
31260
31261 2010-01-20  Bruno Haible  <bruno@clisp.org>
31262
31263         Avoid duplicate -lm.
31264         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
31265         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
31266         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
31267         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
31268         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
31269         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
31270         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
31271         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
31272         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
31273         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
31274         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
31275         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31276         Reported by Paolo Bonzini.
31277
31278 2010-01-19  Bruno Haible  <bruno@clisp.org>
31279
31280         langinfo, nl_langinfo: Relicense under LGPLv2+.
31281         * modules/langinfo (License): Change to LGPLv2+.
31282         * modules/nl_langinfo (License): Likewise.
31283         Patch by David Lutterkort <lutter@redhat.com>.
31284
31285 2010-01-19  Bruno Haible  <bruno@clisp.org>
31286
31287         Avoid compilation error with cc on OSF/1 5.1.
31288         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
31289         statement, not before.
31290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31291
31292 2010-01-18  Bruno Haible  <bruno@clisp.org>
31293
31294         Avoid a link error due to the __printf__ symbol.
31295         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
31296         and 2.6.x.
31297         (__format__, __printf__): Remove definitions.
31298         * lib/argp-fmtstream.h: Likewise.
31299         * lib/argp.h: Likewise.
31300         * lib/error.h: Likewise.
31301         * lib/vasnprintf.h: Likewise.
31302         * lib/xprintf.h: Likewise.
31303         * lib/xvasprintf.h: Likewise.
31304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31305
31306 2010-01-18  Bruno Haible  <bruno@clisp.org>
31307
31308         Tests for module 'tanl'.
31309         * modules/tanl-tests: New file.
31310         * tests/test-tanl.c: New file.
31311
31312         Tests for module 'sqrtl'.
31313         * modules/sqrtl-tests: New file.
31314         * tests/test-sqrtl.c: New file.
31315
31316         Tests for module 'sinl'.
31317         * modules/sinl-tests: New file.
31318         * tests/test-sinl.c: New file.
31319
31320         Tests for module 'logl'.
31321         * modules/logl-tests: New file.
31322         * tests/test-logl.c: New file.
31323
31324         Tests for module 'expl'.
31325         * modules/expl-tests: New file.
31326         * tests/test-expl.c: New file.
31327
31328         Tests for module 'cosl'.
31329         * modules/cosl-tests: New file.
31330         * tests/test-cosl.c: New file.
31331
31332         Tests for module 'atanl'.
31333         * modules/atanl-tests: New file.
31334         * tests/test-atanl.c: New file.
31335
31336         Tests for module 'asinl'.
31337         * modules/asinl-tests: New file.
31338         * tests/test-asinl.c: New file.
31339
31340         Tests for module 'acosl'.
31341         * modules/acosl-tests: New file.
31342         * tests/test-acosl.c: New file.
31343
31344         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31345         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
31346         tanl): Use the standard gnulib idiom.
31347         * lib/cosl.c: Don't include trigl.c and sincosl.c.
31348         * lib/sinl.c: Likewise.
31349         * lib/tanl.c: Don't include trigl.c.
31350         (kernel_tanl): Make static.
31351         * lib/sincosl.c: Include trigl.h first.
31352         * lib/trigl.c: Likewise.
31353         * m4/acosl.m4: New file.
31354         * m4/asinl.m4: New file.
31355         * m4/atanl.m4: New file.
31356         * m4/cosl.m4: New file.
31357         * m4/expl.m4: New file.
31358         * m4/logl.m4: New file.
31359         * m4/sinl.m4: New file.
31360         * m4/sqrtl.m4: New file.
31361         * m4/tanl.m4: New file.
31362         * m4/mathl.m4: Remove file.
31363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
31364         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31365         Don't initialize GNULIB_MATHL.
31366         * modules/acosl: New file.
31367         * modules/asinl: New file.
31368         * modules/atanl: New file.
31369         * modules/cosl: New file.
31370         * modules/expl: New file.
31371         * modules/logl: New file.
31372         * modules/sinl: New file.
31373         * modules/sqrtl: New file.
31374         * modules/tanl: New file.
31375         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
31376         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
31377         substitute GNULIB_MATHL.
31378         * modules/mathl: Rewritten.
31379         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
31380         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
31381         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
31382         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
31383         * doc/posix-functions/expl.texi: Mention the 'expl' module.
31384         * doc/posix-functions/logl.texi: Mention the 'logl' module.
31385         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
31386         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
31387         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
31388
31389 2010-01-18  Bruno Haible  <bruno@clisp.org>
31390
31391         sqrt: Make gl_FUNC_SQRT requirable.
31392         * m4/sqrt.m4: New file.
31393         * modules/sqrt (Files): Add it.
31394         (configure.ac): Invoke gl_FUNC_SQRT.
31395
31396 2010-01-18  Bruno Haible  <bruno@clisp.org>
31397
31398         New modules for common <math.h> functions.
31399         * m4/mathfunc.m4: New file.
31400         * modules/acos: New file.
31401         * modules/asin: New file.
31402         * modules/atan: New file.
31403         * modules/atan2: New file.
31404         * modules/cbrt: New file.
31405         * modules/copysign: New file.
31406         * modules/cos: New file.
31407         * modules/cosh: New file.
31408         * modules/erf: New file.
31409         * modules/erfc: New file.
31410         * modules/exp: New file.
31411         * modules/fabs: New file.
31412         * modules/fmod: New file.
31413         * modules/hypot: New file.
31414         * modules/j0: New file.
31415         * modules/j1: New file.
31416         * modules/jn: New file.
31417         * modules/ldexp: New file.
31418         * modules/lgamma: New file.
31419         * modules/log: New file.
31420         * modules/log10: New file.
31421         * modules/log1p: New file.
31422         * modules/logb: New file.
31423         * modules/modf: New file.
31424         * modules/nextafter: New file.
31425         * modules/pow: New file.
31426         * modules/remainder: New file.
31427         * modules/rint: New file.
31428         * modules/sin: New file.
31429         * modules/sinh: New file.
31430         * modules/sqrt: New file.
31431         * modules/tan: New file.
31432         * modules/tanh: New file.
31433         * modules/y0: New file.
31434         * modules/y1: New file.
31435         * modules/yn: New file.
31436         * doc/posix-functions/acos.texi: Mention the 'acos' module.
31437         * doc/posix-functions/asin.texi: Mention the 'asin' module.
31438         * doc/posix-functions/atan.texi: Mention the 'atan' module.
31439         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
31440         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
31441         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
31442         * doc/posix-functions/cos.texi: Mention the 'cos' module.
31443         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
31444         * doc/posix-functions/erf.texi: Mention the 'erf' module.
31445         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
31446         * doc/posix-functions/exp.texi: Mention the 'exp' module.
31447         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
31448         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
31449         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
31450         * doc/posix-functions/j0.texi: Mention the 'j0' module.
31451         * doc/posix-functions/j1.texi: Mention the 'j1' module.
31452         * doc/posix-functions/jn.texi: Mention the 'jn' module.
31453         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
31454         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
31455         * doc/posix-functions/log.texi: Mention the 'log' module.
31456         * doc/posix-functions/log10.texi: Mention the 'log10' module.
31457         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
31458         * doc/posix-functions/logb.texi: Mention the 'logb' module.
31459         * doc/posix-functions/modf.texi: Mention the 'modf' module.
31460         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
31461         * doc/posix-functions/pow.texi: Mention the 'pow' module.
31462         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
31463         * doc/posix-functions/rint.texi: Mention the 'rint' module.
31464         * doc/posix-functions/sin.texi: Mention the 'sin' module.
31465         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
31466         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
31467         * doc/posix-functions/tan.texi: Mention the 'tan' module.
31468         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
31469         * doc/posix-functions/y0.texi: Mention the 'y0' module.
31470         * doc/posix-functions/y1.texi: Mention the 'y1' module.
31471         * doc/posix-functions/yn.texi: Mention the 'yn' module.
31472
31473 2010-01-18  Jim Meyering  <meyering@redhat.com>
31474
31475         ignore-value: relax license to LGPLv2+
31476         * modules/ignore-value (License): Relax to LGPLv2+.
31477
31478         getdate: don't leak when TZ contains two or more '"'s
31479         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
31480         double quote in TZ after the first one.
31481
31482         readtokens: do not leak internal token_lengths buffer
31483         * lib/readtokens.c (readtokens): Free the local, lengths,
31484         when the supplied "token_lengths" parameter is NULL.
31485
31486 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31487
31488         Fix a couple of missing LIBTHREAD link failures on AIX.
31489         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
31490         $(LIBTHREAD).
31491         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
31492
31493         Link test-poll against INET_PTON_LIB.
31494         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
31495         for inet_pton on Solaris 10.
31496
31497 2010-01-17  Bruno Haible  <bruno@clisp.org>
31498
31499         unistdio/*-sprintf: Fix typo in module description.
31500         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
31501         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
31502         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
31503         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
31504         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
31505         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
31506         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
31507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31508
31509 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31510
31511         gnulib-tool: fix filelist for AIX, HP-UX ksh.
31512         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
31513         variables in shell case patterns, for AIX and HP-UX ksh.
31514
31515         Split large sed scripts, for HP-UX sed.
31516         * modules/stdio: Split sed scripts around 50 sed commands,
31517         to avoid HP-UX limit of 99 commands, in the near future.
31518         * modules/string: Likewise.
31519         * modules/unistd: Likewise.
31520
31521         gnulib-tool: avoid writing in the current directory.
31522         * gnulib-tool (func_emit_lib_Makefile_am)
31523         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
31524         not in the current directory, so concurrent gnulib-tool
31525         instances do not interfere.
31526
31527 2010-01-16  Jim Meyering  <meyering@redhat.com>
31528
31529         doc: update users.txt
31530         * users.txt: Add grep.
31531         (diffutils, gzip): Update URLs.
31532
31533 2010-01-12  Bruno Haible  <bruno@clisp.org>
31534
31535         posix_spawn: Avoid test failure on Cygwin.
31536         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
31537         characters.
31538         Reported by Simon Josefsson.
31539
31540 2010-01-12  Bruno Haible  <bruno@clisp.org>
31541
31542         * tests/test-cond.c (main): When skipping the test, show the reason.
31543
31544 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31545
31546         * lib/striconv.c (str_cd_iconv): Avoid if before free.
31547
31548 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31549
31550         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
31551         VC_LIST_ALWAYS_EXCLUDE_REGEX.
31552
31553 2010-01-12  Eric Blake  <ebb9@byu.net>
31554
31555         build: guarantee AS_VAR_IF
31556         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
31557         (gl_AS_VAR_IF): Move...
31558         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
31559         Reported by Simon Josefsson.
31560
31561 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31562
31563         * lib/stdio.in.h: Fix typo.
31564
31565 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31566
31567         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
31568         libgpg-error.
31569
31570 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31571
31572         * tests/test-xalloc-die.sh: Use $EXEEXT.
31573
31574 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31575             Bruno Haible  <bruno@clisp.org>
31576
31577         getlogin, getlogin_r: Avoid test failure.
31578         * tests/test-getlogin.c: Include <stdio.h>.
31579         (main): Skip the test when the function fails because stdin is not a
31580         tty.
31581         * tests/test-getlogin_r.c: Include <stdio.h>.
31582         (main): Skip the test when the function fails because stdin is not a
31583         tty.
31584
31585 2010-01-11  Eric Blake  <ebb9@byu.net>
31586
31587         tests: avoid more large file warnings
31588         * tests/test-fflush.c: Avoid warning about ftell use.
31589         * tests/test-fseek.c: Avoid warning about fseek use.
31590
31591 2010-01-10  Bruno Haible  <bruno@clisp.org>
31592
31593         nproc: Work better on Linux when /proc and /sys are not mounted.
31594         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
31595         as lower bound when, on glibc/Linux systems,
31596         sysconf (_SC_NPROCESSORS_CONF) returns 1.
31597         Suggested by Pádraig Brady <P@draigbrady.com>.
31598         Reported by Dmitry V. Levin <ldv@altlinux.org>.
31599
31600         nproc: Refactor.
31601         * lib/nproc.c (num_processors_via_affinity_mask): New function,
31602         extracted from num_processors.
31603         (num_processors): Call it.
31604
31605 2010-01-11  Jim Meyering  <meyering@redhat.com>
31606
31607         utimecmp: avoid new warning from upcoming gcc-4.5.0
31608         * lib/utimecmp.c (BILLION): Define using #define rather than an
31609         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
31610
31611 2010-01-11  Eric Blake  <ebb9@byu.net>
31612
31613         math: add portability warnings for classification macros
31614         * modules/math (Depends-on): Add warn-on-use.
31615         (Makefile.am): Provide new substitutions.
31616         * m4/math_h.m4 (gl_MATH_H): Require inline.
31617         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
31618         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
31619         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
31620         implement warnings.
31621
31622         unistd: warn on use of environ without module
31623         * modules/unistd (Depends-on): Add warn-on-use.
31624         (Makefile.am): Provide new substitutions.
31625         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
31626         * lib/unistd.in.h (environ): Wrap with a warning helper function.
31627
31628         stdio: warn on suspicious uses
31629         * modules/stdio (Depends-on): Add warn-on-use.
31630         (Makefile.am): Provide new substitutions.
31631         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
31632         fseeko.
31633         * lib/stdio.in.h (gets): Always warn on use.
31634         (fseek, ftell): Adjust when warnings are issued, and honor
31635         _GL_NO_LARGE_FILES as a way to silence the warning.
31636         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
31637         any warning about large file offsets.
31638         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
31639         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
31640         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
31641         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
31642         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
31643         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
31644         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
31645         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
31646
31647         warn-on-use: new module
31648         * modules/warn-on-use: New file.
31649         * build-aux/warn-on-use.h: Likewise.
31650         * m4/warn-on-use.m4: Likewise.
31651         * MODULES.html.sh (Support for building): Mention it.
31652
31653 2010-01-10  Bruno Haible  <bruno@clisp.org>
31654
31655         Tests for module 'unistr/u32-strdup'.
31656         * modules/unistr/u32-strdup-tests: New file.
31657         * tests/unistr/test-u32-strdup.c: New file.
31658
31659         Tests for module 'unistr/u16-strdup'.
31660         * modules/unistr/u16-strdup-tests: New file.
31661         * tests/unistr/test-u16-strdup.c: New file.
31662
31663         Tests for module 'unistr/u8-strdup'.
31664         * modules/unistr/u8-strdup-tests: New file.
31665         * tests/unistr/test-u8-strdup.c: New file.
31666         * tests/unistr/test-strdup.h: New file.
31667
31668         Tests for module 'unistr/u32-strncmp'.
31669         * modules/unistr/u32-strncmp-tests: New file.
31670         * tests/unistr/test-u32-strncmp.c: New file.
31671
31672         Tests for module 'unistr/u16-strncmp'.
31673         * modules/unistr/u16-strncmp-tests: New file.
31674         * tests/unistr/test-u16-strncmp.c: New file.
31675
31676         Tests for module 'unistr/u8-strncmp'.
31677         * modules/unistr/u8-strncmp-tests: New file.
31678         * tests/unistr/test-u8-strncmp.c: New file.
31679         * tests/unistr/test-strncmp.h: New file.
31680
31681         Tests for module 'unistr/u32-strcoll'.
31682         * modules/unistr/u32-strcoll-tests: New file.
31683         * tests/unistr/test-u32-strcoll.c: New file.
31684
31685         Tests for module 'unistr/u16-strcoll'.
31686         * modules/unistr/u16-strcoll-tests: New file.
31687         * tests/unistr/test-u16-strcoll.c: New file.
31688
31689         Tests for module 'unistr/u8-strcoll'.
31690         * modules/unistr/u8-strcoll-tests: New file.
31691         * tests/unistr/test-u8-strcoll.c: New file.
31692
31693         Tests for module 'unistr/u32-strcmp'.
31694         * modules/unistr/u32-strcmp-tests: New file.
31695         * tests/unistr/test-u32-strcmp.c: New file.
31696         * tests/unistr/test-u32-strcmp.h: New file.
31697
31698         Tests for module 'unistr/u16-strcmp'.
31699         * modules/unistr/u16-strcmp-tests: New file.
31700         * tests/unistr/test-u16-strcmp.c: New file.
31701         * tests/unistr/test-u16-strcmp.h: New file.
31702
31703         Tests for module 'unistr/u8-strcmp'.
31704         * modules/unistr/u8-strcmp-tests: New file.
31705         * tests/unistr/test-u8-strcmp.c: New file.
31706         * tests/unistr/test-u8-strcmp.h: New file.
31707         * tests/unistr/test-strcmp.h: New file.
31708
31709         Tests for module 'unistr/u32-strncat'.
31710         * modules/unistr/u32-strncat-tests: New file.
31711         * tests/unistr/test-u32-strncat.c: New file.
31712
31713         Tests for module 'unistr/u16-strncat'.
31714         * modules/unistr/u16-strncat-tests: New file.
31715         * tests/unistr/test-u16-strncat.c: New file.
31716
31717         Tests for module 'unistr/u8-strncat'.
31718         * modules/unistr/u8-strncat-tests: New file.
31719         * tests/unistr/test-u8-strncat.c: New file.
31720         * tests/unistr/test-strncat.h: New file.
31721
31722         Tests for module 'unistr/u32-strcat'.
31723         * modules/unistr/u32-strcat-tests: New file.
31724         * tests/unistr/test-u32-strcat.c: New file.
31725
31726         Tests for module 'unistr/u16-strcat'.
31727         * modules/unistr/u16-strcat-tests: New file.
31728         * tests/unistr/test-u16-strcat.c: New file.
31729
31730         Tests for module 'unistr/u8-strcat'.
31731         * modules/unistr/u8-strcat-tests: New file.
31732         * tests/unistr/test-u8-strcat.c: New file.
31733         * tests/unistr/test-strcat.h: New file.
31734
31735         Tests for module 'unistr/u32-stpncpy'.
31736         * modules/unistr/u32-stpncpy-tests: New file.
31737         * tests/unistr/test-u32-stpncpy.c: New file.
31738
31739         Tests for module 'unistr/u16-stpncpy'.
31740         * modules/unistr/u16-stpncpy-tests: New file.
31741         * tests/unistr/test-u16-stpncpy.c: New file.
31742
31743         Tests for module 'unistr/u8-stpncpy'.
31744         * modules/unistr/u8-stpncpy-tests: New file.
31745         * tests/unistr/test-u8-stpncpy.c: New file.
31746         * tests/unistr/test-stpncpy.h: New file.
31747
31748         Tests for module 'unistr/u32-strncpy'.
31749         * modules/unistr/u32-strncpy-tests: New file.
31750         * tests/unistr/test-u32-strncpy.c: New file.
31751
31752         Tests for module 'unistr/u16-strncpy'.
31753         * modules/unistr/u16-strncpy-tests: New file.
31754         * tests/unistr/test-u16-strncpy.c: New file.
31755
31756         Tests for module 'unistr/u8-strncpy'.
31757         * modules/unistr/u8-strncpy-tests: New file.
31758         * tests/unistr/test-u8-strncpy.c: New file.
31759         * tests/unistr/test-strncpy.h: New file.
31760
31761         Tests for module 'unistr/u32-stpcpy'.
31762         * modules/unistr/u32-stpcpy-tests: New file.
31763         * tests/unistr/test-u32-stpcpy.c: New file.
31764
31765         Tests for module 'unistr/u16-stpcpy'.
31766         * modules/unistr/u16-stpcpy-tests: New file.
31767         * tests/unistr/test-u16-stpcpy.c: New file.
31768
31769         Tests for module 'unistr/u8-stpcpy'.
31770         * modules/unistr/u8-stpcpy-tests: New file.
31771         * tests/unistr/test-u8-stpcpy.c: New file.
31772         * tests/unistr/test-stpcpy.h: New file.
31773
31774         Tests for module 'unistr/u32-strcpy'.
31775         * modules/unistr/u32-strcpy-tests: New file.
31776         * tests/unistr/test-u32-strcpy.c: New file.
31777
31778         Tests for module 'unistr/u16-strcpy'.
31779         * modules/unistr/u16-strcpy-tests: New file.
31780         * tests/unistr/test-u16-strcpy.c: New file.
31781
31782         Tests for module 'unistr/u8-strcpy'.
31783         * modules/unistr/u8-strcpy-tests: New file.
31784         * tests/unistr/test-u8-strcpy.c: New file.
31785         * tests/unistr/test-strcpy.h: New file.
31786
31787         Tests for module 'unistr/u32-strnlen'.
31788         * modules/unistr/u32-strnlen-tests: New file.
31789         * tests/unistr/test-u32-strnlen.c: New file.
31790
31791         Tests for module 'unistr/u16-strnlen'.
31792         * modules/unistr/u16-strnlen-tests: New file.
31793         * tests/unistr/test-u16-strnlen.c: New file.
31794
31795         Tests for module 'unistr/u8-strnlen'.
31796         * modules/unistr/u8-strnlen-tests: New file.
31797         * tests/unistr/test-u8-strnlen.c: New file.
31798         * tests/unistr/test-strnlen.h: New file.
31799
31800         Tests for module 'unistr/u32-strlen'.
31801         * modules/unistr/u32-strlen-tests: New file.
31802         * tests/unistr/test-u32-strlen.c: New file.
31803
31804         Tests for module 'unistr/u16-strlen'.
31805         * modules/unistr/u16-strlen-tests: New file.
31806         * tests/unistr/test-u16-strlen.c: New file.
31807
31808         Tests for module 'unistr/u8-strlen'.
31809         * modules/unistr/u8-strlen-tests: New file.
31810         * tests/unistr/test-u8-strlen.c: New file.
31811
31812         Tests for module 'unistr/u32-prev'.
31813         * modules/unistr/u32-prev-tests: New file.
31814         * tests/unistr/test-u32-prev.c: New file.
31815
31816         Tests for module 'unistr/u16-prev'.
31817         * modules/unistr/u16-prev-tests: New file.
31818         * tests/unistr/test-u16-prev.c: New file.
31819
31820         Tests for module 'unistr/u8-prev'.
31821         * modules/unistr/u8-prev-tests: New file.
31822         * tests/unistr/test-u8-prev.c: New file.
31823
31824         Tests for module 'unistr/u32-next'.
31825         * modules/unistr/u32-next-tests: New file.
31826         * tests/unistr/test-u32-next.c: New file.
31827
31828         Tests for module 'unistr/u16-next'.
31829         * modules/unistr/u16-next-tests: New file.
31830         * tests/unistr/test-u16-next.c: New file.
31831
31832         Tests for module 'unistr/u8-next'.
31833         * modules/unistr/u8-next-tests: New file.
31834         * tests/unistr/test-u8-next.c: New file.
31835
31836         Tests for module 'unistr/u32-strmbtouc'.
31837         * modules/unistr/u32-strmbtouc-tests: New file.
31838         * tests/unistr/test-u32-strmbtouc.c: New file.
31839
31840         Tests for module 'unistr/u16-strmbtouc'.
31841         * modules/unistr/u16-strmbtouc-tests: New file.
31842         * tests/unistr/test-u16-strmbtouc.c: New file.
31843
31844         Tests for module 'unistr/u8-strmbtouc'.
31845         * modules/unistr/u8-strmbtouc-tests: New file.
31846         * tests/unistr/test-u8-strmbtouc.c: New file.
31847
31848         Tests for module 'unistr/u32-strmblen'.
31849         * modules/unistr/u32-strmblen-tests: New file.
31850         * tests/unistr/test-u32-strmblen.c: New file.
31851
31852         Tests for module 'unistr/u16-strmblen'.
31853         * modules/unistr/u16-strmblen-tests: New file.
31854         * tests/unistr/test-u16-strmblen.c: New file.
31855
31856         Tests for module 'unistr/u8-strmblen'.
31857         * modules/unistr/u8-strmblen-tests: New file.
31858         * tests/unistr/test-u8-strmblen.c: New file.
31859
31860         Tests for module 'unistr/u32-cpy-alloc'.
31861         * modules/unistr/u32-cpy-alloc-tests: New file.
31862         * tests/unistr/test-u32-cpy-alloc.c: New file.
31863
31864         Tests for module 'unistr/u16-cpy-alloc'.
31865         * modules/unistr/u16-cpy-alloc-tests: New file.
31866         * tests/unistr/test-u16-cpy-alloc.c: New file.
31867
31868         Tests for module 'unistr/u8-cpy-alloc'.
31869         * modules/unistr/u8-cpy-alloc-tests: New file.
31870         * tests/unistr/test-u8-cpy-alloc.c: New file.
31871         * tests/unistr/test-cpy-alloc.h: New file.
31872
31873         Tests for module 'unistr/u32-mbsnlen'.
31874         * modules/unistr/u32-mbsnlen-tests: New file.
31875         * tests/unistr/test-u32-mbsnlen.c: New file.
31876
31877         Tests for module 'unistr/u16-mbsnlen'.
31878         * modules/unistr/u16-mbsnlen-tests: New file.
31879         * tests/unistr/test-u16-mbsnlen.c: New file.
31880
31881         Tests for module 'unistr/u8-mbsnlen'.
31882         * modules/unistr/u8-mbsnlen-tests: New file.
31883         * tests/unistr/test-u8-mbsnlen.c: New file.
31884
31885         Tests for module 'unistr/u32-chr'.
31886         * modules/unistr/u32-chr-tests: New file.
31887         * tests/unistr/test-u32-chr.c: New file.
31888
31889         Tests for module 'unistr/u16-chr'.
31890         * modules/unistr/u16-chr-tests: New file.
31891         * tests/unistr/test-u16-chr.c: New file.
31892
31893         Tests for module 'unistr/u8-chr'.
31894         * modules/unistr/u8-chr-tests: New file.
31895         * tests/unistr/test-u8-chr.c: New file.
31896         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31897
31898         Tests for module 'unistr/u32-cmp2'.
31899         * modules/unistr/u32-cmp2-tests: New file.
31900         * tests/unistr/test-u32-cmp2.c: New file.
31901
31902         Tests for module 'unistr/u16-cmp2'.
31903         * modules/unistr/u16-cmp2-tests: New file.
31904         * tests/unistr/test-u16-cmp2.c: New file.
31905
31906         Tests for module 'unistr/u8-cmp2'.
31907         * modules/unistr/u8-cmp2-tests: New file.
31908         * tests/unistr/test-u8-cmp2.c: New file.
31909         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31910
31911         Tests for module 'unistr/u32-cmp'.
31912         * modules/unistr/u32-cmp-tests: New file.
31913         * tests/unistr/test-u32-cmp.c: New file.
31914
31915         Tests for module 'unistr/u16-cmp'.
31916         * modules/unistr/u16-cmp-tests: New file.
31917         * tests/unistr/test-u16-cmp.c: New file.
31918
31919         Tests for module 'unistr/u8-cmp'.
31920         * modules/unistr/u8-cmp-tests: New file.
31921         * tests/unistr/test-u8-cmp.c: New file.
31922         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31923
31924         Tests for module 'unistr/u32-set'.
31925         * modules/unistr/u32-set-tests: New file.
31926         * tests/unistr/test-u32-set.c: New file.
31927
31928         Tests for module 'unistr/u16-set'.
31929         * modules/unistr/u16-set-tests: New file.
31930         * tests/unistr/test-u16-set.c: New file.
31931
31932         Tests for module 'unistr/u8-set'.
31933         * modules/unistr/u8-set-tests: New file.
31934         * tests/unistr/test-u8-set.c: New file.
31935         * tests/unistr/test-set.h: New file.
31936
31937         Tests for module 'unistr/u32-move'.
31938         * modules/unistr/u32-move-tests: New file.
31939         * tests/unistr/test-u32-move.c: New file.
31940
31941         Tests for module 'unistr/u16-move'.
31942         * modules/unistr/u16-move-tests: New file.
31943         * tests/unistr/test-u16-move.c: New file.
31944
31945         Tests for module 'unistr/u8-move'.
31946         * modules/unistr/u8-move-tests: New file.
31947         * tests/unistr/test-u8-move.c: New file.
31948         * tests/unistr/test-move.h: New file.
31949
31950         Tests for module 'unistr/u32-cpy'.
31951         * modules/unistr/u32-cpy-tests: New file.
31952         * tests/unistr/test-u32-cpy.c: New file.
31953
31954         Tests for module 'unistr/u16-cpy'.
31955         * modules/unistr/u16-cpy-tests: New file.
31956         * tests/unistr/test-u16-cpy.c: New file.
31957
31958         Tests for module 'unistr/u8-cpy'.
31959         * modules/unistr/u8-cpy-tests: New file.
31960         * tests/unistr/test-u8-cpy.c: New file.
31961         * tests/unistr/test-cpy.h: New file.
31962
31963 2010-01-09  Bruno Haible  <bruno@clisp.org>
31964
31965         Tests for module 'unistr/u32-uctomb'.
31966         * modules/unistr/u32-uctomb-tests: New file.
31967         * tests/unistr/test-u32-uctomb.c: New file.
31968
31969         Tests for module 'unistr/u16-uctomb'.
31970         * modules/unistr/u16-uctomb-tests: New file.
31971         * tests/unistr/test-u16-uctomb.c: New file.
31972
31973         Tests for module 'unistr/u8-uctomb'.
31974         * modules/unistr/u8-uctomb-tests: New file.
31975         * tests/unistr/test-u8-uctomb.c: New file.
31976
31977         Tests for module 'unistr/u32-mbtoucr'.
31978         * modules/unistr/u32-mbtoucr-tests: New file.
31979         * tests/unistr/test-u32-mbtoucr.c: New file.
31980
31981         Tests for module 'unistr/u16-mbtoucr'.
31982         * modules/unistr/u16-mbtoucr-tests: New file.
31983         * tests/unistr/test-u16-mbtoucr.c: New file.
31984
31985         Tests for module 'unistr/u8-mbtoucr'.
31986         * modules/unistr/u8-mbtoucr-tests: New file.
31987         * tests/unistr/test-u8-mbtoucr.c: New file.
31988
31989         Tests for module 'unistr/u32-mbtouc'.
31990         * modules/unistr/u32-mbtouc-tests: New file.
31991         * tests/unistr/test-u32-mbtouc.c: New file.
31992
31993         Tests for module 'unistr/u16-mbtouc'.
31994         * modules/unistr/u16-mbtouc-tests: New file.
31995         * tests/unistr/test-u16-mbtouc.c: New file.
31996
31997         Tests for module 'unistr/u8-mbtouc'.
31998         * modules/unistr/u8-mbtouc-tests: New file.
31999         * tests/unistr/test-u8-mbtouc.c: New file.
32000
32001         Tests for module 'unistr/u32-mbtouc-unsafe'.
32002         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
32003         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
32004         * tests/unistr/test-u32-mbtouc.h: New file.
32005
32006         Tests for module 'unistr/u16-mbtouc-unsafe'.
32007         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
32008         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
32009         * tests/unistr/test-u16-mbtouc.h: New file.
32010
32011         Tests for module 'unistr/u8-mbtouc-unsafe'.
32012         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
32013         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
32014         * tests/unistr/test-u8-mbtouc.h: New file.
32015
32016         Tests for module 'unistr/u32-mblen'.
32017         * modules/unistr/u32-mblen-tests: New file.
32018         * tests/unistr/test-u32-mblen.c: New file.
32019
32020         Tests for module 'unistr/u16-mblen'.
32021         * modules/unistr/u16-mblen-tests: New file.
32022         * tests/unistr/test-u16-mblen.c: New file.
32023
32024         Tests for module 'unistr/u8-mblen'.
32025         * modules/unistr/u8-mblen-tests: New file.
32026         * tests/unistr/test-u8-mblen.c: New file.
32027
32028         Tests for module 'unistr/u32-to-u16'.
32029         * modules/unistr/u32-to-u16-tests: New file.
32030         * tests/unistr/test-u32-to-u16.c: New file.
32031
32032         Tests for module 'unistr/u32-to-u8'.
32033         * modules/unistr/u32-to-u8-tests: New file.
32034         * tests/unistr/test-u32-to-u8.c: New file.
32035
32036         Tests for module 'unistr/u16-to-u32'.
32037         * modules/unistr/u16-to-u32-tests: New file.
32038         * tests/unistr/test-u16-to-u32.c: New file.
32039
32040         Tests for module 'unistr/u16-to-u8'.
32041         * modules/unistr/u16-to-u8-tests: New file.
32042         * tests/unistr/test-u16-to-u8.c: New file.
32043
32044         Tests for module 'unistr/u8-to-u32'.
32045         * modules/unistr/u8-to-u32-tests: New file.
32046         * tests/unistr/test-u8-to-u32.c: New file.
32047
32048         Tests for module 'unistr/u8-to-u16'.
32049         * modules/unistr/u8-to-u16-tests: New file.
32050         * tests/unistr/test-u8-to-u16.c: New file.
32051
32052         Tests for module 'unistr/u32-check'.
32053         * modules/unistr/u32-check-tests: New file.
32054         * tests/unistr/test-u32-check.c: New file.
32055
32056         Tests for module 'unistr/u16-check'.
32057         * modules/unistr/u16-check-tests: New file.
32058         * tests/unistr/test-u16-check.c: New file.
32059
32060         Tests for module 'unistr/u8-check'.
32061         * modules/unistr/u8-check-tests: New file.
32062         * tests/unistr/test-u8-check.c: New file.
32063
32064         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
32065         (category_equals): New function.
32066         (main): Add more tests.
32067         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
32068
32069         * tests/unictype/test-bidi_byname.c (main): Add more tests.
32070
32071 2010-01-10  Bruno Haible  <bruno@clisp.org>
32072
32073         unistr/u*-strcoll: Try harder to distinguish different strings.
32074         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
32075         compare s1 and s2 to see if they are different.
32076
32077 2010-01-10  Bruno Haible  <bruno@clisp.org>
32078
32079         unistr/u*-stpncpy: Fix the return value.
32080         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
32081         description of the return value consistent with stpncpy in glibc.
32082         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
32083         written non-NUL unit.
32084
32085 2010-01-10  Bruno Haible  <bruno@clisp.org>
32086
32087         unistr/u*-next: Add missing dependencies.
32088         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
32089         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
32090         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
32091
32092 2010-01-10  Bruno Haible  <bruno@clisp.org>
32093
32094         unistr/u8-mbsnlen: Fix return value for incomplete character.
32095         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
32096         u8_mblen.
32097         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
32098         Remove unistr/u8-mblen.
32099         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
32100         u16_mblen.
32101         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
32102         Remove unistr/u16-mblen.
32103
32104 2010-01-10  Bruno Haible  <bruno@clisp.org>
32105
32106         wchar: Fix compilation error when <wchar.h> is used from coreutils.
32107         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
32108         Reported by Brian Gough <bjg@gnu.org> and
32109         Chris Clayton <chris2553@googlemail.com> via
32110         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
32111
32112 2010-01-09  Bruno Haible  <bruno@clisp.org>
32113
32114         unistr/u16-to-u32: Reject invalid input.
32115         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
32116         u16_mbtouc.
32117         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
32118         Remove unistr/u16-mbtouc.
32119
32120         unistr/u16-to-u8: Reject invalid input.
32121         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
32122         u16_mbtouc.
32123         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
32124         Remove unistr/u16-mbtouc.
32125
32126         unistr/u8-to-u32: Reject invalid input.
32127         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
32128         u8_mbtouc.
32129         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
32130         Remove unistr/u8-mbtouc.
32131
32132         unistr/u8-to-u16: Reject invalid input.
32133         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
32134         u8_mbtouc.
32135         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
32136         Remove unistr/u8-mbtouc.
32137
32138 2010-01-09  Bruno Haible  <bruno@clisp.org>
32139
32140         Tests for module 'getlogin'.
32141         * modules/getlogin-tests: New file.
32142         * tests/test-getlogin.c: New file.
32143
32144         New module 'getlogin'.
32145         * lib/unistd.in.h (getlogin): New declaration.
32146         * lib/getlogin.c: New file.
32147         * m4/getlogin.m4: New file.
32148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
32149         HAVE_GETLOGIN.
32150         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
32151         HAVE_GETLOGIN.
32152         * modules/getlogin: New file.
32153         * doc/posix-functions/getlogin.texi: Mention the new module.
32154         Reported by John W. Eaton <jwe@gnu.org>.
32155
32156 2010-01-09  Bruno Haible  <bruno@clisp.org>
32157
32158         getlogin_r: Support for native Windows.
32159         * lib/getlogin_r.c: Include <windows.h>
32160         (getlogin_r): Implement for native Windows.
32161         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
32162         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
32163         via John W. Eaton <jwe@gnu.org>.
32164
32165 2010-01-09  Bruno Haible  <bruno@clisp.org>
32166
32167         getlogin_r: Small fixes.
32168         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
32169         succeeds.
32170         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
32171         before testing whether getlogin_r is declared. No need to set
32172         HAVE_DECL_GETLOGIN_R to 1.
32173         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
32174
32175 2010-01-09  Bruno Haible  <bruno@clisp.org>
32176
32177         * lib/unistd.in.h (getlogin_r): Add comment.
32178
32179 2010-01-09  Bruno Haible  <bruno@clisp.org>
32180
32181         Tests for module 'getlogin_r'.
32182         * modules/getlogin_r-tests: New file.
32183         * tests/test-getlogin_r.c: New file.
32184
32185 2010-01-09  Jim Meyering  <meyering@redhat.com>
32186
32187         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
32188         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
32189         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
32190
32191 2010-01-08  Simon Josefsson  <simon@josefsson.org>
32192
32193         * lib/dup2.c (rpl_dup2): Improve comment.
32194
32195 2010-01-08  Eric Blake  <ebb9@byu.net>
32196
32197         maint.mk: allow packages to add makefile @@ exceptions
32198         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
32199         (sc_makefile_check): Rename...
32200         (sc_makefile_at_at_check): ...to this, and use hook.
32201
32202         dup2: work around mingw bug
32203         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
32204         Reported by Simon Josefsson.
32205
32206 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
32207
32208         glob: Fix C++ compilation.
32209         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
32210         C++.
32211
32212 2010-01-07  Bruno Haible  <bruno@clisp.org>
32213
32214         Fix indentation of wctype.in.h, broken since 2007-01-06.
32215         * lib/wctype.in.h: Fix indentation of preprocessor directives.
32216
32217 2010-01-07  Bruno Haible  <bruno@clisp.org>
32218
32219         mbslen: Avoid collision with system function.
32220         * lib/string.in.h [MirBSD]: Include <wchar.h>.
32221         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
32222         * m4/mbslen.m4: New file.
32223         * modules/mbslen (Files): Add it.
32224         (configure.ac): Invoke gl_MBSLEN.
32225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
32226         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
32227         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
32228         via Ian Beckwith <ianb@erislabs.net>.
32229
32230 2010-01-07  Bruno Haible  <bruno@clisp.org>
32231
32232         dirent: Document the last fix.
32233         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
32234
32235 2010-01-07  Bruno Haible  <bruno@clisp.org>
32236
32237         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
32238         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
32239         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
32240         va_list are defined.
32241         * doc/posix-headers/stdio.texi: Document the bug of missing types.
32242         Reported by Eric Blake.
32243
32244 2010-01-07  Bruno Haible  <bruno@clisp.org>
32245
32246         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
32247         * modules/xlist (Depends-on): Add 'list',
32248         * modules/xoset (Depends-on): Add 'oset'.
32249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32250
32251 2010-01-07  Bruno Haible  <bruno@clisp.org>
32252
32253         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
32254         * doc/posix-functions/strncasecmp.texi: Likewise.
32255
32256 2010-01-07  Bruno Haible  <bruno@clisp.org>
32257
32258         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
32259
32260 2010-01-07  John W. Eaton  <jwe@octave.org>
32261
32262         wctype: allow C++ use
32263         * lib/wctype.in.h: Add extern "C" block for C++.
32264
32265 2010-01-06  Eric Blake  <ebb9@byu.net>
32266
32267         maint.mk: detect incorrect GFDL usage
32268         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
32269
32270 2010-01-06  Jim Meyering  <meyering@redhat.com>
32271         and Eric Blake  <ebb9@byu.net>
32272
32273         maint.mk: ignore multi-line copyright in NEWS
32274         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
32275
32276 2010-01-06  Eric Blake  <ebb9@byu.net>
32277
32278         select: add missing dependency
32279         * modules/select-tests (Depends-on): Move sockets dependency...
32280         * modules/select (Depends-on): ...here.
32281         Reported by Ian Beckwith.
32282
32283         doc: regenerate INSTALL
32284         * doc/INSTALL: Reflect recent autoconf update.
32285         * doc/INSTALL.ISO: Likewise.
32286         * doc/INSTALL.UTF-8: Likewise.
32287
32288         pread: fix compilation on glibc
32289         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
32290         Reported by Ralf Wildenhues.
32291
32292         dirent: fix test failure
32293         * lib/dirent.in.h (includes): Guarantee ino_t.
32294         Reported by Ralf Wildenhues.
32295
32296 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
32297
32298         linkat, renameat: avoid bad free
32299         * lib/at-func2.c (at_func2): Fix typo.
32300         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
32301
32302 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32303
32304         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
32305         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
32306         to avoid failure of symlink test later.
32307
32308 2010-01-06  Eric Blake  <ebb9@byu.net>
32309
32310         stdio, unistd: guarantee ssize_t
32311         * lib/unistd.in.h (includes): Ensure that types required by POSIX
32312         2008 are exposed when needed.
32313         * lib/stdio.in.h (includes): Likewise.
32314         Reported by Ralf Wildenhues.
32315
32316 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
32317
32318         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
32319         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
32320         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
32321
32322 2010-01-06  Jim Meyering  <meyering@redhat.com>
32323
32324         readtokens: this module *does* require xalloc.h
32325         It uses only functions that were omitted by the old syntax-check rule.
32326         * lib/readtokens.c: Include "xalloc.h" once again.
32327         * modules/readtokens (Depends-on): Add xalloc.
32328         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
32329
32330 2010-01-05  Eric Blake  <ebb9@byu.net>
32331
32332         maint: support 'make announcement' from a VPATH build
32333         * top/maint.mk (announcement): Look for correct NEWS file.
32334
32335 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
32336
32337         utimens (fdutimens): ignore a negative FD, per contract
32338         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
32339         when we have a valid file descriptor.  Otherwise, using a brand
32340         new glibc (with just-patched futimens that now fails with EBADF)
32341         would cause this function to fail with ENOSYS.
32342         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
32343         See also http://bugzilla.redhat.com/552320.
32344
32345 2010-01-05  Eric Blake  <ebb9@byu.net>
32346
32347         strcase: document what it provides
32348         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
32349         gnulib module.
32350         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
32351         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
32352
32353 2010-01-05  Jim Meyering  <meyering@redhat.com>
32354
32355         maint: remove useless inclusions of "xalloc.h"
32356         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
32357         * lib/readtokens.c: Likewise.
32358         * lib/same.c: Likewise.
32359         * modules/getloadavg (Depends-on): Remove xalloc.
32360         * modules/readtokens: Likewise.
32361         * modules/same: Likewise.
32362
32363         maint.mk: include 4 more function names in alloca.h-checking regexp
32364         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
32365         regexp.  Before, we would give a false-positive (saying alloca.h
32366         is included unnecessarily) when the only uses involved omitted symbols.
32367
32368         xalloc.h: use consistent formatting
32369         * lib/xalloc.h: Move declarations to start in the first column.
32370
32371 2010-01-05  Eric Blake  <ebb9@byu.net>
32372
32373         mkdir: avoid xalloc
32374         * lib/mkdir.c (includes): Drop unused header.
32375         Reported by John W. Eaton.
32376
32377 2010-01-04  Jim Meyering  <meyering@redhat.com>
32378
32379         nl_langinfo: avoid configure-time syntax error
32380         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
32381         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
32382         the empty string.  Don't let that provoke a shell syntax error.
32383
32384         regcomp, regexec, fnmatch: avoid array bounds read error
32385         * lib/regcomp.c (build_equiv_class): From glibc:
32386         Use only the low 24 bits of a findidx return value as an index
32387         into the weights array.  Patch by Ulrich Drepper:
32388         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
32389         * lib/regexec.c (check_node_accept_bytes): Likewise.
32390         * lib/fnmatch_loop.c (FCT): Likewise.
32391
32392         regcomp: skip collseq lookup when there are no rules
32393         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
32394         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
32395
32396         regcomp: recognize ill-formed { } expressions
32397         * lib/regcomp.c (parse_dup_op): From glibc:
32398         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
32399
32400         regcomp: fix typo in comment
32401         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
32402         s/satisfy/satisfies/.
32403
32404         regcomp: sync from glibc: remove dead store
32405         * lib/regcomp.c (duplicate_node_closure): Remove useless
32406         search_duplicated_node call and dead store.
32407
32408         regcomp: sync from glibc; always use nl_langinfo
32409         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
32410         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
32411         * modules/regex (Depends-on): Add nl_langinfo.
32412
32413 2010-01-04  Eric Blake  <ebb9@byu.net>
32414
32415         fdopendir: fix configure test
32416         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
32417
32418 2010-01-01  Bruno Haible  <bruno@clisp.org>
32419
32420         wchar: Remove unused configure check.
32421         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
32422
32423 2010-01-01  Eric Blake  <ebb9@byu.net>
32424
32425         headers: make check of system header explicit
32426         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
32427         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
32428         ourselves.
32429         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32432         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
32433         internals.
32434         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
32435         missing.
32436         Suggested by Bruno Haible.
32437
32438 2010-01-01  Jim Meyering  <meyering@redhat.com>
32439
32440         ChangeLog: tweak to eliminate unnecessary copyright line
32441         * ChangeLog: Remove a copyright line that was mistakenly updated
32442         by today's update-copyright run.  Reported by Eric Blake.
32443
32444         test-update-copyright: don't let envvar setting cause test failure
32445         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32446
32447 2010-01-01  Bruno Haible  <bruno@clisp.org>
32448
32449         localename: Avoid gcc warning.
32450         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
32451         function if it is not used.
32452
32453 2010-01-01  Jim Meyering  <meyering@redhat.com>
32454
32455         update nearly all FSF copyright year lists to include 2010
32456         Use the same procedure as for 2009, outlined in
32457         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
32458
32459         version-etc: set COPYRIGHT_YEAR to 2010
32460         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
32461
32462 2009-12-31  Eric Blake  <ebb9@byu.net>
32463
32464         doc: correct availability of cygwin 1.5.x getopt
32465         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
32466         variables.
32467         * doc/posix-functions/opterr.texi (opterr): Likewise.
32468         * doc/posix-functions/optind.texi (optind): Likewise.
32469         * doc/posix-functions/optopt.texi (optopt): Likewise.
32470         * doc/posix-functions/tzname.texi (tzname): Likewise.
32471
32472         openat: update maintainer
32473         * modules/openat (Maintainer): Add myself.
32474
32475         utimens: avoid shadowing warning
32476         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
32477         buffers into one, to avoid shadowing, as well as avoiding a
32478         redundant stat.
32479         Reported by Jim Meyering.
32480
32481         test-dup2: avoid compiler warning
32482         * tests/test-dup2.c (is_inheritable): Only define if used.
32483
32484 2010-01-01  Bruno Haible  <bruno@clisp.org>
32485
32486         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
32487         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
32488         defined, use wctomb instead of wcrtomb.
32489
32490 2010-01-01  Bruno Haible  <bruno@clisp.org>
32491
32492         iconv: Reject native Solaris iconv.
32493         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
32494         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
32495
32496 2009-12-31  Bruno Haible  <bruno@clisp.org>
32497
32498         * tests/test-signal.c (main): Remove test of 'SIG'.
32499
32500 2009-12-31  Bruno Haible  <bruno@clisp.org>
32501
32502         spawn: Fix incomplete fix.
32503         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32504         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32505         warnings for GNULIB_POSIXCHECK again.
32506         Reported by Eric Blake.
32507
32508 2009-12-31  Bruno Haible  <bruno@clisp.org>
32509
32510         Avoid namespace pollution on glibc systems.
32511         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
32512         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
32513         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
32514         glibc systems.
32515
32516 2009-12-31  Bruno Haible  <bruno@clisp.org>
32517
32518         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
32519         (gl_REPLACE_WCHAR_H): Turn into a no-op.
32520         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32521         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32522         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32523         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32524         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32525
32526 2009-12-31  Bruno Haible  <bruno@clisp.org>
32527
32528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32529         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
32530         afterwards.
32531
32532 2009-12-31  Bruno Haible  <bruno@clisp.org>
32533
32534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
32535         SYS_UTSNAME_H.
32536
32537 2009-12-31  Bruno Haible  <bruno@clisp.org>
32538
32539         spawn: Fix misapplied patch.
32540         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32541         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32542         warnings for GNULIB_POSIXCHECK.
32543
32544 2009-12-31  Bruno Haible  <bruno@clisp.org>
32545
32546         times: Update after sys_times changed.
32547         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
32548         * modules/times (Files): Add it.
32549         (configure.ac): Invoke gl_FUNC_TIMES.
32550
32551 2009-12-31  Bruno Haible  <bruno@clisp.org>
32552
32553         Use AC_C_INLINE where necessary.
32554         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
32555         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32556         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32557         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32558         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32559         * m4/mbiter.m4 (gl_MBITER): Likewise.
32560         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32561         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32562         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
32563         * modules/u64 (configure.ac): Likewise.
32564
32565 2009-12-31  Bruno Haible  <bruno@clisp.org>
32566
32567         Use AC_C_INLINE instead of module 'inline' where possible.
32568         * modules/inline (Description): Clarify purpose.
32569         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
32570         * modules/count-one-bits (Depends-on): Remove inline.
32571         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
32572         * modules/openat (Depends-on): Remove inline.
32573         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
32574         instead of depending on module 'inline'.
32575         * modules/filevercmp (Depends-on, configure.ac): Likewise.
32576         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
32577         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
32578         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
32579         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
32580         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
32581         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
32582         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
32583         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
32584         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
32585         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
32586         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
32587         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
32588         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
32589         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
32590         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
32591         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
32592         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
32593         Likewise.
32594         * modules/unictype/property-ascii-hex-digit (Depends-on,
32595         configure.ac): Likewise.
32596         * modules/unictype/property-bidi-arabic-digit (Depends-on,
32597         configure.ac): Likewise.
32598         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
32599         configure.ac): Likewise.
32600         * modules/unictype/property-bidi-block-separator (Depends-on,
32601         configure.ac): Likewise.
32602         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
32603         configure.ac): Likewise.
32604         * modules/unictype/property-bidi-common-separator (Depends-on,
32605         configure.ac): Likewise.
32606         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
32607         Likewise.
32608         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
32609         configure.ac): Likewise.
32610         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
32611         configure.ac): Likewise.
32612         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
32613         configure.ac): Likewise.
32614         * modules/unictype/property-bidi-european-digit (Depends-on,
32615         configure.ac): Likewise.
32616         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
32617         configure.ac): Likewise.
32618         * modules/unictype/property-bidi-left-to-right (Depends-on,
32619         configure.ac): Likewise.
32620         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
32621         configure.ac): Likewise.
32622         * modules/unictype/property-bidi-other-neutral (Depends-on,
32623         configure.ac): Likewise.
32624         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
32625         Likewise.
32626         * modules/unictype/property-bidi-segment-separator (Depends-on,
32627         configure.ac): Likewise.
32628         * modules/unictype/property-bidi-whitespace (Depends-on,
32629         configure.ac): Likewise.
32630         * modules/unictype/property-combining (Depends-on, configure.ac):
32631         Likewise.
32632         * modules/unictype/property-composite (Depends-on, configure.ac):
32633         Likewise.
32634         * modules/unictype/property-currency-symbol (Depends-on,
32635         configure.ac): Likewise.
32636         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
32637         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
32638         Likewise.
32639         * modules/unictype/property-default-ignorable-code-point (Depends-on,
32640         configure.ac): Likewise.
32641         * modules/unictype/property-deprecated (Depends-on, configure.ac):
32642         Likewise.
32643         * modules/unictype/property-diacritic (Depends-on, configure.ac):
32644         Likewise.
32645         * modules/unictype/property-extender (Depends-on, configure.ac):
32646         Likewise.
32647         * modules/unictype/property-format-control (Depends-on, configure.ac):
32648         Likewise.
32649         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
32650         Likewise.
32651         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
32652         Likewise.
32653         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
32654         Likewise.
32655         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
32656         Likewise.
32657         * modules/unictype/property-hyphen (Depends-on, configure.ac):
32658         Likewise.
32659         * modules/unictype/property-id-continue (Depends-on, configure.ac):
32660         Likewise.
32661         * modules/unictype/property-id-start (Depends-on, configure.ac):
32662         Likewise.
32663         * modules/unictype/property-ideographic (Depends-on, configure.ac):
32664         Likewise.
32665         * modules/unictype/property-ids-binary-operator (Depends-on,
32666         configure.ac): Likewise.
32667         * modules/unictype/property-ids-trinary-operator (Depends-on,
32668         configure.ac): Likewise.
32669         * modules/unictype/property-ignorable-control (Depends-on,
32670         configure.ac): Likewise.
32671         * modules/unictype/property-iso-control (Depends-on, configure.ac):
32672         Likewise.
32673         * modules/unictype/property-join-control (Depends-on, configure.ac):
32674         Likewise.
32675         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
32676         Likewise.
32677         * modules/unictype/property-line-separator (Depends-on, configure.ac):
32678         Likewise.
32679         * modules/unictype/property-logical-order-exception (Depends-on,
32680         configure.ac): Likewise.
32681         * modules/unictype/property-lowercase (Depends-on, configure.ac):
32682         Likewise.
32683         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
32684         * modules/unictype/property-non-break (Depends-on, configure.ac):
32685         Likewise.
32686         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
32687         Likewise.
32688         * modules/unictype/property-numeric (Depends-on, configure.ac):
32689         Likewise.
32690         * modules/unictype/property-other-alphabetic (Depends-on,
32691         configure.ac): Likewise.
32692         * modules/unictype/property-other-default-ignorable-code-point
32693         (Depends-on, configure.ac): Likewise.
32694         * modules/unictype/property-other-grapheme-extend (Depends-on,
32695         configure.ac): Likewise.
32696         * modules/unictype/property-other-id-continue (Depends-on,
32697         configure.ac): Likewise.
32698         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
32699         Likewise.
32700         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
32701         Likewise.
32702         * modules/unictype/property-other-math (Depends-on, configure.ac):
32703         Likewise.
32704         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
32705         Likewise.
32706         * modules/unictype/property-paired-punctuation (Depends-on,
32707         configure.ac): Likewise.
32708         * modules/unictype/property-paragraph-separator (Depends-on,
32709         configure.ac): Likewise.
32710         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
32711         Likewise.
32712         * modules/unictype/property-pattern-white-space (Depends-on,
32713         configure.ac): Likewise.
32714         * modules/unictype/property-private-use (Depends-on, configure.ac):
32715         Likewise.
32716         * modules/unictype/property-punctuation (Depends-on, configure.ac):
32717         Likewise.
32718         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
32719         Likewise.
32720         * modules/unictype/property-radical (Depends-on, configure.ac):
32721         Likewise.
32722         * modules/unictype/property-sentence-terminal (Depends-on,
32723         configure.ac): Likewise.
32724         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
32725         Likewise.
32726         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
32727         * modules/unictype/property-terminal-punctuation (Depends-on,
32728         configure.ac): Likewise.
32729         * modules/unictype/property-titlecase (Depends-on, configure.ac):
32730         Likewise.
32731         * modules/unictype/property-unassigned-code-value (Depends-on,
32732         configure.ac): Likewise.
32733         * modules/unictype/property-unified-ideograph (Depends-on,
32734         configure.ac): Likewise.
32735         * modules/unictype/property-uppercase (Depends-on, configure.ac):
32736         Likewise.
32737         * modules/unictype/property-variation-selector (Depends-on,
32738         configure.ac): Likewise.
32739         * modules/unictype/property-white-space (Depends-on, configure.ac):
32740         Likewise.
32741         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
32742         Likewise.
32743         * modules/unictype/property-xid-start (Depends-on, configure.ac):
32744         Likewise.
32745         * modules/unictype/property-zero-width (Depends-on, configure.ac):
32746         Likewise.
32747         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
32748         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
32749         Likewise.
32750
32751 2009-12-31  Bruno Haible  <bruno@clisp.org>
32752
32753         Remove unnecessary AC_C_INLINE invocation.
32754         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
32755         since 2009-08-21.
32756
32757 2009-12-31  Jim Meyering  <meyering@redhat.com>
32758
32759         maint.mk: don't require explicit gpg_key_ID in cfg.mk
32760         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
32761         With this change, we can all remove the gpg_key_ID = ... definition
32762         from our respective cfg.mk files.
32763
32764         maint.mk: create announcement template in ~/, not in /tmp
32765         * top/maint.mk (emit_upload_commands): Adjust.
32766         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
32767         Remove temporary file, .ci-msg.
32768
32769 2009-12-31  Eric Blake  <ebb9@byu.net>
32770
32771         link-warning: always build headers with link warnings
32772         * modules/arpa_inet (Makefile.am): Always build replacement
32773         header.
32774         * modules/ctype (Makefile.am): Likewise.
32775         * modules/dirent (Makefile.am): Likewise.
32776         * modules/inttypes (Makefile.am): Likewise.
32777         * modules/langinfo (Makefile.am): Likewise.
32778         * modules/locale (Makefile.am): Likewise.
32779         * modules/spawn (Makefile.am): Likewise.
32780         * modules/sys_file (Makefile.am): Likewise.
32781         * modules/sys_ioctl (Makefile.am): Likewise.
32782         * modules/sys_select (Makefile.am): Likewise.
32783         * modules/sys_socket (Makefile.am): Likewise.
32784         * modules/sys_times (Makefile.am): Likewise.
32785         * modules/sys_utsname (Makefile.am): Likewise.
32786         * modules/sys_wait (Makefile.am): Likewise.
32787         * modules/wchar (Makefile.am): Likewise.
32788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
32789         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
32790         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
32791         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
32792         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
32793         Likewise.
32794         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32795         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32796         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
32797         Likewise.
32798         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
32799         Likewise.
32800         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
32801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
32802         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
32803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32804         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32805         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32806         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32807         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32808         (gl_WCHAR_H_DEFAULTS): Likewise.
32809
32810 2009-12-31  Eric Blake  <ebb9@byu.net>
32811
32812         signal, spawn: use link warnings
32813         * lib/signal.in.h (sigset_t): Make unconditional.
32814         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32815         (sigpending, sigprocmask, sigaction): Add link warnings.
32816         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32817         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32818         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32819         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32820         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32821         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32822         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32823         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32824         (posix_spawn_file_actions_destroy)
32825         (posix_spawn_file_actions_addopen)
32826         (posix_spawn_file_actions_addclose)
32827         (posix_spawn_file_actions_adddup2): Likewise.
32828         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32829         * tests/test-signal.c (main): Enhance test.
32830
32831         spawn: improve wrapper support
32832         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32833         (gl_SPAWN_H_DEFAULTS): New defaults.
32834         * modules/spawn (Makefile.am): Substitute them.
32835         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32836         Only declare if missing or broken.
32837
32838         sys_times, sys_utsname: use include_next
32839         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32840         header.
32841         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32842         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32843         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32844         * modules/sys_times (Depends-on): Add include_next.
32845         (Makefile.am): Substitute additional values.
32846         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32847         * lib/sys_times.in.h (includes): Include native header, if
32848         available.
32849         * lib/sys_utsname.in.h (includes): Likewise.
32850         * tests/test-sys_times.c (main): Enhance test.
32851
32852         fdutimensat: revert prior patch
32853         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32854         utimens.h.
32855         Reported by Bruno Haible.
32856
32857 2009-12-30  Eric Blake  <ebb9@byu.net>
32858
32859         sys_wait: drop link-warning dependency
32860         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32861         link-warning efforts.
32862         * lib/sys_wait.in.h: Likewise.
32863
32864         fdutimensat: remove bogus dependency
32865         * modules/fdutimensat (Depends-on): Drop inline.
32866
32867         unistd: fix typo
32868         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32869
32870 2009-12-30  Bruno Haible  <bruno@clisp.org>
32871
32872         Fix compilation error with Solaris cc.
32873         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32874         * lib/unicase/u16-is-invariant.c: Likewise.
32875         * lib/unicase/u32-is-invariant.c: Likewise.
32876         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32877
32878 2009-12-30  Bruno Haible  <bruno@clisp.org>
32879
32880         Fix test crash.
32881         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32882         locales.
32883         Reported by Simon Josefsson <simon@josefsson.org>.
32884
32885 2009-12-30  Bruno Haible  <bruno@clisp.org>
32886
32887         Fix compilation error on most platforms.
32888         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32889         Reported by Simon Josefsson <simon@josefsson.org>
32890         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32891
32892 2009-12-30  Eric Blake  <ebb9@byu.net>
32893
32894         futimens, utimensat: work around ntfs-3g bug
32895         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32896         a ctime bug is present, and expand workaround to cover ntfs-3g.
32897         * lib/utimens.c (fdutimens, lutimens): Likewise.
32898         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32899         (validate_timespec): Adjust return value.
32900         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32902         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32903
32904 2009-12-29  Eric Blake  <ebb9@byu.net>
32905
32906         link-warning: make usage consistent
32907         * modules/ctype (Depends-on): Add link-warning.
32908         (Makefile.am): Update rules accordingly.
32909         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32910         * modules/locale (Depends-on, Makefile.am): Likewise.
32911         * modules/sys_file (Makefile.am): Likewise.
32912         * modules/getopt-posix (Makefile.am): Delete unused link warning
32913         efforts.
32914         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32915         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32916         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32917         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32918
32919         stdio: remove unused variables
32920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32921         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32922         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32923
32924         tests: test more substitute headers
32925         * modules/ctype-tests: New file.
32926         * modules/dirent-tests: Likewise.
32927         * modules/spawn-tests: Likewise.
32928         * modules/sys_file-tests: Likewise.
32929         * modules/sys_ioctl-tests: Likewise.
32930         * modules/sys_wait-tests: Likewise.
32931         * tests/test-ctype.c: Likewise.
32932         * tests/test-dirent.c: Likewise.
32933         * tests/test-spawn.c: Likewise.
32934         * tests/test-sys_file.c: Likewise.
32935         * tests/test-sys_ioctl.c: Likewise.
32936         * tests/test-sys_wait.c: Likewise.
32937         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32938         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32939         whether or not flock is in use.
32940
32941         tests: remove License section from module
32942         * modules/arpa_inet-tests: Remove unneeded section.
32943         * modules/byteswap-tests: Likewise.
32944         * modules/ceilf-tests: Likewise.
32945         * modules/ceill-tests: Likewise.
32946         * modules/crypto/des-tests: Likewise.
32947         * modules/crypto/gc-arcfour-tests: Likewise.
32948         * modules/crypto/gc-arctwo-tests: Likewise.
32949         * modules/crypto/gc-des-tests: Likewise.
32950         * modules/crypto/gc-hmac-md5-tests: Likewise.
32951         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32952         * modules/crypto/gc-md2-tests: Likewise.
32953         * modules/crypto/gc-md4-tests: Likewise.
32954         * modules/crypto/gc-md5-tests: Likewise.
32955         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32956         * modules/crypto/gc-rijndael-tests: Likewise.
32957         * modules/crypto/gc-sha1-tests: Likewise.
32958         * modules/crypto/gc-tests: Likewise.
32959         * modules/crypto/md2-tests: Likewise.
32960         * modules/crypto/md4-tests: Likewise.
32961         * modules/fcntl-h-tests: Likewise.
32962         * modules/floorf-tests: Likewise.
32963         * modules/floorl-tests: Likewise.
32964         * modules/frexp-nolibm-tests: Likewise.
32965         * modules/frexp-tests: Likewise.
32966         * modules/frexpl-nolibm-tests: Likewise.
32967         * modules/frexpl-tests: Likewise.
32968         * modules/getaddrinfo-tests: Likewise.
32969         * modules/inttypes-tests: Likewise.
32970         * modules/isfinite-tests: Likewise.
32971         * modules/isinf-tests: Likewise.
32972         * modules/ldexpl-tests: Likewise.
32973         * modules/locale-tests: Likewise.
32974         * modules/math-tests: Likewise.
32975         * modules/netdb-tests: Likewise.
32976         * modules/netinet_in-tests: Likewise.
32977         * modules/printf-frexp-tests: Likewise.
32978         * modules/printf-frexpl-tests: Likewise.
32979         * modules/priv-set-tests: Likewise.
32980         * modules/random_r-tests: Likewise.
32981         * modules/round-tests: Likewise.
32982         * modules/roundf-tests: Likewise.
32983         * modules/roundl-tests: Likewise.
32984         * modules/search-tests: Likewise.
32985         * modules/select-tests: Likewise.
32986         * modules/signal-tests: Likewise.
32987         * modules/stdbool-tests: Likewise.
32988         * modules/stddef-tests: Likewise.
32989         * modules/stdint-tests: Likewise.
32990         * modules/stdio-tests: Likewise.
32991         * modules/stdlib-tests: Likewise.
32992         * modules/string-tests: Likewise.
32993         * modules/strings-tests: Likewise.
32994         * modules/sys_select-tests: Likewise.
32995         * modules/sys_socket-tests: Likewise.
32996         * modules/sys_stat-tests: Likewise.
32997         * modules/sys_time-tests: Likewise.
32998         * modules/sys_utsname-tests: Likewise.
32999         * modules/sysexits-tests: Likewise.
33000         * modules/time-tests: Likewise.
33001         * modules/trunc-tests: Likewise.
33002         * modules/truncf-tests: Likewise.
33003         * modules/truncl-tests: Likewise.
33004         * modules/tsearch-tests: Likewise.
33005         * modules/unistd-tests: Likewise.
33006         * modules/wchar-tests: Likewise.
33007         * modules/wctype-tests: Likewise.
33008
33009         tests: fix license on several tests
33010         * tests/test-des.c: Update to GPLv3+.
33011         * tests/test-flock.c: Likewise.
33012         * tests/test-fsync.c: Likewise.
33013         * tests/test-futimens.h: Likewise.
33014         * tests/test-gc-arcfour.c: Likewise.
33015         * tests/test-gc-arctwo.c: Likewise.
33016         * tests/test-gc-des.c: Likewise.
33017         * tests/test-gc-hmac-md5.c: Likewise.
33018         * tests/test-gc-hmac-sha1.c: Likewise.
33019         * tests/test-gc-md2.c: Likewise.
33020         * tests/test-gc-md4.c: Likewise.
33021         * tests/test-gc-md5.c: Likewise.
33022         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33023         * tests/test-gc-rijndael.c: Likewise.
33024         * tests/test-gc-sha1.c: Likewise.
33025         * tests/test-gc.c: Likewise.
33026         * tests/test-getcwd.c: Likewise.
33027         * tests/test-link.c: Likewise.
33028         * tests/test-link.h: Likewise.
33029         * tests/test-lutimens.h: Likewise.
33030         * tests/test-md2.c: Likewise.
33031         * tests/test-md4.c: Likewise.
33032         * tests/test-mkdir.h: Likewise.
33033         * tests/test-rename.c: Likewise.
33034         * tests/test-rename.h: Likewise.
33035         * tests/test-safe-alloc.c: Likewise.
33036         * tests/test-utimens-common.h: Likewise.
33037         * tests/test-utimens.h: Likewise.
33038
33039         maint: sync license texts
33040         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
33041         * doc/gpl-3.0.texi: Revert copyright year update.
33042         * doc/lgpl-3.0.texi: Likewise.
33043
33044 2009-12-29  Jim Meyering  <meyering@redhat.com>
33045
33046         update nearly all FSF copyright year lists to include 2009
33047         The files named by the following are exempted:
33048             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
33049               test -f "$dst" && { echo "$dst"; continue; }
33050               test -d "$dst" || continue
33051               echo "$dst"/$(basename "$src")
33052             done > exempt
33053             git ls-files tests/unictype >> exempt
33054         In the remaining files, convert to all-interval notation if
33055         - there is already at least one year interval like 2000-2003
33056         - the file is maintained by me
33057         - the file is in lib/uni*/, where that style already prevails
33058         Otherwise, use update-copyright's default.
33059
33060 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33061         and Eric Blake  <ebb9@byu.net>
33062
33063         tests: don't require debug system() to pass
33064         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
33065         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33066         * tests/test-unlink.h (test_unlink_func): Likewise.
33067         * tests/test-fstatat.c (main): ...into callers.
33068         * tests/test-lstat.c (main): Likewise.
33069         * tests/test-rmdir.c (main): Likewise.
33070         * tests/test-unlink.c (main): Likewise.
33071         * tests/test-unlinkat.c (main): Likewise.
33072         * tests/test-areadlink-with-size.c (main): Don't require a
33073         debug-only system call to pass, aiding cross-testing to mingw.
33074         * tests/test-areadlink.c (main): Likewise.
33075         * tests/test-areadlinkat-with-size.c (main): Likewise.
33076         * tests/test-areadlinkat.c (main): Likewise.
33077         * tests/test-canonicalize-lgpl.c (main): Likewise.
33078         * tests/test-canonicalize.c (main): Likewise.
33079         * tests/test-chown.c (main): Likewise.
33080         * tests/test-fchownat.c (main): Likewise.
33081         * tests/test-lchown.c (main): Likewise.
33082         * tests/test-fdutimensat.c (main): Likewise.
33083         * tests/test-futimens.c (main): Likewise.
33084         * tests/test-link.c (main): Likewise.
33085         * tests/test-linkat.c (main): Likewise.
33086         * tests/test-mkdir.c (main): Likewise.
33087         * tests/test-mkdirat.c (main): Likewise.
33088         * tests/test-mkfifo.c (main): Likewise.
33089         * tests/test-mkfifoat.c (main): Likewise.
33090         * tests/test-mknod.c (main): Likewise.
33091         * tests/test-readlink.c (main): Likewise.
33092         * tests/test-remove.c (main): Likewise.
33093         * tests/test-rename.c (main): Likewise.
33094         * tests/test-renameat.c (main): Likewise.
33095         * tests/test-symlink.c (main): Likewise.
33096         * tests/test-symlinkat.c (main): Likewise.
33097         * tests/test-utimens.c (main): Likewise.
33098         * tests/test-utimensat.c (main): Likewise.
33099
33100 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33101
33102         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
33103         on $(UNUSED_PARAMETER_H) to avoid build failure.
33104
33105 2009-12-28  Jim Meyering  <meyering@redhat.com>
33106
33107         update-copyright: you may specify a max. line length other than 72
33108         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33109
33110         maint: use consistent FSF copyright line syntax
33111         * lib/posixtm.c: Add missing comma in FSF copyright line.
33112         * lib/posixtm.h: Likewise.
33113         * lib/getugroups.c: Add missing ", Inc.".
33114
33115         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
33116         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
33117         FSF copyright line.  Remove trailing blanks.
33118
33119 2009-12-28  Eric Blake  <ebb9@byu.net>
33120
33121         test-dup2: reduce dependencies
33122         * modules/cloexec (Configure.ac): Set witness.
33123         * modules/dup2-tests (Depends-on): Drop cloexec.
33124         * tests/test-dup2.c (main): Skip portion of test if cloexec module
33125         not present.
33126         Suggested by Bruno Haible.
33127
33128 2009-12-26  Bruno Haible  <bruno@clisp.org>
33129
33130         Remove an unneeded dependency.
33131         * modules/fseterr (Depends-on): Remove dup2.
33132
33133 2009-12-26  Eric Blake  <ebb9@byu.net>
33134
33135         tests: use macros.h in more places
33136         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
33137         (ASSERT_STREAM): Provide default of stderr.
33138         * tests/test-dirent-safer.c: Include macros.h, using alternate
33139         stream for assertions.
33140         * tests/test-dup-safer.c: Likewise.
33141         * tests/test-freopen-safer.c: Likewise.
33142         * tests/test-getopt.c: Likewise.
33143         * tests/test-openat-safer.c: Likewise.
33144         * tests/test-pipe.c: Likewise.
33145         * tests/test-popen-safer.c: Likewise.
33146         * modules/dirent-safer-tests (Files): Include macros.h.
33147         * modules/unistd-safer-tests (Files): Likewise.
33148         * modules/freopen-safer-tests (Files): Likewise.
33149         * modules/getopt-posix-tests (Files): Likewise.
33150         * modules/openat-safer-tests (Files): Likewise.
33151         * modules/pipe-tests (Files): Likewise.
33152
33153 2009-12-26  Bruno Haible  <bruno@clisp.org>
33154
33155         javacomp: Portability fix.
33156         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
33157         that it also works on Solaris.
33158
33159 2009-12-26  Bruno Haible  <bruno@clisp.org>
33160
33161         localename: Fix storage allocation of gl_locale_name_thread's result.
33162         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
33163         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
33164         all platforms that have 'uselocale'.
33165         (gl_locale_name_thread_unsafe): New function, extracted from
33166         gl_locale_name_thread.
33167         (gl_locale_name_thread): Call struniq on all platforms that have
33168         'uselocale'.
33169         * tests/test-localename.c (test_locale_name_thread): Check that the
33170         resulting strings are permanently allocated.
33171         * modules/localename-tests (Depends-on): Add strdup.
33172
33173 2009-12-26  Bruno Haible  <bruno@clisp.org>
33174
33175         * tests/test-localename.c (categories): Fill in the strings.
33176
33177 2009-12-26  Jim Meyering  <meyering@redhat.com>
33178
33179         isdir: complete the removal of m4/isdir.m4
33180         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
33181
33182         isdir: clean up, since at least grep still uses it
33183         * lib/isdir.c: Include "isdir.h".
33184         (S_ISDIR): Remove now-unneeded definition.
33185         * modules/isdir (Files): Add lib/isdir.h.
33186         * lib/isdir.h: New file, with declaration.
33187         * m4/isdir.m4: Remove file -- unneeded.
33188
33189 2009-12-25  Bruno Haible  <bruno@clisp.org>
33190
33191         selinux-h: Make generated .h files standalone.
33192         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
33193         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
33194         * lib/se-selinux.in.h: Likewise.
33195         * modules/selinux-h (Depends-on): Add unused-parameter.
33196         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
33197         selinux/selinux.h and selinux/context.h.
33198         Suggested by Eric Blake.
33199
33200 2009-12-25  Bruno Haible  <bruno@clisp.org>
33201
33202         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
33203         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
33204         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
33205         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
33206         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
33207
33208 2009-12-24  Bruno Haible  <bruno@clisp.org>
33209
33210         openat: Fix warning.
33211         * lib/openat-proc.c: Include <unistd.h>.
33212
33213 2009-12-24  Bruno Haible  <bruno@clisp.org>
33214
33215         New module 'unused-parameter'.
33216         * build-aux/unused-parameter.h: New file, extracted from earlier
33217         gnulib-common.m4.
33218         * modules/unused-parameter: New file.
33219         * lib/unistr.h: Include unused-parameter.h.
33220         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
33221         _GL_UNUSED.
33222         * modules/unistr/base (Depends-on): Add unused-parameter.
33223
33224 2009-12-24  Bruno Haible  <bruno@clisp.org>
33225
33226         Add missing dependencies to 'extensions' module.
33227         * m4/extensions.m4: Add comment.
33228         * modules/accept4 (Depends-on): Add extensions.
33229         * modules/dup3 (Depends-on): Likewise.
33230         * modules/fcntl (Depends-on): Likewise.
33231         * modules/futimens (Depends-on): Likewise.
33232         * modules/mknod (Depends-on): Likewise.
33233         * modules/pipe2 (Depends-on): Likewise.
33234         * modules/stat-time (Depends-on): Likewise.
33235         * modules/strcasestr-simple (Depends-on): Likewise.
33236         * modules/strsignal (Depends-on): Likewise.
33237         * modules/utimensat (Depends-on): Likewise.
33238         * modules/localcharset (Depends-on): Likewise. Needed because of
33239         gl_FCNTL_O_FLAGS.
33240         * modules/wcrtomb (Depends-on): Likewise. Needed because of
33241         AC_TYPE_MBSTATE_T.
33242         * modules/wcsnrtombs (Depends-on): Likewise.
33243         * modules/wcsrtombs (Depends-on): Likewise.
33244
33245 2009-12-24  Bruno Haible  <bruno@clisp.org>
33246
33247         binary-io: Avoid gcc warning due to SET_BINARY.
33248         * lib/binary-io.h (SET_BINARY): Cast the result to void.
33249         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
33250
33251 2009-12-24  Bruno Haible  <bruno@clisp.org>
33252
33253         Avoid future namespace pollution on glibc systems.
33254         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
33255         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
33256         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
33257         glibc systems.
33258
33259 2009-12-24  Bruno Haible  <bruno@clisp.org>
33260
33261         Refactor common macros used in tests.
33262         * tests/macros.h: New file.
33263         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
33264         and/or <stdlib.h>, if appropriate.
33265         (ASSERT, SIZEOF): Remove macros.
33266         * tests/test-areadlink-with-size.c: Likewise.
33267         * tests/test-areadlinkat.c: Likewise.
33268         * tests/test-areadlinkat-with-size.c: Likewise.
33269         * tests/test-argmatch.c: Likewise.
33270         * tests/test-argv-iter.c: Likewise.
33271         * tests/test-array-mergesort.c: Likewise.
33272         * tests/test-array_list.c: Likewise.
33273         * tests/test-array_oset.c: Likewise.
33274         * tests/test-avltree_list.c: Likewise.
33275         * tests/test-avltree_oset.c: Likewise.
33276         * tests/test-avltreehash_list.c: Likewise.
33277         * tests/test-base64.c: Likewise.
33278         * tests/test-binary-io.c: Likewise.
33279         * tests/test-bitrotate.c: Likewise.
33280         * tests/test-btowc.c: Likewise.
33281         * tests/test-byteswap.c: Likewise.
33282         * tests/test-c-ctype.c: Likewise.
33283         * tests/test-c-stack.c: Likewise.
33284         * tests/test-c-strcasecmp.c: Likewise.
33285         * tests/test-c-strcasestr.c: Likewise.
33286         * tests/test-c-strncasecmp.c: Likewise.
33287         * tests/test-c-strstr.c: Likewise.
33288         * tests/test-canonicalize-lgpl.c: Likewise.
33289         * tests/test-canonicalize.c: Likewise.
33290         * tests/test-carray_list.c: Likewise.
33291         * tests/test-ceilf1.c: Likewise.
33292         * tests/test-ceilf2.c: Likewise.
33293         * tests/test-ceill.c: Likewise.
33294         * tests/test-chown.c: Likewise.
33295         * tests/test-cloexec.c: Likewise.
33296         * tests/test-copy-acl.c: Likewise.
33297         * tests/test-copy-file.c: Likewise.
33298         * tests/test-count-one-bits.c: Likewise.
33299         * tests/test-dprintf-posix.c: Likewise.
33300         * tests/test-dup2.c: Likewise.
33301         * tests/test-dup3.c: Likewise.
33302         * tests/test-duplocale.c: Likewise.
33303         * tests/test-fbufmode.c: Likewise.
33304         * tests/test-fchdir.c: Likewise.
33305         * tests/test-fchownat.c: Likewise.
33306         * tests/test-fcntl-safer.c: Likewise.
33307         * tests/test-fcntl.c: Likewise.
33308         * tests/test-fdopendir.c: Likewise.
33309         * tests/test-fdutimensat.c: Likewise.
33310         * tests/test-fflush2.c: Likewise.
33311         * tests/test-file-has-acl.c: Likewise.
33312         * tests/test-filevercmp.c: Likewise.
33313         * tests/test-flock.c: Likewise.
33314         * tests/test-floorf1.c: Likewise.
33315         * tests/test-floorf2.c: Likewise.
33316         * tests/test-floorl.c: Likewise.
33317         * tests/test-fnmatch.c: Likewise.
33318         * tests/test-fopen.h: Likewise.
33319         * tests/test-fpending.c: Likewise.
33320         * tests/test-fprintf-posix.c: Likewise.
33321         * tests/test-fpurge.c: Likewise.
33322         * tests/test-freadable.c: Likewise.
33323         * tests/test-freadahead.c: Likewise.
33324         * tests/test-freading.c: Likewise.
33325         * tests/test-freadptr.c: Likewise.
33326         * tests/test-freadptr2.c: Likewise.
33327         * tests/test-freadseek.c: Likewise.
33328         * tests/test-freopen.c: Likewise.
33329         * tests/test-frexp.c: Likewise.
33330         * tests/test-frexpl.c: Likewise.
33331         * tests/test-fseek.c: Likewise.
33332         * tests/test-fseeko.c: Likewise.
33333         * tests/test-fstatat.c: Likewise.
33334         * tests/test-fstrcmp.c: Likewise.
33335         * tests/test-fsync.c: Likewise.
33336         * tests/test-ftell.c: Likewise.
33337         * tests/test-ftello.c: Likewise.
33338         * tests/test-func.c: Likewise.
33339         * tests/test-futimens.c: Likewise.
33340         * tests/test-fwritable.c: Likewise.
33341         * tests/test-fwriting.c: Likewise.
33342         * tests/test-getcwd.c: Likewise.
33343         * tests/test-getdate.c: Likewise.
33344         * tests/test-getdelim.c: Likewise.
33345         * tests/test-getdtablesize.c: Likewise.
33346         * tests/test-getgroups.c: Likewise.
33347         * tests/test-getline.c: Likewise.
33348         * tests/test-getndelim2.c: Likewise.
33349         * tests/test-glob.c: Likewise.
33350         * tests/test-hash.c: Likewise.
33351         * tests/test-i-ring.c: Likewise.
33352         * tests/test-iconv-utf.c: Likewise.
33353         * tests/test-iconv.c: Likewise.
33354         * tests/test-idpriv-drop.c: Likewise.
33355         * tests/test-idpriv-droptemp.c: Likewise.
33356         * tests/test-inet_ntop.c: Likewise.
33357         * tests/test-inet_pton.c: Likewise.
33358         * tests/test-isblank.c: Likewise.
33359         * tests/test-isfinite.c: Likewise.
33360         * tests/test-isinf.c: Likewise.
33361         * tests/test-isnan.c: Likewise.
33362         * tests/test-isnand.h: Likewise.
33363         * tests/test-isnanf.h: Likewise.
33364         * tests/test-isnanl.h: Likewise.
33365         * tests/test-lchown.c: Likewise.
33366         * tests/test-ldexpl.c: Likewise.
33367         * tests/test-link.c: Likewise.
33368         * tests/test-linkat.c: Likewise.
33369         * tests/test-linked_list.c: Likewise.
33370         * tests/test-linkedhash_list.c: Likewise.
33371         * tests/test-localename.c: Likewise.
33372         * tests/test-lseek.c: Likewise.
33373         * tests/test-lstat.c: Likewise.
33374         * tests/test-mbmemcasecmp.c: Likewise.
33375         * tests/test-mbmemcasecoll.c: Likewise.
33376         * tests/test-mbrtowc.c: Likewise.
33377         * tests/test-mbscasecmp.c: Likewise.
33378         * tests/test-mbscasestr1.c: Likewise.
33379         * tests/test-mbscasestr2.c: Likewise.
33380         * tests/test-mbscasestr3.c: Likewise.
33381         * tests/test-mbscasestr4.c: Likewise.
33382         * tests/test-mbschr.c: Likewise.
33383         * tests/test-mbscspn.c: Likewise.
33384         * tests/test-mbsinit.c: Likewise.
33385         * tests/test-mbsncasecmp.c: Likewise.
33386         * tests/test-mbsnrtowcs.c: Likewise.
33387         * tests/test-mbspbrk.c: Likewise.
33388         * tests/test-mbspcasecmp.c: Likewise.
33389         * tests/test-mbsrchr.c: Likewise.
33390         * tests/test-mbsrtowcs.c: Likewise.
33391         * tests/test-mbsspn.c: Likewise.
33392         * tests/test-mbsstr1.c: Likewise.
33393         * tests/test-mbsstr2.c: Likewise.
33394         * tests/test-mbsstr3.c: Likewise.
33395         * tests/test-memchr.c: Likewise.
33396         * tests/test-memchr2.c: Likewise.
33397         * tests/test-memcmp.c: Likewise.
33398         * tests/test-memmem.c: Likewise.
33399         * tests/test-memrchr.c: Likewise.
33400         * tests/test-mkdir.c: Likewise.
33401         * tests/test-mkdirat.c: Likewise.
33402         * tests/test-mkfifo.c: Likewise.
33403         * tests/test-mkfifoat.c: Likewise.
33404         * tests/test-mknod.c: Likewise.
33405         * tests/test-nanosleep.c: Likewise.
33406         * tests/test-nl_langinfo.c: Likewise.
33407         * tests/test-obstack-printf.c: Likewise.
33408         * tests/test-open.c: Likewise.
33409         * tests/test-openat.c: Likewise.
33410         * tests/test-pipe-filter-gi1.c: Likewise.
33411         * tests/test-pipe-filter-gi2-main.c: Likewise.
33412         * tests/test-pipe-filter-ii1.c: Likewise.
33413         * tests/test-pipe-filter-ii2-main.c: Likewise.
33414         * tests/test-pipe2.c: Likewise.
33415         * tests/test-popen.h: Likewise.
33416         * tests/test-posixtm.c: Likewise.
33417         * tests/test-pread.c: Likewise.
33418         * tests/test-printf-frexp.c: Likewise.
33419         * tests/test-printf-frexpl.c: Likewise.
33420         * tests/test-printf-posix.c: Likewise.
33421         * tests/test-priv-set.c: Likewise.
33422         * tests/test-quotearg.c: Likewise.
33423         * tests/test-random_r.c: Likewise.
33424         * tests/test-rawmemchr.c: Likewise.
33425         * tests/test-rbtree_list.c: Likewise.
33426         * tests/test-rbtree_oset.c: Likewise.
33427         * tests/test-rbtreehash_list.c: Likewise.
33428         * tests/test-readlink.c: Likewise.
33429         * tests/test-remove.c: Likewise.
33430         * tests/test-rename.c: Likewise.
33431         * tests/test-renameat.c: Likewise.
33432         * tests/test-rmdir.c: Likewise.
33433         * tests/test-round1.c: Likewise.
33434         * tests/test-roundf1.c: Likewise.
33435         * tests/test-roundl.c: Likewise.
33436         * tests/test-safe-alloc.c: Likewise.
33437         * tests/test-sameacls.c: Likewise.
33438         * tests/test-set-mode-acl.c: Likewise.
33439         * tests/test-setenv.c: Likewise.
33440         * tests/test-sigaction.c: Likewise.
33441         * tests/test-signbit.c: Likewise.
33442         * tests/test-sleep.c: Likewise.
33443         * tests/test-snprintf-posix.c: Likewise.
33444         * tests/test-snprintf.c: Likewise.
33445         * tests/test-sprintf-posix.c: Likewise.
33446         * tests/test-stat-time.c: Likewise.
33447         * tests/test-stat.c: Likewise.
33448         * tests/test-strcasestr.c: Likewise.
33449         * tests/test-strchrnul.c: Likewise.
33450         * tests/test-strerror.c: Likewise.
33451         * tests/test-striconv.c: Likewise.
33452         * tests/test-striconveh.c: Likewise.
33453         * tests/test-striconveha.c: Likewise.
33454         * tests/test-strsignal.c: Likewise.
33455         * tests/test-strstr.c: Likewise.
33456         * tests/test-strtod.c: Likewise.
33457         * tests/test-strverscmp.c: Likewise.
33458         * tests/test-symlink.c: Likewise.
33459         * tests/test-symlinkat.c: Likewise.
33460         * tests/test-trunc1.c: Likewise.
33461         * tests/test-trunc2.c: Likewise.
33462         * tests/test-truncf1.c: Likewise.
33463         * tests/test-truncf2.c: Likewise.
33464         * tests/test-truncl.c: Likewise.
33465         * tests/test-uname.c: Likewise.
33466         * tests/test-unlink.c: Likewise.
33467         * tests/test-unlinkat.c: Likewise.
33468         * tests/test-unsetenv.c: Likewise.
33469         * tests/test-usleep.c: Likewise.
33470         * tests/test-utimens.c: Likewise.
33471         * tests/test-utimensat.c: Likewise.
33472         * tests/test-vasnprintf-posix.c: Likewise.
33473         * tests/test-vasnprintf-posix2.c: Likewise.
33474         * tests/test-vasnprintf.c: Likewise.
33475         * tests/test-vasprintf-posix.c: Likewise.
33476         * tests/test-vasprintf.c: Likewise.
33477         * tests/test-vdprintf-posix.c: Likewise.
33478         * tests/test-vfprintf-posix.c: Likewise.
33479         * tests/test-vprintf-posix.c: Likewise.
33480         * tests/test-vsnprintf-posix.c: Likewise.
33481         * tests/test-vsnprintf.c: Likewise.
33482         * tests/test-vsprintf-posix.c: Likewise.
33483         * tests/test-wcrtomb.c: Likewise.
33484         * tests/test-wcsnrtombs.c: Likewise.
33485         * tests/test-wcsrtombs.c: Likewise.
33486         * tests/test-wctype.c: Likewise.
33487         * tests/test-wcwidth.c: Likewise.
33488         * tests/test-xfprintf-posix.c: Likewise.
33489         * tests/test-xmemdup0.c: Likewise.
33490         * tests/test-xprintf-posix.c: Likewise.
33491         * tests/test-xvasprintf.c: Likewise.
33492         * tests/unicase/test-locale-language.c: Likewise.
33493         * tests/unicase/test-mapping-part1.h: Likewise.
33494         * tests/unicase/test-predicate-part1.h: Likewise.
33495         * tests/unicase/test-u8-casecmp.c: Likewise.
33496         * tests/unicase/test-u8-casecoll.c: Likewise.
33497         * tests/unicase/test-u8-casefold.c: Likewise.
33498         * tests/unicase/test-u8-is-cased.c: Likewise.
33499         * tests/unicase/test-u8-is-casefolded.c: Likewise.
33500         * tests/unicase/test-u8-is-lowercase.c: Likewise.
33501         * tests/unicase/test-u8-is-titlecase.c: Likewise.
33502         * tests/unicase/test-u8-is-uppercase.c: Likewise.
33503         * tests/unicase/test-u8-tolower.c: Likewise.
33504         * tests/unicase/test-u8-totitle.c: Likewise.
33505         * tests/unicase/test-u8-toupper.c: Likewise.
33506         * tests/unicase/test-u16-casecmp.c: Likewise.
33507         * tests/unicase/test-u16-casecoll.c: Likewise.
33508         * tests/unicase/test-u16-casefold.c: Likewise.
33509         * tests/unicase/test-u16-is-cased.c: Likewise.
33510         * tests/unicase/test-u16-is-casefolded.c: Likewise.
33511         * tests/unicase/test-u16-is-lowercase.c: Likewise.
33512         * tests/unicase/test-u16-is-titlecase.c: Likewise.
33513         * tests/unicase/test-u16-is-uppercase.c: Likewise.
33514         * tests/unicase/test-u16-tolower.c: Likewise.
33515         * tests/unicase/test-u16-totitle.c: Likewise.
33516         * tests/unicase/test-u16-toupper.c: Likewise.
33517         * tests/unicase/test-u32-casecmp.c: Likewise.
33518         * tests/unicase/test-u32-casecoll.c: Likewise.
33519         * tests/unicase/test-u32-casefold.c: Likewise.
33520         * tests/unicase/test-u32-is-cased.c: Likewise.
33521         * tests/unicase/test-u32-is-casefolded.c: Likewise.
33522         * tests/unicase/test-u32-is-lowercase.c: Likewise.
33523         * tests/unicase/test-u32-is-titlecase.c: Likewise.
33524         * tests/unicase/test-u32-is-uppercase.c: Likewise.
33525         * tests/unicase/test-u32-tolower.c: Likewise.
33526         * tests/unicase/test-u32-totitle.c: Likewise.
33527         * tests/unicase/test-u32-toupper.c: Likewise.
33528         * tests/unicase/test-ulc-casecmp.c: Likewise.
33529         * tests/unicase/test-ulc-casecoll.c: Likewise.
33530         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33531         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33532         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33533         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33534         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33535         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33536         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33537         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33538         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33539         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33540         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33541         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33542         * tests/unictype/test-bidi_byname.c: Likewise.
33543         * tests/unictype/test-bidi_name.c: Likewise.
33544         * tests/unictype/test-bidi_of.c: Likewise.
33545         * tests/unictype/test-bidi_test.c: Likewise.
33546         * tests/unictype/test-block_list.c: Likewise.
33547         * tests/unictype/test-block_of.c: Likewise.
33548         * tests/unictype/test-block_test.c: Likewise.
33549         * tests/unictype/test-categ_and.c: Likewise.
33550         * tests/unictype/test-categ_and_not.c: Likewise.
33551         * tests/unictype/test-categ_byname.c: Likewise.
33552         * tests/unictype/test-categ_name.c: Likewise.
33553         * tests/unictype/test-categ_none.c: Likewise.
33554         * tests/unictype/test-categ_of.c: Likewise.
33555         * tests/unictype/test-categ_or.c: Likewise.
33556         * tests/unictype/test-categ_test_withtable.c: Likewise.
33557         * tests/unictype/test-combining.c: Likewise.
33558         * tests/unictype/test-decdigit.c: Likewise.
33559         * tests/unictype/test-digit.c: Likewise.
33560         * tests/unictype/test-mirror.c: Likewise.
33561         * tests/unictype/test-numeric.c: Likewise.
33562         * tests/unictype/test-pr_byname.c: Likewise.
33563         * tests/unictype/test-pr_test.c: Likewise.
33564         * tests/unictype/test-predicate-part1.h: Likewise.
33565         * tests/unictype/test-scripts.c: Likewise.
33566         * tests/unictype/test-sy_c_ident.c: Likewise.
33567         * tests/unictype/test-sy_java_ident.c: Likewise.
33568         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
33569         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
33570         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
33571         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
33572         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
33573         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
33574         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
33575         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
33576         * tests/uninorm/test-canonical-decomposition.c: Likewise.
33577         * tests/uninorm/test-compat-decomposition.c: Likewise.
33578         * tests/uninorm/test-composition.c: Likewise.
33579         * tests/uninorm/test-decomposing-form.c: Likewise.
33580         * tests/uninorm/test-decomposition.c: Likewise.
33581         * tests/uninorm/test-u8-nfc.c: Likewise.
33582         * tests/uninorm/test-u8-nfd.c: Likewise.
33583         * tests/uninorm/test-u8-nfkc.c: Likewise.
33584         * tests/uninorm/test-u8-nfkd.c: Likewise.
33585         * tests/uninorm/test-u8-normcmp.c: Likewise.
33586         * tests/uninorm/test-u8-normcoll.c: Likewise.
33587         * tests/uninorm/test-u16-nfc.c: Likewise.
33588         * tests/uninorm/test-u16-nfd.c: Likewise.
33589         * tests/uninorm/test-u16-nfkc.c: Likewise.
33590         * tests/uninorm/test-u16-nfkd.c: Likewise.
33591         * tests/uninorm/test-u16-normcmp.c: Likewise.
33592         * tests/uninorm/test-u16-normcoll.c: Likewise.
33593         * tests/uninorm/test-u32-nfc.c: Likewise.
33594         * tests/uninorm/test-u32-nfd.c: Likewise.
33595         * tests/uninorm/test-u32-nfkc.c: Likewise.
33596         * tests/uninorm/test-u32-nfkd.c: Likewise.
33597         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33598         * tests/uninorm/test-u32-normcmp.c: Likewise.
33599         * tests/uninorm/test-u32-normcoll.c: Likewise.
33600         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
33601         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33602         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33603         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33604         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33605         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33606         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33607         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33608         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33609         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33610         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33611         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33612         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33613         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33614         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33615         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33616         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33617         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33618         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33619         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33620         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33621         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33622         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33623         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33624         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33625         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33626         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33627         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33628         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33629         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
33630         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
33631         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
33632         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
33633         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33634         * tests/uniwidth/test-u8-width.c: Likewise.
33635         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33636         * tests/uniwidth/test-u16-width.c: Likewise.
33637         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33638         * tests/uniwidth/test-u32-width.c: Likewise.
33639         * tests/uniwidth/test-uc_width.c: Likewise.
33640         * tests/uniwidth/test-uc_width2.c: Likewise.
33641         * modules/acl-tests (Files): Add tests/macros.h.
33642         * modules/areadlink-tests (Files): Likewise.
33643         * modules/areadlink-with-size-tests (Files): Likewise.
33644         * modules/areadlinkat-tests (Files): Likewise.
33645         * modules/areadlinkat-with-size-tests (Files): Likewise.
33646         * modules/argmatch-tests (Files): Likewise.
33647         * modules/argv-iter-tests (Files): Likewise.
33648         * modules/array-list-tests (Files): Likewise.
33649         * modules/array-mergesort-tests (Files): Likewise.
33650         * modules/array-oset-tests (Files): Likewise.
33651         * modules/avltree-list-tests (Files): Likewise.
33652         * modules/avltree-oset-tests (Files): Likewise.
33653         * modules/avltreehash-list-tests (Files): Likewise.
33654         * modules/base64-tests (Files): Likewise.
33655         * modules/binary-io-tests (Files): Likewise.
33656         * modules/bitrotate-tests (Files): Likewise.
33657         * modules/btowc-tests (Files): Likewise.
33658         * modules/byteswap-tests (Files): Likewise.
33659         * modules/c-ctype-tests (Files): Likewise.
33660         * modules/c-stack-tests (Files): Likewise.
33661         * modules/c-strcase-tests (Files): Likewise.
33662         * modules/c-strcasestr-tests (Files): Likewise.
33663         * modules/c-strstr-tests (Files): Likewise.
33664         * modules/canonicalize-lgpl-tests (Files): Likewise.
33665         * modules/canonicalize-tests (Files): Likewise.
33666         * modules/carray-list-tests (Files): Likewise.
33667         * modules/ceilf-tests (Files): Likewise.
33668         * modules/ceill-tests (Files): Likewise.
33669         * modules/chown-tests (Files): Likewise.
33670         * modules/cloexec-tests (Files): Likewise.
33671         * modules/copy-file-tests (Files): Likewise.
33672         * modules/count-one-bits-tests (Files): Likewise.
33673         * modules/dprintf-posix-tests (Files): Likewise.
33674         * modules/dup2-tests (Files): Likewise.
33675         * modules/dup3-tests (Files): Likewise.
33676         * modules/duplocale-tests (Files): Likewise.
33677         * modules/fbufmode-tests (Files): Likewise.
33678         * modules/fchdir-tests (Files): Likewise.
33679         * modules/fcntl-safer-tests (Files): Likewise.
33680         * modules/fcntl-tests (Files): Likewise.
33681         * modules/fdopendir-tests (Files): Likewise.
33682         * modules/fdutimensat-tests (Files): Likewise.
33683         * modules/fflush-tests (Files): Likewise.
33684         * modules/filevercmp-tests (Files): Likewise.
33685         * modules/flock-tests (Files): Likewise.
33686         * modules/floorf-tests (Files): Likewise.
33687         * modules/floorl-tests (Files): Likewise.
33688         * modules/fnmatch-tests (Files): Likewise.
33689         * modules/fopen-safer-tests (Files): Likewise.
33690         * modules/fopen-tests (Files): Likewise.
33691         * modules/fpending-tests (Files): Likewise.
33692         * modules/fprintf-posix-tests (Files): Likewise.
33693         * modules/fpurge-tests (Files): Likewise.
33694         * modules/freadable-tests (Files): Likewise.
33695         * modules/freadahead-tests (Files): Likewise.
33696         * modules/freading-tests (Files): Likewise.
33697         * modules/freadptr-tests (Files): Likewise.
33698         * modules/freadseek-tests (Files): Likewise.
33699         * modules/freopen-tests (Files): Likewise.
33700         * modules/frexp-nolibm-tests (Files): Likewise.
33701         * modules/frexp-tests (Files): Likewise.
33702         * modules/frexpl-nolibm-tests (Files): Likewise.
33703         * modules/frexpl-tests (Files): Likewise.
33704         * modules/fseek-tests (Files): Likewise.
33705         * modules/fseeko-tests (Files): Likewise.
33706         * modules/fstrcmp-tests (Files): Likewise.
33707         * modules/fsync-tests (Files): Likewise.
33708         * modules/ftell-tests (Files): Likewise.
33709         * modules/ftello-tests (Files): Likewise.
33710         * modules/func-tests (Files): Likewise.
33711         * modules/futimens-tests (Files): Likewise.
33712         * modules/fwritable-tests (Files): Likewise.
33713         * modules/fwriting-tests (Files): Likewise.
33714         * modules/getcwd-tests (Files): Likewise.
33715         * modules/getdate-tests (Files): Likewise.
33716         * modules/getdelim-tests (Files): Likewise.
33717         * modules/getdtablesize-tests (Files): Likewise.
33718         * modules/getgroups-tests (Files): Likewise.
33719         * modules/getline-tests (Files): Likewise.
33720         * modules/getndelim2-tests (Files): Likewise.
33721         * modules/glob-tests (Files): Likewise.
33722         * modules/hash-tests (Files): Likewise.
33723         * modules/i-ring-tests (Files): Likewise.
33724         * modules/iconv-tests (Files): Likewise.
33725         * modules/iconv_open-utf-tests (Files): Likewise.
33726         * modules/idpriv-drop-tests (Files): Likewise.
33727         * modules/idpriv-droptemp-tests (Files): Likewise.
33728         * modules/inet_ntop-tests (Files): Likewise.
33729         * modules/inet_pton-tests (Files): Likewise.
33730         * modules/isblank-tests (Files): Likewise.
33731         * modules/isfinite-tests (Files): Likewise.
33732         * modules/isinf-tests (Files): Likewise.
33733         * modules/isnan-tests (Files): Likewise.
33734         * modules/isnand-nolibm-tests (Files): Likewise.
33735         * modules/isnand-tests (Files): Likewise.
33736         * modules/isnanf-nolibm-tests (Files): Likewise.
33737         * modules/isnanf-tests (Files): Likewise.
33738         * modules/isnanl-nolibm-tests (Files): Likewise.
33739         * modules/isnanl-tests (Files): Likewise.
33740         * modules/lchown-tests (Files): Likewise.
33741         * modules/ldexpl-tests (Files): Likewise.
33742         * modules/link-tests (Files): Likewise.
33743         * modules/linkat-tests (Files): Likewise.
33744         * modules/linked-list-tests (Files): Likewise.
33745         * modules/linkedhash-list-tests (Files): Likewise.
33746         * modules/localename-tests (Files): Likewise.
33747         * modules/lseek-tests (Files): Likewise.
33748         * modules/lstat-tests (Files): Likewise.
33749         * modules/mbmemcasecmp-tests (Files): Likewise.
33750         * modules/mbmemcasecoll-tests (Files): Likewise.
33751         * modules/mbrtowc-tests (Files): Likewise.
33752         * modules/mbscasecmp-tests (Files): Likewise.
33753         * modules/mbscasestr-tests (Files): Likewise.
33754         * modules/mbschr-tests (Files): Likewise.
33755         * modules/mbscspn-tests (Files): Likewise.
33756         * modules/mbsinit-tests (Files): Likewise.
33757         * modules/mbsncasecmp-tests (Files): Likewise.
33758         * modules/mbsnrtowcs-tests (Files): Likewise.
33759         * modules/mbspbrk-tests (Files): Likewise.
33760         * modules/mbspcasecmp-tests (Files): Likewise.
33761         * modules/mbsrchr-tests (Files): Likewise.
33762         * modules/mbsrtowcs-tests (Files): Likewise.
33763         * modules/mbsspn-tests (Files): Likewise.
33764         * modules/mbsstr-tests (Files): Likewise.
33765         * modules/memchr-tests (Files): Likewise.
33766         * modules/memchr2-tests (Files): Likewise.
33767         * modules/memcmp-tests (Files): Likewise.
33768         * modules/memmem-tests (Files): Likewise.
33769         * modules/memrchr-tests (Files): Likewise.
33770         * modules/mkdir-tests (Files): Likewise.
33771         * modules/mkfifo-tests (Files): Likewise.
33772         * modules/mkfifoat-tests (Files): Likewise.
33773         * modules/mknod-tests (Files): Likewise.
33774         * modules/nanosleep-tests (Files): Likewise.
33775         * modules/nl_langinfo-tests (Files): Likewise.
33776         * modules/obstack-printf-tests (Files): Likewise.
33777         * modules/open-tests (Files): Likewise.
33778         * modules/openat-tests (Files): Likewise.
33779         * modules/pipe-filter-gi-tests (Files): Likewise.
33780         * modules/pipe-filter-ii-tests (Files): Likewise.
33781         * modules/pipe2-tests (Files): Likewise.
33782         * modules/popen-safer-tests (Files): Likewise.
33783         * modules/popen-tests (Files): Likewise.
33784         * modules/posixtm-tests (Files): Likewise.
33785         * modules/pread-tests (Files): Likewise.
33786         * modules/printf-frexp-tests (Files): Likewise.
33787         * modules/printf-frexpl-tests (Files): Likewise.
33788         * modules/printf-posix-tests (Files): Likewise.
33789         * modules/priv-set-tests (Files): Likewise.
33790         * modules/quotearg-tests (Files): Likewise.
33791         * modules/random_r-tests (Files): Likewise.
33792         * modules/rawmemchr-tests (Files): Likewise.
33793         * modules/rbtree-list-tests (Files): Likewise.
33794         * modules/rbtree-oset-tests (Files): Likewise.
33795         * modules/rbtreehash-list-tests (Files): Likewise.
33796         * modules/readlink-tests (Files): Likewise.
33797         * modules/remove-tests (Files): Likewise.
33798         * modules/rename-tests (Files): Likewise.
33799         * modules/renameat-tests (Files): Likewise.
33800         * modules/rmdir-tests (Files): Likewise.
33801         * modules/round-tests (Files): Likewise.
33802         * modules/roundf-tests (Files): Likewise.
33803         * modules/roundl-tests (Files): Likewise.
33804         * modules/safe-alloc-tests (Files): Likewise.
33805         * modules/setenv-tests (Files): Likewise.
33806         * modules/sigaction-tests (Files): Likewise.
33807         * modules/signbit-tests (Files): Likewise.
33808         * modules/sleep-tests (Files): Likewise.
33809         * modules/snprintf-posix-tests (Files): Likewise.
33810         * modules/snprintf-tests (Files): Likewise.
33811         * modules/sprintf-posix-tests (Files): Likewise.
33812         * modules/stat-tests (Files): Likewise.
33813         * modules/stat-time-tests (Files): Likewise.
33814         * modules/strcasestr-tests (Files): Likewise.
33815         * modules/strchrnul-tests (Files): Likewise.
33816         * modules/strerror-tests (Files): Likewise.
33817         * modules/striconv-tests (Files): Likewise.
33818         * modules/striconveh-tests (Files): Likewise.
33819         * modules/striconveha-tests (Files): Likewise.
33820         * modules/strsignal-tests (Files): Likewise.
33821         * modules/strstr-tests (Files): Likewise.
33822         * modules/strtod-tests (Files): Likewise.
33823         * modules/strverscmp-tests (Files): Likewise.
33824         * modules/symlink-tests (Files): Likewise.
33825         * modules/symlinkat-tests (Files): Likewise.
33826         * modules/trunc-tests (Files): Likewise.
33827         * modules/truncf-tests (Files): Likewise.
33828         * modules/truncl-tests (Files): Likewise.
33829         * modules/uname-tests (Files): Likewise.
33830         * modules/unicase/cased-tests (Files): Likewise.
33831         * modules/unicase/ignorable-tests (Files): Likewise.
33832         * modules/unicase/locale-language-tests (Files): Likewise.
33833         * modules/unicase/tolower-tests (Files): Likewise.
33834         * modules/unicase/totitle-tests (Files): Likewise.
33835         * modules/unicase/toupper-tests (Files): Likewise.
33836         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33837         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33838         * modules/unicase/u8-casefold-tests (Files): Likewise.
33839         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33840         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33841         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33842         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33843         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33844         * modules/unicase/u8-tolower-tests (Files): Likewise.
33845         * modules/unicase/u8-totitle-tests (Files): Likewise.
33846         * modules/unicase/u8-toupper-tests (Files): Likewise.
33847         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33848         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33849         * modules/unicase/u16-casefold-tests (Files): Likewise.
33850         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33851         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33852         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33853         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33854         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33855         * modules/unicase/u16-tolower-tests (Files): Likewise.
33856         * modules/unicase/u16-totitle-tests (Files): Likewise.
33857         * modules/unicase/u16-toupper-tests (Files): Likewise.
33858         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33859         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33860         * modules/unicase/u32-casefold-tests (Files): Likewise.
33861         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33862         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33863         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33864         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33865         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33866         * modules/unicase/u32-tolower-tests (Files): Likewise.
33867         * modules/unicase/u32-totitle-tests (Files): Likewise.
33868         * modules/unicase/u32-toupper-tests (Files): Likewise.
33869         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33870         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33871         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33872         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33873         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33874         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33875         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33876         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33877         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33878         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33879         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33880         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33881         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33882         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33883         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33884         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33885         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33886         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33887         * modules/unictype/block-list-tests (Files): Likewise.
33888         * modules/unictype/block-of-tests (Files): Likewise.
33889         * modules/unictype/block-test-tests (Files): Likewise.
33890         * modules/unictype/category-C-tests (Files): Likewise.
33891         * modules/unictype/category-Cc-tests (Files): Likewise.
33892         * modules/unictype/category-Cf-tests (Files): Likewise.
33893         * modules/unictype/category-Cn-tests (Files): Likewise.
33894         * modules/unictype/category-Co-tests (Files): Likewise.
33895         * modules/unictype/category-Cs-tests (Files): Likewise.
33896         * modules/unictype/category-L-tests (Files): Likewise.
33897         * modules/unictype/category-Ll-tests (Files): Likewise.
33898         * modules/unictype/category-Lm-tests (Files): Likewise.
33899         * modules/unictype/category-Lo-tests (Files): Likewise.
33900         * modules/unictype/category-Lt-tests (Files): Likewise.
33901         * modules/unictype/category-Lu-tests (Files): Likewise.
33902         * modules/unictype/category-M-tests (Files): Likewise.
33903         * modules/unictype/category-Mc-tests (Files): Likewise.
33904         * modules/unictype/category-Me-tests (Files): Likewise.
33905         * modules/unictype/category-Mn-tests (Files): Likewise.
33906         * modules/unictype/category-N-tests (Files): Likewise.
33907         * modules/unictype/category-Nd-tests (Files): Likewise.
33908         * modules/unictype/category-Nl-tests (Files): Likewise.
33909         * modules/unictype/category-No-tests (Files): Likewise.
33910         * modules/unictype/category-P-tests (Files): Likewise.
33911         * modules/unictype/category-Pc-tests (Files): Likewise.
33912         * modules/unictype/category-Pd-tests (Files): Likewise.
33913         * modules/unictype/category-Pe-tests (Files): Likewise.
33914         * modules/unictype/category-Pf-tests (Files): Likewise.
33915         * modules/unictype/category-Pi-tests (Files): Likewise.
33916         * modules/unictype/category-Po-tests (Files): Likewise.
33917         * modules/unictype/category-Ps-tests (Files): Likewise.
33918         * modules/unictype/category-S-tests (Files): Likewise.
33919         * modules/unictype/category-Sc-tests (Files): Likewise.
33920         * modules/unictype/category-Sk-tests (Files): Likewise.
33921         * modules/unictype/category-Sm-tests (Files): Likewise.
33922         * modules/unictype/category-So-tests (Files): Likewise.
33923         * modules/unictype/category-Z-tests (Files): Likewise.
33924         * modules/unictype/category-Zl-tests (Files): Likewise.
33925         * modules/unictype/category-Zp-tests (Files): Likewise.
33926         * modules/unictype/category-Zs-tests (Files): Likewise.
33927         * modules/unictype/category-and-not-tests (Files): Likewise.
33928         * modules/unictype/category-and-tests (Files): Likewise.
33929         * modules/unictype/category-byname-tests (Files): Likewise.
33930         * modules/unictype/category-name-tests (Files): Likewise.
33931         * modules/unictype/category-none-tests (Files): Likewise.
33932         * modules/unictype/category-of-tests (Files): Likewise.
33933         * modules/unictype/category-or-tests (Files): Likewise.
33934         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33935         * modules/unictype/combining-class-tests (Files): Likewise.
33936         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33937         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33938         * modules/unictype/ctype-blank-tests (Files): Likewise.
33939         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33940         * modules/unictype/ctype-digit-tests (Files): Likewise.
33941         * modules/unictype/ctype-graph-tests (Files): Likewise.
33942         * modules/unictype/ctype-lower-tests (Files): Likewise.
33943         * modules/unictype/ctype-print-tests (Files): Likewise.
33944         * modules/unictype/ctype-punct-tests (Files): Likewise.
33945         * modules/unictype/ctype-space-tests (Files): Likewise.
33946         * modules/unictype/ctype-upper-tests (Files): Likewise.
33947         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33948         * modules/unictype/decimal-digit-tests (Files): Likewise.
33949         * modules/unictype/digit-tests (Files): Likewise.
33950         * modules/unictype/mirror-tests (Files): Likewise.
33951         * modules/unictype/numeric-tests (Files): Likewise.
33952         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33953         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33954         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33955         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33956         Likewise.
33957         * modules/unictype/property-bidi-block-separator-tests (Files):
33958         Likewise.
33959         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33960         Likewise.
33961         * modules/unictype/property-bidi-common-separator-tests (Files):
33962         Likewise.
33963         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33964         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33965         Likewise.
33966         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33967         Likewise.
33968         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33969         Likewise.
33970         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33971         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33972         Likewise.
33973         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33974         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33975         Likewise.
33976         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33977         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33978         * modules/unictype/property-bidi-segment-separator-tests (Files):
33979         Likewise.
33980         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33981         * modules/unictype/property-byname-tests (Files): Likewise.
33982         * modules/unictype/property-combining-tests (Files): Likewise.
33983         * modules/unictype/property-composite-tests (Files): Likewise.
33984         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33985         * modules/unictype/property-dash-tests (Files): Likewise.
33986         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33987         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33988         Likewise.
33989         * modules/unictype/property-deprecated-tests (Files): Likewise.
33990         * modules/unictype/property-diacritic-tests (Files): Likewise.
33991         * modules/unictype/property-extender-tests (Files): Likewise.
33992         * modules/unictype/property-format-control-tests (Files): Likewise.
33993         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33994         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33995         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33996         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33997         * modules/unictype/property-hyphen-tests (Files): Likewise.
33998         * modules/unictype/property-id-continue-tests (Files): Likewise.
33999         * modules/unictype/property-id-start-tests (Files): Likewise.
34000         * modules/unictype/property-ideographic-tests (Files): Likewise.
34001         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
34002         * modules/unictype/property-ids-trinary-operator-tests (Files):
34003         Likewise.
34004         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
34005         * modules/unictype/property-iso-control-tests (Files): Likewise.
34006         * modules/unictype/property-join-control-tests (Files): Likewise.
34007         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
34008         * modules/unictype/property-line-separator-tests (Files): Likewise.
34009         * modules/unictype/property-logical-order-exception-tests (Files):
34010         Likewise.
34011         * modules/unictype/property-lowercase-tests (Files): Likewise.
34012         * modules/unictype/property-math-tests (Files): Likewise.
34013         * modules/unictype/property-non-break-tests (Files): Likewise.
34014         * modules/unictype/property-not-a-character-tests (Files): Likewise.
34015         * modules/unictype/property-numeric-tests (Files): Likewise.
34016         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
34017         * modules/unictype/property-other-default-ignorable-code-point-tests
34018         (Files): Likewise.
34019         * modules/unictype/property-other-grapheme-extend-tests (Files):
34020         Likewise.
34021         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
34022         * modules/unictype/property-other-id-start-tests (Files): Likewise.
34023         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
34024         * modules/unictype/property-other-math-tests (Files): Likewise.
34025         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
34026         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
34027         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
34028         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
34029         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
34030         * modules/unictype/property-private-use-tests (Files): Likewise.
34031         * modules/unictype/property-punctuation-tests (Files): Likewise.
34032         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
34033         * modules/unictype/property-radical-tests (Files): Likewise.
34034         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
34035         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
34036         * modules/unictype/property-space-tests (Files): Likewise.
34037         * modules/unictype/property-terminal-punctuation-tests (Files):
34038         Likewise.
34039         * modules/unictype/property-test-tests (Files): Likewise.
34040         * modules/unictype/property-titlecase-tests (Files): Likewise.
34041         * modules/unictype/property-unassigned-code-value-tests (Files):
34042         Likewise.
34043         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
34044         * modules/unictype/property-uppercase-tests (Files): Likewise.
34045         * modules/unictype/property-variation-selector-tests (Files): Likewise.
34046         * modules/unictype/property-white-space-tests (Files): Likewise.
34047         * modules/unictype/property-xid-continue-tests (Files): Likewise.
34048         * modules/unictype/property-xid-start-tests (Files): Likewise.
34049         * modules/unictype/property-zero-width-tests (Files): Likewise.
34050         * modules/unictype/scripts-tests (Files): Likewise.
34051         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
34052         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
34053         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
34054         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
34055         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
34056         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
34057         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
34058         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
34059         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
34060         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
34061         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
34062         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
34063         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
34064         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
34065         * modules/uninorm/composition-tests (Files): Likewise.
34066         * modules/uninorm/decomposing-form-tests (Files): Likewise.
34067         * modules/uninorm/decomposition-tests (Files): Likewise.
34068         * modules/uninorm/filter-tests (Files): Likewise.
34069         * modules/uninorm/nfc-tests (Files): Likewise.
34070         * modules/uninorm/nfd-tests (Files): Likewise.
34071         * modules/uninorm/nfkc-tests (Files): Likewise.
34072         * modules/uninorm/nfkd-tests (Files): Likewise.
34073         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
34074         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
34075         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
34076         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
34077         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
34078         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
34079         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
34080         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34081         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
34082         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
34083         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
34084         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
34085         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34086         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
34087         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
34088         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
34089         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
34090         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34091         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
34092         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
34093         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
34094         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
34095         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34096         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
34097         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
34098         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
34099         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
34100         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
34101         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
34102         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
34103         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
34104         * modules/uniwidth/u8-width-tests (Files): Likewise.
34105         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
34106         * modules/uniwidth/u16-width-tests (Files): Likewise.
34107         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
34108         * modules/uniwidth/u32-width-tests (Files): Likewise.
34109         * modules/uniwidth/width-tests (Files): Likewise.
34110         * modules/unlink-tests (Files): Likewise.
34111         * modules/unsetenv-tests (Files): Likewise.
34112         * modules/usleep-tests (Files): Likewise.
34113         * modules/utimens-tests (Files): Likewise.
34114         * modules/utimensat-tests (Files): Likewise.
34115         * modules/vasnprintf-posix-tests (Files): Likewise.
34116         * modules/vasnprintf-tests (Files): Likewise.
34117         * modules/vasprintf-posix-tests (Files): Likewise.
34118         * modules/vasprintf-tests (Files): Likewise.
34119         * modules/vdprintf-posix-tests (Files): Likewise.
34120         * modules/vfprintf-posix-tests (Files): Likewise.
34121         * modules/vprintf-posix-tests (Files): Likewise.
34122         * modules/vsnprintf-posix-tests (Files): Likewise.
34123         * modules/vsnprintf-tests (Files): Likewise.
34124         * modules/vsprintf-posix-tests (Files): Likewise.
34125         * modules/wcrtomb-tests (Files): Likewise.
34126         * modules/wcsnrtombs-tests (Files): Likewise.
34127         * modules/wcsrtombs-tests (Files): Likewise.
34128         * modules/wctype-tests (Files): Likewise.
34129         * modules/wcwidth-tests (Files): Likewise.
34130         * modules/xmemdup0-tests (Files): Likewise.
34131         * modules/xprintf-posix-tests (Files): Likewise.
34132         * modules/xvasprintf-tests (Files): Likewise.
34133
34134 2009-12-24  Eric Blake  <ebb9@byu.net>
34135
34136         test-nanosleep: fix typo
34137         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
34138         patch.
34139         Reported by Bruno Haible.
34140
34141 2009-12-24  Bruno Haible  <bruno@clisp.org>
34142
34143         Reduce namespace pollution on glibc systems.
34144         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
34145         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
34146         systems.
34147         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
34148         <getopt.h> on glibc systems.
34149         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
34150         systems.
34151         * lib/fcntl.c: Include <unistd.h> here instead.
34152
34153 2009-12-24  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/stdlib.in.h (includes): Fix typo in today's commit.
34156
34157 2009-12-24  Eric Blake  <ebb9@byu.net>
34158
34159         tests: add signature checks
34160         * tests/signature.h (SIGNATURE_CHECK): New file.
34161         * modules/atexit-tests (Files): Use it.
34162         * modules/btowc-tests (Files): Likewise.
34163         * modules/canonicalize-lgpl-tests (Files): Likewise.
34164         * modules/ceilf-tests (Files): Likewise.
34165         * modules/ceill-tests (Files): Likewise.
34166         * modules/chown-tests (Files): Likewise.
34167         * modules/dprintf-posix-tests (Files): Likewise.
34168         * modules/dup2-tests (Files): Likewise.
34169         * modules/dup3-tests (Files): Likewise.
34170         * modules/duplocale-tests (Files): Likewise.
34171         * modules/fchdir-tests (Files): Likewise.
34172         * modules/fcntl-tests (Files): Likewise.
34173         * modules/fdopendir-tests (Files): Likewise.
34174         * modules/fflush-tests (Files): Likewise.
34175         * modules/flock-tests (Files): Likewise.
34176         * modules/floorf-tests (Files): Likewise.
34177         * modules/floorl-tests (Files): Likewise.
34178         * modules/fnmatch-tests (Files): Likewise.
34179         * modules/fopen-tests (Files): Likewise.
34180         * modules/fprintf-posix-tests (Files): Likewise.
34181         * modules/freopen-tests (Files): Likewise.
34182         * modules/frexp-nolibm-tests (Files): Likewise.
34183         * modules/frexp-tests (Files): Likewise.
34184         * modules/frexpl-nolibm-tests (Files): Likewise.
34185         * modules/frexpl-tests (Files): Likewise.
34186         * modules/fseek-tests (Files): Likewise.
34187         * modules/fseeko-tests (Files): Likewise.
34188         * modules/fsync-tests (Files): Likewise.
34189         * modules/ftell-tests (Files): Likewise.
34190         * modules/ftello-tests (Files): Likewise.
34191         * modules/futimens-tests (Files): Likewise.
34192         * modules/getaddrinfo-tests (Files): Likewise.
34193         * modules/getcwd-tests (Files): Likewise.
34194         * modules/getdelim-tests (Files): Likewise.
34195         * modules/getdtablesize-tests (Files): Likewise.
34196         * modules/getgroups-tests (Files): Likewise.
34197         * modules/gethostname-tests (Files): Likewise.
34198         * modules/getline-tests (Files): Likewise.
34199         * modules/getopt-posix-tests (Files): Likewise.
34200         * modules/gettimeofday-tests (Files): Likewise.
34201         * modules/glob-tests (Files): Likewise.
34202         * modules/iconv-tests (Files): Likewise.
34203         * modules/inet_ntop-tests (Files): Likewise.
34204         * modules/inet_pton-tests (Files): Likewise.
34205         * modules/isblank-tests (Files): Likewise.
34206         * modules/lchown-tests (Files): Likewise.
34207         * modules/ldexpl-tests (Files): Likewise.
34208         * modules/link-tests (Files): Likewise.
34209         * modules/linkat-tests (Files): Likewise.
34210         * modules/lseek-tests (Files): Likewise.
34211         * modules/lstat-tests (Files): Likewise.
34212         * modules/mbrtowc-tests (Files): Likewise.
34213         * modules/mbsinit-tests (Files): Likewise.
34214         * modules/mbsnrtowcs-tests (Files): Likewise.
34215         * modules/mbsrtowcs-tests (Files): Likewise.
34216         * modules/memchr-tests (Files): Likewise.
34217         * modules/memcmp-tests (Files): Likewise.
34218         * modules/memmem-tests (Files): Likewise.
34219         * modules/memrchr-tests (Files): Likewise.
34220         * modules/mkdir-tests (Files): Likewise.
34221         * modules/mkfifo-tests (Files): Likewise.
34222         * modules/mkfifoat-tests (Files): Likewise.
34223         * modules/mknod-tests (Files): Likewise.
34224         * modules/nanosleep-tests (Files): Likewise.
34225         * modules/nl_langinfo-tests (Files): Likewise.
34226         * modules/obstack-printf-tests (Files): Likewise.
34227         * modules/open-tests (Files): Likewise.
34228         * modules/openat-tests (Files): Likewise.
34229         * modules/perror-tests (Files): Likewise.
34230         * modules/pipe2-tests (Files): Likewise.
34231         * modules/poll-tests (Files): Likewise.
34232         * modules/popen-tests (Files): Likewise.
34233         * modules/posix_spawn-tests (Files): Likewise.
34234         * modules/posix_spawnp-tests (Files): Likewise.
34235         * modules/pread-tests (Files): Likewise.
34236         * modules/printf-posix-tests (Files): Likewise.
34237         * modules/pty-tests (Files): Likewise.
34238         * modules/random_r-tests (Files): Likewise.
34239         * modules/rawmemchr-tests (Files): Likewise.
34240         * modules/readlink-tests (Files): Likewise.
34241         * modules/remove-tests (Files): Likewise.
34242         * modules/rename-tests (Files): Likewise.
34243         * modules/renameat-tests (Files): Likewise.
34244         * modules/rmdir-tests (Files): Likewise.
34245         * modules/round-tests (Files): Likewise.
34246         * modules/roundf-tests (Files): Likewise.
34247         * modules/roundl-tests (Files): Likewise.
34248         * modules/select-tests (Files): Likewise.
34249         * modules/setenv-tests (Files): Likewise.
34250         * modules/sigaction-tests (Files): Likewise.
34251         * modules/sleep-tests (Files): Likewise.
34252         * modules/snprintf-posix-tests (Files): Likewise.
34253         * modules/snprintf-tests (Files): Likewise.
34254         * modules/sprintf-posix-tests (Files): Likewise.
34255         * modules/stat-tests (Files): Likewise.
34256         * modules/strcasestr-tests (Files): Likewise.
34257         * modules/strchrnul-tests (Files): Likewise.
34258         * modules/strerror-tests (Files): Likewise.
34259         * modules/strsignal-tests (Files): Likewise.
34260         * modules/strstr-tests (Files): Likewise.
34261         * modules/strtod-tests (Files): Likewise.
34262         * modules/strverscmp-tests (Files): Likewise.
34263         * modules/symlink-tests (Files): Likewise.
34264         * modules/symlinkat-tests (Files): Likewise.
34265         * modules/times-tests (Files): Likewise.
34266         * modules/trunc-tests (Files): Likewise.
34267         * modules/truncf-tests (Files): Likewise.
34268         * modules/truncl-tests (Files): Likewise.
34269         * modules/tsearch-tests (Files): Likewise.
34270         * modules/uname-tests (Files): Likewise.
34271         * modules/unlink-tests (Files): Likewise.
34272         * modules/unsetenv-tests (Files): Likewise.
34273         * modules/usleep-tests (Files): Likewise.
34274         * modules/utimensat-tests (Files): Likewise.
34275         * modules/vasprintf-tests (Files): Likewise.
34276         * modules/vdprintf-posix-tests (Files): Likewise.
34277         * modules/vfprintf-posix-tests (Files): Likewise.
34278         * modules/vprintf-posix-tests (Files): Likewise.
34279         * modules/vsnprintf-posix-tests (Files): Likewise.
34280         * modules/vsnprintf-tests (Files): Likewise.
34281         * modules/vsprintf-posix-tests (Files): Likewise.
34282         * modules/wcrtomb-tests (Files): Likewise.
34283         * modules/wcsnrtombs-tests (Files): Likewise.
34284         * modules/wcsrtombs-tests (Files): Likewise.
34285         * modules/wcwidth-tests (Files): Likewise.
34286         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
34287         * tests/test-isinf.c (isinf): Likewise.
34288         * tests/test-isnan.c (isnan): Likewise.
34289         * tests/test-signbit.c (signbit): Likewise.
34290         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
34291         declaration, either as macro or with correct signature.
34292         (select): Ensure function under test is declared with correct
34293         signature in correct header.
34294         * tests/test-atexit.c (atexit): Likewise.
34295         * tests/test-btowc.c (btowc): Likewise.
34296         * tests/test-canonicalize-lgpl.c (realpath)
34297         (canonicalize_file_name): Likewise.
34298         * tests/test-ceilf1.c (ceilf): Likewise.
34299         * tests/test-ceill.c (ceill): Likewise.
34300         * tests/test-chown.c (chown): Likewise.
34301         * tests/test-dprintf-posix.c (dprintf): Likewise.
34302         * tests/test-dup2.c (dup2): Likewise.
34303         * tests/test-dup3.c (dup3): Likewise.
34304         * tests/test-duplocale.c (duplocale): Likewise.
34305         * tests/test-fchdir.c (fchdir): Likewise.
34306         * tests/test-fchownat.c (fchownat): Likewise.
34307         * tests/test-fcntl.c (fcntl): Likewise.
34308         * tests/test-fdopendir.c (fdopendir): Likewise.
34309         * tests/test-fflush.c (fflush): Likewise.
34310         * tests/test-flock.c (flock): Likewise.
34311         * tests/test-floorf1.c (floorf): Likewise.
34312         * tests/test-floorl.c (floorl): Likewise.
34313         * tests/test-fnmatch.c (fnmatch): Likewise.
34314         * tests/test-fopen.c (fopen): Likewise.
34315         * tests/test-fprintf-posix.c (fprintf): Likewise.
34316         * tests/test-freopen.c (freopen): Likewise.
34317         * tests/test-frexp.c (frexp): Likewise.
34318         * tests/test-frexpl.c (frexpl): Likewise.
34319         * tests/test-fseek.c (fseek): Likewise.
34320         * tests/test-fseeko.c (fseeko): Likewise.
34321         * tests/test-fstatat.c (fstatat): Likewise.
34322         * tests/test-fsync.c (fsync): Likewise.
34323         * tests/test-ftell.c (ftell): Likewise.
34324         * tests/test-ftello.c (ftello): Likewise.
34325         * tests/test-futimens.c (futimens): Likewise.
34326         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
34327         (gai_strerror): Likewise.
34328         * tests/test-getcwd.c (getcwd): Likewise.
34329         * tests/test-getdelim.c (getdelim): Likewise.
34330         * tests/test-getdtablesize.c (getdtablesize): Likewise.
34331         * tests/test-getgroups.c (getgroups): Likewise.
34332         * tests/test-gethostname.c (gethostname): Likewise.
34333         * tests/test-getline.c (getline): Likewise.
34334         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
34335         Likewise.
34336         * tests/test-gettimeofday.c (gettimeofday): Likewise.
34337         * tests/test-glob.c (glob, globfree): Likewise.
34338         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
34339         * tests/test-inet_ntop.c (inet_ntop): Likewise.
34340         * tests/test-inet_pton.c (inet_pton): Likewise.
34341         * tests/test-isblank.c (isblank): Likewise.
34342         * tests/test-lchown.c (lchown): Likewise.
34343         * tests/test-ldexpl.c (ldexpl): Likewise.
34344         * tests/test-link.c (link): Likewise.
34345         * tests/test-linkat.c (linkat): Likewise.
34346         * tests/test-lseek.c (lseek): Likewise.
34347         * tests/test-lstat.c (lstat): Likewise.
34348         * tests/test-mbrtowc.c (mbrtowc): Likewise.
34349         * tests/test-mbsinit.c (mbsinit): Likewise.
34350         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
34351         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
34352         * tests/test-memchr.c (memchr): Likewise.
34353         * tests/test-memcmp.c (memcmp): Likewise.
34354         * tests/test-memmem.c (memmem): Likewise.
34355         * tests/test-memrchr.c (memrchr): Likewise.
34356         * tests/test-mkdir.c (mkdir): Likewise.
34357         * tests/test-mkdirat.c (mkdirat): Likewise.
34358         * tests/test-mkfifo.c (mkfifo): Likewise.
34359         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
34360         * tests/test-mknod.c (mknod): Likewise.
34361         * tests/test-nanosleep.c (nanosleep): Likewise.
34362         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
34363         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
34364         Likewise.
34365         * tests/test-open.c (open): Likewise.
34366         * tests/test-openat.c (openat): Likewise.
34367         * tests/test-perror.c (perror): Likewise.
34368         * tests/test-pipe2.c (pipe2): Likewise.
34369         * tests/test-poll.c (poll): Likewise.
34370         * tests/test-popen.c (popen, pclose): Likewise.
34371         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
34372         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
34373         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
34374         (posix_spawn_file_actions_destroy)
34375         (posix_spawn_file_actions_addclose)
34376         (posix_spawn_file_actions_addopen)
34377         (posix_spawn_file_actions_adddup2): Likewise.
34378         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
34379         * tests/test-pread.c (pread): Likewise.
34380         * tests/test-printf-posix.c (printf): Likewise.
34381         * tests/test-pty.c (openpty, forkpty): Likewise.
34382         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
34383         (random_r): Likewise.
34384         * tests/test-rawmemchr.c (rawmemchr): Likewise.
34385         * tests/test-readlink.c (readlink): Likewise.
34386         * tests/test-remove.c (remove): Likewise.
34387         * tests/test-rename.c (rename): Likewise.
34388         * tests/test-renameat.c (renameat): Likewise.
34389         * tests/test-rmdir.c (rmdir): Likewise.
34390         * tests/test-round1.c (round): Likewise.
34391         * tests/test-roundf1.c (roundf): Likewise.
34392         * tests/test-roundl.c (roundl): Likewise.
34393         * tests/test-setenv.c (setenv): Likewise.
34394         * tests/test-sigaction.c (sigaction): Likewise.
34395         * tests/test-sleep.c (sleep): Likewise.
34396         * tests/test-snprintf.c (snprintf): Likewise.
34397         * tests/test-sprintf-posix.c (sprintf): Likewise.
34398         * tests/test-stat.c (stat): Likewise.
34399         * tests/test-stpncpy.c (stpncpy): Likewise.
34400         * tests/test-strcasestr.c (strcasestr): Likewise.
34401         * tests/test-strchrnul.c (strchrnul): Likewise.
34402         * tests/test-strerror.c (strerror): Likewise.
34403         * tests/test-strsignal.c (strsignal): Likewise.
34404         * tests/test-strstr.c (strstr): Likewise.
34405         * tests/test-strtod.c (strtod): Likewise.
34406         * tests/test-strverscmp.c (strverscmp): Likewise.
34407         * tests/test-symlink.c (symlink): Likewise.
34408         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
34409         * tests/test-times.c (times): Likewise.
34410         * tests/test-trunc1.c (trunc): Likewise.
34411         * tests/test-truncf1.c (truncf): Likewise.
34412         * tests/test-truncl.c (truncl): Likewise.
34413         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
34414         Likewise.
34415         * tests/test-uname.c (uname): Likewise.
34416         * tests/test-unlink.c (unlink): Likewise.
34417         * tests/test-unlinkat.c (unlinkat): Likewise.
34418         * tests/test-unsetenv.c (unsetenv): Likewise.
34419         * tests/test-usleep.c (usleep): Likewise.
34420         * tests/test-utimensat.c (utimensat): Likewise.
34421         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
34422         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
34423         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
34424         * tests/test-vprintf-posix.c (vprintf): Likewise.
34425         * tests/test-vsnprintf.c (vsnprintf): Likewise.
34426         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
34427         * tests/test-wcrtomb.c (wcrtomb): Likewise.
34428         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
34429         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
34430         * tests/test-wcwidth.c (wcwidth): Likewise.
34431
34432         build: pull in conditional headers during GNULIB_POSIXCHECK
34433         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
34434         definitions from any conditionally-included headers.
34435         * lib/stdlib.in.h (includes): Likewise.
34436         * lib/unistd.in.h (includes): Likewise.
34437
34438 2009-12-24  Bruno Haible  <bruno@clisp.org>
34439
34440         * tests/test-argv-iter.c: Include header file being tested immediately
34441         after config.h.
34442         * tests/test-base64.c: Likewise.
34443         * tests/test-flock.c: Likewise.
34444         * tests/test-fsync.c: Likewise.
34445         * tests/test-getdate.c: Likewise.
34446         * tests/test-getndelim2.c: Likewise.
34447         * tests/test-isfinite.c: Likewise.
34448         * tests/test-isinf.c: Likewise.
34449         * tests/test-strerror.c: Likewise.
34450         * tests/test-strsignal.c: Likewise.
34451
34452 2009-12-23  Eric Blake  <ebb9@byu.net>
34453
34454         unistd: work around cygwin bug
34455         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
34456         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
34457         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34458
34459 2009-12-23  Bruno Haible  <bruno@clisp.org>
34460
34461         localename: More tests.
34462         * tests/test-localename.c (SIZEOF): New macro.
34463         (categories): New variable.
34464         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
34465         test_locale_name_default): Add test w.r.t. thread locale.
34466         (test_locale_name_thread): New function.
34467         (main): Invoke it.
34468
34469         localename: Make aware of thread locale.
34470         * lib/localename.h (gl_locale_name_thread): New declaration.
34471         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
34472         behaviour with respect to thread locale.
34473         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
34474         <langinfo.h>, glthread/lock.h.
34475         (SIZE_BITS): New macro.
34476         (string_hash): New function.
34477         (struct hash_node): New type.
34478         (HASH_TABLE_SIZE): New macro.
34479         (struniq_hash_table, struniq_lock): New variables.
34480         (struniq): New function.
34481         (gl_locale_name_thread): New function.
34482         (gl_locale_name): Invoke it.
34483         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
34484         * modules/localename (Depends-on): Add lock.
34485         Reported by Mike Gran <spk121@yahoo.com>.
34486
34487 2009-12-23  Eric Blake  <ebb9@byu.net>
34488
34489         va-args: new module
34490         * modules/va-args: New file.
34491         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
34492         * MODULES.html.sh (Core language properties): Mention it.
34493
34494         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
34495         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
34496         named alias for __attribute__((__unused__)).
34497         * lib/chown.c: Update client.
34498         * lib/fchmodat.c: Likewise.
34499         * lib/fts.c: Likewise.
34500         * lib/getdate.y: Likewise.
34501         * lib/getgroups.c: Likewise.
34502         * lib/getopt.c: Likewise.
34503         * lib/getugroups.c: Likewise.
34504         * lib/mkdir.c: Likewise.
34505         * lib/mkfifo.c: Likewise.
34506         * lib/mkfifoat.c: Likewise.
34507         * lib/mknod.c: Likewise.
34508         * lib/mknodat.c: Likewise.
34509         * lib/readlink.c: Likewise.
34510         * lib/se-context.in.h: Likewise.
34511         * lib/se-selinux.in.h: Likewise.
34512         * lib/sockets.c: Likewise.
34513         * lib/symlink.c: Likewise.
34514         * lib/symlinkat.c: Likewise.
34515         * lib/unicodeio.c: Likewise.
34516         * lib/unistr.h: Likewise.
34517         * tests/test-areadlink.c: Likewise.
34518         * tests/test-areadlinkat.c: Likewise.
34519         * tests/test-filenamecat.c: Likewise.
34520         * tests/test-fseeko.c: Likewise.
34521         * tests/test-ftello.c: Likewise.
34522         * tests/test-getdate.c: Likewise.
34523         * tests/test-getgroups.c: Likewise.
34524         * tests/test-gethostname.c: Likewise.
34525         * tests/test-quotearg.c: Likewise.
34526         * tests/test-version-etc.c: Likewise.
34527         * tests/test-xalloc-die.c: Likewise.
34528         * tests/test-xfprintf-posix.c: Likewise.
34529         * tests/test-xprintf-posix.c: Likewise.
34530         * tests/test-xvasprintf.c: Likewise.
34531
34532         tests: avoid compiler warnings
34533         * tests/test-fcntl.c (main): Delete unused parameters.
34534         * tests/test-freopen-safer.c (main): Likewise.
34535         * tests/test-xalloc-die.c (main): Mark unused parameters.
34536         * tests/test-fseeko.c (main): Likewise.
34537         * tests/test-ftello.c (main): Likewise.
34538         * tests/test-nanosleep.c (main): Avoid declaration warning.
34539         * tests/test-sleep.c (main): Likewise.
34540         * tests/test-unsetenv.c (main): Silence warning about string
34541         literal.
34542         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
34543
34544 2009-12-23  Bruno Haible  <bruno@clisp.org>
34545
34546         * tests/test-localename.c (test_locale_name): New function, extracted
34547         from main. Also test mixed situations.
34548         (test_locale_name_posix, test_locale_name_environ,
34549         test_locale_name_default): New functions.
34550         (main): Invoke them all.
34551         * modules/localename-tests (configure.ac): Test for newlocale.
34552
34553 2009-12-23  Bruno Haible  <bruno@clisp.org>
34554
34555         unistd: Ensure getcwd gets declared before being overridden.
34556         * lib/unistd.in.h: Conditionally include <io.h>.
34557
34558 2009-12-22  Bruno Haible  <bruno@clisp.org>
34559
34560         wchar: Diagnose broken combination of glibc and gcc versions and flags.
34561         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
34562         (gl_WCHAR_H): Invoke it.
34563         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
34564         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
34565         Reported by Karl Berry <karl@freefriends.org>.
34566
34567 2009-12-22  Eric Blake  <ebb9@byu.net>
34568
34569         math, unistd: avoid redundant includes
34570         * lib/math.in.h (isnan): No need to re-include <math.h>.
34571         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
34572
34573         getsubopt: work around cygwin bug
34574         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
34575         avoid conflicting with system getsubopt.
34576         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
34577         bug.
34578
34579         getopt: synchronize from glibc
34580         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
34581         parameter order.  Adjust all callers.
34582         (_getopt_internal_r, main): Adjust quoting in error messages.
34583         Drop considerations for outdated POSIX 1003.2 error message.
34584         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
34585         callers.
34586         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
34587
34588         test-getopt: test stderr behavior
34589         * modules/getopt-posix-tests (Depends-on): Add dup2.
34590         * tests/test-getopt.c (ASSERT): Avoid stderr.
34591         (main): Move stderr to a temporary file.
34592         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
34593         Instead, add parameter to inform caller if output occurred.
34594         (test_getopt): Adjust all existing tests to expect silence, and
34595         add new tests of leading ":".
34596         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34597         glibc shortcomings with leading "-:" or "+:" in optstring.
34598         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34599         Likewise.
34600         * doc/posix-functions/getopt.texi (getopt): Likewise.
34601
34602         test-getopt: enhance test
34603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
34604         supports optind=0.
34605         * tests/test-getopt.c (OPTIND_MIN): Move...
34606         * tests/test-getopt.h (OPTIND_MIN): ...here.
34607         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
34608         Require that optind=0 works, since modern BSD supports it in
34609         addition to optreset, and since coreutils expects it.
34610         (test_getopt_long_only): New test.
34611         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34612         glibc shortcomings with 'W;', and enforcement of optind=0.
34613         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34614         Likewise.
34615
34616 2009-12-21  Bruno Haible  <bruno@clisp.org>
34617
34618         localename: Improvements for MacOS X and Cygwin.
34619         * lib/localename.h (gl_locale_name_environ): New declaration.
34620         * lib/localename.c (gl_locale_name_environ): New function, extracted from
34621         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
34622         (gl_locale_name_posix): Invoke it.
34623         (gl_locale_name_default): Add comments. Use Windows native API also on
34624         Cygwin.
34625
34626 2009-12-21  Bruno Haible  <bruno@clisp.org>
34627
34628         Update list of Win32 locale ids.
34629         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
34630         (LANG_SAMI): Renamed from LANG_SAAMI.
34631         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
34632         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
34633         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
34634         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
34635         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
34636         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
34637         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
34638         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
34639         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
34640         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
34641         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
34642         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
34643         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
34644         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
34645         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
34646         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
34647         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
34648         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
34649         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
34650         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
34651         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
34652         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
34653         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
34654         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
34655         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
34656         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
34657         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
34658         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
34659         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
34660         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
34661         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
34662         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
34663         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
34664         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
34665         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
34666         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
34667         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
34668         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
34669         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
34670         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
34671         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
34672         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
34673         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
34674         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
34675         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
34676         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
34677         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
34678         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
34679         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
34680         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
34681         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
34682         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
34683         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
34684         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
34685         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
34686         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
34687         Add more languages and countries for Sami, Sorbian. Add more countries
34688         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
34689         for Pashto. Change country for Syriac, Tswana.
34690
34691 2009-12-21  Eric Blake  <ebb9@byu.net>
34692
34693         test-utimens: avoid spurious failure
34694         * tests/test-chown.h (nap): Factor...
34695         * tests/nap.h: ...into new file.
34696         * tests/test-lchown.h (nap): Avoid duplication.
34697         * tests/test-utimens-common.h (nap): Use shared implementation,
34698         necessary on file systems with 1-second resolution.
34699         * modules/chown-tests (Files): Include new file.
34700         * modules/fdutimensat-tests (Files): Likewise.
34701         * modules/futimens-tests (Files): Likewise.
34702         * modules/lchown-tests (Files): Likewise.
34703         * modules/openat-tests (Files): Likewise.
34704         * modules/utimens-tests (Files): Likewise.
34705         * modules/utimensat-tests (Files): Likewise.
34706
34707 2009-12-19  Eric Blake  <ebb9@byu.net>
34708
34709         futimens, utimensat: work around Linux bug
34710         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
34711         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34712         * lib/utimensat.c (rpl_utimensat): Work around it.
34713         * lib/futimens.c (rpl_futimens): Adjust comment.
34714
34715         utimens: work around Linux ctime bug
34716         * lib/utimens.c (detect_ctime_bug): New helper function.
34717         (update_timespec): Differentiate between workaround needed for
34718         this bug vs. what is needed for systems that lack utimensat.
34719         (fdutimens, lutimens): Work around bug.
34720
34721         utimens: check for ctime update
34722         * tests/test-utimens-common.h (check_ctime): Define.
34723         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
34724         * tests/test-futimens.h (test_futimens): Likewise.
34725         * tests/test-lutimens.h (test_lutimens): Likewise.
34726         * doc/posix-functions/futimens.texi (futimens): Document the bug.
34727         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34728
34729 2009-12-19  Bruno Haible  <bruno@clisp.org>
34730
34731         dprintf-posix: Check against memory leak fixed on 2009-12-15.
34732         * tests/test-dprintf-posix2.sh: New file.
34733         * tests/test-dprintf-posix2.c: New file.
34734         * modules/dprintf-posix-tests (Files): Add them.
34735         (configure.ac): Check for getrlimit and setrlimit.
34736         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34737
34738 2009-12-19  Bruno Haible  <bruno@clisp.org>
34739
34740         fprintf-posix: Check against memory leak fixed on 2009-12-15.
34741         * tests/test-fprintf-posix3.sh: New file.
34742         * tests/test-fprintf-posix3.c: New file.
34743         * modules/fprintf-posix-tests (Files): Add them.
34744         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34745
34746 2009-12-19  Eric Blake  <ebb9@byu.net>
34747
34748         dirfd: fix prototype
34749         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
34750         * lib/dirfd.c (dirfd): Likewise.
34751
34752         canonicalize: reduce memory usage
34753         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
34754         allocation to size.
34755         Reported by Solar Designer <solar@openwall.com>.
34756
34757 2009-12-19  Bruno Haible  <bruno@clisp.org>
34758
34759         New module attribute 'Applicability'.
34760         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
34761         * gnulib-tool: New option --extract-applicability.
34762         (func_usage): Document it.
34763         (sed_extract_prog): Recognize it.
34764         (func_get_applicability): New function.
34765         (func_import): Generalize handling of 'link-warning' module.
34766         * modules/link-warning (Applicability): New section.
34767         * modules/arg-nonnull (Applicability): New section.
34768         Repoted by Simon Josefsson <simon@josefsson.org>.
34769
34770 2009-12-19  Bruno Haible  <bruno@clisp.org>
34771
34772         fflush: tweak
34773         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
34774         * lib/fseeko.c (rpl_fseeko): Likewise.
34775
34776 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
34777
34778         * lib/gl_list.h: Fix typo in comment.
34779
34780 2009-12-16  Eric Blake  <ebb9@byu.net>
34781
34782         fcntl: use to simplify other modules
34783         * modules/cloexec (Depends-on): Add fcntl.
34784         * modules/fchdir (Depends-on): Likewise.
34785         * modules/fd-safer-flag (Depends-on): Likewise.
34786         * modules/unistd-safer (Depends-on): Likewise.
34787         * modules/dup3 (configure.ac): Set module indicator.
34788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
34789         missing.
34790         * lib/fchdir.c (_gl_register_dup): Fix comment.
34791         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
34792         * lib/dup-safer.c (dup_safer): Likewise.
34793         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
34794         * lib/dup3.c (dup3): Likewise.
34795         * tests/test-fchdir.c (main): Enhance test.
34796         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
34797
34798         fcntl: port portions of fcntl to mingw
34799         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
34800         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
34801         replacement for mingw.
34802         * modules/fcntl (Description): Update.
34803         (Depends-on): Add dup2.
34804         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
34805         * modules/fcntl-h (Makefile.am): Substitute it.
34806         * lib/fcntl.in.h (fcntl): Update declaration.
34807         (F_DUPFD, F_GETFD): New macros, when needed.
34808         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34809         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34810         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34811         we now guarantee.
34812
34813         fcntl: work around cygwin bug in F_DUPFD
34814         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34815         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34816         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34817         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34818         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34819
34820         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34821         * modules/fcntl (Files): List new files.
34822         (configure.ac): Run a test.
34823         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34824         * lib/fcntl.c (rpl_fcntl): Likewise.
34825         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34826         (gl_FCNTL_H): Always replace fcntl.h.
34827         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34828         * lib/fcntl.in.h (fcntl): Declare replacement.
34829         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34830         needed, plus a witness.
34831         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34832         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34833         * tests/test-fcntl.c: New file.
34834         * modules/fcntl-tests: Likewise.
34835
34836         binary-io: avoid potential compilation warning
34837         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34838         directives.
34839
34840         fflush: avoid compilation error on NetBSD
34841         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34842         between off_t and fpos_t, since the latter is sometimes a struct.
34843         * lib/fseeko.c (rpl_fseeko): Likewise.
34844         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34845
34846 2009-12-15  Eric Blake  <ebb9@byu.net>
34847
34848         fcntl-h, stdio, sys_ioctl: fix declarations
34849         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34850         function must not take arguments.
34851         * lib/sys_ioctl.in.h (ioctl): Likewise.
34852         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34853         (open): Add a link warning.
34854
34855 2009-12-15  Jim Meyering  <meyering@redhat.com>
34856
34857         areadlink, areadlink-with-size: relax license to LGPLv2+
34858         * modules/areadlink (License): Relax to LGPLv2+.
34859         * modules/areadlink-with-size (License): Likewise.
34860
34861 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34862             Bruno Haible  <bruno@clisp.org>
34863
34864         *printf: Fix memory leak.
34865         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34866         * lib/vfprintf.c (vfprintf): Likewise.
34867         * lib/dprintf.c (dprintf): Likewise.
34868         * lib/vdprintf.c (vdprintf): Likewise.
34869
34870 2009-12-14  Eric Blake  <ebb9@byu.net>
34871
34872         accept4: adjust module dependencies
34873         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34874
34875         utimens: one more try at avoiding compiler warning
34876         * lib/utimens.c (lutimens): Lower scope of result.
34877
34878 2009-12-13  Bruno Haible  <bruno@clisp.org>
34879
34880         Move the malloc checking from module 'list' to new module 'xlist'.
34881         * modules/xlist: New file.
34882         * lib/gl_xlist.h: New file.
34883         * lib/gl_xlist.c: New file.
34884         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34885         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34886         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34887         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34888         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34889         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34890         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34891         gl_sortedlist_nx_add): New declarations.
34892         (struct gl_list_implementation): Rename and change methods accordingly.
34893         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34894         (gl_list_nx_create): Renamed from gl_list_create.
34895         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34896         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34897         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34898         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34899         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34900         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34901         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34902         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34903         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34904         gl_list_create_empty.
34905         (gl_list_nx_create): Renamed from gl_list_create.
34906         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34907         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34908         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34909         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34910         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34911         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34912         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34913         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34914         * lib/gl_array_list.c: Don't include xalloc.h.
34915         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34916         NULL upon out-of-memory.
34917         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34918         out-of-memory.
34919         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34920         Change return type to 'int'.
34921         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34922         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34923         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34924         upon out-of-memory.
34925         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34926         upon out-of-memory.
34927         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34928         upon out-of-memory.
34929         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34930         upon out-of-memory.
34931         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34932         out-of-memory.
34933         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34934         Update.
34935         (gl_array_list_implementation): Update.
34936         * lib/gl_carray_list.c: Don't include xalloc.h.
34937         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34938         Return NULL upon out-of-memory.
34939         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34940         out-of-memory.
34941         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34942         Change return type to 'int'.
34943         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34944         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34945         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34946         upon out-of-memory.
34947         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34948         upon out-of-memory.
34949         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34950         out-of-memory.
34951         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34952         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34953         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34954         Update.
34955         (gl_carray_list_implementation): Update.
34956         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34957         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34958         gl_linked_create_empty. Return NULL upon out-of-memory.
34959         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34960         out-of-memory.
34961         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34962         Change return type to 'int'. Return -1 upon out-of-memory.
34963         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34964         out-of-memory.
34965         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34966         upon out-of-memory.
34967         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34968         upon out-of-memory.
34969         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34970         NULL upon out-of-memory.
34971         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34972         upon out-of-memory.
34973         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34974         out-of-memory.
34975         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34976         Update.
34977         * lib/gl_linked_list.c: Don't include xalloc.h.
34978         (gl_linked_list_implementation): Update.
34979         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34980         (add_to_bucket): Change return type to 'int'.
34981         (gl_linkedhash_list_implementation): Update.
34982         * lib/gl_anytree_list1.h (free_subtree): New function.
34983         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34984         gl_tree_create_empty. Return NULL upon out-of-memory.
34985         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34986         Change return type to 'int'. Return -1 upon out-of-memory.
34987         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34988         out-of-memory.
34989         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34990         (gl_tree_remove_node): New function, moved here from
34991         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34992         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34993         Update.
34994         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34995         malloc, not xmalloc. Return NULL upon out-of-memory.
34996         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34997         out-of-memory.
34998         (gl_tree_remove_node_from_tree): New function, extracted from
34999         gl_tree_remove_node.
35000         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35001         upon out-of-memory.
35002         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35003         out-of-memory.
35004         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35005         upon out-of-memory.
35006         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35007         upon out-of-memory.
35008         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35009         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
35010         not xmalloc. Return NULL upon out-of-memory.
35011         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35012         out-of-memory.
35013         (gl_tree_remove_node_from_tree): New function, extracted from
35014         gl_tree_remove_node.
35015         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35016         upon out-of-memory.
35017         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35018         out-of-memory.
35019         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35020         upon out-of-memory.
35021         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35022         upon out-of-memory.
35023         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35024         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
35025         gl_anytree_list1.h before gl_anyavltree_list2.h.
35026         (gl_avltree_list_implementation): Update.
35027         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
35028         gl_anytree_list1.h before gl_anyavltree_list2.h.
35029         (gl_rbtree_list_implementation): Update.
35030         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
35031         Change return type to 'int'. Return -1 upon out-of-memory. Use
35032         __builtin_expect.
35033         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
35034         (gl_avltreehash_list_implementation): Update.
35035         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
35036         (gl_rbtreehash_list_implementation): Update.
35037         * modules/array-list (Depends-on): Remove xalloc.
35038         * modules/carray-list (Depends-on): Likewise.
35039         * modules/linked-list (Depends-on): Likewise.
35040         * modules/linkedhash-list (Depends-on): Likewise.
35041         * modules/avltree-list (Depends-on): Likewise.
35042         * modules/rbtree-list (Depends-on): Likewise.
35043         * modules/avltreehash-list (Depends-on): Likewise.
35044         * modules/rbtreehash-list (Depends-on): Likewise.
35045
35046         * modules/xsublist: New file.
35047         * lib/gl_xsublist.h: New file.
35048         * lib/gl_xsublist.c: New file.
35049         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
35050         (gl_sublist_nx_create): New declaration.
35051         * lib/gl_sublist.c: Don't include xalloc.h.
35052         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
35053         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
35054         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
35055         Change return type to 'int'. Return -1 upon out-of-memory.
35056         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
35057         upon out-of-memory.
35058         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
35059         NULL upon out-of-memory.
35060         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
35061         upon out-of-memory.
35062         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
35063         NULL upon out-of-memory.
35064         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
35065         NULL upon out-of-memory.
35066         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
35067         upon out-of-memory.
35068         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
35069         (gl_sublist_list_implementation): Update.
35070         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
35071         upon out-of-memory.
35072         * modules/sublist (Depends-on): Remove xalloc.
35073
35074         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
35075         * tests/test-carray_list.c: Likewise.
35076         * tests/test-linked_list.c: Likewise.
35077         * tests/test-linkedhash_list.c: Likewise.
35078         * tests/test-avltree_list.c: Likewise.
35079         * tests/test-rbtree_list.c: Likewise.
35080         * tests/test-avltreehash_list.c: Likewise.
35081         * tests/test-rbtreehash_list.c: Likewise.
35082         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
35083         * modules/carray-list-tests (Makefile.am): Likewise.
35084         * modules/linked-list-tests (Makefile.am): Likewise.
35085         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35086         * modules/avltree-list-tests (Makefile.am): Likewise.
35087         * modules/rbtree-list-tests (Makefile.am): Likewise.
35088         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35089         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35090
35091         * NEWS: Mention the changes.
35092
35093         * lib/clean-temp.c: Include gl_xlist.h.
35094         * modules/clean-temp (Depends-on): Add xlist.
35095
35096         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
35097         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
35098
35099         * tests/test-array_oset.c: Include gl_xlist.h.
35100         * modules/array-oset-tests (Depends-on): Add xlist.
35101
35102         Reported by José E. Marchesi <jemarch@gnu.org>.
35103
35104 2009-12-13  Bruno Haible  <bruno@clisp.org>
35105
35106         Move the malloc checking from module 'oset' to new module 'xoset'.
35107         * modules/xoset: New file.
35108         * lib/gl_xoset.h: New file.
35109         * lib/gl_xoset.c: New file.
35110         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
35111         declarations.
35112         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
35113         (struct gl_oset_implementation): Rename and change methods accordingly.
35114         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
35115         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35116         'int'. Mark as __warn_unused_result__.
35117         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
35118         gl_oset_create_empty.
35119         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35120         'int'.
35121         * lib/gl_array_oset.c: Don't include xalloc.h.
35122         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
35123         malloc, not xmalloc.
35124         (grow): Change return type to 'int'. Don't call xalloc_die.
35125         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
35126         to 'int'.
35127         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
35128         'int'.
35129         (gl_array_oset_implementation): Update.
35130         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
35131         gl_tree_create_empty.
35132         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
35133         'int'.
35134         * lib/gl_avltree_oset.c: Don't include xalloc.h.
35135         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35136         xmalloc.
35137         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35138         not xmalloc.
35139         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35140         xmalloc.
35141         (gl_avltree_oset_implementation): Update.
35142         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
35143         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35144         xmalloc.
35145         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35146         not xmalloc.
35147         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35148         xmalloc.
35149         (gl_rbtree_oset_implementation): Update.
35150         * modules/array-oset (Depends-on): Remove xalloc.
35151         * modules/avltree-oset (Depends-on): Likewise.
35152         * modules/rbtree-oset (Depends-on): Likewise.
35153         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
35154         * tests/test-avltree_oset.c: Likewise.
35155         * tests/test-rbtree_oset.c: Likewise.
35156         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35157         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
35158         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35159         * NEWS: Mention the change.
35160
35161 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
35162
35163         maint.mk: allow a project to override release-prep commands
35164         * top/maint.mk (alpha, beta, stable): Move release-preparatory
35165         commands into a new rule.
35166         (release-prep): New rule.
35167         (release-prep-hook): New overridable variable.
35168
35169 2009-12-13  Bruno Haible  <bruno@clisp.org>
35170
35171         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
35172
35173 2009-12-13  Jim Meyering  <meyering@redhat.com>
35174
35175         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
35176         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
35177
35178 2009-12-12  Bruno Haible  <bruno@clisp.org>
35179
35180         duplocale: Tweak.
35181         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
35182
35183 2009-12-12  Karl Berry  <karl@gnu.org>
35184
35185         * config/srclist.txt (strtoll.c): tab changes, no more sync.
35186
35187 2009-12-12  Bruno Haible  <bruno@clisp.org>
35188
35189         * m4/po.m4: Undo incorrect untabification.
35190
35191 2009-12-12  Bruno Haible  <bruno@clisp.org>
35192
35193         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
35194         * modules/c-strtod (Depends-on): Add locale.
35195         * modules/c-strtold (Depends-on): Likewise.
35196
35197 2009-12-12  Bruno Haible  <bruno@clisp.org>
35198
35199         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
35200
35201 2009-12-11  Eric Blake  <ebb9@byu.net>
35202
35203         setenv: relax requirement in light of POSIX ruling
35204         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
35205         not NULL.
35206         * tests/test-setenv.c (main): Relax test.
35207         * tests/test-unsetenv.c (main): Likewise.
35208         * doc/posix-functions/setenv.texi (setenv): Document this.
35209         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35210
35211 2009-12-11  Bruno Haible  <bruno@clisp.org>
35212
35213         New module 'fd-safer-flag'.
35214         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
35215         * lib/dup-safer.c (dup_safer_flag): Remove function.
35216         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
35217         * lib/fd-safer.c (fd_safer_flag): Remove function.
35218         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
35219         * modules/cloexec (configure.ac): Drop indicator macro.
35220         * modules/fd-safer-flag: New file.
35221         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
35222         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
35223         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
35224
35225 2009-12-11  Bruno Haible  <bruno@clisp.org>
35226
35227         Tests for module 'nl_langinfo'.
35228         * modules/nl_langinfo-tests: New file.
35229         * tests/test-nl_langinfo.sh: New file.
35230         * tests/test-nl_langinfo.c: New file.
35231
35232         New module 'nl_langinfo'.
35233         * lib/nl_langinfo.c: New file.
35234         * m4/nl_langinfo.m4: New file.
35235         * modules/nl_langinfo: New file.
35236         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
35237
35238 2009-12-11  Bruno Haible  <bruno@clisp.org>
35239
35240         Tests for module 'langinfo'.
35241         * modules/langinfo-tests: New file.
35242         * tests/test-langinfo.c: New file.
35243
35244         New module 'langinfo'.
35245         * lib/langinfo.in.h: New file.
35246         * m4/langinfo_h.m4: New file.
35247         * modules/langinfo: New file.
35248         * doc/posix-headers/langinfo.texi: Mention the new module.
35249
35250 2009-12-11  Bruno Haible  <bruno@clisp.org>
35251
35252         * lib/config.charset: Untabify.
35253
35254 2009-12-11  Bruno Haible  <bruno@clisp.org>
35255
35256         * modules/unistd-safer (configure.ac): Drop indicator macro.
35257
35258 2009-12-11  Bruno Haible  <bruno@clisp.org>
35259
35260         Move pipe2-safer code to its own file.
35261         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
35262         * lib/pipe-safer.c (pipe2_safer): Remove function.
35263         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
35264         (Makefile.am): Add it to lib_SOURCES.
35265
35266 2009-12-10  Bruno Haible  <bruno@clisp.org>
35267
35268         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
35269
35270 2009-12-10  Bruno Haible  <bruno@clisp.org>
35271
35272         Declare which arguments expect non-NULL values, for GCC and clang.
35273         * build-aux/arg-nonnull.h: New file.
35274         * modules/arg-nonnull: New file.
35275         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
35276         (inet_ntop, inet_pton): Use it.
35277         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
35278         (closedir, dirfd, opendir, scandir, alphasort): Use it.
35279         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
35280         (open, openat): Use it.
35281         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
35282         (fnmatch): Use it.
35283         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
35284         (getopt, getopt_long, getopt_long_only): Use it.
35285         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
35286         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
35287         Use it.
35288         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
35289         (iconv_open): Use it.
35290         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
35291         (strtoimax, strtoumax): Use it.
35292         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
35293         (duplocale): Use it.
35294         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
35295         (frexp, frexpl): Use it.
35296         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
35297         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
35298         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
35299         (tsearch, tfind, tdelete, twalk): Use it.
35300         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
35301         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35302         sigpending): Use it.
35303         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
35304         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35305         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35306         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35307         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35308         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35309         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35310         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35311         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35312         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35313         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35314         Use it.
35315         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
35316         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
35317         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
35318         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
35319         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
35320         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
35321         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
35322         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
35323         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
35324         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
35325         strtoull, unsetenv): Use it.
35326         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
35327         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35328         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35329         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
35330         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
35331         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
35332         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
35333         (strcasecmp, strncasecmp): Use it.
35334         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
35335         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
35336         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
35337         rpl_setsockopt): Use it.
35338         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
35339         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
35340         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
35341         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
35342         (gettimeofday): Use it.
35343         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
35344         (times): Use it.
35345         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
35346         (uname): Use it.
35347         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
35348         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
35349         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
35350         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
35351         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
35352         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
35353         unlinkat, write): Use it.
35354         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
35355         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
35356         * lib/argv-iter.h: Include arg-nonnull.h.
35357         (_ATTRIBUTE_NONNULL_): Remove macro.
35358         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
35359         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
35360         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
35361         optimization.
35362         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
35363         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
35364         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
35365         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
35366         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
35367         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
35368         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
35369         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
35370         * modules/arpa_inet (Depends-on): Add arg-nonnull.
35371         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
35372         * modules/dirent (Depends-on): Add arg-nonnull.
35373         (Makefile.am): Insert arg-nonnull.h into dirent.h.
35374         * modules/fcntl-h (Depends-on): Add arg-nonnull.
35375         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
35376         * modules/fnmatch (Depends-on): Add arg-nonnull.
35377         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
35378         * modules/getopt-posix (Depends-on): Add arg-nonnull.
35379         (Makefile.am): Insert arg-nonnull.h into getopt.h.
35380         * modules/glob (Depends-on): Add arg-nonnull.
35381         (Makefile.am): Insert arg-nonnull.h into glob.h.
35382         * modules/iconv_open (Depends-on): Add arg-nonnull.
35383         (Makefile.am): Insert arg-nonnull.h into iconv.h.
35384         * modules/inttypes (Depends-on): Add arg-nonnull.
35385         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
35386         * modules/locale (Depends-on): Add arg-nonnull.
35387         (Makefile.am): Insert arg-nonnull.h into locale.h.
35388         * modules/math (Depends-on): Add arg-nonnull.
35389         (Makefile.am): Insert arg-nonnull.h into math.h.
35390         * modules/netdb (Depends-on): Add arg-nonnull.
35391         (Makefile.am): Insert arg-nonnull.h into netdb.h.
35392         * modules/search (Depends-on): Add arg-nonnull.
35393         (Makefile.am): Insert arg-nonnull.h into search.h.
35394         * modules/signal (Depends-on): Add arg-nonnull.
35395         (Makefile.am): Insert arg-nonnull.h into signal.h.
35396         * modules/spawn (Depends-on): Add arg-nonnull.
35397         (Makefile.am): Insert arg-nonnull.h into spawn.h.
35398         * modules/stdio (Depends-on): Add arg-nonnull.
35399         (Makefile.am): Insert arg-nonnull.h into stdio.h.
35400         * modules/stdlib (Depends-on): Add arg-nonnull.
35401         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
35402         * modules/string (Depends-on): Add arg-nonnull.
35403         (Makefile.am): Insert arg-nonnull.h into string.h.
35404         * modules/strings (Depends-on): Add arg-nonnull.
35405         (Makefile.am): Insert arg-nonnull.h into strings.h.
35406         * modules/sys_socket (Depends-on): Add arg-nonnull.
35407         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
35408         * modules/sys_stat (Depends-on): Add arg-nonnull.
35409         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
35410         * modules/sys_time (Depends-on): Add arg-nonnull.
35411         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
35412         * modules/sys_times (Depends-on): Add arg-nonnull.
35413         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
35414         * modules/sys_utsname (Depends-on): Add arg-nonnull.
35415         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
35416         * modules/time (Depends-on): Add arg-nonnull.
35417         (Makefile.am): Insert arg-nonnull.h into time.h.
35418         * modules/unistd (Depends-on): Add arg-nonnull.
35419         (Makefile.am): Insert arg-nonnull.h into unistd.h.
35420         * modules/wchar (Depends-on): Add arg-nonnull.
35421         (Makefile.am): Insert arg-nonnull.h into wchar.h.
35422         * modules/argv-iter (Depends-on): Add arg-nonnull.
35423         * tests/test-canonicalize.c (null_ptr): New function.
35424         (main): Use it.
35425         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
35426         (main): Use it.
35427         * tests/test-memmem.c (null_ptr): New function.
35428         (main): Use it.
35429         Reported by Jim Meyering.
35430
35431 2009-12-10  Bruno Haible  <bruno@clisp.org>
35432
35433         Use spaces for indentation, not tabs.
35434         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
35435         * m4/*.m4: Untabify.
35436         * build-aux/*.h: Untabify.
35437         * tests/**/*.[hc]: Untabify.
35438         * README: New section "Indent with spaces, not TABs", based on
35439         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
35440         * NEWS: Mention the change.
35441
35442 2009-12-10  Bruno Haible  <bruno@clisp.org>
35443
35444         pty test: Fix link error.
35445         * modules/pty-tests (Makefile.am): Add the default LDADD value to
35446         test_pty_LDADD.
35447
35448 2009-12-07  Simon Josefsson  <simon@josefsson.org>
35449
35450         * modules/pty: New file.
35451         * modules/pty-tests: New file.
35452         * m4/pty.m4: New file.
35453         * tests/test-pty.c: New file.
35454         * doc/glibc-headers/pty.texi: Modified.
35455         * doc/glibc-functions/forkpty.texi: Modified.
35456         * doc/glibc-functions/openpty.texi: Modified.
35457
35458 2009-12-10  Bruno Haible  <bruno@clisp.org>
35459
35460         Avoid syntax error in C++ mode.
35461         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
35462
35463 2009-12-10  Bruno Haible  <bruno@clisp.org>
35464
35465         Use sed with option -e.
35466         * gnulib-tool (func_version, func_emit_copyright_notice,
35467         func_emit_initmacro_end, func_import, func_create_testdir): Pass
35468         option -e to sed.
35469         * modules/link-warning (Makefile.am): Likewise.
35470
35471 2009-12-10  Jim Meyering  <meyering@redhat.com>
35472
35473         mgetgroups: do not write bytes beyond end of malloc'd buffer
35474         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
35475         username, we call getgroups with a one-element-shorter buffer,
35476         but still told it the length was original, max_n_groups.
35477
35478 2009-12-09  Eric Blake  <ebb9@byu.net>
35479
35480         cloexec: relax license
35481         * modules/cloexec (Maintainer): Add myself.
35482         (License): Use LGPL, not GPL.
35483
35484         link-warning: optimize generation
35485         * modules/link-warning (Makefile.am): Reduce process usage.
35486
35487 2009-12-09  Bruno Haible  <bruno@clisp.org>
35488
35489         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
35490         workaround was added on 2009-11-17.
35491
35492 2009-12-09  Jim Meyering  <meyering@redhat.com>
35493             Bruno Haible  <bruno@clisp.org>
35494
35495         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
35496         * modules/link-warning (Makefile.am): Make the comment-removing sed
35497         command more robust in the face of bootstrap-prepended comment lines.
35498
35499 2009-12-09  Bruno Haible  <bruno@clisp.org>
35500
35501         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
35502         most one group.
35503
35504 2009-12-09  Simon Josefsson <simon@josefsson.org>
35505             Bruno Haible  <bruno@clisp.org>
35506
35507         * build-aux/link-warning.h: Add copyright notice.
35508         * modules/link-warning (Makefile.am): Generate link-warning.h from
35509         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
35510         * NEWS: Mention change in link-warning module.
35511         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
35512         * modules/dirent (Makefile.am): Add dependency to dirent.h.
35513         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
35514         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
35515         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
35516         * modules/math (Makefile.am): Add dependency to math.h.
35517         * modules/search (Makefile.am): Add dependency to search.h.
35518         * modules/signal (Makefile.am): Add dependency to signal.h.
35519         * modules/spawn (Makefile.am): Add dependency to spawn.h.
35520         * modules/stdio (Makefile.am): Add dependency to stdio.h.
35521         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
35522         * modules/string (Makefile.am): Add dependency to string.h.
35523         * modules/strings (Makefile.am): Add dependency to strings.h.
35524         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
35525         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
35526         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
35527         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
35528         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
35529         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
35530         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
35531         * modules/unistd (Makefile.am): Add dependency to unistd.h.
35532         * modules/wchar (Makefile.am): Add dependency to wchar.h.
35533
35534 2009-12-09  Bruno Haible  <bruno@clisp.org>
35535
35536         fchdir: Optimize away rpl_fstat when possible.
35537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
35538         REPLACE_OPEN_DIRECTORY.
35539         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
35540
35541 2009-12-09  Bruno Haible  <bruno@clisp.org>
35542
35543         * lib/fchdir.c: Update comment.
35544
35545 2009-12-09  Bruno Haible  <bruno@clisp.org>
35546
35547         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
35548
35549 2009-12-08  Eric Blake  <ebb9@byu.net>
35550
35551         fchdir: avoid memory leak on re-registration.
35552         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
35553
35554 2009-12-08  Jim Meyering  <meyering@redhat.com>
35555
35556         init.sh: avoid Solaris 10 /bin/sh portability problem
35557         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
35558         sourced script:
35559           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
35560           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
35561           bar
35562         tests/init.sh relied on that, accepting a --set-path=DIR argument,
35563         and two tests used that idiom.
35564         * tests/init.sh: Update suggested usage comments.
35565         (path_prepend_): New function, to be used in place
35566         of the --src-path=DIR option.
35567         (setup_): Move PATH-prepending code into path_prepend_.
35568         * tests/test-pread.sh: Adapt to new usage.
35569         * tests/test-xalloc-die.sh: Likewise.
35570
35571 2009-12-08  Simon Josefsson  <simon@josefsson.org>
35572
35573         * doc/gnulib.texi (Glibc pty.h): Add.
35574         * doc/glibc-functions/forkpty.texi: Add.
35575         * doc/glibc-functions/openpty.texi: Add.
35576         Suggested by Bruno Haible.
35577
35578 2009-12-08  Eric Blake  <ebb9@byu.net>
35579
35580         fchdir: fix logic bugs
35581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
35582         * tests/test-fchdir.c (main): Enhance test.
35583         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
35584         is in use.
35585
35586         dup2: fix logic bugs
35587         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
35588         REPLACE_DUP2 to decide when rpl_dup2 is needed.
35589         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
35590         exists.
35591         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
35592
35593 2009-12-07  Eric Blake  <ebb9@byu.net>
35594
35595         unlink: fix m4 detection
35596         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
35597
35598         unistd-safer: add unit test
35599         * modules/unistd-safer-tests: New file.
35600         * tests/test-dup-safer.c: Likewise.
35601         * tests/test-cloexec.c (setmode): Avoid compiler warning.
35602         * tests/test-dup2.c (setmode): Likewise.
35603         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
35604
35605         cloexec: preserve text vs. binary across dup_cloexec
35606         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
35607         mode.
35608         * modules/dup2-tests (Depends-on): Add binary-io.
35609         * modules/cloexec-tests (Depends-on): Likewise.
35610         * tests/test-dup2.c (setmode, is_mode): New helpers.
35611         (main): Add tests that translation mode is preserved.
35612         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
35613         Reported by Bruno Haible.
35614
35615         mgetgroups: reduce duplicate listings
35616         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
35617         resulting array.
35618         * tests/test-chown.h (test_chown): Simplify client.
35619         * tests/test-lchown.h (test_lchown): Likewise.
35620
35621 2009-12-06  Bruno Haible  <bruno@clisp.org>
35622
35623         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
35624         value.
35625
35626 2009-12-06  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/progname.c: Include stdio.h, stdlib.h.
35629         (set_program_name): Reject a NULL argument.
35630
35631 2009-12-05  Eric Blake  <ebb9@byu.net>
35632
35633         pipe2-safer: new module
35634         * modules/pipe2-safer: New file.
35635         * lib/unistd-safer.h (pipe2_safer): New prototype.
35636         * lib/unistd--.h (pipe2): New wrapper.
35637         * lib/pipe-safer.c (pipe2_safer): New function.
35638         * modules/pipe (Depends-on): Add pipe2-safer.
35639         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
35640
35641         stdlib-safer: preserve cloexec flag for mkostemp[s]
35642         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
35643         fd_safer_flag.
35644
35645         unistd-safer: allow preservation of cloexec status via flag
35646         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
35647         prototypes.
35648         * lib/dup-safer.c (dup_safer_flag): New function.
35649         * lib/fd-safer.c (fd_safer_flag): Likewise.
35650         * modules/cloexec (configure.ac): Set witness.
35651
35652         test-dup2: enhance test
35653         * modules/dup2-tests (Depends-on): Add cloexec.
35654         * tests/test-dup2.c (main): Enhance test.
35655
35656         cloexec: add dup_cloexec
35657         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
35658         header and comments.
35659         * lib/cloexec.c (set_cloexec_flag): Add comments.
35660         (dup_cloexec): New function, with mingw implementation borrowed
35661         from...
35662         * lib/w32spawn.h (dup_noinherit): ...here.
35663         * modules/execute (Depends-on): Add cloexec.
35664         * modules/pipe (Depends-on): Likewise.
35665         * modules/cloexec (Depends-on): Add dup2.
35666         * modules/cloexec-tests (Files): New file.
35667         * tests/test-cloexec.c: Likewise.
35668
35669         test-xalloc-die: fix test for mingw
35670         * modules/xalloc-die-tests (Files): Add tests/init.sh.
35671         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
35672         directory and .exe suffix off argv[0] output.
35673
35674         test-fseeko: fix test for mingw
35675         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
35676         than undefining fseek, so test will pass on mingw.
35677
35678 2009-12-05  Bruno Haible  <bruno@clisp.org>
35679
35680         * lib/progname.h (set_program_name): Clarify specification.
35681         * lib/progname.c (set_program_name): Likewise.
35682         Reported by Jim Meyering.
35683
35684 2009-12-05  Jim Meyering  <meyering@redhat.com>
35685
35686         maint.mk: backslash-escape parens in default regexp
35687         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
35688         backslash-escape the literal parentheses.
35689
35690         maint.mk: news-date-check: use grep -E
35691         * top/maint.mk (today): Define a Make variable, not a...
35692         (news-date-check): ...shell variable.
35693         (news-date-regexp): Use the Make variable.
35694         Use grep's -E option.  Change the failing diagnostic to mention
35695         the variable, $(news-date-regexp).
35696
35697 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
35698
35699         maintainer-makefile: allow customization of NEWS entry format
35700         * top/maint.mk (news-date-regexp): New overridable variable.
35701         (news-date-check): Use it.
35702
35703 2009-12-04  Eric Blake  <ebb9@byu.net>
35704
35705         mgetgroups: add xgetgroups, and avoid ENOSYS failures
35706         * lib/mgetgroups.h (xgetgroups): New prototype.
35707         * lib/mgetgroups.c (xgetgroups): New wrapper.
35708         (mgetgroups): Handle ENOSYS.
35709         * modules/mgetgroups (Depends-on): Add realloc.
35710         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
35711
35712         mgetgroups: avoid argument promotion issues with -1
35713         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
35714         for invalid gid_t.
35715         * tests/test-chown.h (getegid, test_chown): Likewise.
35716         * tests/test-lchown.h (getegid, test_lchown): Likewise.
35717
35718 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
35719
35720         exclude: Fix header file problems.
35721         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
35722
35723 2009-12-01  Jim Meyering  <meyering@redhat.com>
35724
35725         fts: fts_open: do not let an empty string cause immediate failure
35726         This is required in support of GNU rm, for which the command
35727         "rm A '' B" must process and remove both A and B, in spite of
35728         the empty string argument.
35729         * lib/fts.c (fts_open): Do not let the presence of an empty string
35730         cause fts_open to fail immediately.  Most fts-using tools must be
35731         able to process all arguments, in order, and can be expected to
35732         diagnose such arguments themselves.
35733
35734 2009-11-30  Eric Blake  <ebb9@byu.net>
35735
35736         utimens: fix compilation error
35737         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
35738         Declare variable at right scope.
35739
35740 2009-11-29  Jim Meyering  <meyering@redhat.com>
35741
35742         bootstrap: handle perl-5.11's changed --version output
35743         * build-aux/bootstrap (get_version): Handle perl separately,
35744         since perl-5.11's --version output is different.
35745
35746 2009-11-28  Jim Meyering  <meyering@redhat.com>
35747
35748         userspec: depend on the inttostr module, too
35749         * modules/userspec (Depends-on): Add inttostr.
35750
35751         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
35752         * lib/userspec.c (parse_with_separator): Do not accept a user ID
35753         number of MAXUID when it evaluates to (uid_t) -1.
35754         Likewise for group ID.  Reported by Matt McCutchen in
35755         <http://savannah.gnu.org/bugs/?28113>
35756
35757         userspec: reformat to use spaces, not TABs
35758         * lib/userspec.c: Expand TABs to spaces.
35759         Add Emacs' "indent-tabs-mode: nil" hint.
35760
35761 2009-11-27  Eric Blake  <ebb9@byu.net>
35762
35763         getopt-gnu: flush out another BSD bug
35764         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
35765         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
35766         flush out BSD bug.
35767         * tests/test-getopt.h (test_getopt): End lists with NULL.
35768         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35769         (test_getopt_long_posix): Enhance test.
35770         * modules/getopt-posix-tests (Depends-on): Add stdbool.
35771         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
35772         getopt-gnu.
35773         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35774         Likewise.
35775
35776 2009-11-27  Simon Josefsson  <simon@josefsson.org>
35777
35778         * modules/idpriv-droptemp-tests (Notice): Fix text.
35779
35780 2009-11-27  Jim Meyering  <meyering@redhat.com>
35781
35782         test-xalloc-die: avoid spurious failure due to libtool argv difference
35783         In a libtool-enabled project, this test would fail due to a difference
35784         in the emitted program name, e.g.,
35785         -test-xalloc-die: memory exhausted
35786         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
35787         Use program to avoid that.
35788         * modules/xalloc-die-tests (Depends-on): Add progname.
35789         * tests/test-xalloc-die.c: Include progname.h".
35790         (program_name): Remove decl.
35791         (main): Call set_program_name.
35792         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
35793
35794 2009-11-26  Richard Jones  <rjones@redhat.com>
35795
35796         w32sock: leave win32 error in place.
35797         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
35798
35799 2009-11-26  Eric Blake  <ebb9@byu.net>
35800
35801         init.sh: suggest to use skip_ and fail_ functions in comments
35802         * tests/init.sh: Add a sentence.
35803
35804 2009-11-25  Bruno Haible  <bruno@clisp.org>
35805
35806         init.sh: add documentation in comments
35807         * tests/init.sh: Add some developer and user documentation.
35808
35809 2009-11-26  Jim Meyering  <meyering@redhat.com>
35810
35811         init.sh: accommodate even those who specify bogus srcdir manually
35812         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35813         configure-time tests to be sanitized, so that there is no need to
35814         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35815         (with no double quotes) suffices.  However, since tests may be
35816         invoked manually, and since you may explicitly set srcdir to the
35817         name of a directory containing spaces, do quote its uses here.
35818         * tests/test-pread.sh: Likewise.
35819         Suggested by Bruno Haible.
35820
35821         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35822         * tests/test-pread.sh: Write no data into the pipe, because
35823         test-pread actually reads none.  This avoids a diagnostic,
35824         "bash: echo: write error: Broken pipe", that arises in the unusual
35825         event something is ignoring SIGPIPE, and might be interpreted
35826         as some sort of failure.  Reported by Bruno Haible.
35827
35828 2009-11-25  Jim Meyering  <meyering@redhat.com>
35829
35830         test-pread: cover failure with ESPIPE and EINVAL
35831         * tests/test-pread.c (main): Test for failure, too.
35832         * tests/test-pread.sh: Invoke with stdin on a pipe.
35833         Suggested by Eric Blake.
35834
35835         pread: improvement and fix
35836         * modules/pread (Depends-on): Depend on lseek, for portability to
35837         e.g., mingw.  Suggested by Eric Blake.
35838         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35839
35840         unistd.in.h: correct declaration of pread
35841         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35842         Reported by Richard W.M. Jones.
35843
35844         test-pread.sh: distribute the test script
35845         * modules/pread-tests (Files): Include test-pread.sh.
35846
35847         test-pread.sh: clean up
35848         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35849         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35850         That is unnecessary, since it's always ".".
35851         Suggestion from Eric Blake.
35852
35853         test-pread.sh: make executable
35854         * tests/test-pread.sh: Set executable bit.
35855         Reported by Eric Blake.
35856
35857         correct typo in test-pread.sh
35858         * tests/test-pread.sh: Add #! line.
35859
35860         test pread
35861         * tests/test-pread.c: New file.
35862         * tests/test-pread.sh: Likewise.
35863         * modules/pread-tests: Likewise.
35864
35865         pread: new module
35866         * modules/pread: New file.
35867         * lib/unistd.in.h (pread): Define/declare.
35868         * lib/pread.c (pread): New file.
35869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35870         * modules/unistd (Makefile.am): Substitute witnesses.
35871         * doc/posix-functions/pread.texi (pread): Update.
35872         * MODULES.html.sh: Add pread.
35873
35874 2009-11-25  Jim Meyering  <meyering@redhat.com>
35875
35876         tests/init.sh: new file to be used via most *.sh tests
35877         * tests/init.sh: New file.
35878
35879 2009-11-25  Eric Blake  <ebb9@byu.net>
35880
35881         utimens: work around older Linux failure with symlinks
35882         * lib/utimens.c (lutimensat_works_really): New variable.
35883         (fdutimens, lutimens): Use it to manage kernels that support
35884         nanosecond times on files, but not on symlinks.
35885         Reported by OndÅ™ej Vašík.
35886
35887         utimes: fix configure grammar
35888         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35889
35890 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35891
35892         regex: Fix fastmap for multibyte character ranges.
35893         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35894         characters when a multibyte character range is included.
35895
35896 2009-11-22  Andy Wingo  <wingo@pobox.com>
35897
35898         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35899         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35900
35901 2009-11-24  Bruno Haible  <bruno@clisp.org>
35902
35903         doc: Most *_l functions exist in MacOS X 10.5.
35904         * doc/posix-functions/duplocale.texi: Update platforms list.
35905         * doc/posix-functions/freelocale.texi: Likewise.
35906         * doc/posix-functions/newlocale.texi: Likewise.
35907         * doc/posix-functions/uselocale.texi: Likewise.
35908         * doc/posix-functions/isalnum_l.texi: Likewise.
35909         * doc/posix-functions/isalpha_l.texi: Likewise.
35910         * doc/posix-functions/isblank_l.texi: Likewise.
35911         * doc/posix-functions/iscntrl_l.texi: Likewise.
35912         * doc/posix-functions/isdigit_l.texi: Likewise.
35913         * doc/posix-functions/isgraph_l.texi: Likewise.
35914         * doc/posix-functions/islower_l.texi: Likewise.
35915         * doc/posix-functions/isprint_l.texi: Likewise.
35916         * doc/posix-functions/ispunct_l.texi: Likewise.
35917         * doc/posix-functions/isspace_l.texi: Likewise.
35918         * doc/posix-functions/isupper_l.texi: Likewise.
35919         * doc/posix-functions/iswalnum_l.texi: Likewise.
35920         * doc/posix-functions/iswalpha_l.texi: Likewise.
35921         * doc/posix-functions/iswblank_l.texi: Likewise.
35922         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35923         * doc/posix-functions/iswctype_l.texi: Likewise.
35924         * doc/posix-functions/iswdigit_l.texi: Likewise.
35925         * doc/posix-functions/iswgraph_l.texi: Likewise.
35926         * doc/posix-functions/iswlower_l.texi: Likewise.
35927         * doc/posix-functions/iswprint_l.texi: Likewise.
35928         * doc/posix-functions/iswpunct_l.texi: Likewise.
35929         * doc/posix-functions/iswspace_l.texi: Likewise.
35930         * doc/posix-functions/iswupper_l.texi: Likewise.
35931         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35932         * doc/posix-functions/isxdigit_l.texi: Likewise.
35933         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35934         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35935         * doc/posix-functions/strcoll_l.texi: Likewise.
35936         * doc/posix-functions/strfmon_l.texi: Likewise.
35937         * doc/posix-functions/strftime_l.texi: Likewise.
35938         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35939         * doc/posix-functions/strxfrm_l.texi: Likewise.
35940         * doc/posix-functions/tolower_l.texi: Likewise.
35941         * doc/posix-functions/toupper_l.texi: Likewise.
35942         * doc/posix-functions/towctrans_l.texi: Likewise.
35943         * doc/posix-functions/towlower_l.texi: Likewise.
35944         * doc/posix-functions/towupper_l.texi: Likewise.
35945         * doc/posix-functions/wcscoll_l.texi: Likewise.
35946         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35947         * doc/posix-functions/wctrans_l.texi: Likewise.
35948         * doc/posix-functions/wctype_l.texi: Likewise.
35949         * doc/glibc-functions/strptime_l.texi: Likewise.
35950         * doc/glibc-functions/strtod_l.texi: Likewise.
35951         * doc/glibc-functions/strtof_l.texi: Likewise.
35952         * doc/glibc-functions/strtol_l.texi: Likewise.
35953         * doc/glibc-functions/strtold_l.texi: Likewise.
35954         * doc/glibc-functions/strtoll_l.texi: Likewise.
35955         * doc/glibc-functions/strtoul_l.texi: Likewise.
35956         * doc/glibc-functions/strtoull_l.texi: Likewise.
35957         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35958         * doc/glibc-functions/wcstod_l.texi: Likewise.
35959         * doc/glibc-functions/wcstof_l.texi: Likewise.
35960         * doc/glibc-functions/wcstol_l.texi: Likewise.
35961         * doc/glibc-functions/wcstold_l.texi: Likewise.
35962         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35963         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35964         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35965
35966 2009-11-24  Bruno Haible  <bruno@clisp.org>
35967
35968         duplocale: Fix logic bug.
35969         * lib/duplocale.c: Don't include <langinfo.h>.
35970         (_NL_LOCALE_NAME): Remove macro.
35971         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35972         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35973
35974 2009-11-23  Jim Meyering  <meyering@redhat.com>
35975
35976         test-update-copyright: don't hard-code /usr/bin/perl
35977         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35978         perl to print the current year.  Gilles Espinasse reported that
35979         the replaced use of perl was hard-coded as /usr/bin/perl.
35980
35981 2009-11-23  Bruno Haible  <bruno@clisp.org>
35982
35983         duplocale: Add support for glibc 2.3.x.
35984         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35985
35986 2009-11-22  Bruno Haible  <bruno@clisp.org>
35987
35988         vasnprintf: Tiny optimization.
35989         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35990         MacOS X.
35991
35992 2009-11-22  Bruno Haible  <bruno@clisp.org>
35993
35994         Tests for module 'duplocale'.
35995         * modules/duplocale-tests: New file.
35996         * tests/test-duplocale.c: New file.
35997
35998         New module 'duplocale'.
35999         * m4/duplocale.m4: New file.
36000         * lib/locale.in.h (duplocale): New declaration.
36001         * lib/duplocale.c: New file.
36002         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
36003         gl_LOCALE_H_DEFAULTS): New macros.
36004         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
36005         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
36006         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
36007         REPLACE_DUPLOCALE.
36008         * modules/duplocale: New file.
36009         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
36010
36011 2009-11-22  Bruno Haible  <bruno@clisp.org>
36012
36013         * modules/locale-tests (configure.ac): Test for newlocale function.
36014         * tests/test-locale.c: When the system has extended locale functions,
36015         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
36016
36017         locale: Make locale_t available when possible.
36018         * lib/locale.in.h: Include <xlocale.h> when it exists.
36019         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
36020         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
36021         * modules/locale (Depends-on): Add extensions.
36022         (Makefile.am): Also substitute HAVE_XLOCALE_H.
36023         * doc/posix-headers/locale.texi: Document the problem with locale_t.
36024
36025 2009-11-22  Bruno Haible  <bruno@clisp.org>
36026
36027         Add comments.
36028         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
36029         invocation.
36030         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36031         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36032         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36033
36034 2009-11-22  Bruno Haible  <bruno@clisp.org>
36035
36036         error: account for the possibility of freopen (stdout).
36037         * lib/error.c: Include <unistd.h>.
36038         (flush_stdout): New function, extracted from error and error_at_line.
36039         Determine stdout's fd dynamically.
36040         (error, error_at_line): Invoke flush_stdout.
36041         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
36042         * modules/error (Depends-on): Add unistd.
36043
36044 2009-11-22  Bruno Haible  <bruno@clisp.org>
36045
36046         diffseq: Add comment.
36047         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
36048
36049 2009-11-22  Jim Meyering  <meyering@redhat.com>
36050
36051         c-stack: avoid defining an unused static function
36052         * lib/c-stack.c (find_stack_direction): Do not define this function
36053         when it will not be used.
36054
36055         diffseq: avoid spurious gcc warnings
36056         * lib/diffseq.h (IF_LINT2): Define.
36057         (compareseq): Use it to initialize two members of "part".
36058         This avoids two used-uninitialized warnings.
36059
36060 2009-11-21  Jim Meyering  <meyering@redhat.com>
36061
36062         c-stack: avoid "ignoring return value of `write'" warning
36063         * lib/c-stack.c: Include "ignore-value.h".
36064         (die): Explicitly ignore each write return value.
36065         * modules/c-stack (Depends-on): Add ignore-value.
36066
36067 2009-11-21  Bruno Haible  <bruno@clisp.org>
36068
36069         diffseq: reduce scope of variable 'best'.
36070         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
36071         variable, earlier used for two different purposes.
36072
36073 2009-11-21  Jim Meyering  <meyering@redhat.com>
36074
36075         diffseq: remove useless assignment to "best"
36076         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
36077         assignment.  At that point "best" is already guaranteed to be zero.
36078
36079 2009-11-20  Eric Blake  <ebb9@byu.net>
36080
36081         build: mention ftp redirector in release announcements
36082         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
36083         values that used to come from cfg.mk; mention FTP redirect URL.
36084         * build-aux/announce-gen: Mention the mirror list.
36085         Suggested by Karl Berry.
36086
36087         nanosleep: improve port to mingw
36088         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
36089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
36090         LIB_NANOSLEEP, but only when needed.
36091         * modules/select (Link): Document LIBSOCKET.
36092         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
36093         enough.
36094
36095         nanosleep: work around cygwin bug
36096         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
36097         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
36098         bug.
36099         (getnow): Delete, not needed.
36100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
36101         LIB_CLOCK_GETTIME.
36102         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
36103         clock-time, gettime.
36104         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
36105         bug.
36106         * modules/nanosleep-tests: New test.
36107         * tests/test-nanosleep.c: New file.
36108
36109         sleep: work around cygwin bug
36110         * lib/sleep.c (rpl_sleep): Work around the bug.
36111         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
36112         (gl_PREREQ_SLEEP): Delete unused macro.
36113         * modules/sleep (Depends-on): Add verify.
36114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36115         * modules/unistd (Makefile.am): Substitute witness.
36116         * lib/unistd.in.h (sleep): Update prototype.
36117         * doc/posix-functions/sleep.texi (sleep): Document the bug.
36118         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
36119         * modules/sleep-tests (Depends-on): Check for alarm.
36120
36121 2009-11-20  Jim Meyering  <meyering@redhat.com>
36122
36123         maint.mk: improve sc_prohibit_magic_number_exit
36124         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
36125         so it does not match uses like System.exit(1).
36126         Add comments showing how to correct all offenders.
36127
36128 2009-11-19  Eric Blake  <ebb9@byu.net>
36129
36130         xalloc-die-tests: add missing library
36131         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
36132
36133         test-xvasprintf: silence compiler warnings
36134         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
36135         empty string from gcc.
36136
36137 2009-11-19  Jim Meyering  <meyering@redhat.com>
36138
36139         xfreopen: new module, from coreutils
36140         * modules/xfreopen: New module.
36141         * lib/xfreopen.c: New file.
36142         * lib/xfreopen.h: New file.
36143         * MODULES.html.sh (File stream based Input/Output"): Add it.
36144
36145 2009-11-19  Eric Blake  <ebb9@byu.net>
36146
36147         manywarnings: depend on warnings
36148         * modules/manywarnings (Depends-on): Add warnings.
36149
36150         build: avoid compiler warnings
36151         * lib/select.c (rpl_select): Delete unused variable.
36152         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
36153
36154 2009-11-18  Eric Blake  <ebb9@byu.net>
36155
36156         tests: avoid false negative with --with-packager
36157         * tests/test-version-etc.sh: Discard packager information.
36158         * tests/test-argp-version-etc-1.sh: Likewise.
36159         Reported by Mike Frysinger.
36160
36161         utimens: fix regression on Solaris
36162         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
36163         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
36164         can only change fd timestamps via futimesat.  Instead, use an
36165         additional witness macro to avoid BSD bug.
36166         Reported by Jim Meyering.
36167
36168 2009-11-17  Eric Blake  <ebb9@byu.net>
36169
36170         usleep: use it to simplify tests
36171         * modules/stat-time-tests (Depends-on): Add usleep.
36172         (configure.ac): Drop usleep check.
36173         * modules/chown-tests (Depends-on, configure.ac): Likewise.
36174         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
36175         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
36176         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
36177         * modules/openat-tests (Depends-on, configure.ac): Likewise.
36178         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
36179         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
36180         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
36181         Likewise.
36182         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
36183         * tests/test-lchown.h (nap): Likewise.
36184         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
36185         * tests/test-stat-time.c (nap): Likewise.
36186         * tests/test-utimens-common.h (nap): Update comments.
36187
36188         usleep: new module
36189         * modules/usleep: New file.
36190         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
36191         * lib/usleep.c (usleep): Likewise.
36192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36193         * modules/unistd (Makefile.am): Substitute witnesses.
36194         * lib/unistd.in.h (usleep): Add declaration.
36195         * doc/pastposix-functions/usleep.texi (usleep): Document this.
36196         * MODULES.html.sh (Date and time): Likewise.
36197         * modules/usleep-tests (Depends-on): New test.
36198         * tests/test-usleep.c: New file.
36199
36200         chown: work around OpenBSD bug
36201         * lib/chown.c (rpl_chown): Work around the bug.
36202         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
36203         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
36204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
36205         * modules/chown (Depends-on): Add stdbool.
36206         * modules/lchown (Depends-on): Likewise.
36207         * doc/posix-functions/chown.texi (chown): Document the bug.
36208         * doc/posix-functions/lchown.texi (lchown): Likewise.
36209         * tests/test-lchown.h (test_chown): Relax test.
36210
36211         mkstemp: avoid conflict with C++ keyword template
36212         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
36213         * lib/mkostemp.c (mkostemp): Likewise.
36214         * lib/mkostemps.c (mkostemps): Likewise.
36215         * lib/mkstemp.c (mkstemp): Likewise.
36216         * lib/mkstemps.c (mkstemps): Likewise.
36217
36218         xalloc-die-tests: optimize
36219         * tests/test-xalloc-die.sh: Reduce number of processes.
36220
36221 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36222
36223         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
36224         patch from ludo@gnu.org (Ludovic Courtès).
36225
36226 2009-11-17  Jim Meyering  <meyering@redhat.com>
36227
36228         version-etc: use proper license string
36229         * modules/version-etc (License): Use LGPL, not LGPLv3+.
36230         * modules/version-etc-fsf: Likewise.
36231
36232 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36233
36234         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
36235         printed to stdout.  Deal with EOL differences.
36236
36237 2009-11-17  Eric Blake  <ebb9@byu.net>
36238
36239         unsetenv: work around Solaris bug
36240         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
36241         * lib/unsetenv.c (rpl_unsetenv): Work around it.
36242         Reported by Jim Meyering.
36243
36244         vasnprintf: avoid compiler warnings
36245         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
36246         variables.
36247         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
36248
36249 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36250
36251         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
36252         settings since xalloc-die is no longer the self test,
36253         xalloc-die.sh is.
36254
36255 2009-11-17  Jim Meyering  <meyering@redhat.com>
36256
36257         test-xalloc-die.sh: make the code agree with the commit log
36258         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
36259         at the end, just in case you happen to have a test-xalloc-die
36260         program in some other PATH directory.
36261
36262         test-xalloc-die.sh: fix a portability bug
36263         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
36264         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
36265         Otherwise, argv[0] (as often seen in diagnostics) would be too
36266         system-dependent, sometimes with, and sometimes without the leading "./".
36267
36268         version-etc-fsf: relax license to LGPLv3+
36269         * modules/version-etc-fsf (License): Relax license.
36270
36271 2009-11-16  Eric Blake  <ebb9@byu.net>
36272
36273         xalloc-die-tests: avoid printing null pointer
36274         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
36275         shell script.
36276         * tests/test-xalloc-die.c (program_name): Declare.
36277         * tests/test-xalloc-die.sh (tmpfiles): New file.
36278
36279         setenv, unsetenv: work around various bugs
36280         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
36281         (setenv) [HAVE_SETENV]: Work around bugs.
36282         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
36283         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
36284         for bugs.
36285         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
36286         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
36287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
36288         * modules/stdlib (Makefile.am): Update substitutions.
36289         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
36290         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
36291         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36292         * modules/setenv-tests: New test.
36293         * modules/unsetenv-tests: Likewise.
36294         * tests/test-setenv.c: New file.
36295         * tests/test-unsetenv.c: Likewise.
36296
36297 2009-11-16  Jim Meyering  <meyering@redhat.com>
36298
36299         version-etc: relax license to LGPLv3+
36300         * modules/version-etc (License): Relax license.
36301
36302         better AC_REQUIRE expanded-before-required-warning avoidance
36303         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
36304         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
36305         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
36306         which is no longer needed.
36307
36308 2009-11-16  Eric Blake  <ebb9@byu.net>
36309
36310         test-freading: clean up temporary file
36311         * tests/test-freading.c (main): Remove file on success, and use
36312         ASSERT more liberally.
36313         Reported by Jim Meyering.
36314
36315 2009-11-16  Jim Meyering  <meyering@redhat.com>
36316
36317         avoid new AC_REQUIRE expanded-before-required warnings
36318         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
36319         merely using it.
36320         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
36321         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
36322
36323 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36324
36325         * tests/test-xalloc-die.c: New file.
36326         * modules/xalloc-die-tests: New file.
36327         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
36328         XFAIL_TESTS so it can be appended by modules.
36329
36330 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36331
36332         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
36333         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
36334
36335 2009-11-14  Eric Blake  <ebb9@byu.net>
36336
36337         fnmatch: avoid compiler warning
36338         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
36339         to silence compiler warning about mismatch signedness in ?:.
36340         Reported by Robert Millan.
36341
36342         intprops: add double-inclusion guard
36343         * lib/intprops.h: Allow idempotent includes.
36344         Suggested by Bruce Korb.
36345
36346         openat: detect Solaris fchownat bug
36347         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
36348         penalizing glibc chownat when only lchownat is broken.
36349         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
36350         trailing slash bugs.
36351         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
36352         * modules/openat-tests (Files): Include more files.
36353         (Depends-on): Add mgetgroups, sleep, stat-time.
36354         (configure.ac): Add additional checks.
36355         (Makefile.am): Build new test.
36356         * tests/test-fchownat.c: New file.
36357
36358         lchown: detect Solaris and FreeBSD bug
36359         * lib/lchown.c (rpl_lchown): Work around bug.
36360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
36361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36362         * modules/unistd (Makefile.am): Populate it.
36363         * lib/unistd.in.h (lchown): Update declaration.
36364         * doc/posix-functions/lchown.texi (lchown): Document the bug.
36365         * modules/lchown-tests: New file.
36366         * tests/test-lchown.h (test_lchown): Likewise.
36367         * tests/test-lchown.c (main): Likewise.
36368
36369         chown: detect Solaris and FreeBSD bug
36370         * lib/chown.c (rpl_chown): Work around bug.
36371         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
36372         (gl_PREREQ_CHOWN): Delete.
36373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36374         * modules/unistd (Makefile.am): Populate it.
36375         * lib/unistd.in.h (chown): Update declaration.
36376         * lib/lchown.c (chown): Update client.
36377         * modules/lchown (Depends-on): Add lstat.
36378         * doc/posix-functions/chown.texi (chown): Document the bug.
36379         * doc/posix-functions/getgroups.texi (getgroups): Document
36380         getgroups pitfall.
36381         * modules/chown-tests: New file.
36382         * tests/test-chown.h (test_chown): Likewise.
36383         * tests/test-chown.c (main): Likewise.
36384
36385 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
36386
36387         gnulib-tool: correctly detect absence of m4 directories
36388         * gnulib-tool: Avoid extra newline on data passed to wc -l.
36389
36390 2009-11-14  Jim Meyering  <meyering@redhat.com>
36391
36392         maint.mk: Prohibit inclusion of "xalloc.h" without use.
36393         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36394
36395 2009-11-14  John W. Eaton  <jwe@gnu.org>
36396
36397         strftime.h: wrap funtion declaration in extern "C" block
36398         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
36399
36400 2009-11-13  Eric Blake  <ebb9@byu.net>
36401
36402         getgroups: avoid compiler warning
36403         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
36404
36405         getgroups: work around FreeBSD bug
36406         * lib/getgroups.c (rpl_getgroups): Work around the bug.
36407         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
36408         * doc/posix-functions/getgroups.texi (getgroups): Document it.
36409         * tests/test-getgroups.c (main): Fix buffer overrun.
36410
36411         getgroups: avoid compilation failure
36412         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
36413         * modules/getgroups (Depends-on): Add stdint.
36414
36415 2009-11-13  Jim Meyering  <meyering@redhat.com>
36416
36417         test-getgroups: avoid compilation failure
36418         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
36419
36420 2009-11-13  Eric Blake  <ebb9@byu.net>
36421
36422         mgetgroups: new module, taken from coreutils
36423         * modules/mgetgroups: New file.
36424         * lib/mgetgroups.h: Likewise.
36425         * lib/mgetgroups.c (mgetgroups): Likewise.
36426         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
36427         * MODULES.html.sh (Users and groups): Mention it.
36428
36429         getgroups: don't expose GETGROUPS_T to user
36430         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
36431         an element at a time if GETGROUPS_T is wrong size.
36432         * lib/getugroups.h (getugroups): Change signature.
36433         * lib/unistd.in.h (getgroups): Likewise.
36434         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
36435         signature needs fixing.
36436         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
36437         AC_TYPE_GETGROUPS.
36438         * modules/group-member (Depends-on): Add getgroups.
36439         * lib/group-member.c (group_info, get_group_info): Use gid_t.
36440         (group_member): Rely on getgroups replacement.
36441         * lib/getugroups.c (getugroups): Use gid_t.
36442         * tests/test-getgroups.c (main): Likewise.
36443         * NEWS: Mention the signature change.
36444         * doc/posix-functions/getgroups.texi (getgroups): Mention the
36445         problem with signature.
36446         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
36447         GETGROUPS_T is still useful for setgroups.
36448
36449         getgroups, getugroups: provide stubs for mingw
36450         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
36451         * lib/getugroups.c (getugroups): Likewise.
36452         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
36453         function.  Modernize replacement scheme.
36454         (gl_PREREQ_GETGROUPS): Delete.
36455         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
36456         * modules/getgroups (configure.ac): Declare witness.
36457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36458         * modules/unistd (Depends-on): Substitute witness.
36459         * lib/unistd.in.h (getgroups): Declare replacement.
36460
36461         getgroups: avoid calling exit
36462         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
36463         drop xalloc.
36464         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
36465         dependencies.
36466         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
36467         exiting, in the rare case of malloc failure.
36468
36469         getgroups: fix logic error
36470         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
36471         has more than 20 groups.
36472         * modules/getgroups-tests: New test.
36473         * tests/test-getgroups.c: New file.
36474
36475 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36476
36477         * tests/test-base64.c: Improve.
36478
36479 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36480
36481         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
36482         Blake <ebb9@byu.net>.
36483
36484 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36485
36486         * tests/test-xvasprintf.c: Add %s%s related checks.
36487
36488 2009-11-12  Eric Blake  <ebb9@byu.net>
36489
36490         version-etc: match standards.texi style
36491         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
36492         and use <> only for URLs.
36493
36494 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
36495
36496         fts: do not fail on a submount during traversal
36497         * lib/fts.c (fts_build): Read the stat info again after opening
36498         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
36499         Original report at http://bugzilla.redhat.com/501848.
36500
36501 2009-11-12  Jim Meyering  <meyering@redhat.com>
36502
36503         bootstrap: sync from coreutils
36504         * build-aux/bootstrap (bootstrap_epilogue): New function.
36505         Use git_modules_config in one more place.  This make bootstrap's
36506         --gnulib-srcdir option more useful for testing.
36507
36508         bootstrap: generalize autoheader check
36509         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
36510         AC_CONFIG_HEADERS.
36511
36512 2009-11-11  Eric Blake  <ebb9@byu.net>
36513
36514         mkfifoat: use new modules for Solaris and BSD bugs
36515         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
36516         * lib/mkfifoat.c (mknodat): Split...
36517         * lib/mknodat.c (mknodat): ...into new file.
36518         * modules/mkfifoat (Files): Ship new file.
36519         (Depends-on): Add mkfifo, mknod.
36520         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
36521         (Depends-on): Add symlink.
36522         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
36523         redundant with test_mkfifo.h.
36524         (do_mkfifoat, do_mknodat): New helpers.
36525
36526         mknod: new module
36527         * modules/mknod: New file.
36528         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
36529         * lib/mknod.c (mknod): Likewise.
36530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36531         defaults.
36532         * modules/sys_stat (Makefile.am): Substitute them.
36533         * lib/sys_stat.in.h (mknod): Declare replacement.
36534         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36535         Document it.
36536         * doc/posix-functions/mknod.texi (mknod): Likewise.
36537         * modules/mknod-tests: New test.
36538         * tests/test-mknod.c: Likewise.
36539
36540         mkfifo: new module
36541         * modules/mkfifo: New file.
36542         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
36543         * lib/mkfifo.c (mkfifo): Likewise.
36544         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36545         defaults.
36546         * modules/sys_stat (Makefile.am): Substitute them.
36547         * lib/sys_stat.in.h (mkfifo): Declare replacement.
36548         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36549         Document it.
36550         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
36551         * modules/mkfifo-tests: New test.
36552         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
36553         from test-mkfifoat.c.
36554         * tests/test-mkfifo.c: New file.
36555
36556         readlink: detect FreeBSD bug
36557         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
36558         slash on symlink.
36559         * doc/posix-functions/readlink.texi (readlink): Document the bug.
36560         * tests/test-readlink.h (test_readlink): Enhance test.
36561
36562         symlink: detect FreeBSD bug
36563         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
36564         slash on symlink.
36565         * doc/posix-functions/symlink.texi (symlink): Document the bug.
36566         * tests/test-symlink.h (test_symlink): Enhance test.
36567
36568 2009-11-10  Eric Blake  <ebb9@byu.net>
36569
36570         link: detect FreeBSD bug
36571         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
36572         symlink.
36573         * doc/posix-functions/link.texi (link): Document the bug.
36574         * tests/test-link.h (test_link): Enhance test.
36575         * tests/test-linkat.c (main): Update caller.
36576
36577         unlink, remove: detect FreeBSD bug
36578         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
36579         slash on symlink.
36580         * doc/posix-functions/unlink.texi (unlink): Document the bug.
36581         * doc/posix-functions/remove.texi (remove): Likewise.
36582         * tests/test-unlink.h (test_unlink): Enhance test.
36583         * tests/test-remove.c (main): Likewise.
36584
36585 2009-11-09  Eric Blake  <ebb9@byu.net>
36586
36587         rename: detect FreeBSD bug
36588         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
36589         slash on symlink.
36590         * modules/renameat-tests (Depends-on): Add filenamecat.
36591         * tests/test-rename.h (test_rename): Allow one more errno.
36592         * tests/test-renameat.c (main): Likewise.
36593         * doc/posix-functions/rename.texi (rename): Document the bug.
36594
36595         open: detect FreeBSD bug
36596         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
36597         symlink.
36598         * doc/posix-functions/open.texi (open): Document the bug.
36599         * doc/posix-functions/utimes.texi (utimes): Likewise.
36600         * tests/test-open.h (test_open): Add parameters, and test symlink
36601         handling.
36602         * tests/test-open.c (main): Adjust caller.
36603         * tests/test-fcntl-safer.c (main): Likewise.
36604         * modules/open-tests (Depends-on): Add stdbool, symlink.
36605         * modules/fcntl-safer-tests (Depends-on): Likewise.
36606         * tests/test-openat.c (main): Add test-open tests.
36607
36608         stat: detect FreeBSD bug
36609         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
36610         symlink.
36611         * doc/posix-functions/stat.texi (stat): Document the bug.
36612         * tests/test-stat.h (test_stat_func): Add argument.
36613         * tests/test-stat.c (main): Adjust caller.
36614         * tests/test-fstatat.c (main): Likewise.
36615         * modules/stat-tests (Depends-on): Add stdbool, symlink.
36616         Reported by Jim Meyering.
36617
36618 2009-11-09  James Youngman  <jay@gnu.org>
36619
36620         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
36621         * lib/strftime.c: Correct placement of #include "ignore-value.h".
36622
36623 2009-11-08  Jim Meyering  <meyering@redhat.com>
36624
36625         utimens: remove invalid futimesat call
36626         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
36627         It used the file descriptor of the target file as the DIR_FD
36628         parameter and NULL as the file name.  That caused failure with
36629         errno == EFAULT on FreeBSD-8.0-rc2
36630
36631 2009-11-07  Eric Blake  <ebb9@byu.net>
36632
36633         fflush, freadseek: use fseeko, not fseek
36634         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36635         (clear_ungetc_buffer): Avoid potential problems on large files.
36636         * lib/freadseek.c (freadseek): Likewise.
36637         * modules/freadseek (Depends-on): Add fseeko.
36638         * modules/fseek (configure.ac): Set a witness.
36639         * tests/test-fflush.c (main): Use fseeko.
36640         * tests/test-fpurge.c (fseek): Disable link warning.
36641         * tests/test-freadable.c (fseek): Likewise.
36642         * tests/test-freading.c (fseek): Likewise.
36643         * tests/test-fseeko.c (fseek): Likewise.
36644         * tests/test-ftell.c (fseek): Likewise.
36645         * tests/test-ftello.c (fseek): Likewise.
36646         * tests/test-fwritable.c (fseek): Likewise.
36647         * tests/test-fwriting.c (fseek): Likewise.
36648
36649 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36650
36651         * modules/memchr (Depends-on): Drop getpagesize dependency.
36652
36653 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36654
36655         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
36656         Reported by Ludovic Courtès.
36657         * build-aux/pmccabe2html: Improve example usage.
36658         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
36659
36660 2009-11-06  Jim Meyering  <meyering@redhat.com>
36661
36662         do-release-commit-and-tag: New module.
36663         Automate the release-commit and tag process.
36664         * build-aux/do-release-commit-and-tag: New script, from coreutils.
36665         * modules/do-release-commit-and-tag: New file.
36666         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36667
36668 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36669
36670         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
36671         because test-select.c uses inet_pton.
36672
36673 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36674
36675         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
36676         GETADDRINFO_LIB.  Bump serial number.
36677         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
36678         Suggested by Eric Blake <ebb9@byu.net>.
36679
36680 2009-11-05  Eric Blake  <ebb9@byu.net>
36681
36682         strtod: detect darwin bug
36683         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
36684         Reported by Leo Davis.
36685
36686         freopen-safer: new module
36687         * modules/freopen-safer: New module.
36688         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
36689         * lib/freopen-safer.c (freopen_safer): New file.
36690         * lib/stdio-safer.h (freopen_safer): New declaration.
36691         * lib/stdio--.h (freopen): New override.
36692         * MODULES.html.sh (File stream based Input/Output): Mention it.
36693         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
36694         freopen-safer module.
36695         * doc/posix-functions/stderr.texi (stderr): Likewise.
36696         * doc/posix-functions/stdin.texi (stdin): Likewise.
36697         * doc/posix-functions/stdout.texi (stdout): Likewise.
36698         * modules/freopen-safer-tests: New test.
36699         * tests/test-reopen-safer.c: New file.
36700
36701 2009-11-05  Jim Meyering  <meyering@redhat.com>
36702
36703         maint.mk: Prohibit inclusion of "close-stream.h" without use.
36704         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36705
36706 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36707
36708         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
36709
36710 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36711
36712         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
36713
36714 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36715
36716         Fix link error.
36717         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36718         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36719
36720 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36721
36722         * tests/test-func.c: Also test value of __func__.
36723
36724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36725
36726         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
36727         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
36728
36729 2009-11-05  Bruno Haible  <bruno@clisp.org>
36730
36731         Fix link error.
36732         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36733         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36734         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
36735
36736 2009-11-05  Bruno Haible  <bruno@clisp.org>
36737
36738         Tests for module 'inet_pton'.
36739         * modules/inet_pton-tests: New file.
36740         * tests/test-inet_pton.c: New file.
36741
36742 2009-11-05  Bruno Haible  <bruno@clisp.org>
36743
36744         Tests for module 'inet_ntop'.
36745         * modules/inet_ntop-tests: New file.
36746         * tests/test-inet_ntop.c: New file.
36747
36748 2009-11-04  Eric Blake  <ebb9@byu.net>
36749
36750         stdlib-safer: wrap all mkstemp variants
36751         * modules/mkostemp (configure.ac): Set witness.
36752         * modules/mkostemps (configure.ac): Likewise.
36753         * modules/mkstemps (configure.ac): Likewise.
36754         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
36755         (mkstemps_safer): Wrap more functions.
36756         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
36757         wrapping.
36758         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
36759         (mkstemps_safer): Implement the wrappers.
36760
36761         mkstemps, mkostemps: new modules
36762         * modules/mkostemps: New module.
36763         * modules/mkstemps: Likewise.
36764         * lib/mkostemps.c (mkostemps): New file.
36765         * lib/mkstemps.c (mkstemps): Likewise.
36766         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
36767         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
36768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
36769         * modules/stdlib (Makefile.am): Substitute them.
36770         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
36771         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
36772         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
36773         * doc/gnulib.texi (Glibc stdlib.h): Include them.
36774         * MODULES.html.sh (File system functions): Mention them.
36775
36776         tempname: resync from glibc
36777         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
36778         same values for __GT_FILE as glibc.  Abort even when assertions
36779         are disabled.
36780         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
36781         match its value otherwise.  Allow idempotent inclusion.
36782         * lib/mkdtemp.c (mkdtemp): Adjust caller.
36783         * lib/mkostemp.c (mkostemp): Likewise.
36784         * lib/mkstemp.c (mkstemp): Likewise.
36785         * lib/tmpfile.c (tmpfile): Likewise.
36786         * NEWS: Document this.
36787
36788         utimens: fix use of futimens on older Linux
36789         * lib/utimens.c (fdutimens): Use updated, rather than original,
36790         timespec to avoid bug in older Linux kernel.
36791         Reported by Simon Josefsson.
36792
36793 2009-11-04  Bruno Haible  <bruno@clisp.org>
36794
36795         Make num_processors more flexible and consistent.
36796         * lib/nproc.h (enum nproc_query): New type.
36797         (num_processors): Add a 'query' argument.
36798         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
36799         (num_processors): Add a 'query' argument. Test the value of the
36800         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
36801         mingw, count the number of CPUs available for the current process.
36802         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
36803         Check for sched_getaffinity and sched_getaffinity_np.
36804         * modules/nproc (Depends-on): Add c-ctype, extensions.
36805         * NEWS: Mention the change.
36806
36807 2009-11-03  Bruno Haible  <bruno@clisp.org>
36808
36809         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36810
36811 2009-11-03  Jim Meyering  <meyering@redhat.com>
36812
36813         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36814         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36815         if it is defined.
36816
36817 2009-11-02  Eric Blake  <ebb9@byu.net>
36818
36819         mktime, timegm: share common declaration
36820         * lib/mktime-internal.h: New file.
36821         * lib/mktime.c: Use it rather than open-coding a declaration.
36822         * lib/timegm.c: Likewise.
36823         * modules/mktime (Files): Ship it.
36824         * modules/timegm (Files): Likewise.
36825         Suggested by Bruno Haible.
36826
36827         test-update-copyright: update test to match script changes
36828         * tests/test-update-copyright.sh: Avoid hard-coding perl
36829         location.  Don't update *.bak created by earlier runs.
36830
36831 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36832             Simon Josefsson  <simon@josefsson.org>
36833             Bruno Haible  <bruno@clisp.org>
36834
36835         Fix link error on Solaris 8.
36836         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36837         also in libnsl. Define also INET_PTON_LIB.
36838         * modules/inet_pton (Link): New section.
36839
36840 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36841             Bruno Haible  <bruno@clisp.org>
36842
36843         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36844         * modules/inet_ntop (Link): New section.
36845         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36846
36847 2009-11-02  Eric Blake  <ebb9@byu.net>
36848
36849         maint: avoid compiler warnings in m4 macros
36850         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36851         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36852
36853 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36854
36855         * m4/pmccabe2html.m4: Remove file.
36856         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36857         function.  Change maintainer.
36858         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36859         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36860         Courtès).
36861
36862 2009-10-31  Eric Blake  <ebb9@byu.net>
36863
36864         fseeko: fix m4 regression
36865         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36866         regression from 2009-10-27.
36867         Reported by Ralf Wildenhues.
36868
36869 2009-10-31  Jim Meyering  <meyering@redhat.com>
36870
36871         inttostr: aesthetics and improved (compile-time) safety
36872         Define inttype_is_signed rather than inttype_is_unsigned,
36873         since the sole use is via "#if inttype_is_signed".
36874         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36875         inttype_is_unsigned.
36876         * lib/offtostr.c (inttype_is_signed): Likewise.
36877         * lib/uinttostr.c (inttype_is_signed): Likewise.
36878         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36879         * lib/inttostr.c (inttostr): Use verify to cross-check the
36880         inttype_is_signed value and the signedness of the actual type.
36881         * modules/inttostr (Depends-on): Add verify.
36882
36883 2009-10-30  Eric Blake  <ebb9@byu.net>
36884
36885         build: avoid compiler warnings
36886         * lib/fchmodat.c (lchmod): Mark unused variables.
36887         * lib/getopt.c (_getopt_initialize): Likewise.
36888         * lib/mktime.c (__mktime_internal): Provide prototype.
36889         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36890         older gcc that do not understand #pragma GCC diagnostic.
36891         * lib/uinttostr.c (inttype_is_unsigned): Define.
36892         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36893
36894 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36895
36896         stat: fix compilation on AIX
36897         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36898         only see struct stat64.
36899
36900 2009-10-30  Eric Blake  <ebb9@byu.net>
36901
36902         exclude: make more robust
36903         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36904         rather than masking a coding bug.
36905         Suggested by Bruno Haible.
36906
36907 2009-10-30  Jim Meyering  <meyering@redhat.com>
36908
36909         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36910         Rather than putting #!/usr/bin/perl on the first line,
36911         start with a variant of what's recommended by "man perlrun" that
36912         invokes the first "perl" program from your shell's search path.
36913         * build-aux/gitlog-to-changelog: Replace #!... as above.
36914         Add a "Local Variables" perl mode setting.
36915         Prompted by a patch from Ludovic Courtès.
36916         Improved by Eric Blake.
36917         * build-aux/useless-if-before-free: Likewise.
36918         * build-aux/announce-gen: Likewise.
36919         * build-aux/update-copyright: Likewise.
36920
36921 2009-10-29  Eric Blake  <ebb9@byu.net>
36922
36923         filenamecat-lgpl: adjust clients
36924         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36925         filenamecat.
36926         * modules/renameat (Depends-on): Likewise.
36927
36928         filenamecat: split into filenamecat-lgpl
36929         * modules/filenamecat-lgpl: New module.
36930         * modules/filenamecat (Files): Move library-safe files into
36931         filenamecat-lgpl.
36932         (Depends-on): Add filenamecat-lgpl.
36933         (configure.ac): Declare witness.
36934         * lib/filenamecat.h (file_name_concat): Only declare when using
36935         GPL module.
36936         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36937         Move...
36938         * lib/filenamecat-lgpl.c: ...into new file.
36939         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36940         (gl_FILE_NAME_CONCAT): Use it.
36941         * MODULES.html.sh (File system functions): Mention new module.
36942
36943         argp: avoid memory leak
36944         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36945         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36946         base_name, since the latter malloc()s and can call exit().
36947         Leak introduced 2006-07-03.
36948
36949         dirname-lgpl: adjust clients that don't need full dirname
36950         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36951         * modules/filenamecat (Depends-on): Likewise.
36952         * modules/linkat (Depends-on): Likewise.
36953         * modules/mkancesdirs (Depends-on): Likewise.
36954         * modules/mkdir (Depends-on): Likewise.
36955         * modules/openat (Depends-on): Likewise.
36956         * modules/savewd (Depends-on): Likewise.
36957         * modules/rename (Depends-on): Likewise.
36958         (License): Relax license.
36959         * modules/mkdir-tests (Depends-on): Drop progname.
36960         (Makefile.am): Delete unneeded LDADD.
36961         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36962
36963         dirname: split into dirname-lgpl
36964         * modules/dirname-lgpl: New module.
36965         * modules/dirname (Files): Move library-safe files into
36966         dirname-lgpl.
36967         (Depends-on): Add dirname-lgpl.
36968         (configure.ac): Declare witness.
36969         * modules/double-slash-root (License): Relax license.
36970         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36971         module.
36972         * lib/dirname.c (dir_len, mdir_name): Move...
36973         * lib/dirname-lgpl.c: ...into new file.
36974         * lib/basename.c (last_component, base_len): Move...
36975         * lib/basename-lgpl.c: ...into new file.
36976         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36977         (gl_DIRNAME): Use it.
36978         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36979         Mention new module.
36980         * modules/dirname-tests (Depends-on): Add progname.
36981         * tests/test-dirname.c (program_name): Delete.
36982
36983         mkdir: make safe for libraries
36984         * modules/mkdir (Depends-on): Drop xalloc.
36985         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36986         exit.
36987
36988         tests: avoid some compiler warnings
36989         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36990         literals.
36991         * tests/test-memchr.c (main): Avoid type mismatch.
36992         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36993         * tests/test-base64.c (main): Likewise.
36994         * tests/test-getdelim.c (main): Likewise.
36995         * tests/test-gethostname.c (main): Likewise.
36996         * tests/test-getline.c (main): Likewise.
36997         * tests/test-netinet_in.c (main): Likewise.
36998         * tests/test-select.c (open_server_socket, main): Likewise.
36999         * tests/test-select-stdin.c (main): Likewise.
37000         * tests/test-sockets.c (main): Likewise.
37001         * tests/test-strsignal.c (main): Likewise.
37002         * tests/test-sys_select.c (main): Likewise.
37003         * tests/test-sys_socket.c (main): Likewise.
37004         * tests/test-u64.c (main): Likewise.
37005         * tests/test-xfprintf-posix.c (main): Likewise.
37006         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
37007
37008         sockets: avoid compiler warning
37009         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
37010
37011         maint: detect usage(1) and other suspicious exits
37012         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
37013
37014 2009-10-29  Jim Meyering  <meyering@redhat.com>
37015
37016         timespec: long-to-int truncation could make timespec_cmp malfunction
37017         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
37018         a multiple of 2^32 nanoseconds as no difference.
37019
37020 2009-10-28  Jim Meyering  <meyering@redhat.com>
37021
37022         fprintftime: wrap macro code argument in "do {...} while(0)"
37023         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
37024         cpy macro must be a statement that can be followed by a semicolon.
37025         Now that the else clause contains a comment and is hence longer
37026         than one line, I require curly braces.  That in turn requires
37027         that we wrap this code block in the standard do...while(0).
37028
37029         fprintftime: remove stray semicolon from previous change
37030         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
37031
37032         fprintftime: avoid a warning about ignored fwrite return value
37033         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
37034         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
37035         that is unsafe.
37036         * modules/fprintftime (Depends-on): Add ignore-value.
37037
37038         exclude: avoid an unwarranted warning
37039         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
37040
37041 2009-10-27  Eric Blake  <ebb9@byu.net>
37042
37043         fseek: avoid compilation failure when fflush is replaced
37044         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
37045         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
37046         module is in use.
37047         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
37048         module is not in use; since REPLACE_FSEEK worked otherwise.
37049         (GNULIB_FTELLO): Likewise for ftell.
37050         Reported by Ian Beckwith and others.
37051
37052 2009-10-27  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
37055         Reported by Jim Meyering.
37056
37057 2009-10-27  Jim Meyering  <jim@meyering.net>
37058             Bruno Haible  <bruno@clisp.org>
37059
37060         Avoid warning despite dropping the return value of fwrite.
37061         * lib/unicodeio.c: Include ignore-value.h.
37062         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37063         * modules/unicodeio (Depends-on): Add ignore-value.
37064
37065 2009-10-26  Eric Blake  <ebb9@byu.net>
37066
37067         areadlinkat: fix fallback path
37068         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
37069         pointer and zero.
37070
37071 2009-10-22  Pádraig Brady  <P@draigBrady.com>
37072
37073         Use a better IO block size for modern systems
37074         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
37075         * lib/md2.c: Likewise.
37076         * lib/md4.c: Likewise.
37077         * lib/md5.c: Likewise.
37078         * lib/sha1.c: Likewise.
37079         * lib/sha256.c: Likewise.
37080         * lib/sha512.c: Likewise.
37081
37082 2009-10-22  Eric Blake  <ebb9@byu.net>
37083
37084         tests: avoid several compiler warnings
37085         * tests/test-getcwd.c (main): Avoid buffer underflow.
37086         * tests/test-getdate.c (main): String literals are not safe with
37087         putenv, so use setenv.  Declare unused argument.
37088         * modules/getdate-tests (Depends-on): Add setenv.
37089         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
37090         problems with string literals in char *.
37091         * tests/test-hash.c (main): Avoid shadowing declaration.
37092         (insert_new): Treat string literals as char const *.
37093         * tests/test-getopt.h (test_getopt): Likewise.
37094         (getopt_loop): Alter types to minimize casting elsewhere.
37095         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
37096         (test_getopt_long_posix): Likewise.
37097         (do_getopt_long): Add wrapper to minimize casting.
37098         * tests/test-atexit.c (clear_temp_file): Use void.
37099         * tests/test-areadlink-with-size.c (main): Declare unused
37100         arguments.
37101         * tests/test-areadlink.c (main): Likewise.
37102         * tests/test-areadlinkat-with-size.c (main): Likewise.
37103         * tests/test-areadlinkat.c (main): Likewise.
37104         * tests/test-canonicalize-lgpl.c (main): Likewise.
37105         * tests/test-canonicalize.c (main): Likewise.
37106         * tests/test-dirent-safer.c (main): Likewise.
37107         * tests/test-dirname.c (main): Likewise.
37108         * tests/test-dup2.c (main): Likewise.
37109         * tests/test-fchdir.c (main): Likewise.
37110         * tests/test-fcntl-h.c (main): Likewise.
37111         * tests/test-fcntl-safer.c (main): Likewise.
37112         * tests/test-fdopendir.c (main): Likewise.
37113         * tests/test-fdutimensat.c (main): Likewise.
37114         * tests/test-fflush.c (main): Likewise.
37115         * tests/test-filenamecat.c (main): Likewise.
37116         * tests/test-filevercmp.c (main): Likewise.
37117         * tests/test-fopen-safer.c (main): Likewise.
37118         * tests/test-fopen.c (main): Likewise.
37119         * tests/test-fpending.c (main): Likewise.
37120         * tests/test-fpurge.c (main): Likewise.
37121         * tests/test-freading.c (main): Likewise.
37122         * tests/test-fstatat.c (main): Likewise.
37123         * tests/test-fsync.c (main): Likewise.
37124         * tests/test-futimens.c (main): Likewise.
37125         * tests/test-getndelim2.c (main): Likewise.
37126         * tests/test-gettimeofday.c (main): Likewise.
37127         * tests/test-getopt.c (main): Likewise.
37128         * tests/test-i-ring.c (main): Likewise.
37129         * tests/test-inttypes.c (main): Likewise.
37130         * tests/test-link.c (main): Likewise.
37131         * tests/test-lstat.c (main): Likewise.
37132         * tests/test-math.c (main): Likewise.
37133         * tests/test-md5.c (main): Likewise.
37134         * tests/test-memchr2.c (main): Likewise.
37135         * tests/test-memrchr.c (main): Likewise.
37136         * tests/test-mkdir.c (main): Likewise.
37137         * tests/test-mkdirat.c (main): Likewise.
37138         * tests/test-mkfifoat.c (main): Likewise.
37139         * tests/test-open.c (main): Likewise.
37140         * tests/test-openat-safer.c (main): Likewise.
37141         * tests/test-openat.c (main): Likewise.
37142         * tests/test-quotearg.c (main): Likewise.
37143         * tests/test-rawmemchr.c (main): Likewise.
37144         * tests/test-readlink.c (main): Likewise.
37145         * tests/test-remove.c (main): Likewise.
37146         * tests/test-rename.c (main): Likewise.
37147         * tests/test-renameat.c (main): Likewise.
37148         * tests/test-rmdir.c (main): Likewise.
37149         * tests/test-sha1.c (main): Likewise.
37150         * tests/test-signal.c (main): Likewise.
37151         * tests/test-sigaction.c (main): Likewise.
37152         * tests/test-stat.c (main): Likewise.
37153         * tests/test-stat-time.c (main): Likewise.
37154         * tests/test-stddef.c (main): Likewise.
37155         * tests/test-stdint.c (main): Likewise.
37156         * tests/test-stdio.c (main): Likewise.
37157         * tests/test-stdlib.c (main): Likewise.
37158         * tests/test-strchrnul.c (main): Likewise.
37159         * tests/test-strerror.c (main): Likewise.
37160         * tests/test-string.c (main): Likewise.
37161         * tests/test-strtod.c (main): Likewise.
37162         * tests/test-strverscmp.c (main): Likewise.
37163         * tests/test-symlink.c (main): Likewise.
37164         * tests/test-symlinkat.c (main): Likewise.
37165         * tests/test-sys_stat.c (main): Likewise.
37166         * tests/test-sys_time.c (main): Likewise.
37167         * tests/test-time.c (main): Likewise.
37168         * tests/test-unistd.c (main): Likewise.
37169         * tests/test-unlink.c (main): Likewise.
37170         * tests/test-unlinkat.c (main): Likewise.
37171         * tests/test-utimens.c (main): Likewise.
37172         * tests/test-utimensat.c (main): Likewise.
37173         * tests/test-version-etc.c (main): Likewise.
37174         * tests/test-wchar.c (main): Likewise.
37175         * tests/test-wctype.c (main): Likewise.
37176         * tests/test-xprintf-posix.c (main): Likewise.
37177         * tests/test-posixtm.c (main): Likewise.
37178         (STREQ): Delete unused macro.
37179         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
37180         shadowed variables.
37181         * tests/test-memchr.c (main): Likewise.
37182
37183 2009-10-21  Eric Blake  <ebb9@byu.net>
37184
37185         areadlinkat: avoid failure on older glibc
37186         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
37187         rather than mis-comparing 0 against FUNC_RESULT of char*.
37188
37189 2009-10-21  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/stpncpy (License): Relicense under LGPLv2+.
37192         Reported by David Lutterkort <lutter@redhat.com>.
37193
37194 2009-10-20  Eric Blake  <ebb9@byu.net>
37195
37196         utimensat: work around Solaris 9 bug
37197         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
37198         has trailing slash bugs.
37199         * tests/test-lutimens.h (test_lutimens): Enhance test.
37200         * tests/test-utimens.h (test_utimens): Likewise.
37201         * doc/posix-functions/utime.texi (utime): Enhance documentation.
37202         * doc/posix-functions/utimes.texi (utimes): Likewise.
37203         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37204         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
37205         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
37206         * doc/posix-functions/futimens.texi (futimens): Likewise.
37207
37208         fdutimensat: new module
37209         * modules/fdutimensat: New file.
37210         * lib/fdutimensat.c (fdutimensat): Likewise.
37211         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
37212         * MODULES.html.sh (File system functions): Mention module.
37213         * modules/fdutimensat-tests: New test.
37214         * tests/test-fdutimensat.c: Likewise.
37215
37216         doc: regenerate INSTALL
37217         * doc/INSTALL: Reflect recent autoconf update.
37218         * doc/INSTALL.ISO: Likewise.
37219         * doc/INSTALL.UTF-8: Likewise.
37220
37221 2009-10-20  Pádraig Brady  <P@draigBrady.com>
37222
37223         acl: warn if ACL support is not detected
37224         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
37225
37226 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
37227
37228         * lib/nproc.h: Add extern "C" block for C++.
37229
37230 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
37231             Bruno Haible  <bruno@clisp.org>
37232
37233         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
37234         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
37235         * doc/posix-functions/isalpha.texi: Likewise.
37236         * doc/posix-functions/isblank.texi: Likewise.
37237         * doc/posix-functions/iscntrl.texi: Likewise.
37238         * doc/posix-functions/isdigit.texi: Likewise.
37239         * doc/posix-functions/isgraph.texi: Likewise.
37240         * doc/posix-functions/islower.texi: Likewise.
37241         * doc/posix-functions/isprint.texi: Likewise.
37242         * doc/posix-functions/ispunct.texi: Likewise.
37243         * doc/posix-functions/isspace.texi: Likewise.
37244         * doc/posix-functions/isupper.texi: Likewise.
37245         * doc/posix-functions/isxdigit.texi: Likewise.
37246
37247 2009-10-18  Bruno Haible  <bruno@clisp.org>
37248
37249         Tests for module 'isblank'.
37250         * modules/isblank-tests: New file.
37251         * tests/test-isblank.c: New file.
37252
37253         New module 'isblank'.
37254         * lib/isblank.c: New file.
37255         * m4/isblank.m4: New file.
37256         * modules/isblank: New file.
37257         * doc/posix-functions/isblank.texi: Mention the new module.
37258
37259 2009-10-18  Bruno Haible  <bruno@clisp.org>
37260
37261         New module 'ctype'.
37262         * lib/ctype.in.h: New file.
37263         * m4/ctype.m4: New file.
37264         * modules/ctype: New file.
37265         * doc/posix-headers/ctype.texi: Mention the new module.
37266
37267 2009-10-18  Jim Meyering  <meyering@redhat.com>
37268
37269         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
37270         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
37271         right after its initialization, rather than farther down.
37272         Keeping these in close proximity makes it easier to ensure
37273         that each such variable is initialized.  E.g.,
37274
37275             LIB_CLOCK_GETTIME=
37276             AC_SUBST([LIB_CLOCK_GETTIME])
37277
37278         This change also increments these serial numbers.
37279         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
37280         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37282
37283 2009-10-18  Bruno Haible  <bruno@clisp.org>
37284
37285         Don't let environment variables perturb build.
37286         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
37287         (gl_PREREQ_GETHRXTIME): ... not here.
37288
37289 2009-10-18  Bruno Haible  <bruno@clisp.org>
37290
37291         Avoid symlink attack in localcharset module.
37292         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
37293         (O_NOFOLLOW): Define fallback.
37294         (get_charset_aliases): Don't open the file if it is a symbolic link.
37295         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
37296         gl_FCNTL_H.
37297         (gl_FCNTL_H): Require it.
37298         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
37299         * modules/localcharset (Files): Add m4/fcntl_h.m4.
37300         Reported by Fergal Glynn <fglynn@veracode.com>.
37301
37302 2009-10-18  Bruno Haible  <bruno@clisp.org>
37303
37304         Implement nproc for mingw.
37305         * lib/nproc.c: Include <windows.h>
37306         (num_processors): On native Windows platforms, try GetSystemInfo.
37307
37308 2009-10-18  Bruno Haible  <bruno@clisp.org>
37309
37310         Implement nproc for IRIX.
37311         * lib/nproc.c: Include <sys/sysmp.h>.
37312         (num_processors): On IRIX systems, try sysmp.
37313         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
37314
37315 2009-10-18  Bruno Haible  <bruno@clisp.org>
37316
37317         Implement nproc for HP-UX.
37318         * lib/nproc.c: Include <sys/pstat.h>
37319         (num_processors): On HP-UX systems, try pstat_getdynamic.
37320         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
37321         pstat_getdynamic.
37322
37323 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
37324             Bruno Haible  <bruno@clisp.org>
37325
37326         Implement nproc for NetBSD, OpenBSD.
37327         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
37328         (ARRAY_SIZE): New macro.
37329         (num_processors): On BSD systems, try sysctl of HW_NCPU.
37330         * m4/nproc.m4: New file.
37331         * modules/nproc (Files): Add m4/nproc.m4.
37332         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
37333         (Makefile.am): Instead, augment lib_SOURCES.
37334
37335 2009-10-18  Bruno Haible  <bruno@clisp.org>
37336
37337         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
37338         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
37339         sys/param.h.
37340
37341 2009-10-16  Eric Blake  <ebb9@byu.net>
37342
37343         utimensat: new module
37344         * modules/utimensat: New file.
37345         * lib/utimensat.c (utimensat): Likewise.
37346         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37347         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
37348         so we can work around Linux bugs.
37349         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37350         * modules/sys_stat (Makefile.am): Substitute them.
37351         * lib/sys_stat.in.h (utimensat): Declare it.
37352         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37353         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37354         * modules/utimensat-tests: New test.
37355         * tests/test-utimensat.c: Likewise.
37356
37357         utimens: let lutimens work on non-symlinks
37358         * lib/utimens.c (lutimens): Fall back to utimens rather than
37359         failing with ENOSYS, when file is not a symlink.
37360         (utimens): Reduce redirection.
37361         * tests/test-lutimens.h (test_lutimens): Update test to cover
37362         non-symlinks.
37363         * tests/test-utimens.h (test_utimens): Update test to cover
37364         symlinks.
37365         * tests/test-utimens.c (main): Update caller.
37366
37367         utimens: cache whether utimensat syscall works
37368         * lib/utimens.c (utimensat_works_really): New cache variable.
37369         (fdutimens, lutimens): Use it to avoid failing syscall.
37370
37371         test-stat-time, test-utimens: improve portability
37372         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
37373         ext4 on alpha, and for cygwin.
37374         * tests/test-utimens-common.h: New file.
37375         (nap): Factor delays into single function.
37376         * tests/test-lutimens.h (test_lutimens): Use new header.
37377         * tests/test-futimens.h (test_futimens): Likewise.
37378         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
37379         timestamps to occur from same machine, as was done previously for
37380         test_utimens.
37381         * modules/utimens-tests (Files): Ship new file.
37382         * modules/futimens-tests (Files): Likewise.
37383         Reported in part by Jim Meyering.
37384
37385         sys_stat: sort replacement declarations
37386         * lib/sys_stat.in.h: Sort declarations.
37387         * lib/futimens.c (futimens): Fix typo.
37388
37389 2009-10-15  Jim Meyering  <meyering@redhat.com>
37390
37391         don't let environment settings perturb build
37392         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
37393         could cause a configure-time and/or build-time malfunction.
37394         Typically, a configure-time function-in-library test is performed
37395         via code like this:
37396
37397           LIB_VAR=
37398           AC_SUBST([LIB_VAR])
37399           prefix_saved_LIBS=$LIBS
37400             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
37401                        [test "$ac_cv_search_FUNC" = "none required" ||
37402                         LIB_VAR=$ac_cv_search_FUNC])
37403           LIBS=$prefix_saved_LIBS
37404
37405         However, in each of the files affected by this change, the LIB_VAR=
37406         initialization was omitted.  Thus, when set in the environment, its
37407         value would propagate into generated Makefiles when FUNC is not found
37408         in LIB_NAME.
37409         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
37410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37412
37413 2009-10-14  Eric Blake  <ebb9@byu.net>
37414
37415         fchdir: avoid infinite recursion in mingw
37416         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
37417         recursing.
37418
37419         test-stat-time: port to mingw
37420         * tests/test-stat-time.c (force_unlink): Return a value.
37421         (test_ctime) [W32]: Fix compilation error.
37422         (nap): Don't call usleep with too large an argument.  Use
37423         force_unlink.
37424         * doc/pastposix-functions/usleep.texi (usleep): Document the
37425         portability issue.
37426
37427 2009-10-13  Jim Meyering  <meyering@redhat.com>
37428
37429         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
37430         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
37431         * modules/pipe-filter-ii: Likewise.
37432         * modules/sys_socket-tests: Likewise.
37433         * modules/tsearch-tests: Likewise.
37434         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
37435         (check): Depend on it.
37436
37437 2009-10-12  Eric Blake  <ebb9@byu.net>
37438
37439         utimens-tests: port to NFS file systems
37440         * tests/test-utimens.h (test_utimens): Refactor utimecmp
37441         comparisons to avoid spurious failures from timestamp drift
37442         between NFS machines.
37443
37444 2009-10-12  Eric Blake  <ebb9@byu.net>
37445
37446         stat-time-tests: minor cleanups
37447         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
37448         * tests/test-stat-time.c (nap): Separate assignment from call.
37449         Suggested by Paolo Bonzini and Bruno Haible.
37450
37451         sys_stat: guarantee struct timespec
37452         * lib/sys_stat.in.h (includes): Always include <time.h>
37453         * modules/sys_stat (Depends-on): Add time.
37454         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
37455         mode_t permission values.
37456         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
37457         get at subsecond timestamps.
37458
37459 2009-10-10  Eric Blake  <ebb9@byu.net>
37460
37461         futimens: new module
37462         * modules/futimens: New file.
37463         * lib/futimens.c (futimens): Likewise.
37464         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
37465         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
37466         we can work around Linux bugs.
37467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37468         * modules/sys_stat (Makefile.am): Substitute them.
37469         * lib/sys_stat.in.h (futimens): Declare it.
37470         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37471         * doc/posix-functions/futimens.texi (futimens): Likewise.
37472         * modules/futimens-tests: New test.
37473         * tests/test-futimens.c: Likewise.
37474
37475         utimens: introduce fdutimens
37476         * lib/utimens.h (fdutimens): New prototype.
37477         * lib/utimens.c (gl_futimens): Move guts...
37478         (fdutimens): ...to new interface.
37479         * tests/test-utimens.c (do_fdutimens): Use it.
37480
37481         utimens: add UTIME_NOW and UTIME_OMIT support
37482         * lib/utimens.c (validate_timespec, update_timespec): New helper
37483         functions.
37484         (gl_futimens, lutimens): Use them.
37485         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
37486         stdbool, sys_stat.
37487         (Link): Mention resulting library dependency.
37488         * modules/utimecmp (Link): Likewise.
37489         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
37490         (Makefile.am): Pick up library dependency.
37491         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
37492         definition.
37493         * tests/test-sys_stat.c: Test the definitions.
37494         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
37495         * NEWS: Document library dependency.
37496
37497         utimecmp: support symlink timestamps
37498         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
37499         hashing when possible.  Use pathconf when available.
37500         (SYSCALL_RESOLUTION): Recognize tighter resolution.
37501         * modules/utimecmp (Depends-on): Add lstat.
37502
37503         utimens: add lutimens interface
37504         * lib/utimens.c (lutimens): New function.
37505         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
37506         * lib/utimens.h (lutimens): Declare new interface.
37507         * tests/test-utimens.c (main): Enhance test.
37508         * tests/test-lutimens.h (test_lutimens): New file.
37509         * modules/utimens-tests (Files): Distribute it.
37510         (Depends-on): Add symlink.
37511         (configure.ac): Check for usleep.
37512
37513         utimens: validate futimens usage
37514         * lib/utimens.c (gl_futimens): Require valid fd up front, using
37515         fewer syscalls on failure later on.  Avoid compiler warning on
37516         mingw.
37517         * modules/utimens (Depends-on): Add dup2.
37518
37519         utimens: add test
37520         * modules/utimens-tests: New test.
37521         * tests/test-utimens.h: New file.
37522         * tests/test-futimens.h: Likewise.
37523         * tests/test-utimens.c: Likewise.
37524
37525         doc: mention timestamp portability issues
37526         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
37527         instead.
37528         * doc/posix-functions/utime.texi (utime): Likewise.
37529         * doc/posix-functions/utimes.texi (utimes): Likewise.
37530         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
37531         instead.
37532         * doc/posix-functions/futimens.texi (futimens): Mention utimens
37533         module.
37534         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37535         Mention weakness with symlink timestamps.
37536         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
37537         to utimensat/futimens instead.
37538         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
37539
37540         test-dup2: enhance test
37541         * tests/test-dup2.c (main): Also check AT_FDCWD.
37542
37543         test-stat-time: avoid more spurious failures
37544         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
37545         xfs; and avoid race if the two timestamps cross quantization edge.
37546
37547         relocatable: prefer 'file system' over 'filesystem'
37548         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
37549         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
37550         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
37551         * doc/relocatable.texi (Enabling Relocatability): Likewise.
37552         * lib/relocatable.c (compute_curr_prefix): Likewise.
37553
37554 2009-10-10  Jim Meyering  <meyering@redhat.com>
37555
37556         stat-time-tests: check for the usleep function
37557         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
37558
37559 2009-10-10  Bruno Haible  <bruno@clisp.org>
37560
37561         * modules/xnanosleep: Put the Link section after the Include section.
37562
37563 2009-10-09  Eric Blake  <ebb9@byu.net>
37564
37565         dup2: work around FreeBSD 6.1 bug
37566         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
37567         * doc/posix-functions/dup2.texi (dup2): Document it.
37568         Reported by Nelson H. F. Beebe and Jim Meyering.
37569
37570         test-stat-time: port to buggy NFS clients
37571         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
37572         (test_ctime): Also skip test if mtime and ctime are skewed.
37573
37574         maint: prefer 'file system' over 'filesystem'
37575         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37576         * doc/posix-functions/lstat.texi (lstat): Likewise.
37577         * lib/file-has-acl.c (file_has_acl): Likewise.
37578         * lib/fwriteerror.c [TEST]: Likewise.
37579         * tests/test-areadlink.h (test_areadlink): Likewise.
37580         * tests/test-areadlinkat-with-size.c (main): Likewise.
37581         * tests/test-areadlinkat.c (main): Likewise.
37582         * tests/test-canonicalize-lgpl.c (main): Likewise.
37583         * tests/test-canonicalize.c (main): Likewise.
37584         * tests/test-fstatat.c (main): Likewise.
37585         * tests/test-linkat.c (main): Likewise.
37586         * tests/test-lstat.h (test_lstat_func): Likewise.
37587         * tests/test-mkdir.h (test_mkdir): Likewise.
37588         * tests/test-readlink.h (test_readlink): Likewise.
37589         * tests/test-remove.c (main): Likewise.
37590         * tests/test-rename.h (test_rename): Likewise.
37591         * tests/test-renameat.c (main): Likewise.
37592         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37593         * tests/test-symlink.h (test_symlink): Likewise.
37594         * tests/test-symlinkat.c (main): Likewise.
37595         * tests/test-unlink.h (test_unlink_func): Likewise.
37596         * tests/test-unlinkat.c (main): Likewise.
37597
37598         maint: make realtime library usage explicit
37599         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
37600         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
37601         * modules/settime (Link): Likewise.
37602         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
37603
37604         test-stat-time: speed up execution
37605         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
37606         warning on mingw.
37607         (nap): New helper function.
37608         (prepare_test): Use it to reduce sleep time.
37609         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
37610         execution.
37611         * modules/stat-time-tests (configure.ac): Check for usleep.
37612
37613 2009-10-09  Jim Meyering  <meyering@redhat.com>
37614
37615         selinux-h: always use getfilecon wrappers
37616         * lib/getfilecon.c: New file.
37617         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
37618         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
37619         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
37620         (fgetfilecon): Provide a stub.
37621         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
37622         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
37623         file unconditionally.
37624         When <selinux/selinux.h> is found, arrange to use wrappers.
37625         * modules/selinux-h (Files): Add getfilecon.c.
37626         (Makefile.am): Substitute include-next-related bits
37627         into the now-always-generated selinux/selinux.h file.
37628         * doc/glibc-functions/lgetfilecon.texi: New file.
37629         * doc/glibc-functions/fgetfilecon.texi: New file.
37630         * doc/glibc-functions/getfilecon.texi: New file.
37631         * doc/glibc-functions/getfilecon-desc.texi: New file.
37632         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
37633         which to pull in the new files.
37634         * MODULES.html.sh (Misc): Add selinux-h.
37635
37636 2009-10-08  Jim Meyering  <meyering@redhat.com>
37637
37638         unistd: fix comment typo
37639         * lib/unistd.in.h (euidaccess): Fix a comment typo.
37640
37641 2009-10-08  Eric Blake  <ebb9@byu.net>
37642
37643         areadlink: use SIZE_MAX consistently
37644         * modules/areadlink (Depends-on): Add stdint.
37645         * modules/areadlink-with-size (Depends-on): Likewise.
37646         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
37647         gives NULL; drop sys/types, since unistd gives size_t; and add
37648         stdint for SIZE_MAX.
37649         (SIZE_MAX): Rely on headers.
37650         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
37651         and add stdint.
37652         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
37653         (SIZE_MAX): Likewise.
37654         (INITIAL_BUF_SIZE): Turn into enum.
37655         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
37656
37657 2009-10-08  Jim Meyering  <meyering@redhat.com>
37658
37659         areadlinkat: avoid compilation failure
37660         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
37661         Fix typo in comment.
37662
37663 2009-10-07  Eric Blake  <ebb9@byu.net>
37664
37665         areadlinkat-with-size: new module
37666         * modules/areadlinkat-with-size: New module.
37667         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
37668         * lib/areadlink.h (areadlinkat): Declare it.
37669         * MODULES.html.sh (File system functions): Mention it.
37670         * modules/areadlinkat-with-size-tests: New test.
37671         * tests/test-areadlinkat-with-size.c: New file.
37672
37673         xreadlinkat: new module
37674         * modules/xreadlinkat: New module.
37675         * lib/xreadlinkat.c (xreadlinkat): New file.
37676         * lib/xreadlink.h (xreadlinkat): Declare it.
37677         * MODULES.html.sh (File system functions): Mention it.
37678
37679         areadlinkat: new module
37680         * lib/at-func.c (FUNC_FAIL): New define.
37681         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
37682         * modules/areadlinkat: New module.
37683         * lib/linkat.c (areadlinkat): Move...
37684         * lib/areadlinkat.c (areadlinkat): ...to new file.
37685         * lib/areadlink.h (areadlinkat): Declare it.
37686         * modules/linkat (Depends-on): Add areadlinkat.
37687         * MODULES.html.sh (File system functions): Mention it.
37688         * modules/areadlinkat-tests: New test.
37689         * tests/test-areadlinkat.c: New file.
37690
37691         areadlink, areadlink-with-size: add tests
37692         * modules/areadlink-tests: New test.
37693         * modules/areadlink-with-size-tests: Likewise.
37694         * tests/test-areadlink.h: New file.
37695         * tests/test-areadlink.c: Likewise.
37696         * tests/test-areadlink-with-size.c: Likewise.
37697
37698         maint: minor cleanups
37699         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
37700         _UNUSED_PARAMETER_ instead.
37701         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
37702         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
37703         * modules/linkat-tests (Files): Distribute test-link.h.
37704
37705         openat, utimens: whitespace cleanup
37706         * lib/openat.c: Prefer space throughout, rather than mix of 8
37707         spaces vs. tabs.
37708         * lib/at-func.c: Likewise.
37709         * lib/utimens.c: Likewise.
37710
37711         openat: avoid using wrong fd
37712         * lib/openat.c (openat_permissive): Reject user's fd if saving the
37713         working directory chooses same fd.
37714         * lib/at-func.c (AT_FUNC_NAME): Likewise.
37715
37716         mkdir, mkdirat: fix cygwin 1.5.x bug
37717         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
37718         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
37719         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
37720         bug.
37721         (gl_PREREQ_MKDIR): Delete unused macro.
37722         * modules/mkdir (Files): Track file rename.
37723         (configure.ac): Update macro name.
37724         * modules/openat (Depends-on): Add mkdir.
37725         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
37726
37727         mkdir, mkdirat: add tests
37728         * modules/mkdir-tests: New test.
37729         * tests/test-mkdir.h: New file.
37730         * tests/test-mkdir.c: Likewise.
37731         * tests/test-mkdirat.c: Likewise.
37732         * modules/openat-tests (Files): Add new files.
37733         (Makefile.am): Run new test.
37734
37735 2009-10-06  Eric Blake  <ebb9@byu.net>
37736
37737         doc: tweak *at function documentation
37738         * doc/posix-functions/faccessat.texi (faccessat): Mention
37739         known issue with replacement.
37740         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
37741         * doc/posix-functions/linkat.texi (linkat): Likewise.
37742         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37743         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37744         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37745         * doc/posix-functions/renameat.texi (renameat): Likewise.
37746         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37747
37748         openat: fix GNU/Hurd bug in unlinkat
37749         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
37750         broken.
37751         * doc/posix-functions/unlink.texi (unlink): Document this.
37752         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
37753
37754         fdopendir: fix GNU/Hurd bug
37755         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
37756         allowing non-directory fds.
37757         * lib/fdopendir.c (rpl_fdopendir): Work around it.
37758         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
37759         * modules/dirent (Makefile.am): Substitute it.
37760         * lib/dirent.in.h (fdopendir): Declare replacement.
37761         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
37762         * tests/test-fdopendir.c (main): Test something other than
37763         /dev/null, since on Hurd that behaves like a directory.
37764
37765         test-symlink: port to GNU/Hurd
37766         * tests/test-symlink.h (test_symlink): Relax expected errno.
37767
37768         doc: tweak more cygwin information
37769         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
37770         now compatible with glibc.
37771         * doc/posix-functions/getopt.texi (getopt): Likewise.
37772
37773         getopt-gnu: add another test
37774         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
37775         guarantee behavior relied on by m4.
37776         * tests/test-getopt.c (main): Use it.
37777         * modules/getopt-posix-tests (Depends-on): Add setenv.
37778         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
37779
37780         getopt: fix compilation on darwin
37781         * lib/getopt.in.h (includes): Leave breadcrumbs during system
37782         include.
37783         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
37784         Reported by Ludovic Courtès.
37785
37786 2009-10-06  Bruno Haible  <bruno@clisp.org>
37787
37788         * modules/size_max (Description): Discourage its use.
37789         Reported by Simon Josefsson.
37790
37791 2009-10-06  Jim Meyering  <meyering@redhat.com>
37792
37793         linkat: avoid compilation failure
37794         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
37795
37796 2009-10-05  Eric Blake  <ebb9@byu.net>
37797
37798         linkat: support Linux 2.6.17
37799         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
37800         linkat on Linux, but allow cache variable override.
37801         * lib/linkat.c (rpl_linkat): Define override.
37802         * modules/linkat (Depends-on): Add symlinkat.
37803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
37804         * modules/unistd (Makefile.am): Substitute it.
37805         * lib/unistd.in.h (linkat): Declare replacement.
37806         Reported by Pádraig Brady.
37807
37808         quotearg: port test to systems with C.UTF-8 locale
37809         * tests/test-quotearg.c (struct result_strings): Add another
37810         member, differentiating between C.ASCII and C.UTF-8 handling.
37811         (compare_strings): Add parameter.
37812         (main): Adjust all callers.
37813
37814         getopt: avoid clash with FreeBSD _getopt_internal
37815         * lib/getopt.in.h (_getopt_internal): Override the name.
37816         * lib/getopt_int.h (includes): Pick up any overrides.
37817         Reported by Reuben Thomas.
37818
37819         hash: allow C89 compilation
37820         * lib/hash.c (check_tuning): Move declaration before statement.
37821         Reported by Reuben Thomas.
37822
37823 2009-10-05  Karl Berry  <karl@gnu.org>
37824
37825         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37826
37827 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37828             Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/uname.c (uname): Use a table-driven algorithm to compute
37831         Windows NT versions.
37832
37833 2009-10-04  Bruno Haible  <bruno@clisp.org>
37834
37835         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37836         program_invocation_short_name.
37837         * modules/progname (configure.ac): Test for presence of
37838         program_invocation_short_name.
37839         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37840
37841 2009-10-04  Bruno Haible  <bruno@clisp.org>
37842
37843         * lib/progname.c (set_program_name): Fix comment.
37844         Reported by Jim Meyering.
37845
37846 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37847             Bruno Haible  <bruno@clisp.org>
37848
37849         * lib/uname.c: Include <string.h>.
37850         (uname): Do only one call to GetVersionEx in the common case.
37851
37852 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37853             Bruno Haible  <bruno@clisp.org>
37854
37855         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37856         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37857         (uname): Add support for Windows CE and various non-x86 CPU types.
37858
37859 2009-10-03  Bruno Haible  <bruno@clisp.org>
37860
37861         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37862         invocation to tests/configure.ac.
37863         Reported by Ian Beckwith <ianb@erislabs.net>.
37864
37865 2009-10-02  Eric Blake  <ebb9@byu.net>
37866
37867         fchdir: avoid compiler warning
37868         * lib/fchdir.c (canonicalize_file_name)
37869         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37870
37871         test-open: support mingw errno values
37872         * tests/test-open.h (test_open): Relax test.
37873         * tests/test-fopen.h (test_fopen): Likewise.
37874         * tests/test-openat-safer.c (main): Likewise.
37875
37876         open: fix opening directory on mingw
37877         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37878
37879         test-open: on GNU/Hurd, /dev/null is a directory
37880         * tests/test-fopen.h (main): Rename...
37881         (test_fopen): ...to this.  Use a guaranteed non-directory when
37882         confirming open behavior on trailing slash.
37883         * tests/test-openat-safer.c (main): Likewise.
37884         * tests/test-open.h (main): Likewise....
37885         (test_open): ...to this.
37886         * tests/test-fopen.c (main): Adjust caller.
37887         * tests/test-fopen-safer.c (main): Likewise.
37888         * tests/test-open.c (main): Likewise.
37889         * tests/test-fcntl-safer.c (main): Likewise.
37890         Reported by Samuel Thibault.
37891
37892         rename, fchdir: don't ignore chdir failure
37893         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37894         * lib/rename.c (rpl_rename) [W32]: Likewise.
37895         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37896         an empty destination directory if source cannot be renamed,
37897         although there is still possibility for failure.
37898         * doc/posix-functions/rename.texi (rename): Document the race.
37899         Reported by Jim Meyering.
37900
37901         maint: cleanup whitespace in recent commits
37902         * lib/rename.c (rpl_rename): Remove tabs.
37903         * tests/test-link.h (test_link): Likewise.
37904         * lib/fchdir.c (get_name): Likewise.
37905         Reported by Jim Meyering.
37906
37907 2009-10-02  Ben Pfaff  <blp@gnu.org>
37908
37909         relocatable-prog-wrapper: Add missing dependency on
37910         double-slash-root.
37911         * modules/relocatable-prog-wrapper: Add dependency.
37912         Reported by Ian Beckwith <ianb@erislabs.net>.
37913
37914 2009-10-02  Eric Blake  <ebb9@byu.net>
37915
37916         renameat: fix Solaris bugs
37917         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37918         needed fixing.
37919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37920         * modules/stdio (Makefile.am): Substitute it.
37921         * lib/stdio.in.h (renameat): Declare replacement.
37922         * lib/renameat.c (rpl_renameat): Implement fix.
37923
37924         renameat: new module
37925         * modules/renameat: New file.
37926         * lib/renameat.c (renameat): Likewise.
37927         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37929         * modules/stdio (Makefile.am): Substitute them.
37930         * lib/stdio.in.h (renameat): Declare it.
37931         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37932         * doc/posix-functions/renameat.texi (renameat): Likewise.
37933         * modules/renameat-tests: New test.
37934         * tests/test-renameat.c: Likewise.
37935
37936         rename: fix mingw bugs
37937         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37938         directory overwrite bugs.
37939
37940         rename: fix another cygwin 1.5 bug
37941         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37942         checks.
37943         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37944         unnecessary cygwin workarounds.  Also work around bug with moving
37945         full directory onto an empty one.
37946         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37947
37948         rename-dest-slash: merge into rename module
37949         * modules/rename-dest-slash (Status): Mark obsolete.
37950         (Depends-on): Add rename.
37951         (Files): Let rename do it all.
37952         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37953         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37954         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37955         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37956         * lib/rename.c (rpl_rename): Update comments.
37957
37958         rename: fix cygwin 1.5.x bugs
37959         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37960         * lib/rename.c (rpl_rename): Work around them.
37961         * modules/rename (Depends-on): Add same-inode.
37962
37963         rename: fix Solaris 10 bug
37964         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37965         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37966         was the only bug.
37967
37968         rename: fix Solaris 9 bug
37969         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37970         on non-directory.  Avoid calling exit.
37971         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37972         strdup.
37973         * modules/rename-tests (Depends-on): Drop lstat.
37974         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37975         (gl_PREREQ_RENAME): Delete unused macro.
37976
37977         rename-dest-slash: fix NetBSD bug
37978         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37979         links.
37980         * modules/rename-dest-slash (Depends-on): Add same-inode.
37981
37982         rename-tests: new test, exposes several platform bugs
37983         * modules/rename-tests: New file.
37984         * tests/test-rename.h: Likewise.
37985         * tests/test-rename.c: Likewise.
37986         * doc/posix-functions/rename.texi (rename): Improve documentation,
37987         including bugs that will eventually be fixed in gnulib.
37988
37989 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37990
37991         * lib/uname.c: Include <stdlib.h>
37992         (uname): Assume version info is available.
37993
37994 2009-10-02  Jim Meyering  <meyering@redhat.com>
37995
37996         gnu-web-doc-update: correct --help output
37997         * build-aux/gnu-web-doc-update: Make --help output relevant.
37998
37999         gnu-web-doc-update: add standard options
38000         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
38001
38002         gnu-web-doc-update: New module.
38003         Use this script to automatically update the on-line web documentation
38004         for your GNU project at http://www.gnu.org/software/$pkg/manual/
38005         * modules/gnu-web-doc-update: New file, from coreutils.
38006         * build-aux/gnu-web-doc-update: New script.
38007
38008 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
38009
38010         link: LoadLibrary is not needed.
38011         * lib/link.c: Use GetModuleHandle.
38012
38013 2009-10-01  Eric Blake  <ebb9@byu.net>
38014
38015         getopt: bump serial number
38016         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
38017         change.
38018
38019         tests: tighten link, rmdir, and remove tests
38020         * tests/test-link.h (includes): No need to use <config.h> here.
38021         Clean up if directory hard link was created, otherwise test for
38022         trailing '.'.
38023         * tests/test-linkat.c (main): Simplify.
38024         * tests/test-remove.c (main): Enhance test for trailing '.'.
38025         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38026
38027 2009-10-01  Jim Meyering  <meyering@redhat.com>
38028
38029         maint.mk: requiring "make major" was annoying, for a "minor" release.
38030         What is intended is "stable", to contrast with alpha and beta,
38031         so require "make stable", not "make major".
38032         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
38033         (get_tool_versions): Likewise.
38034         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
38035
38036 2009-09-30  Ben Pfaff  <blp@gnu.org>
38037
38038         Fix broken build of replacement for Windows tmpfile().
38039         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
38040         flags argument added along with the 'mkostemp' module.
38041
38042 2009-09-28  Bruno Haible  <bruno@clisp.org>
38043
38044         Avoid identifier clash with POSIX function 'remove' defined as a macro.
38045         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
38046         to 'remove_elt'.
38047         (gl_list_remove): Update.
38048         * lib/gl_list.c (gl_list_remove): Update.
38049         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
38050         to 'remove_elt'.
38051         (gl_oset_remove): Update.
38052         * lib/gl_list.c (gl_oset_remove): Update.
38053         Reported by Eric Blake.
38054
38055 2009-09-28  Eric Blake  <ebb9@byu.net>
38056
38057         doc: mention yet more cygwin 1.7 status
38058         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
38059         cygwin.
38060         * doc/glibc-functions/execvpe.texi (execvpe): New file.
38061         * doc/gnulib.texi (Glibc unistd.h): Mention it.
38062
38063         argp: fix test failure
38064         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
38065         that are not upper-case.  Pass correct range to tolower.
38066
38067 2009-09-27  Jim Meyering  <meyering@redhat.com>
38068
38069         test-yesno: work around sparc-dash here-document infelicity
38070         Without this change, the literal \177 byte in a here document
38071         would make dash 0.5.5.1-3 access uninitialized memory.
38072         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
38073         Instead, use a marker, "@", and filter through tr to create the desired
38074         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
38075
38076 2009-09-27  Bruno Haible  <bruno@clisp.org>
38077
38078         Disable untested support for new flavours of ACLs on AIX.
38079         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
38080         progress.
38081         * lib/set-mode-acl.c (qset_acl): Likewise.
38082
38083 2008-12-07  Bruno Haible  <bruno@clisp.org>
38084
38085         Add support for new flavours of ACLs on AIX. (Untested.)
38086         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
38087         (file_has_acl): Add support for newer AIX.
38088         * lib/set-mode-acl.c (qset_acl): Likewise.
38089         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
38090         Rainer Tammer <tammer@tammer.net>.
38091
38092 2009-09-26  Eric Blake  <ebb9@byu.net>
38093
38094         argp: fix compilation of getopt
38095         * lib/getopt.in.h (includes): Use different guard than glibc.
38096         Reported by Sergey Poznyakoff.
38097
38098         doc: mention more cygwin 1.7 status
38099         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
38100         bug.
38101         * doc/posix-functions/execl.texi (execl): Likewise.
38102         * doc/posix-functions/execle.texi (execle): Likewise.
38103         * doc/posix-functions/execlp.texi (execlp): Likewise.
38104         * doc/posix-functions/execv.texi (execv): Likewise.
38105         * doc/posix-functions/execve.texi (execve): Likewise.
38106         * doc/posix-functions/execvp.texi (execvp): Likewise.
38107         * doc/glibc-functions/canonicalize_file_name.texi
38108         (canonicalize_file_name): Cygwin 1.7 now provides this.
38109         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
38110         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
38111         on AT_SYMLINK_NOFOLLOW.
38112
38113 2009-09-24  Eric Blake  <ebb9@byu.net>
38114
38115         test-linkat: make test more robust
38116         * tests/test-linkat.c (main): Avoid collision with EEXIST.
38117
38118         getopt: fix inclusion guards for cygwin
38119         * modules/getopt-posix (Depends-on): Add include-next.
38120         (Makefile.am): Substitute more items in replacement header.
38121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
38122         <getopt.h>.
38123         * lib/getopt.in.h (includes): Use split inclusion guard, and
38124         prefer <getopt.h> over include <unistd.h> when one is present.
38125         (option): Also override name of 'struct option'.
38126
38127         same-inode: revert prior change; it is not yet ready
38128         * NEWS: Undo mention of this change.
38129         * lib/same-inode.h (same-inode.h): Undo tri-state change.
38130         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38131         * lib/cycle-check.c (cycle_check): Likewise.
38132         * lib/same.c (same_name): Likewise.
38133         * lib/at-func2.c (at_func2): Likewise.
38134
38135 2009-09-23  Eric Blake  <ebb9@byu.net>
38136
38137         linkat: new module
38138         * modules/linkat: New file.
38139         * lib/at-func2.c (at_func2): Likewise.
38140         * lib/linkat.c (linkat): Likewise.
38141         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
38142         * lib/openat-priv.h (at_func2): Add declaration.
38143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38144         * modules/unistd (Makefile.am): Substitute them.
38145         * lib/unistd.in.h (linkat): Declare it.
38146         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38147         * doc/posix-functions/linkat.texi (linkat): Likewise.
38148         * doc/posix-functions/link.texi (link): Tweak wording.
38149         * tests/test-link.c (main): Move guts...
38150         * tests/test-link.h (test_link): ...into new file.
38151         * modules/linkat-tests: New test.
38152         * tests/test-linkat.c: Likewise.
38153         * modules/link-tests (Files): Ship new file.
38154         (Depends-on): Add stdbool.
38155
38156         dirname: add library-safe mdir_name
38157         * lib/dirname.h (mdir_name): New prototype.
38158         * lib/dirname.c (dir_name): Move guts...
38159         (mdir_name): ...to new function that avoids xalloc_die.
38160
38161         fchdir: another mingw fix
38162         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
38163         * lib/fchdir.c (get_name): New helper method; skips canonicalize
38164         on mingw (where it has not yet been ported), and make it optional
38165         elsewhere.
38166         (_gl_register_fd): Use it.
38167
38168         same-inode: make SAME_INODE tri-state, to port to mingw
38169         * NEWS: Mention this change.
38170         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
38171         st_ino always being 0.
38172         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38173         * lib/cycle-check.c (cycle_check): Likewise.
38174         * lib/same.c (same_name): Likewise.
38175
38176         lstat: avoid mingw compilation error
38177         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
38178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
38179         lstat ourselves.
38180         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
38181         was adequate.
38182         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
38183         the checks for lstat.
38184         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
38185
38186         link: fix test failure on Solaris 9
38187         * lib/link.c (rpl_link): Don't assume link will catch bogus
38188         trailing slash on source.
38189
38190         test-symlinkat: enhance test
38191         * tests/test-readlink.c (main): Move guts...
38192         * tests/test-readlink.h (test_readlink): ...into new file.
38193         * tests/test-symlink.c (main): Move guts...
38194         * tests/test-symlink.h (test_symlink): ...into new file.
38195         * tests/test-symlinkat.c (main): Use new files for further
38196         coverage.
38197         (do_symlink, do_readlink): New helper functions.
38198         * modules/symlink-tests (Files): Ship new file.
38199         (Depends-on): Add stdbool.
38200         * modules/readlink-tests (Files): Ship new file.
38201         (Depends-on): Add stdbool.
38202         * modules/symlinkat-tests (Files): Use new files.
38203
38204 2009-09-23  Eric Blake  <ebb9@byu.net>
38205
38206         readlink: document portability issue with symlink length
38207         * doc/posix-functions/lstat.texi (lstat): Mention that some file
38208         systems have bogus st_size on symlinks, and mention the
38209         areadlink-with-size module.
38210         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38211         * doc/posix-functions/readlink.texi (readlink): Mention the
38212         areadlink module, and ERANGE failure.
38213         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38214         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
38215
38216         readlink: fix Solaris 9 bug with trailing slash
38217         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
38218         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
38219         * doc/posix-functions/readlink.texi (readlink): Document this.
38220         * modules/readlink-tests: New test.
38221         * tests/test-readlink.c: Likewise.
38222
38223         readlink: fix cygwin 1.5.x bug with return type
38224         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
38225         * lib/unistd.in.h (readlink): Use ssize_t.
38226         * lib/readlink.c (readlink): Likewise.
38227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38228         * modules/unistd (Makefile.am): Substitute it.
38229         * lib/unistd.in.h (readlink): Declare replacement.
38230         * doc/posix-functions/readlink.texi (readlink): Document this.
38231
38232         symlink: use throughout gnulib
38233         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
38234         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
38235         symlink is not used.
38236         * modules/symlinkat (Depends-on): Add symlink.
38237         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38238         * modules/canonicalize-tests (Depends-on): Likewise.
38239         * modules/lstat-tests (Depends-on): Likewise.
38240         * modules/openat-tests (Depends-on): Likewise.
38241         * modules/remove-tests (Depends-on): Likewise.
38242         * modules/rmdir-tests (Depends-on): Likewise.
38243         * modules/unlink-tests (Depends-on): Likewise.
38244         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
38245         * tests/test-canonicalize.c (symlink): Likewise.
38246         * tests/test-fstatat.c (symlink): Likewise.
38247         * tests/test-lstat.c (symlink): Likewise.
38248         * tests/test-remove.c (symlink): Likewise.
38249         * tests/test-rmdir.c (symlink): Likewise.
38250         * tests/test-unlink.c (symlink): Likewise.
38251         * tests/test-unlinkat.c (symlink): Likewise.
38252
38253         symlink: new module, for Solaris 9 bug
38254         * modules/symlink: New file.
38255         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
38256         * lib/symlink.c: Likewise.
38257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38258         * modules/unistd (Makefile.am): Substitute them.
38259         * lib/unistd.in.h (symlink): Declare replacement.
38260         * MODULES.html.sh (File system functions): Mention it.
38261         * doc/posix-functions/symlink.texi (symlink): Likewise.
38262         * modules/symlink-tests: New test.
38263         * tests/test-symlink.c: Likewise.
38264
38265 2009-09-23  Bruno Haible  <bruno@clisp.org>
38266
38267         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
38268         when needed.
38269         Test case: gnulib-tool --import --with-tests atexit inttypes.
38270         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
38271
38272 2009-09-23  Bruno Haible  <bruno@clisp.org>
38273
38274         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
38275         subcommand, not in a subshell.
38276
38277 2009-09-22  Eric Blake  <ebb9@byu.net>
38278
38279         unistd: sort replacement declarations
38280         * lib/unistd.in.h: Sort declarations.
38281
38282         open, openat: minor optimization
38283         * lib/open.c (open): If open succeeded, len is non-zero.
38284         * lib/openat.c (rpl_openat): Likewise.
38285
38286         link-follow: ensure correct result
38287         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
38288         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
38289         distinguish between possible failures.
38290
38291 2009-09-21  Eric Blake  <ebb9@byu.net>
38292
38293         fts: avoid compiler warning
38294         * lib/fts.c (dirent_inode_sort_may_be_useful)
38295         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
38296
38297 2009-09-19  Bruno Haible  <bruno@clisp.org>
38298
38299         * lib/progreloc.c (canonicalize_file_name): New declaration.
38300
38301 2009-09-19  Eric Blake  <ebb9@byu.net>
38302
38303         link: fix quoting
38304         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
38305
38306         openat: fix openat bugs on Solaris 9
38307         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
38308         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
38309         * modules/openat (Depends-on): Add open.
38310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
38311         * modules/fcntl-h (Makefile.am): Substitute it.
38312         * lib/fcntl.in.h (openat): Declare replacement.
38313         * doc/posix-functions/openat.texi (openat): Document this.
38314
38315         openat: move fstatat and unlinkat into correct files
38316         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
38317         compiled.
38318         * lib/openat.c (fstatat, unlinkat): Move...
38319         * lib/fstatat.c (fstatat): ...into correct files.
38320         * lib/unlinkat.c (unlinkat): Likewise.
38321
38322         openat: fix unlinkat bugs on Solaris 9
38323         * lib/unlinkat.c (unlinkat): New file.
38324         * modules/openat (Depends-on): Add unlink.
38325         (Files): Distribute it.
38326         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
38327         trailing slash behavior is broken.
38328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38329         * modules/unistd (Makefile.am): Substitute it.
38330         * lib/unistd.in.h (unlinkat): Declare replacement.
38331         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
38332
38333         openat: fix fstatat bugs on Solaris 9
38334         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
38335         stat.
38336         * doc/posix-functions/fstatat.texi (fstatat): Document this.
38337
38338         test-unlinkat: enhance test, to expose Solaris 9 bug
38339         * tests/test-unlink.c (main): Factor guts...
38340         * tests/test-unlink.h (test_rmdir_func): ...into new file.
38341         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
38342         * tests/test-rmdir.c (main): Adjust caller.
38343         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
38344         (unlinker): New helper function.
38345         (rmdirat): Enhance check.
38346         * modules/rmdir-tests (Depends-on): Add stdbool.
38347         * modules/unlink-tests (Depends-on): Likewise.
38348         (Files): Add test-unlink.h.
38349         * modules/openat-tests (Files): Likewise.
38350         (Depends-on): Add unlinkdir.
38351
38352         test-fstatat: new test, to expose Solaris 9 bugs
38353         * tests/test-stat.c (main): Factor guts...
38354         * tests/test-stat.h (test_stat_func): ...into new file.
38355         * tests/test-lstat.c (main): Factor guts...
38356         * tests/test-lstat.h (test_lstat_func): ...into new file.
38357         * tests/test-fstatat.c: New file.
38358         * modules/stat-tests (Files): Add test-stat.h.
38359         * modules/lstat-tests (Files): Add test-lstat.h.
38360         (Depends-on): Add stdbool.
38361         * modules/openat-tests (Depends-on): Add pathmax.
38362         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
38363         (Makefile.am): Run new test.
38364
38365         remove: new module, for mingw and Solaris 9 bugs
38366         * modules/remove: New file.
38367         * lib/remove.c: Likewise.
38368         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
38369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38370         * modules/stdio (Makefile.am): Use them.
38371         * lib/stdio.in.h (remove): Declare replacement.
38372         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38373         * doc/posix-functions/remove.texi (remove): Likewise.
38374         * modules/remove-tests: New test.
38375         * tests/test-remove.c: Likewise.
38376
38377         unlink: new module, for Solaris 9 bug
38378         * modules/unlink: New file.
38379         * lib/unlink.c: Likewise.
38380         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38382         * modules/unistd (Makefile.am): Use them.
38383         * lib/unistd.in.h (stat): Declare replacement.
38384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38385         * doc/posix-functions/unlink.texi (unlink): Likewise.
38386         * modules/unlink-tests: New test.
38387         * tests/test-unlink.c: Likewise.
38388
38389         lstat: fix Solaris 9 bug
38390         * lib/lstat.c (lstat): Also check for trailing slash on
38391         non-symlink, non-directories.  Use stat module to simplify logic.
38392         * doc/posix-functions/lstat.texi (lstat): Document it.
38393         * modules/lstat-tests (Depends-on): Add errno, same-inode.
38394         (configure.ac): Check for symlink.
38395         * tests/test-lstat.c (main): Add more tests.
38396
38397         stat: add as dependency to other modules
38398         * modules/chown (Depends-on): Add stat.
38399         * modules/euidaccess (Depends-on): Likewise.
38400         * modules/fchdir (Depends-on): Likewise.
38401         * modules/isdir (Depends-on): Likewise.
38402         * modules/link (Depends-on): Likewise.
38403         * modules/lstat (Depends-on): Likewise.
38404         * modules/mkdir-p (Depends-on): Likewise.
38405         * modules/modechange (Depends-on): Likewise.
38406         * modules/open (Depends-on): Likewise.
38407         * modules/readlink (Depends-on): Likewise.
38408         * modules/same (Depends-on): Likewise.
38409
38410         stat: fix Solaris 9 bug
38411         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
38412         slash.
38413         * lib/stat.c (rpl_stat): Work around it.
38414         * doc/posix-functions/stat.texi (stat): Update documentation.
38415
38416         stat: new module, for mingw bug
38417         * modules/stat: New file.
38418         * lib/stat.c: Likewise.
38419         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38421         * modules/sys_stat (Makefile.am): Use them.
38422         * lib/sys_stat.in.h (stat): Declare replacement.
38423         * lib/openat.c (fstatat): Deal with lstat and stat being function
38424         macros.
38425         * modules/openat (Depends-on): Add inline.
38426         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38427         * doc/posix-functions/stat.texi (stat): Likewise.
38428         * modules/stat-tests: New test.
38429         * tests/test-stat.c: Likewise.
38430
38431 2009-09-19  Jim Meyering  <meyering@redhat.com>
38432
38433         syntax-check: detect unnecessary inclusion of canonicalize.h
38434         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
38435
38436 2009-09-19  Eric Blake  <ebb9@byu.net>
38437
38438         canonicalize-lgpl: adjust clients to use correct header
38439         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38440         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
38441         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
38442         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
38443         * lib/progreloc.c (includes): Likewise.
38444
38445 2009-09-19  Jim Meyering  <meyering@redhat.com>
38446
38447         test-posixtm.c: correct a comment
38448         * tests/test-posixtm.c: Correct first-line comment.
38449         Spotted by Eric Blake.
38450
38451 2009-09-16  Jim Meyering  <meyering@redhat.com>
38452
38453         posixtm-tests: make T const-correct; add a test case
38454         * tests/test-posixtm.c (T): Declare const.
38455         Add a test for -(2^31+1).
38456         Remove useless can-succeed-only-in-2002 test.
38457
38458         posixtm-tests: adjust the sole failing test
38459         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
38460         expected output matches what mktime now produces.  Cross-checked via
38461         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
38462
38463         posixtm: move #ifdef'd tests into a new module
38464         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
38465         * tests/test-posixtm.c: ... this new file.
38466         * modules/posixtm-tests: New module.
38467
38468 2009-09-19  Eric Blake  <ebb9@byu.net>
38469
38470         openat: simplify use of at-func.c
38471         * lib/at-func.c (includes): Include prerequisites here, to
38472         simplify requirements on client files.
38473         * lib/openat-priv.h: Add double-inclusion guard.
38474         * lib/faccessat.c (includes): Simplify.
38475         * lib/fchmodat.c (includes): Likewise.
38476         * lib/fchownat.c (includes): Likewise.
38477         * lib/mkdirat.c (includes): Likewise.
38478         * lib/mkfifoat.c (includes): Likewise.
38479         * lib/symlinkat.c (includes): Likewise.
38480
38481         openat: allow return of fd 0
38482         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
38483         * modules/save-cwd (Depends-on): Replace fcntl-safer with
38484         unistd-safer.
38485         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
38486         <fcntl.h>; this module does not leak fds.
38487         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
38488         must be allowed to return 0, leaving openat_safer to add the
38489         safety.
38490         (openat_permissive): Avoid writing to just-opened fd 2 if
38491         restoring the current directory fails.
38492         * lib/openat-die.c (openat_restore_fail): Add comment.
38493         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
38494         (save_cwd): Guarantee safe fd, but without use of open_safer.
38495         * tests/test-openat.c: New test.
38496         * modules/openat-tests (Files, Makefile.am): Distribute and build
38497         new file.
38498
38499         relocatable-prog-wrapper: fix build
38500         * modules/relocatable-prog-wrapper (Files): Update name of
38501         canonicalize m4 file, broken on 2009-09-17.
38502         Reported by emad hajjar <aleppos@hotmail.com>.
38503
38504 2009-09-19  Bruno Haible  <bruno@clisp.org>
38505
38506         * lib/safe-alloc.h: Use the standard header with GPL copyright.
38507         * lib/safe-alloc.c: Likewise.
38508         Reported by Ian Beckwith <ianb@erislabs.net>.
38509
38510 2009-09-18  Bruno Haible  <bruno@clisp.org>
38511
38512         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
38513         Reported by <erobles@sensacd.com.mx>.
38514
38515 2009-09-17  Eric Blake  <ebb9@byu.net>
38516
38517         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
38518         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
38519         slashes when checking if last component is missing.
38520         * tests/test-canonicalize.c (main): Test this.
38521
38522         canonicalize, canonicalize-lgpl: honor // if distinct from /
38523         * modules/canonicalize (Files): Add double-slash-root.m4.
38524         * modules/canonicalize-lgpl (Files): Likewise.
38525         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38526         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
38527         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
38528         fallback definition.
38529         (canonicalize_filename_mode): Use it to protect //.
38530         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
38531         (__realpath): Likewise.
38532         * tests/test-canonicalize.c (main): Test this.
38533         * tests/test-canonicalize-lgpl.c (main): Likewise.
38534         * modules/canonicalize-tests (Depends-on): Add same-inode.
38535         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38536
38537         canonicalize-lgpl: fix glibc bug with trailing slash
38538         * m4/canonicalize-lgpl.m4: Move contents...
38539         * m4/canonicalize.m4: ...here.
38540         (gl_CANONICALIZE_LGPL): Factor realpath check...
38541         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
38542         glibc 2.3.5 bug, fixed 2005-04-27.
38543         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
38544         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
38545         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
38546         * modules/canonicalize-lgpl (Files): Manage file rename.
38547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38548         * modules/stdlib (Makefile.am): Substitute witness.
38549         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
38550         is needed.
38551         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38552         replacement is required.
38553         * lib/canonicalize.c (canonicalize_file_name): Likewise.
38554         * doc/glibc-functions/canonicalize_file_name.texi
38555         (canonicalize_file_name): Document this.
38556         * doc/posix-functions/realpath.texi (realpath): Likewise.
38557
38558         canonicalize-lgpl: reject non-directory with trailing slash
38559         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
38560         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
38561         catches failures in glibc 2.3.5.
38562         * tests/test-canonicalize.c (main): Likewise.
38563
38564         canonicalize-lgpl: use native realpath if it works
38565         * lib/canonicalize-lgpl.c (realpath): Guard with
38566         FUNC_REALPATH_WORKS.
38567         * lib/stdlib.in.h (realpath): Make declaration optional based on
38568         HAVE_REALPATH.
38569         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
38570         native realpath works.
38571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38572         * modules/stdlib (Makefile.am): Substitute witness.
38573
38574         canonicalize, canonicalize-lgpl: use <stdlib.h>
38575         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
38576         (Include): Mention <stdlib.h>.
38577         (configure.ac): Mention functions we provide.
38578         * modules/canonicalize (configure.ac): Likewise.
38579         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
38580         realpath if canonicalize_file_name is missing.
38581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
38582         * modules/stdlib (Makefile.am): Substitute witnesses.
38583         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
38584         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
38585         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
38586         * NEWS: Document this.
38587         * doc/glibc-functions/canonicalize_file_name.texi
38588         (canonicalize_file_name): Likewise.
38589         * doc/posix-functions/realpath.texi (realpath): Likewise.
38590         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
38591
38592         test-canonicalize: consolidate into single C program
38593         * tests/test-canonicalize.sh: Delete; move setup into...
38594         * tests/test-canonicalize.c (main): ...the program, making it
38595         easier to run in debugger.  Add some tests.
38596         * modules/canonicalize-tests (Files): Remove unused file.
38597         (Depends-on): Add progname.
38598         (configure.ac, Makefile.am): Simplify.
38599
38600         test-canonicalize-lgpl: consolidate into single C program
38601         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
38602         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
38603         easier to run in debugger.  Add some tests.
38604         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
38605         (configure.ac, Makefile.am): Simplify.
38606
38607         canonicalize: avoid resolvepath
38608         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
38609         unnecessary checks.
38610         * lib/canonicalize.c (includes): Simplify.
38611         (canonicalize_file_name): Drop resolvepath implementation.
38612         * modules/canonicalize (Depends-on): Drop filenamecat.
38613
38614         canonicalize: don't lose errno
38615         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
38616         over calls to free.
38617
38618         canonicalize: simplify errno handling
38619         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
38620         assignment.
38621
38622         canonicalize, canonicalize-lgpl: update module dependencies
38623         * modules/canonicalize (Depends-on): Add extensions, lstat,
38624         pathmax, stdlib.
38625         (Files): Drop pathmax.h.
38626         (configure.ac): Adjust macro name.
38627         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
38628         lstat, stdlib, sys_stat.
38629         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
38630         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
38631         extensions.
38632         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
38633         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
38634         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
38635         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
38636         declaration, if available.
38637         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
38638         we can rely on the readlink module.
38639         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
38640         (includes): Use <unistd.h> unconditionally.
38641
38642 2009-09-17  Eric Blake  <ebb9@byu.net>
38643
38644         maint: make Include sections of modules consistent
38645         * modules/alloca: Use only header name; no need to list #include.
38646         * modules/alloca-opt: Likewise.
38647         * modules/arpa_inet: Likewise.
38648         * modules/canon-host: Likewise.
38649         * modules/configmake: Likewise.
38650         * modules/dirent: Likewise.
38651         * modules/eealloc: Likewise.
38652         * modules/environ: Likewise.
38653         * modules/fchdir: Likewise.
38654         * modules/fcntl: Likewise.
38655         * modules/fcntl-h: Likewise.
38656         * modules/gethrxtime: Likewise.
38657         * modules/gettime: Likewise.
38658         * modules/ignore-value: Likewise.
38659         * modules/inet_ntop: Likewise.
38660         * modules/inet_pton: Likewise.
38661         * modules/inttypes: Likewise.
38662         * modules/isnand-nolibm: Likewise.
38663         * modules/isnanf-nolibm: Likewise.
38664         * modules/mbchar: Likewise.
38665         * modules/mbfile: Likewise.
38666         * modules/mbiter: Likewise.
38667         * modules/mbuiter: Likewise.
38668         * modules/netdb: Likewise.
38669         * modules/netinet_in: Likewise.
38670         * modules/nproc: Likewise.
38671         * modules/pagealign_alloc: Likewise.
38672         * modules/poll: Likewise.
38673         * modules/printf-frexp: Likewise.
38674         * modules/pthread: Likewise.
38675         * modules/putenv: Likewise.
38676         * modules/random_r: Likewise.
38677         * modules/relocatable-prog: Likewise.
38678         * modules/search: Likewise.
38679         * modules/select: Likewise.
38680         * modules/selinux-h: Likewise.
38681         * modules/settime: Likewise.
38682         * modules/signal: Likewise.
38683         * modules/size_max: Likewise.
38684         * modules/socklen: Likewise.
38685         * modules/ssize_t: Likewise.
38686         * modules/stdarg: Likewise.
38687         * modules/stdbool: Likewise.
38688         * modules/stddef: Likewise.
38689         * modules/stdint: Likewise.
38690         * modules/stdio: Likewise.
38691         * modules/stdlib: Likewise.
38692         * modules/string: Likewise.
38693         * modules/strings: Likewise.
38694         * modules/sys_file: Likewise.
38695         * modules/sys_ioctl: Likewise.
38696         * modules/sys_select: Likewise.
38697         * modules/sys_socket: Likewise.
38698         * modules/sys_stat: Likewise.
38699         * modules/sys_time: Likewise.
38700         * modules/sys_times: Likewise.
38701         * modules/sys_utsname: Likewise.
38702         * modules/sys_wait: Likewise.
38703         * modules/sysexits: Likewise.
38704         * modules/time: Likewise.
38705         * modules/times: Likewise.
38706         * modules/tmpfile: Likewise.
38707         * modules/trim: Likewise.
38708         * modules/unistd: Likewise.
38709         * modules/wchar: Likewise.
38710         * modules/wctype: Likewise.
38711
38712 2009-09-17  Bruno Haible  <bruno@clisp.org>
38713
38714         Make getdate.y compile on QNX and NetBSD 5 / i386.
38715         * m4/getdate.m4 (gl_GETDATE): Conditionally define
38716         TIME_T_FITS_IN_LONG_INT.
38717         * lib/getdate.y (long_time_t): New type.
38718         (relative_time): Change type of 'seconds' field to long_time_t.
38719         (get_date): Update types of local variables. Check against overflow
38720         during conversion from long_time_t to time_t.
38721         Reported by Matt Kraai <kraai@ftbfs.org>
38722         and Hasso Tepper <hasso@netbsd.org>.
38723
38724 2009-09-17  Bruno Haible  <bruno@clisp.org>
38725
38726         * modules/COPYING: Update copyright years.
38727         * modules/README: Likeiwse.
38728         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
38729         Reported by Ian Beckwith <ianb@erislabs.net>.
38730
38731 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38732
38733         * users.txt: Update references for gnuit package.
38734
38735 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38736
38737         * m4/getdelim.m4: Fix typo in copyright line.
38738
38739 2009-09-17  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/atoll.c: Use the standard header with GPL copyright.
38742         * lib/argz.in.h: Likewise.
38743         * lib/glob.c: Likewise.
38744         * lib/glob-libc.h: Likewise.
38745         * lib/random_r.c: Likewise.
38746         * lib/siglist.h: Likewise.
38747         * lib/strsignal.c: Likewise.
38748         Reported by Ian Beckwith <ianb@erislabs.net>.
38749
38750 2009-09-17  Eric Blake  <ebb9@byu.net>
38751
38752         rmdir: ensure correct dependency order
38753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
38754
38755 2009-09-17  Bruno Haible  <bruno@clisp.org>
38756
38757         Disable assertion that fails on NetBSD 5 / i386.
38758         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
38759         Reported by Sam Steingold <sds@gnu.org>
38760         and Hasso Tepper <hasso@netbsd.org>.
38761
38762 2009-09-16  Eric Blake  <ebb9@byu.net>
38763
38764         unlinkdir: port to mingw
38765         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
38766         on which no one can unlink a directory.
38767
38768         stdlib: sort witness names
38769         * modules/stdlib (Makefile.am): Sort replacements.
38770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38771         * lib/stdlib.in.h: Likewise.
38772
38773         parse-duration-tests: avoid link failure
38774         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
38775         LIBINTL.
38776         Reported by Tom G. Christensen.
38777
38778         openat-tests: ensure unlinkat behaves like rmdir
38779         * tests/test-rmdir.c (main): Factor guts...
38780         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
38781         * modules/rmdir-tests (Files): Ship new file.
38782         * modules/openat-tests: New test.
38783         * tests/test-unlinkat.c: Likewise.
38784
38785         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
38786         * modules/rmdir-errno (Status, Notice): Now obsolete.
38787
38788         rmdir: work around cygwin 1.5.x and mingw bugs
38789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
38790         * lib/rmdir.c (rmdir): Work around it.
38791         * modules/rmdir (Status, Notice): No longer obsolete.
38792         (Files): Add dos.m4.
38793         (Depends-on): Add unistd.
38794         (configure.ac): Set witnesses.
38795         (License): Relax to LGPLv2+.
38796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
38797         * modules/unistd (Makefile.am): Substitute witnesses.
38798         * lib/unistd.in.h (rmdir): Declare replacement.
38799         * doc/posix-functions/rmdir.texi (rmdir): Document this.
38800         * modules/rmdir-tests: New tests.
38801         * tests/test-rmdir.c: Likewise.
38802
38803 2009-09-15  Eric Blake  <ebb9@byu.net>
38804
38805         fchdir: improve use of replacement functions
38806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38807         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38808         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38809         REPLACE_CLOSEDIR.
38810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38811         * modules/sys_stat (Makefile.am): Substitute correct witness.
38812         * modules/dirent (Makefile.am): Likewise.
38813         * modules/unistd (Makefile.am): Likewise.
38814         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38815         * lib/unistd.in.h (dup): Likewise.
38816         * lib/sys_stat.in.h (fstat): Likewise.
38817
38818         maint: ignore gnulib-tool temp files
38819         * .gitignore: Ignore files created during gnulib-tool --test.
38820
38821 2009-09-13  Jim Meyering  <meyering@redhat.com>
38822
38823         posixtm: don't reject a time that specify "60" as the number of seconds
38824         * lib/posixtm.c (posixtime): The code to reject invalid dates
38825         would also reject a time specified with the .60 suffix.
38826         But POSIX allows that, in order to accommodate leap seconds.
38827         So don't reject it.
38828         (main): Adjust tests accordingly.
38829         * modules/posixtm (Depends-on): Add stpcpy.
38830
38831 2009-09-11  Jim Meyering  <meyering@redhat.com>
38832
38833         announce-gen: include [$release_type] in emitted Subject:
38834         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38835         e.g., [stable] in the emitted Subject: line.
38836
38837 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38838
38839         Remove obsolete macros from several modules.
38840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38841         obsolete Autoconf macros with their modern counterparts.
38842         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38843         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38844         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38845         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38846         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38850         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38851         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38852         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38854         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38855         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38856         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38857         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38858         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38859         * m4/time_r.m4 (gl_TIME_R): Likewise.
38860         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38861         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38862         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38863
38864         Fix copyright header in build-aux scripts.
38865         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38866         recommendation.
38867         * build-aux/ncftpput-ftp: Likewise.
38868         * build-aux/update-copyright: Likewise.
38869
38870 2009-09-09  Eric Blake  <ebb9@byu.net>
38871
38872         test-link: allow Linux choice of errno
38873         * tests/test-link.c (main): Relax test for alternate error.
38874
38875         strndup: fix improper m4 caching
38876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38877         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38878         (gl_PREREQ_STRNDUP): Delete.
38879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38880         * modules/string (Makefile.am): Substitute it.
38881         * lib/string.in.h (strndup): Modernize prototype.
38882
38883         getcwd: port to mingw
38884         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38885         different from the POSIX assumptions made throughout the getcwd
38886         module; fortunately, the mingw getcwd does not need replacement.
38887         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38888         * modules/getcwd-tests: New test.
38889         * tests/test-getcwd.c: Likewise.
38890
38891         link: fix platform bugs
38892         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38893         * lib/link.c (link): Work around them.  Fix related mingw bug.
38894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38895         * modules/unistd (Makefile.am): Substitute it.
38896         * lib/unistd.in.h (link): Declare replacement.
38897         * doc/posix-functions/link.texi (link): Document this.
38898         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38899
38900         test-link: consolidate into single C program, test more cases
38901         * tests/test-link.sh: Delete.
38902         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38903         at least Cygwin and Solaris.
38904         * modules/link-tests (Files): Remove unused file.
38905         (Depends-on): Add errno, sys_stat.
38906         (Makefile.am): Simplify.
38907
38908 2009-09-08  Bruno Haible  <bruno@clisp.org>
38909
38910         Work around towlower, towupper bug on mingw.
38911         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38912         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38913         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38914         * doc/posix-functions/towupper.texi: Likewise.
38915         Reported by Eric Blake.
38916
38917 2009-09-08  Jim Meyering  <meyering@redhat.com>
38918
38919         build: don't try to run autoheader if we don't use it
38920         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38921         is not used in configure.ac.
38922
38923 2009-09-08  Eric Blake  <ebb9@byu.net>
38924
38925         euidaccess: fix compilation error
38926         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38927
38928         rawmemchr: relax license
38929         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38930         okay.
38931         Reported by Jim Meyering.
38932
38933         mkfifoat: new module
38934         * modules/mkfifoat: New file.
38935         * lib/mkfifoat.c: Likewise.
38936         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38937         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38938         * modules/sys_stat (Makefile.am): Use them.
38939         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38940         * MODULES.html.sh (File system functions): Mention module.
38941         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38942         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38943         * modules/mkfifoat-tests: New test.
38944         * tests/test-mkfifoat.c: Likewise.
38945
38946         strchrnul: relax license
38947         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38948         okay.
38949         Reported by Jim Meyering.
38950
38951 2009-09-08  Eric Blake  <ebb9@byu.net>
38952
38953         fstatat: fix compilation on Solaris
38954         * lib/fstatat.c (includes): Add fcntl.h.
38955         Reported by Pádraig Brady.
38956
38957 2009-09-07  Eric Blake  <ebb9@byu.net>
38958
38959         rename: modernize replacement
38960         * modules/rename (Depends-on): Add stdio.
38961         (configure.ac): Declare witness.
38962         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38963         stdio take care of replacement.
38964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38965         * modules/stdio (Makefile.am): Substitute them.
38966         * lib/stdio.in.h (rename): Declare replacement.
38967         * lib/rename.c (includes): Allow cross-compilation to non-windows
38968         machines.
38969         * doc/posix-functions/rename.texi (rename): Improve
38970         documentation.
38971
38972         stdio: sort witness names
38973         * modules/stdio (Makefile.am): Sort replacements.
38974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38975         * lib/stdio.in.h: Likewise.
38976
38977         getcwd: minor cleanups
38978         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38979         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38980
38981         openat: provide more convenience names
38982         * modules/faccessat (configure.ac): Add C witness.
38983         * lib/unistd.in.h (readlinkat): Fix typo.
38984         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38985         convenience wrappers.
38986         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38987         wrappers in syntax checks.
38988
38989 2009-09-06  Eric Blake  <ebb9@byu.net>
38990
38991         doc: fix comments in recent patches
38992         * lib/faccessat.c: Mention correct function.
38993         * lib/fchmodat.c: Likewise.
38994         * lib/fchownat.c: Likewise.
38995         * lib/symlinkat.c: Likewise.
38996         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38997         constants.
38998
38999         faccessat, symlinkat: continue cleanup of previous patch
39000         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
39001         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39002         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
39003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
39004         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
39005         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
39006         set.
39007
39008 2009-09-06  Bruno Haible  <bruno@clisp.org>
39009
39010         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
39011         (fstatat): Declare if GNULIB_FSTATAT is set.
39012         (mkdirat): Declare if GNULIB_MKDIRAT is set.
39013         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
39014         (unlinkat): Declare if GNULIB_UNLINKAT is set.
39015         * modules/fcntl-h (Files): Remove m4/openat.m4.
39016         * modules/sys_stat (Files): Remove m4/openat.m4.
39017         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
39018         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
39019         * modules/unistd (Files): Remove m4/openat.m4.
39020         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
39021         GNULIB_OPENAT.
39022         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
39023         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
39024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
39025         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
39026         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
39027         gl_OPENAT_DEFAULTS.
39028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
39029         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
39030         Don't require gl_OPENAT_DEFAULTS.
39031         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
39032         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
39033         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
39034         (gl_OPENAT_DEFAULTS): Remove macro.
39035
39036 2009-09-06  Bruno Haible  <bruno@clisp.org>
39037
39038         * modules/openat (configure.ac): Remove unneeded witness.
39039
39040 2009-09-06  Bruno Haible  <bruno@clisp.org>
39041
39042         Set errno to ENOSYS when a function is entirely unsupported.
39043         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
39044         EOPNOTSUPP.
39045         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39046         * modules/chown (Depends-on): Remove errno.
39047
39048 2009-09-06  Bruno Haible  <bruno@clisp.org>
39049
39050         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
39051
39052 2009-09-06  Bruno Haible  <bruno@clisp.org>
39053
39054         * lib/sys_stat.in.h: Fix preprocessor command indentation.
39055
39056 2009-09-06  Ben Pfaff  <blp@gnu.org>
39057             Bruno Haible  <bruno@clisp.org>
39058
39059         Work around a glibc bug in strtok_r.
39060         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
39061         Undefine if UNDEFINE_STRTOK_R is set.
39062         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
39063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39064         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
39065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
39066         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
39067         UNDEFINE_STRTOK_R.
39068         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
39069
39070 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
39071
39072         exclude: minor fix
39073         * lib/exclude.c: Include wctype.h
39074
39075 2009-09-06  Akim Demaille  <demaille@gostai.com>
39076
39077         bootstrap: improve error message
39078         * build-aux/bootstrap (find_tool): Upon failure, report the list
39079         of candidates.
39080         Honor the initial value of the envvar.
39081
39082 2009-09-05  Eric Blake  <ebb9@byu.net>
39083
39084         symlinkat: new module
39085         * modules/symlinkat: New file.
39086         * lib/symlinkat.c: Likewise.
39087         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
39088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39089         * modules/unistd (Makefile.am): Use them.
39090         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
39091         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
39092         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
39093         * MODULES.html.sh (File system functions): Mention module.
39094         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39095         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39096         * modules/symlinkat-tests: New test.
39097         * tests/test-symlinkat.c: Likewise.
39098
39099         test-openat-safer: add more checks
39100         * tests/test-openat-safer.c (main): Check more code paths.
39101
39102 2009-09-05  Jim Meyering  <meyering@redhat.com>
39103
39104         syntax-check: detect unnecessary inclusion of openat.h
39105         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
39106
39107 2009-09-05  Bruno Haible  <bruno@clisp.org>
39108
39109         Support towlower, towupper.
39110         * doc/posix-functions/towlower.texi: Mention module wctype.
39111         * doc/posix-functions/towupper.texi: Likewise.
39112         * lib/wctype.in.h (towlower, towupper): New functions.
39113         * tests/test-wctype.c: Include stdio.h, stdlib.h.
39114         (ASSERT): New macro.
39115         (e): New variable.
39116         (main): Test also towlower, towupper. Test WEOF argument.
39117         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39118
39119 2009-09-05  Bruno Haible  <bruno@clisp.org>
39120
39121         Fix conversion behaviour when the input is invalid.
39122         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
39123         mark occurring in first pass of indirect conversion.
39124         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
39125         input.
39126         Found by clang's static analyzer.
39127
39128 2009-09-05  Bruno Haible  <bruno@clisp.org>
39129
39130         * tests/test-striconveh.c (main): Test indirect conversion on platforms
39131         where direct conversion is possible.
39132
39133 2009-09-04  Eric Blake  <ebb9@byu.net>
39134
39135         openat: fail with ENOENT on empty name
39136         * lib/openat-proc.c (openat_proc_name): Special-case the empty
39137         buffer.
39138
39139         link-follow: fix logic bug in prior patch
39140         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
39141         reversed sense of yes and no in prior patch.  Avoid confusing
39142         compilation failure with desired semantics.
39143
39144         link-follow: accomodate mingw and cross-compilation
39145         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
39146         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
39147         cross-compilation results to -1, to make linkat easier to
39148         implement when cross-compiling.  Trivially support mingw.
39149         * modules/link-follow (configure.ac): Call new name.
39150         * NEWS: Mention this.
39151
39152 2009-09-03  Eric Blake  <ebb9@byu.net>
39153
39154         faccessat: compile replacement
39155         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
39156         needed.
39157
39158         fts: fix compilation error
39159         * lib/fts.c (includes): Re-add "openat.h", for
39160         openat_needs_fchdir.
39161
39162         faccessat: new module
39163         * modules/faccessat: New file.
39164         * lib/faccessat.c: Likewise.
39165         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39167         * modules/unistd (Makefile.am): Use it.
39168         * lib/unistd.in.h (faccessat): Declare it.
39169         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
39170         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
39171         * MODULES.html.sh (File system functions): Mention it.
39172         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
39173         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39174
39175         euidaccess: prefer POSIX over non-standard implementation
39176         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
39177         * lib/euidaccess.c (euidaccess): Use it if available.
39178
39179         openat: make template easier to use
39180         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
39181         AT_FUNC_F2 to be undefined.
39182         (VALIDATE_FLAG): New macro; use it to reject bad flags.
39183         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
39184         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
39185         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
39186         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
39187         Likewise.
39188         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
39189         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
39190         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
39191         Likewise.
39192
39193         openat: declare in POSIX headers
39194         * NEWS: Mention this.
39195         * modules/openat (configure.ac): Declare witnesses.
39196         (Depends-on): Add fcntl-h, sys_stat, unistd.
39197         (Include): Mention correct headers.
39198         * modules/fcntl-h (Depends-on): Add link-warning.
39199         (Files): Add openat.m4.
39200         (Makefile.am): Substitute witnesses.
39201         * modules/sys_stat (Files, Makefile.am): Likewise.
39202         * modules/unistd (Files, Makefile.am): Likewise.
39203         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
39204         (gl_OPENAT_DEFAULTS): New macro.
39205         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
39206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
39207         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
39208         (SYS_STAT_H): Remove unused variable.
39209         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
39210         * lib/fcntl--.h (includes): Remove unneeded header.
39211         * lib/openat-safer.c (includes): Likewise.
39212         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
39213         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
39214         appropriate headers.
39215         (__OPENAT_PREFIX): Delete.
39216         * lib/fcntl.in.h (openat): Provide declaration.
39217         (AT_FDCWD): Fix Solaris bug.
39218         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
39219         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
39220         * lib/fchmodat.c (includes):  Adjust to find declaration.
39221         * lib/fchownat.c (includes): Likewise.
39222         * lib/mkdirat.c (includes): Likewise.
39223         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
39224         still visible.
39225
39226 2009-09-02  Eric Blake  <ebb9@byu.net>
39227
39228         errno: use consistently
39229         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
39230         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
39231         * lib/canonicalize.c (ELOOP): Likewise.
39232         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
39233         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
39234         * lib/lchown.c (EOPNOTSUPP): Likewise.
39235         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
39236         * lib/savewd.c (ESTALE): Likewise.
39237         * lib/settime.c (ENOSYS): Likewise.
39238         * lib/utimens.c (ENOSYS): Likewise.
39239         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
39240         * lib/chdir-safer.c (ELOOP): Likewise.
39241         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
39242         * modules/c-stack (Depends-on): Add errno.
39243         * modules/canonicalize (Depends-on): Likewise.
39244         * modules/chdir-safer (Depends-on): Likewise.
39245         * modules/fdopendir (Depends-on): Likewise.
39246         * modules/inet_ntop (Depends-on): Likewise.
39247         * modules/inet_pton (Depends-on): Likewise.
39248         * modules/lchown (Depends-on): Likewise.
39249         * modules/openat (Depends-on): Likewise.
39250         * modules/savewd (Depends-on): Likewise.
39251         * modules/settime (Depends-on): Likewise.
39252         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
39253
39254         fts: avoid leaking fds
39255         * modules/fts (Depends-on): Add cloexec.
39256         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
39257         flag.
39258
39259         fts: make directory fds more robust
39260         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
39261         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
39262
39263         backupfile, chdir-long, fts, savedir: make safer
39264         * lib/backupfile.c (includes): Use "dirent--.h", since
39265         numbered_backup can write to stderr during readdir.
39266         * lib/savedir.c (includes): Likewise.
39267         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
39268         emulation can write to stderr on failure.
39269         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
39270         * lib/getcwd.c: Document why opendir_safer is unused.
39271         * lib/glob.c: Likewise.
39272         * lib/scandir.c: Likewise.
39273         * lib/openat-proc.c: Likewise, for open_safer.
39274         * modules/backupfile (Depends-on): Add dirent-safer.
39275         * modules/savedir (Depends-on): Likewise.
39276         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
39277         * modules/chdir-long (Depends-on): Add openat-safer.
39278
39279         openat-safer: new module
39280         * modules/openat-safer: New file.
39281         * lib/openat-safer.c: Likewise.
39282         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
39283         * lib/fcntl-safer.h (openat_safer): Declare.
39284         * lib/fcntl--.h (openat): Override.
39285         * MODULES.html.sh (File descriptor based I/O): Mention it.
39286         * lib/openat.h: Add double-inclusion guards.
39287         * lib/openat.c (includes): Only include "fcntl-safer.h", not
39288         "fcntl--.h", so we can implement openat.
39289         * modules/openat-safer-tests: New test.
39290         * tests/test-openat-safer.c: New file.
39291
39292         dirent-safer: new module
39293         * modules/dirent-safer: New file.
39294         * lib/dirent--.h: Likewise.
39295         * lib/dirent-safer.h: Likewise.
39296         * lib/opendir-safer.c: Likewise.
39297         * m4/dirent-safer.m4: Likewise.
39298         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
39299         * modules/dirent-safer-tests: New test.
39300         * tests/test-dirent-safer.c: New file.
39301         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
39302
39303         fdopendir: optimize on mingw
39304         * lib/unistd.in.h (_gl_directory_name): New prototype.
39305         * lib/fchdir.c (_gl_directory_name): Implement it.
39306         (fchdir): Use it to simplify implementation.
39307         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
39308         fchdir, when available, to avoid calling [f]chdir().
39309
39310         fdopendir: split into its own module
39311         * lib/openat.c (fdopendir): Move...
39312         * lib/fdopendir.c: ...into new file.
39313         * modules/fdopendir: New module.
39314         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
39315         * modules/openat (Depends-on): Add fdopendir.
39316         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
39317         fdopendir here.
39318         * modules/savedir (Depends-on): Only need fdopendir, not full
39319         openat.
39320         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
39321         * lib/openat.h (fdopendir): Drop prototype.
39322         * lib/dirent.in.h (fdopendir): Provide prototype.
39323         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
39324         * modules/dirent (Makefile.am): Substitute them.
39325         * MODULES.html.sh (File system functions): Mention it.
39326         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
39327         * modules/fdopendir-tests: New file.
39328         * tests/test-fdopendir.c: Likewise.
39329
39330         fchdir: use more consistent macro convention
39331         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
39332         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
39333         REPLACE_FCHDIR, rather than relying on config.h macros.
39334         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
39335         inside a single make-time REPLACE_FCHDIR block, rather than using
39336         the config.h FCHDIR_REPLACEMENT.
39337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
39338         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
39339         Manage fstat replacement.
39340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
39341         REPLACE_FCHDIR.
39342         * modules/sys_stat (Files): Add m4/unistd_h.m4.
39343         (Makefile.am): Substitute REPLACE_FCHDIR.
39344         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
39345         FCHDIR_REPLACEMENT.
39346         * lib/dup-safer.c (dup_safer): Likewise.
39347         * lib/dup2.c (rpl_dup2): Likewise.
39348         * lib/dup3.c (rpl_dup3): Likewise.
39349         * lib/open.c (rpl_open): Likewise.
39350
39351         fchdir: simplify error handling, and support dup3
39352         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
39353         stdbool, malloc-posix, realloc-posix.
39354         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
39355         (ensure_dirs_slot): Return false on allocation failure.
39356         (rpl_dup2): Delete.
39357         (_gl_register_dup): New function.
39358         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
39359         (_gl_register_fd): Close fd on allocation failure.
39360         * lib/fcntl.in.h (_gl_register_fd): Update signature.
39361         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
39362         prototype.
39363         (rpl_dup2_fchdir): Delete prototype.
39364         * lib/open.c (open): Update caller.
39365         * lib/dup2.c (dup2): Track fchdir metadata.
39366         * lib/dup3.c (dup3): Likewise.
39367         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
39368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
39369
39370 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39371
39372         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
39373         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
39374         don't pass arguments to AC_OUTPUT.
39375
39376 2009-09-02  Bruno Haible  <bruno@clisp.org>
39377
39378         * modules/mkdtemp (License): Relicense under LGPLv2+.
39379         Reported by Paolo Bonzini.
39380
39381 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39382
39383         Replace uses of obsolete autoconf macros in Jim's modules.
39384         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
39385         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
39386         can evoke a warning from autoconf when run with -Wobsolete
39387         enabled.  They were declared obsolete for good reasons (see
39388         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
39389         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
39390         should not continue using the deprecated macros.
39391         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
39392         obsolete Autoconf macros with modern counterparts.
39393         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39394         * m4/dos.m4 (gl_AC_DOS): Likewise.
39395         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
39396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
39397         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
39398         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
39399         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
39400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
39401         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
39402         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
39403         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39404         Likewise.
39405         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
39406         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
39407         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
39408         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
39409         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39410         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
39411
39412 2009-09-01  Eric Blake  <ebb9@byu.net>
39413
39414         fchdir: fix off-by-one bug in previous patch
39415         * lib/fchdir.c (rpl_fstat): Use correct bounds.
39416         (_gl_unregister_fd): Delete useless if.
39417
39418 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
39419
39420         maint.mk: sort the list of syntax-check rules
39421         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
39422         easier to get a sense of progress when the rules are run sequentially
39423         and take a long time.
39424
39425 2009-09-01  Simon Josefsson  <simon@josefsson.org>
39426
39427         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
39428         * modules/netinet_in: Likewise.
39429         * modules/sys_file: Likewise.
39430         * modules/sys_ioctl: Likewise.
39431         * modules/sys_select: Likewise.
39432         * modules/sys_socket: Likewise.
39433         * modules/sys_stat: Likewise.
39434         * modules/sys_time: Likewise.
39435         * modules/sys_times: Likewise.
39436         * modules/sys_utsname: Likewise.
39437         * modules/sys_wait: Likewise.
39438
39439 2009-09-01  Jim Meyering  <meyering@redhat.com>
39440
39441         fts: help ensure that return values are not ignored
39442         * lib/fts_.h (__GNUC_PREREQ): Define.
39443         (__attribute_warn_unused_result__): Define.
39444         (fts_children, fts_close, fts_open, fts_read): Declare with
39445         __attribute_warn_unused_result__.
39446
39447         fts: fts_close now fails also when closing a dir file descriptor fails
39448         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
39449         and propagate to caller, along with errno.
39450
39451         announce-gen: correct formatting in --help output
39452         * build-aux/announce-gen (usage): Move the one-line description in
39453         --help output "up", to where it belongs, just after Usage:.
39454
39455 2009-08-31  Eric Blake  <ebb9@byu.net>
39456
39457         fchdir: port to mingw
39458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
39459         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
39460         opened, then use a substitute.
39461         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
39462         replacement.
39463         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
39464         (_gl_register_fd): No need to check stat if open already filters
39465         all directories.
39466         (fchdir): Fix error condition to match POSIX.
39467         * modules/fchdir (Depends-on): Add sys_stat.
39468         * doc/posix-functions/open.texi (open): Document the limitation.
39469         * modules/fchdir-tests: New file.
39470         * tests/test-fchdir.c: Likewise.
39471
39472         canonicalize: allow cross-testing from cygwin to mingw
39473         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
39474         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
39475         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
39476         Likewise.
39477         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
39478         target does not support symlinks.
39479         * tests/test-canonicalize-lgpl.sh: Likewise.
39480
39481         chown: avoid compilation warning on mingw
39482         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
39483         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
39484         mingw.
39485         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39486         * modules/chown (Depends-on): Add errno.
39487
39488 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39489
39490         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
39491         command.
39492
39493 2009-08-31  Jim Meyering  <meyering@redhat.com>
39494
39495         canonicalize: remove useless initialization
39496         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
39497         initialization of local, "end".
39498
39499 2009-08-30  Bruno Haible  <bruno@clisp.org>
39500
39501         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
39502         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
39503         ENOSYS.
39504
39505 2009-08-30  Bruno Haible  <bruno@clisp.org>
39506
39507         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
39508         /usr/xpg4/bin/tr when it exists.
39509         * tests/test-pipe-filter-gi1.sh: Likewise.
39510
39511 2009-08-30  Bruno Haible  <bruno@clisp.org>
39512
39513         Work around deficient /usr/bin/id program on Solaris.
39514         * tests/test-file-has-acl.sh (ID): New variable.
39515         * tests/test-set-mode-acl.sh (ID): Likewise.
39516         * tests/test-copy-acl.sh (ID): Likewise.
39517         * tests/test-copy-file.sh (ID): Likewise.
39518
39519 2009-08-30  Bruno Haible  <bruno@clisp.org>
39520
39521         New module 'xstriconveh'.
39522         * lib/xstriconveh.h: New file.
39523         * lib/xstriconveh.c: New file.
39524         * modules/xstriconveh: New file.
39525
39526 2009-08-30  Bruno Haible  <bruno@clisp.org>
39527
39528         Make it easier to use mem_cd_iconveh.
39529         * lib/striconveh.h (iconveh_t): New type.
39530         (iconveh_open, iconveh_close): New declarations.
39531         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39532         with a single 'const iconveh_t *' argument.
39533         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
39534         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39535         with a single 'const iconveh_t *' argument.
39536         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
39537         * tests/test-striconveh.c (main): Update.
39538         * NEWS: Mention the change.
39539
39540 2009-08-30  Bruno Haible  <bruno@clisp.org>
39541
39542         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
39543         problem.
39544
39545 2009-08-30  Bruno Haible  <bruno@clisp.org>
39546
39547         Work around iconv_open problem on Solaris.
39548         * lib/iconv_open-solaris.gperf: New file.
39549         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
39550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
39551         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
39552         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
39553         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
39554         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
39555
39556 2009-08-29  Jim Meyering  <meyering@redhat.com>
39557
39558         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
39559         * top/maint.mk (cvs-check): Remove target; it was just an alias
39560         to the better-named vc-diff-check.
39561         (maintainer-distcheck): Remove rule.  It was used only from
39562         the (alpha/beta/major) target, and all of its commands but one
39563         were coreutils-specific.
39564         (vc-dist): Remove rule.
39565         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
39566         Run vc-diff-check, not vc-dist.
39567         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
39568
39569 2009-08-27  Bruno Haible  <bruno@clisp.org>
39570
39571         * tests/test-bitrotate.c (main): Remove test that uses a shift count
39572         of 0.
39573
39574 2009-08-27  Bruno Haible  <bruno@clisp.org>
39575
39576         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
39577         compilers.
39578         * doc/func.texi: Document the SunPRO C bug.
39579
39580 2009-08-27  Bruno Haible  <bruno@clisp.org>
39581
39582         Fix link error on Solaris.
39583         * tests/test-parse-duration.c (xstrdup): Remove function.
39584
39585 2009-08-26  Pádraig Brady  <P@draigbrady.com>
39586
39587         ignore-value: handle pointer types, too
39588         * lib/ignore-value.h (__attribute__): Remove definition.
39589         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
39590         of a more concise and more-often effective "(void) i" statement.
39591         (ignore_ptr): New function to suppress warnings from functions that
39592         return pointers, and to make it explicit that one function doesn't
39593         handle all cases.
39594
39595 2009-08-25  Bruno Haible  <bruno@clisp.org>
39596
39597         dup2: work around a Linux bug.
39598         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
39599         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
39600         * doc/posix-functions/dup2.texi: Mention the Linux bug.
39601         Reported by Simon Josefsson.
39602
39603 2009-08-25  Jim Meyering  <meyering@redhat.com>
39604
39605         libguestfs uses gnulib
39606         * users.txt: Add libguestfs.
39607
39608 2009-08-24  Eric Blake  <ebb9@byu.net>
39609
39610         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
39611         * lib/pipe2.c (includes): Add binary-io.h.
39612         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
39613
39614 2009-08-24  Bruno Haible  <bruno@clisp.org>
39615
39616         Tolerate declared but missing accept4 syscall.
39617         * lib/accept4.c (accept4): Invoke original accept4 function first, if
39618         available.
39619         * lib/sys_socket.in.h (accept4): If the function is already present,
39620         override it.
39621         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
39622         * modules/accept4 (Makefile.am): Compile accept4.c always.
39623         Reported by Paolo Bonzini and Eric Blake.
39624
39625 2009-08-23  Bruno Haible  <bruno@clisp.org>
39626
39627         New module 'accept4'.
39628         * lib/sys_socket.in.h (accept4): New declaration.
39629         * lib/accept4.c: New file.
39630         * m4/accept4.m4: New file.
39631         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39632         GNULIB_ACCEPT4, HAVE_ACCEPT4.
39633         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
39634         HAVE_ACCEPT4.
39635         * modules/accept4: New file.
39636         * doc/glibc-functions/accept4.texi: Mention the new module.
39637
39638 2009-08-24  Jim Meyering  <meyering@redhat.com>
39639
39640         progname: also set global program_invocation_name, when possible
39641         Before this change, a libtool-enabled program that calls glibc's
39642         error function would report the program name as
39643         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
39644         * modules/progname (configure.ac): Check for a declaration of
39645         program_invocation_name.
39646         * lib/progname.c:  Include <errno.h>.
39647         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
39648         Set program_invocation_name.
39649
39650 2009-08-23  Bruno Haible  <bruno@clisp.org>
39651
39652         * lib/dup3.c: Include <string.h>.
39653
39654 2009-08-23  Bruno Haible  <bruno@clisp.org>
39655
39656         * lib/dup3.c (dup3): Test only once whether the system actually exists.
39657         * lib/pipe2.c (pipe2): Likewise.
39658         Suggested by Eric Blake.
39659
39660 2009-08-23  Bruno Haible  <bruno@clisp.org>
39661
39662         Tolerate declared but missing dup3 syscall.
39663         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
39664         * lib/unistd.in.h (dup3): If the function is already present,
39665         override it.
39666         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
39667         * modules/dup3 (Makefile.am): Compile dup3.c always.
39668         Reported by Paolo Bonzini.
39669
39670 2009-08-23  Bruno Haible  <bruno@clisp.org>
39671
39672         Tolerate declared but missing pipe2 syscall.
39673         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
39674         available.
39675         * lib/unistd.in.h (pipe2): If the function is already present,
39676         override it.
39677         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
39678         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
39679         Reported by Paolo Bonzini.
39680
39681 2009-08-23  Bruno Haible  <bruno@clisp.org>
39682
39683         * lib/pipe2.c (pipe2): Move #ifs inside function.
39684
39685 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39686
39687         quotearg: document limitations of quote_these_too
39688         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
39689         those limitations are created.
39690         * lib/quotearg.h (set_char_quoting): Document that digits and
39691         letters that are special after backslash are not permitted.
39692         (quotearg_char): Cross-reference set_char_quoting documentation.
39693
39694 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
39695
39696         quotearg: implement custom_quoting_style
39697         * lib/quotearg.c: (struct quoting_options): Add left_quote and
39698         right_quote fields.
39699         (set_custom_quoting): New public function.
39700         (quotearg_buffer_restyled): Add left_quote and right_quote
39701         arguments, handle them very much like locale quoting, and update
39702         all uses.
39703         (quotearg_n_custom): New public function.
39704         (quotearg_n_custom_mem): New public function.
39705         (quotearg_custom): New public function.
39706         (quotearg_custom_mem): New public function.
39707         * lib/quotearg.h: Prototype and document new public functions.
39708         (enum quoting_style): For escape_quoting_style and
39709         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
39710         ignored even though they're otherwise like c_quoting_style.
39711         Add custom_quoting_style member and document with comparison to
39712         clocale_quoting_style.
39713         * tests/test-quotearg.c (custom_quotes): New array.
39714         (custom_results): New array.
39715         (main): Extend to test custom quoting.
39716
39717 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39718
39719         quotearg: fix right quote escaping when it's in quote_these_too
39720         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
39721         quote, be sure to prepend only one backslash.
39722         * tests/test-quotearg.c (use_quote_double_quotes): New function.
39723         (main): Test it.
39724
39725 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39726
39727         quotearg-tests: test escaping of embedded locale quotes
39728         * tests/test-quotearg.c (struct result_strings): Add member for
39729         new input.
39730         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
39731         (inputs): Add new input.
39732         (results_g): Add expected results.
39733         (flag_results): Likewise.
39734         (locale_results): Likewise.
39735         (compare_strings): Check those.
39736
39737 2009-08-23  Bruno Haible  <bruno@clisp.org>
39738
39739         Tests for module 'dup3'.
39740         * modules/dup3-tests: New file.
39741         * tests/test-dup3.c: New file.
39742
39743         New module 'dup3'.
39744         * lib/unistd.in.h (dup3): New declaration.
39745         * lib/dup3.c: New file.
39746         * m4/dup3.m4: New file.
39747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
39748         HAVE_DUP3.
39749         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
39750         * modules/dup3: New file.
39751         * doc/glibc-functions/dup3.texi: Mention the new module.
39752
39753 2009-08-23  Bruno Haible  <bruno@clisp.org>
39754
39755         Tweak the dup2 test.
39756         * tests/test-dup2.c (main): Create the test file empty. Verify that an
39757         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
39758         the test file is still empty. Fix argument order of lseek.
39759
39760 2009-08-23  Bruno Haible  <bruno@clisp.org>
39761
39762         Avoid test link errors when the modules getopt-gnu, gettext are used.
39763         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
39764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39765
39766 2009-08-23  Bruno Haible  <bruno@clisp.org>
39767
39768         Fix getdtablesize() on mingw.
39769         * lib/getdtablesize.c (getdtablesize): Implement differently.
39770         * lib/unistd.in.h (getdtablesize): Improve comment.
39771
39772 2009-08-23  Bruno Haible  <bruno@clisp.org>
39773
39774         New module 'mkostemp'.
39775         Based on Ulrich Drepper's 2007-08-10 change in glibc.
39776         * lib/stdlib.in.h (mksotemp): New declaration.
39777         * lib/mkostemp.c: New file, from glibc with modifications.
39778         * lib/tempname.h (GT_FILE): Remove outdated comment.
39779         (gen_tempname): Add flags argument.
39780         * lib/tempname.c (__GT_BIGFILE): Remove macro.
39781         (__GT_FILE): Map to 1.
39782         (small_open, large_open): Remove macros.
39783         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
39784         * lib/mkstemp.c (mkstemp): Update.
39785         * lib/mkdtemp.c (mkdtemp): Likewise.
39786         * m4/mkostemp.m4: New file.
39787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
39788         HAVE_MKOSTEMP.
39789         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
39790         HAVE_MKOSTEMP.
39791         * modules/mkostemp: New file, based on modules/mkstemp.
39792         * doc/glibc-functions/mkostemp.texi: Mention the new module.
39793         * NEWS: Mention the change.
39794
39795 2009-08-23  Bruno Haible  <bruno@clisp.org>
39796
39797         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
39798         Reported by Eric Blake.
39799
39800 2009-08-23  Bruno Haible  <bruno@clisp.org>
39801
39802         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
39803         Reported by Eric Blake.
39804
39805 2009-08-23  Bruno Haible  <bruno@clisp.org>
39806
39807         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39808         * modules/pipe2 (Depends-on): Likewise.
39809
39810 2009-08-23  Eric Blake  <ebb9@byu.net>
39811
39812         fcntl-h: add O_TTY_INIT support
39813         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39814         * tests/test-fcntl-h.c (o): Test it.
39815         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39816
39817         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39818         * modules/fcntl: Move <fcntl.h> header replacement...
39819         * modules/fcntl-h: ...to new name, so as not to collide with
39820         like-named function.
39821         * tests/test-fcntl.c: Rename...
39822         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39823         * modules/fcntl-tests: Rename...
39824         * modules/fcntl-h-tests: ...to this.  Update test file name.
39825         * modules/chdir-long (Depends-on): Update clients.
39826         * modules/chdir-safer (Depends-on): Likewise.
39827         * modules/fcntl-safer (Depends-on): Likewise.
39828         * modules/fts (Depends-on): Likewise.
39829         * modules/mkancesdirs (Depends-on): Likewise.
39830         * modules/mkdir-p (Depends-on): Likewise.
39831         * modules/open (Depends-on): Likewise.
39832         * modules/savewd (Depends-on): Likewise.
39833         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39834         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39835
39836 2009-08-22  Bruno Haible  <bruno@clisp.org>
39837
39838         * modules/binary-io (License): Relicense under LGPL.
39839         * modules/pipe2 (License): Likewise.
39840
39841 2009-08-22  Bruno Haible  <bruno@clisp.org>
39842
39843         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39844         return value.
39845         * lib/pipe-filter-gi.c (filter_init): Likewise.
39846         Reported by Eric Blake.
39847
39848 2009-08-22  Bruno Haible  <bruno@clisp.org>
39849
39850         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39851         * modules/pipe (Depends-on): Add pipe2.
39852
39853 2009-08-22  Bruno Haible  <bruno@clisp.org>
39854
39855         Tests for module 'pipe2'.
39856         * modules/pipe2-tests: New file.
39857         * tests/test-pipe2.c: New file.
39858
39859         New module 'pipe2'.
39860         * lib/unistd.in.h (pipe2): New declaration.
39861         * lib/pipe2.c: New file.
39862         * m4/pipe2.m4: New file.
39863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39864         HAVE_PIPE2.
39865         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39866         * modules/pipe2: New file.
39867         * doc/glibc-functions/pipe2.texi: Mention the new module.
39868
39869 2009-08-22  Bruno Haible  <bruno@clisp.org>
39870
39871         Reference some new glibc functions.
39872         * doc/glibc-functions/accept4.texi: New file.
39873         * doc/glibc-functions/dup3.texi: New file.
39874         * doc/glibc-functions/mkostemp.texi: New file.
39875         * doc/glibc-functions/pipe2.texi: New file.
39876         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39877         (Glibc sys/socket.h): Refer to accept4.
39878         (Glibc unistd.h): Refer to dup3, pipe2.
39879         Reported by Eric Blake.
39880
39881 2009-08-22  Jim Meyering  <meyering@redhat.com>
39882             Bruno Haible  <bruno@clisp.org>
39883
39884         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39885         This makes it so packages using automake-1.11's silent-rules option
39886         can print e.g., a single "GEN    configmake.h" line, rather than
39887         the 30+ statements that perform the job.  If you want to see the
39888         actual commands, you can still run "make V=1".
39889         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39890         so that make output is abbreviated when those variables are defined
39891         appropriately.
39892         * modules/argz: Likewise.
39893         * modules/arpa_inet: Likewise.
39894         * modules/byteswap: Likewise.
39895         * modules/configmake: Likewise.
39896         * modules/dirent: Likewise.
39897         * modules/errno: Likewise.
39898         * modules/fcntl: Likewise.
39899         * modules/float: Likewise.
39900         * modules/fnmatch: Likewise.
39901         * modules/getopt-posix: Likewise.
39902         * modules/glob: Likewise.
39903         * modules/iconv_open: Likewise.
39904         * modules/inttypes: Likewise.
39905         * modules/localcharset: Likewise.
39906         * modules/locale: Likewise.
39907         * modules/math: Likewise.
39908         * modules/netdb: Likewise.
39909         * modules/netinet_in: Likewise.
39910         * modules/poll: Likewise.
39911         * modules/posix_spawnp-tests: Likewise.
39912         * modules/sched: Likewise.
39913         * modules/search: Likewise.
39914         * modules/selinux-h: Likewise.
39915         * modules/signal: Likewise.
39916         * modules/spawn: Likewise.
39917         * modules/stdarg: Likewise.
39918         * modules/stdbool: Likewise.
39919         * modules/stddef: Likewise.
39920         * modules/stdint: Likewise.
39921         * modules/stdio: Likewise.
39922         * modules/stdlib: Likewise.
39923         * modules/string: Likewise.
39924         * modules/strings: Likewise.
39925         * modules/sys_file: Likewise.
39926         * modules/sys_ioctl: Likewise.
39927         * modules/sys_select: Likewise.
39928         * modules/sys_socket: Likewise.
39929         * modules/sys_stat: Likewise.
39930         * modules/sys_time: Likewise.
39931         * modules/sys_times: Likewise.
39932         * modules/sys_utsname: Likewise.
39933         * modules/sys_wait: Likewise.
39934         * modules/sysexits: Likewise.
39935         * modules/time: Likewise.
39936         * modules/unistd: Likewise.
39937         * modules/wchar: Likewise.
39938         * modules/wctype: Likewise.
39939
39940 2009-08-22  Jim Meyering  <meyering@redhat.com>
39941
39942         announce-gen: detect write failure
39943         * build-aux/announce-gen: Add Coda at end.
39944         Remove equivalent-but-more-verbose block at top.
39945
39946 2009-08-19  Akim Demaille  <demaille@gostai.com>
39947
39948         bootstrap: --help to stdout.
39949         * bootstrap (usage): Don't send --help to stderr.
39950         Use a here doc instead of a long string.
39951
39952 2009-08-21  Eric Blake  <ebb9@byu.net>
39953
39954         test-popen-safer: split from test-popen
39955         * tests/test-popen.c (main): Move...
39956         * tests/test-popen.h: ...into new file.
39957         * tests/test-popen-safer2.c: New file.
39958         * modules/popen-tests (Files): Add test-popen.h.
39959         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39960         Suggested by Bruno Haible.
39961
39962         test-fcntl-safer: split from test-open
39963         * tests/test-open.c (main): Move...
39964         * tests/test-open.h: ...into new file.
39965         * tests/test-fcntl-safer.c: New file.
39966         * modules/open-tests (Files): Add test-open.h.
39967         * modules/fcntl-safer-tests: New file.
39968         Suggested by Bruno Haible.
39969
39970         test-fopen-safer: split from test-fopen
39971         * tests/test-fopen.c (main): Move...
39972         * tests/test-fopen.h: ...into new file.
39973         * tests/test-fopen-safer.c: New file.
39974         * modules/fopen-tests (Files): Add test-fopen.h.
39975         * modules/fopen-safer-tests: New file.
39976         Suggested by Bruno Haible.
39977
39978 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39979
39980         popen-safer: test O_CLOEXEC at run-time.
39981         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39982
39983 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39984
39985         fcntl: move more flags to the header
39986         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39987         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39988         * lib/fcntl.in.h: Do both things here.
39989
39990 2009-08-21  Jim Meyering  <meyering@redhat.com>
39991
39992         consistently remove $@-t before redirecting to it
39993         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39994         * modules/alloca-opt: Likewise.
39995         * modules/byteswap: Likewise.
39996         * modules/fnmatch: Likewise.
39997         * modules/getopt-posix: Likewise.
39998         * modules/glob: Likewise.
39999         * modules/poll: Likewise.
40000         * modules/posix_spawnp-tests: Likewise.
40001         * modules/sys_socket: Likewise.
40002         * modules/sysexits: Likewise.
40003
40004 2009-08-21  Eric Blake  <ebb9@byu.net>
40005
40006         popen: simplify access to original popen
40007         * lib/popen.c (rpl_popen): No need to worry about popen being a
40008         macro.
40009         Reported by Bruno Haible.
40010
40011 2009-08-20  Eric Blake  <ebb9@byu.net>
40012
40013         build: avoid some compiler warnings
40014         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
40015         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
40016         type.
40017         (new_exclude_segment, excluded_file_pattern_p)
40018         (excluded_file_name_p): Reduce scope.
40019         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
40020         old-style declaration.
40021
40022 2009-08-20  Simon Josefsson  <simon@josefsson.org>
40023
40024         * tests/test-exclude1.sh: Handle Windows EOL.
40025         * tests/test-exclude2.sh: Likewise.
40026         * tests/test-exclude3.sh: Likewise.
40027         * tests/test-exclude4.sh: Likewise.
40028         * tests/test-exclude5.sh: Likewise.
40029         * tests/test-exclude6.sh: Likewise.
40030         * tests/test-exclude7.sh: Likewise.
40031
40032 2009-08-19  Akim Demaille  <demaille@gostai.com>
40033
40034         bootstrap: find sha1sum when named gsha1sum.
40035         * bootstrap (find_tool): New.
40036         ($SHA1SUM): New.
40037         Use it.
40038
40039 2009-08-20  Jim Meyering  <meyering@redhat.com>
40040
40041         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
40042         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
40043         expression that converts "." in a file name to "\." in the resulting
40044         regexp.  Start with a dummy statement, so that prior shell variable
40045         definitions are expanded portably.  Reported by Simon Josefsson.
40046
40047 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
40048
40049         Fix polling for writeability of a screen buffer.
40050         * lib/poll.c: Distinguish input and screen buffers for the
40051         Win32 implementation.
40052         * lib/select.c: Likewise.
40053
40054 2009-08-19  Eric Blake  <ebb9@byu.net>
40055
40056         popen-safer: prevent popen from clobbering std descriptors
40057         * modules/popen-safer: New file.
40058         * lib/popen-safer.c: Likewise.
40059         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
40060         * lib/stdio--.h (popen): Provide override.
40061         * lib/stdio-safer.h (popen_safer): Provide declaration.
40062         * tests/test-popen.c (includes): Partially test this.
40063         * modules/popen-safer-tests: New file, for more tests.
40064         * tests/test-popen-safer.c: Likewise.
40065         * MODULES.html.sh (file stream based Input/Output): Mention it.
40066
40067         tests: test some of the *-safer modules
40068         * modules/fopen-safer (Depends-on): Add fopen.
40069         * modules/fcntl-safer (Depends-on): Add fcntl.
40070         * modules/stdlib-safer (Depends-on): Add stdlib.
40071         (configure.ac): Set indicator.
40072         * modules/unistd-safer (configure.ac): Likewise.
40073         * modules/tmpfile-safer (configure.ac): Likewise.
40074         (Depends-on): Add tmpfile.
40075         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
40076         active.
40077         * tests/test-fopen.c (includes): Test safer versions when they are
40078         in use.
40079         * tests/test-open.c (includes): Likewise.
40080
40081         popen: fix cygwin 1.5 bug when stdin closed
40082         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
40083         * modules/popen: New file.
40084         * modules/popen-tests: Likewise.
40085         * tests/test-popen.c: Likewise.
40086         * m4/popen.m4: Likewise.
40087         * lib/popen.c: Likewise.
40088         * lib/stdio.in.h (popen): New declaration.
40089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
40090         * modules/stdio (Makefile.am): Likewise.
40091         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
40092
40093 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
40094
40095         maint.mk: give full control over update-copyright exclusions
40096         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
40097         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
40098         (update-copyright): Don't force inclusion of top-level
40099         ChangeLog.  Don't force exclusion of all COPYING files, but make
40100         them the default exclusion instead.
40101
40102 2009-08-16  Bruno Haible  <bruno@clisp.org>
40103
40104         Fix test failures on Solaris 10.
40105         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
40106         tests when Solaris iconv() is used.
40107         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40108         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40109         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40110         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40111         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40112
40113 2009-08-16  Bruno Haible  <bruno@clisp.org>
40114
40115         Fix test failures on Solaris 10.
40116         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
40117         'tr' program and pass it as first argument.
40118         * tests/test-pipe-filter-gi1.sh: Likewise.
40119         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
40120         program as first argument.
40121         * tests/test-pipe-filter-gi1.c (main): Likewise.
40122
40123 2009-08-16  Eric Blake  <ebb9@byu.net>
40124
40125         fpurge: fix previous commits
40126         * modules/fpurge (Makefile.am): Make replacement conditional,
40127         partially reverting 2007-04-29 change; missed in previous
40128         attempt.
40129         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
40130         is missing.
40131
40132 2009-08-16  Bruno Haible  <bruno@clisp.org>
40133
40134         Clarify fpurge's effect on the file position.
40135         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
40136         * tests/test-fpurge.c (main): Make a second pass for checking the file
40137         position.
40138
40139 2009-08-16  Bruno Haible  <bruno@clisp.org>
40140
40141         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
40142         declaration of fpurge is missing.
40143         * tests/test-fpurge.c (main): Check that the file has not more contents
40144         than expected. Close the file before removing it.
40145
40146 2009-08-15  Eric Blake  <ebb9@byu.net>
40147
40148         fpurge: don't wrap working cygwin implementation
40149         * lib/fpurge.c (fpurge): Fix comment typo.
40150         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
40151         1.7 to avoid replacement.
40152         * tests/test-fpurge.c (main): Enhance test.
40153
40154 2009-08-15  Eric Blake  <ebb9@byu.net>
40155         and Jim Meyering  <meyering@redhat.com>
40156
40157         test-update-copyright: skip if perl is insufficient
40158         * tests/test-update-copyright.sh: Failure to run maintainer tool
40159         should not cause testsuite failure on cygwin 1.5.
40160
40161 2009-08-14  Eric Blake  <ebb9@byu.net>
40162
40163         doc: mention more functions added in cygwin 1.7.0
40164         * doc/posix-headers/limits.texi (limits.h): Update for recent
40165         cygwin additions.
40166         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
40167         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
40168         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
40169         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
40170         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
40171
40172 2009-08-14  Eric Blake  <ebb9@byu.net>
40173
40174         maint.mk: simplify update-copyright rule
40175         * top/maint.mk (update-copyright-local): Delete, and document how
40176         to do it in cfg.mk instead.
40177         (update-copyright-exclude-regexp): Delete, and document how to do
40178         it in .x-update-copyright instead.
40179         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
40180         exclude ChangeLog.
40181
40182 2009-08-14  Bruno Haible  <bruno@clisp.org>
40183
40184         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
40185
40186 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40187
40188         maint.mk: support update-copyright-env
40189         * top/maint.mk (update-copyright-env): Define place-holder.
40190         (update-copyright): Expand $(update-copyright-env) before
40191         invoking update-copyright.
40192
40193 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40194
40195         update-copyright: implement forced reformatting
40196         * build-aux/update-copyright: Implement and document
40197         UPDATE_COPYRIGHT_FORCE.
40198         * tests/test-update-copyright.sh: Test it.
40199
40200 2009-08-14  Eric Blake  <ebb9@byu.net>
40201         and Bruno Haible  <bruno@clisp.org>
40202
40203         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
40204         * tests/test-locale.c: Revert previous patch related to NULL.
40205         * tests/test-stdio.c: Likewise.
40206         * tests/test-stdlib.c: Likewise.
40207         * tests/test-string.c: Likewise.
40208         * tests/test-unistd.c: Likewise.
40209         * modules/time-tests (Depends-on): Add verify.
40210         * modules/wchar-tests (Depends-on): Likewise.
40211         * tests/test-time.c: Test for NULL compliance.
40212         * tests/test-wchar.c: Likewise.
40213         * modules/locale (Depends-on): Add stddef.
40214         * modules/stdio (Depends-on): Likewise.
40215         * modules/stdlib (Depends-on): Likewise.
40216         * modules/string (Depends-on): Likewise.
40217         * modules/time (Depends-on): Likewise.
40218         * modules/unistd (Depends-on): Likewise.
40219         * modules/wchar (Depends-on): Likewise.
40220         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
40221         * lib/stdlib.in.h (includes): Likewise.
40222         * lib/string.in.h (includes): Likewise.
40223         * lib/time.in.h (includes): Likewise.
40224         * lib/unistd.in.h (includes): Likewise.
40225         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
40226         replaced.
40227         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40228         * m4/stddef_h.m4: New file.
40229         * modules/stddef: Likewise.
40230         * lib/stddef.in.h: Likewise.
40231         * modules/stddef-tests: Likewise.
40232         * tests/test-stddef.c: Likewise.
40233         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
40234         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
40235         * doc/posix-headers/locale.texi (locale.h): Likewise.
40236         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
40237         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40238         * doc/posix-headers/string.texi (string.h): Likewise.
40239         * doc/posix-headers/time.texi (time.h): Likewise.
40240         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
40241         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
40242
40243 2009-08-14  Eric Blake  <ebb9@byu.net>
40244
40245         doc: improve git diff of texinfo files
40246         * .gitattributes: Add rule for *.texi files, with hint on how to
40247         use it.
40248         Copied from m4, and based on a report by Bruno Haible.
40249
40250 2009-08-14  Bruno Haible  <bruno@clisp.org>
40251
40252         Disable multithread support by default on Cygwin 1.5.x for real.
40253         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
40254
40255 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40256
40257         update-copyright: much ado about intervals
40258         * build-aux/update-copyright: Implement and document
40259         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
40260         of copyright year intervals.
40261         Also, document UPDATE_COPYRIGHT_YEAR.
40262         * tests/test-update-copyright.sh: Test it.
40263
40264         update-copyright: convert 2-digit to 4-digit years
40265         * build-aux/update-copyright: Implement and document.
40266         * tests/test-update-copyright.sh: Update.
40267
40268 2009-08-14  Jim Meyering  <meyering@redhat.com>
40269
40270         test-exclude: avoid coreutils "make check" failure
40271         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
40272         just as in test-argmatch.c.
40273
40274 2009-08-13  Eric Blake  <ebb9@byu.net>
40275
40276         test-dup2: fix bad assumption
40277         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
40278         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
40279
40280         test-version-etc: fix CRLF portability issue
40281         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
40282         recognize \r.
40283         * tests/test-argp-version-etc-1.sh: Likewise.
40284
40285         getopt: update client modules
40286         * modules/argp (Depends-on): Use getopt-gnu.
40287         * modules/git-merge-changelog (Depends-on): Likewise.
40288         * modules/long-options (Depends-on): Likewise.
40289         * modules/xstrtol (Depends-on): Likewise.
40290
40291 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40292
40293         * tests/test-version-etc.sh: Don't fail on different
40294         project/version.  Don't fail on CRLF differences.  Rewrite to use
40295         multiple -e instead of multiple sed forks, suggested by Eric Blake
40296         <ebb9@byu.net>.
40297         * tests/test-argp-version-etc-1.sh: Likewise.
40298
40299 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40300
40301         * tests/test-version-etc.sh: Don't fail on different
40302         project/version.
40303
40304 2009-08-12  Bruno Haible  <bruno@clisp.org>
40305
40306         Tests for modules 'getopt-posix', 'getopt-gnu'.
40307         * modules/getopt-posix-tests: New file.
40308         * tests/test-getopt.c: New file.
40309         * tests/test-getopt.h: New file.
40310         * tests/test-getopt_long.h: New file.
40311
40312         New modules 'getopt-posix', 'getopt-gnu'.
40313         * modules/getopt-gnu: New file, renamed from modules/getopt.
40314         * modules/getopt-posix: New file.
40315         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
40316         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
40317         (gl_GETOPT): Remove macro.
40318         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
40319         Disable the test against BSD systems that declare optreset. Test
40320         against mingw bug. Test against lack of support of optional arguments
40321         on many platforms.
40322         * doc/glibc-headers/getopt.texi: Update module name and list of
40323         relevant platforms.
40324         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
40325         'getopt-gnu' and more portability problems.
40326         * NEWS: Mention the changes.
40327
40328 2009-08-12  Bruno Haible  <bruno@clisp.org>
40329
40330         Ensure that optarg etc. get declared by <unistd.h>.
40331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
40332         AC_USE_SYSTEM_EXTENSIONS.
40333         * modules/getopt (Depends-on): Add 'extensions'.
40334
40335 2009-08-12  Bruno Haible  <bruno@clisp.org>
40336
40337         Avoid test link errors.
40338         * modules/pipe-filter-ii-tests (Makefile.am): Define
40339         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
40340         * modules/pipe-filter-gi-tests (Makefile.am): Define
40341         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
40342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40343
40344 2009-08-12  Bruno Haible  <bruno@clisp.org>
40345
40346         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
40347         gl_GETOPT_SUBSTITUTE before.
40348         (gl_GETOPT): Use it.
40349         * m4/argp.m4 (gl_ARGP): Update.
40350         Reported by Sergey Poznyakoff.
40351
40352         * m4/getopt.m4: Reorder macros.
40353         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
40354         (gl_GETOPT_SUBSTITUTE): Remove macro.
40355
40356 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40357
40358         Minor improvement in gitlog-to-changelog
40359
40360         * build-aux/gitlog-to-changelog: New option `--format' makes
40361         output format string configurable.
40362
40363 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40364
40365         Optimize exclude: use hash tables for non-wildcard patterns.
40366
40367         * lib/exclude.c: Include hash.h and mbuiter.h
40368         (struct exclude_pattern, exclude_segment): New data types.
40369         (struct exclude): Rewrite.
40370         (fnmatch_pattern_has_wildcards): New function.
40371         (new_exclude_segment, free_exclude_segment): New functions.
40372         (excluded_file_pattern_p, excluded_file_name_p): New functions.
40373         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
40374         * lib/exclude.h (is_fnmatch_pattern): New prototype.
40375         * modules/exclude: Depend on hash and mbuiter.
40376
40377         * modules/exclude-tests: New file.
40378         * tests/test-exclude.c: New file.
40379         * tests/test-exclude1.sh: New file.
40380         * tests/test-exclude2.sh: New file.
40381         * tests/test-exclude3.sh: New file.
40382         * tests/test-exclude4.sh: New file.
40383         * tests/test-exclude5.sh: New file.
40384         * tests/test-exclude6.sh: New file.
40385         * tests/test-exclude7.sh: New file.
40386
40387 2009-08-12  Bruno Haible  <bruno@clisp.org>
40388
40389         Ensure that getopt() gets declared by <unistd.h>.
40390         * lib/unistd.in.h: Conditionally include getopt.h.
40391         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
40392         Set GNULIB_UNISTD_H_GETOPT.
40393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40394         GNULIB_UNISTD_H_GETOPT.
40395         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
40396
40397 2009-08-12  Bruno Haible  <bruno@clisp.org>
40398
40399         Clarify logic.
40400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
40401         gl_replace_getopt instead of GETOPT_H.
40402
40403 2009-08-12  Bruno Haible  <bruno@clisp.org>
40404
40405         * m4/getopt.m4: Add comments.
40406
40407 2009-08-12  Bruno Haible  <bruno@clisp.org>
40408
40409         Disable multithread support by default on Cygwin 1.5.x.
40410         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
40411         set gl_use_threads=no if not specified otherwise.
40412
40413 2009-08-11  Bruno Haible  <bruno@clisp.org>
40414
40415         Avoid compilation error on NetBSD 5.0.
40416         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
40417         * tests/test-stdio.c: Likewise.
40418         * tests/test-stdlib.c: Likewise.
40419         * tests/test-string.c: Likewise.
40420         * tests/test-unistd.c: Likewise.
40421         Reported by Greg Troxel <gdt@ir.bbn.com>
40422         at <https://savannah.gnu.org/support/?106973>.
40423
40424 2009-08-11  Bruno Haible  <bruno@clisp.org>
40425
40426         * modules/dup2-tests (Depends-on): Remove close.
40427
40428         Undo 2009-07-19 commit.
40429         * modules/acl-tests (Depends-on): Remove close.
40430         * modules/binary-io-tests (Depends-on): Likewise.
40431         * modules/closein-tests (Depends-on): Likewise.
40432         * modules/flock-tests (Depends-on): Likewise.
40433         * modules/fsync-tests (Depends-on): Likewise.
40434         * modules/lseek-tests (Depends-on): Likewise.
40435         * modules/pipe-tests (Depends-on): Likewise.
40436         * modules/posix_spawn-tests (Depends-on): Likewise.
40437         * modules/posix_spawnp-tests (Depends-on): Likewise.
40438         * modules/stat-time-tests (Depends-on): Likewise.
40439         * modules/yesno-tests (Depends-on): Likewise.
40440
40441 2009-08-10  Bruno Haible  <bruno@clisp.org>
40442
40443         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
40444
40445 2009-08-10  Bruno Haible  <bruno@clisp.org>
40446
40447         Fix a gcc warning.
40448         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
40449
40450 2009-08-10  Bruno Haible  <bruno@clisp.org>
40451
40452         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
40453         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
40454         not only the first time.
40455         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
40456         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
40457         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
40458         is 1, not only the the first time.
40459
40460 2009-08-10  Bruno Haible  <bruno@clisp.org>
40461
40462         Make it possible to use module 'gethostname' without module 'close'.
40463         * lib/unistd.in.h (close): Evoke a link error only if
40464         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40466         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40467         * modules/unistd (Makefile.am): Substitute
40468         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40469         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
40470         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
40472         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40473         * modules/sys_ioctl (Makefile.am): Substitute
40474         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40475         * modules/socket (configure.ac): On native Windows, set
40476         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
40477         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40478         Reported by Sam Steingold <sds@gnu.org>.
40479
40480 2009-08-10  Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
40483         * modules/ioctl (configure.ac): Likewise.
40484
40485 2009-08-10  Bruno Haible  <bruno@clisp.org>
40486
40487         Avoid collision between gnulib wrapper and libintl wrapper.
40488         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
40489         already defined in intl/printf.c.
40490         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
40491         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
40492
40493 2009-08-09  Bruno Haible  <bruno@clisp.org>
40494
40495         Make <sys/select.h> really self-contained, also on Solaris 10.
40496         * lib/sys_select.in.h: Include <string.h>.
40497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
40498         Solaris 10 problem.
40499         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
40500         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
40501         Reported by Jim Meyering.
40502
40503 2009-08-09  Bruno Haible  <bruno@clisp.org>
40504
40505         Avoid warnings from 'aclocal' that are due to a use of macro name
40506         AM_XGETTEXT_OPTION that is not defined in automake.
40507         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
40508         automake.
40509         * modules/error (configure.ac): Likewise.
40510         * modules/propername (configure.ac): Likewise.
40511         * modules/vasprintf (configure.ac): Likewise.
40512         * modules/verror (configure.ac): Likewise.
40513         * modules/xprintf (configure.ac): Likewise.
40514         * modules/xvasprintf (configure.ac): Likewise.
40515
40516 2009-08-08  Bruno Haible  <bruno@clisp.org>
40517
40518         Avoid compilation error in C++ mode.
40519         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
40520         Reported by Sam Steingold <sds@gnu.org>.
40521
40522 2009-08-08  Bruno Haible  <bruno@clisp.org>
40523
40524         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
40525         for the various Unix platforms.
40526         * doc/posix-headers/limits.texi: Update platforms list regarding
40527         HOST_NAME_MAX.
40528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40529
40530 2009-08-07  Jim Meyering  <meyering@redhat.com>
40531
40532         selinux-at: fix typo in a comment
40533         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
40534         Spotted by Paolo Bonzini.
40535
40536         selinux-at: remove redundant m4 code, add documentation
40537         * modules/selinux-at (configure.ac): Remove redundant code.
40538         LIB_SELINUX is already set via the dependent module, selinux-h.
40539         (Include): Add quotes around selinux-at.h.
40540         * lib/selinux-at.h: Add documentation.
40541         Reported by Bruno Haible in
40542         http://marc.info/?l=gnulib-bug&m=124958988300749
40543
40544 2009-08-07  Bruno Haible  <bruno@clisp.org>
40545
40546         Avoid link error on MacOS X 10.3 and 10.4.
40547         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
40548         on non-ELF systems.
40549         * lib/argp-pv.c (argp_program_version): Likewise.
40550         Reported by Simon Josefsson.
40551
40552 2009-08-07  Simon Josefsson  <simon@josefsson.org>
40553
40554         * tests/test-version-etc.sh: Use $EXEEXT.
40555
40556 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
40557
40558         update-copyright: update documentation to point to maint.mk
40559         * build-aux/update-copyright: Here.
40560
40561 2009-08-06  Jim Meyering  <meyering@redhat.com>
40562
40563         maint.mk: support update-copyright-local
40564         * top/maint.mk (update-copyright-local): Define place-holder.
40565         (update-copyright): Depend on $(update-copyright-local).
40566
40567 2009-08-06  Jim Meyering  <meyering@redhat.com>
40568
40569         selinux-at: new module
40570         Initially written for coreutils, this module will soon be
40571         used by findutils, too.
40572         * MODULES.html.sh [Misc]: Add selinux-at.
40573         * lib/selinux-at.h: New file, from coreutils.
40574         * lib/selinux-at.c: Likewise.
40575         * modules/selinux-at: Likewise.
40576         (License): Change from LGPL to GPL, since it depends
40577         on the GPL'd openat module.
40578
40579         doc: update README
40580         * README: Remove references to cogito.
40581         Remove cvs-repo-updating instructions from 2007.
40582         Don't imply that CVS is better if you have limited disk space.
40583
40584 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40585
40586         update-copyright: support C-style comments
40587         * build-aux/update-copyright: Implement and document.
40588         * tests/test-update-copyright.sh: Test.
40589
40590 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40591
40592         update-copyright: support omitted "(C)"
40593         * build-aux/update-copyright: Implement and document.  Also,
40594         allow variable whitespace before "(C)".
40595         * tests/test-update-copyright.sh: Test.
40596
40597 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40598
40599         update-copyright: don't trip on non-FSF copyright statements
40600         * build-aux/update-copyright: Fix so that the first correctly
40601         formatted FSF copyright statement is recognized no matter what
40602         appears before it.  Update documentation.
40603         * tests/test-update-copyright.sh: Test that.
40604
40605 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40606
40607         update-copyright: clean up code a little
40608         * build-aux/update-copyright: Append "_re" to the name of any
40609         variable holding a regular expression.
40610         Replace "old" and "new" with "stmt" in variable names.
40611         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
40612         handled correctly.
40613         Format code more consistently.
40614
40615 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40616
40617         update-copyright-tests: improve portability
40618         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
40619         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
40620
40621 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40622
40623         update-copyright: support @copyright{} and &copy;
40624         * build-aux/update-copyright: Implement and document.
40625         * tests/test-update-copyright.sh: Test.
40626
40627 2009-08-04  Jim Meyering  <meyering@redhat.com>
40628
40629         update-copyright-tests: correctly test EOL=\r\n handling
40630         * tests/test-update-copyright.sh: Put \r at the end of some lines
40631         for the dos-eol tests.  Based on a patch by Joel E. Denny.
40632
40633         maint.mk: make update-copyright exclusion list more configurable
40634         * top/maint.mk (update-copyright): Default to excluding COPYING,
40635         but allow an override, in case someone does want to update that file.
40636
40637         maint.mk: don't update copyright date in COPYING
40638         * top/maint.mk (update-copyright): Exclude COPYING.
40639
40640         maint.mk: add a copyright-updating rule
40641         * top/maint.mk (update-copyright): New rule.
40642         Derived from coreutils/Makefile.am.
40643
40644         update-copyright: rename some variables
40645         * build-aux/update-copyright: Rename a few variables for clarity.
40646         Tweak syntax.  List Joel E. Denny as coauthor.
40647
40648 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40649
40650         update-copyright: fix bug for 2-digit last year and add tests
40651         * build-aux/update-copyright: Fix bug.
40652         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
40653         specified.
40654         * modules/update-copyright-tests: New
40655         * tests/test-update-copyright.sh: New.
40656
40657 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40658
40659         update-copyright: handle leading tabs in line prefix
40660         * build-aux/update-copyright: Count leading tabs as 8 spaces
40661         when computing margin.  This helps with the formatting of
40662         ChangeLogs, for example.
40663         Fix documentation a little.
40664
40665 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40666
40667         update-copyright: support EOL=\r\n
40668         * build-aux/update-copyright: Implement that.
40669
40670 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40671
40672         update-copyright: automatically format copyright statements
40673         * build-aux/update-copyright: Implement that.
40674         Also, be a little more predictable and safer by always failing
40675         when the full copyright format is not perfectly recognized as an
40676         unbroken whole.  Discussed at
40677         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
40678         Rewrite documentation.
40679
40680 2009-08-03  Bruno Haible  <bruno@clisp.org>
40681
40682         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
40683
40684 2009-08-02  Bruno Haible  <bruno@clisp.org>
40685
40686         Tests for module 'uname'.
40687         * modules/uname-tests: New file.
40688         * tests/test-uname.c: New file.
40689
40690         New module 'uname'.
40691         * lib/uname.c: New file.
40692         * m4/uname.m4: New file.
40693         * modules/uname: New file.
40694         * doc/posix-functions/uname.texi: Mention the new module.
40695
40696 2009-08-02  Bruno Haible  <bruno@clisp.org>
40697
40698         Tests for module 'sys_utsname'.
40699         * modules/sys_utsname-tests: New file.
40700         * tests/test-sys_utsname.c: New file.
40701
40702         New module 'sys_utsname'.
40703         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
40704         * m4/sys_utsname_h.m4: New file.
40705         * modules/sys_utsname: New file.
40706         * doc/posix-headers/sys_utsname.texi: Mention the new module.
40707
40708 2009-08-02  Bruno Haible  <bruno@clisp.org>
40709
40710         Implicitly initialize the sockets library.
40711         * lib/gethostname.c: Include sockets.h.
40712         (rpl_gethostname): Invoke gl_sockets_startup.
40713         * lib/socket.c: Include sockets.h.
40714         (rpl_socket): Invoke gl_sockets_startup.
40715         * modules/gethostname (Depends-on): Add sockets.
40716         * modules/socket (Depends-on): Likewise.
40717         * tests/test-poll.c: Don't include sockets.h.
40718         (main): Don't invoke gl_sockets_startup.
40719         * tests/test-select.c: Don't include sockets.h.
40720         (main): Don't invoke gl_sockets_startup.
40721
40722 2009-08-02  Bruno Haible  <bruno@clisp.org>
40723
40724         Allow multiple calls to gl_sockets_startup.
40725         * lib/sockets.c (initialized_sockets_version): New variable.
40726         (gl_sockets_startup): Do nothing if already called for this or a higher
40727         version.
40728         (gl_sockets_cleanup): Reset initialized_sockets_version.
40729
40730 2009-08-03  Simon Josefsson  <simon@josefsson.org>
40731
40732         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
40733         different project/version.
40734
40735 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
40736             Bruno Haible  <bruno@clisp.org>
40737
40738         Tests for module 'pipe-filter-gi'.
40739         * modules/pipe-filter-gi-tests: New file.
40740         * tests/test-pipe-filter-gi1.sh: New file.
40741         * tests/test-pipe-filter-gi1.c: New file.
40742         * tests/test-pipe-filter-gi2.sh: New file.
40743         * tests/test-pipe-filter-gi2-main.c: New file.
40744         * tests/test-pipe-filter-gi2-child.c: New file.
40745
40746         New module 'pipe-filter-gi'.
40747         * lib/pipe-filter-gi.c: New file.
40748         * modules/pipe-filter-gi: New file.
40749
40750 2009-08-02  Bruno Haible  <bruno@clisp.org>
40751             Paolo Bonzini  <bonzini@gnu.org>
40752
40753         Tests for module 'pipe-filter-ii'.
40754         * modules/pipe-filter-ii-tests: New file.
40755         * tests/test-pipe-filter-ii1.sh: New file.
40756         * tests/test-pipe-filter-ii1.c: New file.
40757         * tests/test-pipe-filter-ii2.sh: New file.
40758         * tests/test-pipe-filter-ii2-main.c: New file.
40759         * tests/test-pipe-filter-ii2-child.c: New file.
40760
40761         New module 'pipe-filter-ii'.
40762         * lib/pipe-filter.h: New file.
40763         * lib/pipe-filter-ii.c: New file.
40764         * lib/pipe-filter-aux.h: New file.
40765         * modules/pipe-filter-ii: New file.
40766
40767 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40768
40769         * lib/gc-libgcrypt.c: Change copyright to FSF.
40770         * lib/gc-gnulib.c: Likewise.
40771
40772 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
40773
40774         * lib/gethostname.c: Include limits.h.
40775
40776 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40777             Bruno Haible  <bruno@clisp.org>
40778
40779         Ensure HOST_NAME_MAX as part of the gethostname module.
40780         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
40781         define also HOST_NAME_MAX.
40782         * tests/test-gethostname.c: Include <limits.h>.
40783         (main): Check also HOST_NAME_MAX.
40784         * doc/posix-headers/limits.texi: Document the mingw problem.
40785
40786 2009-08-02  Bruno Haible  <bruno@clisp.org>
40787
40788         * lib/gethostname.c (gethostname): Fix handling of large len argument.
40789         Add comments.
40790
40791 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40792
40793         * lib/gethostname.c: Add Windows wrapper.
40794         * m4/gethostname.m4: Look for gethostname in -lws2_32.
40795         * modules/gethostname: Depend on sys_socket & errno, for also
40796         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
40797         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
40798
40799 2009-07-31  Jim Meyering  <meyering@redhat.com>
40800
40801         getloadavg: fix symbol name in comment
40802         * lib/getloadavg.c: Correct a typo I introduced when adding
40803         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
40804         Matt Kraai spotted the problem.
40805
40806 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40807
40808         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40809         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40810         code also if ! defined N_NAME_POINTER.
40811         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40812         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40813         but the n_name member is a 12-byte array.
40814
40815 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40816
40817         update-copyright: generalize comment handling
40818         * build-aux/update-copyright: Handle copyright statements
40819         within more comment styles.
40820         Document usage.
40821         Report any file with an external copyright holder or parse failure.
40822
40823 2009-07-29  Jim Meyering  <meyering@redhat.com>
40824
40825         mktime: correct setting of REPLACE_MKTIME
40826         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40827
40828         update-copyright: new module
40829         * modules/update-copyright: New file.
40830         * build-aux/update-copyright: New file.
40831         * MODULES.html.sh (maint+release support): Add update-copyright.
40832
40833 2009-07-27  Bruno Haible  <bruno@clisp.org>
40834
40835         Fix compilation error when <ctime> is used and mktime is replaced.
40836         * lib/time.in.h (mktime): New declaration.
40837         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40838         REPLACE_MKTIME instead of defining mktime in config.h.
40839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40840         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40841         Reported by Ross McFarland <rwmcfa1@neces.com>.
40842
40843 2009-07-27  Bruno Haible  <bruno@clisp.org>
40844
40845         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40846         Reported by Matt Kraai <mkraai@beckman.com>.
40847
40848 2009-07-25  Jim Meyering  <meyering@redhat.com>
40849
40850         maint.mk: avoid warnings about missing files
40851         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40852         diagnostic when .prev-version does not exist.
40853         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40854         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40855         nonexistent cfg.mk.
40856         Suggestions from Simon Josefsson.
40857
40858 2009-07-25  Bruno Haible  <bruno@clisp.org>
40859
40860         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40861         defined as macros. Needed on QNX 6.4.1.
40862         Reported by Matt Kraai <mkraai@beckman.com>.
40863
40864 2009-07-23  Jim Meyering  <meyering@redhat.com>
40865
40866         maint.mk: invoke "make dist" with a working value of XZ_OPT
40867         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40868
40869 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40870
40871         Make fseeko.c compile on QNX.
40872         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40873
40874 2009-07-22  Peter Simons  <simons@cryp.to>
40875
40876         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40877         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40878         * lib/md4.h: Likewise.
40879         * lib/md5.h: Likewise.
40880         * lib/sha1.h: Likewise.
40881         * lib/sha256.h: Likewise.
40882         * lib/sha512.h: Likewise.
40883
40884         tests-sha1: don't assign literal string to 'char *' variable
40885         * tests/test-sha1.c (main): Declare locals with "const" to match
40886         attributes of the right hand side.
40887
40888 2009-07-21  Eric Blake  <ebb9@byu.net>
40889
40890         dup2: fix more mingw problems
40891         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40892         fd to itself.
40893         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40894         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40895         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40896         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40897         care of mingw bugs.
40898
40899 2009-07-21  Jim Meyering  <meyering@redhat.com>
40900
40901         vc-list-files: avoid failure when /bin/sh is dash
40902         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40903         On some Debian based systems, /bin/sh is a symlink to dash, and running
40904         this command would omit the "/" following each 'tests' prefix:
40905           dash -x build-aux/vc-list-files -C . tests
40906         That is because bash and dash work differently:
40907           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40908           bash ok
40909           dash odd
40910
40911 2009-07-21  Eric Blake  <ebb9@byu.net>
40912
40913         dup2-tests: test previous patch
40914         * modules/dup2-tests: New file.
40915         * tests/test-dup2.c: Likewise.
40916         * tests/test-open.c (main): Avoid unspecified behavior.
40917         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40918         test.
40919
40920         dup2: work around mingw and cygwin 1.5 bug
40921         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40923         * modules/unistd (Makefile.am): Substitute it.
40924         * lib/unistd.in.h (dup2): Declare the replacement.
40925         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40926         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40927         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40928         * modules/execute (Depends-on): Add dup2.
40929         * modules/fseterr (Depends-on): Likewise.
40930         * modules/pipe (Depends-on): Likewise.
40931         * modules/posix_spawn-internal (Depends-on): Likewise.
40932
40933 2009-07-21  Bruno Haible  <bruno@clisp.org>
40934
40935         * modules/.gitattributes: New file.
40936
40937 2009-07-20  Bruno Haible  <bruno@clisp.org>
40938
40939         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40940         (main): Use it.
40941
40942 2009-07-20  Eric Blake  <ebb9@byu.net>
40943
40944         test-pipe: make a bit more robust.
40945         * tests/test-pipe.c (myerr): Allow error messages regardless of
40946         what we do to stderr.
40947         (test_pipe): Rearrange to avoid deadlock.
40948         (child_main): Try a larger read, to ensure we avoided deadlock.
40949         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40950         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40951         if misused.
40952
40953 2009-07-19  Jim Meyering  <meyering@redhat.com>
40954
40955         fts: avoid false-positive cycle-detection
40956         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40957         for each new command line argument.
40958
40959 2009-07-19  Bruno Haible  <bruno@clisp.org>
40960
40961         Fix build error on mingw with the modules sys_select and unistd.
40962         * modules/acl-tests (Depends-on): Add close.
40963         * modules/binary-io-tests (Depends-on): Likewise.
40964         * modules/closein-tests (Depends-on): Likewise.
40965         * modules/flock-tests (Depends-on): Likewise.
40966         * modules/fsync-tests (Depends-on): Likewise.
40967         * modules/lseek-tests (Depends-on): Likewise.
40968         * modules/pipe-tests (Depends-on): Likewise.
40969         * modules/posix_spawn-tests (Depends-on): Likewise.
40970         * modules/posix_spawnp-tests (Depends-on): Likewise.
40971         * modules/stat-time-tests (Depends-on): Likewise.
40972         * modules/yesno-tests (Depends-on): Likewise.
40973
40974 2009-07-19  Bruno Haible  <bruno@clisp.org>
40975
40976         Unify conditionals.
40977         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40978         macros, not at the compiler macros.
40979         * lib/pipe.c: Likewise.
40980         * lib/execute.c: Likewise.
40981         * lib/spawni.c: Likewise.
40982
40983 2009-07-19  Bruno Haible  <bruno@clisp.org>
40984
40985         Fix handling of closed stdin/stdout/stderr on mingw.
40986         * lib/w32spawn.h: Include unistd.h.
40987         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40988         file descriptor with O_NOINHERIT flag.
40989         (fd_safer_noinherit): New function, based on fd-safer.c.
40990         (dup_safer_noinherit): New function, based on dup-safer.c.
40991         (undup_safer_noinherit): New function.
40992         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40993         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40994         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40995         instead of fd_safer.
40996         * tests/test-pipe.c: Include <windows.h>.
40997         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40998         result.
40999
41000         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
41001         from main.
41002         (test_pipe): Pass an extra argument for disambiguation.
41003         (main): Invoke parent_main or child_main.
41004
41005         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
41006         consistently.
41007
41008 2009-07-18  Eric Blake  <ebb9@byu.net>
41009
41010         test-pipe: fix mingw build
41011         * tests/test-pipe.c (main): Avoid fcntl on mingw.
41012
41013 2009-07-18  Bruno Haible  <bruno@clisp.org>
41014
41015         * modules/pipe-tests (Makefile.am): Fix typo.
41016
41017 2009-07-18  Eric Blake  <ebb9@byu.net>
41018
41019         error: fix mingw build
41020         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
41021         Reported by Bruno Haible.
41022
41023         error: avoid undefined use of stdout
41024         * lib/error.c (error, error_at_line): Check that fd 1 is open
41025         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
41026         is handling faults and the close_stdout module wants to report the
41027         detection of closed stdout as an error.
41028
41029 2009-07-17  Eric Blake  <ebb9@byu.net>
41030
41031         pipe: be robust in face of closed fds
41032         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
41033         should cause child to misbehave.
41034         * modules/pipe-tests: New module.
41035         * tests/test-pipe.c: New file.
41036         * tests/test-pipe.sh: New file.
41037         Reported by Akim Demaille.
41038
41039 2009-07-14  Bruno Haible  <bruno@clisp.org>
41040
41041         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
41042         Reported by anonymous kc.
41043
41044 2009-07-07  Jim Meyering  <meyering@redhat.com>
41045
41046         maint.mk: don't look for translatable strings in *.m4 or *.mk
41047         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
41048         when searching for translatable strings.
41049
41050 2009-07-05  Jim Meyering  <meyering@redhat.com>
41051
41052         remove superfluous parentheses in STREQ definition
41053         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
41054         * lib/getugroups.c (STREQ): Likewise.
41055         * lib/fnmatch.c (STREQ): Likewise.
41056         Spotted by Bruno Haible.
41057
41058 2009-07-04  Jim Meyering  <meyering@redhat.com>
41059
41060         argv-iter: new module
41061         * MODULES.html.sh: Add argv-iter.
41062         * lib/argv-iter.c, lib/argv-iter.h: New files.
41063         * modules/argv-iter: New file.
41064         * modules/argv-iter-tests: New file.
41065         * tests/test-argv-iter.c: Test it.
41066
41067 2009-07-04  Bruno Haible  <bruno@clisp.org>
41068
41069         Fix assertion.
41070         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
41071         contains more exact copies of a given entry than file2, leave the extra
41072         copies unpaired rather than aborting.
41073         Reported by Eric Blake.
41074
41075 2009-07-02  Bruno Haible  <bruno@clisp.org>
41076
41077         Speedup git-merge-changelog for git cherry-pick.
41078         * lib/git-merge-changelog.c (struct entries_mapping): New type.
41079         (entries_mapping_get): New function, extracted from compute_mapping.
41080         (entries_mapping_reverse_get): New function.
41081         (compute_mapping): Add a 'full' argument. Return the result in a
41082         'struct entries_mapping'.
41083         (main): Update. Access the mappings through entries_mapping_get.
41084         Reported by Eric Blake.
41085
41086 2009-07-02  Bruno Haible  <bruno@clisp.org>
41087
41088         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
41089         best_i.
41090
41091 2009-07-02  Bruno Haible  <bruno@clisp.org>
41092
41093         Speed up approximate search for matching ChangeLog entries.
41094         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
41095         argument. Call fstrcmp_bounded instead of fstrcmp.
41096         (compute_mapping, try_split_merged_entry, main): Update callers.
41097
41098 2009-07-02  Bruno Haible  <bruno@clisp.org>
41099
41100         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
41101
41102 2009-06-30  Bruno Haible  <bruno@clisp.org>
41103
41104         Reduce the number of uc_is_cased calls.
41105         * lib/unicase.h (casing_suffix_context_t): Add
41106         'first_char_except_ignorable' field.
41107         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
41108         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
41109         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
41110         Update initializer.
41111         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
41112         case-ignorable characters.
41113         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
41114         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
41115         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
41116         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
41117         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
41118
41119 2009-06-30  Bruno Haible  <bruno@clisp.org>
41120
41121         Tests for module 'unicase/ignorable'.
41122         * modules/unicase/ignorable-tests: New file.
41123         * tests/unicase/test-ignorable.c: New file, generated by
41124         gen-uni-tables.
41125
41126         Tests for module 'unicase/cased'.
41127         * modules/unicase/cased-tests: New file.
41128         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
41129         * tests/unicase/test-predicate-part1.h: New file, derived from
41130         tests/unictype/test-predicate-part1.h.
41131         * tests/unicase/test-predicate-part2.h: New file, same as
41132         tests/unictype/test-predicate-part2.h.
41133
41134         Fix evaluation of "Before C" condition of FINAL_SIGMA.
41135         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
41136         (output_casing_properties): New function.
41137         (main): Call it.
41138         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
41139         * lib/unicase/cased.c: Include unictype/bitmap.h.
41140         (uc_is_cased): Define through a bitmap lookup.
41141         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
41142         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
41143         (uc_is_case_ignorable): Define through a bitmap lookup.
41144         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
41145         lib/unictype/bitmap.h.
41146         (Depends-on): Add inline. Clean up.
41147         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
41148         lib/unictype/bitmap.h.
41149         (Depends-on): Add inline. Clean up.
41150         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
41151         recognition.
41152         * tests/unicase/test-u16-tolower.c (main): Likewise.
41153         * tests/unicase/test-u32-tolower.c (main): Likewise.
41154
41155 2009-06-30  Bruno Haible  <bruno@clisp.org>
41156
41157         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
41158         * lib/unicase/u16-casemap.c: Likewise.
41159         * lib/unicase/u32-casemap.c: Likewise.
41160
41161 2009-06-29  Bruno Haible  <bruno@clisp.org>
41162
41163         Define u32_casefold as a wrapper around u32_ct_casefold.
41164         * lib/unicase/u32-casefold.c: Update.
41165         * modules/unicase/u32-casefold (Depends-on): Add
41166         unicase/u32-ct-casefold, unicase/empty-prefix-context,
41167         unicase/empty-suffix-context. Clean up.
41168
41169         Define u16_casefold as a wrapper around u16_ct_casefold.
41170         * lib/unicase/u16-casefold.c: Update.
41171         * modules/unicase/u16-casefold (Depends-on): Add
41172         unicase/u16-ct-casefold, unicase/empty-prefix-context,
41173         unicase/empty-suffix-context. Clean up.
41174
41175         Define u8_casefold as a wrapper around u8_ct_casefold.
41176         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
41177         * lib/unicase/u8-casefold.c: Update.
41178         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
41179         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41180
41181         Define u32_totitle as a wrapper around u32_ct_totitle.
41182         * lib/unicase/u32-totitle.c: Update.
41183         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
41184         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41185
41186         Define u16_totitle as a wrapper around u16_ct_totitle.
41187         * lib/unicase/u16-totitle.c: Update.
41188         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
41189         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41190
41191         Define u8_totitle as a wrapper around u8_ct_totitle.
41192         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
41193         functions.
41194         (FUNC): Delegate to U_CT_TOTITLE.
41195         * lib/unicase/u8-totitle.c: Update.
41196         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
41197         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41198
41199         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
41200         invocation.
41201         * modules/unicase/u32-tolower (Depends-on): Add
41202         unicase/empty-prefix-context, unicase/empty-suffix-context.
41203
41204         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
41205         invocation.
41206         * modules/unicase/u16-tolower (Depends-on): Add
41207         unicase/empty-prefix-context, unicase/empty-suffix-context.
41208
41209         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
41210         * modules/unicase/u8-tolower (Depends-on): Add
41211         unicase/empty-prefix-context, unicase/empty-suffix-context.
41212
41213         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
41214         invocation.
41215         * modules/unicase/u32-toupper (Depends-on): Add
41216         unicase/empty-prefix-context, unicase/empty-suffix-context.
41217
41218         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
41219         invocation.
41220         * modules/unicase/u16-toupper (Depends-on): Add
41221         unicase/empty-prefix-context, unicase/empty-suffix-context.
41222
41223         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
41224         * modules/unicase/u8-toupper (Depends-on): Add
41225         unicase/empty-prefix-context, unicase/empty-suffix-context.
41226
41227         New module 'unicase/u32-ct-casefold'.
41228         * lib/unicase/u32-ct-casefold.c: New file.
41229         * modules/unicase/u32-ct-casefold: New file.
41230
41231         New module 'unicase/u16-ct-casefold'.
41232         * lib/unicase/u16-ct-casefold.c: New file.
41233         * modules/unicase/u16-ct-casefold: New file.
41234
41235         New module 'unicase/u8-ct-casefold'.
41236         * lib/unicase/u8-ct-casefold.c: New file.
41237         * lib/unicase/u-ct-casefold.h: New file, derived from
41238         lib/unicase/u-casefold.h.
41239         * modules/unicase/u8-ct-casefold: New file.
41240
41241         New module 'unicase/u32-ct-totitle'.
41242         * lib/unicase/u32-ct-totitle.c: New file.
41243         * modules/unicase/u32-ct-totitle: New file.
41244
41245         New module 'unicase/u16-ct-totitle'.
41246         * lib/unicase/u16-ct-totitle.c: New file.
41247         * modules/unicase/u16-ct-totitle: New file.
41248
41249         New module 'unicase/u8-ct-totitle'.
41250         * lib/unicase/u8-ct-totitle.c: New file.
41251         * lib/unicase/u-ct-totitle.h: New file, derived from
41252         lib/unicase/u-totitle.h.
41253         * modules/unicase/u8-ct-totitle: New file.
41254
41255         New module 'unicase/u32-ct-tolower'.
41256         * lib/unicase/u32-ct-tolower.c: New file.
41257         * modules/unicase/u32-ct-tolower: New file.
41258
41259         New module 'unicase/u16-ct-tolower'.
41260         * lib/unicase/u16-ct-tolower.c: New file.
41261         * modules/unicase/u16-ct-tolower: New file.
41262
41263         New module 'unicase/u8-ct-tolower'.
41264         * lib/unicase/u8-ct-tolower.c: New file.
41265         * modules/unicase/u8-ct-tolower: New file.
41266
41267         New module 'unicase/u32-ct-toupper'.
41268         * lib/unicase/u32-ct-toupper.c: New file.
41269         * modules/unicase/u32-ct-toupper: New file.
41270
41271         New module 'unicase/u16-ct-toupper'.
41272         * lib/unicase/u16-ct-toupper.c: New file.
41273         * modules/unicase/u16-ct-toupper: New file.
41274
41275         New module 'unicase/u8-ct-toupper'.
41276         * lib/unicase/u8-ct-toupper.c: New file.
41277         * modules/unicase/u8-ct-toupper: New file.
41278
41279         Add context arguments to u*_casemap functions.
41280         * lib/unicase/unicasemap.h: Include unicase.h.
41281         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
41282         suffix_context arguments.
41283         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
41284         functions.
41285         (FUNC): Add prefix_context and suffix_context arguments. Use
41286         uc_is_cased and uc_is_case_ignorable.
41287         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
41288         * lib/unicase/u16-casemap.c: Likewise.
41289         * lib/unicase/u32-casemap.c: Likewise.
41290         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
41291         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41292         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
41293         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41294         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
41295         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41296
41297         New module 'unicase/u32-suffix-context'.
41298         * lib/unicase/u32-suffix-context.c: New file.
41299         * modules/unicase/u32-suffix-context: New file.
41300
41301         New module 'unicase/u16-suffix-context'.
41302         * lib/unicase/u16-suffix-context.c: New file.
41303         * modules/unicase/u16-suffix-context: New file.
41304
41305         New module 'unicase/u8-suffix-context'.
41306         * lib/unicase/u8-suffix-context.c: New file.
41307         * lib/unicase/u-suffix-context.h: New file.
41308         * modules/unicase/u8-suffix-context: New file.
41309
41310         New module 'unicase/empty-suffix-context'.
41311         * lib/unicase/empty-suffix-context.c: New file.
41312         * modules/unicase/empty-suffix-context: New file.
41313
41314         New module 'unicase/u32-prefix-context'.
41315         * lib/unicase/u32-prefix-context.c: New file.
41316         * modules/unicase/u32-prefix-context: New file.
41317
41318         New module 'unicase/u16-prefix-context'.
41319         * lib/unicase/u16-prefix-context.c: New file.
41320         * modules/unicase/u16-prefix-context: New file.
41321
41322         New module 'unicase/u8-prefix-context'.
41323         * lib/unicase/u8-prefix-context.c: New file.
41324         * lib/unicase/u-prefix-context.h: New file.
41325         * lib/unicase/context.h: New file.
41326         * modules/unicase/u8-prefix-context: New file.
41327
41328         New module 'unicase/empty-prefix-context'.
41329         * lib/unicase/empty-prefix-context.c: New file.
41330         * modules/unicase/empty-prefix-context: New file.
41331
41332         New module 'unicase/ignorable'.
41333         * lib/unicase/ignorable.c: New file.
41334         * modules/unicase/ignorable: New file.
41335
41336         New module 'unicase/cased'.
41337         * lib/unicase/caseprop.h: New file.
41338         * lib/unicase/cased.c: New file.
41339         * modules/unicase/cased: New file.
41340
41341         New functions for case mapping of substrings.
41342         * lib/unicase.h (casing_prefix_context_t): New type.
41343         (unicase_empty_prefix_context): New variable.
41344         (u8_casing_prefix_context, u16_casing_prefix_context,
41345         u32_casing_prefix_context, u8_casing_prefixes_context,
41346         u16_casing_prefixes_context, u32_casing_prefixes_context): New
41347         declarations.
41348         (casing_suffix_context_t): New type.
41349         (unicase_empty_suffix_context): New variable.
41350         (u8_casing_suffix_context, u16_casing_suffix_context,
41351         u32_casing_suffix_context, u8_casing_suffixes_context,
41352         u16_casing_suffixes_context, u32_casing_suffixes_context,
41353         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
41354         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
41355         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
41356         declarations.
41357
41358 2009-06-28  Jim Meyering  <meyering@redhat.com>
41359
41360         boostrap: indent only with spaces
41361         * build-aux/bootstrap: Indent only with spaces, never TABs.
41362
41363         bootstrap: split long lines
41364         * build-aux/bootstrap: Keep line length < 80.
41365
41366         bootstrap: sync from coreutils
41367         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
41368         just as autoreconf does.  Verify a list of prerequisite
41369         package-name,version-number pairs if defined in bootstrap.conf.
41370         Refer to README-prereq, if prerequisites are not satisfied.
41371
41372 2009-06-27  Eric Blake  <ebb9@byu.net>
41373
41374         tests: add test for bogus NULL definition
41375         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
41376         * tests/test-stdlib.c: Likewise.
41377         * tests/test-string.c: Likewise.
41378         * tests/test-locale.c: Likewise.
41379         * tests/test-unistd.c: Likewise.
41380         * modules/stdio-tests (Depends-on): Add verify.
41381         * modules/stdlib-tests (Depends-on): Likewise.
41382         * modules/string-tests (Depends-on): Likewise.
41383         * modules/locale-tests (Depends-on): Likewise.
41384         * modules/unistd-tests (Depends-on): Likewise.
41385
41386 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
41387
41388         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
41389         self-explaining comment.
41390         * m4/selinux-selinux-h: Update serial.
41391         (gl_LIBSELINUX): New macro, adding a warning for missing development
41392         packages to code extracted from...
41393         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
41394         Add warning for missing development packages here, too.
41395
41396 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
41397
41398         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
41399
41400 2009-06-25  Eric Blake  <ebb9@byu.net>
41401
41402         version-etc: fix regression
41403         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
41404         gcc.
41405         (version_etc): Use it, to catch bugs with trailing NULL.
41406         * lib/version-etc.c (version_etc_arn): Delete unused argument.
41407         (version_etc_va): Fix logic bug.
41408         * modules/version-etc-tests: Add test.
41409         * tests/test-version-etc.c: New file.
41410         * tests/test-version-etc.sh: Likewise.
41411
41412 2009-06-25  Sam Steingold  <sds@gnu.org>
41413
41414         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
41415         mbtowc declaration.
41416
41417 2009-06-25  Eric Blake  <ebb9@byu.net>
41418
41419         fpurge: migrate into <stdio.h>
41420         * lib/fpurge.h: Delete...
41421         * lib/stdio.in.h (fpurge): ...and declare here, instead.
41422         * lib/fpurge.c (fpurge): Change declaring header.
41423         * modules/fpurge (Files): Drop deleted file.
41424         (Depends-on): Add stdio.
41425         (configure.ac): Set witness.
41426         * modules/stdio (Makefile.am): Support fpurge macros.
41427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41428         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
41429         * lib/fflush.c: Update client.
41430         * tests/test-fpurge.c: Likewise.
41431         * NEWS: Mention the change.
41432
41433 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41434
41435         * lib/argp-version-etc.c (program_authors): Add const
41436         qualifier.
41437         * lib/version-etc.c: Fix typos in the comments.
41438         * modules/argp-version-etc: Depends on version-etc.
41439
41440 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41441
41442         argp-version-etc: new module.
41443
41444         * lib/argp-version-etc.c: New file.
41445         * lib/argp-version-etc.h: New file.
41446         * modules/argp-version-etc: New file.
41447         * modules/argp-version-etc-tests: New file.
41448         * tests/test-argp-version-etc.c: New test.
41449         * tests/test-argp-version-etc-1.sh: New test.
41450
41451 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41452
41453         Provide additional interfaces and documentation for version-etc
41454         module.
41455
41456         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
41457         interfaces.
41458         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
41459         prototypes.
41460
41461 2009-06-24  Bruno Haible  <bruno@clisp.org>
41462
41463         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
41464         HAVE_LIB${NAME} macro.
41465         Reported by Sam Steingold <sds@gnu.org>.
41466
41467 2009-06-23  Simon Josefsson  <simon@josefsson.org>
41468
41469         * modules/hash-tests (test_hash_LDADD): Link to libintl when
41470         needed.
41471
41472 2009-06-21  Bruno Haible  <bruno@clisp.org>
41473
41474         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
41475         work.
41476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
41477         together with LIB${NAME}, LTLIB${NAME}.
41478         Reported by Sam Steingold <sds@gnu.org>.
41479
41480 2009-06-20  Jim Meyering  <meyering@redhat.com>
41481
41482         tests: make sc_require_test_exit_idiom more generic
41483         * top/maint.mk (Exit_witness_file): New overridable variable.
41484         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
41485         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
41486
41487 2009-06-19  Jim Meyering  <meyering@redhat.com>
41488
41489         hash: reverse order of src/dst parameters in an internal interface
41490         * lib/hash.c (transfer_entries): Reverse order of parameters to
41491         put DST before SRC.  Adjust callers.
41492
41493         tests: test-hash: avoid wholesale duplication
41494         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
41495         Instead, use a loop and add a single conditional.
41496
41497         tests: test-hash: allow seed selection via a command line argument
41498         * tests/test-hash.c (get_seed): New function.
41499         (main): Use it.
41500
41501 2009-06-19  Eric Blake  <ebb9@byu.net>
41502
41503         hash: avoid memory leak on allocation failure
41504         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
41505         failure.  Factor repeated algorithm...
41506         (transfer_entries): ...into new helper routine.
41507         (hash_delete): React to hash_rehash return value.
41508
41509         hash: reduce memory pressure in hash_rehash no-op case
41510         * lib/hash.c (next_prime): Avoid overflow.
41511         (hash_initialize): Factor bucket size computation...
41512         (compute_bucket_size): ...into new helper function.
41513         (hash_rehash): Use new function and open coding to reduce memory
41514         pressure, and avoid a memory leak in USE_OBSTACK code.
41515         Reported by Jim Meyering.
41516
41517 2009-06-18  Eric Blake  <ebb9@byu.net>
41518
41519         hash: make rotation more obvious
41520         * modules/hash (Depends-on): Add bitrotate and stdint.
41521         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
41522         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
41523         (SIZE_MAX): Rely on headers for definition.
41524         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
41525         (raw_hasher): Use rotr_sz.
41526         Suggested by Jim Meyering.
41527
41528         hash: fix memory leak in last patch
41529         * lib/hash.c (hash_rehash): Avoid memory leak.
41530
41531         hash: avoid no-op rehashing
41532         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
41533
41534         hash: provide default callback functions
41535         * lib/hash.c (raw_hasher, raw_comparator): New functions.
41536         (hash_initialize): Use them as defaults.
41537         * tests/test-hash.c (main): Test this.
41538
41539         hash: minor optimization
41540         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
41541         when possible.
41542         (hash_initialize): Document this promise.
41543         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
41544         * tests/test-hash.c (hash_compare_strings): Test this.
41545
41546 2009-06-18  Bruno Haible  <bruno@clisp.org>
41547
41548         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
41549         going to be replaced anyway.
41550
41551 2009-06-18  Bruno Haible  <bruno@clisp.org>
41552
41553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
41554         in one place.
41555         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
41556         be replaced anyway.
41557
41558 2009-06-18  Eric Blake  <ebb9@byu.net>
41559
41560         hash: check for resize before insertion
41561         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
41562         threshold before insertion, so that a pathological hash_rehash
41563         that fills every bucket can still trigger another rehash.
41564
41565 2009-06-18  Jim Meyering  <meyering@redhat.com>
41566
41567         hash-tests: add a loop around the small tests
41568         * tests/test-hash.c (main): Repeat small tests with selected
41569         small initial table sizes.
41570
41571 2009-06-17  Eric Blake  <ebb9@byu.net>
41572
41573         hash: minor cleanups
41574         * lib/hash.h (hash_entry): Make opaque, by moving...
41575         * lib/hash.c (hash_entry): ...here.
41576         (hash_insert): Clarify restrictions on what can be inserted.
41577         (hash_get_next): Clarify when it is safe to remove an element
41578         during traversal.
41579         (check_tuning): Skip verification when tuning is known safe.
41580         (hash_initialize): Clarify restrictions on tuning.
41581
41582 2009-06-17  Jim Meyering  <jim@meyering.net>
41583         and Eric Blake  <ebb9@byu.net>
41584
41585         hash-tests: new module
41586         * modules/hash-tests: New file.
41587         * tests/test-hash.c: New file.
41588
41589 2009-06-17  Eric Blake  <ebb9@byu.net>
41590
41591         strstr-simple: document new module
41592         * MODULES.html.sh: Document new module.
41593
41594         strstr, strcasestr: replace on platforms with broken memchr
41595         * modules/strstr: Split into...
41596         * modules/strstr-simple: ...new module that does not care about
41597         performance, but does care about glibc bug.
41598         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
41599         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
41600         if platform memchr is broken, per Debian bug 521737.
41601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
41602         memchr.
41603         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
41604         * doc/posix-functions/strstr.texi (strstr): Document the fix.
41605         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41606         * modules/mountlist (Depends-on): Add strstr-simple.
41607         * modules/gen-uni-tables (Depends-on): Likewise.
41608         * modules/argz (Depends-on): Add strstr.
41609
41610 2009-06-17  Bruno Haible  <bruno@clisp.org>
41611
41612         * modules/posix_spawn-internal (Depends-on): Add errno.
41613
41614 2009-06-17  Bruno Haible  <bruno@clisp.org>
41615
41616         Define missing ESTALE on Interix 3.5.
41617         * lib/errno.in.h (ESTALE): Assign a value if missing.
41618         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
41619         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
41620         missing.
41621         * doc/posix-headers/errno.texi: Mention the Interix bug.
41622         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
41623
41624 2009-06-15  Eric Blake  <ebb9@byu.net>
41625
41626         memchr, memchr2: add valgrind exception
41627         * lib/memchr.valgrind: New file.
41628         * lib/memchr2.valgrind: New file.
41629         * modules/memchr (Files): Distribute valgrind file.
41630         * modules/memchr2 (Files): Likewise.
41631
41632         docs: memchr is no longer obsolete
41633         * MODULES.html.sh: Move memchr from obsolete to string.h section.
41634         * lib/string.in.h (memchr): Simplify logic.
41635
41636 2009-06-14  Jim Meyering  <meyering@redhat.com>
41637
41638         link-follow: fix the "checking..." message to not mention trailing slash
41639         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
41640         never considered trailing slashes.
41641
41642 2009-06-14  Bruno Haible  <bruno@clisp.org>
41643
41644         * m4/memchr.m4: Mention also the bug on IA-64.
41645         * doc/posix-functions/memchr.texi: Likewise.
41646
41647 2009-06-12  Eric Blake  <ebb9@byu.net>
41648
41649         memchr: detect broken x86_64 and alpha implementations
41650         * modules/memchr-tests (Depends-on): Move mmap detection...
41651         * modules/memchr (Depends-on): ...here.
41652         (configure.ac): Set indicator.
41653         * lib/string.in.h (memchr): Declare replacement.
41654         * modules/string (Makefile.am): Trigger replacement.
41655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41656         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
41657         bugs.
41658         * doc/posix-functions/memchr.texi (memchr): Document the bug.
41659         * modules/getpagesize (License): Relax license.
41660
41661 2009-06-11  Bruno Haible  <bruno@clisp.org>
41662
41663         * lib/idpriv.h: Add more references.
41664
41665 2009-06-08  Bruno Haible  <bruno@clisp.org>
41666
41667         Tests for module 'idpriv-droptemp'.
41668         * modules/idpriv-droptemp-tests: New file.
41669         * tests/test-idpriv-droptemp.sh: New file.
41670         * tests/test-idpriv-droptemp.su.sh: New file.
41671         * tests/test-idpriv-droptemp.c: New file.
41672
41673         New module 'idpriv-droptemp'.
41674         * lib/idpriv-droptemp.c: New file.
41675         * modules/idpriv-droptemp: New file.
41676
41677 2009-06-08  Bruno Haible  <bruno@clisp.org>
41678
41679         Tests for module 'idpriv-drop'.
41680         * modules/idpriv-drop-tests: New file.
41681         * tests/test-idpriv-drop.sh: New file.
41682         * tests/test-idpriv-drop.su.sh: New file.
41683         * tests/test-idpriv-drop.c: New file.
41684
41685         New module 'idpriv-drop'.
41686         * lib/idpriv.h: New file.
41687         * lib-idpriv-drop.c: New file.
41688         * m4/idpriv.m4: New file.
41689         * modules/idpriv-drop: New file.
41690
41691 2009-06-08  Bruno Haible  <bruno@clisp.org>
41692
41693         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
41694         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41695         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41696         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41697         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41698         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41699         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41700
41701 2009-06-08  Eric Blake  <ebb9@byu.net>
41702
41703         test-strstr: use memory fence, when possible
41704         * tests/test-strstr.c (main): Use memory fence, in order to be
41705         more likely to trigger Debian bug 521737.
41706         * modules/strstr-tests (Files): Pull in additional files.
41707
41708         memchr: no longer obsolete, for wider field testing
41709         * modules/memchr (Status, Notice): Delete, this module is no
41710         longer obsolete.
41711         * modules/vasnprintf (Depends-on): Add memchr.
41712
41713 2009-06-07  Jim Meyering  <meyering@redhat.com>
41714
41715         hash: declare some functions with the warn_unused_result attribute
41716         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
41717
41718 2009-06-07  Bruno Haible  <bruno@clisp.org>
41719
41720         * tests/test-alignof.c: Don't test int64_t if it does not exist.
41721         Reported by Eric Blake.
41722
41723 2009-06-06  Eric Blake  <ebb9@byu.net>
41724
41725         test-alignof: fix typo with long double
41726         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
41727         compiler error.
41728
41729 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
41730
41731         Escape non-texinfo { and }s.
41732         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
41733         markup error.
41734
41735 2009-06-04  Jim Meyering  <meyering@redhat.com>
41736
41737         gitlog-to-changelog: don't infloop on an empty commit log
41738         * build-aux/gitlog-to-changelog: Warn about an empty log message.
41739         Reported by Boris Petersen <transacid@centerim.org>.
41740
41741 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
41742
41743         version-etc: extend for packagers
41744         Add three new configure options, intended for packagers:
41745           --with-packager="packager name"
41746           --with-packager-version="packager-specific version"
41747           --with-packager-bug-reports="packager bug reporting"
41748         An example with coreutils:
41749           $ ./configure \
41750             --with-packager=Gentoo \
41751             --with-packager-bug-report=http://bugs.gentoo.org/ \
41752             --with-packager-version="patchset 1.6"
41753           $ ./src/ls --version | head -n2
41754           ls (GNU coreutils) 7.1-dirty
41755           Packaged by Gentoo (patchset 1.6)
41756         Note that the bug reporting info via --help doesn't show up because
41757         coreutils uses its own custom emit_bug_reporting_address() implementation
41758         in src/system.h.  If it didn't, it'd look like:
41759           $ ./src/ls --help | tail -n4
41760           Report bugs to <bug-coreutils@gnu.org>.
41761           Report Gentoo bugs to <http://bugs.gentoo.org/>.
41762           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
41763           General help using GNU software: <http://www.gnu.org/gethelp/>.
41764         * lib/version-etc.c: Print new information, if provided.
41765         * m4/version-etc.m4: New file.
41766         * modules/version-etc (Files): Add m4/version-etc.m4.
41767         (configure.ac): Add gl_VERSION_ETC.
41768
41769 2009-05-31  Bruno Haible  <bruno@clisp.org>
41770
41771         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
41772         and 'int64_t'.
41773         * modules/alignof-tests (Dependencies): Add stdint.
41774         Reported by Eric Blake.
41775
41776 2009-05-31  Bruno Haible  <bruno@clisp.org>
41777
41778         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
41779         restriction due to compiler bugs.
41780         Reported by Eric Blake.
41781
41782 2009-05-31  Simon Josefsson  <simon@josefsson.org>
41783             Bruno Haible  <bruno@clisp.org>
41784
41785         Fix test-alignof failure.
41786         * lib/alignof.h (alignof_slot): New macro.
41787         (alignof_type): New macro, with the same semantics as the previous
41788         'alignof'.
41789         (alignof): Alias to alignof_slot.
41790         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
41791         check that the results are usable as constant expressions.
41792
41793 2009-05-31  Bruno Haible  <bruno@clisp.org>
41794
41795         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
41796         * tests/test-memchr.c (main): Check that memchr does not read past the
41797         first occurrence of the byte.
41798         * tests/test-strstr.c (main): Update comment.
41799         Suggested by Eric Blake.
41800
41801 2009-05-30  Bruno Haible  <bruno@clisp.org>
41802
41803         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
41804         detail how to use dumpbin.
41805         Reported by David Byron <dbyron@dbyron.com>.
41806
41807 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41808
41809         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41810
41811 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41812
41813         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41814
41815 2009-05-28  Bruno Haible  <bruno@clisp.org>
41816
41817         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41818         build-aux/ files.
41819
41820 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41821
41822         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41823
41824 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41825
41826         * gnulib-tool (sed_transform_main_lib_file)
41827         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41828         regexps.
41829
41830 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41831
41832         * tests/test-strstr.c: Add another self-test.
41833         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41834         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41835
41836 2009-05-23  Bruno Haible  <bruno@clisp.org>
41837
41838         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41839         change.
41840
41841 2009-05-21  Bruno Haible  <bruno@clisp.org>
41842
41843         Simplify use of mode_t varargs.
41844         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41845         uses 'mode_t' or 'int'.
41846         * lib/openat.c (openat): Likewise.
41847         * lib/open-safer.c (open_safer): Likewise.
41848         * m4/mode_t.m4: New file.
41849         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41850         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41851         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41852         * modules/open (Files): Add m4/mode_t.m4.
41853         * modules/openat (Files): Likewise.
41854         * modules/fcntl-safer (Files): Likewise.
41855         Suggested by Eric Blake.
41856
41857 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41858
41859         * doc/glibc-functions/fallocate.texi: New file.
41860         * doc/gnulib.texi: Include it.
41861
41862 2009-05-21  Eric Blake  <ebb9@byu.net>
41863             Bruno Haible  <bruno@clisp.org>
41864
41865         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41866         invocations.
41867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41868
41869 2009-05-21  Eric Blake  <ebb9@byu.net>
41870             Bruno Haible  <bruno@clisp.org>
41871
41872         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41873         include_next. Fix of 2008-11-20 commit.
41874         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41875         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41876         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41877         NEXT_MATH_H.
41878         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41879         instead of NEXT_MATH_H.
41880
41881 2009-05-21  Bruno Haible  <bruno@clisp.org>
41882
41883         Avoid redefinition warnings for SIZE_MAX.
41884         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41885         Reported by Simon Josefsson.
41886
41887 2009-05-21  Bruno Haible  <bruno@clisp.org>
41888
41889         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41890         AC_CACHE_VAL.
41891
41892 2009-05-20  Bruno Haible  <bruno@clisp.org>
41893
41894         Make zeroptr.h work on mingw.
41895         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41896         mprotect.
41897         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41898         * modules/memchr2-tests (configure.ac): Likewise.
41899         * modules/memcmp-tests (configure.ac): Likewise.
41900         * modules/memmem-tests (configure.ac): Likewise.
41901         * modules/memrchr-tests (configure.ac): Likewise.
41902         Reported by Simon Josefsson.
41903
41904 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41905
41906         * tests/test-glob.c: Include string.h for strcmp prototype.
41907
41908 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41909
41910         * modules/getdelim (Depends-on): Add explicit stdint, although it
41911         was implicitly already pulled in via realloc-posix.
41912         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41913
41914 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41915
41916         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41917         G. Christensen" <tgc@jupiterrise.com>.
41918         * m4/sys_socket_h.m4: Check for sa_family_t.
41919         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41920         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41921         * tests/test-sys_socket.c: Check that sa_family_t works.
41922
41923 2009-05-18  Eric Blake  <ebb9@byu.net>
41924
41925         maint.mk: allow gnulib_dir in VPATH build
41926         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41927
41928 2009-05-15  Jim Meyering  <meyering@redhat.com>
41929
41930         maint.mk: Give gnulib_dir a default definition.
41931         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41932         Thus, most packages no longer need to specify this variable in cfg.mk
41933
41934 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41935
41936         rename.m4: fix typos that would make non-mingw cross-configure fail
41937         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41938
41939 2009-05-13  Eric Blake  <ebb9@byu.net>
41940
41941         mmap-anon: avoid out-of-order autoconf expansion
41942         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41943         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41944         * modules/memchr-tests (Depends-on): Add extensions.
41945         * modules/memchr2-tests (Depends-on): Add extensions.
41946         * modules/memcmp-tests (Depends-on): Add extensions.
41947         * modules/memmem-tests (Depends-on): Add extensions.
41948         * modules/memrchr-tests (Depends-on): Add extensions.
41949
41950 2009-05-13  Bruno Haible  <bruno@clisp.org>
41951
41952         Make some tests ISO C 99 compliant.
41953         * tests/zerosize-ptr.h: New file.
41954         * tests/test-memchr.c: Include zerosize-ptr.h.
41955         (main): Use a zero-size object pointer instead of NULL.
41956         * tests/test-memchr2.c: Include zerosize-ptr.h.
41957         (main): Use a zero-size object pointer instead of NULL.
41958         * tests/test-memcmp.c: Include zerosize-ptr.h.
41959         (main): Use a zero-size object pointer instead of NULL.
41960         * tests/test-memmem.c: Include zerosize-ptr.h.
41961         (main): Use a zero-size object pointer instead of NULL.
41962         * tests/test-memrchr.c: Include zerosize-ptr.h.
41963         (main): Use a zero-size object pointer instead of NULL.
41964         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41965         m4/mmap-anon.m4.
41966         (Depends-on): Add getpagesize.
41967         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41968         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41969         m4/mmap-anon.m4.
41970         (Depends-on): Add getpagesize.
41971         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41972         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41973         m4/mmap-anon.m4.
41974         (Depends-on): Add getpagesize.
41975         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41976         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41977         m4/mmap-anon.m4.
41978         (Depends-on): Add getpagesize.
41979         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41980         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41981         m4/mmap-anon.m4.
41982         (Depends-on): Add getpagesize.
41983         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41984
41985 2009-05-12  Bruno Haible  <bruno@clisp.org>
41986
41987         Tests for module 'alignof'.
41988         * modules/alignof-tests: New file.
41989         * tests/test-alignof.c: New file.
41990
41991 2009-05-12  Bruno Haible  <bruno@clisp.org>
41992
41993         Fix alignof macro.
41994         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41995         vendor compilers that are always correct.
41996
41997 2009-05-12  Bruno Haible  <bruno@clisp.org>
41998
41999         Make the MAP_ANONYMOUS detection work on HP-UX 11.
42000         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
42001         not whether its fully works.
42002
42003 2009-05-12  Bruno Haible  <bruno@clisp.org>
42004
42005         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
42006
42007 2009-05-12  Jim Meyering  <meyering@redhat.com>
42008
42009         * top/maint.mk: Adjust backslash alignment.
42010
42011 2009-05-11  Simon Josefsson  <simon@josefsson.org>
42012
42013         * top/maint.mk: Make $(srcdir)/build-aux configurable.
42014
42015 2009-05-11  Eric Blake  <ebb9@byu.net>
42016
42017         argp: avoid undefined behavior
42018         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
42019         macros.
42020
42021 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42022
42023         * tests/test-vc-list-files-git.sh: Do git config of user.email and
42024         user.name to prevent git commit from complaining.
42025
42026 2009-05-10  Bruno Haible  <bruno@clisp.org>
42027
42028         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
42029         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
42030         it rewrites every file name only once.
42031         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
42032
42033 2009-05-08  Bruno Haible  <bruno@clisp.org>
42034
42035         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
42036         instead of 'max'.
42037
42038 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42039
42040         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
42041         sockaddr_storage test.
42042
42043 2009-05-07  Simon Josefsson  <simon@josefsson.org>
42044
42045         * modules/sys_socket (Makefile.am): Substitute
42046         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
42047         * m4/sys_socket_h.m4: Check for sockaddr_storage.
42048         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
42049         * tests/test-sys_socket.c: Check sockaddr_storage.
42050
42051 2009-05-08  Bruno Haible  <bruno@clisp.org>
42052
42053         New module 'alignof'.
42054         * lib/alignof.h: New file.
42055         * modules/alignof: New file.
42056
42057 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42058             Bruno Haible  <bruno@clisp.org>
42059
42060         Fix test-file-has-acl on FreeBSD.
42061         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
42062         mask is implicitly added.
42063         * tests/test-file-has-acl.c: Include <signal.h>.
42064         (main): Terminate the test after 5 seconds.
42065         * modules/acl-tests (configure.ac): Check for alarm function.
42066
42067 2009-05-04  Bruno Haible  <bruno@clisp.org>
42068
42069         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
42070         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
42071         * modules/errno (configure.ac): Drop AC_REQUIRE.
42072         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
42073         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
42074
42075 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42076
42077         * modules/glob-tests: New module.
42078         * tests/test-glob.c: Add.
42079
42080 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42081
42082         * modules/fnmatch-tests: New module.
42083         * tests/test-fnmatch.c: Add.
42084
42085 2009-05-04  Eric Blake  <ebb9@byu.net>
42086
42087         maint: make the new no-submodule-changes rule VPATH-safe
42088         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
42089
42090 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42091             Bruno Haible  <bruno@clisp.org>
42092
42093         acl: Fix infinite loop on FreeBSD.
42094         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
42095         of return value from acl_get_entry.
42096         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
42097         Likewise.
42098
42099 2009-05-03  Bruno Haible  <bruno@clisp.org>
42100
42101         * lib/acl-internal.h (acl_entries): Clarify return value.
42102         * lib/acl_entries.c (acl_entries): Likewise.
42103
42104 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42105
42106         Bug fix in acl module.
42107         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
42108
42109 2009-05-03  Bruno Haible  <bruno@clisp.org>
42110
42111         Create gperf-generated file in the source dir, not in the build dir.
42112         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
42113         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
42114         * modules/unicase/locale-language (unicase/locale-languages.h):
42115         Likewise.
42116         * modules/unicase/special-casing (unicase/special-casing-table.h):
42117         Likewise.
42118         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
42119         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
42120         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
42121         Reported by Ralf Wildenhues.
42122
42123 2009-05-03  Bruno Haible  <bruno@clisp.org>
42124
42125         * modules/fnmatch (Description, configure.ac): Taken from
42126         fnmatch-posix.
42127         * modules/fnmatch-posix: Turn into a symbolic reference to the
42128         'fnmatch' module, and deprecate.
42129         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
42130
42131 2009-05-03  Bruno Haible  <bruno@clisp.org>
42132
42133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
42134         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
42135         Reported by Ralf Wildenhues.
42136
42137 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42138
42139         * m4/fnmatch.m4: Fix fnmatch re-define.
42140
42141 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42142
42143         priv-set: new module and tests; adapt write-any-file
42144         * lib/priv-set.c: New file.
42145         * lib/priv-set.h: New file.
42146         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
42147         * lib/write-any-file.c: Simplify by using priv-set module.
42148         * m4/priv-set.m4: New file.
42149         * modules/priv-set: New file.
42150         * modules/unlinkdir: Add dependency on priv-set module.
42151         * modules/write-any-file: Likewise.
42152
42153         Tests for module 'priv-set'.
42154         * modules/priv-set-tests: New file.
42155         * tests/test-priv-set.c: New file.
42156
42157 2009-05-03  Jim Meyering  <meyering@redhat.com>
42158             Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
42161         use the converted UTF-8 variant of the name instead.
42162
42163 2009-05-03  Jim Meyering  <meyering@redhat.com>
42164
42165         tests: tighten some getdate tests
42166         * tests/test-getdate.c (main): Tighten tests: require equality,
42167         not just greater than.  Set TZ envvar to UTC0.
42168
42169 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
42170
42171         getdate: correctly interpret "next monday" when run on a Monday
42172         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
42173         that e.g., "next tues" (when run on a tuesday) results in a date
42174         that is one week in the future, and not today's date.
42175         I.e., add a week when the wday is the same as the current one.
42176         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
42177         and earlier by Martin Bernreuther and Jan Minář.
42178         * tests/test-getdate.c (main): Check that "next DAY" is always in
42179         the future and that "last DAY" is always in the past.
42180
42181 2009-05-02  Jim Meyering  <meyering@redhat.com>
42182
42183         build: ensure that a release build fails when a submodule is unclean
42184         * top/maint.mk (no-submodule-changes): New rule.
42185         (alpha beta major): Depend on it.
42186
42187 2009-05-02  Bruno Haible  <bruno@clisp.org>
42188
42189         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
42190         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
42191         shell variable gl_fnmatch_required to detect which variant is
42192         requested.
42193         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
42194         gl_FUNC_FNMATCH_POSIX.
42195         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
42196         exclude fnmatch-posix.
42197
42198 2009-05-02  Bruno Haible  <bruno@clisp.org>
42199
42200         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
42201         * modules/mbsrtowcs (License): Change to LGPLv2+.
42202         * modules/strnlen1 (License): Likewise.
42203         Reported by Simon Josefsson.
42204
42205 2009-05-02  Bruno Haible  <bruno@clisp.org>
42206
42207         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
42208         "cross".
42209         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
42210         gnulib-tool was called with option --source-base=lib.
42211
42212 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42213
42214         Use automake *-local hooks without commands, for extensibility.
42215         * modules/localcharset (Makefile.am): Rename install-exec-local
42216         rule to install-exec-localcharset, and make it a prerequisite of
42217         install-exec-local.  Likewise, rename the uninstall-local rule to
42218         uninstall-localcharset, and make it a prerequisite of the former.
42219
42220 2009-05-01  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
42223         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42224         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
42225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
42226         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
42227         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42228         m4/locale-zh.m4, m4/codeset.m4.
42229
42230         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42231         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
42232         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42233         m4/locale-zh.m4.
42234
42235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
42236         REPLACE_WCRTOMB if mbstate_t must be replaced.
42237         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
42238         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
42239
42240 2009-05-01  Bruno Haible  <bruno@clisp.org>
42241
42242         Avoid compiler warnings when redefining macros defined by <libintl.h>.
42243         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
42244         dngettext, dcngettext, textdomain, bindtextdomain,
42245         bind_textdomain_codeset): Undefine before redefining.
42246
42247 2009-04-30  Bruno Haible  <bruno@clisp.org>
42248
42249         Fix bug introduced on 2009-04-25.
42250         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
42251         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
42252         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
42253         is defined.
42254         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
42255         is defined.
42256         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
42257         is defined.
42258         Reported by Elbert_Pol <elbert.pol@gmail.com>.
42259
42260 2009-04-28  Bruno Haible  <bruno@clisp.org>
42261
42262         Comment tweaks.
42263         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
42264         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
42265         * lib/unicase.h (u*_casexfrm): Likewise.
42266         Reported by Paolo Bonzini.
42267
42268 2009-04-28  Bruno Haible  <bruno@clisp.org>
42269
42270         Fix a compilation error.
42271         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
42272         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42273         Reported by Jim Meyering.
42274
42275 2009-04-27  Bruno Haible  <bruno@clisp.org>
42276
42277         New module 'libunistring'.
42278         * modules/libunistring: New file.
42279         * m4/libunistring.m4: New file.
42280         * MODULES.html.sh (Unicode string functions): Add it.
42281
42282 2009-04-27  Eric Blake  <ebb9@byu.net>
42283
42284         maint.mk: allow package-specific header to provide <config.h>
42285         * top/maint.mk (sc_require_config_h): New variable.
42286         (sc_require_config_h, sc_require_config_h_first): Use it.
42287
42288 2009-04-27  Simon Josefsson  <simon@josefsson.org>
42289
42290         * top/maint.mk (sc_avoid_if_before_free): Except
42291         useless-if-before-free script.
42292
42293 2009-04-27  Eric Blake  <ebb9@byu.net>
42294
42295         maintainer-makefile: depend on all required helper scripts
42296         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
42297         useless-if-before-free.
42298         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
42299         version, rather than assuming gnulib checkout is available.
42300         Reported by Simen Josefsson.
42301
42302 2009-04-26  Bruno Haible  <bruno@clisp.org>
42303
42304         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
42305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
42306         "../" or "..".
42307
42308 2009-04-26  Bruno Haible  <bruno@clisp.org>
42309
42310         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
42311         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
42312         AC_LIB_HAVE_LINKFLAGS.
42313
42314 2009-04-26  Bruno Haible  <bruno@clisp.org>
42315
42316         Simplify calling convention of u*_conv_from_encoding.
42317         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
42318         u32_conv_from_encoding): Expect a resultbuf argument and return the
42319         result directly as a pointer.
42320         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
42321         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
42322         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
42323         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
42324         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
42325         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42326         Update.
42327         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
42328         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
42329         * lib/vasnprintf.c (VASNPRINTF): Update.
42330         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
42331         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
42332         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
42333         * NEWS: Mention the change.
42334
42335 2009-04-26  Bruno Haible  <bruno@clisp.org>
42336
42337         Simplify calling convention of u*_conv_to_encoding.
42338         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
42339         u32_conv_to_encoding): Expect a resultbuf argument and return the
42340         result directly as a pointer.
42341         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42342         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
42343         freeing scaled_offsets if mem_iconveha failed.
42344         * lib/unicase/u-casexfrm.h (FUNC): Update.
42345         * lib/uninorm/u-normxfrm.h (FUNC): Update.
42346         * lib/vasnprintf.c (VASNPRINTF): Update.
42347         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
42348         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
42349         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
42350         * NEWS: Mention the change.
42351
42352 2009-04-26  Bruno Haible  <bruno@clisp.org>
42353
42354         Avoid test failures on AIX and OSF/1.
42355         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
42356         malloc(0).
42357         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42358         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42359         Likewise.
42360         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
42361         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
42362         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
42363         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
42364         * doc/posix-functions/malloc.texi: Document the portability problem
42365         related to malloc(0).
42366
42367 2009-04-26  Bruno Haible  <bruno@clisp.org>
42368
42369         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
42370         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
42371         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
42372
42373 2009-04-25  Bruno Haible  <bruno@clisp.org>
42374
42375         Avoid link error when creating a namespace clean library.
42376         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
42377         as macro with arguments if already defined as an alias.
42378         * lib/signbitf.c (gl_signbitf): Don't undefine.
42379         * lib/signbitd.c (gl_signbitd): Don't undefine.
42380         * lib/signbitl.c (gl_signbitl): Don't undefine.
42381
42382 2009-04-25  Jim Meyering  <meyering@redhat.com>
42383
42384         vc-list-files: fix another quoting bug
42385         * build-aux/vc-list-files: Avoid sed backslash expansion
42386         of pathological directory names.
42387
42388 2009-04-25  Eric Blake  <ebb9@byu.net>
42389
42390         vc-list-files: fix shell quoting error
42391         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
42392         timestamp.
42393
42394 2009-04-25  Jim Meyering  <meyering@redhat.com>
42395
42396         vc-list-files: restore lost functionality with subdir argument
42397         * build-aux/vc-list-files: When given a non-"." sub-directory
42398         argument, substitute the $dir/ prefix back onto each resulting name.
42399         Otherwise, coreutils' root_tests check would fail.
42400
42401 2009-04-24  Eric Blake  <ebb9@byu.net>
42402
42403         vc-list-files: ignore git symlinks
42404         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
42405         than ls-files, to ignore git symlinks.
42406
42407         maint.mk: import improvements from m4
42408         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
42409         (move_if_change): Delete unused macro.
42410         (news-date-check, vc-diff-check): Support VPATH builds.
42411         (announcement): Likewise.  Split --bootstrap-tools list...
42412         (boostrap-tools): ...into separate list, which can be overridden
42413         in cfg.mk.
42414         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
42415         requiring dependency on useless-if-before-free module.
42416         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
42417         Support VPATH builds.
42418
42419 2009-04-24  Jim Meyering  <meyering@redhat.com>
42420
42421         maint.mk: remove coreutils-specific rules and variables
42422         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
42423         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
42424         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
42425
42426         maint.mk: remove obsolete rule
42427         * top/maint.mk (rel-check): Remove rule.
42428         (WGET, WGETFLAGS): Remove now-unused variables.
42429
42430 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42431
42432         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
42433         consistency.
42434
42435         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
42436         '$(PATH_SEPARATOR)' instead of ':'.
42437
42438 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42439
42440         * lib/getopt1.c (main): Use 'const' for static array.
42441
42442 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42443
42444         * top/maint.mk: Sync with coreutils.
42445         * NEWS: Explain incompatibilities.
42446
42447 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42448             Bruno Haible  <bruno@clisp.org>
42449
42450         Fix cross-compilation results.
42451         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
42452         statement, as third argument of AC_TRY_RUN.
42453         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42454         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
42455         Likewise.
42456         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42457         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42458         Likewise.
42459         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42460         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
42461         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
42462
42463 2009-04-20  Bruno Haible  <bruno@clisp.org>
42464
42465         Avoid test failure on mingw.
42466         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
42467
42468 2009-04-20  Bruno Haible  <bruno@clisp.org>
42469
42470         Avoid compilation error on mingw.
42471         * modules/localename-tests (Depends-on): Add locale.
42472
42473 2009-04-19  Bruno Haible  <bruno@clisp.org>
42474
42475         Support for building a shared library on Windows platforms.
42476         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
42477         (main): Test the presence of UNINORM_NFC here.
42478         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
42479         (main): Test the presence of UNINORM_NFD here.
42480         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
42481         (main): Test the presence of UNINORM_NFKC here.
42482         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
42483         (main): Test the presence of UNINORM_NFKD here.
42484
42485 2009-04-19  Bruno Haible  <bruno@clisp.org>
42486
42487         Avoid a compiler warning.
42488         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
42489         Change type of variable 'sequence'.
42490
42491 2009-04-19  Bruno Haible  <bruno@clisp.org>
42492
42493         * modules/configmake (Makefile.am): When the contents of configmake.h
42494         does not change, arrange to preserve its modification time.
42495
42496 2009-04-17  Simon Josefsson  <simon@josefsson.org>
42497
42498         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
42499         gettext domain.
42500
42501 2009-04-16  Jim Meyering  <meyering@redhat.com>
42502
42503         useless-if-before-free: improve conversion code
42504         * build-aux/useless-if-before-free: Adjust code-in-comment to match
42505         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
42506
42507 2009-04-14  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/fcntl (Depends-on): Add extensions.
42510         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
42511
42512 2009-04-12  Ben Pfaff  <blp@gnu.org>
42513
42514         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
42515         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
42516
42517 2009-03-20  Ben Pfaff  <blp@gnu.org>
42518
42519         Make rename replace existing destinations on Windows.
42520         * m4/rename.m4: Add test for Mingw.
42521         * lib/rename.c: Add rename replacement that uses MoveFileEx with
42522         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
42523         * doc/posix-functions/rename.texi: Document.
42524
42525 2009-04-10  Bruno Haible  <bruno@clisp.org>
42526
42527         New include file "iconveh.h".
42528         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
42529         * lib/striconveh.h: Include it.
42530         (enum iconv_ilseq_handler): Remove definition.
42531         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
42532         striconveh.h.
42533         * lib/striconveha.c: Include striconveh.h.
42534         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
42535         * modules/striconveh (Files): Add lib/iconveh.h.
42536         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
42537         lib/striconveh.h.
42538
42539 2009-04-10  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/uniconv.h: Update comment.
42542
42543 2009-04-10  Bruno Haible  <bruno@clisp.org>
42544
42545         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
42546         always.
42547         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42548         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42549         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42550         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
42551         "unistring-notinline.h", so that the function gets defined always.
42552         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42553         * lib/unistr/u8-uctomb.c: Likewise.
42554         * lib/unistr/u16-mbtouc.c: Likewise.
42555         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42556         * lib/unistr/u16-uctomb.c: Likewise.
42557         * lib/unistr/u32-mbtouc.c: Likewise.
42558         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42559         * lib/unistr/u32-uctomb.c: Likewise.
42560
42561 2009-04-10  Bruno Haible  <bruno@clisp.org>
42562
42563         Mark 'utime' obsolete.
42564         * modules/utime (Status, Notice): New sections.
42565         Suggested by Jim Meyering.
42566
42567         Fix cross-compile guess for utime test.
42568         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
42569         autoconf.
42570         * doc/posix-functions/utime.texi: Give more precisions.
42571         Reported by Jan <ipif@ymail.com>.
42572
42573 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
42574
42575         filevercmp: correct today's change
42576         * lib/filevercmp.c: Also handle coreutils' test inputs.
42577         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
42578
42579         Fix regression in 'filevercmp' module. Thanks Sven Joachim
42580         for reporting it.
42581         * lib/filevercmp.c: Special handle for "", "." and "..".
42582         * tests/test-filevercmp.c: Enlarge the set suite.
42583
42584 2009-04-07  Jim Meyering  <meyering@redhat.com>
42585
42586         useless-if-before-free: show how to remove braced useless free, too
42587         * build-aux/useless-if-before-free: still only in a comment, though.
42588
42589 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
42590
42591         maint.mk: import changes to syntax-check macros from coreutils
42592         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
42593         Use them in the relevant macros.
42594
42595 2009-04-06  Bruno Haible  <bruno@clisp.org>
42596
42597         Fix unportable use of bit-fields.
42598         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
42599         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
42600         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
42601
42602 2009-04-06  Bruno Haible  <bruno@clisp.org>
42603
42604         Avoid test failures on AIX and OSF/1.
42605         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
42606         that malloc(0) = NULL.
42607         * tests/unicase/test-u8-tolower.c (check): Likewise.
42608         * tests/unicase/test-u8-totitle.c (check): Likewise.
42609         * tests/unicase/test-u8-toupper.c (check): Likewise.
42610         * tests/unicase/test-u16-casefold.c (check): Likewise.
42611         * tests/unicase/test-u16-tolower.c (check): Likewise.
42612         * tests/unicase/test-u16-totitle.c (check): Likewise.
42613         * tests/unicase/test-u16-toupper.c (check): Likewise.
42614         * tests/unicase/test-u32-casefold.c (check): Likewise.
42615         * tests/unicase/test-u32-tolower.c (check): Likewise.
42616         * tests/unicase/test-u32-totitle.c (check): Likewise.
42617         * tests/unicase/test-u32-toupper.c (check): Likewise.
42618         * tests/uninorm/test-u8-nfc.c (check): Likewise.
42619         * tests/uninorm/test-u8-nfd.c (check): Likewise.
42620         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
42621         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
42622         * tests/uninorm/test-u16-nfc.c (check): Likewise.
42623         * tests/uninorm/test-u16-nfd.c (check): Likewise.
42624         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
42625         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
42626         * tests/uninorm/test-u32-nfc.c (check): Likewise.
42627         * tests/uninorm/test-u32-nfd.c (check): Likewise.
42628         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
42629         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
42630
42631 2009-04-05  Bruno Haible  <bruno@clisp.org>
42632
42633         Work around an autoconf limitation.
42634         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
42635         comment line if it would be longer than 3 KB.
42636
42637 2009-04-05  Bruno Haible  <bruno@clisp.org>
42638
42639         Avoid test failure with libiconv-1.13.
42640         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
42641         of the expected test results.
42642
42643 2009-04-05  Bruno Haible  <bruno@clisp.org>
42644
42645         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
42646         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
42647         that it should be installed.
42648
42649 2009-04-05  Bruno Haible  <bruno@clisp.org>
42650
42651         * gnulib-tool: New option --copy-file.
42652         (func_usage): Document it.
42653         (func_dest_tmpfilename): Moved out of func_import.
42654         (func_add_file, func_update_file): New functions, extracted from
42655         func_import.
42656         (func_import): Update.
42657
42658 2009-04-05  Karl Berry  <karl@gnu.org>
42659
42660         * README: prominently mention gnulib-tool.
42661         Rearrange sections so getting the code is near the top.
42662
42663 2009-04-05  Bruno Haible  <bruno@clisp.org>
42664
42665         * lib/unicase.h: Mention u*_cmp2.
42666         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42667         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
42668         * lib/unicase/ulc-casecmp.c: Likewise.
42669         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
42670         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
42671         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
42672         unistr/u8-cmp.
42673         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
42674         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
42675         unistr/u16-cmp.
42676         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
42677         unistr/u32-cmp.
42678
42679         * lib/uninorm.h: Mention u*_cmp2.
42680         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42681         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
42682         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
42683         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
42684         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
42685         unistr/u8-cmp.
42686         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
42687         unistr/u16-cmp.
42688         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
42689         unistr/u32-cmp.
42690
42691         New module 'unistr/u32-cmp2'.
42692         * lib/unistr/u32-cmp2.c: New file.
42693         * modules/unistr/u32-cmp2: New file.
42694
42695         New module 'unistr/u16-cmp2'.
42696         * lib/unistr/u16-cmp2.c: New file.
42697         * modules/unistr/u16-cmp2: New file.
42698
42699         New module 'unistr/u8-cmp2'.
42700         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
42701         * lib/unistr/u8-cmp2.c: New file.
42702         * lib/unistr/u-cmp2.h: New file.
42703         * modules/unistr/u8-cmp2: New file.
42704
42705 2009-04-05  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/unictype.h (uc_property_is_valid): New macro.
42708         * tests/unictype/test-pr_byname.c (main): Use it.
42709
42710         * lib/unistr.h: Doc fixes.
42711         * lib/uniconv.h: Doc fixes.
42712         * lib/unictype.h: Doc fixes.
42713
42714 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
42715
42716         Port coreutils 7.2 to Solaris 8.
42717
42718         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
42719         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
42720         for Solaris 8.  This is a bit of a hack, as it means it's the
42721         caller's responsibility to add -lnsl if needed, but most likely it
42722         won't be needed since only getaddrinfo uses this and getaddrinfo
42723         isn't needed on Solaris 8.
42724
42725         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
42726         problem to Solaris 8 encountered with coreutils 7.2, which
42727         resulted in a message "fnmatch.c:292: warning: passing argument 4
42728         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
42729         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
42730
42731 2009-04-03  Simon Josefsson  <simon@josefsson.org>
42732
42733         * m4/ld-version-script.m4: Add FIXME comment.
42734
42735 2009-04-02  Simon Josefsson  <simon@josefsson.org>
42736
42737         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
42738         SOVERSION variable.
42739
42740 2009-04-02  Bruno Haible  <bruno@clisp.org>
42741
42742         * Makefile (info, html, dvi, pdf): Combine the rules.
42743         Suggested by Jim Meyering.
42744
42745 2009-04-01  Bruno Haible  <bruno@clisp.org>
42746
42747         * Makefile (info, html, dvi, pdf): New targets.
42748         Reported by Reuben Thomas <rrt@sc3d.org>.
42749
42750 2009-04-01  Bruno Haible  <bruno@clisp.org>
42751
42752         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
42753         can be put into PATH.
42754         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
42755
42756 2009-04-01  Bruno Haible  <bruno@clisp.org>
42757
42758         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
42759
42760 2009-04-01  Bruno Haible  <bruno@clisp.org>
42761
42762         Rename module 'visibility'.
42763         * modules/lib-symbol-visibility: Renamed from modules/visibility.
42764         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
42765         * doc/gnulib.texi: Update.
42766         * MODULES.html.sh (Misc): Update.
42767         * NEWS: Mention the change.
42768
42769 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42770
42771         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
42772         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
42773         Eric Blake <ebb9@byu.net> for review.
42774         * MODULES.html.sh: Add lib-msvc-compat.
42775         * doc/gnulib.texi: Link to new section.
42776         * m4/ld-output-def.m4: New file.
42777         * doc/ld-output-def.texi: New file.
42778
42779 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42780
42781         Rename ld-version-script to lib-symbol-versions.  Suggested by
42782         Bruno Haible <bruno@clisp.org>.
42783         * modules/ld-version-script: Renamed to lib-symbol-versions.
42784         * doc/ld-version-script.texi: Fix module name.
42785         * MODULES.html.sh: Add lib-symbol-versions.
42786
42787 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42788
42789         * modules/u64-tests: New file.
42790         * tests/test-u64.c: New file.
42791
42792 2009-03-04  Simon Josefsson  <simon@josefsson.org>
42793
42794         * MODULES.html.sh: Mention u64.
42795         * modules/u64: New module.
42796         * modules/crypto/sha512: Depend on u64 module instead of providing
42797         u64.h.
42798
42799 2009-03-27  Eric Blake  <ebb9@byu.net>
42800
42801         test-strerror: make debugging EAI_SYSTEM easier
42802         * modules/getaddrinfo-tests (Depends-on): Add strerror.
42803         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
42804         failure was EAI_SYSTEM.
42805
42806 2009-03-25  Bruno Haible  <bruno@clisp.org>
42807
42808         Fix a problem with --enable-relocatable on Solaris 7.
42809         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42810         since 2008-02-24.
42811
42812 2009-03-25  Eric Blake  <ebb9@byu.net>
42813
42814         test-sockets: avoid gcc warning
42815         * tests/test-sockets.c (main): Silence compiler warning.
42816
42817 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42818
42819         New modules nproc, pthread, contributed by Glen Lenker.
42820
42821         * MODULES.html.sh: Add pthread, nproc.
42822         * lib/nproc.c: New file.
42823         * lib/nproc.h: New file.
42824         * lib/pthread.in.h: New file.
42825         * m4/pthread.m4: New file.
42826         * modules/nproc: New file.
42827         * modules/pthread: New file.
42828
42829 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42830
42831         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42832         New variable.
42833
42834 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42835
42836         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42837         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42838         * tests/test-filevercmp.c: Add tests for backup suffixes.
42839
42840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42841
42842         * modules/stdlib (Depends-on): Add stdint, needed when defining
42843         struct random_data on, for example, HP-UX 10.20.  Reported by
42844         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42845
42846 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42847
42848         * lib/readline.c (readline): Call fflush on stdout after printing
42849         prompt.
42850
42851 2009-03-20  Bruno Haible  <bruno@clisp.org>
42852
42853         Remove dependency from 'close' module to -lws2_32 on native Windows.
42854         * lib/close-hook.h: New file.
42855         * lib/close-hook.c: New file.
42856         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42857         w32sock.h.
42858         (_gl_close_fd_maybe_socket): Remove function.
42859         (rpl_close): Invoke execute_all_close_hooks instead of
42860         _gl_close_fd_maybe_socket.
42861         * lib/sockets.c: Include close-hook.h, w32sock.h.
42862         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42863         (close_sockets_hook): New variable.
42864         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42865         (gl_sockets_cleanup): Unregister it.
42866         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42867         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42868         * modules/close-hook: New file.
42869         * modules/close (Files): Remove lib/w32sock.h.
42870         (Depends-on): Add close-hook.
42871         (Link): Remove section.
42872         * modules/sockets (Files): Add lib/w32sock.h.
42873         (Depends-on): Add close-hook.
42874         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42875         invocation.
42876         * NEWS: Mention that LIB_CLOSE is gone.
42877
42878 2009-03-23  Eric Blake  <ebb9@byu.net>
42879
42880         signal-tests: test previous patch
42881         * tests/test-signal.c: New file.
42882         * modules/signal-tests: Likewise.
42883
42884         signal.h: always support 'volatile sig_atomic_t'
42885         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42886         (gl_SIGNAL_H_DEFAULTS): Add a default.
42887         * modules/signal (Makefile.am): Substitute if needed.
42888         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42889         users can blindly add volatile.
42890         * doc/posix-headers/signal.texi (signal.h): Document it.
42891         Reported by Matthew Woehlke.
42892
42893 2009-03-23  Jim Meyering  <meyering@redhat.com>
42894
42895         pathmax: PATH_MAX: use pathconf only when available
42896         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42897         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42898         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42899         This avoids a link failure in a PSP cross-compilation environment
42900         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42901
42902         * lib/vasnprintf.c (divide): Fix typo in comment.
42903
42904 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42905
42906         * gnulib-tool (func_filter_filelist): Fix comment.
42907
42908 2009-03-20  Bruno Haible  <bruno@clisp.org>
42909
42910         Make sockets.h self-contained.
42911         * lib/sockets.c: Include sockets.h first.
42912         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42913
42914 2009-03-19  Eric Blake  <ebb9@byu.net>
42915
42916         doc: mention more functions added in cygwin 1.7.0
42917         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42918         addition.
42919         * doc/posix-functions/log2f.texi: Likewise.
42920
42921 2009-03-19  Jim Meyering  <meyering@redhat.com>
42922
42923         fsusage: avoid syntax error due to statement-before-declaration
42924         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42925         after all declarations.  Reported by Matthew Woehlke in
42926         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42927
42928 2009-03-18  Eric Blake  <ebb9@byu.net>
42929
42930         build-aux/compile: sync from automake
42931         * build-aux/compile: New file, from automake.
42932         * config/srclist.txt: Mention build-aux/compile.
42933
42934 2009-03-17  Bruno Haible  <bruno@clisp.org>
42935
42936         * lib/git-merge-changelog.c: Fix typo in comment.
42937         Reported by Reuben Thomas <rrt@sc3d.org>.
42938
42939 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42940
42941         * m4/regex.m4: update and improve help for
42942         --without-included-regex.
42943
42944 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42945
42946         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42947         failure on missing include files.
42948
42949 2009-03-17  Eric Blake  <ebb9@byu.net>
42950
42951         doc: mention more functions added in cygwin 1.7.0
42952         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42953         addition.
42954         * doc/posix-functions/fwscanf.texi: Likewise.
42955         * doc/posix-functions/swprintf.texi: Likewise.
42956         * doc/posix-functions/swscanf.texi: Likewise.
42957         * doc/posix-functions/vfwprintf.texi: Likewise.
42958         * doc/posix-functions/vfwscanf.texi: Likewise.
42959         * doc/posix-functions/vswprintf.texi: Likewise.
42960         * doc/posix-functions/vswscanf.texi: Likewise.
42961         * doc/posix-functions/vwprintf.texi: Likewise.
42962         * doc/posix-functions/vwscanf.texi: Likewise.
42963         * doc/posix-functions/wcscasecmp.texi: Likewise.
42964         * doc/posix-functions/wcsdup.texi: Likewise.
42965         * doc/posix-functions/wcsftime.texi: Likewise.
42966         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42967         * doc/posix-functions/wprintf.texi: Likewise.
42968         * doc/posix-functions/wscanf.texi: Likewise.
42969         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42970
42971 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42972
42973         maint.mk: really add $(AM_MAKEFLAGS)
42974         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42975         was inadvertently omitted in the last commit.
42976         Spotted by Bruno Haible.
42977
42978         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42979         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42980         $(AM_MAKEFLAGS)' rather than plain `make'.
42981
42982         gnulib-tool: execute $MAKE not make
42983         * gnulib-tool: Default $MAKE to 'make'.
42984         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42985         than make.  Initialize $MAKE in the do-autobuild script.
42986
42987         gnulib-tool: use $MAKE not make in generated files
42988         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42989         make, in generated files.  Initialize $MAKE in the do-autobuild
42990         script.
42991
42992         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42993
42994         GNUmakefile: disable parallelism only for multiple, recursive targets
42995         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42996         additions in the Makefile.
42997         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42998         by Automake.
42999         (.NOTPARALLEL): Only disable parallel builds if multiple targets
43000         are listed on the command line and at least one of them is
43001         listed in $(ALL_RECURSIVE_TARGETS).
43002
43003 2009-03-14  Bruno Haible  <bruno@clisp.org>
43004
43005         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
43006         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
43007         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
43008         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
43009         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
43010         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
43011         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
43012         unistr/u8-uctomb.
43013         * modules/unistr/u8-strchr (Depends-on): Likewise.
43014         * modules/unistr/u8-strrchr (Depends-on): Likewise.
43015         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
43016         unistr/u16-uctomb.
43017         * modules/unistr/u16-strchr (Depends-on): Likewise.
43018         * modules/unistr/u16-strrchr (Depends-on): Likewise.
43019
43020 2009-03-12  Bruno Haible  <bruno@clisp.org>
43021
43022         Work around select() bug on Interix 3.5.
43023         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
43024         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
43025         * m4/select.m4: New file.
43026         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
43027         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
43028         * modules/select (Files): Add m4/select.m4.
43029         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
43030         * modules/nanosleep (Depends-on): Add select.
43031         * modules/poll (Depends-on): Likewise.
43032         * doc/posix-functions/select.texi: Mention the Interix bug.
43033         Reported by Markus Duft <mduft@gentoo.org>.
43034
43035         * lib/select.c: Renamed from lib/winsock-select.c.
43036         * modules/select (Files): Add lib/select.c, remove
43037         lib/winsock-select.c.
43038         (configure.ac): Update.
43039
43040 2009-03-12  Jim Meyering  <meyering@redhat.com>
43041
43042         avoid gcc warnings about unused macro definitions
43043         * lib/readtokens.c (STREQ): Remove unused definition.
43044         * lib/xmalloc.c (SIZE_MAX): Likewise.
43045         * lib/openat-die.c (N_): Likewise.
43046         * lib/mountlist.c (SIZE_MAX): Remove definition.
43047         Instead, include <stdint.h>.
43048         * lib/readutmp.c: Likewise.
43049         * modules/readutmp (Depends-on): Add stdint.
43050         * modules/mountlist (Depends-on): Add stdint.
43051         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
43052
43053 2009-03-10  Bruno Haible  <bruno@clisp.org>
43054
43055         Tests for module 'mbmemcasecoll'.
43056         * modules/mbmemcasecoll-tests: New file.
43057         * tests/test-mbmemcasecoll1.sh: New file.
43058         * tests/test-mbmemcasecoll2.sh: New file.
43059         * tests/test-mbmemcasecoll3.sh: New file.
43060         * tests/test-mbmemcasecoll.c: New file.
43061
43062         New module 'mbmemcasecoll'.
43063         * lib/mbmemcasecoll.h: New file.
43064         * lib/mbmemcasecoll.c: New file.
43065         * modules/mbmemcasecoll: New file.
43066
43067         * tests/test-mbmemcasecmp.h: New file, extracted from
43068         tests/test-mbmemcasecmp.c.
43069         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
43070         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
43071         (main): Update.
43072         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
43073
43074 2009-03-09  Bruno Haible  <bruno@clisp.org>
43075
43076         Tests for module 'mbmemcasecmp'.
43077         * modules/mbmemcasecmp-tests: New file.
43078         * tests/test-mbmemcasecmp1.sh: New file.
43079         * tests/test-mbmemcasecmp2.sh: New file.
43080         * tests/test-mbmemcasecmp3.sh: New file.
43081         * tests/test-mbmemcasecmp.c: New file.
43082
43083         New module 'mbmemcasecmp'.
43084         * lib/mbmemcasecmp.h: New file.
43085         * lib/mbmemcasecmp.c: New file.
43086         * modules/mbmemcasecmp: New file.
43087
43088 2009-03-09  Bruno Haible  <bruno@clisp.org>
43089
43090         Tests for module 'unicase/ulc-casecoll'.
43091         * modules/unicase/ulc-casecoll-tests: New file.
43092         * tests/unicase/test-ulc-casecoll1.sh: New file.
43093         * tests/unicase/test-ulc-casecoll2.sh: New file.
43094         * tests/unicase/test-ulc-casecoll.c: New file.
43095
43096         New module 'unicase/ulc-casecoll'.
43097         * lib/unicase.h (ulc_casecoll): New declaration.
43098         * lib/unicase/ulc-casecoll.c: New file.
43099         * modules/unicase/ulc-casecoll: New file.
43100
43101         New module 'unicase/ulc-casexfrm'.
43102         * lib/unicase.h (ulc_casexfrm): New declaration.
43103         * lib/unicase/ulc-casexfrm.c: New file.
43104         * modules/unicase/ulc-casexfrm: New file.
43105
43106 2009-03-09  Bruno Haible  <bruno@clisp.org>
43107
43108         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
43109         invocations.
43110
43111         * m4/mbscasecmp.m4: Remove file.
43112         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
43113         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
43114
43115         * m4/mbscasestr.m4: Remove file.
43116         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
43117         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
43118
43119         * m4/mbschr.m4: Remove file.
43120         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
43121         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
43122
43123         * m4/mbscspn.m4: Remove file.
43124         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
43125         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
43126
43127         * m4/mbslen.m4: Remove file.
43128         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
43129         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
43130
43131         * m4/mbsncasecmp.m4: Remove file.
43132         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
43133         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
43134
43135         * m4/mbsnlen.m4: Remove file.
43136         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
43137         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
43138
43139         * m4/mbspbrk.m4: Remove file.
43140         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
43141         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
43142
43143         * m4/mbspcasecmp.m4: Remove file.
43144         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
43145         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
43146
43147         * m4/mbsrchr.m4: Remove file.
43148         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
43149         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
43150
43151         * m4/mbssep.m4: Remove file.
43152         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
43153         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
43154
43155         * m4/mbsspn.m4: Remove file.
43156         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
43157         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
43158
43159         * m4/mbsstr.m4: Remove file.
43160         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
43161         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
43162
43163         * m4/mbstok_r.m4: Remove file.
43164         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
43165         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
43166
43167         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
43168
43169         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
43170         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
43171
43172         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
43173
43174 2009-03-08  Bruno Haible  <bruno@clisp.org>
43175
43176         Tests for module 'unicase/ulc-casecmp'.
43177         * modules/unicase/ulc-casecmp-tests: New file.
43178         * tests/unicase/test-ulc-casecmp1.sh: New file.
43179         * tests/unicase/test-ulc-casecmp2.sh: New file.
43180         * tests/unicase/test-ulc-casecmp.c: New file.
43181
43182         New module 'unicase/ulc-casecmp'.
43183         * lib/unicase.h (ulc_casecmp): New declaration.
43184         * lib/unicase/ulc-casecmp.c: New file.
43185         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
43186         'const SRC_UNIT *'.
43187         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
43188         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
43189         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
43190         * modules/unicase/ulc-casecmp: New file.
43191
43192         Tests for module 'unicase/u32-is-cased'.
43193         * modules/unicase/u32-is-cased-tests: New file.
43194         * tests/unicase/test-u32-is-cased.c: New file.
43195
43196         Tests for module 'unicase/u16-is-cased'.
43197         * modules/unicase/u16-is-cased-tests: New file.
43198         * tests/unicase/test-u16-is-cased.c: New file.
43199
43200         Tests for module 'unicase/u8-is-cased'.
43201         * modules/unicase/u8-is-cased-tests: New file.
43202         * tests/unicase/test-u8-is-cased.c: New file.
43203         * tests/unicase/test-is-cased.h: New file.
43204
43205         New module 'unicase/u32-is-cased'.
43206         * lib/unicase/u32-is-cased.c: New file.
43207         * modules/unicase/u32-is-cased: New file.
43208
43209         New module 'unicase/u16-is-cased'.
43210         * lib/unicase/u16-is-cased.c: New file.
43211         * modules/unicase/u16-is-cased: New file.
43212
43213         New module 'unicase/u8-is-cased'.
43214         * lib/unicase/u8-is-cased.c: New file.
43215         * lib/unicase/u-is-cased.h: New file.
43216         * modules/unicase/u8-is-cased: New file.
43217
43218         Tests for module 'unicase/u32-is-casefolded'.
43219         * modules/unicase/u32-is-casefolded-tests: New file.
43220         * tests/unicase/test-u32-is-casefolded.c: New file.
43221
43222         Tests for module 'unicase/u16-is-casefolded'.
43223         * modules/unicase/u16-is-casefolded-tests: New file.
43224         * tests/unicase/test-u16-is-casefolded.c: New file.
43225
43226         Tests for module 'unicase/u8-is-casefolded'.
43227         * modules/unicase/u8-is-casefolded-tests: New file.
43228         * tests/unicase/test-u8-is-casefolded.c: New file.
43229         * tests/unicase/test-is-casefolded.h: New file.
43230
43231         New module 'unicase/u32-is-casefolded'.
43232         * lib/unicase/u32-is-casefolded.c: New file.
43233         * modules/unicase/u32-is-casefolded: New file.
43234
43235         New module 'unicase/u16-is-casefolded'.
43236         * lib/unicase/u16-is-casefolded.c: New file.
43237         * modules/unicase/u16-is-casefolded: New file.
43238
43239         New module 'unicase/u8-is-casefolded'.
43240         * lib/unicase/u8-is-casefolded.c: New file.
43241         * modules/unicase/u8-is-casefolded: New file.
43242
43243         Tests for module 'unicase/u32-is-titlecase'.
43244         * modules/unicase/u32-is-titlecase-tests: New file.
43245         * tests/unicase/test-u32-is-titlecase.c: New file.
43246
43247         Tests for module 'unicase/u16-is-titlecase'.
43248         * modules/unicase/u16-is-titlecase-tests: New file.
43249         * tests/unicase/test-u16-is-titlecase.c: New file.
43250
43251         Tests for module 'unicase/u8-is-titlecase'.
43252         * modules/unicase/u8-is-titlecase-tests: New file.
43253         * tests/unicase/test-u8-is-titlecase.c: New file.
43254         * tests/unicase/test-is-titlecase.h: New file.
43255
43256         New module 'unicase/u32-is-titlecase'.
43257         * lib/unicase/u32-is-titlecase.c: New file.
43258         * modules/unicase/u32-is-titlecase: New file.
43259
43260         New module 'unicase/u16-is-titlecase'.
43261         * lib/unicase/u16-is-titlecase.c: New file.
43262         * modules/unicase/u16-is-titlecase: New file.
43263
43264         New module 'unicase/u8-is-titlecase'.
43265         * lib/unicase/u8-is-titlecase.c: New file.
43266         * modules/unicase/u8-is-titlecase: New file.
43267
43268         Tests for module 'unicase/u32-is-lowercase'.
43269         * modules/unicase/u32-is-lowercase-tests: New file.
43270         * tests/unicase/test-u32-is-lowercase.c: New file.
43271
43272         Tests for module 'unicase/u16-is-lowercase'.
43273         * modules/unicase/u16-is-lowercase-tests: New file.
43274         * tests/unicase/test-u16-is-lowercase.c: New file.
43275
43276         Tests for module 'unicase/u8-is-lowercase'.
43277         * modules/unicase/u8-is-lowercase-tests: New file.
43278         * tests/unicase/test-u8-is-lowercase.c: New file.
43279         * tests/unicase/test-is-lowercase.h: New file.
43280
43281         New module 'unicase/u32-is-lowercase'.
43282         * lib/unicase/u32-is-lowercase.c: New file.
43283         * modules/unicase/u32-is-lowercase: New file.
43284
43285         New module 'unicase/u16-is-lowercase'.
43286         * lib/unicase/u16-is-lowercase.c: New file.
43287         * modules/unicase/u16-is-lowercase: New file.
43288
43289         New module 'unicase/u8-is-lowercase'.
43290         * lib/unicase/u8-is-lowercase.c: New file.
43291         * modules/unicase/u8-is-lowercase: New file.
43292
43293         Tests for module 'unicase/u32-is-uppercase'.
43294         * modules/unicase/u32-is-uppercase-tests: New file.
43295         * tests/unicase/test-u32-is-uppercase.c: New file.
43296
43297         Tests for module 'unicase/u16-is-uppercase'.
43298         * modules/unicase/u16-is-uppercase-tests: New file.
43299         * tests/unicase/test-u16-is-uppercase.c: New file.
43300
43301         Tests for module 'unicase/u8-is-uppercase'.
43302         * modules/unicase/u8-is-uppercase-tests: New file.
43303         * tests/unicase/test-u8-is-uppercase.c: New file.
43304         * tests/unicase/test-is-uppercase.h: New file.
43305
43306         New module 'unicase/u32-is-uppercase'.
43307         * lib/unicase/u32-is-uppercase.c: New file.
43308         * modules/unicase/u32-is-uppercase: New file.
43309
43310         New module 'unicase/u16-is-uppercase'.
43311         * lib/unicase/u16-is-uppercase.c: New file.
43312         * modules/unicase/u16-is-uppercase: New file.
43313
43314         New module 'unicase/u8-is-uppercase'.
43315         * lib/unicase/u8-is-uppercase.c: New file.
43316         * modules/unicase/u8-is-uppercase: New file.
43317
43318         New module 'unicase/u32-is-invariant'.
43319         * lib/unicase/u32-is-invariant.c: New file.
43320         * modules/unicase/u32-is-invariant: New file.
43321
43322         New module 'unicase/u16-is-invariant'.
43323         * lib/unicase/u16-is-invariant.c: New file.
43324         * modules/unicase/u16-is-invariant: New file.
43325
43326         New module 'unicase/u8-is-invariant'.
43327         * lib/unicase/u8-is-invariant.c: New file.
43328         * lib/unicase/invariant.h: New file.
43329         * lib/unicase/u-is-invariant.h: New file.
43330         * modules/unicase/u8-is-invariant: New file.
43331
43332         Tests for module 'unicase/u32-casecoll'.
43333         * modules/unicase/u32-casecoll-tests: New file.
43334         * tests/unicase/test-u32-casecoll.c: New file.
43335
43336         Tests for module 'unicase/u16-casecoll'.
43337         * modules/unicase/u16-casecoll-tests: New file.
43338         * tests/unicase/test-u16-casecoll.c: New file.
43339
43340         Tests for module 'unicase/u8-casecoll'.
43341         * modules/unicase/u8-casecoll-tests: New file.
43342         * tests/unicase/test-u8-casecoll.c: New file.
43343
43344         New module 'unicase/u32-casecoll'.
43345         * lib/unicase/u32-casecoll.c: New file.
43346         * modules/unicase/u32-casecoll: New file.
43347
43348         New module 'unicase/u16-casecoll'.
43349         * lib/unicase/u16-casecoll.c: New file.
43350         * modules/unicase/u16-casecoll: New file.
43351
43352         New module 'unicase/u8-casecoll'.
43353         * lib/unicase/u8-casecoll.c: New file.
43354         * lib/unicase/u-casecoll.h: New file.
43355         * modules/unicase/u8-casecoll: New file.
43356
43357         New module 'unicase/u32-casexfrm'.
43358         * lib/unicase/u32-casexfrm.c: New file.
43359         * modules/unicase/u32-casexfrm: New file.
43360
43361         New module 'unicase/u16-casexfrm'.
43362         * lib/unicase/u16-casexfrm.c: New file.
43363         * modules/unicase/u16-casexfrm: New file.
43364
43365         New module 'unicase/u8-casexfrm'.
43366         * lib/unicase/u8-casexfrm.c: New file.
43367         * lib/unicase/u-casexfrm.h: New file.
43368         * modules/unicase/u8-casexfrm: New file.
43369
43370         Tests for module 'unicase/u32-casecmp'.
43371         * modules/unicase/u32-casecmp-tests: New file.
43372         * tests/unicase/test-u32-casecmp.c: New file.
43373
43374         Tests for module 'unicase/u16-casecmp'.
43375         * modules/unicase/u16-casecmp-tests: New file.
43376         * tests/unicase/test-u16-casecmp.c: New file.
43377
43378         Tests for module 'unicase/u8-casecmp'.
43379         * modules/unicase/u8-casecmp-tests: New file.
43380         * tests/unicase/test-u8-casecmp.c: New file.
43381         * tests/unicase/test-casecmp.h: New file.
43382
43383         New module 'unicase/u32-casecmp'.
43384         * lib/unicase/u32-casecmp.c: New file.
43385         * modules/unicase/u32-casecmp: New file.
43386
43387         New module 'unicase/u16-casecmp'.
43388         * lib/unicase/u16-casecmp.c: New file.
43389         * modules/unicase/u16-casecmp: New file.
43390
43391         New module 'unicase/u8-casecmp'.
43392         * lib/unicase/u8-casecmp.c: New file.
43393         * lib/unicase/u-casecmp.h: New file.
43394         * modules/unicase/u8-casecmp: New file.
43395
43396         Tests for module 'unicase/u32-casefold'.
43397         * modules/unicase/u32-casefold-tests: New file.
43398         * tests/unicase/test-u32-casefold.c: New file.
43399
43400         Tests for module 'unicase/u16-casefold'.
43401         * modules/unicase/u16-casefold-tests: New file.
43402         * tests/unicase/test-u16-casefold.c: New file.
43403
43404         Tests for module 'unicase/u8-casefold'.
43405         * modules/unicase/u8-casefold-tests: New file.
43406         * tests/unicase/test-u8-casefold.c: New file.
43407
43408         New module 'unicase/u32-casefold'.
43409         * lib/unicase/u32-casefold.c: New file.
43410         * modules/unicase/u32-casefold: New file.
43411
43412         New module 'unicase/u16-casefold'.
43413         * lib/unicase/u16-casefold.c: New file.
43414         * modules/unicase/u16-casefold: New file.
43415
43416         New module 'unicase/u8-casefold'.
43417         * lib/unicase/u8-casefold.c: New file.
43418         * lib/unicase/u-casefold.h: New file.
43419         * modules/unicase/u8-casefold: New file.
43420
43421         New module 'unicase/tocasefold'.
43422         * lib/unicase/casefold.h: New file.
43423         * lib/unicase/tocasefold.c: New file.
43424         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
43425         * modules/unicase/tocasefold: New file.
43426
43427         Tests for module 'unicase/u32-totitle'.
43428         * modules/unicase/u32-totitle-tests: New file.
43429         * tests/unicase/test-u32-totitle.c: New file.
43430
43431         Tests for module 'unicase/u16-totitle'.
43432         * modules/unicase/u16-totitle-tests: New file.
43433         * tests/unicase/test-u16-totitle.c: New file.
43434
43435         Tests for module 'unicase/u8-totitle'.
43436         * modules/unicase/u8-totitle-tests: New file.
43437         * tests/unicase/test-u8-totitle.c: New file.
43438
43439         New module 'unicase/u32-totitle'.
43440         * lib/unicase/u32-totitle.c: New file.
43441         * modules/unicase/u32-totitle: New file.
43442
43443         New module 'unicase/u16-totitle'.
43444         * lib/unicase/u16-totitle.c: New file.
43445         * modules/unicase/u16-totitle: New file.
43446
43447         New module 'unicase/u8-totitle'.
43448         * lib/unicase/u8-totitle.c: New file.
43449         * lib/unicase/u-totitle.h: New file.
43450         * modules/unicase/u8-totitle: New file.
43451
43452         Tests for module 'unicase/u32-tolower'.
43453         * modules/unicase/u32-tolower-tests: New file.
43454         * tests/unicase/test-u32-tolower.c: New file.
43455
43456         Tests for module 'unicase/u16-tolower'.
43457         * modules/unicase/u16-tolower-tests: New file.
43458         * tests/unicase/test-u16-tolower.c: New file.
43459
43460         Tests for module 'unicase/u8-tolower'.
43461         * modules/unicase/u8-tolower-tests: New file.
43462         * tests/unicase/test-u8-tolower.c: New file.
43463
43464         New module 'unicase/u32-tolower'.
43465         * lib/unicase/u32-tolower.c: New file.
43466         * modules/unicase/u32-tolower: New file.
43467
43468         New module 'unicase/u16-tolower'.
43469         * lib/unicase/u16-tolower.c: New file.
43470         * modules/unicase/u16-tolower: New file.
43471
43472         New module 'unicase/u8-tolower'.
43473         * lib/unicase/u8-tolower.c: New file.
43474         * modules/unicase/u8-tolower: New file.
43475
43476         Tests for module 'unicase/u32-toupper'.
43477         * modules/unicase/u32-toupper-tests: New file.
43478         * tests/unicase/test-u32-toupper.c: New file.
43479
43480         Tests for module 'unicase/u16-toupper'.
43481         * modules/unicase/u16-toupper-tests: New file.
43482         * tests/unicase/test-u16-toupper.c: New file.
43483
43484         Tests for module 'unicase/u8-toupper'.
43485         * modules/unicase/u8-toupper-tests: New file.
43486         * tests/unicase/test-u8-toupper.c: New file.
43487
43488         New module 'unicase/u32-toupper'.
43489         * lib/unicase/u32-toupper.c: New file.
43490         * modules/unicase/u32-toupper: New file.
43491
43492         New module 'unicase/u16-toupper'.
43493         * lib/unicase/u16-toupper.c: New file.
43494         * modules/unicase/u16-toupper: New file.
43495
43496         New module 'unicase/u8-toupper'.
43497         * lib/unicase/u8-toupper.c: New file.
43498         * modules/unicase/u8-toupper: New file.
43499
43500         New module 'unicase/u32-casemap'.
43501         * lib/unicase/u32-casemap.c: New file.
43502         * modules/unicase/u32-casemap: New file.
43503
43504         New module 'unicase/u16-casemap'.
43505         * lib/unicase/u16-casemap.c: New file.
43506         * modules/unicase/u16-casemap: New file.
43507
43508         New module 'unicase/u8-casemap'.
43509         * lib/unicase/unicasemap.h: New file.
43510         * lib/unicase/u8-casemap.c: New file.
43511         * lib/unicase/u-casemap.h: New file.
43512         * modules/unicase/u8-casemap: New file.
43513
43514         New module 'unicase/special-casing'.
43515         * lib/unicase/special-casing.h: New file.
43516         * lib/unicase/special-casing.c: New file.
43517         * lib/unicase/special-casing-table.gperf: New file, generated by
43518         gen-uni-tables.c.
43519         * modules/unicase/special-casing: New file.
43520
43521         Tests for module 'unicase/locale-language'.
43522         * modules/unicase/locale-language-tests: New file.
43523         * tests/unicase/test-locale-language.sh: New file.
43524         * tests/unicase/test-locale-language.c: New file.
43525
43526         New module 'unicase/locale-language'.
43527         * lib/unicase/locale-language.c: New file.
43528         * lib/unicase/locale-languages.gperf: New file.
43529         * modules/unicase/locale-language: New file.
43530
43531         Generate more tables for case conversion and case folding.
43532         * lib/gen-uni-tables.c (SCC_*): New enum items.
43533         (struct special_casing_rule): New type.
43534         (casing_rules, num_casing_rules, allocated_casing_rules): New
43535         variables.
43536         (add_casing_rule, fill_casing_rules): New functions.
43537         (struct casefold_rule): New type.
43538         (casefolding_rules, num_casefolding_rules,
43539         allocated_casefolding_rules): New variables.
43540         (fill_casefolding_rules): New function.
43541         (unicode_casefold): New variable.
43542         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
43543         sort_casing_rules, output_casing_rules): New functions.
43544         (main): Accept to more arguments: SpecialCasing.txt and
43545         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
43546         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
43547         Output mapping for casefolding.
43548
43549         * lib/unicase.h: Include stdbool.h, uninorm.h.
43550         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
43551         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
43552         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
43553         arguments.
43554         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
43555         resultp arguments.
43556         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
43557         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
43558         resultp arguments.
43559         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
43560         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
43561         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
43562         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
43563         declarations.
43564         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
43565
43566 2009-03-08  Bruno Haible  <bruno@clisp.org>
43567
43568         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43569         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
43570         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
43571         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43572
43573 2009-03-07  Bruno Haible  <bruno@clisp.org>
43574
43575         Adjust u*_normcmp, u*_normcoll API.
43576         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43577         u16_normcoll, u32_normcoll): Change failure conventions.
43578         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
43579         errno and return -1.
43580         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43581
43582 2009-03-07  Bruno Haible  <bruno@clisp.org>
43583
43584         Tests for module 'uninorm/u32-normcoll'.
43585         * modules/uninorm/u32-normcoll-tests: New file.
43586         * tests/uninorm/test-u32-normcoll.c: New file.
43587
43588         Tests for module 'uninorm/u16-normcoll'.
43589         * modules/uninorm/u16-normcoll-tests: New file.
43590         * tests/uninorm/test-u16-normcoll.c: New file.
43591
43592         Tests for module 'uninorm/u8-normcoll'.
43593         * modules/uninorm/u8-normcoll-tests: New file.
43594         * tests/uninorm/test-u8-normcoll.c: New file.
43595
43596 2009-03-07  Bruno Haible  <bruno@clisp.org>
43597
43598         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
43599         tests/uninorm/test-u32-normcmp.c.
43600         * tests/uninorm/test-u32-normcmp.c: Include it.
43601         (test_nonascii): New function, extracted from main. Add some more
43602         tests.
43603         (main): Invoke test_ascii and test_nonascii.
43604         * modules/uninorm/u32-normcmp-tests (Files): Add
43605         tests/uninorm/test-u32-normcmp.h.
43606         (Depends-on): Remove uninorm/u32-normcmp.
43607
43608         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
43609         tests/uninorm/test-u16-normcmp.c.
43610         * tests/uninorm/test-u16-normcmp.c: Include it.
43611         (test_nonascii): New function, extracted from main. Add some more
43612         tests.
43613         (main): Invoke test_ascii and test_nonascii.
43614         * modules/uninorm/u16-normcmp-tests (Files): Add
43615         tests/uninorm/test-u16-normcmp.h.
43616         (Depends-on): Remove uninorm/u16-normcmp.
43617
43618         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
43619         tests/uninorm/test-u8-normcmp.c.
43620         * tests/uninorm/test-u8-normcmp.c: Include it.
43621         (test_nonascii): New function, extracted from main. Add some more
43622         tests.
43623         (main): Invoke test_ascii and test_nonascii.
43624         * modules/uninorm/u8-normcmp-tests (Files): Add
43625         tests/uninorm/test-u8-normcmp.h.
43626         (Depends-on): Remove uninorm/u8-normcmp.
43627
43628 2009-03-07  Bruno Haible  <bruno@clisp.org>
43629
43630         New module 'uninorm/u32-normcoll'.
43631         * lib/uninorm/u32-normcoll.c: New file.
43632         * modules/uninorm/u32-normcoll: New file.
43633
43634         New module 'uninorm/u16-normcoll'.
43635         * lib/uninorm/u16-normcoll.c: New file.
43636         * modules/uninorm/u16-normcoll: New file.
43637
43638         New module 'uninorm/u8-normcoll'.
43639         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
43640         declarations.
43641         * lib/uninorm/u8-normcoll.c: New file.
43642         * lib/uninorm/u-normcoll.h: New file.
43643         * modules/uninorm/u8-normcoll: New file.
43644
43645         New module 'uninorm/u32-normxfrm'.
43646         * lib/uninorm/u32-normxfrm.c: New file.
43647         * modules/uninorm/u32-normxfrm: New file.
43648
43649         New module 'uninorm/u16-normxfrm'.
43650         * lib/uninorm/u16-normxfrm.c: New file.
43651         * modules/uninorm/u16-normxfrm: New file.
43652
43653         New module 'uninorm/u8-normxfrm'.
43654         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
43655         declarations.
43656         * lib/uninorm/u8-normxfrm.c: New file.
43657         * lib/uninorm/u-normxfrm.h: New file.
43658         * modules/uninorm/u8-normxfrm: New file.
43659
43660 2009-03-07  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
43663         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
43664         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
43665
43666 2009-03-07  Bruno Haible  <bruno@clisp.org>
43667
43668         New module 'memxfrm'.
43669         * lib/memxfrm.h: New file.
43670         * lib/memxfrm.c: New file.
43671         * modules/memxfrm: New file.
43672
43673 2009-03-07  Bruno Haible  <bruno@clisp.org>
43674
43675         New module 'memcmp2'.
43676         * lib/memcmp2.h: New file.
43677         * lib/memcmp2.c: New file.
43678         * modules/memcmp2: New file.
43679
43680 2009-03-07  Bruno Haible  <bruno@clisp.org>
43681
43682         Tests for module 'uninorm/decomposing-form'.
43683         * modules/uninorm/decomposing-form-tests: New file.
43684         * tests/uninorm/test-decomposing-form.c: New file.
43685
43686         New module 'uninorm/decomposing-form'.
43687         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
43688         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
43689         Add 'decomposing_variant' field.
43690         * lib/uninorm/decomposing-form.c: New file.
43691         * lib/uninorm/nfc.c (uninorm_nfc): Update.
43692         * lib/uninorm/nfd.c (uninorm_nfd): Update.
43693         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
43694         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
43695         * modules/uninorm/decomposing-form: New file.
43696         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
43697         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
43698
43699 2009-03-07  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
43702         strings.
43703
43704 2009-03-06  Bruno Haible  <bruno@clisp.org>
43705
43706         Tests for module 'uninorm/u32-normcmp'.
43707         * tests/uninorm/test-u32-normcmp.c: New file.
43708         * modules/uninorm/u32-normcmp-tests: New file.
43709
43710         Tests for module 'uninorm/u16-normcmp'.
43711         * tests/uninorm/test-u16-normcmp.c: New file.
43712         * modules/uninorm/u16-normcmp-tests: New file.
43713
43714         Tests for module 'uninorm/u8-normcmp'.
43715         * tests/uninorm/test-u8-normcmp.c: New file.
43716         * modules/uninorm/u8-normcmp-tests: New file.
43717
43718         New module 'uninorm/u32-normcmp'.
43719         * lib/uninorm/u32-normcmp.c: New file.
43720         * modules/uninorm/u32-normcmp: New file.
43721
43722         New module 'uninorm/u16-normcmp'.
43723         * lib/uninorm/u16-normcmp.c: New file.
43724         * modules/uninorm/u16-normcmp: New file.
43725
43726         New module 'uninorm/u8-normcmp'.
43727         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
43728         declarations.
43729         * lib/uninorm/u8-normcmp.c: New file.
43730         * lib/uninorm/u-normcmp.h: New file.
43731         * modules/uninorm/u8-normcmp: New file.
43732
43733 2009-03-06  Bruno Haible  <bruno@clisp.org>
43734
43735         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
43736         Reported by Eric Blake.
43737
43738 2009-03-06  Eric Blake  <ebb9@byu.net>
43739             Bruno Haible  <bruno@clisp.org>
43740
43741         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
43742         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
43743         condition.
43744         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43745         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
43746         condition.
43747         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43748
43749 2009-03-06  Eric Blake  <ebb9@byu.net>
43750
43751         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
43752         to avoid compiler warnings.
43753         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
43754
43755 2009-03-05  Bruno Haible  <bruno@clisp.org>
43756
43757         * tests/test-ftell.c (main): Disable test beyond end of file on
43758         FreeMiNT.
43759         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43760
43761 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
43762
43763         * lib/filevercmp.c: Move hidden files up in ordering.
43764         * tests/test-filevercmp.c: Add tests for hidden files.
43765
43766 2009-03-04  Bruno Haible  <bruno@clisp.org>
43767
43768         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
43769         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
43770         AM_CFLAGS.
43771         Reported by Simon Josefsson.
43772
43773 2009-03-03  Bruno Haible  <bruno@clisp.org>
43774
43775         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
43776         Reported by Simon Josefsson.
43777
43778         * doc/ld-version-script.texi: Update node reference.
43779
43780 2009-03-03  Bruno Haible  <bruno@clisp.org>
43781
43782         * modules/visibility (License): Change to 'unlimited'.
43783         Suggested by Simon Josefsson.
43784
43785 2009-03-03  Jim Meyering  <meyering@redhat.com>
43786
43787         unlinkdir: cannot_unlink_dir may modify process state
43788         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
43789         it's neither thread-safe nor appropriate for use in a library.
43790
43791 2009-03-03  Eric Blake  <ebb9@byu.net>
43792
43793         test-closein: silence test under Darwin
43794         * tests/test-closein.sh: Ignore stderr from cat, since we don't
43795         care if it dies from EPIPE or EBADF.
43796
43797 2009-03-03  Bruno Haible  <bruno@clisp.org>
43798
43799         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
43800         earlier.
43801         * doc/visibility.texi: Fix @node and @section.
43802
43803 2009-03-03  Simon Josefsson  <simon@josefsson.org>
43804
43805         * doc/gnulib.texi: Link to sections for ld version script and
43806         visibility.
43807         * doc/visibility.texi: Add @node and @section.
43808         * modules/ld-version-script: New module.
43809         * m4/ld-version-script.m4: New file.
43810         * doc/ld-version-script.texi: New file.
43811
43812 2009-03-02  David Lutterkort  <lutter@redhat.com>
43813
43814         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43816
43817 2009-03-02  Bruno Haible  <bruno@clisp.org>
43818
43819         * doc/visibility.texi: Mention libtool's -export-symbols option.
43820
43821 2009-03-02  Jim Meyering  <meyering@redhat.com>
43822
43823         announce-gen: new option: --no-print-checksums
43824         * build-aux/announce-gen (usage): Describe it.
43825         (print_checksums): Print a newline here, not in the [*] footnote.
43826         (main): Honor it.
43827
43828 2009-03-01  Bruno Haible  <bruno@clisp.org>
43829
43830         Use socklen_t in the native Windows replacements prototypes.
43831         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43832         instead of 'int'.
43833         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43834         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43835         * modules/getsockopt (Depends-on): Add socklen.
43836         * modules/setsockopt (Depends-on): Add socklen.
43837
43838 2009-03-01  Bruno Haible  <bruno@clisp.org>
43839
43840         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43841         least 4.2.
43842
43843 2009-03-01  Eric Blake  <ebb9@byu.net>
43844             Bruno Haible  <bruno@clisp.org>
43845
43846         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43847         error messages.
43848         * lib/wait-process.c (wait_subprocess): Omit error message about
43849         deadly signal sent to the child of termsigp != NULL.
43850
43851 2009-03-01  Eric Blake  <ebb9@byu.net>
43852
43853         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43854
43855 2009-03-01  Bruno Haible  <bruno@clisp.org>
43856
43857         Avoid a gcc warning.
43858         * tests/test-sched.c (b): Make global.
43859         Reported by Eric Blake.
43860
43861 2009-01-19  Martin Lambers  <marlam@marlam.de>
43862
43863         Provide POSIX semantics for socket timeout options on W32.
43864         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43865         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43866         * modules/setsockopt: Depend on sys_time module for struct timeval.
43867         * modules/getsockopt: Depend on sys_time module for struct timeval.
43868
43869 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43870
43871         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43872         __USE_GNU, for consistency with netdb.in.h.
43873         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43874
43875 2009-03-01  Bruno Haible  <bruno@clisp.org>
43876
43877         More support for FreeMiNT.
43878         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43879         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43880
43881 2009-03-01  Bruno Haible  <bruno@clisp.org>
43882
43883         More support for FreeMiNT.
43884         * lib/fpurge.c (fpurge): Correct last commit.
43885         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43886
43887 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43888
43889         Fix unportable awk script in vc-list-files.
43890         * build-aux/vc-list-files: In the replacement awk script, use
43891         substr with a second argument of 1, not zero.
43892         Report by Simon Josefsson.
43893
43894 2009-02-28  Bruno Haible  <bruno@clisp.org>
43895
43896         More support for FreeMiNT.
43897         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43898         to FreeMiNT today.
43899         * lib/fwriting.c (fwriting): Likewise.
43900         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43901
43902 2009-02-28  Bruno Haible  <bruno@clisp.org>
43903
43904         * tests/test-freadseek.c (main): Disable test beyond end of file on
43905         FreeMiNT.
43906         * tests/test-ftello.c (main): Likewise.
43907         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43908
43909 2009-02-28  Bruno Haible  <bruno@clisp.org>
43910
43911         Add tentative support for FreeMiNT.
43912         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43913         * lib/fpurge.c (fpurge): Likewise.
43914         * lib/freadable.c (freadable): Likewise.
43915         * lib/freading.c (freading): Likewise.
43916         * lib/freadptr.c (freadptr): Likewise.
43917         * lib/freadseek.c (freadptrinc): Likewise.
43918         * lib/fseeko.c (rpl_fseeko): Likewise.
43919         * lib/fseterr.c (fseterr): Likewise.
43920         * lib/fwritable.c (fwritable): Likewise.
43921         * lib/fwriting.c (fwriting): Likewise.
43922         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43923         Hourihane.
43924         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43925
43926 2009-02-28  Bruno Haible  <bruno@clisp.org>
43927
43928         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43929         SIGCHLD.
43930         Reported by Jim Meyering.
43931
43932 2009-02-28  Bruno Haible  <bruno@clisp.org>
43933
43934         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43935         Mention the results of these tests on various platforms.
43936         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43937         order.
43938         * doc/posix-functions/printf.texi: Likewise.
43939         * doc/posix-functions/snprintf.texi: Likewise.
43940         * doc/posix-functions/sprintf.texi: Likewise.
43941         * doc/posix-functions/vfprintf.texi: Likewise.
43942         * doc/posix-functions/vprintf.texi: Likewise.
43943         * doc/posix-functions/vsnprintf.texi: Likewise.
43944         * doc/posix-functions/vsprintf.texi: Likewise.
43945         * doc/glibc-functions/obstack_printf.texi: Likewise.
43946         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43947
43948 2009-02-28  Bruno Haible  <bruno@clisp.org>
43949
43950         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43951         Reported by Loïc Minier <lool@dooz.org>.
43952
43953 2009-02-27  Bruno Haible  <bruno@clisp.org>
43954
43955         * gnulib-tool (func_import): Make the sed expression used to create the
43956         sed script for updating the .gitignore file POSIX compliant.
43957         Reported by Eric Blake.
43958
43959 2009-02-27  Bruno Haible  <bruno@clisp.org>
43960
43961         * gnulib-tool (sed): Don't alias as "sed --posix".
43962         Reported by Eric Blake.
43963
43964 2009-02-27  Bruno Haible  <bruno@clisp.org>
43965
43966         Avoid test link errors.
43967         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43968         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43969         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43970         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43972
43973 2009-02-27  Bruno Haible  <bruno@clisp.org>
43974
43975         Avoid spurious "(cached)" in configure output.
43976         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43977         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43978         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43979         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43980         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43981         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43982         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43983         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43984         Reported by Eric Blake.
43985
43986 2009-02-27  Eric Blake  <ebb9@byu.net>
43987
43988         printf: fix regression in previous patch
43989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43990
43991 2009-02-27  Bruno Haible  <bruno@clisp.org>
43992
43993         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43994         value.
43995         * lib/stdint.in.h: Likewise.
43996         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43997
43998 2009-02-27  Eric Blake  <ebb9@byu.net>
43999
44000         doc: mention more functions added in cygwin 1.7.0
44001         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
44002         addition.
44003         * doc/posix-functions/open_wmemstream.texi: Likewise.
44004         * doc/posix-functions/wcsnlen.texi: Likewise.
44005         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44006         * doc/posix-functions/wcstod.texi: Likewise.
44007         * doc/posix-functions/wcstof.texi: Likewise.
44008         * doc/posix-functions/wcstoimax.texi: Likewise.
44009         * doc/posix-functions/wcstok.texi: Likewise.
44010         * doc/posix-functions/wcstoumax.texi: Likewise.
44011
44012         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
44013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
44014         * doc/posix-functions/fprintf.texi: Update.
44015         * doc/posix-functions/printf.texi: Update.
44016         * doc/posix-functions/snprintf.texi: Update.
44017         * doc/posix-functions/sprintf.texi: Update.
44018         * doc/posix-functions/vfprintf.texi: Update.
44019         * doc/posix-functions/vprintf.texi: Update.
44020         * doc/posix-functions/vsnprintf.texi: Update.
44021         * doc/posix-functions/vsprintf.texi: Update.
44022         * doc/glibc-functions/obstack_printf.texi: Update.
44023         * doc/glibc-functions/obstack_vprintf.texi: Update.
44024
44025 2009-02-26  Eric Blake  <ebb9@byu.net>
44026
44027         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
44028         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
44029         compilation bug by using runtime conversion.
44030         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44031         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
44032         * modules/ceill-tests (Files): Use nan.h.
44033         * modules/floorl-tests (Files): Likewise.
44034         * modules/frexpl-tests (Files): Likewise.
44035         * modules/isnanl-tests (Files): Likewise.
44036         * modules/ldexpl-tests (Files): Likewise.
44037         * modules/roundl-tests (Files): Likewise.
44038         * modules/truncl-tests (Files): Likewise.
44039         * tests/test-ceill.c (main): Use a working NaN.
44040         * tests/test-floorl.c (main): Likewise.
44041         * tests/test-frexpl.c (main): Likewise.
44042         * tests/test-isnan.c (test_long_double): Likewise.
44043         * tests/test-isnanl.h (main): Likewise.
44044         * tests/test-ldexpl.h (main): Likewise.
44045         * tests/test-roundl.h (main): Likewise.
44046         * tests/test-truncl.h (main): Likewise.
44047         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
44048
44049 2009-02-26  Eric Blake  <ebb9@byu.net>
44050             Bruno Haible  <bruno@clisp.org>
44051
44052         Work around a *printf bug with %ls on Solaris.
44053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
44054         precision is specified, sprintf stops converting the wide string
44055         argument when the number of bytes that have been produced by this
44056         conversion equals or exceeds the precision.
44057         * doc/posix-functions/fprintf.texi: Update.
44058         * doc/posix-functions/printf.texi: Update.
44059         * doc/posix-functions/snprintf.texi: Update.
44060         * doc/posix-functions/sprintf.texi: Update.
44061         * doc/posix-functions/vfprintf.texi: Update.
44062         * doc/posix-functions/vprintf.texi: Update.
44063         * doc/posix-functions/vsnprintf.texi: Update.
44064         * doc/posix-functions/vsprintf.texi: Update.
44065         * doc/glibc-functions/obstack_printf.texi: Update.
44066         * doc/glibc-functions/obstack_vprintf.texi: Update.
44067
44068 2009-02-26  Eric Blake  <ebb9@byu.net>
44069
44070         stdlib: favor compiler check of random.h
44071         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
44072         to avoid an ObjC random.h installed by Swarm.
44073
44074 2009-02-26  Bruno Haible  <bruno@clisp.org>
44075
44076         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
44077         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
44078         Reported by Gary V. Vaughan <gary@gnu.org>.
44079
44080 2009-02-26  Bruno Haible  <bruno@clisp.org>
44081
44082         Fix *printf behaviour regarding the %ls directive.
44083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
44084         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
44085         NEED_PRINTF_DIRECTIVE_LS.
44086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
44087         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44089         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
44090         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
44091         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
44092         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44094         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44095         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44096         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44097         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
44098         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44101         * doc/posix-functions/fprintf.texi: Update.
44102         * doc/posix-functions/printf.texi: Update.
44103         * doc/posix-functions/snprintf.texi: Update.
44104         * doc/posix-functions/sprintf.texi: Update.
44105         * doc/posix-functions/vfprintf.texi: Update.
44106         * doc/posix-functions/vprintf.texi: Update.
44107         * doc/posix-functions/vsnprintf.texi: Update.
44108         * doc/posix-functions/vsprintf.texi: Update.
44109         * doc/glibc-functions/obstack_printf.texi: Update.
44110         * doc/glibc-functions/obstack_vprintf.texi: Update.
44111         Reported by Eric Blake.
44112
44113 2009-02-25  Bruno Haible  <bruno@clisp.org>
44114
44115         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
44116         with known value.
44117         Reported by Gary V. Vaughan <gary@gnu.org>.
44118
44119 2009-02-25  Bruno Haible  <bruno@clisp.org>
44120
44121         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
44122         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
44123         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
44124         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
44125         Reported by Gary V. Vaughan <gary@gnu.org>.
44126
44127 2009-02-25  Bruno Haible  <bruno@clisp.org>
44128
44129         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
44130         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
44131         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
44132         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
44133         Reported by Gary V. Vaughan <gary@gnu.org>.
44134
44135 2009-02-25  Eric Blake  <ebb9@byu.net>
44136
44137         tests: skip fseek/ftell tests if ungetc is broken
44138         * m4/ungetc.m4: New file.
44139         * modules/fseek-tests: Split test, so ungetc dependency is
44140         separate from rest of test.
44141         * modules/fseeko-tests: Likewise.
44142         * modules/ftell-tests: Likewise.
44143         * modules/ftello-tests: Likewise.
44144         * tests/test-fseek.c (main): Isolate ungetc dependency.
44145         * tests/test-fseeko.c (main): Likewise.
44146         * tests/test-ftell.c (main): Likewise.
44147         * tests/test-ftello.c (main): Likewise.
44148         * tests/test-fseek2.sh: New file.
44149         * tests/test-fseeko2.sh: Likewise.
44150         * tests/test-ftell2.sh: Likewise.
44151         * tests/test-ftello2.sh: Likewise.
44152
44153 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
44154
44155         test-getaddrinfo: fix usage of skip return code 77
44156         * tests/test-gettaddrinfo.c: Return skip code 77 only
44157         for first occurance of skip (4x77 is not 77)
44158
44159 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
44160
44161         strtod: avoid C99 decl-after-statement
44162         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
44163
44164 2009-02-24  Eric Blake  <ebb9@byu.net>
44165
44166         strtod: detect HP-UX 11.31 bug
44167         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
44168         Reported by Gary V. Vaughan.
44169
44170 2009-02-23  Bruno Haible  <bruno@clisp.org>
44171
44172         Fix invalid read past end of memory block.
44173         * lib/vasnprintf.c (DCHAR_SET): Define.
44174         (local_wcslen): Define only when needed.
44175         (local_strnlen, local_wcsnlen): New functions.
44176         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
44177         directives that involve a conversion ourselves.
44178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
44179         wcsnlen, mbrtowc, wcrtomb.
44180         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
44181         * tests/test-vasprintf-posix.c (test_function): Likewise.
44182         * tests/test-snprintf-posix.h (test_function): Likewise.
44183         * tests/test-sprintf-posix.h (test_function): Likewise.
44184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44185
44186 2009-02-22  Bruno Haible  <bruno@clisp.org>
44187
44188         Implement new clarified decomposition of Hangul syllables.
44189         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
44190         of type LTV, return only a pairwise decomposition.
44191         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
44192         Likewise.
44193         * tests/uninorm/test-decomposition.c (main): Updated expected result.
44194         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
44195         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
44196
44197 2009-02-22  Bruno Haible  <bruno@clisp.org>
44198
44199         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
44200         zero-length results and shrink excess allocated memory.
44201         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
44202         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
44203         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
44204         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
44205         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
44206         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
44207         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
44208         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
44209         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
44210         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
44211         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
44212         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
44213
44214 2009-02-21  Bruno Haible  <bruno@clisp.org>
44215
44216         * doc/gnulib.texi: Include safe-alloc.texi earlier.
44217         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
44218         spaces after a period. Put a space between a macro name and its
44219         argument list. Trivial rewordings.
44220         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
44221         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
44222         (main): Return 0 explicitly.
44223
44224 2009-02-21  Bruno Haible  <bruno@clisp.org>
44225
44226         Tests for module 'uninorm/filter'.
44227         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
44228         * modules/uninorm/filter-tests: New file.
44229
44230         New module 'uninorm/filter'.
44231         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
44232         uninorm_filter_flush, uninorm_filter_free): New declarations.
44233         * lib/uninorm/uninorm-filter.c: New file.
44234         * modules/uninorm/filter: New file.
44235
44236 2009-02-21  Bruno Haible  <bruno@clisp.org>
44237
44238         Tests for module 'uninorm/nfkc'.
44239         * tests/uninorm/test-nfkc.c: New file.
44240         * tests/uninorm/test-u8-nfkc.c: New file.
44241         * tests/uninorm/test-u16-nfkc.c: New file.
44242         * tests/uninorm/test-u32-nfkc.c: New file.
44243         * tests/uninorm/test-u32-nfkc-big.sh: New file.
44244         * tests/uninorm/test-u32-nfkc-big.c: New file.
44245         * modules/uninorm/nfkc-tests: New file.
44246
44247         New module 'uninorm/nfkc'.
44248         * lib/uninorm/nfkc.c: New file.
44249         * modules/uninorm/nfkc: New file.
44250
44251         Tests for module 'uninorm/nfkd'.
44252         * tests/uninorm/test-nfkd.c: New file.
44253         * tests/uninorm/test-u8-nfkd.c: New file.
44254         * tests/uninorm/test-u16-nfkd.c: New file.
44255         * tests/uninorm/test-u32-nfkd.c: New file.
44256         * tests/uninorm/test-u32-nfkd-big.sh: New file.
44257         * tests/uninorm/test-u32-nfkd-big.c: New file.
44258         * modules/uninorm/nfkd-tests: New file.
44259
44260         New module 'uninorm/nfkd'.
44261         * lib/uninorm/nfkd.c: New file.
44262         * modules/uninorm/nfkd: New file.
44263
44264         Tests for module 'uninorm/nfc'.
44265         * tests/uninorm/test-nfc.c: New file.
44266         * tests/uninorm/test-u8-nfc.c: New file.
44267         * tests/uninorm/test-u16-nfc.c: New file.
44268         * tests/uninorm/test-u32-nfc.c: New file.
44269         * tests/uninorm/test-u32-nfc-big.sh: New file.
44270         * tests/uninorm/test-u32-nfc-big.c: New file.
44271         * modules/uninorm/nfc-tests: New file.
44272
44273         New module 'uninorm/nfc'.
44274         * lib/uninorm/nfc.c: New file.
44275         * modules/uninorm/nfc: New file.
44276
44277         Tests for module 'uninorm/nfd'.
44278         * tests/uninorm/test-nfd.c: New file.
44279         * tests/uninorm/test-u8-nfd.c: New file.
44280         * tests/uninorm/test-u16-nfd.c: New file.
44281         * tests/uninorm/test-u32-nfd.c: New file.
44282         * tests/uninorm/test-u32-nfd-big.sh: New file.
44283         * tests/uninorm/test-u32-nfd-big.c: New file.
44284         * tests/uninorm/test-u32-normalize-big.h: New file.
44285         * tests/uninorm/test-u32-normalize-big.c: New file.
44286         * tests/uninorm/NormalizationTest.txt: New file, created from
44287         Unicode 5.1.0 NormalizationTest.txt.
44288         * modules/uninorm/nfd-tests: New file.
44289
44290         New module 'uninorm/nfd'.
44291         * lib/uninorm/nfd.c: New file.
44292         * modules/uninorm/nfd: New file.
44293
44294         New module 'uninorm/u32-normalize'.
44295         * lib/uninorm/u32-normalize.c: New file.
44296         * modules/uninorm/u32-normalize: New file.
44297
44298         New module 'uninorm/u16-normalize'.
44299         * lib/uninorm/u16-normalize.c: New file.
44300         * modules/uninorm/u16-normalize: New file.
44301
44302         New module 'uninorm/u8-normalize'.
44303         * lib/uninorm/u8-normalize.c: New file.
44304         * lib/uninorm/normalize-internal.h: New file.
44305         * lib/uninorm/u-normalize-internal.h: New file.
44306         * modules/uninorm/u8-normalize: New file.
44307
44308         New module 'uninorm/decompose-internal'.
44309         * lib/uninorm/decompose-internal.c: New file.
44310         * modules/uninorm/decompose-internal: New file.
44311
44312         Tests for module 'uninorm/composition'.
44313         * tests/uninorm/test-composition.c: New file.
44314         * modules/uninorm/composition-tests: New file.
44315
44316         New module 'uninorm/composition'.
44317         * lib/uninorm/composition.c: New file.
44318         * lib/uninorm/composition-table.gperf: New file, generated by
44319         gen-uni-tables.
44320         * modules/uninorm/composition: New file.
44321
44322         Tests for module 'uninorm/compat-decomposition'.
44323         * tests/uninorm/test-compat-decomposition.c: New file.
44324         * modules/uninorm/compat-decomposition-tests: New file.
44325
44326         New module 'uninorm/compat-decomposition'.
44327         * lib/uninorm/decompose-internal.h: New file.
44328         * lib/uninorm/compat-decomposition.c: New file.
44329         * modules/uninorm/compat-decomposition: New file.
44330
44331         Tests for module 'uninorm/canonical-decomposition'.
44332         * tests/uninorm/test-canonical-decomposition.c: New file.
44333         * modules/uninorm/canonical-decomposition-tests: New file.
44334
44335         New module 'uninorm/canonical-decomposition'.
44336         * lib/uninorm/canonical-decomposition.c: New file.
44337         * modules/uninorm/canonical-decomposition: New file.
44338
44339         Tests for module 'uninorm/decomposition'.
44340         * tests/uninorm/test-decomposition.c: New file.
44341         * modules/uninorm/decomposition-tests: New file.
44342
44343         New module 'uninorm/decomposition'.
44344         * lib/uninorm/decomposition.c: New file.
44345         * modules/uninorm/decomposition: New file.
44346
44347         New module 'uninorm/decomposition-table'.
44348         * lib/uninorm/decomposition-table.h: New file.
44349         * lib/uninorm/decomposition-table.c: New file.
44350         * lib/uninorm/decomposition-table1.h: New file, generated by
44351         gen-uni-tables.
44352         * lib/uninorm/decomposition-table2.h: New file, generated by
44353         gen-uni-tables.
44354         * modules/uninorm/decomposition-table: New file.
44355
44356         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
44357         (UC_DECOMP_*): New enumeration items.
44358         (get_decomposition): New function.
44359         (struct decomp_table): New type.
44360         (output_decomposition, output_decomposition_tables): New functions.
44361         (unicode_composition_exclusions): New variable.
44362         (fill_composition_exclusions, debug_output_composition_tables): New
44363         functions.
44364         (main): Accept one more argument. Invoke fill_composition_exclusions.
44365         Output decomposition and composition tables.
44366
44367         New module 'uninorm/base'.
44368         * lib/uninorm.h: New file.
44369         * lib/unictype.h: Update comment.
44370         * modules/uninorm/base: New file.
44371
44372 2009-02-21  David Lutterkort  <lutter@redhat.com>
44373
44374         Tests for module 'safe-alloc'.
44375         * tests/test-safe-alloc.c: New file.
44376         * modules/safe-alloc-tests: New file.
44377
44378         New module 'safe-alloc'.
44379         * lib/safe-alloc.h: New file.
44380         * lib/safe-alloc.c: New file.
44381         * m4/safe-alloc.m4: New file.
44382         * modules/safe-alloc: New file.
44383         * doc/safe-alloc.texi: New file.
44384         * doc/gnulib.texi: Include it.
44385         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
44386         safe-alloc.
44387
44388 2009-02-18  Bruno Haible  <bruno@clisp.org>
44389
44390         Fix link error on non-glibc systems.
44391         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
44392         variable.
44393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44394
44395 2009-02-18  Jim Meyering  <meyering@redhat.com>
44396
44397         fts: avoid used-uninitialized error due to recent change
44398         * lib/fts.c (fts_read): Guard uses of the new member,
44399         parent->fts_n_dirs_remaining, since it's not relevant for
44400         the parent of a directory specified on the command-line.
44401
44402 2009-02-17  James Youngman  <jay@gnu.org>
44403             Bruno Haible  <bruno@clisp.org>
44404
44405         * m4/include_next.m4: Reformulate comment.
44406
44407 2009-02-16  Jim Meyering  <meyering@redhat.com>
44408
44409         fts: add #if guards so that the fts_lgpl module still builds
44410         * lib/fts.c: Guard just-added hash-table-using parts with
44411         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
44412         Reported by Simon Josefsson.
44413
44414 2009-02-15  Bruno Haible  <bruno@clisp.org>
44415
44416         * modules/array-mergesort-tests: New file.
44417         * tests/test-array-mergesort.c: New file.
44418
44419         New module 'array-mergesort'.
44420         * modules/array-mergesort: New file.
44421         * lib/array-mergesort.h: New file.
44422
44423 2009-02-15  Bruno Haible  <bruno@clisp.org>
44424
44425         Fix 2009-02-07 commit.
44426         * lib/gen-uni-tables.c (output_predicate, output_category,
44427         output_combclass, output_bidi_category, output_decimal_digit,
44428         output_digit, output_numeric, output_mirror, output_scripts,
44429         output_ident_category, output_simple_mapping): Fix format directives.
44430         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
44431
44432 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
44433
44434         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
44435         fixes are available from IBM.
44436
44437 2009-02-13  Jim Meyering  <meyering@redhat.com>
44438
44439         fts: arrange not to stat non-directories in more cases
44440         This makes GNU find (when it doesn't need to stat each file)
44441         *much* more efficient at traversing reiserfs file systems.
44442         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
44443         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
44444         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
44445         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
44446         (leaf_optimization_applies): New function.
44447         (LCO_hash, LCO_compare): New helper functions.
44448         (link_count_optimize_ok): New function.
44449         (fts_stat): Initialize new member (if dir).
44450         (fts_read): Decrement parent's fts_n_dirs_remaining count if
44451         we've just stat'ed a directory.  Skip the stat call when possible.
44452         ---
44453         Note this AFS-related exchange:
44454         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
44455         and note find's pioctl call in find/fstype.c.
44456         But that is necessary only if you want to enable the
44457         optimization for AFS, and for now, I don't.
44458
44459         fts: move a function definition "up" (no semantic change)
44460         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
44461         "up" to precede upcoming use of a related function.
44462
44463 2009-02-11  Jim Meyering  <meyering@redhat.com>
44464
44465         fts: correct internal computation of nlinks (optimization-related)
44466         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
44467         whether the current entry is a directory, so don't test it.
44468
44469 2009-02-10  Bruno Haible  <bruno@clisp.org>
44470
44471         Tests for module 'uniwbrk/ulc-wordbreaks'.
44472         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
44473         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
44474         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
44475
44476         Tests for module 'uniwbrk/u32-wordbreaks'.
44477         * modules/uniwbrk/u32-wordbreaks-tests: New file.
44478         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
44479
44480         Tests for module 'uniwbrk/u16-wordbreaks'.
44481         * modules/uniwbrk/u16-wordbreaks-tests: New file.
44482         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
44483
44484         Tests for module 'uniwbrk/u8-wordbreaks'.
44485         * modules/uniwbrk/u8-wordbreaks-tests: New file.
44486         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
44487
44488 2009-02-10  Bruno Haible  <bruno@clisp.org>
44489
44490         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
44491         property.
44492         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
44493         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
44494         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
44495
44496 2009-02-10  Simon Josefsson  <simon@josefsson.org>
44497
44498         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
44499         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
44500
44501 2009-02-10  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
44504         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
44505         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
44506         * lib/unilbrk/u8-possible-linebreaks.c: Update.
44507         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
44508         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
44509
44510 2009-02-09  Simon Josefsson  <simon@josefsson.org>
44511
44512         * lib/sockets.h (gl_fd_to_handle): New function.
44513
44514         * tests/test-sockets.c: Call gl_fd_to_handle.
44515
44516 2009-02-09  Bruno Haible  <bruno@clisp.org>
44517
44518         * doc/havelib.texi: Document the conventions on bi-arch systems.
44519
44520 2009-02-08  Bruno Haible  <bruno@clisp.org>
44521
44522         Document the AC_LIB_LINKFLAGS macro.
44523         * doc/havelib.texi: New file, mostly written on 2005-05-24.
44524         * doc/gnulib.texi: Include it.
44525
44526 2009-02-08  Bruno Haible  <bruno@clisp.org>
44527
44528         Fix wrong order of sections, compared to TOC.
44529         * doc/gnulib.texi: Include relocatable-maint.texi after the
44530         "Regular expressions" node, not before.
44531
44532 2009-02-08  Bruno Haible  <bruno@clisp.org>
44533
44534         Tests for module 'unicase/totitle'.
44535         * modules/unicase/totitle-tests: New file.
44536
44537         Tests for module 'unicase/tolower'.
44538         * modules/unicase/tolower-tests: New file.
44539
44540         Tests for module 'unicase/toupper'.
44541         * modules/unicase/toupper-tests: New file.
44542         * tests/unicase/test-mapping-part1.h: New file.
44543         * tests/unicase/test-mapping-part2.h: New file.
44544
44545         New module 'unicase/totitle'.
44546         * modules/unicase/totitle: New file.
44547         * lib/unicase/totitle.c: New file.
44548
44549         New module 'unicase/tolower'.
44550         * modules/unicase/tolower: New file.
44551         * lib/unicase/tolower.c: New file.
44552
44553         New module 'unicase/toupper'.
44554         * modules/unicase/toupper: New file.
44555         * lib/unicase/toupper.c: New file.
44556         * lib/unicase/simple-mapping.h: New file.
44557
44558         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
44559         (mapping_table): New structure.
44560         (output_simple_mapping): New function.
44561         (main): Invoke output_simple_mapping_test and output_simple_mapping.
44562         * modules/gen-uni-tables (Description): Update.
44563         * lib/unicase/toupper.h: New file, automatically generated by
44564         gen-uni-tables.
44565         * lib/unicase/tolower.h: New file, automatically generated by
44566         gen-uni-tables.
44567         * lib/unicase/totitle.h: New file, automatically generated by
44568         gen-uni-tables.
44569         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
44570         gen-uni-tables.
44571         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
44572         gen-uni-tables.
44573         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
44574         gen-uni-tables.
44575
44576         New module 'unicase/base'.
44577         * modules/unicase/base: New file.
44578         * lib/unicase.h: New file.
44579
44580 2009-02-08  Bruno Haible  <bruno@clisp.org>
44581
44582         New module 'uniwbrk/ulc-wordbreaks'.
44583         * modules/uniwbrk/ulc-wordbreaks: New file.
44584         * lib/uniwbrk/ulc-wordbreaks.c: New file.
44585
44586         New module 'uniwbrk/u32-wordbreaks'.
44587         * modules/uniwbrk/u32-wordbreaks: New file.
44588         * lib/uniwbrk/u32-wordbreaks.c: New file.
44589
44590         New module 'uniwbrk/u16-wordbreaks'.
44591         * modules/uniwbrk/u16-wordbreaks: New file.
44592         * lib/uniwbrk/u16-wordbreaks.c: New file.
44593
44594         New module 'uniwbrk/u8-wordbreaks'.
44595         * modules/uniwbrk/u8-wordbreaks: New file.
44596         * lib/uniwbrk/u8-wordbreaks.c: New file.
44597         * lib/uniwbrk/u-wordbreaks.h: New file.
44598
44599         New module 'uniwbrk/table'.
44600         * modules/uniwbrk/table: New file.
44601         * lib/uniwbrk/wbrktable.h: New file.
44602         * lib/uniwbrk/wbrktable.c: New file.
44603
44604         New module 'uniwbrk/wordbreak-property'.
44605         * modules/uniwbrk/wordbreak-property: New file.
44606         * lib/uniwbrk/wordbreak-property.c: New file.
44607
44608         * lib/gen-uni-tables.c (WBP_*): New enum items.
44609         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
44610         (unicode_org_wbp): New variable.
44611         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
44612         New functions.
44613         (wbp_table): New structure.
44614         (output_wbp, output_wbrk_tables): New functions.
44615         (main): Accept additional argument. Invoke fill_org_wbp,
44616         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
44617         output_wbrk_tables.
44618         * modules/gen-uni-tables (Description): Update.
44619         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
44620         gen-uni-tables.
44621
44622         New module 'uniwbrk/base'.
44623         * modules/uniwbrk/base: New file.
44624         * lib/uniwbrk.h: New file.
44625
44626 2009-02-08  Bruno Haible  <bruno@clisp.org>
44627
44628         Update to Unicode 5.1.0.
44629         * lib/gen-uni-tables.c (is_property_alphabetic): Include
44630         U+2185..U+2188.
44631         (is_property_default_ignorable_code_point): Don't include characters
44632         of category Cc or Cs and not-a-characters.
44633         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
44634         U+0D79, U+109E, U+109F, U+A60C.
44635         * lib/unictype/bidi_of.h: Regenerated.
44636         * lib/unictype/blocks.h: Regenerated.
44637         * lib/unictype/categ_C.h: Regenerated.
44638         * lib/unictype/categ_Cf.h: Regenerated.
44639         * lib/unictype/categ_Cn.h: Regenerated.
44640         * lib/unictype/categ_L.h: Regenerated.
44641         * lib/unictype/categ_Ll.h: Regenerated.
44642         * lib/unictype/categ_Lm.h: Regenerated.
44643         * lib/unictype/categ_Lo.h: Regenerated.
44644         * lib/unictype/categ_Lu.h: Regenerated.
44645         * lib/unictype/categ_M.h: Regenerated.
44646         * lib/unictype/categ_Mc.h: Regenerated.
44647         * lib/unictype/categ_Me.h: Regenerated.
44648         * lib/unictype/categ_Mn.h: Regenerated.
44649         * lib/unictype/categ_N.h: Regenerated.
44650         * lib/unictype/categ_Nd.h: Regenerated.
44651         * lib/unictype/categ_Nl.h: Regenerated.
44652         * lib/unictype/categ_No.h: Regenerated.
44653         * lib/unictype/categ_P.h: Regenerated.
44654         * lib/unictype/categ_Pd.h: Regenerated.
44655         * lib/unictype/categ_Pe.h: Regenerated.
44656         * lib/unictype/categ_Pf.h: Regenerated.
44657         * lib/unictype/categ_Pi.h: Regenerated.
44658         * lib/unictype/categ_Po.h: Regenerated.
44659         * lib/unictype/categ_Ps.h: Regenerated.
44660         * lib/unictype/categ_S.h: Regenerated.
44661         * lib/unictype/categ_Sk.h: Regenerated.
44662         * lib/unictype/categ_Sm.h: Regenerated.
44663         * lib/unictype/categ_So.h: Regenerated.
44664         * lib/unictype/categ_of.h: Regenerated.
44665         * lib/unictype/combining.h: Regenerated.
44666         * lib/unictype/ctype_alnum.h: Regenerated.
44667         * lib/unictype/ctype_alpha.h: Regenerated.
44668         * lib/unictype/ctype_graph.h: Regenerated.
44669         * lib/unictype/ctype_lower.h: Regenerated.
44670         * lib/unictype/ctype_print.h: Regenerated.
44671         * lib/unictype/ctype_punct.h: Regenerated.
44672         * lib/unictype/ctype_upper.h: Regenerated.
44673         * lib/unictype/decdigit.h: Regenerated.
44674         * lib/unictype/digit.h: Regenerated.
44675         * lib/unictype/mirror.h: Regenerated.
44676         * lib/unictype/numeric.h: Regenerated.
44677         * lib/unictype/pr_alphabetic.h: Regenerated.
44678         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
44679         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
44680         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
44681         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
44682         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
44683         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
44684         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
44685         * lib/unictype/pr_combining.h: Regenerated.
44686         * lib/unictype/pr_dash.h: Regenerated.
44687         * lib/unictype/pr_decimal_digit.h: Regenerated.
44688         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
44689         * lib/unictype/pr_deprecated.h: Regenerated.
44690         * lib/unictype/pr_diacritic.h: Regenerated.
44691         * lib/unictype/pr_extender.h: Regenerated.
44692         * lib/unictype/pr_format_control.h: Regenerated.
44693         * lib/unictype/pr_grapheme_base.h: Regenerated.
44694         * lib/unictype/pr_grapheme_extend.h: Regenerated.
44695         * lib/unictype/pr_grapheme_link.h: Regenerated.
44696         * lib/unictype/pr_id_continue.h: Regenerated.
44697         * lib/unictype/pr_id_start.h: Regenerated.
44698         * lib/unictype/pr_ideographic.h: Regenerated.
44699         * lib/unictype/pr_ignorable_control.h: Regenerated.
44700         * lib/unictype/pr_lowercase.h: Regenerated.
44701         * lib/unictype/pr_math.h: Regenerated.
44702         * lib/unictype/pr_numeric.h: Regenerated.
44703         * lib/unictype/pr_other_alphabetic.h: Regenerated.
44704         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
44705         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
44706         * lib/unictype/pr_other_id_continue.h: Regenerated.
44707         * lib/unictype/pr_other_lowercase.h: Regenerated.
44708         * lib/unictype/pr_other_math.h: Regenerated.
44709         * lib/unictype/pr_punctuation.h: Regenerated.
44710         * lib/unictype/pr_sentence_terminal.h: Regenerated.
44711         * lib/unictype/pr_soft_dotted.h: Regenerated.
44712         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
44713         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
44714         * lib/unictype/pr_unified_ideograph.h: Regenerated.
44715         * lib/unictype/pr_uppercase.h: Regenerated.
44716         * lib/unictype/pr_xid_continue.h: Regenerated.
44717         * lib/unictype/pr_xid_start.h: Regenerated.
44718         * lib/unictype/pr_zero_width.h: Regenerated.
44719         * lib/unictype/scripts.h: Regenerated.
44720         * lib/unictype/scripts_byname.gperf: Regenerated.
44721         * lib/unictype/sy_java_ident.h: Regenerated.
44722         * lib/unilbrk/lbrkprop1.h: Regenerated.
44723         * lib/unilbrk/lbrkprop2.h: Regenerated.
44724         * tests/unictype/test-categ_C.c: Regenerated.
44725         * tests/unictype/test-categ_Cf.c: Regenerated.
44726         * tests/unictype/test-categ_Cn.c: Regenerated.
44727         * tests/unictype/test-categ_L.c: Regenerated.
44728         * tests/unictype/test-categ_Ll.c: Regenerated.
44729         * tests/unictype/test-categ_Lm.c: Regenerated.
44730         * tests/unictype/test-categ_Lo.c: Regenerated.
44731         * tests/unictype/test-categ_Lu.c: Regenerated.
44732         * tests/unictype/test-categ_M.c: Regenerated.
44733         * tests/unictype/test-categ_Mc.c: Regenerated.
44734         * tests/unictype/test-categ_Me.c: Regenerated.
44735         * tests/unictype/test-categ_Mn.c: Regenerated.
44736         * tests/unictype/test-categ_N.c: Regenerated.
44737         * tests/unictype/test-categ_Nd.c: Regenerated.
44738         * tests/unictype/test-categ_Nl.c: Regenerated.
44739         * tests/unictype/test-categ_No.c: Regenerated.
44740         * tests/unictype/test-categ_P.c: Regenerated.
44741         * tests/unictype/test-categ_Pd.c: Regenerated.
44742         * tests/unictype/test-categ_Pe.c: Regenerated.
44743         * tests/unictype/test-categ_Pf.c: Regenerated.
44744         * tests/unictype/test-categ_Pi.c: Regenerated.
44745         * tests/unictype/test-categ_Po.c: Regenerated.
44746         * tests/unictype/test-categ_Ps.c: Regenerated.
44747         * tests/unictype/test-categ_S.c: Regenerated.
44748         * tests/unictype/test-categ_Sk.c: Regenerated.
44749         * tests/unictype/test-categ_Sm.c: Regenerated.
44750         * tests/unictype/test-categ_So.c: Regenerated.
44751         * tests/unictype/test-ctype_alnum.c: Regenerated.
44752         * tests/unictype/test-ctype_alpha.c: Regenerated.
44753         * tests/unictype/test-ctype_graph.c: Regenerated.
44754         * tests/unictype/test-ctype_lower.c: Regenerated.
44755         * tests/unictype/test-ctype_print.c: Regenerated.
44756         * tests/unictype/test-ctype_punct.c: Regenerated.
44757         * tests/unictype/test-ctype_upper.c: Regenerated.
44758         * tests/unictype/test-decdigit.h: Regenerated.
44759         * tests/unictype/test-digit.h: Regenerated.
44760         * tests/unictype/test-numeric.h: Regenerated.
44761         * tests/unictype/test-pr_alphabetic.c: Regenerated.
44762         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
44763         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
44764         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
44765         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
44766         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
44767         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
44768         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
44769         * tests/unictype/test-pr_combining.c: Regenerated.
44770         * tests/unictype/test-pr_dash.c: Regenerated.
44771         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
44772         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
44773         * tests/unictype/test-pr_deprecated.c: Regenerated.
44774         * tests/unictype/test-pr_diacritic.c: Regenerated.
44775         * tests/unictype/test-pr_extender.c: Regenerated.
44776         * tests/unictype/test-pr_format_control.c: Regenerated.
44777         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
44778         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
44779         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
44780         * tests/unictype/test-pr_id_continue.c: Regenerated.
44781         * tests/unictype/test-pr_id_start.c: Regenerated.
44782         * tests/unictype/test-pr_ideographic.c: Regenerated.
44783         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
44784         * tests/unictype/test-pr_lowercase.c: Regenerated.
44785         * tests/unictype/test-pr_math.c: Regenerated.
44786         * tests/unictype/test-pr_numeric.c: Regenerated.
44787         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
44788         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
44789         Regenerated.
44790         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
44791         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
44792         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
44793         * tests/unictype/test-pr_other_math.c: Regenerated.
44794         * tests/unictype/test-pr_punctuation.c: Regenerated.
44795         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
44796         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
44797         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
44798         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
44799         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
44800         * tests/unictype/test-pr_uppercase.c: Regenerated.
44801         * tests/unictype/test-pr_xid_continue.c: Regenerated.
44802         * tests/unictype/test-pr_xid_start.c: Regenerated.
44803         * tests/unictype/test-pr_zero_width.c: Regenerated.
44804
44805         Update to Unicode 5.1.0.
44806         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44807         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44808         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44809         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44810         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44811         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44812         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44813         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44814         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44815         (nonspacing_table_ind): Update.
44816         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44817
44818         Update to Unicode 5.1.0.
44819         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44820         code transform.
44821         * lib/uniname/uniname.c (unicode_character_name,
44822         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44823         * lib/uniname/uninames.h: Regenerated.
44824         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44825
44826 2009-02-07  Bruno Haible  <bruno@clisp.org>
44827
44828         Merge gen-ctype and gen-lbrk into a single program.
44829         * lib/gen-uni-tables.c: New file, incorporating
44830         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44831         Add directory prefixes to the names of the generated files.
44832         * lib/unictype/gen-ctype.c: Remove file.
44833         * lib/unilbrk/gen-lbrk.c: Remove file.
44834         * modules/gen-uni-tables: New file.
44835         * modules/unictype/gen-ctype: Remove file.
44836         * modules/unilbrk/gen-lbrk: Remove file.
44837
44838 2009-02-07  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44841
44842         New module 'unistr/u32-strcoll'.
44843         * modules/unistr/u32-strcoll: New file.
44844         * lib/unistr/u32-strcoll.c: New file.
44845
44846         New module 'unistr/u16-strcoll'.
44847         * modules/unistr/u16-strcoll: New file.
44848         * lib/unistr/u16-strcoll.c: New file.
44849
44850         New module 'unistr/u8-strcoll'.
44851         * modules/unistr/u8-strcoll: New file.
44852         * lib/unistr/u8-strcoll.c: New file.
44853         * lib/unistr/u-strcoll.h: New file.
44854
44855 2009-02-07  Bruno Haible  <bruno@clisp.org>
44856
44857         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44858         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44859         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44860         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44861         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44862         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44863
44864 2009-02-07  Bruno Haible  <bruno@clisp.org>
44865
44866         Make 64-bit clean.
44867         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44868         output_combclass, output_bidi_category, output_decimal_digit,
44869         output_digit, output_numeric, output_mirror, output_scripts,
44870         output_ident_category): Use proper width specifier in format strings.
44871
44872 2009-02-07  Bruno Haible  <bruno@clisp.org>
44873
44874         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44875         failure behaviour.
44876
44877 2009-02-07  Jim Meyering  <meyering@redhat.com>
44878
44879         regex: avoid compilation failure with upcoming gcc-4.4
44880         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44881         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44882         "... error: integer overflow in preprocessor expression".
44883
44884 2009-02-05  Ben Pfaff  <blp@gnu.org>
44885
44886         Fix link errors on Windows when close module is used.
44887         * modules/close: Add $(LIB_CLOSE) to Link section.
44888         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44889         $(LIB_CLOSE) on Windows.
44890
44891 2009-02-05  Jim Meyering  <meyering@redhat.com>
44892
44893         still avoid unused-parameter warnings, but do it cleanly
44894         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44895         (get_fs_usage): Cast to void instead.
44896         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44897         (dev_from_mount_options, read_file_system_list): Cast to void.
44898         Prompted by Bruno Haible.
44899
44900 2009-02-04  Jim Meyering  <meyering@redhat.com>
44901
44902         fsusage.c: correct copyright year
44903         * lib/fsusage.c: Reflect year in which the change is pushed into
44904
44905         avoid misc. warnings
44906         * lib/fsusage.c (UNUSED_PARAM): Define.
44907         (get_fs_usage): Mark parameter "disk" as unused.
44908         * lib/getugroups.c (getgrent): Use "void" in prototype.
44909         * lib/mountlist.c: Mark unused parameters.
44910         (read_file_system_list): Declare a local with "const".
44911         * lib/nanosleep.c (getnow): Declare static.
44912         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44913
44914         dirfd: set errno upon failure
44915         * lib/dirfd.c: Include <errno.h>.
44916         Set errno to ENOTSUP when returning -1.
44917         * modules/dirfd (Depends-on): Add errno.
44918         Suggested by John Kodis <kodis@comcast.net>.
44919
44920 2009-02-01  Bruno Haible  <bruno@clisp.org>
44921
44922         Don't assume sizeof (long) >= sizeof (void *).
44923         * lib/memcmp.c: Include stdint.h.
44924         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44925         srcp2 to 'const byte *'.
44926         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44927         types to uintptr_t.
44928         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44929         * modules/memcmp (Depends-on): Add stdint.
44930         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44931
44932 2009-01-30  Eric Blake  <ebb9@byu.net>
44933
44934         fix more require-before-expand issues
44935         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44936         expand, AC_PROG_AWK.
44937         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44938
44939 2009-01-28  Eric Blake  <ebb9@byu.net>
44940
44941         version-etc: use consistent URL formatting
44942         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44943         Improve formatting.  Use fputs for string without %.
44944
44945 2009-01-28  Jim Meyering  <meyering@redhat.com>
44946
44947         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44948         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44949         "underquoted definition of NAME" from autoconf-2.59.
44950
44951 2009-01-28  Bruno Haible  <bruno@clisp.org>
44952
44953         * doc/gnulib.texi: Add "Obsolete modules" to index.
44954
44955 2009-01-28  Jim Meyering  <meyering@redhat.com>
44956
44957         useless-if-before-free: recognize more variants
44958         * build-aux/useless-if-before-free: Also recognize e.g.,
44959         if (NULL != p) free (p);
44960
44961 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44962
44963         test-getaddrinfo: skip (don't fail) this test when there's no network
44964         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44965         on the presumption that it means you lack network access.
44966
44967 2009-01-26  Jim Meyering  <meyering@redhat.com>
44968
44969         fflush: avoid warnings on modern systems
44970         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44971         pos and result, into scopes where they're used.
44972
44973 2009-01-26  Eric Blake  <ebb9@byu.net>
44974
44975         Silence warning reintroduced by recent extensions patch.
44976         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44977         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44978         autoconf.
44979
44980         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44981         * m4/00gnulib.m4: New file.
44982         * gnulib-tool (func_get_filelist): Always use it.
44983         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44984         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44985
44986 2009-01-25  Bruno Haible  <bruno@clisp.org>
44987
44988         Make test-quotearg work on MacOS X and AIX.
44989         * tests/test-quotearg.sh: New file.
44990         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44991         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44992         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44993         include <libintl.h>.
44994         (fake_locale): Remove variable.
44995         (gettext, dgettext, dcgettext): Remove functions.
44996         (main): Instead of setting a fake locale, set a real locale. Call
44997         textdomain and bindtextdomain.
44998         * modules/quotearg-tests (Files): Add the new files.
44999         (Depends-on): Add gettext, setenv, unsetenv.
45000         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45001         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
45002         Augment TESTS_ENVIRONMENT.
45003
45004 2009-01-25  Bruno Haible  <bruno@clisp.org>
45005
45006         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
45007         fr_FR.ISO8859-1 locale on MacOS X.
45008         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
45009         ja_JP.eucJP locale on MacOS X.
45010         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
45011         zh_CN.GB18030 locale on MacOS X.
45012
45013 2009-01-25  Bruno Haible  <bruno@clisp.org>
45014
45015         Avoid link errors on MacOS X 10.3.
45016         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
45017         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45018
45019 2009-01-25  Bruno Haible  <bruno@clisp.org>
45020
45021         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45022         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
45023         * modules/pipe (Files): Remove m4/posix_spawn.m4.
45024         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45025         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
45026         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45027         posix_spawnattr_init, posix_spawnattr_setsigmask,
45028         posix_spawnattr_setflags, posix_spawnattr_destroy.
45029
45030         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45031         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
45032         * modules/execute (Files): Remove m4/posix_spawn.m4.
45033         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45034         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45035         posix_spawnattr_init, posix_spawnattr_setsigmask,
45036         posix_spawnattr_setflags, posix_spawnattr_destroy.
45037
45038 2009-01-25  Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/glthread/threadlib.c: Include <stdlib.h>.
45041
45042 2009-01-25  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/glthread/threadlib.c (dummy): New declaration.
45045
45046 2009-01-25  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
45049         multibyte characters also for the GB18030 encoding. Don't crash when
45050         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
45051
45052 2009-01-25  Bruno Haible  <bruno@clisp.org>
45053
45054         Avoid redefining 'struct random_data' on OSF/1 5.1.
45055         * lib/stdlib.in.h: Include <random.h> if it exists.
45056         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
45057         HAVE_RANDOM_H. Include <random.h> when testing whether
45058         'struct random_data' exists.
45059         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
45060
45061 2009-01-25  Bruno Haible  <bruno@clisp.org>
45062
45063         Don't install charset.alias on MacOS X >= 10.3.
45064         * lib/localcharset.c (DARWIN7): New macro.
45065         (get_charset_aliases): Hardcode the result for Darwin7.
45066         * modules/localcharset (install-exec-local): Don't install
45067         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
45068
45069 2009-01-25  Bruno Haible  <bruno@clisp.org>
45070
45071         Don't install charset.alias on mingw and Cygwin.
45072         * modules/localcharset (install-exec-local): Don't install
45073         charset.alias on mingw and Cygwin, if the file does not yet exist.
45074         The result for these platforms is hardcoded in localcharset.c.
45075
45076 2009-01-25  Bruno Haible  <bruno@clisp.org>
45077
45078         Make it possible again to use AC_GNU_SOURCE together with gnulib.
45079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
45080         before requiring AC_USE_SYSTEM_EXTENSIONS.
45081
45082 2009-01-25  Jim Meyering  <meyering@redhat.com>
45083
45084         c-strtod: avoid warnings
45085         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
45086         "assignment discards qualifiers from pointer target type" warnings.
45087
45088 2009-01-24  Bruno Haible  <bruno@clisp.org>
45089
45090         Add support for non-UTF-8 locales on MacOS X.
45091         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
45092         canonical encodings. For Darwin 7 and newer, don't map traditional
45093         encodings to UTF-8.
45094         Reported by Vincent Lefevre <vincent@vinc17.org>
45095         at <http://savannah.gnu.org/bugs/?25235>.
45096
45097 2009-01-24  Bruno Haible  <bruno@clisp.org>
45098
45099         * doc/gnulib.texi (Obsolete modules): New section.
45100         Reported by Mike Frysinger <vapier@gentoo.org>.
45101
45102 2009-01-24  Bruno Haible  <bruno@clisp.org>
45103
45104         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
45105         (%.dvi): New rule.
45106
45107 2009-01-24  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
45110         Reported by Eric Blake.
45111
45112 2009-01-24  Bruno Haible  <bruno@clisp.org>
45113
45114         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
45115         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
45116         Reported by Gary V. Vaughan <gary@gnu.org>.
45117
45118 2009-01-24  Bruno Haible  <bruno@clisp.org>
45119
45120         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
45121
45122 2009-01-23  Bruno Haible  <bruno@clisp.org>
45123
45124         Make c-strtod, c-strtold usable in libraries.
45125         * lib/c-strtod.c: Include string.h instead of xalloc.h.
45126         (C_STRTOD): Call strdup instead of xstrdup.
45127         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
45128         * modules/c-strtold (Depends-on): Likewise.
45129         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
45130         * NEWS: Mention the change.
45131         Reported by Michael Gold <mgold@ncf.ca>.
45132
45133 2009-01-23  Jim Meyering  <meyering@redhat.com>
45134
45135         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
45136         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
45137         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
45138
45139 2009-01-23  Simon Josefsson  <simon@josefsson.org>
45140
45141         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
45142         GNU CoreUtils.
45143         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
45144         * modules/version-etc (Description): Update.
45145
45146 2009-01-22  Bruno Haible  <bruno@clisp.org>
45147
45148         Cache the C locale object.
45149         * lib/c-strtod.c (c_locale_cache): New variable.
45150         (c_locale): New function.
45151         (C_STRTOD): Use it, and don't call freelocale.
45152         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
45153         Suggested by Paolo Bonzini.
45154
45155 2009-01-21  Bruno Haible  <bruno@clisp.org>
45156
45157         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
45158         conditions other than overflow.
45159
45160 2009-01-21  Bruno Haible  <bruno@clisp.org>
45161
45162         * lib/c-strtod.c: Include errno.h.
45163         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
45164         value from STRTOD_L and STRTOD.
45165
45166 2009-01-21  Bruno Haible  <bruno@clisp.org>
45167         and Jim Meyering  <meyering@redhat.com>
45168
45169         nanosleep: skip configure test (fail it) for apple universal builds
45170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
45171         universal builds, assume that nanosleep does not work.
45172         * modules/nanosleep (Depends-on): Add multiarch.
45173
45174         mktime: skip configure test (fail it) for apple universal builds
45175         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
45176         universal builds, assume that mktime does not work.
45177         * modules/mktime (Depends-on): Add multiarch.
45178
45179 2009-01-21  Eric Blake  <ebb9@byu.net>
45180
45181         multiarch: avoid expand-before-require warning
45182         * modules/multiarch (configure.ac): Require, rather than expand,
45183         gl_MULTIARCH.
45184         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
45185         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
45186         enforce that all clients require it.  Partial reversion of
45187         2008-12-29 patch.
45188
45189         error: avoid expand-before-require warning
45190         * modules/errno (configure.ac): Require, rather than expand,
45191         gl_HEADER_ERRNO_H.
45192         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
45193         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
45194         enforce that all clients require it.
45195
45196         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
45197         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
45198         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
45199         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
45200
45201 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
45202
45203         Revert:
45204         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45205
45206         regex: do not depend on obsolete modules.
45207         * modules/regex: Remove memcmp and memmove.
45208
45209 2009-01-20  Bruno Haible  <bruno@clisp.org>
45210
45211         Make the 'link' module link on Windows NT 4.
45212         * lib/link.c (_WIN32_WINNT): Don't define.
45213         (CreateHardLinkFuncType): New type.
45214         (CreateHardLinkFunc, initialized): New variables.
45215         (initialize): New function.
45216         (link): Invoke CreateHardLink indirectly through the function pointer.
45217
45218 2009-01-20  Bruno Haible  <bruno@clisp.org>
45219
45220         Fix compilation failure on mingw.
45221         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
45222
45223 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
45224
45225         * doc/c-strtod.texi: Mention a couple of restrictions.
45226
45227 2009-01-20  Jim Meyering  <meyering@redhat.com>
45228
45229         gettimeofday: move more declarations out of functions
45230         * lib/gettimeofday.c: Move extern declarations of tzset and
45231         gmtime out of containing functions.  Prompted by Bruno Haible.
45232
45233 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45234
45235         regex: do not depend on obsolete modules.
45236         * modules/regex: Remove memcmp and memmove.
45237
45238 2009-01-19  Bruno Haible  <bruno@clisp.org>
45239
45240         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
45241         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
45242         gl_BIGENDIAN, not AC_C_BIGENDIAN.
45243         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
45244         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
45245
45246 2009-01-19  Bruno Haible  <bruno@clisp.org>
45247
45248         * tests/test-link.c: Include <errno.h>.
45249         (main): Exit with code 77 when a hard link cannot be created due to
45250         the file system.
45251         * tests/test-link.sh: Skip test when a hard link cannot be created due
45252         to the file system.
45253         Suggested by Eric Blake.
45254
45255 2009-01-19  Martin Lambers  <marlam@marlam.de>
45256
45257         * modules/link-tests: New file.
45258         * tests/test-link.sh: New file.
45259         * tests/test-link.c: New file.
45260
45261 2009-01-19  Eric Blake  <ebb9@byu.net>
45262
45263         doc: mention another function added in cygwin 1.7.0
45264         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
45265         Another new function in cygwin 1.7.
45266
45267 2009-01-19  Bruno Haible  <bruno@clisp.org>
45268
45269         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
45270         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
45271         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
45272         gl_BIGENDIAN, not AC_C_BIGENDIAN.
45273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45274         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
45275         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45276         * m4/md4.m4 (gl_MD4): Likewise.
45277         * m4/md5.m4 (gl_MD5): Likewise.
45278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
45279         * m4/sha1.m4 (gl_SHA1): Likewise.
45280         * m4/sha256.m4 (gl_SHA256): Likewise.
45281         * m4/sha512.m4 (gl_SHA512): Likewise.
45282
45283 2009-01-19  Bruno Haible  <bruno@clisp.org>
45284
45285         * modules/uniname/uniname-tests (Depends-on): Add progname.
45286         * tests/uniname/test-uninames.c: Include progname.h.
45287         (main): Call set_program_name.
45288
45289         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
45290         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
45291         (main): Call set_program_name.
45292
45293         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
45294         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
45295         (main): Call set_program_name.
45296
45297         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
45298         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
45299         (main): Call set_program_name.
45300
45301         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
45302         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
45303         (main): Call set_program_name.
45304
45305         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
45306         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
45307         (main): Call set_program_name.
45308
45309         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
45310         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
45311         (main): Call set_program_name.
45312
45313         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
45314         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
45315         (main): Call set_program_name.
45316
45317         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
45318         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
45319         (main): Call set_program_name.
45320
45321 2009-01-19  Eric Blake  <ebb9@byu.net>
45322
45323         test-unistd: test previous patch
45324         * tests/test-unistd.c: Test *_FILENO macros.
45325
45326         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
45327         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45328         Guarantee a definition.
45329         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
45330         * modules/unistd-safer (Depends-on): Add dependency on unistd.
45331         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
45332         * lib/dup-safer.c (STDERR_FILENO): Likewise.
45333         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45334         Likewise.
45335         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
45336         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
45337         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45338         Likewise.
45339         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
45340         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
45341         (STDERR_FILENO): Likewise.
45342         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
45343         (STDERR_FILENO): Likewise.
45344         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
45345         (STDERR_FILENO): Likewise.
45346         Reported by Elbert Pol.
45347
45348 2009-01-19  Eric Blake  <ebb9@byu.net>
45349
45350         doc: mention more functions added in cygwin 1.7.0
45351         * doc/posix-functions/abort.texi (abort): Update wording related
45352         to cygwin.
45353         * doc/posix-functions/daylight.texi (daylight): Likewise.
45354         * doc/posix-functions/optarg.texi (optarg): Likewise.
45355         * doc/posix-functions/optarg.texi (opterr): Likewise.
45356         * doc/posix-functions/optarg.texi (optind): Likewise.
45357         * doc/posix-functions/optarg.texi (optopt): Likewise.
45358         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
45359         worked in 1.5.x, and was withdrawn in 1.7.
45360         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
45361         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
45362         cygwin versions.
45363         * doc/posix-functions/perror.texi (perror): Likewise.
45364         * doc/posix-functions/printf.texi (printf): Likewise.
45365         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
45366         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
45367         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
45368         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
45369         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45370         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
45371         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45372         Likewise.
45373         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45374         Likewise.
45375         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
45376         this function.
45377         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
45378         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
45379         Likewise.
45380         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
45381         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
45382         * doc/posix-functions/confstr.texi (confstr): Likewise.
45383         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
45384         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
45385         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
45386         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
45387         * doc/posix-functions/fputws.texi (fputws): Likewise.
45388         * doc/posix-functions/fwide.texi (fwide): Likewise.
45389         * doc/posix-functions/getwc.texi (getwc): Likewise.
45390         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
45391         * doc/posix-functions/putwc.texi (putwc): Likewise.
45392         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
45393         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
45394         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
45395         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
45396         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
45397         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
45398         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
45399         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
45400         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
45401         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
45402         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
45403
45404 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45405
45406         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
45407         * lib/ioctl.c: Include <sys/ioctl.h>.
45408
45409 2009-01-19  Simon Josefsson  <simon@josefsson.org>
45410
45411         * modules/getdate-tests (Depends-on): Add progname.
45412         * tests/test-getdate.c: Use progname module, to avoid link errors
45413         on non-glibc systems.
45414
45415 2009-01-18  Simon Josefsson  <simon@josefsson.org>
45416
45417         * modules/filenamecat-tests (Depends-on): Add progname.
45418         * modules/fstrcmp-tests (Depends-on): Likewise.
45419
45420         * tests/test-filenamecat.c: Use progname module, to avoid link
45421         errors on non-glibc systems.
45422         * tests/test-fstrcmp.c: Likewise.
45423
45424 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45425
45426         gettimeofday: avoid warning: nested extern declaration of 'localtime'
45427         * lib/gettimeofday.c: Move extern declaration out of function.
45428
45429 2009-01-18  Bruno Haible  <bruno@clisp.org>
45430
45431         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
45432         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
45433         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
45434
45435 2009-01-18  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/strftime.c (MEMPCPY): Remove unused macro.
45438         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
45439
45440 2009-01-18  Martin Lambers  <marlam@marlam.de>
45441
45442         New module 'link'.
45443         * lib/unistd.in.h (link): New declaration.
45444         * lib/link.c: New file.
45445         * m4/link.m4: New file.
45446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
45447         HAVE_LINK.
45448         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
45449         * modules/link: New file.
45450         * doc/posix-functions/link.texi: Mention the new module.
45451
45452 2009-01-18  Bruno Haible  <bruno@clisp.org>
45453
45454         * tests/test-avltree_list.c (main): Call set_program_name.
45455         * tests/test-avltree_oset.c (main): Likewise.
45456         * tests/test-obstack-printf.c: Include progname.h.
45457         (main): Call set_program_name.
45458         * tests/test-quotearg.c: Include progname.h.
45459         (main): Call set_program_name.
45460         * tests/test-xmemdup0.c: Include progname.h.
45461         (main): Call set_program_name.
45462
45463 2009-01-18  Bruno Haible  <bruno@clisp.org>
45464
45465         New module 'alphasort'.
45466         * lib/dirent.in.h (alphasort): New declaration.
45467         * lib/alphasort.c: New file, from glibc with modifications.
45468         * m4/alphasort.m4: New file.
45469         * modules/alphasort: New file.
45470         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
45471         HAVE_ALPHASORT.
45472         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
45473         HAVE_ALPHASORT.
45474         * doc/posix-functions/alphasort.texi: Mention the new module and the
45475         portability problems.
45476
45477 2009-01-18  Bruno Haible  <bruno@clisp.org>
45478
45479         New module 'scandir'.
45480         * lib/dirent.in.h (scandir): New declaration.
45481         * lib/scandir.c: New file, from glibc with modifications.
45482         * m4/scandir.m4: New file.
45483         * modules/scandir: New file.
45484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
45485         HAVE_SCANDIR.
45486         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
45487         HAVE_SCANDIR.
45488         * doc/posix-functions/scandir.texi: Mention the new module and the
45489         portability problems.
45490
45491 2009-01-17  Bruno Haible  <bruno@clisp.org>
45492
45493         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
45494         Update documentation.
45495         (func_remove_suffix): Escape all dots in the suffix. Update
45496         documentation.
45497         (func_filter_filelist): Update documentation.
45498         Reported by Ralf Wildenhues.
45499
45500 2009-01-17  Bruno Haible  <bruno@clisp.org>
45501
45502         * modules/dprintf-posix-tests: New file.
45503         * tests/test-dprintf-posix.sh: New file.
45504         * tests/test-dprintf-posix.c: New file.
45505
45506         New modules 'dprintf', 'dprintf-posix'.
45507         * lib/stdio.in.h (dprintf): New declaration.
45508         * lib/dprintf.c: New file.
45509         * m4/dprintf.m4: New file.
45510         * m4/dprintf-posix.m4: New file.
45511         * modules/dprintf: New file.
45512         * modules/dprintf-posix: New file.
45513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
45514         HAVE_DPRINTF, REPLACE_DPRINTF.
45515         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
45516         HAVE_DPRINTF, REPLACE_DPRINTF.
45517         * doc/posix-functions/dprintf.texi: Mention the new modules.
45518
45519 2009-01-17  Bruno Haible  <bruno@clisp.org>
45520
45521         * modules/vdprintf-posix-tests: New file.
45522         * tests/test-vdprintf-posix.sh: New file.
45523         * tests/test-vdprintf-posix.c: New file.
45524
45525         New modules 'vdprintf', 'vdprintf-posix'.
45526         * lib/stdio.in.h (vdprintf): New declaration.
45527         * lib/vdprintf.c: New file.
45528         * m4/vdprintf.m4: New file.
45529         * m4/vdprintf-posix.m4: New file.
45530         * modules/vdprintf: New file.
45531         * modules/vdprintf-posix: New file.
45532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
45533         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45534         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
45535         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45536         * doc/posix-functions/vdprintf.texi: Mention the new modules.
45537
45538 2009-01-17  Bruno Haible  <bruno@clisp.org>
45539
45540         Fix replacement of fopen on mingw.
45541         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
45542         mingw.
45543
45544 2009-01-17  Bruno Haible  <bruno@clisp.org>
45545
45546         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
45547         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
45548
45549 2009-01-17  Bruno Haible  <bruno@clisp.org>
45550
45551         Avoid test-fflush2.sh failure on mingw.
45552         * tests/test-fflush2.c: Include binary-io.h.
45553         (main): Put standard input into binary mode.
45554         * modules/fflush-tests (Depends-on): Add binary-io.
45555
45556 2009-01-17  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/wchar.in.h: In another particular situation, include only the
45559         system's <wchar.h> file.
45560         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
45561         Reported by Albert Chin-A-Young <china@thewrittenword.com>
45562         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
45563
45564 2009-01-17  Bruno Haible  <bruno@clisp.org>
45565
45566         Support for stripping executables in --enable-relocatable.
45567         * build-aux/install-reloc: Expect one more argument, or an environment
45568         variable RELOC_STRIP_PROG. If set, strip the destination program and
45569         its wrapper.
45570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
45571         RELOC_STRIP_PROG.
45572         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
45573         to set RELOCATABLE_STRIP.
45574         * NEWS: Mention the new Makefile requirement.
45575
45576 2009-01-17  Bruno Haible  <bruno@clisp.org>
45577
45578         * build-aux/install-reloc: Remove debugging information left over by
45579         C compiler on MacOS X.
45580
45581 2009-01-17  Bruno Haible  <bruno@clisp.org>
45582
45583         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
45584         * lib/progreloc.c (find_executable): Fix type of pointer passed to
45585         _NSGetExecutablePath.
45586
45587 2009-01-16  Jim Meyering  <meyering@redhat.com>
45588
45589         strerror: avoid warnings about discarding "const"
45590         * lib/strerror.c (rpl_strerror): Instead of returning a const
45591         string from each and every "case", use a variable, and add a single
45592         cast after the switch.
45593
45594 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
45595
45596         * lib/arpa_inet.in.h: Add extern "C" block for C++.
45597
45598 2009-01-16  Bruno Haible  <bruno@clisp.org>
45599
45600         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
45601         array initializer syntax that also works in C++ mode.
45602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45603
45604 2009-01-16  Jim Meyering  <meyering@redhat.com>
45605
45606         poll: suppress a warning
45607         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
45608         to ignore "...unsigned expression < 0 is always false" warnings.
45609
45610 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
45611
45612         poll: remove declarations of unused variables
45613         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
45614         sockbuf and optlen.
45615
45616 2009-01-15  Bruno Haible  <bruno@clisp.org>
45617
45618         Make fflush-after-ungetc POSIX compliant on BSD systems.
45619         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
45620         (clear_ungetc_buffer): Implement also for other systems.
45621         (rpl_fflush): On glibc systems, invoke
45622         clear_ungetc_buffer_preserving_position. Otherwise, invoke
45623         clear_ungetc_buffer after fetching the stream's position, not before.
45624
45625 2009-01-15  Bruno Haible  <bruno@clisp.org>
45626
45627         Make fflush-after-ungetc POSIX compliant on glibc systems.
45628         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
45629         after ungetc.
45630         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
45631         (rpl_fflush): On glibc systems, simply call the system's fflush
45632         function after clearing the ungetc buffer.
45633         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
45634         Instead, lseek only to the end of file, then use the system's fseeko
45635         for the rest. On glibc systems, reset the EOF indicator bit.
45636
45637 2009-01-15  Jim Meyering  <meyering@redhat.com>
45638
45639         openmp.m4: revert quote-adding change, for portability to older autoconf
45640         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
45641         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
45642         Simon Josefsson noticed the problem when using autoconf-2.61.
45643
45644 2009-01-15  Bruno Haible  <bruno@clisp.org>
45645
45646         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
45647         * tests/test-fflush2.c (ASSERT): Always fail.
45648         (main): Add two tests for fflush() after ungetc(), taking into account
45649         the Austin Group's clarification.
45650         Suggested by Eric Blake.
45651
45652 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
45653
45654         mktime.m4: remove K&R-style function prototypes
45655         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
45656         for the Sun C++ compiler.
45657
45658 2009-01-14  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
45661         while including <wchar.h>.
45662         * lib/wchar.in.h: In two particular situations on HP-UX, include only
45663         the system's <wchar.h> file.
45664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45665
45666 2009-01-14  Bruno Haible  <bruno@clisp.org>
45667
45668         * m4/csharp.m4: Don't mention gettext on the serial number line.
45669         * m4/csharpexec.m4: Likewise.
45670         * m4/eaccess.m4: Likewise.
45671         * m4/javaexec.m4: Likewise.
45672         * m4/sig_atomic_t.m4: Likewise.
45673         * m4/tmpdir.m4: Likewise.
45674         * m4/intldir.m4: Bump gettext version.
45675         * m4/lib-ld.m4: Likewise.
45676
45677 2009-01-14  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/progname.c (set_program_name): Add more comments.
45680         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45681
45682 2009-01-14  Simon Josefsson  <simon@josefsson.org>
45683
45684         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
45685         were sys/stat.h does not define it.
45686
45687 2009-01-14  Jim Meyering  <meyering@redhat.com>
45688
45689         many *.m4 files: improve m4 quoting
45690         99% of this change was performed by running the following commands:
45691         git ls-files | grep '\.m4$' | xargs perl -pi \
45692           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
45693           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45694           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45695           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
45696         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
45697         The remainder were to add Copyright dates, increment serial numbers,
45698         undo some changes in comments, exclude m4/intl.m4, and add quotes
45699         around the "1" in ",1" where the unusual spacing prohibited the
45700         above regexps from doing the job.  For more details, see
45701         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
45702         * m4/acl.m4: Modified.
45703         * m4/afs.m4: Likewise.
45704         * m4/alloca.m4: Likewise.
45705         * m4/argp.m4: Likewise.
45706         * m4/argz.m4: Likewise.
45707         * m4/atexit.m4: Likewise.
45708         * m4/bison-i18n.m4: Likewise.
45709         * m4/bison.m4: Likewise.
45710         * m4/byteswap.m4: Likewise.
45711         * m4/c-stack.m4: Likewise.
45712         * m4/c-strtod.m4: Likewise.
45713         * m4/calloc.m4: Likewise.
45714         * m4/canonicalize-lgpl.m4: Likewise.
45715         * m4/chown.m4: Likewise.
45716         * m4/clock_time.m4: Likewise.
45717         * m4/codeset.m4: Likewise.
45718         * m4/copy-file.m4: Likewise.
45719         * m4/csharp.m4: Likewise.
45720         * m4/csharpcomp.m4: Likewise.
45721         * m4/csharpexec.m4: Likewise.
45722         * m4/d-ino.m4: Likewise.
45723         * m4/d-type.m4: Likewise.
45724         * m4/dirfd.m4: Likewise.
45725         * m4/double-slash-root.m4: Likewise.
45726         * m4/eaccess.m4: Likewise.
45727         * m4/eealloc.m4: Likewise.
45728         * m4/environ.m4: Likewise.
45729         * m4/errno_h.m4: Likewise.
45730         * m4/euidaccess.m4: Likewise.
45731         * m4/execute.m4: Likewise.
45732         * m4/fatal-signal.m4: Likewise.
45733         * m4/fchdir.m4: Likewise.
45734         * m4/fcntl_h.m4: Likewise.
45735         * m4/fileblocks.m4: Likewise.
45736         * m4/filenamecat.m4: Likewise.
45737         * m4/findprog.m4: Likewise.
45738         * m4/flexmember.m4: Likewise.
45739         * m4/fnmatch.m4: Likewise.
45740         * m4/fopen.m4: Likewise.
45741         * m4/fpending.m4: Likewise.
45742         * m4/fprintf-posix.m4: Likewise.
45743         * m4/free.m4: Likewise.
45744         * m4/frexp.m4: Likewise.
45745         * m4/frexpl.m4: Likewise.
45746         * m4/fsusage.m4: Likewise.
45747         * m4/ftruncate.m4: Likewise.
45748         * m4/gc-camellia.m4: Likewise.
45749         * m4/gc-random.m4: Likewise.
45750         * m4/gc.m4: Likewise.
45751         * m4/getaddrinfo.m4: Likewise.
45752         * m4/getcwd-abort-bug.m4: Likewise.
45753         * m4/getcwd-path-max.m4: Likewise.
45754         * m4/getdate.m4: Likewise.
45755         * m4/getdomainname.m4: Likewise.
45756         * m4/getgroups.m4: Likewise.
45757         * m4/gethostname.m4: Likewise.
45758         * m4/gethrxtime.m4: Likewise.
45759         * m4/getline.m4: Likewise.
45760         * m4/getloadavg.m4: Likewise.
45761         * m4/getndelim2.m4: Likewise.
45762         * m4/getpass.m4: Likewise.
45763         * m4/gettext.m4: Likewise.
45764         * m4/gettime.m4: Likewise.
45765         * m4/gettimeofday.m4: Likewise.
45766         * m4/gnulib-common.m4: Likewise.
45767         * m4/group-member.m4: Likewise.
45768         * m4/host-os.m4: Likewise.
45769         * m4/iconv.m4: Likewise.
45770         * m4/iconv_open.m4: Likewise.
45771         * m4/inet_ntop.m4: Likewise.
45772         * m4/inet_pton.m4: Likewise.
45773         * m4/inline.m4: Likewise.
45774         * m4/intldir.m4: Likewise.
45775         * m4/intlmacosx.m4: Likewise.
45776         * m4/intmax.m4: Likewise.
45777         * m4/intmax_t.m4: Likewise.
45778         * m4/inttypes.m4: Likewise.
45779         * m4/inttypes_h.m4: Likewise.
45780         * m4/inttypes-pri.m4: Likewise.
45781         * m4/isapipe.m4: Likewise.
45782         * m4/isnand.m4: Likewise.
45783         * m4/isnanf.m4: Likewise.
45784         * m4/isnanl.m4: Likewise.
45785         * m4/javacomp.m4: Likewise.
45786         * m4/javaexec.m4: Likewise.
45787         * m4/jm-winsz1.m4: Likewise.
45788         * m4/jm-winsz2.m4: Likewise.
45789         * m4/lchown.m4: Likewise.
45790         * m4/lcmessage.m4: Likewise.
45791         * m4/ldexpl.m4: Likewise.
45792         * m4/lib-ld.m4: Likewise.
45793         * m4/lib-link.m4: Likewise.
45794         * m4/libsigsegv.m4: Likewise.
45795         * m4/link-follow.m4: Likewise.
45796         * m4/localcharset.m4: Likewise.
45797         * m4/locale-fr.m4: Likewise.
45798         * m4/locale-ja.m4: Likewise.
45799         * m4/locale-tr.m4: Likewise.
45800         * m4/locale-zh.m4: Likewise.
45801         * m4/lock.m4: Likewise.
45802         * m4/longlong.m4: Likewise.
45803         * m4/ls-mntd-fs.m4: Likewise.
45804         * m4/lstat.m4: Likewise.
45805         * m4/malloc.m4: Likewise.
45806         * m4/mathl.m4: Likewise.
45807         * m4/mbrtowc.m4: Likewise.
45808         * m4/mbstate_t.m4: Likewise.
45809         * m4/mbswidth.m4: Likewise.
45810         * m4/memchr.m4: Likewise.
45811         * m4/memcmp.m4: Likewise.
45812         * m4/memcpy.m4: Likewise.
45813         * m4/memmem.m4: Likewise.
45814         * m4/memmove.m4: Likewise.
45815         * m4/mempcpy.m4: Likewise.
45816         * m4/memrchr.m4: Likewise.
45817         * m4/memset.m4: Likewise.
45818         * m4/minmax.m4: Likewise.
45819         * m4/mkdir-slash.m4: Likewise.
45820         * m4/mkdtemp.m4: Likewise.
45821         * m4/mktime.m4: Likewise.
45822         * m4/mmap-anon.m4: Likewise.
45823         * m4/mountlist.m4: Likewise.
45824         * m4/nanosleep.m4: Likewise.
45825         * m4/nls.m4: Likewise.
45826         * m4/nocrash.m4: Likewise.
45827         * m4/open.m4: Likewise.
45828         * m4/openat.m4: Likewise.
45829         * m4/openmp.m4: Likewise.
45830         * m4/pathmax.m4: Likewise.
45831         * m4/perl.m4: Likewise.
45832         * m4/physmem.m4: Likewise.
45833         * m4/pipe.m4: Likewise.
45834         * m4/po.m4: Likewise.
45835         * m4/poll.m4: Likewise.
45836         * m4/posixtm.m4: Likewise.
45837         * m4/posixver.m4: Likewise.
45838         * m4/printf-frexp.m4: Likewise.
45839         * m4/printf-frexpl.m4: Likewise.
45840         * m4/printf-posix.m4: Likewise.
45841         * m4/printf-posix-rpl.m4: Likewise.
45842         * m4/printf.m4: Likewise.
45843         * m4/progtest.m4: Likewise.
45844         * m4/putenv.m4: Likewise.
45845         * m4/readline.m4: Likewise.
45846         * m4/readlink.m4: Likewise.
45847         * m4/readutmp.m4: Likewise.
45848         * m4/realloc.m4: Likewise.
45849         * m4/regex.m4: Likewise.
45850         * m4/relocatable.m4: Likewise.
45851         * m4/relocatable-lib.m4: Likewise.
45852         * m4/rename-dest-slash.m4: Likewise.
45853         * m4/rename.m4: Likewise.
45854         * m4/rmdir-errno.m4: Likewise.
45855         * m4/rmdir.m4: Likewise.
45856         * m4/roundf.m4: Likewise.
45857         * m4/roundl.m4: Likewise.
45858         * m4/rpmatch.m4: Likewise.
45859         * m4/save-cwd.m4: Likewise.
45860         * m4/selinux-selinux-h.m4: Likewise.
45861         * m4/setenv.m4: Likewise.
45862         * m4/settime.m4: Likewise.
45863         * m4/sig2str.m4: Likewise.
45864         * m4/sig_atomic_t.m4: Likewise.
45865         * m4/signalblocking.m4: Likewise.
45866         * m4/signbit.m4: Likewise.
45867         * m4/sigpipe.m4: Likewise.
45868         * m4/sockets.m4: Likewise.
45869         * m4/sockpfaf.m4: Likewise.
45870         * m4/st_dm_mode.m4: Likewise.
45871         * m4/stat-time.m4: Likewise.
45872         * m4/stdbool.m4: Likewise.
45873         * m4/stdint.m4: Likewise.
45874         * m4/stdint_h.m4: Likewise.
45875         * m4/stpcpy.m4: Likewise.
45876         * m4/stpncpy.m4: Likewise.
45877         * m4/strcase.m4: Likewise.
45878         * m4/strchrnul.m4: Likewise.
45879         * m4/strcspn.m4: Likewise.
45880         * m4/strdup.m4: Likewise.
45881         * m4/strftime.m4: Likewise.
45882         * m4/strndup.m4: Likewise.
45883         * m4/strnlen.m4: Likewise.
45884         * m4/strpbrk.m4: Likewise.
45885         * m4/strptime.m4: Likewise.
45886         * m4/strsep.m4: Likewise.
45887         * m4/strtod.m4: Likewise.
45888         * m4/strtoimax.m4: Likewise.
45889         * m4/strtok_r.m4: Likewise.
45890         * m4/strtol.m4: Likewise.
45891         * m4/strtoll.m4: Likewise.
45892         * m4/strtoul.m4: Likewise.
45893         * m4/strtoull.m4: Likewise.
45894         * m4/strtoumax.m4: Likewise.
45895         * m4/strverscmp.m4: Likewise.
45896         * m4/threadlib.m4: Likewise.
45897         * m4/timegm.m4: Likewise.
45898         * m4/tm_gmtoff.m4: Likewise.
45899         * m4/tmpdir.m4: Likewise.
45900         * m4/tmpfile.m4: Likewise.
45901         * m4/tzset.m4: Likewise.
45902         * m4/uintmax_t.m4: Likewise.
45903         * m4/unlinkdir.m4: Likewise.
45904         * m4/unlocked-io.m4: Likewise.
45905         * m4/uptime.m4: Likewise.
45906         * m4/userspec.m4: Likewise.
45907         * m4/utimbuf.m4: Likewise.
45908         * m4/utime.m4: Likewise.
45909         * m4/utimes-null.m4: Likewise.
45910         * m4/utimes.m4: Likewise.
45911         * m4/vararrays.m4: Likewise.
45912         * m4/vasnprintf.m4: Likewise.
45913         * m4/vfprintf-posix.m4: Likewise.
45914         * m4/vprintf-posix.m4: Likewise.
45915         * m4/wait-process.m4: Likewise.
45916         * m4/wchar_t.m4: Likewise.
45917         * m4/wint_t.m4: Likewise.
45918         * m4/write-any-file.m4: Likewise.
45919         * m4/yield.m4: Likewise.
45920
45921 2009-01-13  Bruno Haible  <bruno@clisp.org>
45922
45923         Avoid test-copy-file.sh failures when ACL support insufficient.
45924         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45925         TESTS_ENVIRONMENT.
45926         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45927         Reported by Jim Meyering.
45928
45929 2009-01-13  Bruno Haible  <bruno@clisp.org>
45930
45931         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45932         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45933         * modules/unistdio/u8-printf-parse (Files): Likewise.
45934         * modules/unistdio/u32-printf-parse (Files): Likewise.
45935         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45936
45937 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45938
45939         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45940         and m4/inttypes_h.m4 too.
45941
45942 2009-01-12  Eric Blake  <ebb9@byu.net>
45943
45944         tests: IRIX 6.2 cc can't compile -0.0 into .data
45945         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45946         rather than at compile-time.
45947         * tests/test-floorl.c (minus_zero): Likewise.
45948         * tests/test-frexpl.c (minus_zero): Likewise.
45949         * tests/test-isnan.c (minus_zerol): Likewise.
45950         * tests/test-isnanl.h (minus_zero): Likewise.
45951         * tests/test-ldexpl.c (minus_zero): Likewise.
45952         * tests/test-roundl.c (minus_zero): Likewise.
45953         * tests/test-signbit.c (minus_zerol): Likewise.
45954         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45955         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45956         * tests/test-truncl.c (minus_zero): Likewise.
45957         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45958         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45959         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45960
45961 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45962
45963         regex: fix glibc bug 9697
45964         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45965         handling.
45966
45967 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45968
45969         regex: fix glibc bug 697
45970         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45971         being NULL also if there are no backreferences.
45972
45973 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45974
45975         regex: merge glibc changes
45976         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45977         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45978         re_string_skip_chars, re_string_reconstruct): Likewise.
45979         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45980
45981 2009-01-07  Jim Meyering  <meyering@redhat.com>
45982
45983         poll: filter through cppi
45984         * lib/poll.c: Indent cpp directives to reflect nesting.
45985
45986 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45987
45988         poll: don't return uninitialized
45989         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45990
45991 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45992
45993         avoid compile failure on AIX 6.1
45994         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45995         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45996
45997 2009-01-04  Jim Meyering  <meyering@redhat.com>
45998
45999         remove duplicate inclusion of <stdio.h>
46000         * tests/test-fprintf-posix.c: Likewise.
46001         * tests/test-printf-posix.c: Likewise.
46002         * tests/test-snprintf-posix.c: Likewise.
46003         * tests/test-sprintf-posix.c: Likewise.
46004         * tests/test-vasprintf-posix.c: Likewise.
46005         * tests/test-vfprintf-posix.c: Likewise.
46006         * tests/test-vprintf-posix.c: Likewise.
46007         * tests/test-vsnprintf-posix.c: Likewise.
46008         * tests/test-vsprintf-posix.c: Likewise.
46009
46010 2009-01-03  Jim Meyering  <meyering@redhat.com>
46011
46012         gnulib-tool: fix sed-based filtering
46013         * gnulib-tool (func_filter_filelist): Remove extra backslash
46014         in sed_fff_filter definition.
46015
46016 2009-01-02  Jim Meyering  <meyering@redhat.com>
46017
46018         strftime: avoid compilation failure on Solaris 2.6
46019         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
46020         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
46021         Don't #define mbrlen or mbsinit, since now they're guaranteed to
46022         be available.  Reported by Tom G. Christensen.  Details in
46023         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
46024
46025 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46026             Bruno Haible  <bruno@clisp.org>
46027
46028         Speed up gnulib-tool by doing more string processing through shell
46029         built-ins.
46030         * gnulib-tool (fast_func_append): New variable.
46031         (func_remove_prefix, func_remove_suffix): New functions.
46032         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
46033         (func_filter_filelist): New function.
46034         (func_get_dependencies): Use func_remove_suffix instead of sed.
46035         (func_get_automake_snippet): Use func_filter_filelist instead of a
46036         subshell and sed invocation.
46037
46038 2009-01-01  Bruno Haible  <bruno@clisp.org>
46039
46040         Fix a security bug.
46041         * gnulib-tool (func_import, import, update): Don't allow the characters
46042         '"', '$', '`', '\' in macro arguments that become part of commands that
46043         are evaluated.
46044
46045 2009-01-01  Bruno Haible  <bruno@clisp.org>
46046
46047         * gnulib-tool (func_reset_sigpipe): Add more comments.
46048
46049 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46050
46051         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
46052         func_emit_tests_Makefile_am, func_import): Abort loops early if we
46053         already know the answer.
46054
46055 2009-01-01  Jim Meyering  <meyering@redhat.com>
46056
46057         * lib/version-etc.c (version_etc_va): Update copyright year.
46058
46059 2008-12-30  Bruno Haible  <bruno@clisp.org>
46060
46061         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
46062         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
46063         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
46064
46065 2008-12-29  Eric Blake  <ebb9@byu.net>
46066
46067         multiarch: avoid autoconf AC_REQUIRE bug
46068         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
46069         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
46070         2.63 and older.
46071         Reported by Bruno Haible, and analyzed in
46072         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
46073
46074 2008-12-29  Bruno Haible  <bruno@clisp.org>
46075
46076         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
46077         files in subdirectories correctly.
46078         Reported by Ralf Wildenhues.
46079
46080 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46081
46082         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
46083         rather than 'join FILE -', for Solaris join.
46084
46085 2008-12-29  Bruno Haible  <bruno@clisp.org>
46086
46087         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
46088         quoting.
46089         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46090         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46091         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46092         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
46093         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46094         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46095         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46096         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46097         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46098         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46099         * m4/nls.m4 (AM_NLS): Likewise.
46100         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
46101         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46102         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46103         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46104         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46105         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46106         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
46107         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46108         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46109         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46110         * m4/xsize.m4 (gl_XSIZE): Likewise.
46111         Suggested by Jim Meyering.
46112
46113 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46114
46115         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
46116         * lib/parse-duration.c: use a switch instead of cascading if's.
46117
46118 2008-12-29  Eric Blake  <ebb9@byu.net>
46119
46120         wchar.h: supply WEOF on Irix 5.3
46121         * lib/wchar.in.h (wint_t): Also supply WEOF.
46122         * lib/wctype.in.h (wint_t): Likewise.
46123         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
46124         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
46125         Reported by Tom G. Christensen.
46126
46127 2008-12-26  Bruno Haible  <bruno@clisp.org>
46128
46129         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
46130         i486, i586, i686.
46131
46132 2008-12-26  Bruno Haible  <bruno@clisp.org>
46133
46134         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
46135
46136 2008-12-26  Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
46139         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
46140         not __STDC_CONSTANT_MACROS.
46141         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46142
46143 2008-12-25  Bruno Haible  <bruno@clisp.org>
46144
46145         Add support for universal builds to vasnprintf.
46146         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
46147         universal builds, guess no.
46148         * modules/vasnprintf-posix (Depends-on): Add multiarch.
46149         * modules/vasprintf-posix (Depends-on): Likewise.
46150         * modules/fprintf-posix (Depends-on): Likewise.
46151         * modules/vfprintf-posix (Depends-on): Likewise.
46152         * modules/snprintf-posix (Depends-on): Likewise.
46153         * modules/vsnprintf-posix (Depends-on): Likewise.
46154         * modules/sprintf-posix (Depends-on): Likewise.
46155         * modules/vsprintf-posix (Depends-on): Likewise.
46156         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46157         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46158         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46159         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46160         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46161         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46162         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46163
46164         Add support for universal builds to <inttypes.h>.
46165         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
46166         _SCNu64_PREFIX): In Apple
46167         universal builds, define directly, using _LP64.
46168         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
46169         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
46170         * modules/inttypes (Depends-on): Add multiarch.
46171         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46172
46173         Add support for universal builds to <stdint.h>.
46174         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
46175         universal builds, define directly, using _LP64.
46176         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
46177         Apple universal builds, don't test for the size and suffix of ptrdiff_t
46178         and size_t.
46179         * modules/stdint (Depends-on): Add multiarch.
46180         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46181
46182         New module 'multiarch'.
46183         * modules/multiarch: New file.
46184         * m4/multiarch.m4: New file.
46185
46186 2008-12-25  Bruno Haible  <bruno@clisp.org>
46187
46188         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
46189
46190 2008-12-25  Bruno Haible  <bruno@clisp.org>
46191
46192         * modules/btowc (License): Relicense under LGPLv2+.
46193         * modules/mbsinit (License): Likewise.
46194         * modules/mbrtowc (License): Likewise.
46195         * modules/wcrtomb (License): Likewise.
46196         * modules/streq (License): Likewise.
46197         Reported by David Lutterkort <lutter@redhat.com>.
46198
46199 2008-12-23  Bruno Haible  <bruno@clisp.org>
46200
46201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
46202
46203 2008-12-23  Bruno Haible  <bruno@clisp.org>
46204
46205         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
46206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
46207         GETADDRINFO_LIB, not in LIBS.
46208         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
46209         * modules/canon-host (Link): Likewise.
46210         * NEWS: Mention the change.
46211         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
46212         GETADDRINFO_LIB.
46213
46214 2008-12-22  Bruno Haible  <bruno@clisp.org>
46215
46216         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
46217         * doc/posix-functions/iswalpha_l.texi: Likewise.
46218         * doc/posix-functions/iswblank_l.texi: Likewise.
46219         * doc/posix-functions/iswcntrl_l.texi: Likewise.
46220         * doc/posix-functions/iswctype_l.texi: Likewise.
46221         * doc/posix-functions/iswdigit_l.texi: Likewise.
46222         * doc/posix-functions/iswgraph_l.texi: Likewise.
46223         * doc/posix-functions/iswlower_l.texi: Likewise.
46224         * doc/posix-functions/iswprint_l.texi: Likewise.
46225         * doc/posix-functions/iswpunct_l.texi: Likewise.
46226         * doc/posix-functions/iswspace_l.texi: Likewise.
46227         * doc/posix-functions/iswupper_l.texi: Likewise.
46228         * doc/posix-functions/iswxdigit_l.texi: Likewise.
46229         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
46230         * doc/posix-functions/open_wmemstream.texi: Likewise.
46231         * doc/posix-functions/swscanf.texi: Likewise.
46232         * doc/posix-functions/towctrans_l.texi: Likewise.
46233         * doc/posix-functions/towlower.texi: Likewise.
46234         * doc/posix-functions/towlower_l.texi: Likewise.
46235         * doc/posix-functions/towupper.texi: Likewise.
46236         * doc/posix-functions/towupper_l.texi: Likewise.
46237         * doc/posix-functions/vfwprintf.texi: Likewise.
46238         * doc/posix-functions/vfwscanf.texi: Likewise.
46239         * doc/posix-functions/vswscanf.texi: Likewise.
46240         * doc/posix-functions/vwprintf.texi: Likewise.
46241         * doc/posix-functions/vwscanf.texi: Likewise.
46242         * doc/posix-functions/wcpcpy.texi: Likewise.
46243         * doc/posix-functions/wcpncpy.texi: Likewise.
46244         * doc/posix-functions/wcscasecmp.texi: Likewise.
46245         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
46246         * doc/posix-functions/wcscoll_l.texi: Likewise.
46247         * doc/posix-functions/wcsdup.texi: Likewise.
46248         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46249         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
46250         * doc/posix-functions/wcsnlen.texi: Likewise.
46251         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46252         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
46253         * doc/posix-functions/wctrans_l.texi: Likewise.
46254         * doc/posix-functions/wctype_l.texi: Likewise.
46255         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
46256         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
46257         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
46258         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
46259         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
46260         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
46261         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
46262         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
46263         * doc/glibc-functions/wcschrnul.texi: Likewise.
46264         * doc/glibc-functions/wcsftime_l.texi: Likewise.
46265         * doc/glibc-functions/wcstod_l.texi: Likewise.
46266         * doc/glibc-functions/wcstof_l.texi: Likewise.
46267         * doc/glibc-functions/wcstol_l.texi: Likewise.
46268         * doc/glibc-functions/wcstold_l.texi: Likewise.
46269         * doc/glibc-functions/wcstoll_l.texi: Likewise.
46270         * doc/glibc-functions/wcstoq.texi: Likewise.
46271         * doc/glibc-functions/wcstoul_l.texi: Likewise.
46272         * doc/glibc-functions/wcstoull_l.texi: Likewise.
46273         * doc/glibc-functions/wcstouq.texi: Likewise.
46274         * doc/glibc-functions/wmempcpy.texi: Likewise.
46275
46276 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
46277             Eric Blake  <ebb9@byu.net>
46278             Paolo Bonzini  <bonzini@gnu.org>
46279             Bruno Haible  <bruno@clisp.org>
46280
46281         Make c-stack work on Haiku.
46282         * lib/c-stack.c (SA_ONSTACK): Define fallback.
46283         (c_stack_action): Use SA_ONSTACK flag.
46284
46285 2008-12-22  Bruno Haible  <bruno@clisp.org>
46286
46287         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
46288
46289 2008-12-22  Bruno Haible  <bruno@clisp.org>
46290
46291         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
46292         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
46293         being overridden.
46294         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
46295         New macros.
46296         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
46297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
46298         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
46299         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
46300
46301 2008-12-22  Bruno Haible  <bruno@clisp.org>
46302
46303         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
46304         from test code.
46305
46306 2008-12-22  Eric Blake  <ebb9@byu.net>
46307
46308         Avoid gcc warnings on cygwin.
46309         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
46310         Avoid unused variable.
46311         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
46312         Likewise.
46313
46314 2008-12-22  Bruno Haible  <bruno@clisp.org>
46315
46316         Remove HAVE_MBRTOWC conditionals.
46317         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
46318         (mbscasecmp): Assume mbrtowc function.
46319         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
46320         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
46321         * lib/mbschr.c: Include mbuiter.h unconditionally.
46322         (mbschr): Assume mbrtowc function.
46323         * lib/mbscspn.c: Include mbuiter.h unconditionally.
46324         (mbscspn): Assume mbrtowc function.
46325         * lib/mbslen.c: Include mbuiter.h unconditionally.
46326         (mbslen): Assume mbrtowc function.
46327         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
46328         (mbsncasecmp): Assume mbrtowc function.
46329         * lib/mbsnlen.c: Include mbiter.h unconditionally.
46330         (mbsnlen): Assume mbrtowc function.
46331         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
46332         (mbspbrk): Assume mbrtowc function.
46333         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
46334         (mbspcasecmp): Assume mbrtowc function.
46335         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
46336         (mbsrchr): Assume mbrtowc function.
46337         * lib/mbssep.c: Include mbuiter.h unconditionally.
46338         (mbssep): Assume mbrtowc function.
46339         * lib/mbsspn.c: Include mbuiter.h unconditionally.
46340         (mbsspn): Assume mbrtowc function.
46341         * lib/mbsstr.c: Include mbuiter.h unconditionally.
46342         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
46343         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
46344         (mbstok_r): Assume mbrtowc function.
46345         * lib/propername.c: Include mbuiter.h unconditionally.
46346         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
46347         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
46348         (trim2): Assume mbrtowc function.
46349         * lib/mbswidth.c (mbsinit): Remove fallback definition.
46350         (mbsnwidth): Assume mbrtowc function.
46351         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
46352         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
46353         fallback definitions.
46354         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
46355
46356 2008-12-22  Bruno Haible  <bruno@clisp.org>
46357
46358         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
46359
46360 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
46361
46362         * modules/regex: Request emulations for the mb*/wc* functions we need.
46363         * m4/regex.m4: Don't look for those functions here.
46364         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
46365
46366 2008-12-22  Bruno Haible  <bruno@clisp.org>
46367
46368         * modules/fnmatch (Depends-on): Remove duplicated dependency.
46369
46370 2008-12-21  Bruno Haible  <bruno@clisp.org>
46371
46372         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
46373         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
46374         (Include): Remove conditionalization.
46375         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
46376         (Include): Remove conditionalization.
46377         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
46378         (Include): Remove conditionalization.
46379         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
46380         * m4/mbfile.m4 (gl_MBFILE): Likewise.
46381         * NEWS: Mention the change.
46382         Reported by Alan Hourihane <alanh@fairlite.co.uk>
46383         via Sergey Poznyakoff <gray@gnu.org.ua>.
46384
46385 2008-12-21  Bruno Haible  <bruno@clisp.org>
46386
46387         * MODULES.html.sh (Extended multibyte and wide character utilities
46388         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
46389         wcrtomb, wcsrtombs.
46390         (Support for systems lacking POSIX:2008): Add accept, bind, close,
46391         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
46392         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
46393         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
46394
46395 2008-12-21  Bruno Haible  <bruno@clisp.org>
46396
46397         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
46398
46399 2008-12-21  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/wcsnrtombs-tests: New file.
46402         * tests/test-wcsnrtombs1.sh: New file.
46403         * tests/test-wcsnrtombs2.sh: New file.
46404         * tests/test-wcsnrtombs3.sh: New file.
46405         * tests/test-wcsnrtombs4.sh: New file.
46406         * tests/test-wcsnrtombs.c: New file.
46407
46408         New module 'wcsnrtombs'.
46409         * lib/wchar.in.h (wcsnrtombs): New declaration.
46410         * lib/wcsnrtombs.c: New file.
46411         * lib/wcsrtombs-state.c: New file.
46412         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
46413         (internal_state): Remove variable.
46414         * m4/wcsnrtombs.m4: New file.
46415         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
46416         compilation units.
46417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
46418         HAVE_WCSNRTOMBS.
46419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
46420         HAVE_WCSNRTOMBS.
46421         * modules/wcsnrtombs: New file.
46422         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
46423         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
46424
46425 2008-12-21  Bruno Haible  <bruno@clisp.org>
46426
46427         * modules/wcsrtombs-tests: New file.
46428         * tests/test-wcsrtombs1.sh: New file.
46429         * tests/test-wcsrtombs2.sh: New file.
46430         * tests/test-wcsrtombs3.sh: New file.
46431         * tests/test-wcsrtombs4.sh: New file.
46432         * tests/test-wcsrtombs.c: New file.
46433
46434         New module 'wcsrtombs'.
46435         * lib/wchar.in.h (wcsrtombs): New declaration.
46436         * lib/wcsrtombs.c: New file.
46437         * m4/wcsrtombs.m4: New file.
46438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
46439         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
46441         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46442         * modules/wcsrtombs: New file.
46443         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
46444         bugs.
46445
46446 2008-12-21  Bruno Haible  <bruno@clisp.org>
46447
46448         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
46449         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
46450         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
46451         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
46452         if not correct.
46453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
46454         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
46455         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46456         m4/locale-zh.m4, m4/codeset.m4.
46457         * doc/posix-functions/wcrtomb.texi: Document the bug.
46458
46459 2008-12-21  Bruno Haible  <bruno@clisp.org>
46460
46461         Work around a btowc() bug on IRIX 6.5.
46462         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
46463         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
46464         REPLACE_WTOBC if not.
46465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
46466         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
46467         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
46468
46469 2008-12-21  Bruno Haible  <bruno@clisp.org>
46470
46471         * modules/wcrtomb-tests: New file.
46472         * tests/test-wcrtomb.sh: New file.
46473         * tests/test-wcrtomb.c: New file.
46474
46475         New module 'wcrtomb'.
46476         * lib/wchar.in.h (wcrtomb): New declaration.
46477         * lib/wcrtomb.c: New file.
46478         * m4/wcrtomb.m4: New file.
46479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
46480         HAVE_WCRTOMB.
46481         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
46482         HAVE_WCRTOMB.
46483         * modules/wcrtomb: New file.
46484         * doc/posix-functions/wcrtomb.texi: Mention the new module.
46485
46486 2008-12-21  Bruno Haible  <bruno@clisp.org>
46487
46488         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
46489         * modules/mbsrtowcs (Files): Likewise.
46490         * modules/wctob (Files): Likewise.
46491         * modules/c-strcase-tests (Files): Likewise.
46492         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
46493         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
46494         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
46495         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
46496         * modules/vasnprintf-posix-tests (Files): Likewise.
46497
46498 2008-12-21  William Pursell  <bill.pursell@gmail.com>
46499
46500         gitlog-to-changelog: pass all command-line arguments to git-log
46501         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
46502         it is sometimes convenient to filter the commits in various ways.
46503         gitlog-to-changelog only allows --since to specify a start date,
46504         but git-log itself supports many other filtering mechanisms.
46505         At the moment, I want to filter by branch name.  Rather than
46506         adding a --branch option to gitlog-to-changelog, it seems more
46507         flexible to simply pass all options directly to git-log and let
46508         git do the work.  Notice that this effectively makes --since a
46509         redundant option for gitlog-to-changelog, but removing it would
46510         require current usage to change since calls would then require
46511         an additional '--'.
46512
46513 2008-12-21  Bruno Haible  <bruno@clisp.org>
46514
46515         * modules/mbsnrtowcs-tests: New file.
46516         * tests/test-mbsnrtowcs1.sh: New file.
46517         * tests/test-mbsnrtowcs2.sh: New file.
46518         * tests/test-mbsnrtowcs3.sh: New file.
46519         * tests/test-mbsnrtowcs4.sh: New file.
46520         * tests/test-mbsnrtowcs.c: New file.
46521
46522         New module 'mbsnrtowcs'.
46523         * lib/wchar.in.h (mbsnrtowcs): New declaration.
46524         * lib/mbsnrtowcs.c: New file.
46525         * lib/mbsrtowcs-state.c: New file.
46526         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
46527         (internal_state): Remove variable.
46528         * m4/mbsnrtowcs.m4: New file.
46529         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
46530         compilation units.
46531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
46532         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46533         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
46534         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46535         * modules/mbsnrtowcs: New file.
46536         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
46537         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
46538         portability problem.
46539
46540 2008-12-21  Bruno Haible  <bruno@clisp.org>
46541
46542         Work around mbsrtowcs bug.
46543         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
46544         (gl_FUNC_MBSRTOWCS): Invoke it.
46545         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46546         m4/locale-zh.m4.
46547         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
46548
46549 2008-12-21  Bruno Haible  <bruno@clisp.org>
46550
46551         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
46552
46553 2008-12-21  Bruno Haible  <bruno@clisp.org>
46554
46555         Update doc for AIX.
46556         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
46557         16-bit wchar_t type.
46558         * doc/posix-functions/btowc.texi: Likewise.
46559         * doc/posix-functions/fgetwc.texi: Likewise.
46560         * doc/posix-functions/fgetws.texi: Likewise.
46561         * doc/posix-functions/fputwc.texi: Likewise.
46562         * doc/posix-functions/fputws.texi: Likewise.
46563         * doc/posix-functions/fwide.texi: Likewise.
46564         * doc/posix-functions/fwprintf.texi: Likewise.
46565         * doc/posix-functions/fwscanf.texi: Likewise.
46566         * doc/posix-functions/getwchar.texi: Likewise.
46567         * doc/posix-functions/getwc.texi: Likewise.
46568         * doc/posix-functions/iswalnum.texi: Likewise.
46569         * doc/posix-functions/iswalpha.texi: Likewise.
46570         * doc/posix-functions/iswblank.texi: Likewise.
46571         * doc/posix-functions/iswcntrl.texi: Likewise.
46572         * doc/posix-functions/iswctype.texi: Likewise.
46573         * doc/posix-functions/iswdigit.texi: Likewise.
46574         * doc/posix-functions/iswgraph.texi: Likewise.
46575         * doc/posix-functions/iswlower.texi: Likewise.
46576         * doc/posix-functions/iswprint.texi: Likewise.
46577         * doc/posix-functions/iswpunct.texi: Likewise.
46578         * doc/posix-functions/iswspace.texi: Likewise.
46579         * doc/posix-functions/iswupper.texi: Likewise.
46580         * doc/posix-functions/iswxdigit.texi: Likewise.
46581         * doc/posix-functions/mbrtowc.texi: Likewise.
46582         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46583         * doc/posix-functions/mbstowcs.texi: Likewise.
46584         * doc/posix-functions/mbtowc.texi: Likewise.
46585         * doc/posix-functions/putwchar.texi: Likewise.
46586         * doc/posix-functions/putwc.texi: Likewise.
46587         * doc/posix-functions/swprintf.texi: Likewise.
46588         * doc/posix-functions/tolower.texi: Likewise.
46589         * doc/posix-functions/toupper.texi: Likewise.
46590         * doc/posix-functions/towctrans.texi: Likewise.
46591         * doc/posix-functions/ungetwc.texi: Likewise.
46592         * doc/posix-functions/vswprintf.texi: Likewise.
46593         * doc/posix-functions/wcrtomb.texi: Likewise.
46594         * doc/posix-functions/wcscat.texi: Likewise.
46595         * doc/posix-functions/wcschr.texi: Likewise.
46596         * doc/posix-functions/wcscmp.texi: Likewise.
46597         * doc/posix-functions/wcscoll.texi: Likewise.
46598         * doc/posix-functions/wcscpy.texi: Likewise.
46599         * doc/posix-functions/wcscspn.texi: Likewise.
46600         * doc/posix-functions/wcsftime.texi: Likewise.
46601         * doc/posix-functions/wcslen.texi: Likewise.
46602         * doc/posix-functions/wcsncat.texi: Likewise.
46603         * doc/posix-functions/wcsncmp.texi: Likewise.
46604         * doc/posix-functions/wcsncpy.texi: Likewise.
46605         * doc/posix-functions/wcspbrk.texi: Likewise.
46606         * doc/posix-functions/wcsrchr.texi: Likewise.
46607         * doc/posix-functions/wcsrtombs.texi: Likewise.
46608         * doc/posix-functions/wcsspn.texi: Likewise.
46609         * doc/posix-functions/wcsstr.texi: Likewise.
46610         * doc/posix-functions/wcstod.texi: Likewise.
46611         * doc/posix-functions/wcstof.texi: Likewise.
46612         * doc/posix-functions/wcstoimax.texi: Likewise.
46613         * doc/posix-functions/wcstok.texi: Likewise.
46614         * doc/posix-functions/wcstold.texi: Likewise.
46615         * doc/posix-functions/wcstoll.texi: Likewise.
46616         * doc/posix-functions/wcstol.texi: Likewise.
46617         * doc/posix-functions/wcstombs.texi: Likewise.
46618         * doc/posix-functions/wcstoull.texi: Likewise.
46619         * doc/posix-functions/wcstoul.texi: Likewise.
46620         * doc/posix-functions/wcstoumax.texi: Likewise.
46621         * doc/posix-functions/wcswidth.texi: Likewise.
46622         * doc/posix-functions/wcsxfrm.texi: Likewise.
46623         * doc/posix-functions/wctob.texi: Likewise.
46624         * doc/posix-functions/wctomb.texi: Likewise.
46625         * doc/posix-functions/wctrans.texi: Likewise.
46626         * doc/posix-functions/wctype.texi: Likewise.
46627         * doc/posix-functions/wcwidth.texi: Likewise.
46628         * doc/posix-functions/wmemchr.texi: Likewise.
46629         * doc/posix-functions/wmemcmp.texi: Likewise.
46630         * doc/posix-functions/wmemcpy.texi: Likewise.
46631         * doc/posix-functions/wmemmove.texi: Likewise.
46632         * doc/posix-functions/wmemset.texi: Likewise.
46633         * doc/posix-functions/wprintf.texi: Likewise.
46634         * doc/posix-functions/wscanf.texi: Likewise.
46635
46636 2008-12-21  Bruno Haible  <bruno@clisp.org>
46637
46638         Update doc for HP-UX 11.11.
46639         * doc/posix-functions/btowc.texi: Clarify that the function is missing
46640         in HP-UX version 11.00, not in all versions of HP-UX 11.
46641         * doc/posix-functions/fwide.texi: Likewise.
46642         * doc/posix-functions/fwprintf.texi: Likewise.
46643         * doc/posix-functions/fwscanf.texi: Likewise.
46644         * doc/posix-functions/inet_ntop.texi: Likewise.
46645         * doc/posix-functions/inet_pton.texi: Likewise.
46646         * doc/posix-functions/mbrlen.texi: Likewise.
46647         * doc/posix-functions/mbrtowc.texi: Likewise.
46648         * doc/posix-functions/mbsinit.texi: Likewise.
46649         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46650         * doc/posix-functions/swprintf.texi: Likewise.
46651         * doc/posix-functions/swscanf.texi: Likewise.
46652         * doc/posix-functions/towctrans.texi: Likewise.
46653         * doc/posix-functions/vfwprintf.texi: Likewise.
46654         * doc/posix-functions/vswprintf.texi: Likewise.
46655         * doc/posix-functions/vwprintf.texi: Likewise.
46656         * doc/posix-functions/wcrtomb.texi: Likewise.
46657         * doc/posix-functions/wcsrtombs.texi: Likewise.
46658         * doc/posix-functions/wcsstr.texi: Likewise.
46659         * doc/posix-functions/wctob.texi: Likewise.
46660         * doc/posix-functions/wctrans.texi: Likewise.
46661         * doc/posix-functions/wmemchr.texi: Likewise.
46662         * doc/posix-functions/wmemcmp.texi: Likewise.
46663         * doc/posix-functions/wmemcpy.texi: Likewise.
46664         * doc/posix-functions/wmemmove.texi: Likewise.
46665         * doc/posix-functions/wmemset.texi: Likewise.
46666         * doc/posix-functions/wprintf.texi: Likewise.
46667         * doc/posix-functions/wscanf.texi: Likewise.
46668
46669 2008-12-21  Bruno Haible  <bruno@clisp.org>
46670
46671         Work around a portability problem.
46672         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
46673         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
46674
46675 2008-12-20  Bruno Haible  <bruno@clisp.org>
46676
46677         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
46678         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
46679         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
46680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
46681         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
46682
46683         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
46684         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
46685         set.
46686         (GNULIB_defined_mbstate_t): New macro.
46687         (mbsinit): Redefine if REPLACE_MBSINIT is set.
46688         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
46689         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
46690         reuses the system's mbrtowc function but works around the bugs.
46691         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
46692         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
46693         macros.
46694         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
46695         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
46696         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
46697         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
46698         REPLACE_MBSINIT if mbsinit needs to be overridden.
46699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
46700         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46701         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
46702         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46703         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46704         m4/locale-zh.m4.
46705         (Depends): Add mbsinit.
46706         * modules/mbsinit (Depends): Add mbrtowc.
46707         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
46708
46709 2008-12-20  Bruno Haible  <bruno@clisp.org>
46710
46711         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
46712         so that there are no conversion errors on AIX.
46713         * tests/test-mbsrtowcs.c (main): LIkewise.
46714
46715 2008-12-20  Bruno Haible  <bruno@clisp.org>
46716
46717         Work around wctob bug on Solaris <= 9.
46718         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
46719         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
46720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
46721         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
46722         * modules/wctob (Files): Add m4/locale-fr.m4.
46723         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
46724
46725 2008-12-20  Bruno Haible  <bruno@clisp.org>
46726
46727         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
46728         /dev/null.
46729         * tests/test-select-in.sh: Likewise.
46730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46731
46732 2008-12-20  Bruno Haible  <bruno@clisp.org>
46733
46734         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
46735         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
46736         Cygwin 1.5.x.
46737
46738 2008-12-20  Bruno Haible  <bruno@clisp.org>
46739
46740         Ensure mbstate_t is defined on HP-UX 11.11.
46741         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
46742         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
46743         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
46744         AC_USE_SYSTEM_EXTENSIONS.
46745         * modules/fnmatch (Depends-on): Add extensions.
46746         * modules/mbrlen (Depends-on): Likewise.
46747         * modules/mbrtowc (Depends-on): Likewise.
46748         * modules/mbsinit (Depends-on): Likewise.
46749         * modules/mbsrtowcs (Depends-on): Likewise.
46750         * modules/mbswidth (Depends-on): Likewise.
46751         * modules/quotearg (Depends-on): Likewise.
46752         * modules/strftime (Depends-on): Likewise.
46753
46754 2008-12-20  Bruno Haible  <bruno@clisp.org>
46755
46756         Ensure wctob is declared on IRIX 6.5.
46757         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
46758         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
46759         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
46760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
46761         of HAVE_WCTOB.
46762         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
46763         HAVE_WCTOB.
46764         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
46765
46766 2008-12-19  Bruno Haible  <bruno@clisp.org>
46767
46768         * modules/mbsrtowcs-tests: New file.
46769         * tests/test-mbsrtowcs1.sh: New file.
46770         * tests/test-mbsrtowcs2.sh: New file.
46771         * tests/test-mbsrtowcs3.sh: New file.
46772         * tests/test-mbsrtowcs4.sh: New file.
46773         * tests/test-mbsrtowcs.c: New file.
46774
46775         New module 'mbsrtowcs'.
46776         * lib/wchar.in.h (mbsrtowcs): New declaration.
46777         * lib/mbsrtowcs.c: New file.
46778         * m4/mbsrtowcs.m4: New file.
46779         * modules/mbsrtowcs: New file.
46780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
46781         HAVE_MBSRTOWCS.
46782         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
46783         HAVE_MBSRTOWCS.
46784         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
46785
46786 2008-12-19  Bruno Haible  <bruno@clisp.org>
46787
46788         New module 'mbrlen'.
46789         * lib/wchar.in.h (mbrlen): New declaration.
46790         * lib/mbrlen.c: New file.
46791         * m4/mbrlen.m4: New file.
46792         * modules/mbrlen: New file.
46793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
46794         HAVE_MBRLEN.
46795         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
46796         HAVE_MBRLEN.
46797         * doc/posix-functions/mbrlen.texi: Document the new module.
46798
46799 2008-12-19  Bruno Haible  <bruno@clisp.org>
46800
46801         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
46802         * modules/mbrtowc (Depends-on): Add verify.
46803         Suggested by Paul Eggert.
46804
46805 2008-12-18  Bruno Haible  <bruno@clisp.org>
46806
46807         * modules/mbsinit-tests: New file.
46808         * tests/test-mbsinit.sh: New file.
46809         * tests/test-mbsinit.c: New file.
46810
46811 2008-12-18  Bruno Haible  <bruno@clisp.org>
46812
46813         * modules/mbrtowc-tests: New file.
46814         * tests/test-mbrtowc1.sh: New file.
46815         * tests/test-mbrtowc2.sh: New file.
46816         * tests/test-mbrtowc3.sh: New file.
46817         * tests/test-mbrtowc4.sh: New file.
46818         * tests/test-mbrtowc.c: New file.
46819
46820         New module 'mbrtowc'.
46821         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46822         mbsinit and mbrtowc.
46823         (mbrtowc): New declaration.
46824         * lib/mbrtowc.c: New file.
46825         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46826         * modules/mbrtowc: New file.
46827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46828         HAVE_MBRTOWC.
46829         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46830         HAVE_MBRTOWC.
46831         * doc/posix-functions/mbrtowc.texi: Document the new module.
46832
46833 2008-12-18  Bruno Haible  <bruno@clisp.org>
46834
46835         New module 'wctob'.
46836         * lib/wchar.in.h (wctob): New declaration.
46837         * lib/wctob.c: New file.
46838         * m4/wctob.m4: New file.
46839         * modules/wctob: New file.
46840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46841         HAVE_WCTOB.
46842         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46843         * doc/posix-functions/wctob.texi: Document the new module.
46844
46845 2008-12-18  Bruno Haible  <bruno@clisp.org>
46846
46847         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46848         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46849
46850 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46851
46852         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46853         G. Christensen" <tgc@jupiterrise.com>.
46854
46855         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46856         G. Christensen" <tgc@jupiterrise.com>.
46857
46858         * lib/flock.c: Need to include string.h.  Reported by "Tom
46859         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46860         <ebb9@byu.net>.
46861
46862 2008-12-18  Bruno Haible  <bruno@clisp.org>
46863
46864         * m4/locale-ja.m4: New file, from GNU gettext.
46865
46866 2008-12-17  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46869         Suggested by Eric Blake.
46870
46871 2008-12-17  Bruno Haible  <bruno@clisp.org>
46872
46873         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46874
46875 2008-12-17  Bruno Haible  <bruno@clisp.org>
46876
46877         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46878         * modules/mbsinit (Depends-on): Add verify.
46879         Suggested by Paul Eggert.
46880
46881 2008-12-17  Bruno Haible  <bruno@clisp.org>
46882
46883         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46884         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46885         gl_FUNC_MBRTOWC.
46886         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46887         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46888         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46889         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46890         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46891         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46892         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46893         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46894         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46895         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46896         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46897         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46898         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46899         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46900         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46901         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46902         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46903         * modules/trim (configure.ac): Likewise.
46904
46905 2008-12-17  Bruno Haible  <bruno@clisp.org>
46906
46907         * modules/btowc-tests: New file.
46908         * tests/test-btowc1.sh: New file.
46909         * tests/test-btowc2.sh: New file.
46910         * tests/test-btowc.c: New file.
46911
46912         New module 'btowc'.
46913         * lib/wchar.in.h (btowc): New declaration.
46914         * lib/btowc.c: New file.
46915         * m4/btowc.m4: New file.
46916         * modules/btowc: New file.
46917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46918         HAVE_BTOWC.
46919         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46920         * doc/posix-functions/btowc.texi: Document the new module.
46921
46922 2008-12-17  Bruno Haible  <bruno@clisp.org>
46923
46924         New module 'mbsinit'.
46925         * lib/wchar.in.h (mbsinit): New declaration.
46926         * lib/mbsinit.c: New file.
46927         * m4/mbsinit.m4: New file.
46928         * modules/mbsinit: New file.
46929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46930         HAVE_MBSINIT.
46931         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46932         HAVE_MBSINIT.
46933         * doc/posix-functions/mbsinit.texi: Document the new module.
46934
46935 2008-12-16  Bruno Haible  <bruno@clisp.org>
46936
46937         * lib/unistd.in.h: Add comment.
46938         * tests/test-environ.c: Don't include <stdlib.h>.
46939
46940 2008-12-16  Bruno Haible  <bruno@clisp.org>
46941
46942         * lib/parse-duration.h (parse_duration): Document return value
46943         convention.
46944         * lib/parse-duration.c: Include specification header first. Add
46945         comments.
46946         (_): Remove macro.
46947         (parse_year_month_day, parse_hour_minute_second): Move side effects
46948         outside of strchr call.
46949         (parse_non_iso8601): Move side effects outside of isspace call.
46950         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46951         call.
46952
46953 2008-12-16  Bruno Haible  <bruno@clisp.org>
46954
46955         * tests/test-parse-duration.sh: Produce no output when the test
46956         succeeds.
46957
46958 2008-12-16  Bruno Haible  <bruno@clisp.org>
46959
46960         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46961         expressions.
46962
46963 2008-12-15  Bruno Haible  <bruno@clisp.org>
46964
46965         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46966         * doc/glibc-functions/flistxattr.texi: Likewise.
46967         * doc/glibc-functions/fopencookie.texi: Likewise.
46968         * doc/glibc-functions/fremovexattr.texi: Likewise.
46969         * doc/glibc-functions/fsetxattr.texi: Likewise.
46970         * doc/glibc-functions/getxattr.texi: Likewise.
46971         * doc/glibc-functions/lgetxattr.texi: Likewise.
46972         * doc/glibc-functions/listxattr.texi: Likewise.
46973         * doc/glibc-functions/llistxattr.texi: Likewise.
46974         * doc/glibc-functions/lremovexattr.texi: Likewise.
46975         * doc/glibc-functions/lsetxattr.texi: Likewise.
46976         * doc/glibc-functions/removexattr.texi: Likewise.
46977         * doc/glibc-functions/setxattr.texi: Likewise.
46978         * doc/posix-functions/open_memstream.texi: Likewise.
46979
46980 2008-12-15  Eric Blake  <ebb9@byu.net>
46981
46982         Update doc for cygwin 1.7.
46983         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46984         functions.
46985         * doc/posix-functions/fchmodat.texi: Likewise.
46986         * doc/posix-functions/fchownat.texi: Likewise.
46987         * doc/posix-functions/fdopendir.texi: Likewise.
46988         * doc/posix-functions/fmemopen.texi: Likewise.
46989         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46990         * doc/posix-functions/fstatat.texi: Likewise.
46991         * doc/posix-functions/futimens.texi: Likewise.
46992         * doc/posix-functions/gai_strerror.texi: Likewise.
46993         * doc/posix-functions/getaddrinfo.texi: Likewise.
46994         * doc/posix-functions/getnameinfo.texi: Likewise.
46995         * doc/posix-functions/if_freenameindex.texi: Likewise.
46996         * doc/posix-functions/if_indextoname.texi: Likewise.
46997         * doc/posix-functions/if_nameindex.texi: Likewise.
46998         * doc/posix-functions/if_nametoindex.texi: Likewise.
46999         * doc/posix-functions/insque.texi: Likewise.
47000         * doc/posix-functions/linkat.texi: Likewise.
47001         * doc/posix-functions/llrint.texi: Likewise.
47002         * doc/posix-functions/llrintf.texi: Likewise.
47003         * doc/posix-functions/llrintl.texi: Likewise.
47004         * doc/posix-functions/lockf.texi: Likewise.
47005         * doc/posix-functions/lrintl.texi: Likewise.
47006         * doc/posix-functions/mkdirat.texi: Likewise.
47007         * doc/posix-functions/mkfifoat.texi: Likewise.
47008         * doc/posix-functions/mknodat.texi: Likewise.
47009         * doc/posix-functions/mq_close.texi: Likewise.
47010         * doc/posix-functions/mq_getattr.texi: Likewise.
47011         * doc/posix-functions/mq_notify.texi: Likewise.
47012         * doc/posix-functions/mq_open.texi: Likewise.
47013         * doc/posix-functions/mq_receive.texi: Likewise.
47014         * doc/posix-functions/mq_send.texi: Likewise.
47015         * doc/posix-functions/mq_setattr.texi: Likewise.
47016         * doc/posix-functions/mq_timedreceive.texi: Likewise.
47017         * doc/posix-functions/mq_timedsend.texi: Likewise.
47018         * doc/posix-functions/mq_unlink.texi: Likewise.
47019         * doc/posix-functions/open_memstream.texi: Likewise.
47020         * doc/posix-functions/openat.texi: Likewise.
47021         * doc/posix-functions/posix_fadvise.texi: Likewise.
47022         * doc/posix-functions/posix_fallocate.texi: Likewise.
47023         * doc/posix-functions/posix_madvise.texi: Likewise.
47024         * doc/posix-functions/posix_memalign.texi: Likewise.
47025         * doc/posix-functions/posix_openpt.texi: Likewise.
47026         * doc/posix-functions/readlinkat.texi: Likewise.
47027         * doc/posix-functions/remque.texi: Likewise.
47028         * doc/posix-functions/renameat.texi: Likewise.
47029         * doc/posix-functions/rintl.texi: Likewise.
47030         * doc/posix-functions/sem_unlink.texi: Likewise.
47031         * doc/posix-functions/shm_open.texi: Likewise.
47032         * doc/posix-functions/shm_unlink.texi: Likewise.
47033         * doc/posix-functions/signgam.texi: Likewise.
47034         * doc/posix-functions/sigset.texi: Likewise.
47035         * doc/posix-functions/stpcpy.texi: Likewise.
47036         * doc/posix-functions/stpncpy.texi: Likewise.
47037         * doc/posix-functions/strerror.texi: Likewise.
47038         * doc/posix-functions/strtod.texi: Likewise.
47039         * doc/posix-functions/symlinkat.texi: Likewise.
47040         * doc/posix-functions/unlinkat.texi: Likewise.
47041         * doc/posix-functions/utimensat.texi: Likewise.
47042         * doc/glibc-functions/bindresvport.texi: Likewise.
47043         * doc/glibc-functions/dn_expand.texi: Likewise.
47044         * doc/glibc-functions/exp10.texi: Likewise.
47045         * doc/glibc-functions/exp10f.texi: Likewise.
47046         * doc/glibc-functions/fgetxattr.texi: Likewise.
47047         * doc/glibc-functions/flistxattr.texi: Likewise.
47048         * doc/glibc-functions/fopencookie.texi: Likewise.
47049         * doc/glibc-functions/freeifaddrs.texi: Likewise.
47050         * doc/glibc-functions/fremovexattr.texi: Likewise.
47051         * doc/glibc-functions/fsetxattr.texi: Likewise.
47052         * doc/glibc-functions/getifaddrs.texi: Likewise.
47053         * doc/glibc-functions/getxattr.texi: Likewise.
47054         * doc/glibc-functions/lgetxattr.texi: Likewise.
47055         * doc/glibc-functions/listxattr.texi: Likewise.
47056         * doc/glibc-functions/llistxattr.texi: Likewise.
47057         * doc/glibc-functions/lremovexattr.texi: Likewise.
47058         * doc/glibc-functions/lsetxattr.texi: Likewise.
47059         * doc/glibc-functions/pow10.texi: Likewise.
47060         * doc/glibc-functions/pow10f.texi: Likewise.
47061         * doc/glibc-functions/rcmd_af.texi: Likewise.
47062         * doc/glibc-functions/removexattr.texi: Likewise.
47063         * doc/glibc-functions/res_init.texi: Likewise.
47064         * doc/glibc-functions/res_mkquery.texi: Likewise.
47065         * doc/glibc-functions/res_query.texi: Likewise.
47066         * doc/glibc-functions/res_querydomain.texi: Likewise.
47067         * doc/glibc-functions/res_send.texi: Likewise.
47068         * doc/glibc-functions/rresvport_af.texi: Likewise.
47069         * doc/glibc-functions/setxattr.texi: Likewise.
47070         * doc/glibc-functions/strcasestr.texi: Likewise.
47071
47072 2008-12-15  Bruno Haible  <bruno@clisp.org>
47073
47074         Fix compilation error on OSF/1 4.0.
47075         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
47076         <sys/time.h>, simply delegate to the system header.
47077         Reported by Daniel Richard G. <oss@teragram.com>.
47078
47079 2008-12-15  Bruno Haible  <bruno@clisp.org>
47080
47081         * doc/posix-functions/openat.texi: Mention the 'openat' module.
47082         * doc/posix-functions/fchmodat.texi: Likewise.
47083         * doc/posix-functions/fchownat.texi: Likewise.
47084         * doc/posix-functions/fdopendir.texi: Likewise.
47085         * doc/posix-functions/fstatat.texi: Likewise.
47086         * doc/posix-functions/mkdirat.texi: Likewise.
47087         * doc/posix-functions/unlinkat.texi: Likewise.
47088
47089 2008-12-14  Bruno Haible  <bruno@clisp.org>
47090
47091         Update doc for POSIX:2008.
47092         * doc/posix-functions/faccessat.texi: New file.
47093         * doc/posix-functions/fchmodat.texi: New file.
47094         * doc/posix-functions/fchownat.texi: New file.
47095         * doc/posix-functions/fdopendir.texi: New file.
47096         * doc/posix-functions/fstatat.texi: New file.
47097         * doc/posix-functions/futimens.texi: New file.
47098         * doc/posix-functions/linkat.texi: New file.
47099         * doc/posix-functions/mkdirat.texi: New file.
47100         * doc/posix-functions/mkfifoat.texi: New file.
47101         * doc/posix-functions/mknodat.texi: New file.
47102         * doc/posix-functions/open_wmemstream.texi: New file.
47103         * doc/posix-functions/openat.texi: New file.
47104         * doc/posix-functions/psiginfo.texi: New file.
47105         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
47106         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
47107         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
47108         * doc/posix-functions/readlinkat.texi: New file.
47109         * doc/posix-functions/renameat.texi: New file.
47110         * doc/posix-functions/strerror_l.texi: New file.
47111         * doc/posix-functions/symlinkat.texi: New file.
47112         * doc/posix-functions/unlinkat.texi: New file.
47113         * doc/posix-functions/utimensat.texi: New file.
47114         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47115
47116 2008-12-14  Bruno Haible  <bruno@clisp.org>
47117
47118         Update doc for POSIX:2008.
47119         * doc/posix-functions/alphasort.texi: Renamed from
47120         doc/glibc-functions/alphasort.texi.
47121         * doc/posix-functions/dirfd.texi: Renamed from
47122         doc/glibc-functions/dirfd.texi.
47123         * doc/posix-functions/dprintf.texi: Renamed from
47124         doc/glibc-functions/dprintf.texi.
47125         * doc/posix-functions/duplocale.texi: Renamed from
47126         doc/glibc-functions/duplocale.texi.
47127         * doc/posix-functions/fexecve.texi: Renamed from
47128         doc/glibc-functions/fexecve.texi.
47129         * doc/posix-functions/fmemopen.texi: Renamed from
47130         doc/glibc-functions/fmemopen.texi.
47131         * doc/posix-functions/freelocale.texi: Renamed from
47132         doc/glibc-functions/freelocale.texi.
47133         * doc/posix-functions/getdate_err.texi: Renamed from
47134         doc/glibc-functions/getdate_err.texi.
47135         * doc/posix-functions/isalnum_l.texi: Renamed from
47136         doc/glibc-functions/isalnum_l.texi.
47137         * doc/posix-functions/isalpha_l.texi: Renamed from
47138         doc/glibc-functions/isalpha_l.texi.
47139         * doc/posix-functions/isblank_l.texi: Renamed from
47140         doc/glibc-functions/isblank_l.texi.
47141         * doc/posix-functions/iscntrl_l.texi: Renamed from
47142         doc/glibc-functions/iscntrl_l.texi.
47143         * doc/posix-functions/isdigit_l.texi: Renamed from
47144         doc/glibc-functions/isdigit_l.texi.
47145         * doc/posix-functions/isgraph_l.texi: Renamed from
47146         doc/glibc-functions/isgraph_l.texi.
47147         * doc/posix-functions/islower_l.texi: Renamed from
47148         doc/glibc-functions/islower_l.texi.
47149         * doc/posix-functions/isprint_l.texi: Renamed from
47150         doc/glibc-functions/isprint_l.texi.
47151         * doc/posix-functions/ispunct_l.texi: Renamed from
47152         doc/glibc-functions/ispunct_l.texi.
47153         * doc/posix-functions/isspace_l.texi: Renamed from
47154         doc/glibc-functions/isspace_l.texi.
47155         * doc/posix-functions/isupper_l.texi: Renamed from
47156         doc/glibc-functions/isupper_l.texi.
47157         * doc/posix-functions/iswalnum_l.texi: Renamed from
47158         doc/glibc-functions/iswalnum_l.texi.
47159         * doc/posix-functions/iswalpha_l.texi: Renamed from
47160         doc/glibc-functions/iswalpha_l.texi.
47161         * doc/posix-functions/iswblank_l.texi: Renamed from
47162         doc/glibc-functions/iswblank_l.texi.
47163         * doc/posix-functions/iswcntrl_l.texi: Renamed from
47164         doc/glibc-functions/iswcntrl_l.texi.
47165         * doc/posix-functions/iswctype_l.texi: Renamed from
47166         doc/glibc-functions/iswctype_l.texi.
47167         * doc/posix-functions/iswdigit_l.texi: Renamed from
47168         doc/glibc-functions/iswdigit_l.texi.
47169         * doc/posix-functions/iswgraph_l.texi: Renamed from
47170         doc/glibc-functions/iswgraph_l.texi.
47171         * doc/posix-functions/iswlower_l.texi: Renamed from
47172         doc/glibc-functions/iswlower_l.texi.
47173         * doc/posix-functions/iswprint_l.texi: Renamed from
47174         doc/glibc-functions/iswprint_l.texi.
47175         * doc/posix-functions/iswpunct_l.texi: Renamed from
47176         doc/glibc-functions/iswpunct_l.texi.
47177         * doc/posix-functions/iswspace_l.texi: Renamed from
47178         doc/glibc-functions/iswspace_l.texi.
47179         * doc/posix-functions/iswupper_l.texi: Renamed from
47180         doc/glibc-functions/iswupper_l.texi.
47181         * doc/posix-functions/iswxdigit_l.texi: Renamed from
47182         doc/glibc-functions/iswxdigit_l.texi.
47183         * doc/posix-functions/isxdigit_l.texi: Renamed from
47184         doc/glibc-functions/isxdigit_l.texi.
47185         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
47186         doc/glibc-functions/mbsnrtowcs.texi.
47187         * doc/posix-functions/mkdtemp.texi: Renamed from
47188         doc/glibc-functions/mkdtemp.texi.
47189         * doc/posix-functions/newlocale.texi: Renamed from
47190         doc/glibc-functions/newlocale.texi.
47191         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
47192         doc/glibc-functions/nl_langinfo_l.texi.
47193         * doc/posix-functions/open_memstream.texi: Renamed from
47194         doc/glibc-functions/open_memstream.texi.
47195         * doc/posix-functions/opterr.texi: Renamed from
47196         doc/glibc-functions/opterr.texi.
47197         * doc/posix-functions/optind.texi: Renamed from
47198         doc/glibc-functions/optind.texi.
47199         * doc/posix-functions/optopt.texi: Renamed from
47200         doc/glibc-functions/optopt.texi.
47201         * doc/posix-functions/psignal.texi: Renamed from
47202         doc/glibc-functions/psignal.texi.
47203         * doc/posix-functions/scandir.texi: Renamed from
47204         doc/glibc-functions/scandir.texi.
47205         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
47206         doc/glibc-functions/sched_get_priority_min.texi.
47207         * doc/posix-functions/signgam.texi: Renamed from
47208         doc/glibc-functions/signgam.texi.
47209         * doc/posix-functions/stpcpy.texi: Renamed from
47210         doc/glibc-functions/stpcpy.texi.
47211         * doc/posix-functions/stpncpy.texi: Renamed from
47212         doc/glibc-functions/stpncpy.texi.
47213         * doc/posix-functions/strcasecmp_l.texi: Renamed from
47214         doc/glibc-functions/strcasecmp_l.texi.
47215         * doc/posix-functions/strcoll_l.texi: Renamed from
47216         doc/glibc-functions/strcoll_l.texi.
47217         * doc/posix-functions/strfmon_l.texi: Renamed from
47218         doc/glibc-functions/strfmon_l.texi.
47219         * doc/posix-functions/strftime_l.texi: Renamed from
47220         doc/glibc-functions/strftime_l.texi.
47221         * doc/posix-functions/strncasecmp_l.texi: Renamed from
47222         doc/glibc-functions/strncasecmp_l.texi.
47223         * doc/posix-functions/strndup.texi: Renamed from
47224         doc/glibc-functions/strndup.texi.
47225         * doc/posix-functions/strnlen.texi: Renamed from
47226         doc/glibc-functions/strnlen.texi.
47227         * doc/posix-functions/strsignal.texi: Renamed from
47228         doc/glibc-functions/strsignal.texi.
47229         * doc/posix-functions/strxfrm_l.texi: Renamed from
47230         doc/glibc-functions/strxfrm_l.texi.
47231         * doc/posix-functions/timer_gettime.texi: Renamed from
47232         doc/glibc-functions/timer_gettime.texi.
47233         * doc/posix-functions/tolower_l.texi: Renamed from
47234         doc/glibc-functions/tolower_l.texi.
47235         * doc/posix-functions/toupper_l.texi: Renamed from
47236         doc/glibc-functions/toupper_l.texi.
47237         * doc/posix-functions/towctrans_l.texi: Renamed from
47238         doc/glibc-functions/towctrans_l.texi.
47239         * doc/posix-functions/towlower_l.texi: Renamed from
47240         doc/glibc-functions/towlower_l.texi.
47241         * doc/posix-functions/towupper_l.texi: Renamed from
47242         doc/glibc-functions/towupper_l.texi.
47243         * doc/posix-functions/uselocale.texi: Renamed from
47244         doc/glibc-functions/uselocale.texi.
47245         * doc/posix-functions/vdprintf.texi: Renamed from
47246         doc/glibc-functions/vdprintf.texi.
47247         * doc/posix-functions/wcpcpy.texi:
47248         Renamed from doc/glibc-functions/wcpcpy.texi.
47249         * doc/posix-functions/wcpncpy.texi: Renamed from
47250         doc/glibc-functions/wcpncpy.texi.
47251         * doc/posix-functions/wcscasecmp.texi: Renamed from
47252         doc/glibc-functions/wcscasecmp.texi.
47253         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
47254         doc/glibc-functions/wcscasecmp_l.texi.
47255         * doc/posix-functions/wcscoll_l.texi: Renamed from
47256         doc/glibc-functions/wcscoll_l.texi.
47257         * doc/posix-functions/wcsdup.texi: Renamed from
47258         doc/glibc-functions/wcsdup.texi.
47259         * doc/posix-functions/wcsncasecmp.texi: Renamed from
47260         doc/glibc-functions/wcsncasecmp.texi.
47261         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
47262         doc/glibc-functions/wcsncasecmp_l.texi.
47263         * doc/posix-functions/wcsnlen.texi: Renamed from
47264         doc/glibc-functions/wcsnlen.texi.
47265         * doc/posix-functions/wcsnrtombs.texi: Renamed from
47266         doc/glibc-functions/wcsnrtombs.texi.
47267         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
47268         doc/glibc-functions/wcsxfrm_l.texi.
47269         * doc/posix-functions/wctrans_l.texi: Renamed from
47270         doc/glibc-functions/wctrans_l.texi.
47271         * doc/posix-functions/wctype_l.texi: Renamed from
47272         doc/glibc-functions/wctype_l.texi.
47273         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47274         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
47275         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
47276         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
47277         these subsections.
47278         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
47279         Remove sections.
47280
47281 2008-12-14  Bruno Haible  <bruno@clisp.org>
47282
47283         Update doc for POSIX:2008.
47284         * doc/posix-functions/*.texi: Update URL of POSIX specification.
47285
47286 2008-12-14  Bruno Haible  <bruno@clisp.org>
47287
47288         Update doc for POSIX:2008.
47289         * doc/pastposix-functions/bcmp.texi: Renamed from
47290         doc/posix-functions/bcmp.texi.
47291         * doc/pastposix-functions/bcopy.texi: Renamed from
47292         doc/posix-functions/bcopy.texi.
47293         * doc/pastposix-functions/bsd_signal.texi: Renamed from
47294         doc/posix-functions/bsd_signal.texi.
47295         * doc/pastposix-functions/bzero.texi: Renamed from
47296         doc/posix-functions/bzero.texi.
47297         * doc/pastposix-functions/ecvt.texi: Renamed from
47298         doc/posix-functions/ecvt.texi.
47299         * doc/pastposix-functions/fcvt.texi: Renamed from
47300         doc/posix-functions/fcvt.texi.
47301         * doc/pastposix-functions/ftime.texi: Renamed from
47302         doc/posix-functions/ftime.texi.
47303         * doc/pastposix-functions/gcvt.texi: Renamed from
47304         doc/posix-functions/gcvt.texi.
47305         * doc/pastposix-functions/getcontext.texi: Renamed from
47306         doc/posix-functions/getcontext.texi.
47307         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
47308         doc/posix-functions/gethostbyaddr.texi.
47309         * doc/pastposix-functions/gethostbyname.texi: Renamed from
47310         doc/posix-functions/gethostbyname.texi.
47311         * doc/pastposix-functions/getwd.texi: Renamed from
47312         doc/posix-functions/getwd.texi.
47313         * doc/pastposix-functions/h_errno.texi: Renamed from
47314         doc/posix-functions/h_errno.texi.
47315         * doc/pastposix-functions/index.texi: Renamed from
47316         doc/posix-functions/index.texi.
47317         * doc/pastposix-functions/makecontext.texi: Renamed from
47318         doc/posix-functions/makecontext.texi.
47319         * doc/pastposix-functions/mktemp.texi: Renamed from
47320         doc/posix-functions/mktemp.texi.
47321         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
47322         doc/posix-functions/pthread_attr_getstackaddr.texi.
47323         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
47324         doc/posix-functions/pthread_attr_setstackaddr.texi.
47325         * doc/pastposix-functions/rindex.texi: Renamed from
47326         doc/posix-functions/rindex.texi.
47327         * doc/pastposix-functions/scalb.texi: Renamed from
47328         doc/posix-functions/scalb.texi.
47329         * doc/pastposix-functions/setcontext.texi: Renamed from
47330         doc/posix-functions/setcontext.texi.
47331         * doc/pastposix-functions/swapcontext.texi: Renamed from
47332         doc/posix-functions/swapcontext.texi.
47333         * doc/pastposix-functions/ualarm.texi: Renamed from
47334         doc/posix-functions/ualarm.texi.
47335         * doc/pastposix-functions/usleep.texi: Renamed from
47336         doc/posix-functions/usleep.texi.
47337         * doc/pastposix-functions/vfork.texi: Renamed from
47338         doc/posix-functions/vfork.texi.
47339         * doc/pastposix-functions/wcswcs.texi: Renamed from
47340         doc/posix-functions/wcswcs.texi.
47341         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
47342         (Function Substitutes): Update.
47343
47344 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47345
47346         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
47347         m4/strerror.m4.
47348
47349 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47350             Bruno Haible  <bruno@clisp.org>
47351
47352         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
47353
47354 2008-12-13  Bruno Haible  <bruno@clisp.org>
47355
47356         * modules/strtoull (Depends-on): Remove unistd.
47357
47358 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47359
47360         * modules/strtoull (Depends-on): Add stdlib.
47361
47362 2008-12-11  Simon Josefsson  <simon@josefsson.org>
47363
47364         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
47365
47366 2008-12-10  Jim Meyering  <meyering@redhat.com>
47367
47368         gl_ASSERT: don't say assertions are disabled when they're not
47369         * m4/assert.m4 (gl_ASSERT): Do not make configure report
47370         "checking whether to enable assertions... no", when they are in
47371         fact enabled.  This is solely a bug in the output of configure.
47372         In spite of saying "no", NDEBUG was not defined in that case.
47373         Also, as noted by Eric Blake, leave assertions enabled upon
47374         --enable-assert=INVALID.
47375
47376 2008-12-10  Bruno Haible  <bruno@clisp.org>
47377
47378         Change MODULES.html to refer to POSIX:2008 where possible.
47379         * MODULES.html.sh (POSIX2008_URL): New variable.
47380         (posix_headers): Remove sys/timeb, ucontext.
47381         (posix2001_headers): New variable.
47382         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
47383         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
47384         index, makecontext, mktemp, pthread_attr_getstackaddr,
47385         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
47386         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
47387         (posix2001_functions): New variable.
47388         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
47389         otherwise.
47390
47391 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47392
47393         add missing include to parse-duration.c
47394         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
47395         * modules/parse-duration (Depends-on): Add xalloc.
47396
47397         fix sed script reading maint.mk
47398         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
47399         (syntax-check-rules): Use it.
47400
47401 2008-12-09  Bruno Haible  <bruno@clisp.org>
47402
47403         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
47404         MacOS X 10.4/PowerPC.
47405         Reported by Simon Josefsson.
47406
47407 2008-12-08  Jim Meyering  <meyering@redhat.com>
47408
47409         work around mingw's lack of some S_IF definitions
47410         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
47411         Reported by Simon Josefsson.
47412
47413 2008-12-08  Bruno Haible  <bruno@clisp.org>
47414
47415         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
47416         applied to variables. Needed on MacOS X 10.4/PowerPC.
47417         Reported by Simon Josefsson.
47418
47419 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
47420         and Eric Blake  <ebb9@byu.net>
47421
47422         assert: honor --enable-assert
47423         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
47424         order to honor --enable-assert, rather than treating it as a
47425         synonym for --disable-assert.
47426
47427 2008-12-08  Jim Meyering  <meyering@redhat.com>
47428
47429         * lib/posixtm.c: Remove now-useless declaration of mktime.
47430
47431         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
47432
47433 2008-12-07  Bruno Haible  <bruno@clisp.org>
47434
47435         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
47436         test_once): Mark functions as static.
47437         * tests/test-tls.c (test_tls): Likewise.
47438
47439 2008-12-07  Bruno Haible  <bruno@clisp.org>
47440
47441         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
47442         iconv_register_autodetect.
47443
47444 2008-12-07  Jim Meyering  <meyering@redhat.com>
47445
47446         posixtm.c: avoid a warning
47447         * lib/posixtm.c (posixtime): Don't initialize tm0.
47448         It's no longer needed to placate gcc4's -Wuninitialized,
47449         and the attempt to placate would elicit a new warning.
47450
47451         unicodeio.c: mark unused parameters
47452         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47453         (fallback_failure_callback): Likewise.
47454
47455 2008-12-07  Bruno Haible  <bruno@clisp.org>
47456
47457         * gnulib-tool (func_create_testdir): When building the tests
47458         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
47459         Reported by Simon Josefsson.
47460
47461 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47462
47463         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
47464
47465 2008-12-06  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
47468         Suggested by Eric Blake.
47469
47470 2008-12-06  Bruno Haible  <bruno@clisp.org>
47471
47472         Fix a c-stack test failure on MacOS X.
47473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
47474         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
47475         handler for SIGBUS as well.
47476         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
47477         install a signal handler for SIGBUS as well.
47478         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
47479
47480 2008-12-06  Bruno Haible  <bruno@clisp.org>
47481
47482         Advocacy documentation.
47483         * doc/gnulib-intro.texi (Benefits): New section.
47484         * doc/gnulib.texi: Update.
47485
47486 2008-12-06  Bruno Haible  <bruno@clisp.org>
47487
47488         Document the 'manywarnings' module.
47489         * doc/manywarnings.texi: New file.
47490         * doc/gnulib.texi: Include it.
47491
47492 2008-12-05  Eric Blake  <ebb9@byu.net>
47493
47494         tests: silence some gcc warnings
47495         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
47496         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
47497         type mismatches.
47498
47499 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47500             Bruno Haible  <bruno@clisp.org>
47501
47502         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
47503
47504 2008-11-29  Jim Meyering  <meyering@redhat.com>
47505
47506         unicodeio.c: mark unused parameters
47507         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47508         (fallback_failure_callback): Likewise.
47509
47510         fts: fix a thinko
47511         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
47512         (set_stat_type): Return S_IF*-valued "type" directly.
47513         Prompted by James Youngman's spotting a related bug.
47514         Confirmed by further testing through find.
47515
47516         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
47517         * lib/fts.c (D_TYPE): Define.
47518         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
47519         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47520         (s_ifmt_shift_bits): New function.
47521         (set_stat_type): New function.
47522         (fts_build): When not calling fts_stat, call set_stat_type
47523         to propagate dirent.d_type info to fts_read caller.
47524         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
47525         fts_statp->st_mode type information may be valid.
47526
47527 2008-11-28  Simon Josefsson  <simon@josefsson.org>
47528
47529         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
47530         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
47531         <sds@gnu.org>.
47532
47533 2008-11-20  Bruno Haible  <bruno@clisp.org>
47534
47535         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
47536         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
47537         INCLUDE_NEXT.
47538         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
47539         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
47540         * modules/math (Makefile.am): Substitute
47541         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
47542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47543
47544 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
47545             Bruno Haible  <bruno@clisp.org>
47546
47547         * lib/stdint.in.h: Define all type macros so that their expansion is
47548         a single typedef'ed token. Fixes a compilation failure in Boost which
47549         does "using ::int8_t;".
47550
47551 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47552
47553         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
47554         gl_MANYWARN_ALL_GCC.
47555         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
47556         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
47557         * modules/manywarnings: New file.
47558         * MODULES.html.sh: Mention manywarnings module.
47559
47560 2008-11-18  Bruno Haible  <bruno@clisp.org>
47561
47562         * doc/gnulib-tool.texi (Unit tests): New section.
47563
47564 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47565
47566         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
47567         paths like 'lib/po/foo.po'.
47568
47569 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47570
47571         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
47572         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
47573
47574 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47575
47576         * m4/warnings.m4: Use CPPFLAGS to really check whether the
47577         parameter works.
47578
47579 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47580
47581         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
47582
47583 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47584
47585         * modules/parse-duration-tests: New file.
47586         * tests/test-parse-duration.sh: New file.
47587         * tests/test-parse-duration.c: New file.
47588
47589         New module 'parse-duration'.
47590         * lib/parse-duration.h: New file.
47591         * lib/parse-duration.c: New file.
47592         * modules/parse-duration: New file.
47593
47594 2008-11-17  Bruno Haible  <bruno@clisp.org>
47595
47596         * tests/test-select-out.sh: Comment out the first pipe test.
47597         Reported by Simon Josefsson.
47598
47599 2008-11-17  Bruno Haible  <bruno@clisp.org>
47600
47601         * modules/getaddrinfo (Depends-on): Add servent, hostent.
47602         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
47603         gl_HOSTENT.
47604
47605 2008-11-17  Bruno Haible  <bruno@clisp.org>
47606
47607         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
47608         -lnetwork and -lnet. Needed for Haiku and BeOS.
47609
47610 2008-11-16  Bruno Haible  <bruno@clisp.org>
47611
47612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
47613
47614 2008-11-16  Bruno Haible  <bruno@clisp.org>
47615
47616         Avoid test failure on Haiku.
47617         * tests/test-fsync.c: Include <errno.h>.
47618         (main): Don't require that fsync (0) fails.
47619
47620 2008-11-15  Bruno Haible  <bruno@clisp.org>
47621
47622         New module 'hostent'.
47623         * modules/hostent: New file.
47624         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
47625
47626 2008-11-15  Bruno Haible  <bruno@clisp.org>
47627
47628         New module 'servent'.
47629         * modules/servent: New file.
47630         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
47631
47632 2008-11-15  Bruno Haible  <bruno@clisp.org>
47633
47634         Avoid generating same test program with two different rules.
47635         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
47636         test-frexp to test-frexp-nolibm.
47637         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
47638         test-frexpl to test-frexpl-nolibm.
47639
47640 2008-11-15  Bruno Haible  <bruno@clisp.org>
47641
47642         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
47643         $(FREXPL_LIBM).
47644
47645 2008-11-15  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/netdb.in.h: Activate the definitions also when the system's
47648         <netdb.h> has 'struct addrinfo'.
47649         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
47650         EAI_OVERFLOW or AI_NUMERICSERV.
47651         * doc/posix-headers/netdb.texi: Document the problem.
47652
47653 2008-11-15  Bruno Haible  <bruno@clisp.org>
47654
47655         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47656
47657         Make the 'sched' module work on platforms where <sched.h> exists but
47658         is incomplete (such as Haiku).
47659         * lib/sched.in.h; Include the system's <sched.h> if it exists.
47660         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
47661         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
47662         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
47663         HAVE_STRUCT_SCHED_PARAM.
47664         * modules/sched (Depends-on): Add include_next.
47665         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
47666         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
47667         * doc/posix-headers/sched.texi: Document the issue.
47668
47669 2008-11-13  Jim Meyering  <meyering@redhat.com>
47670
47671         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
47672         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
47673         test would fail due to the difference in the Report bugs to ...
47674         line.  The expected address is empty, "<>", while the actual
47675         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
47676
47677 2008-11-12  Bruno Haible  <bruno@clisp.org>
47678
47679         lstat: don't compile lstat.c on systems lacking lstat
47680         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
47681         which don't have lstat; this is handled by lib/sys_stat.in.h already.
47682         Reported by Daniel P. Berrange via Jim Meyering.
47683
47684 2008-11-12  Jim Meyering  <meyering@redhat.com>
47685
47686         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
47687
47688 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47689
47690         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
47691         instead.
47692
47693 2008-11-12  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/unicodeio.c: Include unistr.h.
47696         (utf8_wctomb): Remove function.
47697         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
47698
47699 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47700
47701         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
47702         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
47703         <bruno@clisp.org>.
47704         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
47705
47706 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47707
47708         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
47709         * doc/gnulib.texi: Add section for warnings.
47710
47711 2008-11-11  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/sockets.h: Add a comment.
47714
47715 2008-11-11  Karl Berry  <karl@gnu.org>
47716
47717         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
47718
47719 2008-11-11  Eric Blake  <ebb9@byu.net>
47720
47721         fdl.texi: avoid git symlinks
47722         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
47723
47724 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47725
47726         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
47727
47728 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47729
47730         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
47731         (gl_WARN_ADD): Substitute $2 if literal.
47732
47733 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47734
47735         * m4/warning.m4: Remove.
47736
47737 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47738
47739         * m4/warnings.m4: Almost complete rewrite. :-)
47740
47741 2008-11-10  Simon Josefsson  <simon@josefsson.org>
47742
47743         * modules/warnings: New module.
47744         * m4/warnings.m4: New file.
47745         * MODULES.html.sh: Mention warnings module.
47746         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
47747         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47748
47749 2008-11-10  Eric Blake  <ebb9@byu.net>
47750
47751         fdl.texi: make a symlink to the latest version
47752         * doc/standards.texi: Revert today's earlier change.
47753         * doc/fdl-1.2.texi: Rename from old fdl.texi...
47754         * doc/fdl.texi: ...and replace this with a symlink to the newer
47755         fdl-1.3.texi.
47756
47757 2008-11-10  Bruno Haible  <bruno@clisp.org>
47758
47759         * tests/test-select-fd.c (main): Accept the result file name as fourth
47760         argument.
47761         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
47762         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
47763
47764 2008-11-10  Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
47767         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
47768         as autoconf-substituted macros.
47769         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
47770         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
47771         gl_NETDB_H_DEFAULTS. Set these variables.
47772         * modules/netdb (Makefile.am): Substitute these variables.
47773
47774 2008-11-10  Eric Blake  <ebb9@byu.net>
47775
47776         standards.texi: include correct file for FDL 1.3
47777         * doc/standards.texi (GNU Free Documentation License): Change
47778         include file to pull in FDL 1.3, not 1.2.
47779
47780         fdl.texi: revert accidental change to license
47781         * doc/fdl.texi: This is FDL 1.2, not 1.3.
47782
47783 2008-11-10  Bruno Haible  <bruno@clisp.org>
47784
47785         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
47786         cross-compiling guesses also when the native compile gives no result.
47787
47788 2008-11-10  Bruno Haible  <bruno@clisp.org>
47789
47790         * lib/spawni.c (__spawni): Force variable into the stack.
47791
47792 2008-11-10  Bruno Haible  <bruno@clisp.org>
47793
47794         Add support for Haiku.
47795         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
47796         glibc and BeOS, but also on Haiku.
47797         * lib/fpurge.c (fpurge): Likewise.
47798         * lib/freadable.c (freadable): Likewise.
47799         * lib/freadahead.c (freadahead): Likewise.
47800         * lib/freading.c (freading): Likewise.
47801         * lib/freadptr.c (freadptr): Likewise.
47802         * lib/freadseek.c (freadptrinc): Likewise.
47803         * lib/fseeko.c (rpl_fseeko): Likewise.
47804         * lib/fseterr.c (fseterr): Likewise.
47805         * lib/fwritable.c (fwritable): Likewise.
47806         * lib/fwriting.c (fwriting): Likewise.
47807         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47808
47809 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47810
47811         * lib/config.charset: Treat Haiku like BeOS.
47812
47813 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47814
47815         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47816         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47817
47818 2008-11-08  Bruno Haible  <bruno@clisp.org>
47819
47820         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47821         AC_CACHE_CHECK.
47822
47823 2008-11-08  Bruno Haible  <bruno@clisp.org>
47824
47825         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47826
47827 2008-11-08  Bruno Haible  <bruno@clisp.org>
47828
47829         * tests/test-select-fd.c: New file.
47830         * tests/test-select-in.sh: New file.
47831         * tests/test-select-out.sh: New file.
47832         * tests/test-select-stdin.c: New file.
47833         * modules/select-tests (Files): Add the new files.
47834         (Depends-on): Add gettimeofday.
47835         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47836         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47837         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47838
47839 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47840             Bruno Haible  <bruno@clisp.org>
47841
47842         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47843
47844 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47845
47846         * build-aux/pmccabe2html: Added support for C++ source files.
47847
47848 2008-11-05  Ben Pfaff  <blp@gnu.org>
47849
47850         Fix lib/close.c build on Windows.
47851         * modules/close (Files): Add lib/w32sock.h.
47852
47853 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47854
47855         Accept Bison's NEWS format.
47856         * build-aux/announce-gen (print_news_deltas): Tweak
47857         $re_prefix.
47858
47859 2008-11-04  Bruno Haible  <bruno@clisp.org>
47860
47861         * modules/random_r (Maintainer): Add glibc.
47862
47863 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47864
47865         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47866         by karl@freefriends.org (Karl Berry).
47867         * doc/alloca.texi: Likewise.
47868         * doc/c-ctype.texi: Likewise.
47869         * doc/c-strcase.texi: Likewise.
47870         * doc/c-strcaseeq.texi: Likewise.
47871         * doc/c-strcasestr.texi: Likewise.
47872         * doc/c-strstr.texi: Likewise.
47873         * doc/c-strtod.texi: Likewise.
47874         * doc/c-strtold.texi: Likewise.
47875         * doc/ctime.texi: Likewise.
47876         * doc/error.texi: Likewise.
47877         * doc/fdl.texi: Likewise.
47878         * doc/gcd.texi: Likewise.
47879         * doc/getdate.texi: Likewise.
47880         * doc/gnulib-intro.texi: Likewise.
47881         * doc/gnulib-tool.texi: Likewise.
47882         * doc/gnulib.texi: Likewise.
47883         * doc/inet_ntoa.texi: Likewise.
47884         * doc/maintain.texi: Likewise.
47885         * doc/make-stds.texi: Likewise.
47886         * doc/quote.texi: Likewise.
47887         * doc/regexprops-generic.texi: Likewise.
47888         * doc/standards.texi: Likewise.
47889         * doc/verify.texi: Likewise.
47890         * doc/visibility.texi: Likewise.
47891         * doc/gnulib.texi (GNU Free Documentation License): Include
47892         fdl-1.3.texi instead of fdl.texi.
47893
47894 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47895
47896         * doc/fdl-1.3.texi: New file, from
47897         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47898         * modules/fdl-1.3: Add.
47899         * MODULES.html.sh: Add fdl-1.3.
47900
47901 2008-11-03  Bruno Haible  <bruno@clisp.org>
47902
47903         Make determination of absolute name of header file work with AIX xlc.
47904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47905         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47906         preprocessing.
47907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47908         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47909
47910 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47911
47912         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47913         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47914         <ludo@gnu.org>.
47915
47916 2008-11-02  Bruno Haible  <bruno@clisp.org>
47917
47918         Mark 'strpbrk' obsolete.
47919         * modules/strpbrk (Status, Notice): New sections.
47920         * modules/strtok_r (Depends-on): Add strpbrk.
47921
47922 2008-11-02  Bruno Haible  <bruno@clisp.org>
47923
47924         Mark 'strdup' obsolete.
47925         * modules/strdup (Status, Notice): New sections.
47926         * modules/findprog (Depends-on): Add strdup.
47927         * modules/getaddrinfo (Depends-on): Likewise.
47928         * modules/localename (Depends-on): Likewise.
47929         * modules/relocatable-lib (Depends-on): Likewise.
47930         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47931         * modules/relocatable-prog (Depends-on): Likewise.
47932         * modules/trim (Depends-on): Likewise.
47933         * modules/unictype/gen-ctype (Depends-on): Likewise.
47934         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47935
47936 2008-11-02  Bruno Haible  <bruno@clisp.org>
47937
47938         Mark 'strcspn' obsolete.
47939         * modules/strcspn (Status, Notice): New sections.
47940
47941 2008-11-02  Bruno Haible  <bruno@clisp.org>
47942
47943         Mark 'rmdir' obsolete.
47944         * modules/rmdir (Status, Notice): New sections.
47945         * modules/clean-temp (Depends-on): Add rmdir.
47946         * modules/openat (Depends-on): Likewise.
47947
47948 2008-11-02  Bruno Haible  <bruno@clisp.org>
47949
47950         Mark 'raise' obsolete.
47951         * modules/raise (Status, Notice): New sections.
47952         (Include): Specify <signal.h>.
47953         * modules/stdio (Depends-on): Add raise.
47954         * modules/write (Depends-on): Likewise.
47955
47956 2008-11-02  Bruno Haible  <bruno@clisp.org>
47957
47958         Mark 'memset' obsolete.
47959         * modules/memset (Status, Notice): New sections.
47960
47961 2008-11-02  Bruno Haible  <bruno@clisp.org>
47962
47963         Mark 'memmove' obsolete.
47964         * modules/memmove (Status, Notice): New sections.
47965         * modules/argp (Depends-on): Add memmove.
47966         * modules/argz (Depends-on): Likewise.
47967         * modules/canonicalize (Depends-on): Likewise.
47968         * modules/canonicalize-lgpl (Depends-on): Likewise.
47969         * modules/fts (Depends-on): Likewise.
47970         * modules/getcwd (Depends-on): Likewise.
47971         * modules/human (Depends-on): Likewise.
47972         * modules/regex (Depends-on): Likewise.
47973         * modules/striconveh (Depends-on): Likewise.
47974         * modules/trim (Depends-on): Likewise.
47975         * modules/unistr/u8-move (Depends-on): Likewise.
47976         * modules/unistr/u16-move (Depends-on): Likewise.
47977         * modules/unistr/u32-move (Depends-on): Likewise.
47978
47979 2008-11-02  Bruno Haible  <bruno@clisp.org>
47980
47981         Mark 'memcpy' obsolete.
47982         * modules/memcpy (Status, Notice): New sections.
47983
47984 2008-11-02  Bruno Haible  <bruno@clisp.org>
47985
47986         Mark 'memcmp' obsolete.
47987         * modules/memcmp (Status, Notice): New sections.
47988         * modules/argmatch (Depends-on): Add memchr.
47989         * modules/backupfile (Depends-on): Likewise.
47990         * modules/c-strcasestr (Depends-on): Likewise.
47991         * modules/crypto/des (Depends-on): Likewise.
47992         * modules/csharpcomp (Depends-on): Likewise.
47993         * modules/fnmatch (Depends-on): Likewise.
47994         * modules/git-merge-changelog (Depends-on): Likewise.
47995         * modules/isnand (Depends-on): Likewise.
47996         * modules/isnand-nolibm (Depends-on): Likewise.
47997         * modules/isnanf (Depends-on): Likewise.
47998         * modules/isnanf-nolibm (Depends-on): Likewise.
47999         * modules/isnanl (Depends-on): Likewise.
48000         * modules/isnanl-nolibm (Depends-on): Likewise.
48001         * modules/mbchar (Depends-on): Likewise.
48002         * modules/memcoll (Depends-on): Likewise.
48003         * modules/quotearg (Depends-on): Likewise.
48004         * modules/regex (Depends-on): Likewise.
48005         * modules/relocatable-prog (Depends-on): Likewise.
48006         * modules/same (Depends-on): Likewise.
48007         * modules/signbit (Depends-on): Likewise.
48008         * modules/strcasestr-simple (Depends-on): Likewise.
48009         * modules/unictype/gen-ctype (Depends-on): Likewise.
48010         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48011         * modules/uniname/uniname (Depends-on): Likewise.
48012         * modules/unistr/u8-cmp (Depends-on): Likewise.
48013
48014 2008-11-02  Bruno Haible  <bruno@clisp.org>
48015
48016         Mark 'memchr' obsolete.
48017         * modules/memchr (Status, Notice): New sections.
48018         * modules/argp (Depends-on): Add memchr.
48019         * modules/base64 (Depends-on): Likewise.
48020         * modules/c-strcasestr (Depends-on): Likewise.
48021         * modules/chdir-long (Depends-on): Likewise.
48022         * modules/fnmatch (Depends-on): Likewise.
48023         * modules/getsubopt (Depends-on): Likewise.
48024         * modules/git-merge-changelog (Depends-on): Likewise.
48025         * modules/glob (Depends-on): Likewise.
48026         * modules/strcasestr-simple (Depends-on): Likewise.
48027         * modules/strnlen (Depends-on): Likewise.
48028
48029 2008-11-02  Bruno Haible  <bruno@clisp.org>
48030
48031         Mark 'atexit' obsolete.
48032         * modules/atexit (Status, Notice): New sections.
48033         * modules/chdir-long (Depends-on): Add atexit.
48034         * modules/wait-process (Depends-on): Likewise.
48035
48036 2008-11-02  Bruno Haible  <bruno@clisp.org>
48037
48038         * gnulib-tool: New option --with-obsolete.
48039         (func_usage): Document it.
48040         (func_modules_transitive_closure): Drop obsolete dependencies if
48041         incobsolete is not true.
48042         (func_import): Read and save the incobsolete variable to the cache.
48043
48044 2008-11-02  Bruno Haible  <bruno@clisp.org>
48045
48046         * modules/TEMPLATE-EXTENDED: New field 'Status'.
48047         * gnulib-tool: New option --extract-status.
48048         (func_usage): Document it.
48049         (sed_extract_prog): Recognize it.
48050         (func_get_status): New function.
48051
48052 2008-10-30  Simon Josefsson  <simon@josefsson.org>
48053
48054         * modules/sockets (License): Change from LGPL to LGPLv2+.
48055
48056 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48057
48058         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
48059
48060 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48061
48062         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48063         Mention times and sys_times.
48064         * modules/sys_times, modules/sys_times-tests: New modules.
48065         * modules/times, modules/times-tests: Likewise
48066         * m4/sys_times_h.m4: New file.
48067         * lib/sys_times.in.h: Likewise
48068         * lib/times.c: Likewise.
48069         * tests/test-sys_times.c: Likewise.
48070         * tests/test-times.c: Likewise.
48071         * doc/posix-headers/sys_times.texi: Update.
48072         * doc/posix-functions/times.texi: Update.
48073
48074 2008-10-28  Jim Meyering  <meyering@redhat.com>
48075
48076         * modules/tempname (Depends-on): Add lstat.
48077
48078         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
48079
48080 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48081
48082         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
48083         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
48084         using idiom used elsewhere in gnulib.
48085
48086 2008-10-27  Jim Meyering  <meyering@redhat.com>
48087
48088         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
48089
48090 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48091
48092         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
48093         TESTS_ENVIRONMENT, for shell scripts that needs to call built
48094         programs.
48095         * tests/test-argp-2.sh: Use $EXEEXT when needed.
48096
48097 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48098
48099         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
48100
48101 2008-10-27  Bruno Haible  <bruno@clisp.org>
48102
48103         * tests/test-lstat.c: Include <stdio.h>.
48104
48105 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48106
48107         * modules/lstat-tests: New module.
48108         * tests/test-lstat.c: New file.
48109
48110 2008-10-26  Jim Meyering  <meyering@redhat.com>
48111
48112         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
48113
48114 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48115             Bruno Haible  <bruno@clisp.org>
48116
48117         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
48118         * modules/configmake (Include): Add a note that the include must come
48119         after all system headers.
48120         * lib/javaversion.c: Include configmake.h after all other includes.
48121
48122 2008-10-26  Bruno Haible  <bruno@clisp.org>
48123
48124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
48125         HAVE_STRUCT_RANDOM_DATA to 1.
48126         (gl_STDLIB_H): Simplify.
48127
48128 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48129
48130         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
48131         substitute HAVE_STRUCT_RANDOM_DATA.
48132         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
48133         random_data.
48134         * modules/stdlib (Makefile.am): Substitute
48135         HAVE_STRUCT_RANDOM_DATA.
48136
48137 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48138
48139         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
48140         * doc/gnulib-intro.texi (Copyright): Likewise.
48141
48142 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48143
48144         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
48145         findings.
48146
48147 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
48148             Bruno Haible  <bruno@clisp.org>
48149
48150         * lib/unistd.in.h: Include <winsock2.h>.
48151         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
48152         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
48153         Provide dummy declarations.
48154         (gethostname): Override.
48155         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
48156         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
48157         gl_PREREQ_SYS_H_WINSOCK2.
48158         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
48159         * doc/posix-functions/gethostname.texi: More details.
48160
48161 2008-10-25  Bruno Haible  <bruno@clisp.org>
48162
48163         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48164         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
48165         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
48166
48167         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
48168         here ...
48169         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
48170         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
48171         gl_UNISTD_H_DEFAULTS.
48172
48173 2008-10-25  Eric Blake  <ebb9@byu.net>
48174
48175         signbit: avoid spurious compiler failure
48176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
48177         declarations inside function.
48178
48179 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48180             Bruno Haible  <bruno@clisp.org>
48181
48182         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
48183         * modules/random_r (Depends-on): Add stdint.
48184
48185 2008-10-24  Bruno Haible  <bruno@clisp.org>
48186
48187         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
48188         Eggert.
48189         * modules/strerror (License): Likewise.
48190
48191 2008-10-24  Jim Meyering  <meyering@redhat.com>
48192
48193         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
48194         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
48195
48196 2008-10-24  Eric Blake  <ebb9@byu.net>
48197
48198         getgroups: fix compilation when getgroups is available
48199         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
48200         but with <config.h> override of getgroups disabled.
48201
48202 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48203
48204         * doc/gnulib.texi (Header files): Add note about C++ problems.
48205         Explained by Bruno Haible <bruno@clisp.org>.
48206
48207 2008-10-23  Bruno Haible  <bruno@clisp.org>
48208
48209         Define a dummy SA_NODEFER macro on Interix.
48210         * lib/signal.in.h (SA_NODEFER): Define fallback.
48211         Reported by Aleksey Cheusov <cheusov@tut.by> via
48212         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
48213
48214 2008-10-23  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/freadahead (License): Change to LGPLv2+.
48217         Suggested by Simon Josefsson.
48218
48219 2008-10-23  Jim Meyering  <meyering@redhat.com>
48220
48221         random_r: new module
48222         * modules/random_r: New file.
48223         * m4/random_r.m4: New file.
48224         * lib/random_r.c: New file, from glibc.
48225         * modules/random_r-tests: New file.
48226         * tests/test-random_r.c: New file.
48227         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
48228          Declare.
48229         (RAND_MAX): Define.
48230         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
48231         * modules/stdlib: Substitute them, too.
48232         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
48233         * doc/glibc-functions/initstate_r.texi: Mention the new module.
48234         * doc/glibc-functions/random_r.texi: Likewise.
48235         * doc/glibc-functions/setstate_r.texi: Likewise.
48236         * doc/glibc-functions/srandom_r.texi: Likewise.
48237         * config/srclist.txt: Mention it.
48238
48239 2008-10-23  David Lutterkort  <lutter@redhat.com>
48240
48241         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
48242         link requirement
48243
48244 2008-10-23  Jim Meyering  <meyering@redhat.com>
48245
48246         selinux-h: mark parameters of stub functions as intentionally unused
48247         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
48248         * lib/se-context.in.h: Likewise.
48249
48250 2008-10-22  Simon Josefsson  <simon@josefsson.org>
48251
48252         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
48253
48254 2008-10-22  Simon Josefsson  <simon@josefsson.org>
48255
48256         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
48257
48258 2008-10-22  Eric Blake  <ebb9@byu.net>
48259
48260         glthread/thread: avoid compiler warning
48261         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
48262         Add unreachable abort to silence compiler.
48263
48264 2008-10-22  Eric Blake  <ebb9@byu.net>
48265
48266         netdb: also supply struct addrinfo for cygwin 1.5.x
48267         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
48268         older cygwin.
48269         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
48270         cygwin.
48271         * doc/posix-headers/netdb.texi (netdb.h): Document this.
48272
48273 2008-10-22  Bruno Haible  <bruno@clisp.org>
48274
48275         * users.txt: Update entry about pspp.
48276
48277 2008-10-21  Bruno Haible  <bruno@clisp.org>
48278
48279         Simplification.
48280         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
48281         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
48282
48283         Simplification.
48284         * lib/ioctl.c (ioctl): Don't undefine.
48285         * lib/socket.c (socket): Don't undefine.
48286
48287         Remove unused module indicator macros.
48288         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
48289         GNULIB_$1 as a C macro.
48290
48291         * doc/posix-functions/close.texi: Undo last change.
48292         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
48293         Windows platforms.
48294
48295 2008-10-21  Bruno Haible  <bruno@clisp.org>
48296
48297         Add gethostname() declaration to <unistd.h>.
48298         * lib/unistd.in.h (gethostname): New declaration.
48299         * lib/gethostname.c: Include <unistd.h>.
48300         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
48301         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
48302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
48303         and HAVE_GETHOSTNAME.
48304         * modules/gethostname (Depends-on): Add unistd.
48305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48306         (Include): Specify <unistd.h>.
48307         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
48308         HAVE_GETHOSTNAME.
48309         * tests/test-gethostname.c: Include <unistd.h> first.
48310
48311 2008-10-21  Bruno Haible  <bruno@clisp.org>
48312
48313         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
48314         * modules/select-tests (Depends-on): Likewise.
48315         Reported by Simon Josefsson.
48316
48317 2008-10-21  Simon Josefsson  <simon@josefsson.org>
48318
48319         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
48320         * lib/accept.c: New file, based on winsock.c.
48321         * lib/bind.c: New file, based on winsock.c.
48322         * lib/connect.c: New file, based on winsock.c.
48323         * lib/getpeername.c: New file, based on winsock.c.
48324         * lib/getsockname.c: New file, based on winsock.c.
48325         * lib/getsockopt.c: New file, based on winsock.c.
48326         * lib/ioctl.c: New file, based on winsock.c.
48327         * lib/listen.c: New file, based on winsock.c.
48328         * lib/recv.c: New file, based on winsock.c.
48329         * lib/recvfrom.c: New file, based on winsock.c.
48330         * lib/send.c: New file, based on winsock.c.
48331         * lib/sendto.c: New file, based on winsock.c.
48332         * lib/setsockopt.c: New file, based on winsock.c.
48333         * lib/shutdown.c: New file, based on winsock.c.
48334         * lib/socket.c: New file, based on winsock.c.
48335         * lib/w32sock.h: New file, based on winsock.c.
48336         * lib/winsock.c: Remove file.
48337         * modules/accept: Likewise.
48338         * modules/bind: Likewise.
48339         * modules/connect: Likewise.
48340         * modules/getpeername: Likewise.
48341         * modules/getsockname: Likewise.
48342         * modules/getsockopt: Likewise.
48343         * modules/ioctl: Likewise.
48344         * modules/listen: Likewise.
48345         * modules/recv: Likewise.
48346         * modules/recvfrom: Likewise.
48347         * modules/send: Likewise.
48348         * modules/sendto: Likewise.
48349         * modules/setsockopt: Likewise.
48350         * modules/shutdown: Likewise.
48351         * modules/socket: Use socket.c instead of winsock.c.
48352         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
48353         * doc/posix-functions/accept.texi: Doc fix.
48354         * doc/posix-functions/bind.texi: Doc fix.
48355         * doc/posix-functions/close.texi: Doc fix.
48356         * doc/posix-functions/connect.texi: Doc fix.
48357         * doc/posix-functions/getpeername.texi: Doc fix.
48358         * doc/posix-functions/getsockname.texi: Doc fix.
48359         * doc/posix-functions/getsockopt.texi: Doc fix.
48360         * doc/posix-functions/ioctl.texi: Doc fix.
48361         * doc/posix-functions/listen.texi: Doc fix.
48362         * doc/posix-functions/recv.texi: Doc fix.
48363         * doc/posix-functions/recvfrom.texi: Doc fix.
48364         * doc/posix-functions/send.texi: Doc fix.
48365         * doc/posix-functions/sendto.texi: Doc fix.
48366         * doc/posix-functions/setsockopt.texi: Doc fix.
48367         * doc/posix-functions/shutdown.texi: Doc fix.
48368         * doc/posix-functions/socket.texi: Doc fix.
48369
48370 2008-10-20  Bruno Haible  <bruno@clisp.org>
48371
48372         Take into account the role of SIGABRT_COMPAT on Windows 2008.
48373         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
48374         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
48375         as an alias for SIGABRT.
48376         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
48377         (sigaction): Map it to SIGABRT.
48378         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
48379
48380 2008-10-20  Bruno Haible  <bruno@clisp.org>
48381
48382         * lib/fts.c: Don't include lstat.h.
48383         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
48384
48385         Move the lstat() declaration to <sys/stat.h>.
48386         * lib/lstat.h: Remove file.
48387         * lib/sys_stat.in.h: Add special invocation convention.
48388         (lstat): New declaration.
48389         * lib/lstat.c (orig_lstat): New function.
48390         (rpl_lstat): Use orig_lstat instead of lstat.
48391         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
48392         AC_C_INLINE. Set REPLACE_LSTAT.
48393         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
48394         and REPLACE_LSTAT.
48395         * modules/lstat (Files): Remove lib/lstat.h.
48396         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48397         (Include): Specify <sys/stat.h> instead of lstat.h.
48398         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
48399         REPLACE_LSTAT.
48400         * NEWS: Mention the change.
48401
48402 2008-10-20  Bruno Haible  <bruno@clisp.org>
48403
48404         * modules/posix_spawn-tests: New file.
48405         * tests/test-posix_spawn3.c: New file.
48406
48407 2008-10-20  Bruno Haible  <bruno@clisp.org>
48408
48409         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
48410         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48411         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
48412         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48413         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
48414
48415 2008-10-20  Bruno Haible  <bruno@clisp.org>
48416
48417         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
48418         of posix_spawn on AIX 5.3.
48419
48420 2008-10-20  Bruno Haible  <bruno@clisp.org>
48421
48422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
48423
48424 2008-10-20  Bruno Haible  <bruno@clisp.org>
48425
48426         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
48427         of AC_LANG_PROGRAM.
48428
48429 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48430
48431         * lib/netdb.in.h: Don't define GNU specific constants until they
48432         are supported or needed.  Reported by Bruno Haible
48433         <bruno@clisp.org>.
48434
48435 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48436
48437         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
48438
48439 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48440
48441         * lib/getaddrinfo.h: Remove file.
48442         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
48443         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
48444         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
48445         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
48446         * modules/netdb: Substitute GNULIB_GETADDRINFO.
48447         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
48448         * tests/test-getaddrinfo.c: Likewise.
48449         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
48450         * NEWS: Mention change.
48451
48452 2008-10-19  Bruno Haible  <bruno@clisp.org>
48453
48454         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
48455
48456 2008-10-19  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/wait-process.c: Include simply <sys/wait.h>.
48459         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
48460         WIFSTOPPED): Remove fallback definitions.
48461         * modules/wait-process (Depends-on): Add sys_wait.
48462
48463         New module 'sys_wait'.
48464         * modules/sys_wait: New file.
48465         * lib/sys_wait.in.h: New file, partially copied from
48466         lib/wait-process.c.
48467         * m4/sys_wait_h.m4: New file.
48468         * doc/posix-headers/sys_wait.texi: Mention the new module.
48469
48470 2008-10-19  Bruno Haible  <bruno@clisp.org>
48471
48472         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
48473
48474 2008-10-19  Bruno Haible  <bruno@clisp.org>
48475
48476         Assume that waitpid() fills an 'int' status, not a 'union wait'.
48477         * lib/wait-process.c (WAIT_T): Remove type.
48478         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
48479         (wait_subprocess): Update.
48480
48481 2008-10-19  Bruno Haible  <bruno@clisp.org>
48482
48483         New module 'atoll'.
48484         * modules/atoll: New file.
48485         * lib/stdlib.in.h (atoll): New declaration.
48486         * lib/atoll.c: New file, from glibc with modifications.
48487         * m4/atoll.m4: New file.
48488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
48489         HAVE_ATOLL.
48490         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
48491         * doc/posix-functions/atoll.texi: Mention the new module.
48492
48493 2008-10-19  Bruno Haible  <bruno@clisp.org>
48494
48495         Add strtoull() declaration to <stdlib.h>.
48496         * lib/stdlib.in.h (strtoull): New declaration.
48497         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48498         Set HAVE_STRTOULL.
48499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
48500         HAVE_STRTOULL.
48501         * modules/strtoull (Depends-on): Add stdlib.
48502         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48503         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
48504         HAVE_STRTOULL.
48505
48506 2008-10-19  Bruno Haible  <bruno@clisp.org>
48507
48508         Add strtoll() declaration to <stdlib.h>.
48509         * lib/stdlib.in.h (strtoll): New declaration.
48510         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48511         Set HAVE_STRTOLL.
48512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
48513         HAVE_STRTOLL.
48514         * modules/strtoll (Depends-on): Add stdlib.
48515         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48516         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
48517
48518 2008-10-19  Bruno Haible  <bruno@clisp.org>
48519
48520         * modules/bcopy (Depends-on): Add strings.
48521         (Include): Specify <strings.h>.
48522
48523 2008-10-19  Bruno Haible  <bruno@clisp.org>
48524
48525         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
48526
48527 2008-10-19  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
48530         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
48531         mingw.
48532
48533 2008-10-19  Bruno Haible  <bruno@clisp.org>
48534
48535         * lib/atanl.c: Don't include isnanl.h.
48536         * lib/cosl.c: Likewise.
48537         * lib/ldexpl.c: Likewise.
48538         * lib/logl.c: Likewise.
48539         * lib/sinl.c: Likewise.
48540         * lib/sqrtl.c: Likewise.
48541         * lib/tanl.c: Likewise.
48542
48543         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
48544         * lib/isnanf.h: Remove file.
48545         * lib/isnand.h: Remove file.
48546         * lib/isnanl.h: Remove file.
48547         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
48548         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
48549         macros.
48550         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
48551         HAVE_ISNANF, don't define it as a C macro.
48552         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48553         HAVE_ISNAND, don't define it as a C macro.
48554         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
48555         HAVE_ISNANL, don't define it as a C macro.
48556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
48557         HAVE_ISNAN[FDL].
48558         * modules/isnanf (Files): Remove lib/isnanf.h.
48559         (Depends-on): Add math.
48560         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48561         (Include): Specify <math.h> instead of isnanf.h.
48562         * modules/isnand (Files): Remove lib/isnand.h.
48563         (Depends-on): Add math.
48564         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48565         (Include): Specify <math.h> instead of isnand.h.
48566         * modules/isnanl (Files): Remove lib/isnanl.h.
48567         (Depends-on): Add math.
48568         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48569         (Include): Specify <math.h> instead of isnanl.h.
48570         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
48571         HAVE_ISNAN[FDL].
48572         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
48573         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
48574         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
48575         * NEWS: Mention the change.
48576
48577 2008-10-18  Bruno Haible  <bruno@clisp.org>
48578
48579         Add getusershell(), setusershell(), endusershell() declarations to
48580         <unistd.h>.
48581         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
48582         declarations.
48583         * lib/getusershell.c: Include unistd.h.
48584         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
48585         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48586         HAVE_GETUSERSHELL.
48587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
48588         and HAVE_GETUSERSHELL.
48589         * modules/getusershell (Depends-on): Add unistd, extensions.
48590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48591         (Include): Specify <unistd.h>.
48592         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
48593         HAVE_GETUSERSHELL.
48594
48595 2008-10-18  Bruno Haible  <bruno@clisp.org>
48596
48597         Add a getloadavg() declaration to <stdlib.h>.
48598         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
48599         getloadavg declaration.
48600         (getloadavg): New declaration.
48601         * lib/getloadavg.c: Include <stdlib.h> first.
48602         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
48603         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
48604         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
48605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
48606         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48607         * modules/getloadavg (Depends-on): Add stdlib, extensions.
48608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48609         (Include): Specify <stdlib.h>.
48610         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
48611         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48612
48613 2008-10-18  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/dirchownmod.c: Don't include lchmod.h.
48616
48617         Move the lchmod() declaration to <sys/stat.h>.
48618         * lib/lchmod.h: Remove file.
48619         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
48620         (lchmod): New declaration, moved here from lib/lchown.h.
48621         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
48622         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
48623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48624         and HAVE_LCHMOD.
48625         * modules/lchmod (Files): Remove lib/lchmod.h.
48626         (Depends-on): Add sys_stat, extensions.
48627         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48628         (Include): Specify <sys/stat.h> instead of lchmod.h.
48629         * modules/sys_stat (Depends-on): Add link-warning.
48630         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
48631         definition of GL_LINK_WARNING.
48632         * NEWS: Mention the change.
48633
48634 2008-10-18  Bruno Haible  <bruno@clisp.org>
48635
48636         * lib/fchdir.c: Don't include dirfd.h.
48637         * lib/fts.c: Likewise.
48638         * lib/getcwd.c: Likewise.
48639         * lib/glob.c: Likewise.
48640
48641         Move the dirfd() declaration to <dirent.h>.
48642         * lib/dirfd.h: Remove file.
48643         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
48644         (dirfd): New declaration.
48645         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
48646         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
48647         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
48648         HAVE_DECL_DIRFD.
48649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
48650         HAVE_DECL_DIRFD.
48651         * modules/dirfd (Files): Remove lib/dirfd.h.
48652         (Depends-on): Add dirent, extensions.
48653         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
48654         (Include): Specify <dirent.h> instead of dirfd.h.
48655         * modules/dirent (Depends-on): Add link-warning.
48656         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
48657         definition of GL_LINK_WARNING.
48658         * NEWS: Mention the change.
48659
48660 2008-10-18  Bruno Haible  <bruno@clisp.org>
48661
48662         Move the euidaccess() declaration to <unistd.h>.
48663         * lib/euidaccess.h: Remove file.
48664         * lib/unistd.in.h (euidaccess): New declaration.
48665         * lib/euidaccess.c: Don't include euidaccess.h.
48666         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
48667         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
48668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
48669         and HAVE_EUIDACCESS.
48670         * modules/euidaccess (Files): Remove lib/euidaccess.h.
48671         (Depends-on): Add unistd.
48672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48673         (Include): Specify <unistd.h> instead of euidaccess.h.
48674         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
48675         HAVE_EUIDACCESS.
48676         * NEWS: Mention the change.
48677
48678 2008-10-18  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
48681
48682         Move the getdomainname() declaration to <unistd.h>.
48683         * lib/getdomainname.h: Remove file.
48684         * lib/unistd.in.h (getdomainname): New declaration.
48685         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
48686         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
48687         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48688         HAVE_GETDOMAINNAME.
48689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48690         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
48691         * modules/getdomainname (Files): Remove lib/getdomainname.h.
48692         (Depends-on): Add unistd, extensions.
48693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48694         (Includes): Specify <unistd.h> instead of getdomainname.h.
48695         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
48696         HAVE_GETDOMAINNAME.
48697         * NEWS: Mention the change.
48698
48699 2008-10-18  Bruno Haible  <bruno@clisp.org>
48700
48701         * modules/dirent: New file.
48702         * m4/dirent_h.m4: New file.
48703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
48704         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
48705         * modules/fchdir (Files): Remove lib/dirent.in.h.
48706         (Depends-on): Add dirent.
48707         (Makefile.am): Move rules to modules/dirent.
48708         * doc/posix-headers/dirent.texi: Mention the new module.
48709
48710 2008-10-18  Bruno Haible  <bruno@clisp.org>
48711
48712         Avoid -Wunused-parameter warnings in public gnulib header files.
48713         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
48714         macro.
48715         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
48716
48717 2008-10-18  Bruno Haible  <bruno@clisp.org>
48718
48719         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
48720         * doc/glibc-functions/error.texi: Mention the module 'error'.
48721         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
48722         * doc/glibc-functions/getdomainname.texi: Mention the module
48723         'getdomainname'.
48724         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
48725         * doc/glibc-functions/getpagesize.texi: Mention the module
48726         'getpagesize'.
48727         * doc/glibc-functions/getusershell.texi: Mention the module
48728         'getusershell'.
48729         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
48730         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
48731         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
48732         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
48733         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
48734         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
48735         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
48736         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
48737         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
48738         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
48739         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
48740         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
48741         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
48742         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
48743
48744 2008-10-17  Bruno Haible  <bruno@clisp.org>
48745
48746         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
48747         HP-UX and IRIX, use -0.0L.
48748         * tests/test-ceill.c (minus_zero): Likewise.
48749         * tests/test-floorl.c (minus_zero): Likewise.
48750         * tests/test-frexpl.c (minus_zero): Likewise.
48751         * tests/test-isnan.c (minus_zerol): Likewise.
48752         * tests/test-isnanl.h (minus_zero): Likewise.
48753         * tests/test-ldexpl.c (minus_zero): Likewise.
48754         * tests/test-roundl.c (minus_zero): Likewise.
48755         * tests/test-signbit.c (minus_zerol): Likewise.
48756         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48757         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48758         * tests/test-truncl.c (minus_zero): Likewise.
48759         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48760         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48761         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
48762         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48763
48764 2008-10-17  Bruno Haible  <bruno@clisp.org>
48765
48766         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
48767         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
48768         that it gets activated only for gcc >= 3.0.
48769         * lib/dirent.in.h: Likewise.
48770         * lib/errno.in.h: Likewise.
48771         * lib/fcntl.in.h: Likewise.
48772         * lib/float.in.h: Likewise.
48773         * lib/iconv.in.h: Likewise.
48774         * lib/inttypes.in.h: Likewise.
48775         * lib/locale.in.h: Likewise.
48776         * lib/math.in.h: Likewise.
48777         * lib/netdb.in.h: Likewise.
48778         * lib/netinet_in.in.h: Likewise.
48779         * lib/search.in.h: Likewise.
48780         * lib/signal.in.h: Likewise.
48781         * lib/spawn.in.h: Likewise.
48782         * lib/stdarg.in.h: Likewise.
48783         * lib/stdint.in.h: Likewise.
48784         * lib/stdio.in.h: Likewise.
48785         * lib/stdlib.in.h: Likewise.
48786         * lib/string.in.h: Likewise.
48787         * lib/strings.in.h: Likewise.
48788         * lib/sys_file.in.h: Likewise.
48789         * lib/sys_ioctl.in.h: Likewise.
48790         * lib/sys_select.in.h: Likewise.
48791         * lib/sys_socket.in.h: Likewise.
48792         * lib/sys_stat.in.h: Likewise.
48793         * lib/sys_time.in.h: Likewise.
48794         * lib/sysexits.in.h: Likewise.
48795         * lib/time.in.h: Likewise.
48796         * lib/unistd.in.h: Likewise.
48797         * lib/wchar.in.h: Likewise.
48798         * lib/wctype.in.h: Likewise.
48799         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48800
48801 2008-10-17  Jim Meyering  <meyering@redhat.com>
48802
48803         ignore-value: don't depend on inline module
48804         * modules/ignore-value (Depends-on): Remove 'inline'.
48805         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48806         Suggestion from Bruno Haible.
48807
48808 2008-10-17  Bruno Haible  <bruno@clisp.org>
48809
48810         New implementation of condition variables for Win32.
48811         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48812         (gl_linked_waitqueue_t): New type.
48813         (gl_cond_t): Use it.
48814         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48815         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48816         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48817         (glthread_cond_init_func, glthread_cond_wait_func,
48818         glthread_cond_timedwait_func, glthread_cond_signal_func,
48819         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48820         Reimplemented on the basis of gl_linked_waitqueue_t.
48821         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48822         gl_waitqueue_t.
48823         (gl_rwlock_t): Update.
48824         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48825
48826 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48827
48828         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48829         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48830
48831 2008-10-17  Jim Meyering  <meyering@redhat.com>
48832
48833         ignore-value: new module
48834         * modules/ignore-value: New file.
48835         * lib/ignore-value.h: New file.
48836         * MODULES.html.sh (Compiler warning management): New section,
48837         just for this module.  More to come.
48838
48839 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48840
48841         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48842         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48843         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48844
48845 2008-10-16  Jim Meyering  <meyering@redhat.com>
48846
48847         openat-die.c: avoid 'no previous prototype' warning
48848         * lib/openat-die.c: Include "openat.h".
48849         Reported by Reuben Thomas <rrt@sc3d.org>.
48850
48851 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48852
48853         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48854         * lib/netdb.in.h: Fix typo.
48855         Reported by Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/netdb.in.h: Include sys/socket.h for platforms without
48858         netdb.h, to get structures like hostent on MinGW.
48859         * modules/netdb (Depends-on): Add sys_socket.
48860
48861 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48862
48863         * modules/netdb, modules/netdb-tests: New file.
48864         * m4/netdb_h.m4: New file.
48865         * lib/netdb.in.h: Add, currently just an empty file pending
48866         definitions.
48867         * tests/test-netdb.c: New file.
48868         * doc/posix-headers/netdb.texi: Mention that we replace it if
48869         needed.
48870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48871         netdb.
48872
48873 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48874
48875         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48876         with code.
48877
48878 2008-10-13  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/glthread/cond.c (glthread_cond_wait_func,
48881         glthread_cond_timedwait_func): Add a comment.
48882
48883 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48884
48885         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48886         * tests/test-select.c: Likewise,
48887
48888 2008-10-13  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/glthread/cond.c (glthread_cond_wait_func,
48891         glthread_cond_timedwait_func): Fix variable name.
48892         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48893
48894 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48895
48896         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48898         struct sockaddr.sa_len.
48899         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48900
48901 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48902
48903         * build-aux/pmccabe2html: Add css and css_url parameters.
48904
48905 2008-10-12  Bruno Haible  <bruno@clisp.org>
48906
48907         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48908         calling aclx_get.
48909         Reported by Rainer Tammer <tammer@tammer.net>.
48910
48911 2008-10-12  Bruno Haible  <bruno@clisp.org>
48912
48913         Use msvcrt aware primitives for creation/termination of Win32 threads.
48914         * lib/glthread/thread.c: Include <process.h>.
48915         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48916         (wrapper_func): Update signature.
48917         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48918
48919 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48920             Bruno Haible  <bruno@clisp.org>
48921
48922         Provide a Win32 implementation of the 'cond' module.
48923         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48924         * lib/glthread/cond.c (glthread_cond_init_func,
48925         glthread_cond_wait_func, glthread_cond_timedwait_func,
48926         glthread_cond_signal_func, glthread_cond_broadcast_func,
48927         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48928         * modules/cond (Dependencies): Add gettimeofday.
48929
48930 2008-10-11  Bruno Haible  <bruno@clisp.org>
48931
48932         Make sleep work on older versions of mingw.
48933         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48934         only whether it exists.
48935         * doc/posix-functions/sleep.texi: Mention the problem with older
48936         versions of mingw.
48937
48938 2008-10-11  Bruno Haible  <bruno@clisp.org>
48939
48940         New module 'shutdown'.
48941         * modules/shutdown: New file.
48942         * lib/sys_socket.in.h (shutdown): New declaration.
48943         * lib/winsock.c (shutdown): New function.
48944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48945         GNULIB_SHUTDOWN.
48946         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48947         * doc/posix-functions/shutdown.texi: Document the new module.
48948
48949 2008-10-11  Jim Meyering  <meyering@redhat.com>
48950
48951         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48952
48953 2008-10-11  Bruno Haible  <bruno@clisp.org>
48954
48955         New module 'fclose'.
48956         * modules/fclose: New file.
48957         * lib/stdio.in.h (fclose): New declaration.
48958         * lib/fclose.c: New file.
48959         * m4/fclose.m4: New file.
48960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48961         REPLACE_FCLOSE.
48962         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48963         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48964         REPLACE_FCLOSE.
48965         * modules/close (Depends-on): fclose.
48966         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48967
48968 2008-10-11  Bruno Haible  <bruno@clisp.org>
48969
48970         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48971         set errno and don't call _close.
48972
48973 2008-10-10  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48976         ACL, not afterwards. Fixes test failure on Cygwin.
48977
48978 2008-10-09  Ben Pfaff  <blp@gnu.org>
48979
48980         * build-aux/announce-gen: Fix gnulib version related part of usage
48981         message.  Die with a useful error message if no tarballs are
48982         found.
48983
48984 2008-10-10  Jim Meyering  <meyering@redhat.com>
48985
48986         bootstrap: use git's --depth=N option only if it's supported
48987         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48988         recognize the --depth option.  Reported by Pádraig Brady.
48989
48990 2008-10-09  Bruno Haible  <bruno@clisp.org>
48991
48992         New module 'ioctl'.
48993         * modules/ioctl: New file.
48994         * lib/sys_socket.in.h (ioctl): Remove declaration.
48995         * lib/winsock.c: Include <sys/ioctl.h>.
48996         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48997         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48998         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48999         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
49000         * doc/posix-functions/ioctl.texi: Mention the new module.
49001
49002 2008-10-09  Bruno Haible  <bruno@clisp.org>
49003
49004         New module 'sys_ioctl'.
49005         * lib/sys_ioctl.in.h: New file.
49006         * m4/sys_ioctl_h.m4: New file.
49007         * modules/sys_ioctl: New file.
49008         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
49009
49010 2008-10-09  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
49013         * lib/winsock.c: Include <stdarg.h>.
49014         (rpl_ioctl): Change to second argument 'int' and then varargs.
49015
49016 2008-10-09  Bruno Haible  <bruno@clisp.org>
49017
49018         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
49019         when the sys_socket module is present and the system has <winsock2.h>.
49020
49021 2008-10-09  Bruno Haible  <bruno@clisp.org>
49022
49023         * doc/posix-functions/close.texi: Mention module 'close' instead of
49024         module 'sys_socket'.
49025
49026 2008-10-09  Bruno Haible  <bruno@clisp.org>
49027
49028         * doc/glibc-headers/sys_ioctl.texi: New file.
49029         * doc/gnulib.texi: Include it.
49030
49031 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49032             Bruno Haible  <bruno@clisp.org>
49033
49034         Combine the two replacements of 'close'.
49035         * lib/sys_socket.in.h (close): Define to a reminder to include
49036         <unistd.h>.
49037         (_gl_close_fd_maybe_socket): New declaration.
49038         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
49039         * lib/winsock.c (close): Remove undefinition.
49040         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
49041         needed for the gnulib module 'close'.
49042         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
49043         define to an error symbol or to a warning, if suitable.
49044         * lib/close.c: Include <sys/socket.h>.
49045         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
49046         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
49047         UNISTD_H_HAVE_WINSOCK2_H.
49048         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
49049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49050         UNISTD_H_HAVE_WINSOCK2_H.
49051         * modules/sys_socket (Files): Add m4/unistd_h.m4.
49052         (configure.ac): Set a module indicator.
49053         (Makefile.am): Substitute GNULIB_CLOSE.
49054         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
49055         * modules/poll-tests (Depends-on): Add close.
49056         * modules/select-tests (Depends-on): Likewise.
49057
49058 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49059             Bruno Haible  <bruno@clisp.org>
49060
49061         New module 'close'.
49062         * modules/close: New file.
49063         * lib/unistd.in.h (close): Move declaration out of the
49064         FCHDIR_REPLACEMENT scope.
49065         (_gl_unregister_fd): New declaration.
49066         * lib/close.c: New file.
49067         * lib/fchdir.c (rpl_close): Remove function.
49068         * m4/close.m4: New file.
49069         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49070         close.
49071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
49072         REPLACE_CLOSE.
49073         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
49074         REPLACE_CLOSE.
49075         * modules/fchdir (Depends-on): Add close.
49076
49077 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49078             Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/fcntl.in.h (open): Simplify conditionals.
49081         (_gl_register_fd): New declaration.
49082         * lib/fchdir.c (rpl_open): Remove function.
49083         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
49084         also.
49085         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
49086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49087         open.
49088
49089 2008-10-09  Jim Meyering  <meyering@redhat.com>
49090
49091         GNUmakefile: use the more name-space-friendly "_version"
49092         * top/GNUmakefile (_dummy): Update.
49093         (_version): Rename from "version".
49094
49095 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49096             Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
49099         rpl_close.
49100         (_gl_register_fd): New function, extracted from rpl_open.
49101         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
49102         (rpl_open, rpl_opendir): Use _gl_register_fd.
49103
49104 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49105
49106         Fix organization of 'open' replacement.
49107         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
49108         (gl_FUNC_OPEN): Use it.
49109         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
49110
49111 2008-10-08  Bruno Haible  <bruno@clisp.org>
49112
49113         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
49114
49115 2008-10-08  Simon Josefsson  <simon@josefsson.org>
49116
49117         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
49118         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
49119         listen).
49120
49121 2008-10-08  Eric Blake  <ebb9@byu.net>
49122
49123         GNUmakefile: add 'make version' target
49124         * top/GNUmakefile (_curr-ver): Split version update rules...
49125         (version): ...into a target.
49126
49127 2008-10-07  Bruno Haible  <bruno@clisp.org>
49128
49129         Use a more portable replacement expression for -0.0L.
49130         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
49131         instead of -0.0L. Fix m4 quotation.
49132
49133         * tests/test-signbit.c: Include <float.h>.
49134         (minus_zero): New variable.
49135         (test_signbitl): Use minus_zero instead of -zero.
49136         * modules/signbit-tests (Depends-on): Add float.
49137
49138         * tests/test-ceill.c: Include <float.h>.
49139         (zero): Remove variable.
49140         (minus_zero): New variable.
49141         (main): Use minus_zero instead of -zero.
49142         * modules/ceill-tests (Depends-on): Add float.
49143
49144         * tests/test-floorl.c: Include <float.h>.
49145         (zero): Remove variable.
49146         (minus_zero): New variable.
49147         (main): Use minus_zero instead of -zero.
49148         * modules/floorl-tests (Depends-on): Add float.
49149
49150         * tests/test-roundl.c: Include <float.h>.
49151         (zero): Remove variable.
49152         (minus_zero): New variable.
49153         (main): Use minus_zero instead of -zero.
49154         * modules/roundl-tests (Depends-on): Add float.
49155
49156         * tests/test-truncl.c: Include <float.h>.
49157         (zero): Remove variable.
49158         (minus_zero): New variable.
49159         (main): Use minus_zero instead of -zero.
49160         * modules/truncl-tests (Depends-on): Add float.
49161
49162         * tests/test-frexpl.c (zero): Remove variable.
49163         (minus_zero): New variable.
49164         (main): Use minus_zero instead of -zero.
49165         * modules/frexpl-tests (Depends-on): Add float.
49166
49167         * tests/test-isnan.c (zerol): Remove variable.
49168         (minus_zerol): New variable.
49169         (test_long_double): Use minus_zerol instead of -zerol.
49170         * modules/isnan-tests (Depends-on): Add float.
49171
49172         * tests/test-isnanl.h (zero): Remove variable.
49173         (minus_zero): New variable.
49174         (main): Use minus_zero instead of -zero.
49175         * modules/isnanl-nolibm-tests (Depends-on): Add float.
49176         * modules/isnanl-tests (Depends-on): Add float.
49177
49178         * tests/test-ldexpl.c (zero): Remove variable.
49179         (minus_zero): New variable.
49180         (main): Use minus_zero instead of -zero.
49181         * modules/ldexpl-tests (Depends-on): Add float.
49182
49183         * tests/test-snprintf-posix.h (zerol): Remove variable.
49184         (minus_zerol): New variable.
49185         (test_function): Use minus_zerol instead of -zerol.
49186         * modules/snprintf-posix-tests (Depends-on): Add float.
49187         * modules/vsnprintf-posix-tests (Depends-on): Add float.
49188
49189         * tests/test-sprintf-posix.h (zerol): Remove variable.
49190         (minus_zerol): New variable.
49191         (test_function): Use minus_zerol instead of -zerol.
49192         * modules/sprintf-posix-tests (Depends-on): Add float.
49193         * modules/vsprintf-posix-tests (Depends-on): Add float.
49194
49195         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
49196         (minus_zerol): New variable.
49197         (test_function): Use minus_zerol instead of -zerol.
49198         * modules/vasnprintf-posix-tests (Depends-on): Add float.
49199
49200         * tests/test-vasprintf-posix.c (zerol): Remove variable.
49201         (minus_zerol): New variable.
49202         (test_function): Use minus_zerol instead of -zerol.
49203         * modules/vasprintf-posix-tests (Depends-on): Add float.
49204
49205 2008-10-07  Simon Josefsson  <simon@josefsson.org>
49206
49207         * MODULES.html.sh (Support for building documentation): Mention
49208         pmccabe2html.  Sort entries.
49209
49210         Add pmccabe2html module, from gnupdf.
49211         * build-aux/pmccabe.css: New file.
49212         * build-aux/pmccabe2html: New file.
49213         * m4/pmccabe2html.m4: New file.
49214         * modules/pmccabe2html: New file.
49215
49216 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
49217
49218         flock: new module
49219         * MODULES.html.sh: Add to list of modules.
49220         * lib/flock.c: flock implementation for Windows and Unix systems
49221         which have fcntl.
49222         * doc/glibc-functions/flock.texi: Update documentation.
49223         * lib/sys_file.in.h: <sys/file.h> header file.
49224         * m4/flock.m4: M4 macros.
49225         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
49226         * modules/flock: flock module.
49227         * modules/flock-tests: flock tests module.
49228         * modules/sys_file: sys/file.h module.
49229         * tests/test-flock.c: test suite for flock.
49230
49231 2008-10-06  Jim Meyering  <meyering@redhat.com>
49232
49233         bootstrap: check for LT_INIT more portably still ;-)
49234         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
49235         Spotted by Bruno Haible.
49236
49237 2008-10-06  Eric Blake  <ebb9@byu.net>
49238
49239         test-signbit: avoid tripping Irix cc bug on -0.0L
49240         * tests/test-signbit.c (minus_zerol): Delete, and replace with
49241         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
49242         entire testsuite consistent and avoids an Irix 6.2 bug.
49243
49244 2008-10-05  Bruno Haible  <bruno@clisp.org>
49245             Jim Meyering  <jim@meyering.net>
49246
49247         Add an option for ignoring EPIPE during close_stdout.
49248         * lib/closeout.h: Include <stdbool.h>.
49249         (close_stdout_set_ignore_EPIPE): New declaration.
49250         * lib/closeout.c: Include <stdbool.h>.
49251         (ignore_EPIPE): New variable.
49252         (close_stdout_set_ignore_EPIPE): New function.
49253         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
49254         * lib/close-stream.c (close_stream): Mention the possible EPIPE
49255         failure.
49256         * modules/closeout (Depends-on): Add stdbool.
49257
49258 2008-10-05  Bruno Haible  <bruno@clisp.org>
49259
49260         * modules/accept: New file.
49261         * modules/bind: New file.
49262         * modules/connect: New file.
49263         * modules/getpeername: New file.
49264         * modules/getsockname: New file.
49265         * modules/getsockopt: New file.
49266         * modules/listen: New file.
49267         * modules/recv: New file.
49268         * modules/recvfrom: New file.
49269         * modules/send: New file.
49270         * modules/sendto: New file.
49271         * modules/setsockopt: New file.
49272         * modules/socket: New file.
49273         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
49274         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49275         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
49276         the particular module is requested. Add a link warning when the
49277         particular module is not requested.
49278         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
49279         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
49280         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
49281         the particular module is requested.
49282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
49283         gl_SYS_SOCKET_H_DEFAULTS): New macros.
49284         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
49285         * modules/sys_socket (Depends-on): Add link-warning.
49286         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
49287         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
49288         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
49289         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
49290         GL_LINK_WARNING.
49291         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
49292         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
49293         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
49294         * doc/posix-functions/getpeername.texi: Mention the new module
49295         'getpeername'.
49296         * doc/posix-functions/getsockname.texi: Mention the new module
49297         'getsockname'.
49298         * doc/posix-functions/getsockopt.texi: Mention the new module
49299         'getsockopt'.
49300         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
49301         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
49302         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
49303         * doc/posix-functions/send.texi: Mention the new module 'send'.
49304         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
49305         * doc/posix-functions/setsockopt.texi: Mention the new module
49306         'setsockopt'.
49307         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
49308         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
49309         listen, connect, accept.
49310         * modules/select-tests (Depends-on): Likewise.
49311
49312 2008-10-05  Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/winsock.c (strerror): Remove unused #undef.
49315         (rpl_close): Remove unused local variable.
49316
49317         * modules/sys_socket (Depends-on); Add errno.
49318
49319 2008-10-05  Bruno Haible  <bruno@clisp.org>
49320
49321         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
49322         (select): Add a link warning when the 'select' module is not used.
49323         * modules/sys_select (Depends-on): Add link-warning.
49324         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
49325         Suggested by Paolo Bonzini.
49326
49327 2008-10-05  Jim Meyering  <meyering@redhat.com>
49328
49329         bootstrap: check for LT_INIT more portably
49330         * build-aux/bootstrap: Avoid using grep -E, since it's not
49331         portable enough.  Suggestion from Bruno Haible.
49332
49333 2008-10-05  Bruno Haible  <bruno@clisp.org>
49334
49335         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
49336         as being fixed by gnulib.
49337
49338 2008-10-05  Bruno Haible  <bruno@clisp.org>
49339
49340         * modules/select-tests: New file, mostly copied from
49341         modules/sys_select-tests.
49342         * tests/test-select.c: New file, mostly copied from
49343         tests/test-sys_select.c.
49344         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
49345         * modules/sys_select-tests (Depends-on): Remove all dependencies.
49346         (Makefile.am): Remove test_sys_select_LDADD.
49347
49348         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
49349         to an undefined symbol, for an error message.
49350         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
49351         (gl_SYS_SELECT_H_DEFAULTS): New macro.
49352         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
49353         winsock-select.c here.
49354         * modules/sys_select (Files): Remove lib/winsock-select.c.
49355         (Depends-on): Remove alloca.
49356         (Makefile.am): Substitute GNULIB_SELECT.
49357         * modules/select: New file.
49358         * doc/posix-functions/select.texi: Update.
49359
49360 2008-10-05  Bruno Haible  <bruno@clisp.org>
49361
49362         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
49363         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
49364         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
49365         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
49366         getdtablesize.
49367         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
49368         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
49369
49370 2008-10-05  Bruno Haible  <bruno@clisp.org>
49371
49372         * modules/getdtablesize-tests: New file.
49373         * tests/test-getdtablesize.c: New file.
49374
49375         New module 'getdtablesize'.
49376         * lib/unistd.in.h (getdtablesize): New declaration.
49377         * lib/getdtablesize.c: New file.
49378         * m4/getdtablesize.m4: New file.
49379         * modules/getdtablesize: New file.
49380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49381         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
49382         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
49383         HAVE_GETDTABLESIZE.
49384         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
49385
49386 2008-10-05  Bruno Haible  <bruno@clisp.org>
49387
49388         * modules/sched (Makefile.am): Fix typo.
49389         Reported by Simon Josefsson.
49390
49391 2008-10-05  Jim Meyering  <meyering@redhat.com>
49392
49393         bootstrap: check for LT_INIT, too
49394         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
49395         are deprecated.  Suggestion from Ralf Wildenhues.
49396
49397 2008-10-05  Bruno Haible  <bruno@clisp.org>
49398
49399         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
49400         overriding them by ours.
49401         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
49402
49403 2008-10-05  Jim Meyering  <meyering@redhat.com>
49404
49405         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
49406         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
49407         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
49408
49409 2008-10-04  Bruno Haible  <bruno@clisp.org>
49410
49411         * modules/dup2 (License): Change to LGPLv2+.
49412         * modules/sleep (License): Likewise.
49413         * modules/perror (License): Likewise.
49414         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
49415         Blake.
49416         * modules/signal (License): Likewise.
49417         * modules/sigprocmask (License): Likewise.
49418         * modules/raise (License): Change to LGPLv2+, with approval by Jim
49419         Meyering.
49420
49421 2008-10-04  Bruno Haible  <bruno@clisp.org>
49422
49423         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
49424         Reported by Rainer Tammer <tammer@tammer.net>.
49425
49426 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
49427             Bruno Haible  <bruno@clisp.org>
49428
49429         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
49430         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
49431         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
49432
49433 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
49434
49435         filevercmp: new module
49436         * lib/filevercmp.h: New function filevercmp comparing version strings.
49437         * lib/filevercmp.c: Implementation of filevercmp function.
49438         * modules/filevercmp: Module metadata.
49439         * tests/test-filevercmp.c: Unit test for new module.
49440         * modules/filevercmp-tests: Unit test metadata.
49441         * MODULES.html.sh: Add filevercmp module.
49442
49443 2008-10-03  Bruno Haible  <bruno@clisp.org>
49444
49445         * lib/c-ctype.h: Add comment.
49446         Reported by Jim Meyering.
49447
49448 2008-10-02  Bruno Haible  <bruno@clisp.org>
49449
49450         * modules/posix_spawn-internal (Depends-on): Add 'open'.
49451
49452 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49453
49454         * build-aux/bootstrap: Allow renaming bootstrap, and change the
49455         name of bootstrap.conf accordingly.
49456
49457 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49458
49459         * build-aux/bootstrap: Install git-merge-changelog configuration
49460         items into .gitconfig if needed.
49461
49462 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49463
49464         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
49465         git repository, and initialize/update it accordingly.
49466
49467 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
49468
49469         * modules/fsync-tests: New file.
49470         * tests/test-fsync.c: New file.
49471
49472         New module 'fsync'.
49473         * lib/fsync.c: New file.
49474         * m4/fsync.m4: New file.
49475         * modules/fsync: New file.
49476         * lib/unistd.in.h (fsync): New declaration.
49477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
49478         GNULIB_FSYNC and HAVE_FSYNC.
49479         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
49480         * MODULES.html.sh (posix_functions): Add fsync.
49481         * doc/posix-functions/fsync.texi: Mention the new module.
49482
49483 2008-10-02  Jim Meyering  <meyering@redhat.com>
49484
49485         fts.c: sync with similar code from coreutils' remove.c
49486         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
49487         Guard also with "#if defined __linux__", since for now at least,
49488         this code is Linux-kernel-specific.
49489
49490 2008-10-02  Jim Meyering  <meyering@redhat.com>
49491
49492         fts: bug fixes
49493         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
49494         Include <sys/vfs.h>, not <sys/statfs.h>.
49495
49496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
49497         Include <sys/vfs.h>, not <sys/statfs.h>.
49498
49499 2008-10-01  Bruno Haible  <bruno@clisp.org>
49500
49501         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
49502         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
49503         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
49504         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
49505         * doc/posix-functions/posix_spawnp.texi: Likewise.
49506         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
49507         whether posix_spawn actually works.
49508         * m4/pipe.m4 (gl_PIPE): Likewise.
49509         * modules/execute (Files): Add m4/posix_spawn.m4.
49510         * modules/pipe (Files): Add m4/posix_spawn.m4.
49511         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
49512
49513 2008-10-01  Jim Meyering  <meyering@redhat.com>
49514
49515         remove trailing spaces
49516         * NEWS: Likewise.
49517         * lib/poll.c (poll): Likewise.
49518         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
49519         * lib/winsock.c (rpl_close): Likewise.
49520         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
49521         * modules/yield: Likewise.
49522         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
49523         * tests/test-sys_select.c (connect_to_socket): Likewise.
49524
49525         fts.c: adjust a new interface to be more generally useful
49526         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
49527         (fts_build): Adjust caller.
49528
49529 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49530
49531         * modules/cond-tests: New file.
49532         * tests/test-cond.c: New file.
49533
49534 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49535             Bruno Haible  <bruno@clisp.org>
49536
49537         * modules/cond (Dependencies): Add errno, time.
49538         * lib/glthread/cond.h: Include <time.h>.
49539         (gl_cond_define, gl_cond_define_initialized): Use the same definition
49540         across platforms.
49541
49542 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49543             Bruno Haible  <bruno@clisp.org>
49544
49545         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
49546
49547 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49548             Bruno Haible  <bruno@clisp.org>
49549
49550         * modules/tls-tests (Depends-on): Add thread, yield.
49551         (configure.ac): Remove all checks.
49552         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
49553         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49554         gl_thread_self): Remove definitions. Include glthread/thread.h and
49555         glthread/yield.h instead.
49556         (test_tls): Pass an additional NULL argument to gl_thread_join.
49557
49558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49559             Bruno Haible  <bruno@clisp.org>
49560
49561         * modules/lock-tests (Depends-on): Add thread, yield.
49562         (configure.ac): Remove all checks.
49563         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
49564         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49565         gl_thread_self): Remove definitions. Include glthread/thread.h and
49566         glthread/yield.h instead.
49567         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
49568         additional NULL argument to gl_thread_join.
49569
49570 2008-09-30  Bruno Haible  <bruno@clisp.org>
49571
49572         Fix the Win32 implementation of the 'thread' module.
49573         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
49574         pointer type.
49575         (gl_thread_self): Invoke gl_thread_self_func.
49576         (gl_thread_self_func): New declaration.
49577         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
49578         (do_init_self_key, init_self_key): New functions.
49579         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
49580         Remove some fields.
49581         (running_threads, running_lock): Remove variables.
49582         (get_current_thread_handle): New function.
49583         (gl_thread_self_func, wrapper_func, glthread_create_func,
49584         glthread_join_func, gl_thread_exit_func): Largely rewritten and
49585         simplified.
49586
49587 2008-09-30  Bruno Haible  <bruno@clisp.org>
49588
49589         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
49590         files.
49591
49592 2008-09-30  Jim Meyering  <meyering@redhat.com>
49593
49594         fts.m4: correct the test for statfs.f_type
49595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
49596         when checking for statfs.f_type.
49597
49598 2008-09-15  Simon Josefsson  <simon@josefsson.org>
49599
49600         tests: avoid some compiler warnings
49601         * tests/test-memchr.c (main): Pass NULL indirectly.
49602         * tests/test-getdate.c (main): Remove unused variable 'ret'.
49603
49604 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
49605
49606         getdate.y: disallow countable dayshifts like "4 yesterday ago"
49607         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
49608         exactly specified dayshifts.
49609         (dayshift): New rule.
49610         (rel): Add dayshift.
49611         (relative_time_table) [tomorrow, yesterday, today, now]:
49612         Use tDAY_SHIFT in place of tDAY_UNIT.
49613         * tests/test-getdate.c: Add tests for now-disallowed countable
49614         dayshifts, e.g., "4 yesterday ago".
49615
49616 2008-09-29  Bruno Haible  <bruno@clisp.org>
49617
49618         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
49619         * tests/test-posix_spawn1.in.sh: Renamed from
49620         tests/test-posix_spawn.in.sh.
49621         * tests/test-posix_spawn2.c: New file.
49622         * tests/test-posix_spawn2.in.sh: New file.
49623         * modules/posix_spawnp-tests (Files): Update.
49624         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
49625
49626 2008-09-29  Bruno Haible  <bruno@clisp.org>
49627
49628         Propagate effects of putenv/setenv/unsetenv to child processes.
49629         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
49630         * lib/pipe.c (create_pipe): Likewise.
49631
49632 2008-09-29  Bruno Haible  <bruno@clisp.org>
49633
49634         Enable use of shell scripts as executables in mingw.
49635         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
49636         run the program as a shell script.
49637         * lib/pipe.c (create_pipe): Likewise.
49638         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
49639         resulting array.
49640
49641 2008-09-29  Eric Blake  <ebb9@byu.net>
49642
49643         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
49644
49645 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
49646
49647         * doc/posix-functions/accept.texi: Update mingw problems.
49648         * doc/posix-functions/bind.texi: Update mingw problems.
49649         * doc/posix-functions/close.texi: Update mingw problems.
49650         * doc/posix-functions/connect.texi: Update mingw problems.
49651         * doc/posix-functions/getpeername.texi: Update mingw problems.
49652         * doc/posix-functions/getsockname.texi: Update mingw problems.
49653         * doc/posix-functions/getsockopt.texi: Update mingw problems.
49654         * doc/posix-functions/ioctl.texi: Update mingw problems.
49655         * doc/posix-functions/listen.texi: Update mingw problems.
49656         * doc/posix-functions/recv.texi: Update mingw problems.
49657         * doc/posix-functions/recvfrom.texi: Update mingw problems.
49658         * doc/posix-functions/select.texi: Update mingw problems.
49659         * doc/posix-functions/send.texi: Update mingw problems.
49660         * doc/posix-functions/sendto.texi: Update mingw problems.
49661         * doc/posix-functions/setsockopt.texi: Update mingw problems.
49662         * doc/posix-functions/socket.texi: Update mingw problems.
49663
49664 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
49665             Bruno Haible  <bruno@clisp.org>
49666
49667         * lib/sys_select.in.h: Include sys/time.h.
49668         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
49669         * modules/sys_select: Depend on sys_time.
49670         * tests/test-sys_select.c: Test that sys/select.h defines struct
49671         timeval fully.
49672
49673 2008-09-29  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
49676         * lib/sys_select.in.h: Likewise.
49677
49678 2008-09-29  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
49681
49682 2008-09-29  Bruno Haible  <bruno@clisp.org>
49683
49684         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
49685         Set LIBSOCKET instead of augmenting LIBS.
49686         * modules/sockets (Link): New section.
49687         * modules/sockets-tests (test_sockets_LDADD): New variable.
49688         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
49689         * modules/poll-tests (test_poll_LDADD): New variable.
49690         * NEWS: Document the change.
49691
49692 2008-09-29  Bruno Haible  <bruno@clisp.org>
49693
49694         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
49695         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
49696         ARPA_INET_H directly.
49697         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49698
49699 2008-09-28  Bruno Haible  <bruno@clisp.org>
49700
49701         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
49702         from gl_HEADER_SYS_SOCKET.
49703         (gl_HEADER_SYS_SOCKET): Invoke it.
49704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49705
49706 2008-09-28  Bruno Haible  <bruno@clisp.org>
49707
49708         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
49709         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
49710         Needed on OSF/1 4.0.
49711
49712 2008-09-28  Bruno Haible  <bruno@clisp.org>
49713
49714         Override open more carefully.
49715         * lib/open.c (orig_open): New function.
49716         (rpl_open): Use orig_open instead of open.
49717         * lib/fcntl.in.h: Add special invocation convention.
49718         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
49719         (gl_FUNC_OPEN): Invoke it.
49720
49721         Override freopen more carefully.
49722         * lib/freopen.c (orig_freopen): New function.
49723         (rpl_freopen): Use orig_freopen instead of freopen.
49724         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
49725         (gl_FUNC_FREOPEN): Invoke it.
49726
49727         Override fopen more carefully.
49728         * lib/fopen.c (orig_fopen): New function.
49729         (rpl_fopen): Use orig_fopen instead of fopen.
49730         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
49731         (gl_FUNC_FOPEN): Invoke it.
49732         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
49733
49734 2008-09-28  Bruno Haible  <bruno@clisp.org>
49735
49736         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
49737         SIGPIPE.
49738
49739 2008-09-28  Bruno Haible  <bruno@clisp.org>
49740
49741         * tests/test-sigaction.c (handler, main): Disable the check whether
49742         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
49743         glibc systems with LinuxThreads.
49744
49745 2008-09-28  Bruno Haible  <bruno@clisp.org>
49746
49747         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
49748
49749         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
49750         with AIX xlc.
49751         * lib/fcntl.in.h (open): Likewise.
49752         Reported by Rainer Tammer <tammer@tammer.net>.
49753
49754 2008-09-28  Bruno Haible  <bruno@clisp.org>
49755
49756         * modules/posix_spawnp-tests: New file.
49757         * tests/test-posix_spawn.c: New file.
49758         * tests/test-posix_spawn.in.sh: New file.
49759
49760         New module 'posix_spawnp'.
49761         * modules/posix_spawnp: New file.
49762         * lib/spawnp.c: New file, from GNU libc with modifications.
49763         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
49764
49765         New module 'posix_spawn'.
49766         * modules/posix_spawn: New file.
49767         * lib/spawn.c: New file, from GNU libc with modifications.
49768         * doc/posix-functions/posix_spawn.texi: Mention the new module.
49769
49770         New module 'posix_spawnattr_destroy'.
49771         * modules/posix_spawnattr_destroy: New file.
49772         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
49773         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
49774         module.
49775
49776         New module 'posix_spawnattr_setsigmask'.
49777         * modules/posix_spawnattr_setsigmask: New file.
49778         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
49779         modifications.
49780         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
49781         new module.
49782
49783         New module 'posix_spawnattr_getsigmask'.
49784         * modules/posix_spawnattr_getsigmask: New file.
49785         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
49786         modifications.
49787         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
49788         new module.
49789
49790         New module 'posix_spawnattr_setsigdefault'.
49791         * modules/posix_spawnattr_setsigdefault: New file.
49792         * lib/spawnattr_setdefault.c: New file, from GNU libc with
49793         modifications.
49794         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
49795         new module.
49796
49797         New module 'posix_spawnattr_getsigdefault'.
49798         * modules/posix_spawnattr_getsigdefault: New file.
49799         * lib/spawnattr_getdefault.c: New file, from GNU libc with
49800         modifications.
49801         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
49802         new module.
49803
49804         New module 'posix_spawnattr_setschedpolicy'.
49805         * modules/posix_spawnattr_setschedpolicy: New file.
49806         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49807         modifications.
49808         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49809         new module.
49810
49811         New module 'posix_spawnattr_getschedpolicy'.
49812         * modules/posix_spawnattr_getschedpolicy: New file.
49813         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49814         modifications.
49815         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49816         new module.
49817
49818         New module 'posix_spawnattr_setschedparam'.
49819         * modules/posix_spawnattr_setschedparam: New file.
49820         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49821         modifications.
49822         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49823         new module.
49824
49825         New module 'posix_spawnattr_getschedparam'.
49826         * modules/posix_spawnattr_getschedparam: New file.
49827         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49828         modifications.
49829         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49830         new module.
49831
49832         New module 'posix_spawnattr_setpgroup'.
49833         * modules/posix_spawnattr_setpgroup: New file.
49834         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49835         modifications.
49836         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49837         module.
49838
49839         New module 'posix_spawnattr_getpgroup'.
49840         * modules/posix_spawnattr_getpgroup: New file.
49841         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49842         modifications.
49843         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49844         module.
49845
49846         New module 'posix_spawnattr_setflags'.
49847         * modules/posix_spawnattr_setflags: New file.
49848         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49849         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49850         module.
49851
49852         New module 'posix_spawnattr_getflags'.
49853         * modules/posix_spawnattr_getflags: New file.
49854         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49855         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49856         module.
49857
49858         New module 'posix_spawnattr_init'.
49859         * modules/posix_spawnattr_init: New file.
49860         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49861         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49862         module.
49863
49864         New module 'posix_spawn_file_actions_destroy'.
49865         * modules/posix_spawn_file_actions_destroy: New file.
49866         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49867         modifications.
49868         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49869         the new module.
49870
49871         New module 'posix_spawn_file_actions_addopen'.
49872         * modules/posix_spawn_file_actions_addopen: New file.
49873         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49874         modifications.
49875         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49876         the new module.
49877
49878         New module 'posix_spawn_file_actions_adddup2'.
49879         * modules/posix_spawn_file_actions_adddup2: New file.
49880         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49881         modifications.
49882         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49883         the new module.
49884
49885         New module 'posix_spawn_file_actions_addclose'.
49886         * modules/posix_spawn_file_actions_addclose: New file.
49887         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49888         modifications.
49889         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49890         the new module.
49891
49892         New module 'posix_spawn_file_actions_init'.
49893         * modules/posix_spawn_file_actions_init: New file.
49894         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49895         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49896         new module.
49897
49898         New module 'posix_spawn-internal'.
49899         * modules/posix_spawn-internal: New file.
49900         * lib/spawn_int.h: New file, from GNU libc with modifications.
49901         * lib/spawni.c: New file, from GNU libc with modifications.
49902         * m4/posix_spawn.m4: New file.
49903
49904         New module 'spawn'.
49905         * modules/spawn: New file.
49906         * lib/spawn.in.h: New file, from GNU libc with modifications.
49907         * m4/spawn_h.m4: New file.
49908         * doc/posix-headers/spawn.texi: Mention the new module.
49909
49910 2008-09-28  Bruno Haible  <bruno@clisp.org>
49911
49912         * modules/sched-tests: New file.
49913         * tests/test-sched.c: New file.
49914
49915         New module 'sched'.
49916         * modules/sched: New file.
49917         * lib/sched.in.h: New file.
49918         * m4/sched_h.m4: New file.
49919         * doc/posix-headers/sched.texi: Mention the new module.
49920
49921 2008-09-27  Eric Blake  <ebb9@byu.net>
49922
49923         Fix previous patch, and tweak references to $0.
49924         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49925         (func_version, func_gnulib_dir): Don't call this program
49926         gnulib-tool.
49927         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49928         with using $0 in function.
49929         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49930         (func_fatal_error): Reuse the name the user invoked us with.
49931
49932 2008-09-27  Bruno Haible  <bruno@clisp.org>
49933
49934         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49935         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49936         (gl_ICONV_H): Not here.
49937         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49938         instead of assigning ICONV_H directly.
49939
49940         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49942         WCHAR_H directly.
49943
49944 2008-09-27  Bruno Haible  <bruno@clisp.org>
49945
49946         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49947         * modules/arpa_inet (Depends-on): Add link-warning.
49948         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49949         * modules/unistd (Makefile.am): Likewise.
49950
49951 2008-09-26  Bruno Haible  <bruno@clisp.org>
49952
49953         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49954         variables.
49955         (func_version): Essentially copied from gnulib-tool.
49956         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49957         func_readlink): Copied from gnulib-tool.
49958
49959 2008-09-26  Bruno Haible  <bruno@clisp.org>
49960
49961         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49962         invoking git-version-gen.
49963
49964 2008-09-26  Bruno Haible  <bruno@clisp.org>
49965
49966         * posix-modules: Update to directory names changed on 2008-01-19.
49967         Remove commas in output before splitting into words. No more need to
49968         avoid 'ftruncate' since 2007-02-19.
49969
49970 2008-09-26  Bruno Haible  <bruno@clisp.org>
49971
49972         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49973
49974 2008-09-26  Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49977         * modules/fwriteerror (Depends-on): Add errno.
49978
49979 2008-09-26  Bruno Haible  <bruno@clisp.org>
49980
49981         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49982         * tests/test-vc-list-files-cvs.sh: Likewise.
49983
49984 2008-09-26  Bruno Haible  <bruno@clisp.org>
49985
49986         * doc/posix-headers/sys_resource.texi: Reorder items.
49987
49988 2008-09-26  Jim Meyering  <meyering@redhat.com>
49989
49990         fts: tweak inode comparison function
49991         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49992         inode numbers, as documented.
49993
49994         fts: sort dirent entries on inode number before traversing
49995         This avoids a quadratic, seek-related performance penalty when
49996         operating on a directory containing many entries (measurable at 10k;
49997         3.5 hours at 2 million entries with a cold cache) on certain types
49998         of file systems, including ext3 and ext4, but not tmpfs.
49999         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
50000         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
50001         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
50002         (fs_handles_readdir_ordered_dirents_efficiently): New function.
50003         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
50004         (fts_build): Set the stat.st_ino member from D_INO.
50005         If it is likely to be useful, sort dirent entries on inode number.
50006
50007         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
50008         and the struct statfs.f_type member.
50009         * modules/fts (Depends-on): Add d-ino.
50010
50011 2008-09-26  Bruno Haible  <bruno@clisp.org>
50012
50013         * modules/sigpipe-die (Depends-on): Add sigpipe.
50014
50015         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
50016         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
50017         and GNULIB_STDIO_H_SIGPIPE are set.
50018         * lib/stdio-write.c: New file.
50019         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50020         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50021         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50022         REPLACE_STDIO_WRITE_FUNCS.
50023         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
50024         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50025         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50026         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50027         * modules/stdio (Files): Add lib/stdio-write.c.
50028         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
50029         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50030         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50031         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50032         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
50033         REPLACE_FPRINTF_POSIX.
50034         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
50035         REPLACE_PRINTF_POSIX.
50036         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
50037         REPLACE_VFPRINTF_POSIX.
50038         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
50039         REPLACE_VPRINTF_POSIX.
50040         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
50041         SIGPIPE issue.
50042         * doc/posix-functions/fputc.texi: Likewise.
50043         * doc/posix-functions/fputs.texi: Likewise.
50044         * doc/posix-functions/fwrite.texi: Likewise.
50045         * doc/posix-functions/printf.texi: Likewise.
50046         * doc/posix-functions/putc.texi: Likewise.
50047         * doc/posix-functions/putchar.texi: Likewise.
50048         * doc/posix-functions/puts.texi: Likewise.
50049         * doc/posix-functions/vfprintf.texi: Likewise.
50050         * doc/posix-functions/vprintf.texi: Likewise.
50051
50052         * modules/safe-write (Depends-on): Add write.
50053
50054         * modules/sigpipe-tests: New file.
50055         * tests/test-sigpipe.c: New file.
50056         * tests/test-sigpipe.sh: New file.
50057
50058         * modules/write: New file.
50059         * lib/unistd.in.h: Include <sys/types.h>.
50060         (write): New declaration.
50061         * lib/write.c: New file.
50062         * m4/write.m4: New file.
50063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50064         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
50065         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
50066         GNULIB_WRITE, REPLACE_WRITE.
50067         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
50068         and the SIGPIPE issue.
50069
50070         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
50071         (raise): New declaration.
50072         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
50073         (ext_signal): New function.
50074         (rpl_raise): New function.
50075         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50076         GNULIB_SIGNAL_H_SIGPIPE.
50077         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
50078         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
50079
50080         * modules/sigpipe: New file.
50081         * m4/sigpipe.m4: New file.
50082
50083 2008-09-25  Derek Price  <derek@ximbiot.com>
50084             Bruno Haible  <bruno@clisp.org>
50085
50086         * gnulib-tool (func_import): Report all license incompatibilities, not
50087         just the first one.
50088
50089 2008-09-25  Bruno Haible  <bruno@clisp.org>
50090
50091         * gnulib-tool (func_import): When computing the edits, consider not
50092         only the Makefile.ams that exist but also those that will be generated.
50093
50094 2008-09-25  Simon Josefsson  <simon@josefsson.org>
50095
50096         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
50097         fixes gnulib-tool --test warning about duplicate dependency.
50098
50099 2008-09-25  Bruno Haible  <bruno@clisp.org>
50100
50101         * gnulib-tool: Don't ask the user to perform edits in the generated
50102         Makefile.ams.
50103         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
50104         apply to the Makefile.am being generated.
50105         (func_emit_tests_Makefile_am): Execute edits that apply to the
50106         Makefile.am being generated.
50107         (func_import): Setup list of Makefile.am edits before emitting the
50108         Makefile.ams, not at the end.
50109         (func_create_testdir): Update.
50110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50111
50112 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50113
50114         * gnulib-tool (func_import): Store the --tests-base option in the
50115         comment in gnulib-cache.m4.
50116
50117 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
50118
50119         * NEWS: Document increased portability that sys_select now provides.
50120
50121         * lib/sys_select.in.h: Install select wrapper.
50122         * lib/sys_socket.in.h: Use more descriptive name when there is no
50123         select wrapper.
50124         * lib/winsock-select.c: New.
50125         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
50126         Require gl_HEADER_SYS_SOCKET.
50127         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
50128         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
50129         * tests/test-sys_select.c: Add functional tests.
50130
50131 2008-09-24  Eric Blake  <ebb9@byu.net>
50132
50133         open, fopen: close fd leak in last patch
50134         * lib/open.c (rpl_open): Close fd before returning error.
50135         * lib/fopen.c (rpl_fopen): Close fd before returning error.
50136         * doc/posix-functions/open.texi (open): Document that Irix also
50137         has the bug.
50138         * doc/posix-functions/fopen.texi (fopen): Likewise.
50139         Reported by Paolo Bonzini.
50140
50141 2008-09-24  Bruno Haible  <bruno@clisp.org>
50142
50143         Ensure that a filename ending in a slash cannot be used to access a
50144         non-directory.
50145         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
50146         to check whether it's really a directory.
50147         * lib/fopen.c: Include fcntl.h, unistd.h.
50148         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
50149         and fdopen().
50150         * modules/fopen (Depends-on): Add unistd.
50151         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
50152         * tests/test-fopen.c (main): Likewise.
50153         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
50154         * doc/posix-functions/fopen.texi: Likewise.
50155         Reported by Eric Blake.
50156
50157 2008-09-23  Eric Blake  <ebb9@byu.net>
50158
50159         c-stack: avoid compiler optimizations when provoking overflow
50160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
50161         recursion harder to optimize, to ensure a stack overflow occurs.
50162         * tests/test-c-stack.c (recurse): Likewise.
50163         Borrowed from libsigsegv.
50164
50165         c-stack: work around Irix sigaltstack bug
50166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
50167         whether sigaltstack uses wrong end of stack_t (copied in part from
50168         libsigsegv).
50169         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
50170         Irix bug, without requiring an over-allocation.
50171         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
50172         bug.
50173
50174         fopen: document mingw bug on directories
50175         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
50176         not allowing a stream visiting a directory, even though reading
50177         from such a stream is not portable.
50178
50179 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50180
50181         * lib/poll.c: Rewrite.
50182         * modules/poll: Depend on alloca.
50183
50184 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50185
50186         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
50187         instead define prototypes for a full set of wrappers.  Ensure
50188         that Cygwin does not use the compatibility code, which is only
50189         for MinGW.
50190         * lib/winsock.c: New.
50191         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
50192         * modules/sys_socket: Add lib/winsock.c.
50193
50194         * modules/poll-tests: Add errno and perror.
50195         * tests/test-poll.c: Use ioctl, not ioctlsocket.
50196
50197 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50198
50199         * tests/test-poll.c: Downgrade minimum needed Winsock version.
50200
50201 2008-09-23  Bruno Haible  <bruno@clisp.org>
50202
50203         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
50204         * doc/glibc-functions/*: Likewise.
50205
50206 2008-09-23  Simon Josefsson  <simon@josefsson.org>
50207
50208         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
50209         success.
50210
50211 2008-09-22  Eric Blake  <ebb9@byu.net>
50212             Bruno Haible  <bruno@clisp.org>
50213
50214         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
50215         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
50216         supply %A but mishandle pseudo-NaN.
50217         Reported by Simon Josefsson.
50218
50219 2008-09-21  Bruno Haible  <bruno@clisp.org>
50220
50221         * tests/test-lock.c (main): Tweak skip message.
50222         * tests/test-tls.c (main): Likewise.
50223
50224 2008-09-21  Bruno Haible  <bruno@clisp.org>
50225
50226         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
50227         whether 'struct sigaction' has sa_sigaction here...
50228         (gl_PREREQ_SIG_HANDLER_H): ... not here.
50229         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
50230
50231 2008-09-21  Bruno Haible  <bruno@clisp.org>
50232
50233         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
50234         section.
50235         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
50236         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
50237         the new section.
50238         (Support for obsolete systems lacking POSIX:2001): New section.
50239         (String handling <string.h>): Move strdup to the new section.
50240         Suggested by Simon Josefsson and Paolo Bonzini.
50241
50242 2008-09-21  Bruno Haible  <bruno@clisp.org>
50243
50244         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
50245         exponents in %e and %g results on 'long double'. Needed for mingw's
50246         improved *printf functions.
50247         * tests/test-vasprintf-posix.c (test_function): Likewise.
50248         * tests/test-snprintf-posix.h (test_function): Likewise.
50249         * tests/test-sprintf-posix.h (test_function): Likewise.
50250         Reported by Eric Blake.
50251
50252 2008-09-21  Bruno Haible  <bruno@clisp.org>
50253
50254         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
50255         * tests/test-sprintf-posix.h (test_function): Likewise.
50256
50257 2008-09-21  Bruno Haible  <bruno@clisp.org>
50258
50259         * modules/getpass (Depends-on): Add strdup-posix.
50260
50261         New module 'strdup-posix'.
50262         * modules/strdup-posix: New file.
50263         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
50264         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
50265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50266         REPLACE_STRDUP.
50267         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
50268         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
50269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50270         strdup-posix.
50271
50272         * modules/strdup (Depends-on): Remove malloc-posix.
50273
50274 2008-09-20  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
50277         Wildenhues.
50278
50279 2008-09-20  Bruno Haible  <bruno@clisp.org>
50280
50281         Ensure that wint_t gets defined on IRIX 5.3.
50282         * lib/wchar.in.h (wint_t): Define if not defined by the system.
50283         * lib/wctype.in.h (wint_t): Likewise.
50284         (__wctype_wint_t): Remove type.
50285         (isw*): Use wint_t instead of __wctype_wint_t.
50286         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
50287         * modules/wchar (Files): Add m4/wint_t.m4.
50288         (Makefile.am): Substitute HAVE_WINT_T.
50289         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
50290         * tests/test-wctype.c: Check that wint_t is defined.
50291         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
50292         * doc/posix-headers/wctype.texi: Likewise.
50293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50294
50295 2008-09-18  Bruno Haible  <bruno@clisp.org>
50296
50297         * gnulib-tool (func_exit): Update comment.
50298
50299 2008-09-18  Simon Josefsson  <simon@josefsson.org>
50300
50301         * modules/getaddrinfo (Depends-on): Remove strdup, this module
50302         assumes strdup exists and does not depend on strdup to return
50303         ENOMEM on out of memory conditions.
50304
50305 2008-09-18  Bruno Haible  <bruno@clisp.org>
50306
50307         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
50308         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
50309         digits for the exponent.
50310
50311 2008-09-18  Jim Meyering  <meyering@redhat.com>
50312             Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/vasnprintf.c (decimal_point_char): Define also if
50315         NEED_PRINTF_INFINITE_LONG_DOUBLE.
50316
50317 2008-09-16  Bruno Haible  <bruno@clisp.org>
50318         and Eric Blake  <ebb9@byu.net>
50319
50320         vasnprintf: support Irix 5.3
50321         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
50322         that mishandle long double infinity.
50323         Reported by Tom G. Christensen.
50324
50325 2008-09-16  Bruno Haible  <bruno@clisp.org>
50326
50327         * doc/glibc-functions/scandir.texi: Mention the function is missing on
50328         Solaris 9.
50329         * doc/glibc-functions/alphasort.texi: Likewise.
50330         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
50331
50332 2008-09-16  Jim Meyering  <meyering@redhat.com>
50333
50334         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
50335         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
50336         a umask modification leak out of a subshell.  Otherwise, the
50337         opensolaris /bin/sh would be accepted and thus cause unwarranted
50338         failures in the coreutils test suite.
50339
50340 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
50341
50342         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
50343         to succeed.
50344
50345 2008-09-16  Jim Meyering  <meyering@redhat.com>
50346
50347         avoid spurious test failure when library is built without ACL support
50348         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
50349         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
50350         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
50351         * tests/test-copy-acl.sh: Likewise.
50352
50353 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50354
50355         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
50356         based on character occurrence counts.
50357
50358 2008-09-15  Eric Blake  <ebb9@byu.net>
50359
50360         tests: avoid some compiler warnings
50361         * tests/test-memchr.c (main): Pass NULL indirectly.
50362         * tests/test-closein.c (main): Avoid unused variable.
50363
50364 2008-09-15  Bruno Haible  <bruno@clisp.org>
50365
50366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
50367         are missing on OpenBSD 4.0 individually.
50368         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50369
50370 2008-09-15  Bruno Haible  <bruno@clisp.org>
50371
50372         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
50373         * doc/posix-functions/strerror.texi: Mention also Cygwin.
50374         * doc/posix-functions/perror.texi: Likewise.
50375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
50376         is missing.
50377         Reported by Eric Blake.
50378
50379         * lib/errno.in.h: Use replacement values >= 2000.
50380         Reported by Eric Blake.
50381
50382 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50383
50384         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
50385         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
50386         limit.
50387         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
50388         compareseq was aborted.
50389
50390 2008-09-14  Bruno Haible  <bruno@clisp.org>
50391
50392         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
50393         yvec_edit_count.
50394         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
50395         (fstrcmp_bounded): Simplify result computation accordingly.
50396
50397 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50398
50399         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
50400         (fstrcmp): Define in terms of fstrcmp_bounded.
50401         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
50402         lower_bound argument.
50403         Return quickly if the result is certainly < lower_bound.
50404         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
50405
50406 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50407
50408         * lib/diffseq.h (EARLY_ABORT): New macro.
50409         (compareseq): Change return type to bool. Return true when EARLY_ABORT
50410         evaluates to true.
50411
50412 2008-09-14  Bruno Haible  <bruno@clisp.org>
50413
50414         * modules/perror-tests: New file.
50415         * tests/test-perror.sh: New file.
50416         * tests/test-perror.c: New file.
50417
50418         New module 'perror'.
50419         * lib/stdio.in.h (perror): New declaration.
50420         * lib/perror.c: New file.
50421         * m4/perror.m4: New file.
50422         * modules/perror: New file.
50423         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
50424         * doc/posix-functions/perror.texi: Mention the perror module.
50425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
50426         REPLACE_PERROR.
50427         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
50428         REPLACE_PERROR.
50429
50430 2008-09-14  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/stdio (Makefile.am): Reorder to match the order in
50433         lib/stdio.in.h.
50434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50435
50436 2008-09-13  Bruno Haible  <bruno@clisp.org>
50437
50438         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
50439
50440 2008-09-13  Bruno Haible  <bruno@clisp.org>
50441
50442         Extend strerror to cover the added errno values.
50443         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
50444         (rpl_strerror): Provide error messages for the added errno values and
50445         for the WSA* values.
50446         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
50447         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
50448         strerror.
50449         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
50450         * modules/strerror (Depends-on): Add errno.
50451         * doc/posix-functions/strerror.texi: Document the change.
50452         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
50453         and EOVERFLOW.
50454
50455 2008-09-13  Bruno Haible  <bruno@clisp.org>
50456
50457         * modules/EOVERFLOW: Remove file.
50458         * m4/eoverflow.m4: Remove file.
50459         * modules/EOVERFLOW-tests: Remove file.
50460         * tests/test-EOVERFLOW.c: Remove file.
50461         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
50462         * modules/ftell (Depends-on): Likewise.
50463         * modules/getdelim (Depends-on): Likewise.
50464         * modules/getugroups (Depends-on): Likewise.
50465         * modules/poll (Depends-on): Likewise.
50466         * modules/snprintf (Depends-on): Likewise.
50467         * modules/sprintf-posix (Depends-on): Likewise.
50468         * modules/vasnprintf (Depends-on): Likewise.
50469         * modules/vasprintf (Depends-on): Likewise.
50470         * modules/vfprintf-posix (Depends-on): Likewise.
50471         * modules/vsnprintf (Depends-on): Likewise.
50472         * modules/vsprintf-posix (Depends-on): Likewise.
50473         * modules/xvasprintf (Depends-on): Likewise.
50474         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50475         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
50476         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
50477         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
50478         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50479         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
50480         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
50481         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
50482         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50483         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
50484         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
50485         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
50486         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50487         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
50488         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
50489         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
50490         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50491         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
50492         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
50493         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
50494         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50495         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
50496         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
50497         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
50498         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
50499         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50500         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
50501         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
50502         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
50503         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
50504         * MODULES.html.sh: Remove EOVERFLOW.
50505         * NEWS: Mention the change.
50506
50507 2008-09-13  Bruno Haible  <bruno@clisp.org>
50508
50509         * modules/errno-tests: New file.
50510         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
50511
50512         * lib/errno.in.h: New file.
50513         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
50514         * modules/errno: New file.
50515         * doc/posix-headers/errno.texi: Update documentation.
50516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
50517
50518 2008-09-13  Bruno Haible  <bruno@clisp.org>
50519
50520         * tests/test-poll.c: Use #if for native Windows, rather than testing
50521         __MSVCRT__.
50522
50523 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50524             Bruno Haible  <bruno@clisp.org>
50525
50526         * lib/glob.c: Don't include <pwd.h> on native Windows.
50527         (WINDOWS32): New macro.
50528         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
50529
50530 2008-09-13  Bruno Haible  <bruno@clisp.org>
50531
50532         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
50533         (ETIMEDOUT): Remove macro.
50534         (glthread_cond_timedwait_multithreaded): New declaration.
50535         (glthread_cond_timedwait): Use it.
50536         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
50537         (glthread_cond_timedwait_multithreaded): New function.
50538
50539 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50540
50541         * modules/poll-tests: Do not check for io.h.
50542         * tests/test-poll.c: Check for __MSVCRT__ instead.
50543
50544 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50545
50546         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
50547         * modules/poll-tests: Add inet_pton, stdbool, sockets.
50548         * tests/test-poll.c: Use them.  Use _pipe on Windows.
50549
50550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50551
50552         * modules/poll-tests: New.
50553         * tests/test-poll.c: New.
50554
50555 2008-09-12  Eric Blake  <ebb9@byu.net>
50556
50557         frexp: test for NetBSD failure on -0.0
50558         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50559         not all, bugs from NetBSD 3.0 have been fixed.
50560         * doc/posix-functions/frexp.texi (frexp): Document bug.
50561         Reported by Thomas Klausner.
50562
50563         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
50564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
50565         literal -0.0.
50566         Reported by Jonathan C. Patschke <jp@centtech.com>.
50567
50568 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50569
50570         * lib/glthread/cond.h: Use dummy implementation also if
50571         USE_WIN32_THREADS.
50572
50573 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50574
50575         * modules/fnmatch-posix (License): Change to LGPLv2+.
50576         * modules/fnmatch-gnu (License): Likewise.
50577
50578 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50579
50580         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
50581
50582 2008-09-11  Jim Meyering  <meyering@redhat.com>
50583
50584         * users.txt: Add gtk-vnc.
50585
50586 2008-09-08  Simon Josefsson  <simon@josefsson.org>
50587
50588         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
50589         rotate amounts.
50590
50591         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
50592         required for 16-bit and 8-bit rotates.
50593         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
50594         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
50595         UINT8_MAX instead of hard-coded constants.
50596         Suggested by Paul Eggert.
50597
50598 2008-09-07  Bruno Haible  <bruno@clisp.org>
50599
50600         * tests/test-striconveh.c (main): Check behaviour when converting from
50601         UTF-7.
50602
50603         Make striconveh work better with stateful encodings.
50604         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
50605         that iconv does not increment the inptr when returning -1/EINVAL.
50606
50607 2008-09-07  Bruno Haible  <bruno@clisp.org>
50608
50609         * build-aux/config.rpath: Update according to libtool-2.2.6.
50610         * build-aux/config.libpath: Likewise.
50611
50612 2008-09-06  Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
50615         * lib/freadptr.c (freadptr): Likewise.
50616         * lib/freadseek.c (freadptrinc): Likewise.
50617         Reported by Simon Josefsson.
50618
50619 2008-09-06  Bruno Haible  <bruno@clisp.org>
50620
50621         * modules/freadptr (License): Change to LGPLv2+.
50622         * modules/freadseek (License): Likewise.
50623         Suggested by Eric Blake.
50624
50625         * modules/memchr2 (License): Change to LGPLv2+.
50626         Approved by Eric Blake.
50627
50628 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50629             Bruno Haible  <bruno@clisp.org>
50630
50631         Make gnulib-tool work with native 'sed' on AIX.
50632         * gnulib-tool (sed_noop): New variable.
50633         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
50634         func_add_or_update, func_create_testdir): Use it to initialize sed
50635         script variables.
50636         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50637
50638 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
50639             Bruno Haible  <bruno@clisp.org>
50640
50641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
50642         also works after #include directives.
50643
50644 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
50645
50646         getdate.y: reject an out-of-range timezone value
50647         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
50648         the range [-24...+24].  When specified with only one or two digits,
50649         * tests/test-getdate.c: Tests for the fix.
50650         * doc/getdate.texi: Document this change.
50651
50652 2008-09-03  Bruno Haible  <bruno@clisp.org>
50653
50654         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
50655
50656 2008-09-02  Simon Josefsson  <simon@josefsson.org>
50657
50658         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
50659         <bruce.korb@gmail.com> with ideas from Ben Pfaff
50660         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
50661         Blake <ebb9@byu.net>.
50662
50663         * tests/test-bitrotate.c: Add more test vectors.
50664
50665 2008-09-02  Eric Blake  <ebb9@byu.net>
50666
50667         vasnprintf-posix: handle large precision via %.*d
50668         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
50669         when handling it ourselves.
50670         * tests/test-vasnprintf-posix.c (test_function): Add test.
50671         * tests/test-snprintf-posix.h (test_function): Likewise.
50672         * tests/test-sprintf-posix.h (test_function): Likewise.
50673         * tests/test-vasprintf-posix.c (test_function): Likewise.
50674         Reported by Alain Guibert.
50675
50676 2008-09-01  Eric Blake  <ebb9@byu.net>
50677
50678         c-stack: make configure-time check more robust
50679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
50680         successful sigaction call.
50681         Reported by Tom G. Christensen.
50682
50683 2008-09-01  Bruno Haible  <bruno@clisp.org>
50684
50685         New module 'findprog-lgpl'.
50686         * modules/findprog-lgpl: New file.
50687         * lib/findprog-lgpl.c: New file.
50688         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
50689         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
50690         to decide whether to use strdup or xstrdup, concatenated_filename or
50691         xconcatenated_filename.
50692
50693 2008-09-01  Bruno Haible  <bruno@clisp.org>
50694
50695         Split module 'concat-filename' into 'concat-filename' (LGPL) and
50696         'xconcat-filename' (GPL).
50697         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
50698         (License): Change to LGPLv2+.
50699         * modules/xconcat-filename: New file.
50700         * lib/concat-filename.h (concatenated_filename): Change specification.
50701         (xconcatenated_filename): New declaration.
50702         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
50703         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
50704         memory situations.
50705         * lib/xconcat-filename.c: New file.
50706         * NEWS: Mention the change.
50707         * lib/findprog.c: Include concat-filename.h, not filename.h.
50708         (find_in_path): Use xconcatenated_filename instead of
50709         concatenated_filename.
50710         * lib/javacomp.c: Include concat-filename.h, not filename.h.
50711         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50712         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50713         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50714         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
50715         instead of concatenated_filename.
50716         * lib/javaexec.c: Include concat-filename.h, not filename.h.
50717         (execute_java_class): Use xconcatenated_filename instead of
50718         concatenated_filename.
50719         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
50720         * modules/javacomp (Depends-on): Likewise.
50721         * modules/javaexec (Depends-on): Likewise.
50722
50723 2008-09-01  Bruno Haible  <bruno@clisp.org>
50724
50725         Split module 'filename' into 'filename' and 'concat-filename'.
50726         * modules/filename: Keep only lib/filename.h.
50727         (License): Change to LGPLv2+.
50728         * modules/concat-filename: New file, extracted from modules/filename.
50729         * lib/filename.h (concatenated_filename): Remove declaration.
50730         * lib/concat-filename.h: New file, extracted from lib/filename.h.
50731         * lib/concat-filename.c: Include concat-filename.h.
50732         * NEWS: Mention the change.
50733
50734 2008-09-01  Simon Josefsson  <simon@josefsson.org>
50735
50736         * lib/bitrotate.h (rotl8, rotr8): Add.
50737
50738         * modules/bitrotate (configure.ac): Need
50739         AC_REQUIRE([AC_C_INLINE]).
50740         (Description): Mention stdint.h.  Reported by Bruno Haible
50741         <bruno@clisp.org>.
50742
50743         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
50744         Paolo Bonzini <bonzini@gnu.org>.
50745
50746 2008-08-31  Bruno Haible  <bruno@clisp.org>
50747
50748         Assume Solaris specific bi-arch conventions on Solaris systems.
50749         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
50750         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
50751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
50752         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
50753         like acl_libdirstem.
50754         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
50755         acl_libdirstem.
50756         * NEWS: Mention the change.
50757         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
50758
50759 2008-08-31  Jim Meyering  <meyering@redhat.com>
50760
50761         * lib/strftime.h: Add comments describing the two added arguments.
50762
50763         remove duplicate #include directives
50764         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
50765         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
50766
50767 2008-08-31  Bruno Haible  <bruno@clisp.org>
50768
50769         New module 'sigpipe-die'.
50770         * modules/sigpipe-die: New file.
50771         * lib/sigpipe-die.h: New file.
50772         * lib/sigpipe-die.c: New file.
50773         * MODULES.html.sh (Signal handling): Add sigpipe-die.
50774
50775 2008-08-31  Bruno Haible  <bruno@clisp.org>
50776
50777         Don't override previously installed signal handlers.
50778         * lib/fatal-signal.c (saved_sigactions): New variable.
50779         (uninstall_handlers): Reset the signal to the saved handler, not
50780         to SIG_DFL (except when ignored).
50781         (install_handlers): Save the previous handlers.
50782
50783 2008-08-30  Bruno Haible  <bruno@clisp.org>
50784
50785         * gnulib-tool (func_reset_sigpipe): New function.
50786         (func_get_automake_snippet, func_modules_transitive_closure,
50787         func_import): Invoke it before a join command that reads from stdin,
50788         to avoid "echo: write error: Broken pipe" error messages on stderr.
50789         Reported by Sam Steingold <sds@gnu.org>.
50790
50791 2008-08-30  Bruno Haible  <bruno@clisp.org>
50792
50793         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
50794         Code copied from m4/open.m4.
50795         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
50796         access and the filename ends in a slash. Code copied from lib/open.c.
50797         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
50798         * tests/test-fopen.c (main): Check against bug with trailing slash.
50799
50800 2008-08-29  Bruno Haible  <bruno@clisp.org>
50801
50802         Avoid some "gcc -pedantic" warnings.
50803         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
50804         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
50805         * lib/dirent.in.h: Likewise.
50806         * lib/fcntl.in.h: Likewise.
50807         * lib/float.in.h: Likewise.
50808         * lib/iconv.in.h: Likewise.
50809         * lib/inttypes.in.h: Likewise.
50810         * lib/locale.in.h: Likewise.
50811         * lib/math.in.h: Likewise.
50812         * lib/netinet_in.in.h: Likewise.
50813         * lib/search.in.h: Likewise.
50814         * lib/signal.in.h: Likewise.
50815         * lib/stdarg.in.h: Likewise.
50816         * lib/stdint.in.h: Likewise.
50817         * lib/stdio.in.h: Likewise.
50818         * lib/stdlib.in.h: Likewise.
50819         * lib/string.in.h: Likewise.
50820         * lib/strings.in.h: Likewise.
50821         * lib/sys_select.in.h: Likewise.
50822         * lib/sys_socket.in.h: Likewise.
50823         * lib/sys_stat.in.h: Likewise.
50824         * lib/sys_time.in.h: Likewise.
50825         * lib/sysexits.in.h: Likewise.
50826         * lib/time.in.h: Likewise.
50827         * lib/unistd.in.h: Likewise.
50828         * lib/wchar.in.h: Likewise.
50829         * lib/wctype.in.h: Likewise.
50830         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50831         * modules/fchdir (Makefile.am): Likewise.
50832         * modules/fcntl (Makefile.am): Likewise.
50833         * modules/float (Makefile.am): Likewise.
50834         * modules/iconv_open (Makefile.am): Likewise.
50835         * modules/inttypes (Makefile.am): Likewise.
50836         * modules/locale (Makefile.am): Likewise.
50837         * modules/math (Makefile.am): Likewise.
50838         * modules/netinet_in (Makefile.am): Likewise.
50839         * modules/search (Makefile.am): Likewise.
50840         * modules/signal (Makefile.am): Likewise.
50841         * modules/stdarg (Makefile.am): Likewise.
50842         * modules/stdint (Makefile.am): Likewise.
50843         * modules/stdio (Makefile.am): Likewise.
50844         * modules/stdlib (Makefile.am): Likewise.
50845         * modules/string (Makefile.am): Likewise.
50846         * modules/strings (Makefile.am): Likewise.
50847         * modules/sys_select (Makefile.am): Likewise.
50848         * modules/sys_socket (Makefile.am): Likewise.
50849         * modules/sys_stat (Makefile.am): Likewise.
50850         * modules/sys_time (Makefile.am): Likewise.
50851         * modules/sysexits (Makefile.am): Likewise.
50852         * modules/time (Makefile.am): Likewise.
50853         * modules/unistd (Makefile.am): Likewise.
50854         * modules/wchar (Makefile.am): Likewise.
50855         * modules/wctype (Makefile.am): Likewise.
50856         Reported by Reuben Thomas <rrt@sc3d.org>.
50857
50858 2008-08-29  Bruno Haible  <bruno@clisp.org>
50859
50860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50861         any more.
50862
50863 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50864
50865         * MODULES.html.sh (Misc): Add bitrotate.
50866
50867         * modules/bitrotate: New file.
50868
50869         * lib/bitrotate.h: New file.
50870
50871         * modules/bitrotate-tests: New file.
50872
50873         * tests/test-bitrotate.c: New file.
50874
50875         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50876         on the bitrotate module.
50877
50878         * lib/arctwo.c: Use new bitrotate module.
50879
50880 2008-08-29  Jim Meyering  <meyering@redhat.com>
50881
50882         bootstrap: merge changes from coreutils
50883         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50884         of copied files.  Remove a kludge, now that this is fixed.
50885         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50886         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50887         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50888
50889 2008-08-29  Bruno Haible  <bruno@clisp.org>
50890
50891         * MODULES.html.sh: Remove --cvs-urls option.
50892
50893 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50894
50895         maint.mk: adjust to file name change
50896         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50897
50898 2008-08-28  Jim Meyering  <meyering@redhat.com>
50899
50900         * modules/getndelim2 (License): Relicense to LGPLv2+.
50901         Approved by Richard Stallman for the version of 1995, and by
50902         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50903
50904 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50905
50906         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50907         dummy if one is not available.  Do not touch them if
50908         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50909         (getc_maybe_unlocked): New.
50910         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50911
50912 2008-08-26  Eric Blake  <ebb9@byu.net>
50913
50914         doc/INSTALL: resync from autoconf
50915         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50916         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50917         moving...
50918         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50919         * INSTALL: Regenerate.
50920         * INSTALL.ISO: New file.
50921         * INSTALL.UTF-8: Likewise.
50922
50923 2008-08-26  Jim Meyering  <meyering@redhat.com>
50924
50925         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50926         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50927         these definitions conditional, so that they may be overridden, too.
50928
50929 2008-08-26  Bruno Haible  <bruno@clisp.org>
50930
50931         Generate INSTALL file variants with prettier quotes.
50932         * doc/Makefile (INSTALL_PRELUDE): New macro.
50933         (INSTALL): Use it.
50934         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50935
50936 2008-08-26  Bruno Haible  <bruno@clisp.org>
50937
50938         Run makeinfo in an English locale.
50939         * doc/Makefile (MAKEINFO): New variable.
50940
50941 2008-08-26  Bruno Haible  <bruno@clisp.org>
50942
50943         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50944         Suggested by Eric Blake.
50945
50946 2008-08-25  Bruno Haible  <bruno@clisp.org>
50947
50948         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50949
50950 2008-08-25  Eric Blake  <ebb9@byu.net>
50951
50952         c-stack: test that stack overflow can be caught
50953         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50954         that platform allows handling stack overflow; at least OS/2 EMX
50955         has sigaltstack, but crashes before transferring control to
50956         handler on stack overflow.
50957         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50958         check for HAVE_STACK_OVERFLOW_HANDLING.
50959         Reported by Elbert Pol.
50960
50961 2008-08-25  Bruno Haible  <bruno@clisp.org>
50962
50963         * doc/posix-functions/strftime.texi: Fix description of strftime
50964         module.
50965
50966 2008-08-24  Bruno Haible  <bruno@clisp.org>
50967
50968         * tests/uniwidth/test-uc_width2.c: New file.
50969         * tests/uniwidth/test-uc_width2.sh: New file.
50970         * modules/uniwidth/width-tests (Files): Add the new files.
50971         (TESTS): Add uniwidth/test-uc_width2.sh.
50972         (TESTS_ENVIRONMENT): New variable.
50973         (check_PROGRAMS): Add test-uc_width2.
50974         (test_uc_width2_SOURCES): New variable.
50975
50976         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50977         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50978         not 0x00AB.
50979         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50980
50981 2008-08-22  Eric Blake  <ebb9@byu.net>
50982
50983         test-lock, test-tls: mention why a test is skipped
50984         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50985         skipped.
50986         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50987
50988         count-one-bits: relax license
50989         * modules/count-one-bits (License): Relicense to LGPLv2+.
50990         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50991
50992 2008-08-22  Andreas Schwab  <schwab@suse.de>
50993
50994         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50995         Remove spurious space in assignment.
50996
50997 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50998
50999         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
51000         Paul Eggert <eggert@CS.UCLA.EDU>.
51001
51002 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
51003
51004         * modules/gettext: Add m4/threadlib.m4.
51005
51006 2008-08-19  Eric Blake  <ebb9@byu.net>
51007
51008         test-c-stack: fix compilation failure on FreeBSD 5.0
51009         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
51010         headers before <sys/resource.h>.
51011         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
51012         the bug.
51013         Reported by Nelson H. F. Beebe.
51014
51015         strverscmp: migrate from "strverscmp.h" to <string.h>
51016         * modules/string (Makefile.am): Add new hooks.
51017         * modules/strverscmp (Files): Remove strverscmp.h.
51018         (Depends-on): Add string.
51019         (configure.ac): Add indicator.
51020         (Include): Mention new header.
51021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
51022         defaults.
51023         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
51024         results.
51025         * lib/strverscmp.h: Delete.
51026         * lib/string.in.h (strverscmp): Provide declaration, when needed.
51027         * tests/test-strverscmp.c (includes): Adjust client.
51028         * lib/check-version.c (includes): Likewise.
51029         * NEWS: Document the change.
51030
51031         strverscmp: add unit test
51032         * modules/strverscmp-tests: New file.
51033         * tests/test-strverscmp.c: Likewise.
51034
51035 2008-08-19  Simon Josefsson  <simon@josefsson.org>
51036
51037         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
51038         regarding Windows crypto stuff, from Mono.
51039
51040 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
51041
51042         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
51043         if present, for intel RND.  Return error on failures.
51044
51045 2008-08-18  Ben Pfaff  <blp@gnu.org>
51046
51047         gitlog-to-changelog: give better diagnostic for failed pipe-open
51048         * build-aux/gitlog-to-changelog: Improve error message: suggest
51049         that the version of Git may be too old.
51050
51051 2008-08-18  Simon Josefsson  <simon@josefsson.org>
51052
51053         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
51054         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
51055
51056 2008-08-18  Bruno Haible  <bruno@clisp.org>
51057
51058         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
51059         pthread_in_use().
51060
51061 2008-08-18  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/glthread/threadlib.c: Include <pthread.h>.
51064
51065 2008-08-18  Bruno Haible  <bruno@clisp.org>
51066
51067         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
51068         glthread_recursive_lock_* macros.
51069         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
51070         Fix syntax error.
51071
51072 2008-08-18  Bruno Haible  <bruno@clisp.org>
51073
51074         * lib/glthread/thread.c: Avoid forcing a context switch right after
51075         thread creation.
51076
51077 2008-08-17  Bruno Haible  <bruno@clisp.org>
51078
51079         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
51080         * lib/glthread/thread.h: Provide Win32 specific implementation.
51081         * modules/thread (Files): Add lib/glthread/thread.c.
51082         (Depends-on): Add lock.
51083         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
51084
51085 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51086
51087         New module 'yield'.
51088         * modules/yield: New file.
51089         * lib/glthread/yield.h: New file.
51090         * m4/yield.m4: New file.
51091         * MODULES.html.sh (Multithreading): Add yield.
51092
51093 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51094
51095         New module 'thread'.
51096         * modules/thread: New file.
51097         * lib/glthread/thread.h: New file.
51098         * m4/thread.m4: New file.
51099         * MODULES.html.sh (Multithreading): Add thread.
51100
51101 2008-08-17  Bruno Haible  <bruno@clisp.org>
51102
51103         * lib/glthread/lock.h: Include <stdlib.h> always.
51104         * lib/glthread/tls.h: Likewise.
51105         * lib/glthread/cond.h: Likewise.
51106
51107 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51108
51109         New module 'cond'.
51110         * modules/cond: New file.
51111         * lib/glthread/cond.h: New file.
51112         * lib/glthread/cond.c: New file.
51113         * m4/cond.m4: New file.
51114         * MODULES.html.sh (Multithreading): Add cond.
51115
51116 2008-08-16  Eric Blake  <ebb9@byu.net>
51117
51118         c-stack: fix regression on Irix 5.3 from 2008-06-21
51119         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
51120         sa_sigaction...
51121         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
51122         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
51123         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
51124         * modules/signal (Makefile.am): Use the value.
51125         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
51126         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
51127         * doc/posix-headers/signal.texi (signal.h): Document this
51128         portability issue.
51129         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
51130         Reported by Tom G. Christensen.
51131
51132 2008-08-17  Bruno Haible  <bruno@clisp.org>
51133
51134         New module 'threadlib'.
51135         * modules/threadlib: New file.
51136         * lib/glthread/threadlib.c: New file, extracted from
51137         lib/glthread/lock.c.
51138         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
51139         functions.
51140         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
51141         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
51142         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
51143         macros.
51144         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
51145         (gl_DISABLE_THREADS): Remove macro.
51146         * modules/lock (Files): Remove build-aux/config.rpath.
51147         (Depends-on): Remove havelib. Add threadlib.
51148         (configure.ac-early): Remove section.
51149         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
51150         * modules/tls (Depends-on): Remove lock. Add threadlib.
51151         (Link): New section, copied from threadlib.
51152         * MODULES.html.sh (Multithreading): Add threadlib.
51153
51154 2008-08-14  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
51157         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
51158         glthread_rwlock_unlock, glthread_rwlock_destroy,
51159         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
51160         glthread_recursive_lock_destroy): Define as macros always.
51161         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
51162         glthread_lock_lock.
51163         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
51164         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
51165         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
51166         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
51167         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
51168         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
51169         (glthread_recursive_lock_lock_func): Renamed from
51170         glthread_recursive_lock_lock.
51171         (glthread_recursive_lock_unlock_func): Renamed from
51172         glthread_recursive_lock_unlock.
51173         (glthread_recursive_lock_destroy_func): Renamed from
51174         glthread_recursive_lock_destroy.
51175
51176 2008-08-14  Bruno Haible  <bruno@clisp.org>
51177
51178         * lib/glthread/lock.h: Renamed from lib/lock.h.
51179         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
51180         * lib/glthread/tls.h: Renamed from lib/tls.h.
51181         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
51182         * lib/fstrcmp.c: Update includes.
51183         * lib/strsignal.c: Update includes.
51184         * modules/lock (Files, Makefile.am): Update.
51185         (Include): Change to "glthread/lock.h".
51186         * modules/tls (Files, Makefile.am): Update.
51187         (Include): Change to "glthread/tls.h".
51188         * tests/test-lock.c: Update includes.
51189         * tests/test-tls.c: Update includes.
51190         * NEWS: Mention the renamed header files.
51191
51192 2008-08-11  Jim Meyering  <meyering@redhat.com>
51193
51194         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
51195
51196 2008-08-11  Eric Blake  <ebb9@byu.net>
51197
51198         test-c-stack: avoid C99-ism
51199         * tests/test-c-stack.c (main): Fix whitespace, move declaration
51200         before statement.
51201         Reported by Alain Guibert.
51202
51203 2008-08-10  Jim Meyering  <meyering@redhat.com>
51204
51205         ensure that return value of uinttostr et al are not ignored
51206         * lib/inttostr.h (__GNUC_PREREQ): Define.
51207         (__attribute_warn_unused_result__): Define.
51208         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
51209
51210 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
51211
51212         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
51213         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
51214
51215 2008-08-07  Jim Meyering  <meyering@redhat.com>
51216
51217         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
51218
51219         * modules/mkstemp (License): Relicense under LGPLv2+.
51220         * modules/tempname (License): Likewise.
51221
51222 2008-08-06  Bruno Haible  <bruno@clisp.org>
51223
51224         * lib/poll.c (poll): Further micro-optimization.
51225
51226 2008-08-06  Jim Meyering  <meyering@redhat.com>
51227
51228         inet_pton.c: use locale-independent tolower
51229         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
51230         (inet_pton6): Use c_tolower rather than tolower.
51231         * modules/inet_pton (Depends-on): Add c-ctype.
51232
51233 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
51234
51235         * lib/poll.c (poll): Avoid division when timeout is 0, cache
51236         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
51237
51238 2008-08-06  Jim Meyering  <meyering@redhat.com>
51239
51240         * modules/inet_pton (License): Relicense under LGPLv2+.
51241
51242 2008-08-03  Bruno Haible  <bruno@clisp.org>
51243
51244         Additional non-aborting API for lock and tls.
51245         * lib/lock.h: Include <errno.h>.
51246         (glthread_lock_init): New macro/function.
51247         (gl_lock_init): Define as wrapper around glthread_lock_init.
51248         (glthread_lock_lock): New macro/function.
51249         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
51250         (glthread_lock_unlock): New macro/function.
51251         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
51252         (glthread_lock_destroy): New macro/function.
51253         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
51254         (glthread_rwlock_init): New macro/function.
51255         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
51256         (glthread_rwlock_rdlock): New macro/function.
51257         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
51258         (glthread_rwlock_wrlock): New macro/function.
51259         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
51260         (glthread_rwlock_unlock): New macro/function.
51261         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
51262         (glthread_rwlock_destroy): New macro/function.
51263         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
51264         (glthread_recursive_lock_init): New macro/function.
51265         (gl_recursive_lock_init): Define as wrapper around
51266         glthread_recursive_lock_init.
51267         (glthread_recursive_lock_lock): New macro/function.
51268         (gl_recursive_lock_lock): Define as wrapper around
51269         glthread_recursive_lock_lock.
51270         (glthread_recursive_lock_unlock): New macro/function.
51271         (gl_recursive_lock_unlock): Define as wrapper around
51272         glthread_recursive_lock_unlock.
51273         (glthread_recursive_lock_destroy): New macro/function.
51274         (gl_recursive_lock_destroy): Define as wrapper around
51275         glthread_recursive_lock_destroy.
51276         (glthread_once): New macro/function.
51277         (gl_once): Define as wrapper around glthread_once.
51278         Update function declarations.
51279         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
51280         glthread_rwlock_init. Return error code.
51281         (glthread_rwlock_rdlock_multithreaded): Renamed from
51282         glthread_rwlock_rdlock. Return error code.
51283         (glthread_rwlock_wrlock_multithreaded): Renamed from
51284         glthread_rwlock_wrlock. Return error code.
51285         (glthread_rwlock_unlock_multithreaded): Renamed from
51286         glthread_rwlock_unlock. Return error code.
51287         (glthread_rwlock_destroy_multithreaded): Renamed from
51288         glthread_rwlock_destroy. Return error code.
51289         (glthread_recursive_lock_init_multithreaded): Renamed from
51290         glthread_recursive_lock_init. Return error code.
51291         (glthread_recursive_lock_lock_multithreaded): Renamed from
51292         glthread_recursive_lock_lock. Return error code.
51293         (glthread_recursive_lock_unlock_multithreaded): Renamed from
51294         glthread_recursive_lock_unlock. Return error code.
51295         (glthread_recursive_lock_destroy_multithreaded): Renamed from
51296         glthread_recursive_lock_destroy. Return error code.
51297         (glthread_once_call): Make static.
51298         (glthread_once_multithreaded): Renamed from glthread_once.
51299         * lib/tls.h: Include <errno.h>.
51300         (glthread_tls_key_init): New macro/function.
51301         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
51302         (glthread_tls_set): New macro/function.
51303         (gl_tls_set): Define as wrapper around glthread_tls_set.
51304         (glthread_tls_key_destroy): New macro/function.
51305         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
51306         Update function declarations.
51307         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
51308         glthread_tls_get.
51309         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51310
51311 2008-08-04  Eric Blake  <ebb9@byu.net>
51312
51313         gnumakefile: use space, not TAB, outside of targets
51314         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
51315
51316 2008-08-02  Jim Meyering  <meyering@redhat.com>
51317
51318         getdate.y: avoid locale-dependent date parsing failure
51319         In Turkish locales, getdate would fail to recognize keywords
51320         containing a lowercase "i".  The solution is not to rely on
51321         locale-sensitive case-conversion.
51322         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
51323         (lookup_word): Use c_toupper in place of toupper.
51324         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
51325         Reported by Vefa Bicakci <bicave@superonline.com> in
51326         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
51327         * modules/getdate (Depends-on): Add c-ctype.
51328
51329 2008-08-02  Bruno Haible  <bruno@clisp.org>
51330
51331         * gnulib-tool (func_import): When updating or creating a .gitignore
51332         file, prepend each added line with a slash, and ignore leading slashes
51333         from the existing lines.
51334         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51335
51336 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51337
51338         Portability fix for GNU make 3.79.1.
51339         * top/GNUmakefile: Avoid 'else COND', which older GNU make
51340         versions do not understand.
51341
51342 2008-08-01  Bruno Haible  <bruno@clisp.org>
51343
51344         Work around bug of HP-UX 10.20 cc with -0.0 literal.
51345         * tests/test-isnanf.h (zero): New variable.
51346         (main): Avoid literal -0.0f.
51347         * tests/test-isnand.h (zero): New variable.
51348         (main): Avoid literal -0.0.
51349         * tests/test-isnanl.h (zero): New variable.
51350         (main): Avoid literal -0.0L.
51351         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
51352         (test_float, test_double, test_long_double): Avoid literals -0.0f,
51353         -0.0, -0.0L.
51354         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
51355         (test_signbitd): Avoid literal -0.0.
51356         (test_signbitl): Avoid literal -0.0L.
51357         * tests/test-ceilf1.c (zero): New variable.
51358         (main): Avoid literal -0.0f.
51359         * tests/test-ceill.c (zero): New variable.
51360         (main): Avoid literal -0.0L.
51361         * tests/test-floorf1.c (zero): New variable.
51362         (main): Avoid literal -0.0f.
51363         * tests/test-floorl.c (zero): New variable.
51364         (main): Avoid literal -0.0L.
51365         * tests/test-roundf1.c (zero): New variable.
51366         (main): Avoid literal -0.0f.
51367         * tests/test-round1.c (zero): New variable.
51368         (main): Avoid literal -0.0.
51369         * tests/test-roundl.c (zero): New variable.
51370         (main): Avoid literal -0.0L.
51371         * tests/test-truncf1.c (zero): New variable.
51372         (main): Avoid literal -0.0f.
51373         * tests/test-trunc1.c (zero): New variable.
51374         (main): Avoid literal -0.0.
51375         * tests/test-truncl.c (zero): New variable.
51376         (main): Avoid literal -0.0L.
51377         * tests/test-frexp.c (zero): New variable.
51378         (main): Avoid literal -0.0.
51379         * tests/test-frexpl.c (zero): New variable.
51380         (main): Avoid literal -0.0L.
51381         * tests/test-ldexpl.c (zero): New variable.
51382         (main): Avoid literal -0.0L.
51383         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51384         (zerod, zerol): New variables.
51385         (test_function): Avoid literals -0.0, -0.0L.
51386         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51387         (zerod, zerol): New variables.
51388         (test_function): Avoid literals -0.0, -0.0L.
51389         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51390         (zerod, zerol): New variables.
51391         (test_function): Avoid literals -0.0, -0.0L.
51392         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51393         (zerod, zerol): New variables.
51394         (test_function): Avoid literals -0.0, -0.0L.
51395         * tests/test-strtod.c (zero): New variable.
51396         (main): Avoid literal -0.0.
51397         Reported by Jonathan C. Patschke <jp@centtech.com>.
51398
51399 2008-07-31  Jim Meyering  <meyering@redhat.com>
51400
51401         sha256.h: correct definition of SHA224_DIGEST_SIZE
51402         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
51403         Reported by Paulie Pena IV <paulie4@gmail.com>.
51404         Define as 224 / 8, rather than as a literal.
51405         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
51406         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
51407         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
51408
51409 2008-07-31  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
51412         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
51413         Reported by Jonathan Patschke <jp@centtech.com>.
51414
51415 2008-07-31  Bruno Haible  <bruno@clisp.org>
51416
51417         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
51418         Reported by Paolo Bonzini <bonzini@gnu.org>.
51419
51420 2008-07-30  Eric Blake  <ebb9@byu.net>
51421
51422         test-strtod: allow compilation without -lm
51423         * tests/test-strtod.c (main): Avoid link dependence on fabs.
51424         Reported by Dennis Clarke <blastwave@gmail.com>.
51425
51426 2008-07-28  Jim Meyering  <meyering@redhat.com>
51427
51428         bootstrap: work also when there are no .po files in po/
51429         * build-aux/bootstrap (update_po_files): Complete the change
51430         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
51431
51432 2008-07-27  Jim Meyering  <meyering@redhat.com>
51433
51434         * users.txt: Add zile.
51435
51436 2008-07-26  Ben Pfaff  <blp@gnu.org>
51437
51438         Add missing dependencies on new m4/exponent[fdl].m4 files.
51439         * modules/isnanf-nolibm: Add m4/exponentf.m4.
51440         * modules/isnand-nolibm: Add m4/exponentd.m4.
51441         * modules/isnanl-nolibm: Add m4/exponentl.m4.
51442         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
51443         m4/isnan[fdl].m4, because the macros actually used moved.
51444         Reported by Jim Meyering.
51445
51446 2008-07-14  Ben Pfaff  <blp@gnu.org>
51447
51448         Add isinf module.
51449         * lib/isinf.c: New file.
51450         * lib/math.in.h: Define isinf macro if we have decided to replace
51451         it.
51452         * m4/isinf.m4: New file.
51453         * m4/math_h.m4: Initialize and substitute variables for isinf
51454         module.
51455         * modules/isinf: New file.
51456         * modules/isinf-tests: New file.
51457         * modules/math: Add substitutions for new module.
51458         * tests/test-isinf.c: New file.
51459         * doc/posix-functions/isinf.texi: Mention new module.
51460         * MODULES.html.sh: Mention new module.
51461
51462 2008-07-14  Ben Pfaff  <blp@gnu.org>
51463
51464         Factor out some macros for use by additional modules.
51465         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
51466         exponentf.m4.
51467         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
51468         exponentd.m4.
51469         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
51470         file exponentl.m4.
51471         * m4/exponentf.m4: New file.
51472         * m4/exponentd.m4: New file.
51473         * m4/exponentl.m4: New file.
51474         * modules/isnanf: Use new file m4/exponentf.m4.
51475         * modules/isnand: Use new file m4/exponentd.m4.
51476         * modules/isnanl: Use new file m4/exponentl.m4.
51477
51478 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
51479
51480         mktime.c: normalize tp->tm_isdst value to -1/0/1.
51481         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
51482         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
51483         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
51484
51485         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
51486         readlink on platforms without PATH_MAX.
51487
51488 2008-07-21  Eric Blake  <ebb9@byu.net>
51489
51490         Warn, not fail, on stale version.
51491         * top/GNUmakefile (_curr-ver): Tone down previous patch.
51492
51493         Don't allow installation with stale devel version number.
51494         * top/GNUmakefile (_is-install-target): New macro.
51495         (_curr-ver): Forbid installation with stale version number.
51496
51497 2008-07-20  Bruno Haible  <bruno@clisp.org>
51498
51499         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
51500         TESTS_ENVIRONMENT.
51501         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
51502
51503 2008-07-20  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/c-stack.h (c_stack_action): Add documentation.
51506         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
51507
51508 2008-07-20  Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
51511         * modules/readlink (License): Likewise.
51512
51513 2008-07-17  Eric Blake  <ebb9@byu.net>
51514
51515         * modules/c-stack (Link): Fix typo.
51516
51517         Make c-stack use libsigsegv, when available.
51518         * modules/c-stack (Depends-on): Add libsigsegv.
51519         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
51520         needed.
51521         * lib/c-stack.c (SIGSTKSZ): Define fallback.
51522         (segv_handler, overflow_handler, c_stack_action)
51523         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
51524         implementation when libsigsegv is available, but only when using
51525         the library is necessary.
51526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
51527         comment, explaining why XSI check fails on Linux.
51528         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
51529         * tests/test-c-stack2.sh: Tweak skip message.
51530         * NEWS: Document new link-time requirements.
51531
51532 2008-07-16  Eric Blake  <ebb9@byu.net>
51533
51534         c-stack: Expose false positives when not using libsigsegv.
51535         * modules/c-stack-tests (Files): Expand test.
51536         * tests/test-c-stack.c (main): Add means to conditionally trigger
51537         non-overflow SIGSEGV.
51538         * tests/test-c-stack2.sh: New file.
51539
51540 2008-07-14  Bruno Haible  <bruno@clisp.org>
51541
51542         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
51543         Reported by Eric Blake.
51544
51545 2008-07-14  Sam Steingold  <sds@gnu.org>
51546             Bruno Haible  <bruno@clisp.org>
51547
51548         New module libsigsegv.
51549         * modules/libsigsegv: New file.
51550         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
51551         modifications.
51552         * MODULES.html.sh (Signal handling): New section.
51553
51554 2008-07-14  Bruno Haible  <bruno@clisp.org>
51555
51556         * modules/unictype/ctype-* (Description): Add the word "function".
51557         Improves the resulting doc in MODULES.html.
51558
51559 2008-07-12  Ben Pfaff  <blp@gnu.org>
51560
51561         Add longlong module.
51562         * modules/longlong: New file.
51563
51564 2008-07-12  Bruno Haible  <bruno@clisp.org>
51565
51566         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
51567         to empty.
51568
51569 2008-07-10  Ben Pfaff  <blp@gnu.org>
51570
51571         Add isnan module.
51572         * doc/posix-functions/isnan.texi: Mention new module.
51573         * lib/math.in.h: Define isnan macro if we have decided to replace
51574         it.
51575         * m4/isnan.m4: New file.
51576         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
51577         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
51578         also.
51579         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
51580         redundancy.
51581         * m4/math_h.m4: Initialize and substitute variables for isnan
51582         module.
51583         * modules/isnan: New file.
51584         * modules/isnan-tests: New file.
51585         * modules/math: Add substitutions for new module.
51586         * tests/test-isnan.c: New file.
51587         * MODULES.html.sh: Mention new module.
51588
51589 2008-07-10  Ben Pfaff  <blp@gnu.org>
51590
51591         Add isnanf module.
51592         * lib/isnanf.m4: New file.
51593         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
51594         (gl_HAVE_ISNANF_IN_LIBM): New macro.
51595         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
51596         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
51597         * modules/isnanf: New file.
51598         * modules/isnanf-tests: New file.
51599         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
51600         files.
51601         * tests/test-isnanf-nolibm.c: factored most of its contents into
51602         new file tests/test-isnanf.h.
51603         * tests/test-isnanf.h: New file.
51604         * tests/test-isnanf.c: New file.
51605         * MODULES.html.sh: Mention new module.
51606         * doc/glibc-functions/isnanf.texi: Mention new module.
51607
51608 2008-07-10  Ben Pfaff  <blp@gnu.org>
51609
51610         Add isnand module.
51611         * lib/isnand.h: New file.
51612         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
51613         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
51614         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
51615         functionality also.
51616         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
51617         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
51618         (gl_HAVE_ISNAND_IN_LIBM): New macro.
51619         * modules/isnand: New file.
51620         * modules/isnand-tests: New file.
51621         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
51622         files.
51623         * tests/test-isnand-nolibm.c: factored most of its contents into
51624         new file tests/test-isnand.h.
51625         * tests/test-isnand.h: New file.
51626         * tests/test-isnand.c: New file.
51627         * MODULES.html.sh: Mention new module.
51628
51629 2008-07-10  Ben Pfaff  <blp@gnu.org>
51630
51631         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
51632         * lib/isnand.h: Rename lib/isnand-nolibm.h.
51633         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
51634         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
51635         * modules/isnanf-nolibm: Update references to renamed files.
51636         * modules/isnand-nolibm: Likewise.
51637         * modules/isnanf-nolibm-tests: Likewise.
51638         * modules/isnand-nolibm-tests: Likewise.
51639         * lib/frexp.c: Likewise.
51640         * lib/isfinite.c: Likewise.
51641         * lib/signbitd.c: Likewise.
51642         * lib/signbitf.c: Likewise.
51643         * lib/vasnprintf.c: Likewise.
51644         * tests/test-ceilf1.c: Likewise.
51645         * tests/test-ceilf2.c: Likewise.
51646         * tests/test-floorf1.c: Likewise.
51647         * tests/test-floorf2.c: Likewise.
51648         * tests/test-frexp.c: Likewise.
51649         * tests/test-round1.c: Likewise.
51650         * tests/test-round2.c: Likewise.
51651         * tests/test-roundf1.c: Likewise.
51652         * tests/test-strtod.c: Likewise.
51653         * tests/test-trunc1.c: Likewise.
51654         * tests/test-trunc2.c: Likewise.
51655         * tests/test-truncf1.c: Likewise.
51656         * tests/test-truncf2.c: Likewise.
51657         * NEWS: Mention the renamed header files.
51658
51659 2008-07-11  Jim Meyering  <meyering@redhat.com>
51660
51661         vc-list-files: make the last-resort awk code more portable
51662         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
51663         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
51664         does not support it.
51665
51666 2008-07-10  Eric Blake  <ebb9@byu.net>
51667
51668         Work with tar's bootstrap.
51669         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
51670         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
51671         an m4 comment.
51672
51673 2008-07-09  Jim Meyering  <meyering@redhat.com>
51674
51675         posix-shell.m4: fix typo that made this test malfunction
51676         * m4/posix-shell.m4: Remove capitalization in variable name.
51677
51678 2008-07-08  Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/onceonly.m4: Update comments.
51681         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51682
51683 2008-07-04  Jim Meyering  <meyering@redhat.com>
51684
51685         * users.txt: Add vc-dwim.
51686         (bison, coreutils): Use the gitweb URL.
51687
51688 2008-07-03  Jim Meyering  <meyering@redhat.com>
51689
51690         * users.txt: Add libffcall.  From Sam Steingold.
51691
51692 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
51693
51694         getdate.y: do not ignore TZ with relative day, month or year offset
51695         * lib/getdate.y (get_date): Move the tz-handling block to follow the
51696         relative-date-handling, since otherwise, the latter would clobber the
51697         sole output (an updated Start value) of the tz-handling block.
51698         * tests/test-getdate.c: Tests for the fix
51699
51700 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51701
51702         Recognize 'foo_LIBRARIES += libgnu.a'.
51703         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
51704         makefile snippet has already specified an installation location,
51705         also using '+='.
51706
51707 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
51708
51709         getdate.y: factor out common actions
51710         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
51711         Use them in place of open-coded actions.
51712
51713 2008-07-01  Simon Josefsson  <simon@josefsson.org>
51714
51715         Add self-test for getdate module.
51716         * modules/getdate-tests: New file.
51717         * tests/test-getdate.c: New file.
51718
51719 2008-06-29  Bruno Haible  <bruno@clisp.org>
51720
51721         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
51722         .gitignore.
51723         Reported by Sylvain Beucler <beuc@beuc.net>.
51724
51725 2008-06-29  Bruno Haible  <bruno@clisp.org>
51726
51727         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
51728         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
51729
51730 2008-06-29  Bruno Haible  <bruno@clisp.org>
51731
51732         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
51733         EXTRA_DIST.
51734         Reported by Sylvain Beucler <beuc@beuc.net>.
51735
51736 2008-06-26  Jim Meyering  <meyering@redhat.com>
51737
51738         make several modules depend on the "open" module
51739         This provides slightly increased consistency when opening-for-write
51740         the name of a non-directory spelled with a trailing slash.
51741         * modules/chdir-safer: Likewise.
51742         * modules/chown: Likewise.
51743         * modules/clean-temp: Likewise.
51744         * modules/copy-file: Likewise.
51745         * modules/fchdir: Likewise.
51746         * modules/fcntl-safer: Likewise.
51747         * modules/pipe: Likewise.
51748         * modules/utime: Likewise.
51749         Prompted by Eric Blake and Bruno Haible.
51750
51751 2008-06-24  Andreas Schwab  <schwab@suse.de>
51752
51753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
51754         literals can be used as initializers for global variables.
51755
51756 2008-06-23  Eric Blake  <ebb9@byu.net>
51757
51758         Make gnulib-cache.m4 easier to diff.
51759         * gnulib-tool (func_import): Allow newlines when reading cached
51760         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
51761
51762 2008-06-23  Bruno Haible  <bruno@clisp.org>
51763
51764         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
51765         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
51766         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
51767         m4/signalblocking.m4.
51768         (gl_PREREQ_SIGACTION): Don't invoke it.
51769         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
51770         gl_PREREQ_SIG_HANDLER_H.
51771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51772         Don't check for sigaction here.
51773
51774 2008-06-23  Bruno Haible  <bruno@clisp.org>
51775
51776         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
51777         (install_handlers): Don't set the SA_RESETHAND flag.
51778
51779 2008-06-23  Bruno Haible  <bruno@clisp.org>
51780
51781         * m4/sigaction.m4: Comment fixes.
51782         * lib/signal.in.h: Likewise.
51783
51784 2008-06-23  Eric Blake  <ebb9@byu.net>
51785
51786         Fix typo.
51787         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
51788
51789         Avoid SA_ namespace.
51790         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
51791         Reported by Ralf Wildenhues.
51792
51793         Avoid test failure due to SA_RESTORER.
51794         * tests/test-sigaction.c (SA_MASK): New macro.
51795         (main): Avoid failing due to extension flags being set.
51796         Reported by Jim Meyering.
51797
51798         Revert use of sig-handler.h in sigprocmask.c.
51799         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
51800         it requires the existence of struct sigaction.
51801         * lib/sigprocmask.c (handler_t): Restore typedef.
51802         (rpl_signal, old_handlers): Use local type.
51803
51804 2008-06-22  Bruno Haible  <bruno@clisp.org>
51805
51806         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51807         conditionally.
51808         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51809
51810 2008-06-22  Bruno Haible  <bruno@clisp.org>
51811
51812         * doc/posix-functions/siginterrupt.texi: Move note.
51813
51814         * lib/signal.in.h (SA_RESTART): New macro.
51815         * lib/sigaction.c: Update comment.
51816
51817         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51818
51819         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51820         (gl_PREREQ_SIGPROCMASK): Invoke it.
51821         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51822
51823         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51824
51825         * lib/sigprocmask.c: Update a comment.
51826
51827 2008-06-21  Eric Blake  <ebb9@byu.net>
51828
51829         Use sigaction module rather than signal().
51830         * modules/c-stack (Depends-on): Add sigaction.
51831         * modules/fatal-signal (Depends-on): Likewise.
51832         * modules/nanosleep (Depends-on): Likewise.
51833         * modules/sigprocmask (Files): Add sig-handler.h.
51834         * modules/sigaction (Files): Likewise.
51835         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51836         Eggert.
51837         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51838         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51839         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51840         (init_fatal_signals): Likewise.
51841         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51842         (siginterrupt): Delete fallback.
51843         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51844         instead.
51845         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51846         siginterrupt.
51847
51848         New module sigaction, for mingw.
51849         * modules/sigaction: New module...
51850         * modules/sigaction-tests: ...and its test.
51851         * m4/sigaction.m4: New file.
51852         * lib/sigaction.c: Likewise.
51853         * tests/test-sigaction.c: Likewise.
51854         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51855         * modules/signal (Makefile.am): Likewise.
51856         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51857         needed.
51858         * doc/posix-headers/signal.texi (signal.h): Mention provided
51859         types.
51860         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51861         that sigaction is preferable.
51862         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51863         module.
51864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51865         sigaction.
51866
51867         Improve robustness of sigprocmask by overriding signal.
51868         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51869         is in use.
51870         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51871         (SIGKILL, SIGSTOP): Provide fallbacks.
51872         (rpl_signal): Implement.
51873         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51874         signal can be called inside handlers.
51875
51876         Fix nanosleep module on mingw.
51877         * modules/nanosleep (Depends-on): Add sys_select.
51878         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51879
51880         Fix licensing of sigprocmask.
51881         * modules/raise (License): Relicense as LGPL.
51882
51883 2008-06-21  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51886         result if it contains question marks.
51887         Reported by Michael Geng <linux@michaelgeng.de>.
51888
51889 2008-06-19  Bruno Haible  <bruno@clisp.org>
51890
51891         Fix CVS-ism.
51892         * doc/gnulib.texi: Include updated-stamp.texi.
51893         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51894         (updated-stamp.texi): New rule.
51895         (gnulib.info): Depend on it.
51896         * doc/.gitignore: Add updated-stamp.texi.
51897         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51898
51899 2008-06-19  Bruno Haible  <bruno@clisp.org>
51900
51901         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51902         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51903
51904 2008-06-19  Eric Blake  <ebb9@byu.net>
51905
51906         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51907         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51908         Reported by Stepan Kasal.
51909
51910 2008-06-18  Bruno Haible  <bruno@clisp.org>
51911
51912         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51913         Reported by Eric Blake.
51914
51915 2008-06-18  Eric Blake  <ebb9@byu.net>
51916
51917         Work around cygwin 1.5.25 strsignal bug.
51918         * tests/test-strsignal.c: Allow for const char *.
51919         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51920
51921 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51922
51923         * users.txt: Update URL to article and add author/date
51924         information.
51925
51926 2008-06-17  Bruno Haible  <bruno@clisp.org>
51927
51928         New macro gl_DISABLE_THREADS.
51929         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51930         if the user did not pass --enable-threads or --disable-threads option.
51931         (gl_DISABLE_THREADS): New macro.
51932         Reported by Eric Blake <ebb9@byu.net>.
51933
51934 2008-06-17  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51937         when the macro ignores it.
51938         Based on a patch by Eric Blake <ebb9@byu.net>.
51939
51940 2008-06-17  Bruno Haible  <bruno@clisp.org>
51941
51942         * modules/tls (License): Change to LGPLv2+.
51943         Reported by Eric Blake.
51944
51945 2008-06-17  Eric Blake  <ebb9@byu.net>
51946
51947         Simplify c-stack prerequisites.
51948         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51950         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51951         check.
51952         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51953         <sys/resource.h>.
51954
51955         Move c-stack test into testsuite.
51956         * modules/c-stack-tests: New file.
51957         * lib/c-stack.c [DEBUG]: Move test program...
51958         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51959         fail test if sigaltstack is lacking.
51960         * tests/test-c-stack.sh: New driver file.
51961
51962 2008-06-16  Eric Blake  <ebb9@byu.net>
51963
51964         Use raise module consistently.
51965         * modules/fatal-signal (Depends-on): Add raise.
51966         * modules/sigprocmask (Depends-on): Likewise.
51967         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51968         * lib/sigprocmask.c (sigprocmask): Likewise.
51969         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51970         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51971
51972         Fix compliance bug in sigpending.
51973         * lib/sigprocmask.c (sigpending): Return pending array via
51974         parameter, not return value.
51975
51976 2008-06-14  Eric Blake  <ebb9@byu.net>
51977
51978         Improve obstack-printf test code.
51979         * tests/test-obstack-printf.c (test_function): Fix comment, and
51980         simplify usage of obstack_* in macros.  Add a test for coverage.
51981         Reported by Bruno Haible.
51982
51983 2008-06-14  Bruno Haible  <bruno@clisp.org>
51984
51985         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51986         array size as a constant, not as a const variable.
51987         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51988         AC_USE_SYSTEM_EXTENSIONS.
51989         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51990         Test whether the obstack_printf function actually exists.
51991         * modules/obstack-printf (Depends-on): Add extensions.
51992         (Include): Remove obstack.h.
51993         * modules/obstack-printf-posix (Depends-on): Add extensions.
51994         (Include): Remove obstack.h.
51995
51996 2008-06-13  Eric Blake  <ebb9@byu.net>
51997
51998         Add obstack-printf and obstack-printf-posix modules.
51999         * modules/obstack-printf: New file.
52000         * modules/obstack-printf-posix: Likewise.
52001         * MODULES.html.sh (Misc): Mention them.
52002         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52003         Likewise.
52004         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52005         Likewise.
52006         * modules/stdio (Makefile.am): Accomodate new modules.
52007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52008         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
52009         Declare.
52010         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
52011         functions.
52012         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
52013         (gl_REPLACE_OBSTACK_PRINTF): New macros
52014         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
52015         * tests/test-obstack-printf.c: New file.
52016         * modules/obstack-printf-tests: Likewise.
52017         * modules/obstack-printf-posix-tests: Likewise.
52018
52019 2008-06-11  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
52022         * lib/open.c: Include errno.h.
52023         (open): Fail when attempting to write to a file that has a trailing
52024         slash.
52025         * tests/test-open.c (main): Test against trailing slash bug.
52026         * doc/posix-functions/open.texi: Mention the trailing slash bug.
52027
52028 2008-06-10  Bruno Haible  <bruno@clisp.org>
52029
52030         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
52031         for $? to work inside the trap command, with various /bin/sh-s.
52032         * tests/test-vc-list-files-cvs.sh: Likewise.
52033
52034 2008-06-10  Bruno Haible  <bruno@clisp.org>
52035
52036         * lib/acl-internal.h: Don't include gettext.h here.
52037         * lib/set-mode-acl.c: Include gettext.h here.
52038         * lib/copy-acl.c: Likewise.
52039
52040 2008-06-10  Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
52043         * lib/wait-process.c (wait_subprocess): Likewise.
52044         * lib/execute.h (execute): Add termsigp argument.
52045         * lib/execute.c (execute): Likewise.
52046         * lib/csharpcomp.c (compile_csharp_using_pnet,
52047         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
52048         * lib/csharpexec.c (execute_csharp_using_pnet,
52049         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
52050         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
52051         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
52052         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
52053         is_jikes_present): Update.
52054         * lib/javaexec.c (execute_java_class): Update.
52055         * lib/javaversion.c (execute_and_read_line): Update.
52056         * NEWS: Document the changes.
52057         Reported by Eric Blake.
52058
52059 2008-06-10  Eric Blake  <ebb9@byu.net>
52060
52061         Add missing include.
52062         * tests/test-strstr.c (includes): Add <signal.h>.
52063         * tests/test-strcasestr.c (includes): Likewise.
52064         * tests/test-memmem.c (includes): Likewise.
52065
52066 2008-06-10  Bruno Haible  <bruno@clisp.org>
52067
52068         * lib/wait-process.c (wait_subprocess): Add an assertion.
52069
52070 2008-06-10  Bruno Haible  <bruno@clisp.org>
52071
52072         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
52073
52074 2008-06-10  Bruno Haible  <bruno@clisp.org>
52075
52076         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
52077         using alarm().
52078         * tests/test-strcasestr.c (main): Likewise.
52079         * tests/test-strstr.c (main): Likewise.
52080
52081 2008-06-09  Bruno Haible  <bruno@clisp.org>
52082
52083         Work around the Solaris 10 ACE ACLs ABI change.
52084         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
52085         declare if ACL_NO_TRIVIAL is present.
52086         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
52087         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
52088         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
52089         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
52090         define if ACL_NO_TRIVIAL is present.
52091         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
52092         and use the current ABI.
52093         (file_has_acl): Use same #if condition as elsewhere.
52094         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
52095         in use, and use the current ABI.
52096         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
52097         Reported by Jim Meyering.
52098
52099 2008-06-09  Eric Blake  <ebb9@byu.net>
52100
52101         Work around environments that (stupidly) ignore SIGALRM.
52102         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
52103         before using alarm().
52104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52106         Reported by Ian Beckwith <ianb@erislabs.net>.
52107
52108         Produce autobuild blurb earlier in log.
52109         * modules/autobuild (configure.ac-early): Move AB_INIT here.
52110
52111 2008-06-09  Jim Meyering  <meyering@redhat.com>
52112         and OndÅ™ej Vašík  <ovasik@redhat.com>
52113
52114         utimens.c: correct kernel bug work-around
52115         OndÅ™ej Vašík found that the invalid return value of 280 indicates
52116         failure, not success, and the kernel bug we're trying to work
52117         around affects not just the utimensat call, but also the fallback
52118         futimens call.
52119         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
52120         not success.
52121         [HAVE_FUTIMENS]: Use the same work-around, here.
52122
52123 2008-06-09  Jim Meyering  <meyering@redhat.com>
52124
52125         add more guards around definition of ACE_-related code
52126         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
52127         ALLOW and ACE_OWNER are also defined.
52128
52129 2008-06-08  Bruno Haible  <bruno@clisp.org>
52130
52131         * lib/acl-internal.h: Add me as co-author.
52132         * lib/file-has-acl.c: Likewise.
52133         * lib/set-mode-acl.c: Likewise.
52134         * lib/copy-acl.c: Likewise.
52135
52136 2008-06-08  Bruno Haible  <bruno@clisp.org>
52137
52138         Add support for AIX ACLs.
52139         * lib/acl-internal.h (acl_nontrivial): New declaration.
52140         * lib/file-has-acl.c (acl_nontrivial): New function.
52141         (file_has_acl): Add implementation using AIX 4 ACL API.
52142         * lib/set-mode-acl.c (qset_acl): Likewise.
52143         * lib/copy-acl.c (qcopy_acl): Likewise.
52144
52145 2008-06-08  Bruno Haible  <bruno@clisp.org>
52146
52147         Add support for HP-UX ACLs.
52148         * lib/acl-internal.h (acl_nontrivial): New declaration.
52149         * lib/file-has-acl.c (acl_nontrivial): New function.
52150         (file_has_acl): Add implementation using HP-UX 11 ACL API.
52151         * lib/set-mode-acl.c (qset_acl): Likewise.
52152         * lib/copy-acl.c (qcopy_acl): Likewise.
52153
52154 2008-06-08  Bruno Haible  <bruno@clisp.org>
52155
52156         Add support for Cygwin ACLs.
52157         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
52158         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
52159         the chmod_or_fchmod call.
52160         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
52161
52162 2008-06-08  Bruno Haible  <bruno@clisp.org>
52163
52164         Fix bug with setuid modes in Solaris 10+ code.
52165         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
52166         succeeded, when the mode contains some special bits.
52167
52168 2008-06-08  Bruno Haible  <bruno@clisp.org>
52169
52170         Add support for Solaris 7..10 ACLs.
52171         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
52172         declarations.
52173         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
52174         functions.
52175         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
52176         * lib/set-mode-acl.c (qset_acl): Likewise.
52177         * lib/copy-acl.c (qcopy_acl): Likewise.
52178
52179 2008-06-08  Bruno Haible  <bruno@clisp.org>
52180
52181         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
52182         declaration.
52183         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
52184         (acl_access_nontrivial): Remove MacOS X case.
52185         (file_has_acl): Use acl_extended_nontrivial.
52186         * lib/copy-acl.c (qcopy_acl): Likewise.
52187
52188 2008-06-08  Bruno Haible  <bruno@clisp.org>
52189
52190         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
52191
52192 2008-06-08  Jim Meyering  <meyering@redhat.com>
52193
52194         * modules/acl (Maintainer): Add Bruno Haible.
52195
52196 2008-06-07  Bruno Haible  <bruno@clisp.org>
52197
52198         Improve support for Tru64 ACLs.
52199         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
52200         ACL on OSF/1.
52201
52202 2008-06-07  Bruno Haible  <bruno@clisp.org>
52203
52204         Add support for MacOS X ACLs.
52205         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
52206         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
52207         * lib/set-mode-acl.c (qset_acl): Likewise.
52208         * lib/copy-acl.c (qcopy_acl): Likewise.
52209
52210 2008-06-07  Bruno Haible  <bruno@clisp.org>
52211
52212         Fix memory leak introduced on 2008-05-22.
52213         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
52214         use.
52215
52216 2008-06-07  Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
52219         to construct an empty ACL.
52220
52221 2008-06-07  Bruno Haible  <bruno@clisp.org>
52222
52223         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
52224         precisely.
52225         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
52226
52227 2008-06-07  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
52230         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
52231
52232 2008-06-07  Bruno Haible  <bruno@clisp.org>
52233
52234         * doc/posix-functions/_setjmp.texi: Explain the use of this function
52235         regardless of POSIX.
52236         * doc/posix-functions/_longjmp.texi: Likewise.
52237         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
52238         SystemV platform in this case.
52239
52240 2008-06-06  Eric Blake  <ebb9@byu.net>
52241
52242         Document abort() bugs.
52243         * doc/posix-functions/abort.texi (abort): Mention anomalies.
52244
52245         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
52246         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
52247         sigsetjmp.
52248         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
52249         siglongjmp, but only as a macro.
52250         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
52251         is obsolete.
52252         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
52253
52254         Tweak documentation to cover cygwin argz bugs.
52255         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
52256         argz bug fix; no code change needed since no cygwin releases
52257         occurred between the last fix and the bug being tested.
52258         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
52259         module and recently fixed cygwin bugs.
52260         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
52261         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
52262         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
52263         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
52264         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
52265         Likewise.
52266         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
52267         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
52268         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
52269         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
52270         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
52271         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
52272         Likewise.
52273
52274         Avoid gcc warning on cygwin.
52275         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
52276         !ACL_NO_TRIVIAL]: Avoid unused variable.
52277
52278 2008-06-05  Eric Blake  <ebb9@byu.net>
52279
52280         Be tolerant of UNKNOWN version in gnulib-tool test dir.
52281         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
52282         git-version-gen fails to come up with a version.
52283         Reported by Simon Josefsson.
52284
52285 2008-06-05  Jim Meyering  <meyering@redhat.com>
52286             Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         utimens.c: work around a probable Linux kernel bug
52289         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
52290         appears to be a kernel bug that causes utimensat to return 280
52291         instead of 0, indicating success.
52292
52293 2008-06-04  Bruno Haible  <bruno@clisp.org>
52294
52295         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
52296         2008-06-01 commit.
52297
52298 2008-06-04  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
52301         * lib/file-has-acl.c (acl_access_nontrivial): New function.
52302         (file_has_acl): Use it. Save errno afterwards.
52303         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
52304
52305 2008-06-03  Bruno Haible  <bruno@clisp.org>
52306
52307         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
52308         draft code. Simplify #ifs.
52309         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
52310         Put Solaris code after POSIX-draft code. Fix comments regarding
52311         Solaris 10, HP-UX. Mention Cygwin.
52312         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
52313
52314 2008-06-03  Eric Blake  <ebb9@byu.net>
52315
52316         Provide fallback for older kernels.
52317         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
52318         Provide runtime fallback if kernel lacks support.
52319         Reported by Mike Frysinger.
52320
52321 2008-06-02  Bruno Haible  <bruno@clisp.org>
52322
52323         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
52324         it exists.
52325
52326 2008-06-02  Bruno Haible  <bruno@clisp.org>
52327
52328         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
52329         * lib/copy-acl.c (qcopy_acl): Update comment.
52330
52331 2008-06-02  Bruno Haible  <bruno@clisp.org>
52332
52333         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
52334         like ACL APIs.
52335
52336 2008-06-02  Bruno Haible  <bruno@clisp.org>
52337
52338         * tests/test-file-has-acl.sh: Use different code for Cygwin.
52339         * tests/test-set-mode-acl.sh: Likewise.
52340         * tests/test-copy-acl.sh: Likewise.
52341         * tests/test-copy-file.sh: Likewise.
52342
52343 2008-06-02  Bruno Haible  <bruno@clisp.org>
52344
52345         * tests/test-file-has-acl.sh: Remove unused code.
52346
52347 2008-06-01  Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
52350         (copy_acl): Just a wrapper around qcopy_acl that emits the error
52351         messages.
52352         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
52353
52354 2008-06-01  Bruno Haible  <bruno@clisp.org>
52355
52356         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
52357         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
52358         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
52359         APIs.
52360         * modules/acl-tests (configure.ac): Remove tests now contained in
52361         m4/acl.m4.
52362
52363 2008-06-02  Jim Meyering  <meyering@redhat.com>
52364
52365         announce-gen: use a better key-server host name
52366         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
52367         it may be more consistently reliable.  Suggested by Werner Koch
52368         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
52369
52370 2008-06-01  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
52373         Reported by Voroskoi Andras <voroskoi@gmail.com>.
52374
52375 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
52376
52377         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
52378
52379 2008-06-01  Bruno Haible  <bruno@clisp.org>
52380
52381         New ACL tests.
52382         * tests/test-file-has-acl.sh: New file.
52383         * tests/test-file-has-acl.c: New file.
52384         * tests/test-set-mode-acl.sh: New file.
52385         * tests/test-set-mode-acl.c: New file.
52386         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
52387         * tests/test-copy-acl.c: New file.
52388         * modules/acl-tests: New file, based on modules/copy-file-tests.
52389         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
52390         (Depends-on): Add acl-tests.
52391         (configure.ac): Remove checks.
52392         (Makefile.am): Don't create test-sameacls program here any more.
52393
52394 2008-06-01  Bruno Haible  <bruno@clisp.org>
52395
52396         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
52397         * tests/test-sameacls.c: Include progname.h.
52398         (main): Invoke set_program_name. Portability fixes for MacOS X,
52399         Solaris, HP-UX.
52400
52401 2008-06-01  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
52404         function.
52405         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
52406
52407 2008-06-01  Bruno Haible  <bruno@clisp.org>
52408
52409         * modules/rpmatch (Depends-on): Add strdup.
52410
52411 2008-06-01  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/pipe.c: Include unistd-safer.h.
52414         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
52415         * modules/pipe (Depends-on): Add unistd-safer.
52416
52417 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52418
52419         * modules/autobuild (configure.ac): Call AB_INIT.
52420
52421 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52422
52423         * tests/test-getaddrinfo.c: Don't print debug messages by default.
52424         Suggested by Bruno Haible <bruno@clisp.org>.
52425
52426 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52427
52428         * tests/test-base64.c: Cast size_t to unsigned long when invoking
52429         printf.  Use %lu instead of %d.  Reported by Bruno Haible
52430         <bruno@clisp.org>.
52431
52432 2008-05-29  Eric Blake  <ebb9@byu.net>
52433
52434         Prefer new POSIX 200x interfaces over futimesat.
52435         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
52436         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
52437         when available.
52438         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
52439
52440 2008-05-28  Bruno Haible  <bruno@clisp.org>
52441
52442         * modules/stpcpy (License): Change to LGPLv2+.
52443         Requested by David Lutterkort <dlutter@redhat.com>.
52444
52445 2008-05-27  Bruno Haible  <bruno@clisp.org>
52446
52447         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
52448         current mingw.
52449         Reported by Jose E. Marchesi <jemarch@gnu.org>.
52450
52451 2008-05-27  Bruno Haible  <bruno@clisp.org>
52452
52453         * modules/iconv_open (Link): New section, from module 'iconv'.
52454         * modules/striconv (Link): Likewise.
52455         * modules/striconveh (Link): Likewise.
52456         * modules/xstriconv (Link): Likewise.
52457         * modules/unicodeio (Link): Likewise.
52458         * modules/propername (Link): Likewise.
52459         Reported by Jim Meyering.
52460
52461 2008-05-26  Jim Meyering  <meyering@redhat.com>
52462
52463         sha256: do not artificially restrict buffer length to be < 2^32
52464         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
52465         uint32_t to size_t.
52466         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
52467         to match.
52468
52469         avoid unaligned access errors, e.g., on sparc
52470         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
52471         direct access through a possibly-unaligned uint64* pointer.
52472         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
52473         direct access through a possibly-unaligned uint32* pointer.
52474         Prompted by this patch from Tom "spot" Callaway:
52475         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
52476
52477         sha512.c: fix typo in comment
52478         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
52479
52480 2008-05-25  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/set-mode-acl.c: Renamed from lib/acl.c.
52483         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
52484         (Makefile.am): Update lib_SOURCES.
52485
52486 2008-05-25  Bruno Haible  <bruno@clisp.org>
52487
52488         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
52489
52490 2008-05-25  Jim Meyering  <meyering@redhat.com>
52491
52492         useless-if-before-free: freed expr may have white-space differences
52493         * build-aux/useless-if-before-free: Recognize cases in which the
52494         freed expression differs from the tested one in embedded white
52495         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
52496         $1 was used, so we can't make any regexp shy.  Improved tests now
52497         detect this.
52498
52499         useless-if-before-free: accept white space in the expression.
52500         * build-aux/useless-if-before-free: For now, any white space
52501         in the expression must be identical in the free argument.
52502
52503         useless-if-before-free: efficiency tweak
52504         * build-aux/useless-if-before-free: Make the expression-matching
52505         regexp "shy".
52506         Make the *outer* regexp shy, not the expr-matching one.
52507
52508         update code-in-comment to accept cast of free arg
52509         * build-aux/useless-if-before-free: Update regexp.
52510
52511 2008-05-25  Bruno Haible  <bruno@clisp.org>
52512
52513         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
52514         * modules/copy-file-tests (Files, Makefile.am): Update.
52515         * tests/test-copy-file.c (func_test_copy): Update.
52516
52517 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52518
52519         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
52520
52521 2008-05-23  Bruno Haible  <bruno@clisp.org>
52522
52523         Improve support for ACLs on OSF/1.
52524         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
52525         Remove fallback for unknown flavors of ACLs.
52526
52527 2008-05-22  Bruno Haible  <bruno@clisp.org>
52528
52529         Add support for ACLs on OSF/1.
52530         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
52531         replacements.
52532         (acl_free_text): New macro fallback.
52533         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
52534         acl_free.
52535         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
52536         acl_free_text function. Require AC_C_INLINE.
52537
52538 2008-05-22  Bruno Haible  <bruno@clisp.org>
52539
52540         Make copy_acl work on MacOS X 10.5.
52541         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
52542         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
52543         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
52544         If MODE_INSIDE_ACL, don't assume that every system has the same text
52545         representation for ACLs as FreeBSD.
52546         * lib/copy-acl.c (copy_acl): Add support for platforms with
52547         !MODE_INSIDE_ACL.
52548         * lib/file-has-acl.c (file_has_acl): Likewise.
52549         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
52550         FreeBSD, MacOS X, or IRIX, respectively.
52551
52552 2008-05-22  Bruno Haible  <bruno@clisp.org>
52553
52554         * lib/acl.h: Don't include <sys/acl.h>.
52555         (GETACLCNT): Move fallback to lib/acl-internal.h.
52556         * lib/acl-internal.h: Include <sys/acl.h> here.
52557         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
52558
52559 2008-05-22  Bruno Haible  <bruno@clisp.org>
52560
52561         Split off copy_acl function to separate file.
52562         * lib/copy-acl.c: New file, extracted from lib/acl.c.
52563         * lib/acl.c (copy_acl): Moved function to separate file.
52564         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
52565         * modules/acl (Files): Add lib/copy-acl.c.
52566         (Makefiles.am): Augment lib_SOURCES.
52567
52568 2008-05-22  Bruno Haible  <bruno@clisp.org>
52569
52570         * modules/copy-file-tests: New file.
52571         * tests/test-copy-file.sh: New file.
52572         * tests/test-copy-file.c: New file.
52573         * tests/test-copy-file-sameacls.c: New file.
52574
52575 2008-05-22  Eric Blake  <ebb9@byu.net>
52576
52577         Avoid gcc warning.
52578         * tests/test-memcmp.c (main): Pass NULL indirectly.
52579
52580 2008-05-21  Bruno Haible  <bruno@clisp.org>
52581
52582         Add reference doc about ACLs.
52583         * doc/acl-resources.txt: New file.
52584         * doc/acl-cygwin.txt: New file.
52585
52586 2008-05-21  Bruno Haible  <bruno@clisp.org>
52587
52588         Avoid one more warning from gcc.
52589         * lib/vasnprintf.c (IF_LINT): Update comments.
52590         (VASNPRINTF): Use it also for the 'prefix' array initializer.
52591
52592 2008-05-21  Jim Meyering  <meyering@redhat.com>
52593
52594         avoid a warning from gcc
52595         * lib/vasnprintf.c (IF_LINT): Define.
52596         (scale10_round_decimal_long_double):
52597         Use it to avoid a "may be used uninitialized" warning.
52598         (scale10_round_decimal_double): Likewise.
52599
52600 2008-05-21  Simon Josefsson  <simon@josefsson.org>
52601
52602         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
52603         declared.
52604
52605 2008-05-20  Bruno Haible  <bruno@clisp.org>
52606
52607         * tests/test-memcmp.c (main): Test also the sign of the result. Test
52608         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
52609
52610 2008-05-20  Simon Josefsson  <simon@josefsson.org>
52611
52612         * modules/memcmp-tests: New file.
52613         * tests/test-memcmp.c: New file.
52614
52615 2008-05-19  Bruno Haible  <bruno@clisp.org>
52616
52617         * modules/propername (Notice, configure.ac): Put quoted "..." into
52618         --keyword option.
52619         * lib/propername.h: Update comments accordingly.
52620         Reported by Eric Blake.
52621
52622 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
52623
52624         * modules/getpass-gnu (Depends-on): Add fseeko.
52625
52626 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52627
52628         * modules/base64-tests: New file.
52629
52630 2008-05-19  Bo Borgerson <gigabo@gmail.com>
52631
52632         * lib/base64.c (base64_decode_ctx): If a decode context structure
52633         was passed in use it to ignore newlines.  If a context structure
52634         was _not_ passed in, continue to treat newlines as garbage (this
52635         is the historical behavior).  Formerly base64_decode.
52636         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52637         takes a decode context structure.
52638         * lib/base64.h (base64_decode): Macro for four-argument calls.
52639         (base64_decode_alloc): Likewise.
52640         * lib/base64.c (base64_decode_ctx): If a decode context structure
52641         was passed in use it to ignore newlines.  If a context structure
52642         was _not_ passed in, continue to treat newlines as garbage (this
52643         is the historical behavior).  Formerly base64_decode.
52644         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52645         takes a decode context structure.
52646         * lib/base64.h (base64_decode): Macro for four-argument calls.
52647         (base64_decode_alloc): Likewise.
52648
52649 2008-05-19  Jim Meyering  <meyering@redhat.com>
52650
52651         avoid a warning from gcc
52652         * lib/trim.c (IF_LINT): Define.
52653         (trim2): Use it to avoid a "may be used uninitialized" warning.
52654
52655         Fix doc typo.
52656         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
52657
52658 2008-05-19  Bruno Haible  <bruno@clisp.org>
52659
52660         * doc/glibc-functions/getpass.texi: Document limits of other
52661         implementations.
52662
52663 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52664             Bruno Haible <bruno@clisp.org>
52665
52666         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
52667
52668 2008-05-18  Bruno Haible  <bruno@clisp.org>
52669
52670         * modules/propername: New file, from GNU gettext.
52671         * lib/propername.h: New file, from GNU gettext.
52672         * lib/propername.c: New file, from GNU gettext.
52673         * MODULES.html.sh (Internationalization functions): Add propername.
52674
52675 2008-05-16  Jim Meyering  <meyering@redhat.com>
52676             Bruno Haible  <bruno@clisp.org>
52677
52678         Avoid some warnings from "gcc -Wshadow".
52679         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
52680
52681 2008-05-15  Eric Blake  <ebb9@byu.net>
52682
52683         Extend previous patch to cygwin 1.7.0.
52684         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
52685         fast implementation in cygwin >= 1.7.0.
52686         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52688
52689 2008-05-15  Bruno Haible  <bruno@clisp.org>
52690
52691         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
52692         implementation in glibc >= 2.9.
52693         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52695
52696 2008-05-15  Bruno Haible  <bruno@clisp.org>
52697
52698         * MODULES.html.sh (Internationalization functions): Remove linebreak.
52699         (Unicode string functions): Add unilbrk/*.
52700         Reported by Karl Berry.
52701
52702 2008-05-15  Eric Blake  <ebb9@byu.net>
52703
52704         Fix violation of <stdbool.h> replacement in regex.
52705         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
52706         * lib/regexec.c (re_search_internal): Likewise.
52707         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
52708
52709 2008-05-15  Jim Meyering  <meyering@redhat.com>
52710
52711         avoid distracting test output when git or cvs is not found
52712         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
52713         * tests/test-vc-list-files-git.sh: Likewise.
52714
52715 2008-05-15  Eric Blake  <ebb9@byu.net>
52716
52717         Glibc finally accepted the memmem speedup code, bugzilla #5514.
52718         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
52719         glibc version.
52720         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
52721         * doc/posix-functions/strstr.texi (strstr): Likewise.
52722         * lib/str-two-way.h (MAX): Sychronize with glibc.
52723
52724 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
52725
52726         * lib/regcomp.c (optimize_utf8): Add a note on why we test
52727         opr.ctx_type.
52728         (calc_first): Initialize constraint field.
52729         (duplicate_node_closure): Use it instead of special casing ANCHORS.
52730         Fix grammar.
52731         (duplicate_node): Merge constraint field for all node types.
52732         (calc_eclosure_iter): Look at constraint field for all node types.
52733         * lib/regex_internal.c (create_cd_newstate): Don't look at
52734         opr.ctx_type.
52735
52736 2008-05-14  Bruno Haible  <bruno@clisp.org>
52737
52738         Help GCC to do better code generation.
52739         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
52740         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52741         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
52742         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
52743         Declare with attribute 'malloc' if supported.
52744
52745 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
52746
52747         use "echo STR|wc -c" rather than unportable "expr length STR"
52748         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
52749         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
52750
52751 2008-05-14  Jim Meyering  <meyering@redhat.com>
52752
52753         use dd ibs=$n count=1 ... rather than less-portable head -c$n
52754         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
52755         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
52756         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
52757         via Collin Lasse.
52758
52759 2008-05-14  Eric Blake  <ebb9@byu.net>
52760
52761         Avoid quadratic growth in gl_LIBSOURCES.
52762         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
52763         Suggested by Bruno Haible.
52764
52765         Test xmemdup0.
52766         * modules/xmemdup0-tests: New file.
52767         * tests/test-xmemdup0.c: Likewise.
52768
52769 2008-05-13  Eric Blake  <ebb9@byu.net>
52770
52771         Split xmemdup0 into its own module.
52772         * modules/xmemdup0: New file.
52773         * lib/xmemdup0.h: Likewise.
52774         * lib/xmemdup0.c: Likewise.
52775         * MODULES.html.sh (Memory management functions): Add xmemdup0.
52776         * lib/xalloc.h (xmemdup0): Remove.
52777         * lib/xmalloc.c (xmemdup0): Likewise.
52778
52779 2008-05-13  Eric Blake  <ebb9@byu.net>
52780             Bruno Haible  <bruno@clisp.org>
52781
52782         Reduce number of forks required during autoconf.
52783         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
52784         and gl_LIBSOURCES_DIR.
52785         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
52786         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
52787         m4_syscmd per file.
52788         <m4_foreach_w>: Move...
52789         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
52790
52791 2008-05-13  Eric Blake  <ebb9@byu.net>
52792
52793         * gnulib-tool: Fix various comment typos.
52794
52795 2008-05-12  Bruno Haible  <bruno@clisp.org>
52796
52797         Tailor the linebreaking algorithm.
52798         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
52799
52800 2008-05-12  Bruno Haible  <bruno@clisp.org>
52801
52802         Update to Unicode 5.0.0.
52803         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52804         LBP_JV, LBP_JT. Redistribute values.
52805         (unilbrk_table): Change size.
52806         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52807         Unicode TR#14 rev. 22.
52808         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52809         LBP_JV, LBP_JT. Redistribute values.
52810         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52811         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52812         Update.
52813         * lib/unilbrk/lbrkprop1.h: Regenerated.
52814         * lib/unilbrk/lbrkprop2.h: Regenerated.
52815         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52816         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52817         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52818         Likewise.
52819         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52820         Likewise.
52821         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52822         result.
52823         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52824         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52825         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52826         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52827         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52828         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52829
52830 2008-05-11  Bruno Haible  <bruno@clisp.org>
52831
52832         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52833
52834 2008-05-11  Bruno Haible  <bruno@clisp.org>
52835
52836         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52837         * modules/unilbrk/gen-lbrk: New file.
52838
52839 2008-05-11  Bruno Haible  <bruno@clisp.org>
52840
52841         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52842         * m4/sha512.m4 (gl_SHA512): Likewise.
52843
52844 2008-05-11  Jim Meyering  <meyering@redhat.com>
52845
52846         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52847         * modules/crypto/sha256: New file.
52848         * modules/crypto/sha512: Likewise.
52849         * lib/sha256.c: Likewise.
52850         * lib/sha256.h: Likewise.
52851         * lib/sha512.c: Likewise.
52852         * lib/sha512.h: Likewise.
52853         * lib/u64.h: Likewise.
52854         * m4/sha256.m4: Likewise.
52855         * m4/sha512.m4: Likewise.
52856         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52857
52858 2008-05-10  Bruno Haible  <bruno@clisp.org>
52859
52860         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52861         (Input/Output <stdio.h>): Add xprintf.
52862         (Signal handling <signal.h>): Add strsignal.
52863         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52864         (Core language properties): Add func.
52865         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52866         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52867         strings.
52868         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52869         (Input/output): New section.
52870         (File system functions): Add openat-die, stat-macros.
52871         (Networking functions): Add sockets.
52872         (Unicode string functions): Add unictype/*.
52873         (Support for building libraries and executables): Add gperf.
52874         (Support for building documentation): Add agpl-3.0.
52875         (Misc): Add nocrash.
52876
52877 2008-05-10  Bruno Haible  <bruno@clisp.org>
52878
52879         * modules/unictype/gen-ctype: New file.
52880
52881 2008-05-10  Jim Meyering  <meyering@redhat.com>
52882
52883         Make chdir-safer.c more efficient on a system with no symlinks.
52884         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52885         also if ELOOP is zero.  Suggested by Bruno Haible.
52886
52887         Make chdir-safer.c slightly safer.
52888         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52889         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52890
52891         Avoid compile failure on systems without ELOOP (like mingw).
52892         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52893         Reported by Bruno Haible.
52894
52895 2008-05-10  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52898         (is_utf8_encoding): Use a case-insensitive comparison.
52899         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52900         streq.
52901
52902 2008-05-10  Bruno Haible  <bruno@clisp.org>
52903
52904         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52905         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52906         * lib/unilbrk/ulc-common.h (iconv_string_length,
52907         iconv_string_keeping_offsets): Remove declarations.
52908         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52909         Don't include <iconv.h>, streq.h, xsize.h.
52910         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52911         conversion.
52912         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52913         <iconv.h>, streq.h, xsize.h.
52914         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52915         conversion.
52916         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52917         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52918         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52919         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52920
52921 2008-05-10  Bruno Haible  <bruno@clisp.org>
52922
52923         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52924         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52925
52926         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52927         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52928
52929         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52930         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52931
52932         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52933         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52934
52935         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52936         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52937
52938         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52939         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52940
52941         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52942         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52943
52944         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52945         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52946
52947 2008-05-10  Bruno Haible  <bruno@clisp.org>
52948
52949         Split up 'linebreak' module.
52950         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52951         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52952         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52953         modifications.
52954         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52955         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52956         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52957         lib/linebreak.c.
52958         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52959         lib/linebreak.c.
52960         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52961         lib/linebreak.c.
52962         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52963         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52964         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52965         lib/linebreak.c.
52966         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52967         lib/linebreak.c.
52968         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52969         lib/linebreak.c.
52970         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52971         lib/linebreak.c.
52972         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52973         lib/linebreak.c.
52974         * modules/unilbrk/base: New file.
52975         * modules/unilbrk/tables: New file.
52976         * modules/unilbrk/u8-possible-linebreaks: New file.
52977         * modules/unilbrk/u16-possible-linebreaks: New file.
52978         * modules/unilbrk/u32-possible-linebreaks: New file.
52979         * modules/unilbrk/ulc-common: New file.
52980         * modules/unilbrk/ulc-possible-linebreaks: New file.
52981         * modules/unilbrk/u8-width-linebreaks: New file.
52982         * modules/unilbrk/u16-width-linebreaks: New file.
52983         * modules/unilbrk/u32-width-linebreaks: New file.
52984         * modules/unilbrk/ulc-width-linebreaks: New file.
52985         * lib/linebreak.h: Remove file.
52986         * lib/linebreak.c: Remove file.
52987         * m4/linebreak.m4: Remove file.
52988         * modules/linebreak: Remove file.
52989         * NEWS: Mention the changes.
52990
52991 2008-05-09  Eric Blake  <ebb9@byu.net>
52992
52993         Add xmemdup0.
52994         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52995         implementation.
52996         * lib/xmalloc.c (xmemdup0): New C implementation.
52997
52998 2008-05-08  Bruno Haible  <bruno@clisp.org>
52999
53000         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
53001
53002 2008-05-07  Eric Blake  <ebb9@byu.net>
53003
53004         Support cross-compilation of <wctype.h>.
53005         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
53006         AC_CACHE_CHECK.
53007
53008 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
53009
53010         * build-aux/vc-list-files: Add support for bzr.
53011
53012 2008-05-03  Jim Meyering  <meyering@redhat.com>
53013
53014         avoid failed assertion with tight malloc
53015         * tests/test-getndelim2.c: Correct an off-by-one assertion.
53016
53017 2008-05-03  Simon Josefsson  <simon@josefsson.org>
53018
53019         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
53020         are needed from arpa/inet.h.
53021         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
53022         Reported by Bruno Haible.
53023
53024 2008-05-02  Jim Meyering  <meyering@redhat.com>
53025
53026         avoid compilation error on FreeBSD 6
53027         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
53028
53029 2008-05-01  Jim Meyering  <meyering@redhat.com>
53030
53031         useless-if-before-free: correct --help's exit status description
53032         * build-aux/useless-if-before-free (usage): Like grep, exit 0
53033         for one or more matches, etc.  Reported by Bruno Haible.
53034
53035         vc-list-files: make the stand-alone gnulib test work
53036         * modules/vc-list-files-tests (configure.ac):
53037         Define and AC_SUBST abs_aux_dir.
53038         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
53039         $(abs_top_srcdir) to each script and having each of them
53040         duplicate the work of setting PATH, set PATH here, using
53041         the new variable, abs_aux_dir instead.
53042         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
53043         * tests/test-vc-list-files-git.sh: Likewise.
53044         Reported by Bruno Haible.
53045
53046 2008-05-01  Bruno Haible  <bruno@clisp.org>
53047
53048         * lib/getndelim2.c (getndelim2): Fix newsize computation during
53049         reallocation. Rename 'done' to 'found_delimiter'.
53050
53051 2008-05-01  Jim Meyering  <meyering@redhat.com>
53052
53053         vc-list-files: accommodate /bin/sh like the one from Solaris 10
53054         * build-aux/vc-list-files: Use `...`, not $(...).
53055
53056 2008-04-30  Jim Meyering  <meyering@redhat.com>
53057
53058         add tests for vc-list-files
53059         * modules/vc-list-files-tests: New module.
53060         * tests/test-vc-list-files-cvs.sh: New file.
53061         * tests/test-vc-list-files-git.sh: New file.
53062
53063         avoid a warning from gcc
53064         * lib/getndelim2.c (IF_LINT): Define.
53065         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
53066
53067         vc-list-files: work properly with build-aux/cvsu, too
53068         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
53069         to all cvs-based clauses.
53070
53071         vc-list-files: work properly in the CVS+awk case, too
53072         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
53073
53074         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
53075         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
53076         take more than one file argument, so .  Add quotes, just in case $dir
53077         ever contains a shell meta-character.  Prompted by Soren Hansen in
53078         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
53079
53080 2008-04-29  Eric Blake  <ebb9@byu.net>
53081
53082         Optimize getndelim2 to use block operations when possible.
53083         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
53084         freadseek, and memchr2.
53085         * lib/getndelim2.c (getndelim2): Use them for block reads.
53086
53087 2008-04-29  Bruno Haible  <bruno@clisp.org>
53088
53089         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
53090         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53091         * modules/inet_ntop (Depends-on): Add extensions.
53092         * modules/inet_pton (Depends-on): Likewise.
53093         Reported by Simon Josefsson.
53094
53095 2008-04-29  Jim Meyering  <meyering@redhat.com>
53096
53097         When the is more than one match in a block, match all of them.
53098         * build-aux/useless-if-before-free: Iterate through each block
53099         until there are no more matches.
53100
53101         Fix broken useless-if-before-free script.
53102         * build-aux/useless-if-before-free: Fix typo: missing "?" after
53103         the expression to match cast of argument to free-like function.
53104
53105 2008-04-29  Eric Blake  <ebb9@byu.net>
53106
53107         Use new header.
53108         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
53109
53110 2008-04-29  Jim Meyering  <meyering@redhat.com>
53111
53112         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
53113         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
53114         by gnulib to exist and to declare e.g., inet_ntop.
53115         Don't include "inet_ntop.h", now removed.
53116
53117         * m4/arpa_inet_h.m4: Remove trailing blanks.
53118
53119 2008-04-29  Eric Blake  <ebb9@byu.net>
53120
53121         Silence valgrind on safe reads beyond potential array bounds.
53122         * lib/rawmemchr.valgrind: New file.
53123         * lib/strchrnul.valgrind: Likewise.
53124         * modules/rawmemchr (Files): Distribute new file.
53125         * modules/strchrnul (Files): Likewise.
53126         Suggested by Bruno Haible.
53127
53128 2008-04-29  Bruno Haible  <bruno@clisp.org>
53129
53130         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
53131         (inet_ntop, inet_pton): Change portability warning's wording.
53132         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
53133         Invoke gl_CHECK_NEXT_HEADERS.
53134         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
53135         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
53136         set ARPA_INET_H.
53137         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53138         * modules/arpa_inet (Description): No longer only for systems that
53139         lack it.
53140         (Depends-on): Add include_next.
53141         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
53142         HAVE_ARPA_INET_H.
53143
53144 2008-04-29  Jim Meyering  <meyering@redhat.com>
53145
53146         * modules/mkdir (License): Re-license as LGPLv2+.
53147
53148 2008-04-29  Bruno Haible  <bruno@clisp.org>
53149
53150         * modules/rawmemchr (Maintainer): Set to Eric.
53151         * modules/strchrnul (Maintainer): Likewise.
53152
53153 2008-04-29  Simon Josefsson  <simon@josefsson.org>
53154
53155         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
53156         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
53157
53158         * modules/arpa_inet (arpa/inet.h): Use them.
53159
53160 2008-04-28  Eric Blake  <ebb9@byu.net>
53161
53162         Test getndelim2.
53163         * modules/getndelim2-tests: New file.
53164         * tests/test-getndelim2.c: Likewise.
53165         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
53166         stream.
53167         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
53168
53169         * MODULES.html.sh: Document new module.
53170
53171 2008-04-20  Bruno Haible  <bruno@clisp.org>
53172
53173         * lib/c-stack.c (die): Use raise.
53174         * modules/c-stack (Depends-on): Add raise.
53175
53176 2008-04-28  Bruno Haible  <bruno@clisp.org>
53177
53178         Expect rpmatch to be declared.
53179         * lib/yesno.c (rpmatch): Remove declaration.
53180
53181         Declare rpmatch.
53182         * lib/stdlib.in.h (rpmatch): New declaration.
53183         * lib/rpmatch.c: Include <stdlib.h> first.
53184         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
53185         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
53186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
53187         HAVE_RPMATCH.
53188         * modules/rpmatch (Depends-on): Add stdlib, extensions.
53189         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53190         (Include): Set to <stdlib.h>.
53191         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
53192         HAVE_RPMATCH.
53193         * NEWS: Document the change.
53194
53195 2008-04-28  Bruno Haible  <bruno@clisp.org>
53196
53197         Change rpmatch to use nl_langinfo when appropriate.
53198         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
53199         (N_): New macro.
53200         (localized_pattern): New function/macro.
53201         (try): Remove match, nomatch arguments. Copy the pattern into safe
53202         memory before caching it.
53203         (rpmatch): Use localized_pattern. Add translator comments.
53204         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
53205         Suggested by Eric Blake.
53206         * modules/rpmatch (Depends-on): Add stdbool.
53207
53208 2008-04-28  Eric Blake  <ebb9@byu.net>
53209
53210         Add rawmemchr module, matching glibc.
53211         * modules/string (Makefile.am): New indicator.
53212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
53213         * lib/string.in.h (rawmemchr): Declare when appropriate.
53214         * modules/rawmemchr: New file.
53215         * m4/rawmemchr.m4: Likewise.
53216         * lib/rawmemchr.c: Likewise.
53217         * modules/rawmemchr-tests: Likewise.
53218         * tests/test-rawmemchr.c: Likewise.
53219         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
53220         module.
53221         * modules/strchrnul (Depends-on): Add rawmemchr.
53222         * lib/strchrnul.c (strchrnul): Optimize a corner case.
53223
53224         Whitespace cleanup.
53225         * tests/test-strchrnul.c: Reindent.
53226         * lib/strchrnul.c: Likewise.
53227
53228         Optimize and test strchrnul.
53229         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
53230         * modules/strchrnul-tests: New file.
53231         * tests/test-strchrnul.c: Likewise.
53232
53233         Remove intprops dependency.
53234         * modules/memchr (Depends-on): Remove intprops.
53235         * modules/memrchr (Depends-on): Likewise.
53236         * modules/memchr2 (Depends-on): Likewise.
53237         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
53238         * lib/memrchr.c (__memrchr): Likewise.
53239         * lib/memrchr2.c (memchr2): Likewise.
53240         Reported by Simon Josefsson.
53241
53242 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53243
53244         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
53245         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53246
53247 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53248
53249         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
53250
53251         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
53252
53253         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
53254
53255         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
53256         declarations.
53257         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
53258
53259         * m4/inet_pton.m4: Don't check for header files.
53260
53261         * m4/inet_ntop.m4: Don't check for header files.
53262
53263 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53264
53265         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
53266         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
53267         trigger for cygwin).
53268         Reported by Bruno Haible  <bruno@clisp.org>.
53269
53270 2008-04-28  Bruno Haible  <bruno@clisp.org>
53271
53272         * doc/posix-functions/strdup.texi: Mention mingw problem.
53273
53274 2008-04-27  Bruno Haible  <bruno@clisp.org>
53275
53276         * modules/stat-time-tests (Depends-on): Add sleep.
53277         * tests/test-stat-time.c (force_unlink): New function.
53278         (cleanup): Use it.
53279         (test_mtime): Remove the ctime related tests.
53280         (test_ctime): New function, containing the ctime related tests.
53281         (main): Call test_ctime, except on native Windows platforms.
53282
53283 2008-04-27  Bruno Haible  <bruno@clisp.org>
53284
53285         * lib/rpmatch.c (rpmatch): Add some comments.
53286         Reported by James Youngman <jay@gnu.org>.
53287
53288 2008-04-27  Bruno Haible  <bruno@clisp.org>
53289
53290         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
53291         quiet NaNs.
53292
53293 2008-04-27  Bruno Haible  <bruno@clisp.org>
53294
53295         Make test-yesno.sh work on mingw.
53296         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
53297         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
53298         (main): Set stdin to binary mode.
53299         * modules/yesno-tests (Depends-on): Add binary-io.
53300
53301 2008-04-27  Bruno Haible  <bruno@clisp.org>
53302
53303         Fix 'isfinite' on x86, x86_64, ia64 platforms.
53304         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
53305         argument that lie outside the IEEE 854 domain.
53306         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
53307         (gl_ISFINITE): Use it.
53308         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
53309
53310 2008-04-27  Bruno Haible  <bruno@clisp.org>
53311
53312         Allow local renaming in config.h.
53313         * lib/memrchr.c (memrchr): Don't undefine outside libc.
53314
53315 2008-04-27  Bruno Haible  <bruno@clisp.org>
53316
53317         * lib/memchr.c (__memchr): Change type of 'i'.
53318         * lib/memchr2.c (memchr2): Likewise.
53319
53320 2008-04-26  Eric Blake  <ebb9@byu.net>
53321         and Bruno Haible  <bruno@clisp.org>
53322
53323         Optimize and test memrchr.
53324         * modules/memrchr (Depends-on): Add intprops.
53325         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
53326         * modules/memrchr-tests: New file.
53327         * tests/test-memrchr.c: New file.
53328
53329 2008-04-26  Bruno Haible  <bruno@clisp.org>
53330
53331         Add tentative support for DragonFly BSD.
53332         * lib/stdio-impl.h: Add macros for DragonFly BSD.
53333         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
53334         fp.
53335         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53336         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
53337         * lib/fpurge.c (fpurge): Likewise.
53338         * lib/freadable.c (freaadable): Likewise.
53339         * lib/freadahead.c (freadahead): Likewise.
53340         * lib/freading.c (freading): Likewise.
53341         * lib/freadptr.c (freadptr): Likewise.
53342         * lib/freadseek.c (freadptrinc): Likewise.
53343         * lib/fseeko.c (fseeko): Likewise.
53344         * lib/fseterr.c (fseterr): Likewise.
53345         * lib/fwritable.c (fwritable): Likewise.
53346         * lib/fwriting.c (fwriting): Likewise.
53347
53348 2008-04-26  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/stdio-impl.h: New file.
53351         * lib/fbufmode.c: Include stdio-impl.h.
53352         (fbufmode): Use fp_, remove redundant #defines.
53353         * lib/fflush.c: Include stdio-impl.h.
53354         (clear_ungetc_buffer): Remove redundant #defines.
53355         * lib/fpurge.c: Include stdio-impl.h.
53356         (fpurge): Remove redundant #defines.
53357         * lib/freadable.c: Include stdio-impl.h.
53358         (freadable): Remove redundant #defines.
53359         * lib/freadahead.c: Include stdio-impl.h.
53360         (freadahead): Remove redundant #defines.
53361         * lib/freading.c: Include stdio-impl.h.
53362         (freading): Remove redundant #defines.
53363         * lib/freadptr.c: Include stdio-impl.h.
53364         (freadptr): Remove redundant #defines.
53365         * lib/freadseek.c: Include stdio-impl.h.
53366         (freadptrinc): Remove redundant #defines.
53367         * lib/fseeko.c: Include stdio-impl.h.
53368         (rpl_fseeko): Remove redundant #defines.
53369         * lib/fseterr.c: Include stdio-impl.h.
53370         (fseterr): Remove redundant #defines.
53371         * lib/fwritable.c: Include stdio-impl.h.
53372         (fwritable: Remove redundant #defines.
53373         * lib/fwriting.c: Include stdio-impl.h.
53374         (fwriting): Remove redundant #defines.
53375         * modules/fbufmode (Files): Add lib/stdio-impl.h.
53376         * modules/fflush (Files): Likewise.
53377         * modules/fpurge (Files): Likewise.
53378         * modules/freadable (Files): Likewise.
53379         * modules/freadahead (Files): Likewise.
53380         * modules/freading (Files): Likewise.
53381         * modules/freadptr (Files): Likewise.
53382         * modules/freadseek (Files): Likewise.
53383         * modules/fseeko (Files): Likewise.
53384         * modules/fseterr (Files): Likewise.
53385         * modules/fwritable (Files): Likewise.
53386         * modules/fwriting (Files): Likewise.
53387
53388 2008-04-26  Bruno Haible  <bruno@clisp.org>
53389
53390         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53391         restore_seek_optimization, update_fpos_cache): New functions, extracted
53392         from rpl_fflush.
53393         (rpl_fflush): Use them.
53394         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
53395         (gl_REPLACE_FFLUSH): Use it.
53396
53397 2008-04-26  Bruno Haible  <bruno@clisp.org>
53398
53399         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
53400         on Solaris.
53401         * tests/test-xstrtoimax.sh: Likewise.
53402         * tests/test-xstrtoumax.sh: Likewise.
53403         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53404
53405 2008-04-26  Bruno Haible  <bruno@clisp.org>
53406
53407         * modules/memchr-tests: New file.
53408         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
53409
53410 2008-04-26  Eric Blake  <ebb9@byu.net>
53411             Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/memchr.c: Include intprops.h.
53414         (__memchr): Optimize parallel detection of matching bytes. Rename local
53415         variables. Add explanatory comments.
53416
53417 2008-04-26  Bruno Haible  <bruno@clisp.org>
53418
53419         Fix module 'memchr', broken since 2000-10-28.
53420         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
53421
53422 2008-04-26  Bruno Haible  <bruno@clisp.org>
53423
53424         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
53425         comments.
53426
53427 2008-04-25  Eric Blake  <ebb9@byu.net>
53428
53429         Use native fstatat on cygwin 1.7.0.
53430         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
53431         first.
53432
53433 2008-04-23  Eric Blake  <ebb9@byu.net>
53434
53435         Improve memchr2 performance.
53436         * lib/memchr2.c (memchr2): Further optimize parallel detection of
53437         NUL bytes.
53438         * modules/memchr2 (Depends-on): Use intprops.h.
53439
53440 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53441
53442         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
53443         an inline function instead of a CPP macro.  Patch by Ben Pfaff
53444         <blp@cs.stanford.edu>.
53445
53446 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53447
53448         * lib/arpa_inet.in.h: New file.
53449
53450         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
53451         (Makefile.am): Sed in substitute header file.
53452
53453         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
53454         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
53455
53456         * modules/inet_ntop (configure.ac): Use
53457         gl_ARPA_INET_MODULE_INDICATOR.
53458
53459         * modules/inet_pton (configure.ac): Use
53460         gl_ARPA_INET_MODULE_INDICATOR.
53461
53462 2008-04-22  Jim Meyering  <meyering@redhat.com>
53463
53464         * modules/verify (License): Re-license as LGPLv2+.
53465
53466 2008-04-22  Simon Josefsson  <simon@josefsson.org>
53467
53468         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
53469         parameter to void* as per POSIX standard (MinGW uses char*).
53470
53471 2008-04-21  Bruno Haible  <bruno@clisp.org>
53472
53473         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53474         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53475         Define to replacements if REPLACE_ISWCNTRL is 1.
53476         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
53477         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
53478         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
53479         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
53480         what it fixes.
53481         * doc/posix-functions/iswalpha.texi: Likewise.
53482         * doc/posix-functions/iswblank.texi: Likewise.
53483         * doc/posix-functions/iswcntrl.texi: Likewise.
53484         * doc/posix-functions/iswdigit.texi: Likewise.
53485         * doc/posix-functions/iswgraph.texi: Likewise.
53486         * doc/posix-functions/iswlower.texi: Likewise.
53487         * doc/posix-functions/iswprint.texi: Likewise.
53488         * doc/posix-functions/iswpunct.texi: Likewise.
53489         * doc/posix-functions/iswspace.texi: Likewise.
53490         * doc/posix-functions/iswupper.texi: Likewise.
53491         * doc/posix-functions/iswxdigit.texi: Likewise.
53492         Reported by Alain Guibert.
53493
53494 2008-04-21  Bruno Haible  <bruno@clisp.org>
53495
53496         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
53497         Patch by Alain Guibert.
53498
53499 2008-04-21  Bruno Haible  <bruno@clisp.org>
53500
53501         Fix test failures on mingw.
53502         * tests/test-xstrtol.c (print_no_progname): New function.
53503         (main): Install it in error_print_progname hook.
53504         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
53505         * tests/test-xstrtoimax.sh: Likewise.
53506         * tests/test-xstrtoumax.sh: Likewise.
53507
53508 2008-04-21  Bruno Haible  <bruno@clisp.org>
53509
53510         Fix test failure on mingw.
53511         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
53512
53513 2008-04-21  Bruno Haible  <bruno@clisp.org>
53514
53515         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
53516         Actually assign a value.
53517
53518 2008-04-20  Bruno Haible  <bruno@clisp.org>
53519
53520         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
53521         take 2.
53522         * lib/canonicalize.c (canonicalize_file_name): Elide if the
53523         'canonicalize-lgpl' module is also used.
53524         * lib/canonicalize-lgpl.c: Undo last change.
53525         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
53526
53527 2008-04-20  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
53530         config.h. Provide _mkdir based fallback for mingw.
53531         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
53532         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
53533         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
53534         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
53535         rather than defining mkdir in config.h.
53536         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
53537         (gl_SYS_STAT_H_DEFAULTS): New macro.
53538         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
53539         HAVE_IO_H any more.
53540         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
53541         HAVE_DECL_MKDIR and HAVE_IO_H.
53542
53543 2008-04-20  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/isapipe.c: Port to native Windows platforms.
53546
53547 2008-04-20  Bruno Haible  <bruno@clisp.org>
53548
53549         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
53550
53551 2008-04-21  Eric Blake  <ebb9@byu.net>
53552
53553         Work around preprocessors that don't handle UINTMAX_MAX.
53554         * lib/memchr2.c (memchr2): Avoid embedded #if.
53555         Reported by Alain Guibert, fix suggested by Bruno Haible.
53556
53557 2008-04-21  Simon Josefsson  <simon@josefsson.org>
53558
53559         * doc/posix-functions/strftime.texi (strftime): Explain better
53560         Windows incompatibility.  Suggested by Micah Cowan
53561         <micah@cowan.name>.
53562
53563 2008-04-20  Bruno Haible  <bruno@clisp.org>
53564
53565         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
53566         unistr/u8-mblen.
53567
53568 2008-04-20  Bruno Haible  <bruno@clisp.org>
53569
53570         Fix test failure on platforms with non-GNU iconv.
53571         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
53572         (U_TO_U8): Use it, rather than u16_to_u8.
53573         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
53574         units at the end of the input string.
53575         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
53576
53577 2008-04-20  Bruno Haible  <bruno@clisp.org>
53578
53579         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
53580         when the resulting length is 0.
53581         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
53582
53583 2008-04-20  Bruno Haible  <bruno@clisp.org>
53584
53585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
53586         works.
53587         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
53588
53589 2008-04-20  Bruno Haible  <bruno@clisp.org>
53590
53591         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
53592         * modules/tsearch-tests (configure.ac): Test for initstate function.
53593
53594 2008-04-20  Bruno Haible  <bruno@clisp.org>
53595
53596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
53597         for nlink_t if missing.
53598         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
53599
53600 2008-04-19  Bruno Haible  <bruno@clisp.org>
53601
53602         Work around snprintf bug on Linux libc5.
53603         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
53604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53605         gl_SNPRINTF_SIZE1.
53606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
53608         that test failed.
53609         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
53610         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
53611         * modules/snprintf (Files): Add m4/printf.m4.
53612         * modules/vsnprintf (Files): Likewise.
53613         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
53614         * doc/posix-functions/vsnprintf.texi: Likewise.
53615
53616 2008-04-19  Bruno Haible  <bruno@clisp.org>
53617
53618         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
53619         from 0.0058 to less than 10^-7.
53620
53621 2008-04-19  Bruno Haible  <bruno@clisp.org>
53622
53623         Fix rounding when a precision is given.
53624         * lib/vasnprintf.c (is_borderline): New function.
53625         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
53626         9...9x.
53627         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
53628         %e, %g.
53629         * tests/test-vasprintf-posix.c (test_function): Likewise.
53630         * tests/test-snprintf-posix.h (test_function): Likewise.
53631         * tests/test-sprintf-posix.h (test_function): Likewise.
53632         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
53633         * tests/test-printf-posix.h (test_function): Likewise.
53634         * tests/test-printf-posix.output: Update.
53635         Reported by John Darrington <john@darrington.wattle.id.au> via
53636         Ben Pfaff <blp@cs.stanford.edu>.
53637
53638 2008-04-18  Simon Josefsson  <simon@josefsson.org>
53639
53640         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
53641         Suggested by Bruno Haible <bruno@clisp.org>.
53642
53643 2008-04-17  Bruno Haible  <bruno@clisp.org>
53644
53645         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
53646         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
53647         implementation.
53648         Patch by Bruce Merry <bmerry@gmail.com>.
53649
53650 2008-04-17  Simon Josefsson  <simon@josefsson.org>
53651
53652         * doc/posix-functions/strftime.texi (strftime): Mention that %e
53653         doesn't work under Windows.
53654
53655 2008-04-16  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
53658         New macros.
53659         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
53660         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
53661         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
53662         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
53663         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
53664         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
53665         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
53666         macros.
53667         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53668         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
53669         Northern Sotho, Uighur.
53670
53671 2008-04-16  Bruno Haible  <bruno@clisp.org>
53672
53673         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
53674         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
53675         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
53676         Reported by Daniel Bergström <daniel@octocode.com>.
53677
53678 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
53679             Bruno Haible  <bruno@clisp.org>
53680
53681         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
53682         function.
53683         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
53684         New functions, mostly extracted from gl_locale_name_default.
53685         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
53686
53687 2008-04-16  Eric Blake  <ebb9@byu.net>
53688
53689         Adjust strtod detection to catch glibc 2.7 bug.
53690         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
53691         Reported by John Gatewood Ham.
53692
53693 2008-04-16  Bruno Haible  <bruno@clisp.org>
53694
53695         Add tentative support for Linux libc5.
53696         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
53697         * lib/fpurge.c (fpurge): Likewise.
53698         * lib/freadable.c (freadable): Likewise.
53699         * lib/freadahead.c (freadahead): Likewise.
53700         * lib/freading.c (freading): Likewise.
53701         * lib/freadptr.c (freadptr): Likewise.
53702         * lib/freadseek.c (freadptrinc): Likewise.
53703         * lib/fseeko.c (rpl_fseeko): Likewise.
53704         * lib/fseterr.c (fseterr): Likewise.
53705         * lib/fwritable.c (fwritable): Likewise.
53706         * lib/fwriting.c (fwriting): Likewise.
53707         Reported by Alain Guibert <alguibert+bts@free.fr>.
53708
53709 2008-04-15  Bruno Haible  <bruno@clisp.org>
53710
53711         * modules/mathl (configure.ac): Define module indicator.
53712
53713 2008-04-15  Bruno Haible  <bruno@clisp.org>
53714
53715         * lib/logl.c (logl): Remove unused variables.
53716
53717 2008-04-15  Bruno Haible  <bruno@clisp.org>
53718
53719         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
53720         fails.
53721
53722 2008-04-15  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/trim.c (trim2): Fix argument of isspace() macro.
53725
53726 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
53727
53728         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
53729         to 0.
53730         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
53731
53732 2008-04-14  Bruno Haible  <bruno@clisp.org>
53733
53734         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
53735         AC_LANG_PROGRAM argument.
53736         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
53737         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
53738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53739         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53740         * m4/math_h.m4 (gl_MATH_H): Likewise.
53741         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53743         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53744         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
53745         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53746         * m4/regex.m4 (gl_REGEX): Likewise.
53747         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
53748         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
53749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
53751         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53752         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53753         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53754         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53755
53756 2008-04-14  Jim Meyering  <meyering@redhat.com>
53757
53758         test-strtod: fix typos: s/abs/fabs/
53759         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
53760
53761 2008-04-13  Bruno Haible  <bruno@clisp.org>
53762
53763         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
53764         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
53765         module is also used and while not building the reloc-wrapper.
53766
53767 2008-04-13  Bruno Haible  <bruno@clisp.org>
53768
53769         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
53770
53771 2008-04-13  Bruno Haible  <bruno@clisp.org>
53772
53773         Fix AIX compilation failure introduced on 2008-04-02.
53774         * tests/test-frexp.c (exp): Undefine before redefining.
53775         * tests/test-frexpl.c (exp): Likewise.
53776
53777 2008-04-13  Bruno Haible  <bruno@clisp.org>
53778
53779         Work around a HP-UX stdio bug.
53780         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
53781         * tests/test-ftello.c (main): Likewise.
53782         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
53783         * doc/posix-functions/ftello.texi: Likewise.
53784
53785 2008-04-13  Bruno Haible  <bruno@clisp.org>
53786
53787         Make test-signbit pass on HP-UX/hppa.
53788         * tests/test-signbit.c (minus_zerol): New variable.
53789         (test_signbitl): Use it.
53790
53791 2008-04-13  Bruno Haible  <bruno@clisp.org>
53792
53793         Make truncl work on OSF/1 4.0.
53794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
53795         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53796         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
53798         HAVE_DECL_TRUNCL.
53799         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
53800         HAVE_DECL_TRUNCL.
53801         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
53802
53803 2008-04-13  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53806
53807 2008-04-13  Bruno Haible  <bruno@clisp.org>
53808
53809         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53810         expression, so as to avoid HP-UX 11 cc compiler bug.
53811
53812 2008-04-13  Bruno Haible  <bruno@clisp.org>
53813
53814         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53815
53816 2008-04-13  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/git-merge-changelog.c: Remove empty declaration outside of
53819         functions.
53820
53821 2008-04-13  Bruno Haible  <bruno@clisp.org>
53822
53823         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53824
53825 2008-04-13  Bruno Haible  <bruno@clisp.org>
53826
53827         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53828         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53829         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53830         also if it exists but lacks definitions of the SHUT_* macros.
53831         * modules/sys_socket (Description): Update.
53832         Reported by Elbert Pol <e.pol@chello.nl>.
53833
53834 2008-04-13  Bruno Haible  <bruno@clisp.org>
53835
53836         * lib/localcharset.c (OS2): Don't redefine if already defined.
53837         Reported by Elbert Pol <e.pol@chello.nl>.
53838
53839 2008-04-13  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/binary-io.h [__EMX__]: Include <io.h>.
53842         Reported by Elbert Pol <e.pol@chello.nl>.
53843
53844 2008-04-12  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/fpucw.h: Enable the definitions also for x86_64.
53847         Needed for NetBSD/x86_64.
53848         Reported by Thomas Klausner <tk@giga.or.at>.
53849
53850 2008-04-12  Bruno Haible  <bruno@clisp.org>
53851
53852         * tests/test-strtod.c: Include isnand.h.
53853         (main): Use isnand instead of isnan.
53854         Reported by Jim Meyering.
53855
53856 2008-04-12  Bruno Haible  <bruno@clisp.org>
53857
53858         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53859         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53860
53861 2008-04-12  Jim Meyering  <meyering@redhat.com>
53862
53863         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53864
53865 2008-04-12  Bruno Haible  <bruno@clisp.org>
53866
53867         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53868         Reported by Elbert Pol <e.pol@chello.nl>.
53869
53870 2008-04-12  Eric Blake  <ebb9@byu.net>
53871
53872         Work around Solaris 10 math.h bug.
53873         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53874         (gl_MATH_H_DEFAULTS): Set up default.
53875         * modules/math (Makefile.am): Replace new indicators.
53876         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53877         * tests/test-math.c (main): Test this.
53878         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53879         * doc/posix-headers/math.texi (math.h): Mention bug.
53880         Reported by Nelson H. F. Beebe and Jim Meyering.
53881
53882 2008-04-11  Bruno Haible  <bruno@clisp.org>
53883
53884         Adapt to future versions of Apple GCC.
53885         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53886         Reported by Peter O'Gorman <peter@pogma.com>.
53887
53888 2008-04-11  Bruno Haible  <bruno@clisp.org>
53889
53890         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53891
53892 2008-04-11  Bruno Haible  <bruno@clisp.org>
53893
53894         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53895
53896         * modules/getaddrinfo-tests (Makefile.am): Define
53897         test_getaddrinfo_LDADD.
53898
53899 2008-04-11  Bruno Haible  <bruno@clisp.org>
53900
53901         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53902         (init): Fix syntax error.
53903         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53904         is declared.
53905
53906 2008-04-11  Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53909         * modules/glob (Depends-on): Add stdbool.
53910
53911 2008-04-11  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/trim.c: Include <string.h>.
53914
53915 2008-04-11  Eric Blake  <ebb9@byu.net>
53916
53917         Avoid compile failure on OS/2.
53918         * lib/regex_internal.h (internal_function): Disable optimization
53919         on OS/2 (__EMX__), where it caused compiler error.
53920         Reported by Elbert Pol.
53921
53922 2008-04-11  Bruno Haible  <bruno@clisp.org>
53923
53924         Flush the standard error stream before aborting. Needed on mingw.
53925         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53926         * tests/test-array_list.c (ASSERT): Likewise.
53927         * tests/test-array_oset.c (ASSERT): Likewise.
53928         * tests/test-avltree_list.c (ASSERT): Likewise.
53929         * tests/test-avltree_oset.c (ASSERT): Likewise.
53930         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53931         * tests/test-binary-io.c (ASSERT): Likewise.
53932         * tests/test-byteswap.c (ASSERT): Likewise.
53933         * tests/test-c-ctype.c (ASSERT): Likewise.
53934         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53935         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53936         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53937         * tests/test-c-strstr.c (ASSERT): Likewise.
53938         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53939         * tests/test-canonicalize.c (ASSERT): Likewise.
53940         * tests/test-carray_list.c (ASSERT): Likewise.
53941         * tests/test-ceilf1.c (ASSERT): Likewise.
53942         * tests/test-ceilf2.c (ASSERT): Likewise.
53943         * tests/test-ceill.c (ASSERT): Likewise.
53944         * tests/test-count-one-bits.c (ASSERT): Likewise.
53945         * tests/test-fbufmode.c (ASSERT): Likewise.
53946         * tests/test-fflush2.c (ASSERT): Likewise.
53947         * tests/test-floorf1.c (ASSERT): Likewise.
53948         * tests/test-floorf2.c (ASSERT): Likewise.
53949         * tests/test-floorl.c (ASSERT): Likewise.
53950         * tests/test-fopen.c (ASSERT): Likewise.
53951         * tests/test-fpending.c (ASSERT): Likewise.
53952         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53953         * tests/test-fpurge.c (ASSERT): Likewise.
53954         * tests/test-freadable.c (ASSERT): Likewise.
53955         * tests/test-freadahead.c (ASSERT): Likewise.
53956         * tests/test-freading.c (ASSERT): Likewise.
53957         * tests/test-freadptr.c (ASSERT): Likewise.
53958         * tests/test-freadptr2.c (ASSERT): Likewise.
53959         * tests/test-freadseek.c (ASSERT): Likewise.
53960         * tests/test-freopen.c (ASSERT): Likewise.
53961         * tests/test-frexp.c (ASSERT): Likewise.
53962         * tests/test-frexpl.c (ASSERT): Likewise.
53963         * tests/test-fseek.c (ASSERT): Likewise.
53964         * tests/test-fseeko.c (ASSERT): Likewise.
53965         * tests/test-fstrcmp.c (ASSERT): Likewise.
53966         * tests/test-ftell.c (ASSERT): Likewise.
53967         * tests/test-ftello.c (ASSERT): Likewise.
53968         * tests/test-func.c (ASSERT): Likewise.
53969         * tests/test-fwritable.c (ASSERT): Likewise.
53970         * tests/test-fwriting.c (ASSERT): Likewise.
53971         * tests/test-getdelim.c (ASSERT): Likewise.
53972         * tests/test-getline.c (ASSERT): Likewise.
53973         * tests/test-i-ring.c (ASSERT): Likewise.
53974         * tests/test-iconv-utf.c (ASSERT): Likewise.
53975         * tests/test-iconv.c (ASSERT): Likewise.
53976         * tests/test-isfinite.c (ASSERT): Likewise.
53977         * tests/test-isnand.c (ASSERT): Likewise.
53978         * tests/test-isnanf.c (ASSERT): Likewise.
53979         * tests/test-isnanl.h (ASSERT): Likewise.
53980         * tests/test-ldexpl.c (ASSERT): Likewise.
53981         * tests/test-linked_list.c (ASSERT): Likewise.
53982         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53983         * tests/test-localename.c (ASSERT): Likewise.
53984         * tests/test-lseek.c (ASSERT): Likewise.
53985         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53986         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53987         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53988         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53989         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53990         * tests/test-mbschr.c (ASSERT): Likewise.
53991         * tests/test-mbscspn.c (ASSERT): Likewise.
53992         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53993         * tests/test-mbspbrk.c (ASSERT): Likewise.
53994         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53995         * tests/test-mbsrchr.c (ASSERT): Likewise.
53996         * tests/test-mbsspn.c (ASSERT): Likewise.
53997         * tests/test-mbsstr1.c (ASSERT): Likewise.
53998         * tests/test-mbsstr2.c (ASSERT): Likewise.
53999         * tests/test-mbsstr3.c (ASSERT): Likewise.
54000         * tests/test-memchr2.c (ASSERT): Likewise.
54001         * tests/test-memmem.c (ASSERT): Likewise.
54002         * tests/test-open.c (ASSERT): Likewise.
54003         * tests/test-printf-frexp.c (ASSERT): Likewise.
54004         * tests/test-printf-frexpl.c (ASSERT): Likewise.
54005         * tests/test-printf-posix.c (ASSERT): Likewise.
54006         * tests/test-quotearg.c (ASSERT): Likewise.
54007         * tests/test-rbtree_list.c (ASSERT): Likewise.
54008         * tests/test-rbtree_oset.c (ASSERT): Likewise.
54009         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
54010         * tests/test-round1.c (ASSERT): Likewise.
54011         * tests/test-roundf1.c (ASSERT): Likewise.
54012         * tests/test-roundl.c (ASSERT): Likewise.
54013         * tests/test-signbit.c (ASSERT): Likewise.
54014         * tests/test-sleep.c (ASSERT): Likewise.
54015         * tests/test-snprintf-posix.c (ASSERT): Likewise.
54016         * tests/test-snprintf.c (ASSERT): Likewise.
54017         * tests/test-sprintf-posix.c (ASSERT): Likewise.
54018         * tests/test-stat-time.c (ASSERT): Likewise.
54019         * tests/test-strcasestr.c (ASSERT): Likewise.
54020         * tests/test-strerror.c (ASSERT): Likewise.
54021         * tests/test-striconv.c (ASSERT): Likewise.
54022         * tests/test-striconveh.c (ASSERT): Likewise.
54023         * tests/test-striconveha.c (ASSERT): Likewise.
54024         * tests/test-strsignal.c (ASSERT): Likewise.
54025         * tests/test-strstr.c (ASSERT): Likewise.
54026         * tests/test-strtod.c (ASSERT): Likewise.
54027         * tests/test-trunc1.c (ASSERT): Likewise.
54028         * tests/test-trunc2.c (ASSERT): Likewise.
54029         * tests/test-truncf1.c (ASSERT): Likewise.
54030         * tests/test-truncf2.c (ASSERT): Likewise.
54031         * tests/test-truncl.c (ASSERT): Likewise.
54032         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
54033         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
54034         * tests/test-vasnprintf.c (ASSERT): Likewise.
54035         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
54036         * tests/test-vasprintf.c (ASSERT): Likewise.
54037         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
54038         * tests/test-vprintf-posix.c (ASSERT): Likewise.
54039         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
54040         * tests/test-vsnprintf.c (ASSERT): Likewise.
54041         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
54042         * tests/test-wcwidth.c (ASSERT): Likewise.
54043         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
54044         * tests/test-xprintf-posix.c (ASSERT): Likewise.
54045         * tests/test-xvasprintf.c (ASSERT): Likewise.
54046         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
54047         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
54048         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
54049         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
54050         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
54051         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
54052         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
54053         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
54054         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
54055         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
54056         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
54057         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
54058         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
54059         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
54060         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
54061         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
54062         * tests/unictype/test-block_list.c (ASSERT): Likewise.
54063         * tests/unictype/test-block_of.c (ASSERT): Likewise.
54064         * tests/unictype/test-block_test.c (ASSERT): Likewise.
54065         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
54066         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
54067         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
54068         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
54069         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
54070         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
54071         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
54072         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
54073         * tests/unictype/test-combining.c (ASSERT): Likewise.
54074         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
54075         * tests/unictype/test-digit.c (ASSERT): Likewise.
54076         * tests/unictype/test-mirror.c (ASSERT): Likewise.
54077         * tests/unictype/test-numeric.c (ASSERT): Likewise.
54078         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
54079         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
54080         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
54081         * tests/unictype/test-scripts.c (ASSERT): Likewise.
54082         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
54083         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
54084         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
54085         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
54086         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
54087         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
54088         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
54089         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
54090         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
54091         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
54092         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
54093         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
54094         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
54095         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
54096         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
54097         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
54098         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
54099         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
54100         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
54101         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
54102         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
54103         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
54104         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
54105         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
54106         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
54107         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
54108         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
54109         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
54110         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
54111         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
54112         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
54113         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
54114         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
54115         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
54116         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
54117         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
54118         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
54119         Reported by Eric Blake.
54120
54121 2008-04-11  Bruno Haible  <bruno@clisp.org>
54122
54123         * lib/wchar.in.h: Tweak comment.
54124
54125 2008-04-11  Bruno Haible  <bruno@clisp.org>
54126
54127         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
54128         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
54129         gl_COMMON.
54130         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
54131
54132 2008-04-11  Bruno Haible  <bruno@clisp.org>
54133
54134         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
54135
54136 2008-04-11  Simon Josefsson  <simon@josefsson.org>
54137
54138         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
54139         of attempting to use non-existing /dev/*random.  Based on patch
54140         from Adam Strzelecki <ono@java.pl> in
54141         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
54142
54143 2008-04-08  Bruno Haible  <bruno@clisp.org>
54144
54145         Add tentative support for emx+gcc.
54146         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
54147         * lib/fpurge.c (fpurge): Likewise.
54148         * lib/freadable.c (freadable): Likewise.
54149         * lib/freadahead.c (freadahead): Likewise.
54150         * lib/freading.c (freading): Likewise.
54151         * lib/freadptr.c (freadptr): Likewise.
54152         * lib/freadseek.c (freadptrinc): Likewise.
54153         * lib/fseeko.c (rpl_fseeko): Likewise.
54154         * lib/fseterr.c (fseterr): Likewise.
54155         * lib/fwritable.c (fwritable): Likewise.
54156         * lib/fwriting.c (fwriting): Likewise.
54157         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
54158
54159 2008-04-09  Eric Blake  <ebb9@byu.net>
54160
54161         Avoid some autoconf warnings.
54162         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
54163         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
54164         * m4/afs.m4 (gl_AFS): Likewise.
54165         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
54166         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
54167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54168         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
54169         (gl_INTEGER_TYPE_SUFFIX): Likewise.
54170         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
54171         (AC_CHECK_DECLS_ONCE): Likewise.
54172         Rename file...
54173         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
54174         gnulib-tool requires autoconf 2.59 or better.
54175         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
54176
54177 2008-04-08  Eric Blake  <ebb9@byu.net>
54178
54179         Use 'git describe --match' if present (added in git 1.5.5).
54180         * build-aux/git-version-gen: Limit result to tags that match 'v*'
54181         if possible.
54182
54183 2008-04-08  Bruno Haible  <bruno@clisp.org>
54184
54185         Add tentative support for OpenServer.
54186         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
54187         _ptr, _cnt.
54188         * lib/fpurge.c (fpurge): Likewise.
54189         * lib/freadable.c (freadable): Likewise.
54190         * lib/freadahead.c (freadahead): Likewise.
54191         * lib/freading.c (freading): Likewise.
54192         * lib/freadptr.c (freadptr): Likewise.
54193         * lib/freadseek.c (freadptrinc): Likewise.
54194         * lib/fseeko.c (rpl_fseeko): Likewise.
54195         * lib/fseterr.c (fseterr): Likewise.
54196         * lib/fwritable.c (fwritable): Likewise.
54197         * lib/fwriting.c (fwriting): Likewise.
54198         Reported by Roger Cornelius <rac@tenzing.org> and
54199         Brian K. White <brian@aljex.com>.
54200
54201 2008-04-06  Jim Meyering  <meyering@redhat.com>
54202
54203         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
54204
54205 2008-04-06  Bruno Haible  <bruno@clisp.org>
54206
54207         Avoid possible error with non-ASCII bytes in UTF-8 locales.
54208         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
54209         * tests/test-printf-posix.sh: Likewise.
54210         * tests/test-vfprintf-posix.sh: Likewise.
54211         * tests/test-vprintf-posix.sh: Likewise.
54212         * tests/test-xprintf-posix.sh: Likewise.
54213
54214 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54215
54216         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
54217         hide error from 'ls', needed on OS/2.
54218         Report by Elbert Pol <elbert.pol@gmail.com>.
54219
54220 2008-04-04  Eric Blake  <ebb9@byu.net>
54221
54222         Make test-fseeko.c failures meaningful.
54223         * tests/test-fseeko.c: Print line number on failure.
54224         * tests/test-fseek.c: Likewise.
54225         Reported by Nelson H. F. Beebe.
54226
54227         Improve strtod bug detection check.
54228         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
54229         required for Solaris 10.
54230         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
54231
54232 2008-04-04  Bruno Haible  <bruno@clisp.org>
54233
54234         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
54235         by m4/setenv.m4.
54236
54237 2008-04-03  Eric Blake  <ebb9@byu.net>
54238
54239         Ensure sane .version contents.
54240         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
54241         version string.
54242         * build-aux/git-version-gen: Improve documentation.
54243
54244         Make GNU make output nicer.
54245         * top/GNUmakefile [!_have-Makefile]: Add dependency on
54246         MAKECMDGOALS to enforce message for all command line targets.  Set
54247         srcdir for use in maint.mk.
54248
54249         Another maintainer tweak.
54250         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
54251         a target that regenerates version.
54252
54253 2008-04-03  Jim Meyering  <meyering@redhat.com>
54254
54255         vc-list-files: don't cause coreutils "make po-check" failure
54256         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
54257
54258 2008-04-03  Eric Blake  <ebb9@byu.net>
54259
54260         Allow VPATH usage of vc-list-files.
54261         * build-aux/vc-list-files (scriptversion): Add timestamp.
54262         (options): Add --help, --version, -C.
54263         (CVS): Support installed cvsu.
54264
54265 2008-04-02  Bruno Haible  <bruno@clisp.org>
54266
54267         Avoid some "statement with no effect" warnings from gcc.
54268         * tests/test-wctype.c (main): Explicitly ignore unused values.
54269         Reported by Jim Meyering.
54270
54271 2008-04-02  Jim Meyering  <meyering@redhat.com>
54272
54273         Avoid some warnings from "gcc -Wshadow".
54274         * tests/test-frexp.c (exp): Define to a different identifier.
54275         * tests/test-frexpl.c (exp): Likewise.
54276
54277 2008-04-03  Jim Meyering  <meyering@redhat.com>
54278
54279         bootstrap: remove dangling *.[ch] symlinks from lib
54280         * build-aux/bootstrap [dangling symlink removal]: Move find's
54281         -depth option to precede all others, to avoid a warning.
54282         Remove *.[ch] files too, and from "$source_base" (usually lib/).
54283
54284 2008-04-02  Bruno Haible  <bruno@clisp.org>
54285
54286         Avoid some warnings from "gcc -Wshadow".
54287         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
54288         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
54289         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
54290         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
54291         Reported by Jim Meyering.
54292
54293 2008-04-01  Bruno Haible  <bruno@clisp.org>
54294
54295         Fix test to work on IRIX 6.5 with cc.
54296         * tests/test-math.c (numeric_equal): New function.
54297         (main): Use it.
54298
54299 2008-04-01  Bruno Haible  <bruno@clisp.org>
54300
54301         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
54302
54303 2008-04-01  Bruno Haible  <bruno@clisp.org>
54304
54305         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
54306         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54307         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
54308         (Depends-on): Remove math.
54309
54310         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
54311         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54312         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
54313         (Depends-on): Remove math.
54314
54315         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
54316         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54317         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
54318         (Depends-on): Remove math.
54319         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
54320         (Depends-on): Remove math.
54321
54322         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
54323         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54324         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
54325         (Depends-on): Remove math.
54326         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
54327         (Depends-on): Remove math.
54328
54329         * tests/test-round1.c: Include nan.h.
54330         (main): Use NaNd instead of NAN.
54331         * modules/round-tests (Files): Add tests/nan.h.
54332
54333         * tests/test-trunc1.c: Include nan.h.
54334         (main): Use NaNd instead of NAN.
54335         * modules/trunc-tests (Files): Add tests/nan.h.
54336
54337         * tests/test-roundf1.c: Include nan.h.
54338         (main): Use NaNf instead of NAN.
54339         * modules/roundf-tests (Files): Add tests/nan.h.
54340
54341         * tests/test-truncf1.c: Include nan.h.
54342         (main): Use NaNf instead of NAN.
54343         * modules/truncf-tests (Files): Add tests/nan.h.
54344
54345         * tests/test-ceilf1.c: Include nan.h.
54346         (main): Use NaNf instead of NAN.
54347         * modules/ceilf-tests (Files): Add tests/nan.h.
54348
54349         * tests/test-floorf1.c: Include nan.h.
54350         (main): Use NaNf instead of NAN.
54351         * modules/floorf-tests (Files): Add tests/nan.h.
54352
54353         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
54354         (main): Use NaNf instead of NAN.
54355         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
54356
54357         * tests/test-isnand.c: Include nan.h instead of <math.h>.
54358         (main): Use NaNd instead of NAN.
54359         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
54360
54361         * tests/test-frexp.c: Include nan.h.
54362         (main): Use NaNd instead of NAN.
54363         * modules/frexp-tests (Files): Add tests/nan.h.
54364
54365         * lib/isnan.c: Don't include <math.h>.
54366         (FUNC): Don't use NAN macro.
54367         * modules/isnand-nolibm (Depends-on): Remove math.
54368         * modules/isnanf-nolibm (Depends-on): Remove math.
54369         * modules/isnanl (Depends-on): Remove math.
54370         * modules/isnanl-nolibm (Depends-on): Remove math.
54371
54372         * tests/nan.h: New file.
54373
54374 2008-04-01  Eric Blake  <ebb9@byu.net>
54375
54376         Fix typos.
54377         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
54378         values to be the right type.
54379
54380         For now, cater to gnulib strtod inaccuracies.
54381         * tests/test-strtod.c (main): Allow 1-ulp error on expected
54382         fractional results.  While not as nice from a QoI perspective, it
54383         is a quicker patch than correctly implementing decimal to binary
54384         rounding.
54385
54386 2008-03-31  Eric Blake  <ebb9@byu.net>
54387
54388         Guarantee a definition of NAN.
54389         * lib/math.in.h (NAN): Define if missing.
54390         * tests/test-math.c (main): Test it.
54391         * doc/posix-headers/math.texi (math.h): Document this.
54392         * lib/isnan.c (rpl_isnand): Use it.
54393         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
54394         * tests/test-floorf1.c (NaN): Likewise.
54395         * tests/test-frexp.c (NaN): Likewise.
54396         * tests/test-isnand.c (NaN): Likewise.
54397         * tests/test-isnanf.c (NaN): Likewise.
54398         * tests/test-round1.c (NaN): Likewise.
54399         * tests/test-roundf1.c (NaN): Likewise.
54400         * tests/test-snprintf-posix.h (NaN): Likewise.
54401         * tests/test-sprintf-posix.h (NaN): Likewise.
54402         * tests/test-trunc1.c (NaN): Likewise.
54403         * tests/test-truncf1.c (NaN): Likewise.
54404         * tests/test-vasnprintf-posix.c (NaN): Likewise.
54405         * tests/test-vasprintf-posix.c (NaN): Likewise.
54406         * modules/isnand-nolibm (Depends-on): Add math.
54407         * modules/isnanf-nolibm (Depends-on): Likewise.
54408         * modules/isnanl (Depends-on): Likewise.
54409         * modules/isnanl-nolibm (Depends-on): Likewise.
54410         * modules/snprintf-posix-tests (Depends-on): Likewise.
54411         * modules/sprintf-posix-tests (Depends-on): Likewise.
54412         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
54413         * modules/vsprintf-posix-tests (Depends-on): Likewise.
54414         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
54415         * modules/vasprintf-posix-tests (Depends-on): Likewise.
54416
54417 2008-03-31  Bruno Haible  <bruno@clisp.org>
54418
54419         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
54420         * doc/posix-functions/strtod.texi: Likewise.
54421
54422 2008-03-31  Bruno Haible  <bruno@clisp.org>
54423
54424         * tests/test-strtod.c (main): Don't use C99 syntax.
54425
54426 2008-03-31  Bruno Haible  <bruno@clisp.org>
54427
54428         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
54429         Reported by Eric Blake.
54430
54431 2008-03-31  Jim Meyering  <meyering@redhat.com>
54432
54433         Don't compare actual signbit return values.
54434         * tests/test-strtod.c (main): Rather, compare only their
54435         zero/non-zero nature.
54436
54437 2008-03-31  Eric Blake  <ebb9@byu.net>
54438
54439         More strtod documentation.
54440         * doc/posix-functions/strtod.texi (strtod): Interpret more test
54441         failures as distinct bugs.
54442
54443 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
54446         Problem reported by Erik Benada in
54447         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
54448
54449 2008-03-30  Bruno Haible  <bruno@clisp.org>
54450
54451         * tests/test-strtod.c: Add comments about which assertion fails on which
54452         platform.
54453         * doc/posix-functions/strtod.texi: Add info about many more platforms.
54454
54455 2008-03-30  Eric Blake  <ebb9@byu.net>
54456
54457         Test signbit behavior on zeros.
54458         * tests/test-signbit.c (test_signbitf): Add tests for zero.
54459         (test_signbitd, test_signbitl): Likewise.
54460
54461         More strtod touchups.
54462         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
54463         sign of negative underflow, for now.  Use .5, not .1.
54464         * doc/posix-functions/strtod.texi (strtod): Mention these
54465         limitations.
54466         Reported by Jim Meyering.
54467
54468 2008-03-30  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
54471         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
54472
54473 2008-03-30  Bruno Haible  <bruno@clisp.org>
54474
54475         Avoid failure when attempting to return empty iconv results on some
54476         platforms.
54477         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
54478         allocation, don't report ENOMEM when the resulting string is empty.
54479
54480 2008-03-30  Bruno Haible  <bruno@clisp.org>
54481
54482         Fix buffer overrun.
54483         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
54484         Don't consider the width for tmp_length. Check count against tmp_length
54485         before doing the padding. Ensure enough allocation during padding.
54486
54487 2008-03-30  Eric Blake  <ebb9@byu.net>
54488
54489         strtod touchups.
54490         * lib/strtod.c (strtod): Avoid compiler warnings.
54491         Reported by Jim Meyering.
54492
54493 2008-03-30  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
54496         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
54497         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
54498         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
54499         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
54500         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
54501         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
54502         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
54503
54504         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
54505         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
54506         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
54507         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
54508         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
54509         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
54510         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
54511         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
54512
54513         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
54514         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
54515         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
54516         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
54517         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
54518         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
54519         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
54520         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54521
54522         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
54523         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
54524
54525         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
54526         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
54527
54528         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
54529         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
54530
54531         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
54532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
54533         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
54534
54535         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
54536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
54537         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
54538
54539         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
54540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
54541         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
54542
54543         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
54544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
54545         * modules/vasprintf (Depends-on): Add EOVERFLOW.
54546
54547         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
54548         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
54549         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
54550         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
54551         (Depends-on): Add EOVERFLOW.
54552         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
54553         (Depends-on): Add EOVERFLOW.
54554         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54555         (Depends-on): Add EOVERFLOW.
54556         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54557         (Depends-on): Add EOVERFLOW.
54558         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54559         (Depends-on): Add EOVERFLOW.
54560         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54561         (Depends-on): Add EOVERFLOW.
54562         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54563         (Depends-on): Add EOVERFLOW.
54564         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54565         (Depends-on): Add EOVERFLOW.
54566
54567         * lib/sprintf.c (EOVERFLOW): Remove fallback.
54568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
54569         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
54570
54571         * lib/snprintf.c (EOVERFLOW): Remove fallback.
54572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
54573         * modules/snprintf (Depends-on): Add EOVERFLOW.
54574
54575         * lib/poll.c (EOVERFLOW): Remove fallback.
54576         * modules/poll (Depends-on): Add EOVERFLOW.
54577
54578         * lib/getugroups.c (EOVERFLOW): Remove fallback.
54579         * modules/getugroups (Depends-on): Add EOVERFLOW.
54580
54581         * lib/getdelim.c (EOVERFLOW): Remove fallback.
54582         * modules/getdelim (Depends-on): Add EOVERFLOW.
54583
54584         * lib/ftell.c (EOVERFLOW): Remove fallback.
54585         * modules/ftell (Depends-on): Add EOVERFLOW.
54586
54587         * lib/fprintf.c (EOVERFLOW): Remove fallback.
54588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
54589         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
54590
54591         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
54592
54593         * modules/EOVERFLOW-tests: New file.
54594         * tests/test-EOVERFLOW.c: New file.
54595
54596         * modules/EOVERFLOW: New file.
54597         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
54598
54599 2008-03-30  Bruno Haible  <bruno@clisp.org>
54600
54601         Fix bug introduced on 2007-06-10.
54602         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
54603         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
54604
54605 2008-03-30  Bruno Haible  <bruno@clisp.org>
54606
54607         Improve freadseek's efficiency after ungetc.
54608         * lib/freadseek.c: Include freadahead.h.
54609         (freadptrinc): New function, extracted from freadseek.
54610         (freadseek): Use it in a loop. Use freadahead to determine the number
54611         of loop iterations.
54612         * modules/freadseek (Depends-on): Add freadahead.
54613         (configure.ac): Require AC_C_INLINE.
54614
54615 2008-03-30  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/freadseek.c (freadseek): Don't ignore the return value of
54618         freadptr.
54619
54620 2008-03-29  Eric Blake  <ebb9@byu.net>
54621
54622         Add hex float support.
54623         * modules/strtod (Depends-on): Add c-ctype.
54624         (Link): Mention POW_LIB.
54625         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
54626         whitespace between 'e' and exponent.
54627         * tests/test-strtod.c (main): Enable hex float tests.
54628         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
54629         now provides.
54630
54631         Document various strtod bugs, with some fixes.
54632         * doc/posix-functions/strtod.texi (strtod): Document bugs with
54633         "-0x", "inf", "nan", and hex constants.
54634         * doc/posix-functions/atof.texi (atof): Likewise.
54635         * modules/stdlib (Makefile.am): Support strtod.
54636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
54637         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
54638         detect additional strtod bugs.
54639         * lib/stdlib.in.h (rpl_strtod): Add declarations.
54640         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
54641         bool where appropriate.  Parse 'inf' and 'nan'.
54642         * tests/test-strtod.c: New file.
54643         * modules/strtod (Depends-on): Add stdbool, stdlib.
54644         (configure.ac): Turn on module indicator.
54645         * modules/strtod-tests: New module.
54646
54647 2008-03-29  Eric Blake  <ebb9@byu.net>
54648
54649         Fix ftell on mingw.
54650         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
54651         * modules/ftell-tests (Depends-on): Add binary-io.
54652         * modules/ftello-tests (Depends-on): Likewise.
54653         * tests/test-ftell.c (main): Enhance test to cover behavior after
54654         ungetc.  Enforce binary mode.
54655         * tests/test-ftello.c (main): Likewise.
54656
54657         Pass test-freadseek on cygwin.
54658         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
54659         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
54660         ungetc buffer.
54661
54662         * tests/test-fflush2.c (main): Fix typo.
54663
54664 2008-03-29  Bruno Haible  <bruno@clisp.org>
54665
54666         * tests/test-fflush2.c (main): Temporarily disable the contents of
54667         this test.
54668         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
54669         Reported by Eric Blake.
54670
54671 2008-03-28  Simon Josefsson  <simon@josefsson.org>
54672
54673         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
54674         (GC_SHA224_DIGEST_SIZE): Add.
54675
54676         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
54677         (gc_hash_digest_length): Likewise.
54678         (gc_hash_buffer): Likewise.
54679
54680 2008-03-25  Bruno Haible  <bruno@clisp.org>
54681
54682         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
54683         detail which gettext release to use.
54684         Reported by Simon Josefsson.
54685
54686 2008-03-26  Jim Meyering  <meyering@redhat.com>
54687
54688         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
54689         * modules/gnumakefile (clean-GNUmakefile): Also, use
54690         test ... && ... || : syntax rather than if-then ... fi.
54691
54692         gnumakefile: Don't double-quote-expand $(VPATH) value.
54693         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
54694
54695 2008-03-24  Eric Blake  <ebb9@byu.net>
54696
54697         Alter GNUmakefile to install into top directory.
54698         * modules/maintainer-makefile: Split, and add dependency...
54699         * modules/gnumakefile: to this new module.
54700         * build-aux/GNUmakefile: Move...
54701         * top/GNUmakefile: ...here.
54702         * build-aux/maint.mk: Move...
54703         * top/maint.mk: ...here.
54704         * MODULES.html.sh (Support for maintaining...): Document new
54705         module.
54706
54707 2008-03-23  Bruno Haible  <bruno@clisp.org>
54708
54709         * gnulib-tool: New options --vc-files, --no-vc-files.
54710         (func_usage): Document them.
54711         (vc_files): New variable.
54712         (func_import): Consider vc_files.
54713         (func_create_testdir): Set vc_files to empty.
54714         Suggested by Jim Meyering and Karl Berry.
54715
54716 2008-03-23  Bruno Haible  <bruno@clisp.org>
54717
54718         Fix regex compilation error on HP-UX 11.
54719         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
54720         * modules/regex (Files): Add m4/mbstate_t.m4.
54721         Reported by Ton Voon <ton.voon@altinity.com>.
54722
54723 2008-03-23  Bruno Haible  <bruno@clisp.org>
54724
54725         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
54726
54727 2008-03-23  Eric Blake  <ebb9@byu.net>
54728             Bruno Haible  <bruno@clisp.org>
54729
54730         Install files from top/ in the destination directory.
54731         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54732         augmentation also for the files from top/.
54733         (func_import, func_create_testdir): Rewrite file names:
54734         top/filename -> filename.
54735
54736 2008-03-23  Bruno Haible  <bruno@clisp.org>
54737
54738         Tweak "gnulib --version" output.
54739         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
54740
54741 2008-03-23  Bruno Haible  <bruno@clisp.org>
54742
54743         Tweak "gnulib --version" output.
54744         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
54745         rather than contents of ChangeLog, when possible.
54746
54747 2008-03-21  Eric Blake  <ebb9@byu.net>
54748
54749         More --version tweaks.
54750         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
54751         date of last ChangeLog entry.
54752
54753 2008-03-21  Jim Meyering  <meyering@redhat.com>
54754
54755         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
54756
54757 2008-03-20  Eric Blake  <ebb9@byu.net>
54758
54759         VPATH fix.
54760         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
54761
54762 2008-03-20  Simon Josefsson  <simon@josefsson.org>
54763
54764         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
54765         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
54766
54767 2008-03-20  Eric Blake  <ebb9@byu.net>
54768
54769         Sync GNUmakefile with coreutils.
54770         * build-aux/GNUmakefile (have-Makefile): Rename...
54771         (_have-Makefile): ...to this, for namespace consideration.
54772         (GNUmakefile.cfg): Include, if present.
54773         (_autoreconf): Define a default.
54774         (_is-dist-target): New rule for rebuilds to pick up intra-release
54775         version.
54776         (maint-cfg.mk): Rename...
54777         (cfg.mk): ...to this.
54778
54779 2008-03-18  Jim Meyering  <meyering@redhat.com>
54780
54781         New script and module: mktempd
54782         * MODULES.html.sh (maint+release support): Add mktempd.
54783         * build-aux/mktempd: New file.
54784         * modules/mktempd: New file.
54785
54786 2008-03-15  Jim Meyering  <meyering@redhat.com>
54787
54788         Undo last change.
54789         * lib/sha1.c, lib/md5.c: 63 != ~63.
54790         Reported by Andreas Schwab.
54791
54792         sha1.c, md5.c: Hoist a redundant expression.
54793         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
54794         "ctx->buflen" only once, before calling *_process_block.
54795         * lib/md5.c (md5_process_bytes): Likewise.
54796
54797 2008-03-14  Eric Blake  <ebb9@byu.net>
54798
54799         Bump copyright year in files generated by gnulib-tool.
54800         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
54801         gnulib-tool, rather than hard-coding it.
54802
54803         Fix 'gnulib-tool --version' output to work with git.
54804         * gnulib-tool (func_gnulib_dir): New function, extracted from...
54805         (startup): ...here.
54806         (func_version): Use it to invoke git-version-gen, rather than
54807         relying on CVS keyword expansion.  Modernize wording.
54808         (cvsdatestamp, last_checkin_date, version): Kill unused
54809         variables.
54810
54811 2008-03-12  Jim Meyering  <meyering@redhat.com>
54812
54813         Recognize optional cast of the argument to free.
54814         * build-aux/useless-if-before-free: Update regexps.
54815
54816         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54817
54818 2008-03-11  Bruno Haible  <bruno@clisp.org>
54819
54820         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54821         by a single package.
54822         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54823         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54824         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54825         Reported by Sam Steingold <sds@gnu.org>.
54826
54827 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54828
54829         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54830         repositories.
54831
54832 2008-03-11  Bruno Haible  <bruno@clisp.org>
54833
54834         Avoid conflicts between local macro definitions.
54835         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54836         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54837
54838 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54839             Bruno Haible  <bruno@clisp.org>
54840
54841         Make va_copy work with some version of xlc on AIX 5.1.
54842         * lib/stdarg.in.h: New file.
54843         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54844         On AIX, use a <stdarg.h> file substitute.
54845         * modules/stdarg (Files): Add lib/stdarg.in.h.
54846         (Depends-on): Add include_next.
54847         (Makefile.am): Build a stdarg.h substitute if requested.
54848         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54849
54850 2008-03-10  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54854         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54855
54856 2008-03-10  Bruno Haible  <bruno@clisp.org>
54857
54858         * modules/stdlib (Depends-on): Add include_next, remove
54859         absolute-header.
54860
54861 2008-03-09  Bruno Haible  <bruno@clisp.org>
54862
54863         * lib/freadahead.h (freadahead): Document more precisely.
54864         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54865         the sum of both buffer sizes.
54866         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54867         * NEWS: Document the change.
54868
54869 2008-03-09  Bruno Haible  <bruno@clisp.org>
54870
54871         Extend freadptr to return also the buffer size.
54872         * lib/freadptr.h (freadptr): Add sizep argument.
54873         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54874         (freadptr): Add sizep argument. Determine buffer size like freadahead
54875         does.
54876         * tests/test-freadptr.c: Don't include freadahead.h.
54877         (main): Adapt for new calling convention of freadptr.
54878         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54879         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54880         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54881         tests/test-freadptr2.sh.
54882         (Depends): Remove freadahead.
54883         (TESTS): Add test-freadptr2.sh.
54884         (check_PROGRAMS): Add test-freadptr2.
54885
54886 2008-03-09  Bruno Haible  <bruno@clisp.org>
54887
54888         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54889         Report and solution by Simon Josefsson.
54890
54891 2008-03-06  Bruno Haible  <bruno@clisp.org>
54892
54893         Make fflush after ungetc work on BSD platforms.
54894         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54895         * tests/test-fflush2.c: New file.
54896         * tests/test-fflush2.sh: New file.
54897         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54898         tests/test-fflush2.c.
54899         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54900         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54901
54902 2008-03-06  Eric Blake  <ebb9@byu.net>
54903
54904         Likewise for ftello.
54905         * modules/ftello (Dependencies): Add extensions.
54906         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54907
54908 2008-03-06  Bruno Haible  <bruno@clisp.org>
54909
54910         * modules/fseeko (Dependencies): Add extensions.
54911         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54912         Needed on glibc systems.
54913
54914 2008-03-06  Bruno Haible  <bruno@clisp.org>
54915
54916         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54917         email address.
54918         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54919
54920 2008-03-06  Bruno Haible  <bruno@clisp.org>
54921
54922         * users.txt: Add libgnupdf.
54923
54924 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54925
54926         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54927         (Header File Substitutes, Function Substitutes,
54928         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54929         (Build robot for gnulib): Fix typo.
54930
54931 2008-03-06  Bruno Haible  <bruno@clisp.org>
54932
54933         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54934         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54935
54936 2008-03-06  Bruno Haible  <bruno@clisp.org>
54937
54938         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54939         * doc/gnulib.texi: Include it.
54940
54941 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54942
54943         * modules/func (License): Change license to unlimited; there was
54944         no LGPL parts in the module anyway.
54945
54946 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54947
54948         * modules/__func__: Renamed to modules/func.
54949         * modules/__func__-tests: Renamed to modules/func-tests.
54950         * tests/test-__func__.c: Renamed to tests/test-func.c.
54951         * m4/__func__.m4: Renamed to m4/func.m4.
54952         * doc/gnulib.texi (__func__): Section renamed to func.
54953         Suggested by Eric Blake <ebb9@byu.net>.
54954
54955 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54956
54957         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54958         about __func__.  Make example self-contained.  Suggested by Eric
54959         Blake <ebb9@byu.net>.
54960
54961         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54962         Suggested by Eric Blake <ebb9@byu.net>.
54963
54964 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54965
54966         * modules/__func__: New file.
54967         * modules/__func__-tests: New file.
54968         * tests/test-__func__.c: New file.
54969         * m4/__func__.m4: New file.
54970         * doc/gnulib.texi (__func__): Document __func__ module.
54971
54972 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54973
54974         * modules/byteswap (License): Re-license as LGPLv2+.
54975
54976 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54977
54978         * doc/Makefile: Add pdf target.
54979
54980 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54981
54982         * modules/inline (License): Use 'unlimited', since there are only
54983         *.m4 files in this module.
54984
54985 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54986             Bruno Haible  <bruno@clisp.org>
54987
54988         Add support for HP C 7.1 on OpenVMS 8.3.
54989         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54990
54991 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54992
54993         Update VMS specifics.
54994         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54995
54996 2008-03-02  Jim Meyering  <meyering@redhat.com>
54997
54998         Remove the last dependency on the "free" module.
54999         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
55000         Reported by Bob Proulx.
55001
55002         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
55003
55004         Remove useless "if" tests before free.  Deprecate "free" module.
55005         * doc/posix-functions/free.texi: Mention that this
55006         module is no longer useful.
55007         * modules/free (Notice): Say this module is obsolete.
55008         * modules/readutmp (Depends-on): Remove free.
55009         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
55010         * lib/putenv.c (putenv): Likewise.
55011         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
55012         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
55013         * tests/test-c-strcasestr.c (main): Likewise.
55014         * tests/test-c-strstr.c (main): Likewise.
55015         * tests/test-mbscasestr1.c (main): Likewise.
55016         * tests/test-mbscasestr2.c (main): Likewise.
55017         * tests/test-mbsstr1.c (main): Likewise.
55018         * tests/test-mbsstr2.c (main): Likewise.
55019         * tests/test-memmem.c (main): Likewise.
55020         * tests/test-strcasestr.c (main): Likewise.
55021         * tests/test-striconv.c (main): Likewise.
55022         * tests/test-striconveh.c (main): Likewise.
55023         * tests/test-striconveha.c (main): Likewise.
55024         * tests/test-strstr.c (main): Likewise.
55025
55026         * build-aux/git-version-gen: Adjust a comment and the Usage string.
55027
55028         bootstrap: sync from coreutils again
55029         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
55030
55031 2008-03-01  Jim Meyering  <meyering@redhat.com>
55032
55033         bootstrap: sync from coreutils
55034         * build-aux/bootstrap (update_po_files): Copy a .po file into place
55035         also when the target doesn't exist.
55036
55037 2008-03-01  Eric Blake  <ebb9@byu.net>
55038
55039         Fix bugs in last patch.
55040         * lib/memchr2.c (memchr2): Fix typo.
55041         * tests/test-memchr2.c: Test previous bug, and don't use GNU
55042         extension.
55043         Reported by Bruce Korb.
55044
55045         New module 'memchr2'.
55046         * modules/memchr2: New file.
55047         * modules/memchr2-tests: Likewise.
55048         * lib/memchr2.h: Likewise.
55049         * lib/memchr2.c: Likewise, based on memchr.c.
55050         * tests/test-memchr2.c: New test.
55051         * MODULES.html.sh (String handling): Add memchr2.
55052
55053 2008-02-29  Bruno Haible  <bruno@clisp.org>
55054
55055         * modules/freadseek-tests: New file.
55056         * tests/test-freadseek.sh: New file.
55057         * tests/test-freadseek.c: New file.
55058
55059         New module 'freadseek'.
55060         * modules/freadseek: New file.
55061         * lib/freadseek.h: New file.
55062         * lib/freadseek.c: New file.
55063         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
55064
55065 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55066
55067         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
55068         wydawca.
55069
55070         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
55071         program_invocation_name and program_invocation_short_name are
55072         present.
55073
55074 2008-02-28  Bruno Haible  <bruno@clisp.org>
55075
55076         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
55077         * tests/test-freadptr.sh: Also test non-seekable stdin.
55078
55079 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
55080
55081         * build-aux/bootstrap (source_base, m4_base)
55082         (doc_base, tests_base): New variables.
55083         (gnulib_tool_options): Do not hardcode base directories, use
55084         the above variables instead.
55085
55086 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
55087
55088         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
55089
55090 2008-02-28  Bruno Haible  <bruno@clisp.org>
55091
55092         * modules/freadptr-tests: New file.
55093         * tests/test-freadptr.sh: New file.
55094         * tests/test-freadptr.c: New file.
55095
55096         New module 'freadptr'.
55097         * modules/freadptr: New file.
55098         * lib/freadptr.h: New file.
55099         * lib/freadptr.c: New file.
55100         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
55101
55102 2008-02-26  Karl Berry  <karl@freefriends.org>
55103
55104         Sync from Libtool:
55105         * libltdl/argz.c (argz_add, argz_count): New functions.
55106         * libltdl/argz.in.h: Declare them.
55107         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
55108
55109 2008-02-22  Bruno Haible  <bruno@clisp.org>
55110
55111         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
55112         is a pointer type.  Needed for HP-UX 10.
55113         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
55114         * doc/posix-functions/gmtime_r.texi: Likewise.
55115         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55116
55117 2008-02-24  Bruno Haible  <bruno@clisp.org>
55118
55119         * modules/environ-tests: New file.
55120         * tests/test-environ.c: New file.
55121
55122         New module 'environ'.
55123         * modules/environ: New file.
55124         * lib/unistd.in.h (environ): New declaration.
55125         * m4/environ.m4: New file.
55126         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
55127         after use.
55128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
55129         HAVE_DECL_ENVIRON.
55130         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
55131         HAVE_DECL_ENVIRON.
55132         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
55133         wrong claim that 'environ' is missing on some systems.
55134         * modules/execute (Depends-on): Add environ.
55135         * lib/execute.c (environ): Remove fallback declaration.
55136         * modules/pipe (Depends-on): Add environ.
55137         * lib/pipe.c (environ): Remove fallback declaration.
55138         * modules/setenv (Depends-on): Add environ.
55139         * lib/setenv.c (environ): Remove fallback declaration.
55140         * modules/unsetenv (Depends-on): Add environ.
55141         * lib/unsetenv.c (environ): Remove fallback declaration.
55142         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
55143         m4/environ.m4.
55144         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
55145         (gl_PREREQ_UNSETENV): Likewise.
55146
55147 2008-02-24  Bruno Haible  <bruno@clisp.org>
55148
55149         * doc/posix-functions/environ.texi: Document the MacOS X problem.
55150
55151 2008-02-20  Bob Proulx  <bob@proulx.com>
55152
55153         Enable use of older two part flavor 'git describe'.
55154         * build-aux/git-version-gen: If using the older two part flavor of
55155         git version then recreate the third part now present in the
55156         newer three part flavor of git describe.
55157
55158 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
55159
55160         * lib/fts.c (fts_build): Typo correction to comment.
55161
55162 2008-02-17  Bruno Haible  <bruno@clisp.org>
55163
55164         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
55165         generating no-op conflicts.
55166
55167 2008-02-17  Bruno Haible  <bruno@clisp.org>
55168
55169         Speed up by 10%.
55170         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
55171         result_entries, rather than an index-based loop.
55172
55173 2008-02-17  Bruno Haible  <bruno@clisp.org>
55174
55175         Speed up by 25%.
55176         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
55177         'hashcode_cached'.
55178         (entry_create): New function.
55179         (entry_hashcode): Use the cached hashcode if possible.
55180         (read_changelog_file, try_split_merged_entry): Use entry_create.
55181
55182 2008-02-17  Bruno Haible  <bruno@clisp.org>
55183
55184         Speed up from O(n^2) to O(n) for long ChangeLog files.
55185         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
55186         (read_changelog_file): Change implementation of entries_reversed list
55187         to rbtreehash.
55188         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
55189
55190 2008-02-17  Bruno Haible  <bruno@clisp.org>
55191
55192         New option --split-merged-entry.
55193         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
55194         (find_paragraph_end, try_split_merged_entry): New functions.
55195         (long_options): Add option --split-merged-entry.
55196         (usage): Document option --split-merged-entry.
55197         (main): Implement option --split-merged-entry.
55198         Reported by Eric Blake.
55199
55200 2008-02-17  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/git-merge-changelog.c: Include c-strstr.h.
55203         (main): Support the "git pull --rebase" situation.
55204         * modules/git-merge-changelog (Depends-on): Add c-strstr.
55205         Reported by Eric Blake.
55206
55207 2008-02-16  Eric Blake  <ebb9@byu.net>
55208
55209         Avoid doubling \ in common case of "c-maybe" quoting style.
55210         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
55211         eliding outer quotes.
55212         * lib/quotearg.h: Document this.
55213         * tests/test-quotearg.c (result_strings, inputs, results_g)
55214         (flag_results, locale_results): Test it by adding a new string to
55215         each test group.
55216         (compare_strings): Test new string.
55217
55218 2008-02-13  Eric Blake  <ebb9@byu.net>
55219
55220         Avoid trigraph quoting in default output.
55221         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
55222         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
55223         unless explicitly requested.
55224         * tests/test-quotearg.c (flag_results, main): Add additional tests.
55225
55226 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
55227
55228         Don't rely on signed integer overflowing to negative value.
55229         * lib/getugroups.c (getugroups): Include <limits.h>.
55230         Instead, compare against INT_MAX, and increment only if the test passes.
55231
55232 2008-02-13  Jim Meyering  <meyering@redhat.com>
55233         and Eric Blake  <ebb9@byu.net>
55234
55235         Avoid shadowing warning and compile errors on Linux.
55236         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
55237         forwarding macros on Linux.
55238         (dcgettext): Define a stub, for Linux.
55239         (results_g, main): Avoid warnings.
55240
55241 2008-02-12  Eric Blake  <ebb9@byu.net>
55242
55243         Silence warning in last patch.
55244         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
55245
55246         Quotearg part 4: add tests, fix c-maybe colon quoting.
55247         * lib/quotearg.h: Improve documentation.
55248         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
55249         escapes when adding outer quotes.  When quoting trigraphs, use
55250         valid C notation.  When quoting NUL, omit extra characters if next
55251         character is not digit.  Alter prototype.
55252         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
55253         callers.
55254         * modules/quotearg-tests: New module.
55255         * tests/test-quotearg.c: New test.
55256
55257 2008-02-07  Eric Blake  <ebb9@byu.net>
55258
55259         Quotearg part 3: add flag to control outer quote elision.
55260         * lib/quotearg.h (c_maybe_quoting_style): New style.
55261         (enum quoting_flags): Better documentation of flags.
55262         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
55263         c-maybe style.
55264         (quotearg_buffer_restyled): Handle new flag to elide outer
55265         quotes.
55266
55267         Quotearg part 2: add flag that can control NUL elision.
55268         * lib/quotearg.h (set_quoting_flags): New prototype.
55269         * lib/quotearg.c (struct quoting_options): Add flag field.
55270         (set_quoting_flags): New function.
55271         (quotearg_buffer_restyled): Add flags parameter.
55272         (quotearg_alloc_mem): Set the flag if length cannot be returned.
55273         (quotearg_n_options): Set the flag, since length cannot be
55274         returned.
55275         (quoting_options_from_style): Default flags correctly.
55276
55277         Quotearg part 1: more wrappers, restore quotearg_char state.
55278         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
55279         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
55280         (quotearg_colon_mem): New wrappers.
55281         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
55282         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
55283         functions.
55284         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
55285         (quotearg_colon_mem): New functions.
55286
55287 2008-02-11  Bruno Haible  <bruno@clisp.org>
55288
55289         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
55290         library in the current directory: it does not work with parallel make.
55291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55292
55293 2008-02-11  Bruno Haible  <bruno@clisp.org>
55294
55295         * .gitattributes: New file.
55296
55297 2008-02-11  Jim Meyering  <meyering@redhat.com>
55298
55299         useless-if-before-free: Fix reversed exit values.
55300         * build-aux/useless-if-before-free: Use correct values
55301         for EXIT_MATCH and EXIT_NO_MATCH.
55302
55303         * build-aux/useless-if-before-free: Close stdout carefully.
55304
55305 2008-02-10  Bruno Haible  <bruno@clisp.org>
55306
55307         New module 'git-merge-changelog'.
55308         * modules/git-merge-changelog: New file.
55309         * lib/git-merge-changelog.c: New file.
55310
55311 2008-02-10  Jim Meyering  <meyering@redhat.com>
55312
55313         useless-if-before-free: New option: --list (-l).
55314
55315         useless-if-before-free: Don't exit immediately upon open failure.
55316         * build-aux/useless-if-before-free: Exit 2 for errors.
55317         Upon failure to open a file, don't exit immediately.
55318         Rather, just warn and continue with any remaining files.
55319
55320 2008-02-10  Bruno Haible  <bruno@clisp.org>
55321
55322         New abstract list operation 'node_set_value'.
55323         * lib/gl_list.h (gl_list_node_set_value): New function.
55324         (struct gl_list_implementation): New field node_set_value.
55325         * lib/gl_list.c (gl_list_node_set_value): New function.
55326         * lib/gl_array_list.c (gl_array_node_set_value): New function.
55327         (gl_array_list_implementation): Update.
55328         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
55329         (gl_carray_list_implementation): Update.
55330         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
55331         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55332         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55333         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
55334         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55335         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55336         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55337         Update.
55338         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55339         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
55340         (gl_sublist_list_implementation): Update.
55341
55342 2008-02-10  Bruno Haible  <bruno@clisp.org>
55343
55344         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
55345         Needed when ELEMENT is #defined to 'some_type *'.
55346
55347 2008-02-10  Jim Meyering  <meyering@redhat.com>
55348
55349         New script and module: useless-if-before-free
55350         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
55351         * build-aux/useless-if-before-free: New file.
55352         * modules/useless-if-before-free: New file.
55353
55354         * build-aux/gitlog-to-changelog: Use committer date, not author date.
55355
55356         xstrtol_error: Fix typo.
55357         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
55358         s/exit_failure/exit_status/.
55359
55360 2008-02-09  Jim Meyering  <meyering@redhat.com>
55361
55362         New script and module: gitlog-to-changelog
55363         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
55364         * modules/gitlog-to-changelog: New file.
55365         * build-aux/gitlog-to-changelog: New file.
55366
55367 2008-02-08  Jim Meyering  <meyering@redhat.com>
55368
55369         Avoid two "parameter unused" warnings.
55370         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
55371         Mark "st" as used.
55372
55373         Use "git COMMAND", not "git-COMMAND".
55374         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
55375         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
55376         * build-aux/git-version-gen: Use "git status", not "git-status".
55377
55378 2008-02-07  Bruno Haible  <bruno@clisp.org>
55379
55380         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
55381         Avoids a crash on Windows Vista.
55382         Reported by Adam Strzelecki <ono@java.pl> via
55383         Simon Josefsson <simon@josefsson.org>.
55384
55385 2008-02-06  Bruno Haible  <bruno@clisp.org>
55386
55387         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
55388         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
55389         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
55390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
55391         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55393         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
55394         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
55395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55402         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
55403         left-adjust flag.
55404         * tests/test-snprintf-posix.h (test_function): Likewise.
55405         * tests/test-sprintf-posix.h (test_function): Likewise.
55406         * tests/test-vasprintf-posix.c (test_function): Likewise.
55407         * doc/posix-functions/fprintf.texi: Update.
55408         * doc/posix-functions/printf.texi: Update.
55409         * doc/posix-functions/snprintf.texi: Update.
55410         * doc/posix-functions/sprintf.texi: Update.
55411         * doc/posix-functions/vfprintf.texi: Update.
55412         * doc/posix-functions/vprintf.texi: Update.
55413         * doc/posix-functions/vsnprintf.texi: Update.
55414         * doc/posix-functions/vsprintf.texi: Update.
55415         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55416
55417 2008-02-06  Bruno Haible  <bruno@clisp.org>
55418
55419         Fix bug introduced on 2008-01-26.
55420         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
55421
55422 2008-02-06  Bruno Haible  <bruno@clisp.org>
55423
55424         Fix bug introduced on 2007-06-10.
55425         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
55426         !NEED_PRINTF_FLAG_ZERO.
55427
55428 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
55429
55430         getloadavg: use libperfstat on AIX5
55431         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
55432
55433 2008-02-03  Bruno Haible  <bruno@clisp.org>
55434
55435         * lib/diffseq.h: Add comments about required #includes.
55436         Reported by Michael Biggs <gnulib@doubleplum.net>.
55437
55438 2008-02-01  Bruno Haible  <bruno@clisp.org>
55439
55440         * users.txt: Add gnuit.
55441
55442 2008-01-31  Bruno Haible  <bruno@clisp.org>
55443
55444         * lib/md4.c (set_uint32): Mark as inline.
55445         * lib/md5.c (set_uint32): Likewise.
55446         * lib/sha1.c (set_uint32): Likewise.
55447         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
55448         * m4/md5.m4 (gl_MD5): Likewise.
55449         * m4/sha1.m4 (gl_SHA1): Likewise.
55450
55451 2008-01-31  Jim Meyering  <meyering@redhat.com>
55452
55453         Use "sizeof VAR", rather than a literal "4".
55454         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
55455         * lib/md4.c (md4_read_ctx): Likewise.
55456         * lib/sha1.c (sha1_read_ctx): Likewise.
55457
55458 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55459
55460         * tests/test-sha1.c: New file, based on test-md5.c.
55461
55462         * modules/crypto/sha1-tests: New file.
55463
55464 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55465
55466         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
55467
55468 2008-01-31  Jim Meyering  <meyering@redhat.com>
55469
55470         Prefer "sizeof v" over the equivalent "4".
55471         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
55472         * lib/md5.c (set_uint32): Likewise.
55473         * lib/sha1.c (set_uint32): Likewise.
55474
55475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55476
55477         * lib/sha1.c (set_uint32): Mark function as static.
55478
55479 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55480
55481         md2: clarify comments to say that alignment is not required.
55482         * lib/md2.h: Remove warning about alignment in comment.
55483         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
55484         never been required.
55485
55486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55487
55488         md4: adapt alignment constraint fix from sha1.
55489         * lib/md4.c (set_uint32): New function, from sha1.c
55490         (md4_read_ctx): Use it.
55491         (md4_finish_ctx): Doc fix.
55492         * lib/md4.h: Doc fix.
55493
55494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55495
55496         md5: adapt alignment constraint fix from sha1.
55497         * lib/md5.c (set_uint32): New function, from sha1.c
55498         (md5_read_ctx): Use it.
55499         (md5_finish_ctx): Doc fix.
55500         * lib/md5.h: Doc fix.
55501
55502 2008-01-30  Peter Palfrader  <weasel@debian.org>
55503
55504         sha1: remove the result buffer alignment constraint
55505         * lib/sha1.c (set_uint32): New function.
55506         (sha1_read_ctx): Rewrite to remove the result buffer alignment
55507         constraint.
55508         (sha1_finish_ctx): Remove comment warning about alignment constraint.
55509         * lib/sha1.h: Likewise.
55510
55511 2008-01-30  Andreas Schwab  <schwab@suse.de>
55512             Bruno Haible  <bruno@clisp.org>
55513
55514         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
55515         correct definition of LDBL_MIN_EXP.
55516
55517 2008-01-30  Karl Berry  <karl@gnu.org>
55518
55519         * config/srclist-update: try to preserve x bit on updates.
55520         * config/srclistvars.sh: update for karl.
55521
55522 2008-01-29  Jim Meyering  <meyering@redhat.com>
55523
55524         vasnprintf.c: Avoid warning about unused label
55525         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
55526         "overflow" label definition and associated code with the
55527         same cpp condition that guards the sole use of that label.
55528
55529 2008-01-26  Bruno Haible  <bruno@clisp.org>
55530
55531         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
55532         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
55533         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
55534         * lib/isnanl-nolibm.h (isnanl): Likewise.
55535         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55536
55537 2008-01-26  Bruno Haible  <bruno@clisp.org>
55538
55539         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
55540         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
55541
55542 2008-01-26  Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
55545         GCC >= 4.0 built-in.
55546         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
55547
55548 2008-01-26  Bruno Haible  <bruno@clisp.org>
55549
55550         Rename isnan, applicable to 'double' only, to isnand.
55551         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
55552         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
55553         (configure.ac): Update.
55554         (Include): Replace "isnan.h" with "isnand.h".
55555         * m4/isnand.m4: Renamed from m4/isnan.m4.
55556         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
55557         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
55558         instead of isnan.c.
55559         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
55560         instead of HAVE_ISNAN_IN_LIBC.
55561         (isnand): Renamed from isnan.
55562         * lib/isnand.c: New file.
55563         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
55564         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
55565         (Makefile.am): Update.
55566         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
55567         Include isnand.h instead of isnan.h.
55568         (main): Test isnand instead of isnan.
55569         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
55570         isnan-nolibm.
55571         * modules/frexp (Depends-on): Likewise.
55572         * modules/frexp-tests (Depends-on): Likewise.
55573         * modules/frexp-nolibm (Depends-on): Likewise.
55574         * modules/frexp-nolibm-tests (Depends-on): Likewise.
55575         * modules/isfinite (Depends-on): Likewise.
55576         * modules/round-tests (Depends-on): Likewise.
55577         * modules/signbit (Depends-on): Likewise.
55578         * modules/signbit-tests (Depends-on): Likewise.
55579         * modules/snprintf-posix (Depends-on): Likewise.
55580         * modules/sprintf-posix (Depends-on): Likewise.
55581         * modules/trunc-tests (Depends-on): Likewise.
55582         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55583         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55584         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55585         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55586         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55587         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55588         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55589         * modules/vasnprintf-posix (Depends-on): Likewise.
55590         * modules/vasprintf-posix (Depends-on): Likewise.
55591         * modules/vfprintf-posix (Depends-on): Likewise.
55592         * modules/vsnprintf-posix (Depends-on): Likewise.
55593         * modules/vsprintf-posix (Depends-on): Likewise.
55594         * lib/frexp.c: Include isnand.h instead of isnan.h.
55595         (ISNAN): Set to isnand instead of isnan.
55596         * lib/isfinite.c: Include isnand.h instead of isnan.h.
55597         (gl_isfinited): Use isnand instead of isnan.
55598         * lib/signbitd.c: Include isnand.h instead of isnan.h.
55599         (gl_signbitd): Use isnand instead of isnan.
55600         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
55601         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
55602         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
55603         (main): Use isnand instead of isnan.
55604         * tests/test-round1.c: Include isnand.h.
55605         (main): Use isnand instead of isnan.
55606         * tests/test-round2.c: Include isnand.h instead of isnan.h.
55607         (ISNAN): Set to isnand instead of isnan.
55608         * tests/test-trunc1.c: Include isnand.h.
55609         (main): Use isnand instead of isnan.
55610         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
55611         (equal): Use isnand instead of isnan.
55612         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
55613         isnand-nolibm.
55614         * NEWS: Mention the change.
55615
55616 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55617             Bruno Haible  <bruno@clisp.org>
55618
55619         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
55620         the GCC builtins for signbits are present and set
55621         REPLACE_SIGNBIT_USING_GCC if so.
55622         * lib/math.in.h (signbit): Define using GCC builtins if
55623         REPLACE_SIGNBIT_USING_GCC is set.
55624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
55625         REPLACE_SIGNBIT_USING_GCC.
55626         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
55627
55628 2008-01-25  Jim Meyering  <meyering@redhat.com>
55629
55630         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
55631         * lib/poll.c: Include <config.h>, not "config.h".
55632         * tests/test-getaddrinfo.c: Likewise.
55633
55634 2008-01-25  Simon Josefsson  <simon@josefsson.org>
55635
55636         * modules/sockets-tests: New file.
55637
55638 2008-01-24  Simon Josefsson  <simon@josefsson.org>
55639
55640         * modules/sockets: New module, can be used to call WSA_Startup and
55641         WSA_Cleanup when needed.
55642
55643         * lib/sockets.h, lib/sockets.c: New files.
55644
55645         * m4/sockets.m4: New file.
55646
55647         * tests/test-sockets.c: New file.
55648
55649 2008-01-19  Bruno Haible  <bruno@clisp.org>
55650
55651         * doc/posix-headers: Renamed from doc/headers.
55652         * doc/posix-functions: Renamed from doc/functions.
55653         * doc/gnulib.texi: Update.
55654
55655 2008-01-19  Bruno Haible  <bruno@clisp.org>
55656
55657         * doc/glibc-functions/strcasestr.texi: Include contents of
55658         doc/functions/strcasestr.texi, fixing the list of platforms.
55659         * doc/functions/strcasestr.texi: Remove file.
55660
55661 2008-01-19  Bruno Haible  <bruno@clisp.org>
55662
55663         * doc/glibc-functions/memmem.texi: Include contents of
55664         doc/functions/memmem.texi.
55665         * doc/functions/memmem.texi: Remove file.
55666
55667 2008-01-18  Bruno Haible  <bruno@clisp.org>
55668
55669         * doc/glibc-functions/*.texi: New files.
55670         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
55671         to use the new files.
55672
55673 2008-01-17  Bruno Haible  <bruno@clisp.org>
55674
55675         * tests/test-gethostname.c (main): Fix printf statement.
55676
55677 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55678
55679         * modules/gethostname-tests: New file.
55680
55681         * tests/test-gethostname.c: New file.
55682
55683 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55684
55685         * lib/gethostname.c: Include string.h unconditionally, strncpy is
55686         used by the UNAME case.  Reported by Bruno Haible
55687         <bruno@clisp.org>.
55688
55689 2008-01-17  Eric Blake  <ebb9@byu.net>
55690
55691         Convert c-strcasestr to be more efficient.
55692         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
55693         (Depends-on): Add c-strcase, remove malloca, strnlen.
55694         * tests/test-c-strcasestr.c (main): Enhance test.
55695         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
55696
55697 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55698
55699         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
55700         Use it in creating po/Makevars.
55701
55702 2008-01-15  Simon Josefsson  <simon@josefsson.org>
55703
55704         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
55705         Applications that requires it should initialize libgcrypt
55706         manually.
55707
55708 2008-01-16  Simon Josefsson  <simon@josefsson.org>
55709
55710         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
55711
55712 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
55713
55714         Fix problem with getdate on mingw32 reported by Simon Josefsson
55715         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
55716         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
55717         tzname", when deciding whether to declare tzname.
55718         * lib/strftime.c (tzname): Likewise.
55719
55720 2008-01-15  Bruno Haible  <bruno@clisp.org>
55721
55722         Work around a MacOS X 10.5 bug in frexpl().
55723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
55724         * doc/functions/frexpl.texi: Document the bug.
55725         Reported by Elias Pipping <pipping@gentoo.org>.
55726
55727 2008-01-14  Eric Blake  <ebb9@byu.net>
55728
55729         Touch up previous patch.
55730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
55731         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
55732
55733         Convert strcasestr module to use Two-Way algorithm.
55734         * modules/strcasestr-simple: New module, based on the old
55735         strcasestr, but with Two-Way rather than KMP.
55736         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
55737         * lib/string.in.h (rpl_strcasestr): Declare.
55738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
55739         performance.
55740         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
55741         * modules/string (Makefile.am): Support strcasestr.
55742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
55743         * modules/strcasestr-tests (Depends-on): Check for alarm.
55744         * tests/test-strcasestr.c: Augment test.
55745         * lib/str-two-way.h: Clean up stray macro.
55746         * NEWS: Document new module.
55747         * MODULES.html.sh (string handling): Likewise.
55748         * doc/functions/strcasestr.texi: New file.
55749         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
55750         here, since it is not a POSIX function.
55751
55752 2008-01-14  Colin Watson  <cjwatson@debian.org>
55753             Bruno Haible  <bruno@clisp.org>
55754
55755         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
55756         works fine; if not, set REPLACE_STRSIGNAL.
55757         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
55758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55759         REPLACE_STRSIGNAL.
55760         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
55761         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
55762         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
55763
55764 2008-01-14  Bruno Haible  <bruno@clisp.org>
55765
55766         * modules/strsignal (Include): Change to <string.h>.
55767
55768 2008-01-14  Colin Watson  <cjwatson@debian.org>
55769
55770         * modules/argp (Notice): Add a notice recommending to change
55771         XGETTEXT_OPTIONS.
55772         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
55773
55774 2008-01-13  Colin Watson  <cjwatson@debian.org>
55775
55776         * modules/strsignal-tests: New file.
55777         * tests/test-strsignal.c: New file.
55778
55779         * lib/strsignal.c: New file, from glibc with modifications.
55780         * lib/siglist.h: New file, from glibc with modifications.
55781         * lib/string.in.h (strsignal): New declaration.
55782         * m4/strsignal.m4: New file.
55783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55784         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
55785         * modules/strsignal: New file.
55786         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
55787         HAVE_DECL_STRSIGNAL.
55788
55789 2008-01-13  Bruno Haible  <bruno@clisp.org>
55790
55791         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
55792         locale encoding is not ASCII. Needed for OpenBSD 4.0.
55793         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55794         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55795
55796 2008-01-13  Bruno Haible  <bruno@clisp.org>
55797
55798         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
55799         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
55800         * lib/argp.h (__attribute__): Likewise.
55801         * lib/c-stack.c (__attribute__): Likewise.
55802         * lib/error.h (__attribute__): Likewise.
55803         * lib/fts.c (__attribute__): Likewise.
55804         * lib/openat.h (__attribute__): Likewise.
55805         * lib/stdio.in.h (__attribute__): Likewise.
55806         * lib/string.in.h (__attribute__): Likewise.
55807         * lib/utimens.c (__attribute__): Likewise.
55808         * lib/vasnprintf.h (__attribute__): Likewise.
55809         * lib/xalloc.h (__attribute__): Likewise.
55810         * lib/xprintf.h (__attribute__): Likewise.
55811         * lib/xstrtol.h (__attribute__): Likewise.
55812         * lib/xvasprintf.h (__attribute__): Likewise.
55813
55814 2008-01-12  Bruno Haible  <bruno@clisp.org>
55815
55816         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55817         * doc/glibc-headers/a.out.texi: New file.
55818         * doc/glibc-headers/aliases.texi: New file.
55819         * doc/glibc-headers/alloca.texi: New file.
55820         * doc/glibc-headers/ar.texi: New file.
55821         * doc/glibc-headers/argp.texi: New file.
55822         * doc/glibc-headers/argz.texi: New file.
55823         * doc/glibc-headers/byteswap.texi: New file.
55824         * doc/glibc-headers/crypt.texi: New file.
55825         * doc/glibc-headers/endian.texi: New file.
55826         * doc/glibc-headers/envz.texi: New file.
55827         * doc/glibc-headers/err.texi: New file.
55828         * doc/glibc-headers/error.texi: New file.
55829         * doc/glibc-headers/execinfo.texi: New file.
55830         * doc/glibc-headers/fpu_control.texi: New file.
55831         * doc/glibc-headers/fstab.texi: New file.
55832         * doc/glibc-headers/fts.texi: New file.
55833         * doc/glibc-headers/getopt.texi: New file.
55834         * doc/glibc-headers/ieee754.texi: New file.
55835         * doc/glibc-headers/ifaddrs.texi: New file.
55836         * doc/glibc-headers/libintl.texi: New file.
55837         * doc/glibc-headers/mcheck.texi: New file.
55838         * doc/glibc-headers/mntent.texi: New file.
55839         * doc/glibc-headers/obstack.texi: New file.
55840         * doc/glibc-headers/paths.texi: New file.
55841         * doc/glibc-headers/printf.texi: New file.
55842         * doc/glibc-headers/pty.texi: New file.
55843         * doc/glibc-headers/resolv.texi: New file.
55844         * doc/glibc-headers/shadow.texi: New file.
55845         * doc/glibc-headers/sysexits.texi: New file.
55846         * doc/glibc-headers/ttyent.texi: New file.
55847
55848 2008-01-12  Jim Meyering  <meyering@redhat.com>
55849
55850         announce-gen: emit Gnulib's git-based version string.
55851         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55852         New option --gnulib-version=V, where V is expected to be
55853         the output of running git describe in the gnulib directory.
55854         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55855         not useful, and plan to stop publishing an xdelta file with each
55856         coreutils release.
55857
55858         * build-aux/announce-gen: Also check for lzma-compressed files.
55859
55860 2008-01-11  Bruno Haible  <bruno@clisp.org>
55861
55862         * tests/test-memmem.c (main): Increase maximum allowed time.
55863         * tests/test-strstr.c (main): Likewise.
55864
55865 2008-01-11  Bruno Haible  <bruno@clisp.org>
55866
55867         * doc/functions/memmem.texi: Add more precisions about platforms.
55868         * doc/functions/strstr.texi: Likewise.
55869
55870 2008-01-10  Eric Blake  <ebb9@byu.net>
55871
55872         * m4/strstr.m4: Delete cruft from copy-n-paste.
55873         Reported by Bruno Haible.
55874
55875 2008-01-10  Bruno Haible  <bruno@clisp.org>
55876
55877         Make c-strstr rely on strstr.
55878         * lib/c-strstr.c: Don't include str-kmp.h.
55879         (c_strstr): Define in terms of strstr.
55880         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55881         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55882
55883 2008-01-10  Bruno Haible  <bruno@clisp.org>
55884
55885         * doc/gnulib.texi (String Functions in C Locale): New section.
55886         * doc/c-ctype.texi: New file.
55887         * doc/c-strcase.texi: New file.
55888         * doc/c-strcaseeq.texi: New file.
55889         * doc/c-strcasestr.texi: New file.
55890         * doc/c-strstr.texi: New file.
55891         * doc/c-strtod.texi: New file.
55892         * doc/c-strtold.texi: New file.
55893
55894 2008-01-10  Eric Blake  <ebb9@byu.net>
55895
55896         * lib/relocatable.h: Fix a comment.
55897
55898 2008-01-10  Eric Blake  <ebb9@byu.net>
55899
55900         Share two-way algorithm.
55901         * lib/str-two-way.h: New file, merged from...
55902         * lib/memmem.c: ...here...
55903         * lib/strstr.c: ...and here.
55904         * modules/memmem (Files): Use it.
55905         * modules/strstr (Files): Likewise.
55906
55907         Avoid quadratic strstr implementations.
55908         * lib/strstr.c: New file.
55909         * m4/strstr.m4: Likewise.
55910         * modules/strstr: Likewise.
55911         * modules/strstr-tests: Likewise.
55912         * tests/test-strstr.c: Likewise.
55913         * lib/string.in.h (rpl_strstr): Declare.
55914         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55916         * modules/string (Makefile.am): Likewise.
55917         * MODULES.html.sh (string handling): Mention new module.
55918         * doc/functions/strstr.texi (strstr): Document the bug.
55919
55920 2008-01-10  Bruno Haible  <bruno@clisp.org>
55921
55922         * lib/relocatable.h (relocate): State whether result is freshly
55923         allocated or not.
55924         * lib/relocatable.c (relocate): Return a freshly allocated string
55925         instead of a pointer to a privately held string.
55926         Reported by Sylvain Beucler <beuc@gnu.org>.
55927
55928 2008-01-10  Colin Watson  <cjwatson@debian.org>
55929
55930         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55931         s/S_ISNLK/S_ISLNK/.
55932
55933 2008-01-09  Bruno Haible  <bruno@clisp.org>
55934
55935         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55936         and other files.
55937         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55938         if it's only a guess.
55939         * modules/memmem: Simplify by depending on memmem-simple.
55940
55941 2008-01-09  Bruno Haible  <bruno@clisp.org>
55942
55943         Work around OpenBSD 4.0 tdelete() bug.
55944         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55945         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55946         macros and don't redefine the enum values.
55947         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55948         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55949         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55950
55951 2008-01-09  Bruno Haible  <bruno@clisp.org>
55952
55953         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55954         (main): Don't perform the tests if setlocale did not install a UTF-8
55955         locale. Needed on OpenBSD 4.0.
55956         * modules/wcwidth-tests (Depends-on): Add localcharset.
55957
55958 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55959
55960         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55961         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55962         * NEWS: announce this.
55963         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55964
55965 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55966         and Eric Blake  <ebb9@byu.net>
55967
55968         Add memmem-simple module.
55969         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55970         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55971         * modules/memmem-simple: New file.
55972         * modules/memmem (Description): Tweak.
55973         * MODULES.html.sh (string handling): Mention new module.
55974         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55975         addressed by memmem-simple.
55976         * NEWS: Document the difference.
55977
55978 2008-01-09  Eric Blake  <ebb9@byu.net>
55979
55980         Give gcc some memmem optimization hints.
55981         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55982         (strcasestr): Declare as pure.
55983         * modules/memmem (Maintainer): Claim my implementation.
55984
55985 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55986
55987         Support AIX 6.1 and higher.
55988         * build-aux/config.libpath: Likewise.
55989         * build-aux/config.rpath: Likewise.
55990
55991 2008-01-08  Jim Meyering  <meyering@redhat.com>
55992             Bruno Haible  <bruno@clisp.org>
55993
55994         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55995         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55996         Reported by Peter Fales in
55997         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55998
55999 2008-01-08  Bruno Haible  <bruno@clisp.org>
56000
56001         * modules/unictype/category-of (Depends-on): Add
56002         unictype/category-none.
56003         * modules/unictype/category-and-tests (Depends-on): Add
56004         unictype/category-{L,N,Lu,Nd}.
56005         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
56006         * modules/unictype/category-or-tests (Depends-on): Add
56007         unictype/category-{L,N}.
56008         * modules/unictype/category-name-tests (Depends-on): Add
56009         unictype/category-{Z,Nl}.
56010         Reported by Simon Josefsson.
56011
56012 2008-01-08  Bruno Haible  <bruno@clisp.org>
56013
56014         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
56015         convention better.
56016         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
56017         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
56018         Reported by Peter Miller <millerp@canb.auug.org.au>.
56019
56020 2008-01-08  Eric Blake  <ebb9@byu.net>
56021
56022         Rewrite memmem to guarantee linear complexity without malloc.
56023         * lib/memmem.c (memmem): Use Two-Way rather than
56024         Knuth-Morris-Pratt, to allow O(1) space usage.
56025         (critical_factorization, two_way_short_needle)
56026         (two_way_long_needle): New functions.
56027         (knuth_morris_pratt): Delete.
56028         * modules/memmem (Depends-on): No longer need malloca or stdbool.
56029         Add stdint.
56030         * tests/test-memmem.c (main): Add tests for periodic needle and
56031         sublinear performance.
56032         * doc/functions/memmem.texi (memmem): Document other deficiencies
56033         in cygwin and older glibc.
56034
56035 2008-01-08  Bruno Haible  <bruno@clisp.org>
56036
56037         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
56038         augmentation.
56039
56040 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
56041
56042         Add a configure time option: --disable-acl.
56043         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
56044         AC_ARG_ENABLE(acl).
56045
56046 2008-01-06  Simon Josefsson  <simon@josefsson.org>
56047
56048         * tests/test-localename.c: Don't include obsolete "setenv.h".
56049
56050         * modules/localename-tests (Depends-on): Need unsetenv.
56051
56052 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56053
56054         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
56055
56056 2008-01-06  Colin Watson  <cjwatson@debian.org>
56057
56058         * users.txt: Add man-db.
56059
56060 2008-01-07  Bruno Haible  <bruno@clisp.org>
56061
56062         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
56063         previous section name.
56064
56065 2008-01-07  Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/progname.c (set_program_name): Don't strip off a leading
56068         "lt-" prefix outside a .libs directory.
56069         Suggested by Paul Eggert.
56070
56071 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
56072             Bruno Haible  <bruno@clisp.org>
56073
56074         Improve memory cleanup in 'relocatable' module.
56075         * lib/relocatable.h (compute_curr_prefix): Change return type to
56076         'char *'.
56077         * lib/relocatable.c (compute_curr_prefix): Change return type to
56078         'char *'. Free curr_installdir after use.
56079         (relocate): Free curr_prefix_better after use.
56080         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
56081
56082 2008-01-01  Bruno Haible  <bruno@clisp.org>
56083
56084         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
56085         failure on older glibc systems.
56086         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56087
56088 2008-01-05  Eric Blake  <ebb9@byu.net>
56089
56090         Avoid quadratic system memmem.
56091         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
56092         Reported by Ralf Wildenhues.
56093
56094         Fix memmem test for mingw.
56095         * modules/memmem-tests (configure.ac): Check for alarm.
56096         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
56097         it.
56098         * doc/functions/memmem.texi: New file.
56099         * doc/gnulib.texi (Function Substitutes): Add memmem.
56100         Reported by Bruno Haible.
56101
56102 2008-01-04  Bruno Haible  <bruno@clisp.org>
56103
56104         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
56105         Require gl_HEADER_STRINGS_H_DEFAULTS, not
56106         gl_HEADER_STRING_H_DEFAULTS.
56107
56108 2008-01-04  Eric Blake  <ebb9@byu.net>
56109
56110         Shorten duration of memmem test.
56111         * tests/test-memmem.c (main): Use alarm to declare failure if test
56112         is taking too long.
56113         Reported by Ralf Wildenhues.
56114
56115 2007-12-21  Simon Josefsson  <simon@josefsson.org>
56116
56117         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
56118         string, needed by strerror.
56119
56120 2008-01-03  Colin Watson  <cjwatson@debian.org>
56121             Bruno Haible  <bruno@clisp.org>
56122
56123         * doc/gnulib-tool.texi (Localization): New section.
56124
56125 2008-01-02  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
56128         variables to 'unsigned char *' type.
56129         Reported by Paul Eggert.
56130
56131 2008-01-02  Jim Meyering  <jim@meyering.net>
56132
56133         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
56134
56135 2007-12-31  Jim Meyering  <jim@meyering.net>
56136
56137         Avoid use of private FTS type name.
56138         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
56139
56140 2007-12-30  Karl Berry  <karl@gnu.org>
56141
56142         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
56143         work around defect in Texinfo and/or the standalone Info browser.
56144
56145 2007-12-30  Bruno Haible  <bruno@clisp.org>
56146
56147         Unify 5 copies of the KMP code.
56148         * lib/str-kmp.h: New file.
56149         * lib/c-strcasestr.c: Include str-kmp.h.
56150         (knuth_morris_pratt): Remove function.
56151         (c_strcasestr): Update.
56152         * lib/c-strstr.c: Include str-kmp.h.
56153         (knuth_morris_pratt): Remove function.
56154         (c_strcasestr): Update.
56155         * lib/mbscasestr.c: Include str-kmp.h.
56156         (knuth_morris_pratt_unibyte): Remove function.
56157         * lib/mbsstr.c: Include str-kmp.h.
56158         (knuth_morris_pratt_unibyte): Remove function.
56159         * lib/strcasestr.c: Include str-kmp.h.
56160         (knuth_morris_pratt): Remove function.
56161         (strcasestr): Update.
56162         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
56163         * modules/c-strstr (Files): Likewise.
56164         * modules/mbscasestr (Files): Likewise.
56165         * modules/mbsstr (Files): Likewise.
56166         * modules/strcasestr (Files): Likewise.
56167         Suggested by Paul Eggert.
56168
56169 2007-12-30  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
56172         defined.
56173
56174 2007-12-30  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/xmalloca.h: Include xalloc.h.
56177         (xnmalloca): New macro.
56178
56179 2007-12-30  Bruno Haible  <bruno@clisp.org>
56180
56181         * lib/malloca.h (nmalloca): New macro.
56182         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
56183         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
56184         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
56185         knuth_morris_pratt_multibyte): Likewise.
56186         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
56187         knuth_morris_pratt_multibyte): Likewise.
56188         * lib/memmem.c (knuth_morris_pratt): Likewise.
56189         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
56190
56191 2007-12-25  Bruno Haible  <bruno@clisp.org>
56192
56193         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
56194         * lib/glob.c: Don't include openat.h.
56195         (link_exists2_p): Add back the code that deals with the
56196         !GLOB_ALTDIRFUNC case.
56197         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
56198         let it do the filename concatenation.
56199         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
56200         * modules/glob (Depends-on): Remove openat.
56201
56202 2007-12-31  Bruno Haible  <bruno@clisp.org>
56203
56204         * modules/dirfd (License): Change to LGPLv2+.
56205         Approved by Jim Meyering.
56206
56207 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56208
56209         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
56210         when multiplying M by sizeof (size_t).
56211
56212 2007-12-10  Martin Lambers  <marlam@marlam.de>
56213
56214         Override getpagesize on mingw.
56215         * lib/getpagesize.c: New file.
56216         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
56217         * modules/getpagesize (Files): Add lib/getpagesize.c.
56218         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
56219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56220         REPLACE_GETPAGESIZE.
56221         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
56222
56223 2007-12-25  Bruno Haible  <bruno@clisp.org>
56224
56225         * modules/localcharset (Notice): New field.
56226         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
56227         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56228
56229 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56230             Bruno Haible  <bruno@clisp.org>
56231
56232         Avoid using the syntax symbol() in formatted documentation.
56233         * MODULES.html.sh (func_module): When replacing symbol() with a
56234         hyperlink, remove the parentheses. Show an error if some remain.
56235         Recognize and render the '...' syntax.
56236         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
56237         Rework. Add paragraph about GCC's inlining.
56238         * doc/alloca.texi: Likewise.
56239         * doc/error.texi: Remove parentheses from symbol reference.
56240         * doc/gnulib-intro.texi: Likewise.
56241         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
56242         * modules/fnmatch (Description): Reword to say "the ... function".
56243         * modules/full-read (Description): Likewise.
56244         * modules/full-write (Description): Likewise.
56245         * modules/safe-read (Description): Likewise.
56246         * modules/safe-write (Description): Likewise.
56247         * modules/strchrnul (Description): Likewise.
56248         * modules/trim (Description): Likewise.
56249         * modules/error (Description): Remove parentheses from symbol
56250         references.
56251         * modules/verror (Description): Likewise.
56252         Reported by Karl Berry.
56253
56254 2007-12-25  Bruno Haible  <bruno@clisp.org>
56255
56256         Fixup after 2007-10-16 commit.
56257         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
56258
56259 2007-12-24  Bruno Haible  <bruno@clisp.org>
56260
56261         Make --enable-relocatable work with DESTDIR.
56262         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
56263         to compute installdir from destprog.
56264         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
56265         also set the RELOC_DESTDIR variable.
56266         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56267
56268 2007-12-24  Bruno Haible  <bruno@clisp.org>
56269
56270         Fix link error due to xalloc_die().
56271         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
56272         of xreadlink.
56273         * lib/relocwrapper.c: Update comments.
56274         * build-aux/install-reloc: Remove xreadlink.c from file list.
56275         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
56276         xreadlink.c.
56277         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56278
56279 2007-12-24  Bruno Haible  <bruno@clisp.org>
56280
56281         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
56282         * lib/setenv.h: Remove file.
56283         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
56284         lib/setenv.h.
56285         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
56286         (Depends-on): Add stdlib.
56287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
56288         gl_FUNC_UNSETENV.
56289         (Include): Replace setenv.h with <stdlib.h>.
56290         * modules/unsetenv: New file.
56291         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
56292         * lib/unsetenv.c: Include <stdlib.h> first.
56293         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
56294         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
56295         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
56296         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
56297         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
56298         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
56300         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56301         * doc/functions/unsetenv.texi: Update.
56302         * modules/xsetenv (Depends-on): Add unsetenv.
56303         * modules/getdate (Depends-on): Likewise.
56304         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
56305         * lib/xsetenv.c: Don't include setenv.h.
56306         * lib/getdate.y: Likewise.
56307         * lib/relocwrapper.c: Likewise.
56308         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
56309         (Depends-on): Add stdlib.
56310         * NEWS: Mention the changes.
56311         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56312
56313 2007-12-23  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/memmem.c (memmem): Use lowercase variable names. Tab
56316         indentation.
56317
56318 2007-12-23  Bruno Haible  <bruno@clisp.org>
56319
56320         * lib/c-strcasestr.c: Add more comments.
56321         * lib/c-strstr.c: Likewise.
56322         * lib/mbscasestr.c: Likewise.
56323         * lib/mbsstr.c: Likewise.
56324         * lib/strcasestr.c: Likewise.
56325         * lib/memmem.c: Likewise.
56326
56327 2007-12-23  Bruno Haible  <bruno@clisp.org>
56328
56329         * tests/test-memmem.c: Include <string.h> first.
56330
56331 2007-12-22  Bruno Haible  <bruno@clisp.org>
56332
56333         * gnulib-tool (func_create_testdir): Change $auxdir while generating
56334         the contents of $testsbase.
56335         Reported by Ralf Wildenhues.
56336
56337 2007-12-22  Bruno Haible  <bruno@clisp.org>
56338
56339         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
56340         two variables local_ldadd_before, local_ldadd_last.
56341
56342 2007-12-20  Eric Blake  <ebb9@byu.net>
56343
56344         Work around circular library issue when cross-compiling.
56345         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
56346         that progname.o does not need to pull in rpl_memcmp.
56347
56348 2007-12-19  Eric Blake  <ebb9@byu.net>
56349
56350         Fix memmem to avoid O(n^2) worst-case complexity.
56351         * lib/memmem.c (knuth_morris_pratt): New function.
56352         (memmem): Use it if first few naive iterations fail.
56353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
56354         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
56355         * modules/memchr (License): Likewise.
56356         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
56357         malloca.
56358         * tests/test-memmem.c: Rewrite, borrowing ideas from
56359         test-mbsstr1.c; the old version wouldn't even compile!
56360         * modules/memmem-tests: New file.
56361         * lib/string.in.h (rpl_memmem): Add declaration.
56362         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
56363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
56364         REPLACE_MEMMEM.
56365
56366 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56367
56368         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
56369         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
56370         before any system include files, and undef after them all.  This
56371         should fix a problem on VMS reported by John E. Malmberg in
56372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
56373
56374 2007-12-17  Eric Blake  <ebb9@byu.net>
56375
56376         Revert addition of verify, for BSD/OS.
56377         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
56378         can't handle large files, for the sake of obsolete platforms.
56379         * modules/fseeko (Depends-on): Remove verify.
56380         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
56381         * doc/functions/ftello.texi (ftello): Likewise.
56382         * doc/functions/fgetpos.texi (fgetpos): Likewise.
56383         Reported by Larry Jones.
56384
56385 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
56386
56387         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
56388         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
56389
56390 2007-12-17  Jim Meyering  <meyering@redhat.com>
56391
56392         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
56393         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
56394         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
56395         * modules/getcwd (Depends-on): Add openat.
56396         Reported by Petr Salinger.
56397
56398 2007-12-17  Bruno Haible  <bruno@clisp.org>
56399
56400         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
56401         avoid a segmentation fault of the configure test on x86_64 systems.
56402
56403 2007-12-15  Jim Meyering  <meyering@redhat.com>
56404
56405         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
56406
56407 2007-12-13  Eric Blake  <ebb9@byu.net>
56408
56409         Another fseek test.
56410         * tests/test-fseek.c (main): Also test ungetc handling.
56411         * tests/test-fseeko.c (main): Likewise.
56412         * modules/fseeko (Depends-on): Add verify.
56413         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
56414         large.
56415         Reported by Larry Jones.
56416
56417         Fix fseeko on mingw.
56418         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
56419         seek.
56420
56421         Beef up fseek tests.
56422         * tests/test-fseek.c (main): Also test eof handling.
56423         * tests/test-fseeko.c (main): Likewise.
56424         Reported by Larry Jones.
56425
56426 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
56427
56428         Fix fseeko on BSD-based platforms.
56429         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
56430         successful seek.
56431
56432 2007-12-12  Eric Blake  <ebb9@byu.net>
56433
56434         Allow circular dependency of separate libtests.a
56435         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
56436         when use_libtests.
56437
56438 2007-12-11  Eric Blake  <ebb9@byu.net>
56439
56440         Fix bug with -0.0L in previous patch.
56441         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
56442         * tests/test-isnan.c (main): Also test on zeroes.
56443         * tests/test-isnanf.c (main): Likewise.
56444         * tests/test-isnanl.h (main): Likewise.
56445
56446         Detect pseudo-denormals on x86 even when cross-compiling.
56447         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
56448         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
56449         invalid bit patterns that happen to satisfy ==.
56450
56451         Avoid link failures with separate libtests.a.
56452         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
56453         last, to satisfy circular dependencies.
56454
56455 2007-12-11  Eric Blake  <ebb9@byu.net>
56456         and Bruno Haible  <bruno@clisp.org>
56457
56458         Fix OpenBSD 4.0 <float.h> handling of long double.
56459         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
56460         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
56461         * doc/headers/float.texi (float.h): Document OpenBSD bug.
56462
56463 2007-12-11  Jim Meyering  <meyering@redhat.com>
56464
56465         * users.txt: Add libvirt.
56466
56467         Support versions of autoconf prior to 2.59c.
56468         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
56469         if it is not already defined.
56470
56471 2007-12-09  Bruno Haible  <bruno@clisp.org>
56472
56473         Let 'gnulib-tool --import' collect sources needed for the tests in
56474         tests/ rather than in lib/.
56475         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
56476         argument. If true, add rules to generate libtests.a, and put libtests.a
56477         into $(LDADD). Consider source files in subdirectories and set
56478         uses_subdirs.
56479         (func_emit_initmacro_start, func_emit_initmacro_end,
56480         func_emit_initmacro_done): Pass all arguments explicitly.
56481         (func_import): Determine two module lists main_modules,
56482         testsrelated_modules. Determine use_libtests. Determine two variables
56483         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
56484         instead of just sed_transform_lib_file. Determine two variables
56485         main_files and testsrelated_files. Compute 'files' as the union of
56486         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
56487         func_add_or_update. In the generated gnulib-comp.m4, collect the
56488         object files for tests/ in different variables than those for lib/.
56489         Substitute LIBTESTS_LIBDEPS.
56490         (func_create_testdir): Combine the uses_subdirs results from
56491         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
56492
56493 2007-12-09  Bruno Haible  <bruno@clisp.org>
56494
56495         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
56496         the build-aux directory.
56497
56498 2007-12-09  Bruno Haible  <bruno@clisp.org>
56499
56500         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
56501         introduced on 2006-09-09.
56502
56503 2007-12-07  Jim Meyering  <meyering@redhat.com>
56504
56505         Let these macros work also with autoconf-2.59.
56506         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
56507         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
56508         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56509
56510 2007-12-06  Jim Meyering  <meyering@redhat.com>
56511
56512         Avoid a configure-time syntax error in gl_FUNC_ACL.
56513         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
56514         function in each branch, before testing the cache variable.
56515
56516 2007-12-04  Eric Blake  <ebb9@byu.net>
56517
56518         Make scripts executable.
56519         * build-aux/config.guess: Add execute permissions.
56520         * build-aux/config.sub: Likewise.
56521         * build-aux/gendocs.sh: Likewise.
56522
56523         Fix frexp on mingw.
56524         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
56525         cross-compiling.
56526         * doc/functions/frexp.texi (frexp): Document the bug.
56527
56528         Make cygwin fseeko check more reliable.
56529         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
56530         version numbers, rather than unrelated feature check.
56531         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
56532         * doc/functions/ftello.texi (ftello): Likewise.
56533         Reported by Bruno Haible.
56534
56535         * m4/strerror.m4: Bump version number.
56536
56537 2007-12-03  Bruno Haible  <bruno@clisp.org>
56538
56539         * doc/functions/mprotect.texi: Mention the mingw problem.
56540
56541 2007-12-03  Eric Blake  <ebb9@byu.net>
56542
56543         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
56544         REPLACE_STRERROR is initialized before this macro.
56545
56546 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56547
56548         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
56549         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
56550         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
56551         put -lsec in even for programs other than 'ls'.  This fixes a problem
56552         for gettext reported by Bruno Haible in
56553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
56554         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
56555         Add support for Solaris 10.  This isn't efficient, but should get the
56556         job done for now.
56557
56558 2007-12-03  James Youngman  <jay@gnu.org>
56559
56560         * doc/regexprops-generic.texi: change "an close-group" to "a
56561         close-group" and "illegal" to "not allowed".
56562
56563 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56564
56565         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
56566         pr_byname.h. Needed for the rare case when the maintainer has done
56567         "make maintainer-clean" in the source directory and then attempts a
56568         build outside the source directory.
56569         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
56570         scripts_byname.h.
56571
56572 2007-12-02  Martin Lambers <marlam@marlam.de>
56573             Bruno Haible  <bruno@clisp.org>
56574
56575         * lib/getpagesize.h: Remove file.
56576         * lib/unistd.in.h: Include declaration of getpagesize here.
56577         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
56578         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
56579         HAVE_SYS_PARAM_H.
56580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
56581         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56582         * modules/getpagesize (Files): Remove lib/getpagesize.h.
56583         (Depends-on): Add unistd.
56584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56585         (Include): Use <unistd.h> instead of getpagesize.h.
56586         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
56587         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56588         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
56589         gl_GETPAGESIZE invocation, already handled by module dependency.
56590         * lib/pagealign_alloc.c: Don't include getpagesize.h.
56591
56592 2007-12-02  Bruno Haible  <bruno@clisp.org>
56593
56594         * modules/strings-tests: New file.
56595         * tests/test-strings.c: New file.
56596
56597         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
56598         * lib/strings.in.h: New file.
56599         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
56600         * m4/strings_h.m4: New file.
56601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
56602         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
56603         * modules/strings: New file.
56604         * modules/string (Makefile.am): Update.
56605         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
56606         Reported by Karl Berry.
56607
56608 2007-12-01  Eric Blake  <ebb9@byu.net>
56609
56610         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
56611         accomodate fix in cygwin 1.5.25.
56612
56613 2007-12-01  Jim Meyering  <meyering@redhat.com>
56614
56615         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
56616         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
56617         that would inhibit utf8-optimization of a regexp containing line-
56618         or buffer-anchors, e.g., `^', `$'.
56619
56620 2007-11-30  Bruno Haible  <bruno@clisp.org>
56621
56622         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
56623         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
56624         glthread_recursive_lock_init.
56625         * lib/lock.c (glthread_recursive_lock_init)
56626         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
56627         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56628
56629 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
56630
56631         New function qset_acl, like set_acl but with syscall semantics.
56632         * lib/acl.h (qset_acl): New decl.
56633         * lib/acl.c (qset_acl): New function.
56634         (set_acl): Use new function.  Use more-consistent diagnostics.
56635
56636 2007-11-28  Jim Meyering  <meyering@redhat.com>
56637
56638         * modules/physmem (License): Change from GPL to LGPLv2+.
56639
56640 2007-11-26  Bruno Haible  <bruno@clisp.org>
56641
56642         * lib/vasnprintf.c (decode_long_double): Don't abort if the
56643         'long double' type has excess precision.
56644         Reported by Jim Meyering in
56645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
56646
56647 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56648
56649         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
56650         Sync from <http://gnu.org/licenses>.
56651         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
56652         with license text from same location.
56653         * doc/maintain.texi, doc/standards.texi:  Sync from
56654         <http://savannah.gnu.org/projects/gnustandards>.
56655
56656 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
56657         and Jim Meyering  <meyering@redhat.com>
56658
56659         Adjust getdate' grammar to accept a slightly more regular language.
56660         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
56661         Before, the former was rejected.
56662         * lib/getdate.y (digits_to_date_time): New function, factored
56663         out of ...
56664         (number): ...here.  Just call digits_to_date_time.
56665         (hybrid): New non-terminal to handle an <unsigned number,
56666         signed relative offset> sequence consistently.
56667
56668 2007-11-18  Jim Meyering  <meyering@redhat.com>
56669
56670         Pull my changes from coreutils:
56671         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
56672         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
56673         use of $gnulib_tool_option_extras, so that it's separated from the
56674         preceding argument.
56675
56676         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
56677         * build-aux/bootstrap (cp_mark_as_generated): Create any required
56678         parent destination directories before copying a file into place.
56679
56680 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56681
56682         bootstrap: work also with 4-argument variant of AC_INIT
56683         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
56684
56685 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56686
56687         Port test-getaddrinfo to Solaris.
56688         Problem reported by Bruno Haible in
56689         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
56690         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
56691         explanation of setting 'hints'.
56692         Don't reject an implementation merely because it returns EAI_SERVICE.
56693         (EAI_SERVICE): Define to 0 if not defined.
56694
56695 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56696
56697         The license of gnu-make and posix-shell is now "GPLed build tool".
56698         * modules/gnu-make (License): Likewise.
56699         * modules/posix-shell (License): Likewise.
56700
56701         New module posix-shell, for determining a POSIX shell
56702         or perhaps something that is close enough to a POSIX shell.
56703         * m4/posix-shell.m4: New file.
56704         * modules/posix-shell: New file.
56705
56706         * MODULES.html.sh: Mention new module.
56707
56708         New module gnu-make, for determining whether we're using GNU Make.
56709         * m4/gnu-make.m4: New file.
56710         * modules/gnu-make: New file.
56711         * MODULES.html.sh: Mention new module.
56712
56713 2007-11-14  Jim Meyering  <meyering@redhat.com>
56714
56715         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
56716         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
56717         use this macro to create a function _definition_.
56718         Remove useless "#undef ARGMATCH_DIE".
56719
56720 2007-11-14  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/config.charset: Update for OpenBSD 4.1.
56723         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
56724
56725 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         Document 64-bit #if problems in stdint.texi.
56728         * doc/headers/stdint.texi (stdint.h): Mention problems with
56729         64-bit-#if, and how to work around them.
56730
56731         Don't insist on 'long long int' support in the preprocessor.  It
56732         breaks too many things.  For example, PRIdMAX still uses a 'long
56733         long int' format with the latest Sun compiler, even though
56734         HAVE_LONG_LONG_INT isn't defined due to that compiler's
56735         preprocessor problem.  This causes the latest coreutils to dump
56736         core on Solaris 10 sparc with the Sun C compiler.
56737         Instead, fix the 2007-10-16 problem in a different way, by evaluating
56738         the troublesome expressions at configure-time, not at #if-time.
56739         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
56740         preprocessor.
56741         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
56742         compile-time C checks, done at 'configure'-time.
56743         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
56744         * modules/inttypes (Makefile): Substitute the new symbols that
56745         gl_INTTYPES_H now generates.
56746         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
56747
56748 2007-11-12  Bruno Haible  <bruno@clisp.org>
56749
56750         Tests for Unicode character classification functions.
56751
56752         * modules/unictype/bidicategory-byname-tests: New file.
56753         * modules/unictype/bidicategory-name-tests: New file.
56754         * modules/unictype/bidicategory-of-tests: New file.
56755         * modules/unictype/bidicategory-test-tests: New file.
56756         * modules/unictype/block-list-tests: New file.
56757         * modules/unictype/block-of-tests: New file.
56758         * modules/unictype/block-test-tests: New file.
56759         * modules/unictype/category-C-tests: New file.
56760         * modules/unictype/category-Cc-tests: New file.
56761         * modules/unictype/category-Cf-tests: New file.
56762         * modules/unictype/category-Cn-tests: New file.
56763         * modules/unictype/category-Co-tests: New file.
56764         * modules/unictype/category-Cs-tests: New file.
56765         * modules/unictype/category-L-tests: New file.
56766         * modules/unictype/category-Ll-tests: New file.
56767         * modules/unictype/category-Lm-tests: New file.
56768         * modules/unictype/category-Lo-tests: New file.
56769         * modules/unictype/category-Lt-tests: New file.
56770         * modules/unictype/category-Lu-tests: New file.
56771         * modules/unictype/category-M-tests: New file.
56772         * modules/unictype/category-Mc-tests: New file.
56773         * modules/unictype/category-Me-tests: New file.
56774         * modules/unictype/category-Mn-tests: New file.
56775         * modules/unictype/category-N-tests: New file.
56776         * modules/unictype/category-Nd-tests: New file.
56777         * modules/unictype/category-Nl-tests: New file.
56778         * modules/unictype/category-No-tests: New file.
56779         * modules/unictype/category-P-tests: New file.
56780         * modules/unictype/category-Pc-tests: New file.
56781         * modules/unictype/category-Pd-tests: New file.
56782         * modules/unictype/category-Pe-tests: New file.
56783         * modules/unictype/category-Pf-tests: New file.
56784         * modules/unictype/category-Pi-tests: New file.
56785         * modules/unictype/category-Po-tests: New file.
56786         * modules/unictype/category-Ps-tests: New file.
56787         * modules/unictype/category-S-tests: New file.
56788         * modules/unictype/category-Sc-tests: New file.
56789         * modules/unictype/category-Sk-tests: New file.
56790         * modules/unictype/category-Sm-tests: New file.
56791         * modules/unictype/category-So-tests: New file.
56792         * modules/unictype/category-Z-tests: New file.
56793         * modules/unictype/category-Zl-tests: New file.
56794         * modules/unictype/category-Zp-tests: New file.
56795         * modules/unictype/category-Zs-tests: New file.
56796         * modules/unictype/category-and-not-tests: New file.
56797         * modules/unictype/category-and-tests: New file.
56798         * modules/unictype/category-byname-tests: New file.
56799         * modules/unictype/category-name-tests: New file.
56800         * modules/unictype/category-none-tests: New file.
56801         * modules/unictype/category-of-tests: New file.
56802         * modules/unictype/category-or-tests: New file.
56803         * modules/unictype/category-test-withtable-tests: New file.
56804         * modules/unictype/combining-class-tests: New file.
56805         * modules/unictype/ctype-alnum-tests: New file.
56806         * modules/unictype/ctype-alpha-tests: New file.
56807         * modules/unictype/ctype-blank-tests: New file.
56808         * modules/unictype/ctype-cntrl-tests: New file.
56809         * modules/unictype/ctype-digit-tests: New file.
56810         * modules/unictype/ctype-graph-tests: New file.
56811         * modules/unictype/ctype-lower-tests: New file.
56812         * modules/unictype/ctype-print-tests: New file.
56813         * modules/unictype/ctype-punct-tests: New file.
56814         * modules/unictype/ctype-space-tests: New file.
56815         * modules/unictype/ctype-upper-tests: New file.
56816         * modules/unictype/ctype-xdigit-tests: New file.
56817         * modules/unictype/decimal-digit-tests: New file.
56818         * modules/unictype/digit-tests: New file.
56819         * modules/unictype/mirror-tests: New file.
56820         * modules/unictype/numeric-tests: New file.
56821         * modules/unictype/property-alphabetic-tests: New file.
56822         * modules/unictype/property-ascii-hex-digit-tests: New file.
56823         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56824         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56825         * modules/unictype/property-bidi-block-separator-tests: New file.
56826         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56827         * modules/unictype/property-bidi-common-separator-tests: New file.
56828         * modules/unictype/property-bidi-control-tests: New file.
56829         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56830         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56831         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56832         * modules/unictype/property-bidi-european-digit-tests: New file.
56833         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56834         * modules/unictype/property-bidi-left-to-right-tests: New file.
56835         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56836         * modules/unictype/property-bidi-other-neutral-tests: New file.
56837         * modules/unictype/property-bidi-pdf-tests: New file.
56838         * modules/unictype/property-bidi-segment-separator-tests: New file.
56839         * modules/unictype/property-bidi-whitespace-tests: New file.
56840         * modules/unictype/property-byname-tests: New file.
56841         * modules/unictype/property-combining-tests: New file.
56842         * modules/unictype/property-composite-tests: New file.
56843         * modules/unictype/property-currency-symbol-tests: New file.
56844         * modules/unictype/property-dash-tests: New file.
56845         * modules/unictype/property-decimal-digit-tests: New file.
56846         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56847         * modules/unictype/property-deprecated-tests: New file.
56848         * modules/unictype/property-diacritic-tests: New file.
56849         * modules/unictype/property-extender-tests: New file.
56850         * modules/unictype/property-format-control-tests: New file.
56851         * modules/unictype/property-grapheme-base-tests: New file.
56852         * modules/unictype/property-grapheme-extend-tests: New file.
56853         * modules/unictype/property-grapheme-link-tests: New file.
56854         * modules/unictype/property-hex-digit-tests: New file.
56855         * modules/unictype/property-hyphen-tests: New file.
56856         * modules/unictype/property-id-continue-tests: New file.
56857         * modules/unictype/property-id-start-tests: New file.
56858         * modules/unictype/property-ideographic-tests: New file.
56859         * modules/unictype/property-ids-binary-operator-tests: New file.
56860         * modules/unictype/property-ids-trinary-operator-tests: New file.
56861         * modules/unictype/property-ignorable-control-tests: New file.
56862         * modules/unictype/property-iso-control-tests: New file.
56863         * modules/unictype/property-join-control-tests: New file.
56864         * modules/unictype/property-left-of-pair-tests: New file.
56865         * modules/unictype/property-line-separator-tests: New file.
56866         * modules/unictype/property-logical-order-exception-tests: New file.
56867         * modules/unictype/property-lowercase-tests: New file.
56868         * modules/unictype/property-math-tests: New file.
56869         * modules/unictype/property-non-break-tests: New file.
56870         * modules/unictype/property-not-a-character-tests: New file.
56871         * modules/unictype/property-numeric-tests: New file.
56872         * modules/unictype/property-other-alphabetic-tests: New file.
56873         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56874         * modules/unictype/property-other-grapheme-extend-tests: New file.
56875         * modules/unictype/property-other-id-continue-tests: New file.
56876         * modules/unictype/property-other-id-start-tests: New file.
56877         * modules/unictype/property-other-lowercase-tests: New file.
56878         * modules/unictype/property-other-math-tests: New file.
56879         * modules/unictype/property-other-uppercase-tests: New file.
56880         * modules/unictype/property-paired-punctuation-tests: New file.
56881         * modules/unictype/property-paragraph-separator-tests: New file.
56882         * modules/unictype/property-pattern-syntax-tests: New file.
56883         * modules/unictype/property-pattern-white-space-tests: New file.
56884         * modules/unictype/property-private-use-tests: New file.
56885         * modules/unictype/property-punctuation-tests: New file.
56886         * modules/unictype/property-quotation-mark-tests: New file.
56887         * modules/unictype/property-radical-tests: New file.
56888         * modules/unictype/property-sentence-terminal-tests: New file.
56889         * modules/unictype/property-soft-dotted-tests: New file.
56890         * modules/unictype/property-space-tests: New file.
56891         * modules/unictype/property-terminal-punctuation-tests: New file.
56892         * modules/unictype/property-test-tests: New file.
56893         * modules/unictype/property-titlecase-tests: New file.
56894         * modules/unictype/property-unassigned-code-value-tests: New file.
56895         * modules/unictype/property-unified-ideograph-tests: New file.
56896         * modules/unictype/property-uppercase-tests: New file.
56897         * modules/unictype/property-variation-selector-tests: New file.
56898         * modules/unictype/property-white-space-tests: New file.
56899         * modules/unictype/property-xid-continue-tests: New file.
56900         * modules/unictype/property-xid-start-tests: New file.
56901         * modules/unictype/property-zero-width-tests: New file.
56902         * modules/unictype/scripts-tests: New file.
56903         * modules/unictype/syntax-c-ident-tests: New file.
56904         * modules/unictype/syntax-c-whitespace-tests: New file.
56905         * modules/unictype/syntax-java-ident-tests: New file.
56906         * modules/unictype/syntax-java-whitespace-tests: New file.
56907         * tests/unictype/test-bidi_byname.c: New file.
56908         * tests/unictype/test-bidi_name.c: New file.
56909         * tests/unictype/test-bidi_of.c: New file.
56910         * tests/unictype/test-bidi_test.c: New file.
56911         * tests/unictype/test-block_list.c: New file.
56912         * tests/unictype/test-block_of.c: New file.
56913         * tests/unictype/test-block_test.c: New file.
56914         * tests/unictype/test-categ_and.c: New file.
56915         * tests/unictype/test-categ_and_not.c: New file.
56916         * tests/unictype/test-categ_byname.c: New file.
56917         * tests/unictype/test-categ_name.c: New file.
56918         * tests/unictype/test-categ_none.c: New file.
56919         * tests/unictype/test-categ_of.c: New file.
56920         * tests/unictype/test-categ_or.c: New file.
56921         * tests/unictype/test-categ_test_withtable.c: New file.
56922         * tests/unictype/test-combining.c: New file.
56923         * tests/unictype/test-decdigit.c: New file.
56924         * tests/unictype/test-digit.c: New file.
56925         * tests/unictype/test-mirror.c: New file.
56926         * tests/unictype/test-numeric.c: New file.
56927         * tests/unictype/test-pr_byname.c: New file.
56928         * tests/unictype/test-pr_test.c: New file.
56929         * tests/unictype/test-predicate-part1.h: New file.
56930         * tests/unictype/test-predicate-part2.h: New file.
56931         * tests/unictype/test-scripts.c: New file.
56932         * tests/unictype/test-sy_c_ident.c: New file.
56933         * tests/unictype/test-sy_java_ident.c: New file.
56934
56935         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56936         for Unicode 5.0.0.
56937         * tests/unictype/test-categ_Cc.c: Likewise.
56938         * tests/unictype/test-categ_Cf.c: Likewise.
56939         * tests/unictype/test-categ_Cn.c: Likewise.
56940         * tests/unictype/test-categ_Co.c: Likewise.
56941         * tests/unictype/test-categ_Cs.c: Likewise.
56942         * tests/unictype/test-categ_L.c: Likewise.
56943         * tests/unictype/test-categ_Ll.c: Likewise.
56944         * tests/unictype/test-categ_Lm.c: Likewise.
56945         * tests/unictype/test-categ_Lo.c: Likewise.
56946         * tests/unictype/test-categ_Lt.c: Likewise.
56947         * tests/unictype/test-categ_Lu.c: Likewise.
56948         * tests/unictype/test-categ_M.c: Likewise.
56949         * tests/unictype/test-categ_Mc.c: Likewise.
56950         * tests/unictype/test-categ_Me.c: Likewise.
56951         * tests/unictype/test-categ_Mn.c: Likewise.
56952         * tests/unictype/test-categ_N.c: Likewise.
56953         * tests/unictype/test-categ_Nd.c: Likewise.
56954         * tests/unictype/test-categ_Nl.c: Likewise.
56955         * tests/unictype/test-categ_No.c: Likewise.
56956         * tests/unictype/test-categ_P.c: Likewise.
56957         * tests/unictype/test-categ_Pc.c: Likewise.
56958         * tests/unictype/test-categ_Pd.c: Likewise.
56959         * tests/unictype/test-categ_Pe.c: Likewise.
56960         * tests/unictype/test-categ_Pf.c: Likewise.
56961         * tests/unictype/test-categ_Pi.c: Likewise.
56962         * tests/unictype/test-categ_Po.c: Likewise.
56963         * tests/unictype/test-categ_Ps.c: Likewise.
56964         * tests/unictype/test-categ_S.c: Likewise.
56965         * tests/unictype/test-categ_Sc.c: Likewise.
56966         * tests/unictype/test-categ_Sk.c: Likewise.
56967         * tests/unictype/test-categ_Sm.c: Likewise.
56968         * tests/unictype/test-categ_So.c: Likewise.
56969         * tests/unictype/test-categ_Z.c: Likewise.
56970         * tests/unictype/test-categ_Zl.c: Likewise.
56971         * tests/unictype/test-categ_Zp.c: Likewise.
56972         * tests/unictype/test-categ_Zs.c: Likewise.
56973         * tests/unictype/test-ctype_alnum.c: Likewise.
56974         * tests/unictype/test-ctype_alpha.c: Likewise.
56975         * tests/unictype/test-ctype_blank.c: Likewise.
56976         * tests/unictype/test-ctype_cntrl.c: Likewise.
56977         * tests/unictype/test-ctype_digit.c: Likewise.
56978         * tests/unictype/test-ctype_graph.c: Likewise.
56979         * tests/unictype/test-ctype_lower.c: Likewise.
56980         * tests/unictype/test-ctype_print.c: Likewise.
56981         * tests/unictype/test-ctype_punct.c: Likewise.
56982         * tests/unictype/test-ctype_space.c: Likewise.
56983         * tests/unictype/test-ctype_upper.c: Likewise.
56984         * tests/unictype/test-ctype_xdigit.c: Likewise.
56985         * tests/unictype/test-decdigit.h: Likewise.
56986         * tests/unictype/test-digit.h: Likewise.
56987         * tests/unictype/test-numeric.h: Likewise.
56988         * tests/unictype/test-pr_alphabetic.c: Likewise.
56989         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56990         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56991         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56992         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56993         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56994         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56995         * tests/unictype/test-pr_bidi_control.c: Likewise.
56996         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56997         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56998         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56999         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57000         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57001         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57002         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57003         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57004         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
57005         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
57006         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
57007         * tests/unictype/test-pr_combining.c: Likewise.
57008         * tests/unictype/test-pr_composite.c: Likewise.
57009         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57010         * tests/unictype/test-pr_dash.c: Likewise.
57011         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57012         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
57013         * tests/unictype/test-pr_deprecated.c: Likewise.
57014         * tests/unictype/test-pr_diacritic.c: Likewise.
57015         * tests/unictype/test-pr_extender.c: Likewise.
57016         * tests/unictype/test-pr_format_control.c: Likewise.
57017         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57018         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57019         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57020         * tests/unictype/test-pr_hex_digit.c: Likewise.
57021         * tests/unictype/test-pr_hyphen.c: Likewise.
57022         * tests/unictype/test-pr_id_continue.c: Likewise.
57023         * tests/unictype/test-pr_id_start.c: Likewise.
57024         * tests/unictype/test-pr_ideographic.c: Likewise.
57025         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
57026         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
57027         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57028         * tests/unictype/test-pr_iso_control.c: Likewise.
57029         * tests/unictype/test-pr_join_control.c: Likewise.
57030         * tests/unictype/test-pr_left_of_pair.c: Likewise.
57031         * tests/unictype/test-pr_line_separator.c: Likewise.
57032         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57033         * tests/unictype/test-pr_lowercase.c: Likewise.
57034         * tests/unictype/test-pr_math.c: Likewise.
57035         * tests/unictype/test-pr_non_break.c: Likewise.
57036         * tests/unictype/test-pr_not_a_character.c: Likewise.
57037         * tests/unictype/test-pr_numeric.c: Likewise.
57038         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57039         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
57040         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
57041         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57042         * tests/unictype/test-pr_other_id_start.c: Likewise.
57043         * tests/unictype/test-pr_other_lowercase.c: Likewise.
57044         * tests/unictype/test-pr_other_math.c: Likewise.
57045         * tests/unictype/test-pr_other_uppercase.c: Likewise.
57046         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
57047         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
57048         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
57049         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
57050         * tests/unictype/test-pr_private_use.c: Likewise.
57051         * tests/unictype/test-pr_punctuation.c: Likewise.
57052         * tests/unictype/test-pr_quotation_mark.c: Likewise.
57053         * tests/unictype/test-pr_radical.c: Likewise.
57054         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57055         * tests/unictype/test-pr_soft_dotted.c: Likewise.
57056         * tests/unictype/test-pr_space.c: Likewise.
57057         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57058         * tests/unictype/test-pr_titlecase.c: Likewise.
57059         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57060         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57061         * tests/unictype/test-pr_uppercase.c: Likewise.
57062         * tests/unictype/test-pr_variation_selector.c: Likewise.
57063         * tests/unictype/test-pr_white_space.c: Likewise.
57064         * tests/unictype/test-pr_xid_continue.c: Likewise.
57065         * tests/unictype/test-pr_xid_start.c: Likewise.
57066         * tests/unictype/test-pr_zero_width.c: Likewise.
57067         * tests/unictype/test-sy_c_whitespace.c: Likewise.
57068         * tests/unictype/test-sy_java_whitespace.c: Likewise.
57069
57070 2007-11-12  Bruno Haible  <bruno@clisp.org>
57071
57072         Unicode character classification functions.
57073         * lib/unictype.h: New file.
57074         * modules/unictype/base: New file.
57075         * modules/unictype/category-L: New file.
57076         * modules/unictype/category-Lu: New file.
57077         * modules/unictype/category-Ll: New file.
57078         * modules/unictype/category-Lt: New file.
57079         * modules/unictype/category-Lm: New file.
57080         * modules/unictype/category-Lo: New file.
57081         * modules/unictype/category-M: New file.
57082         * modules/unictype/category-Mn: New file.
57083         * modules/unictype/category-Mc: New file.
57084         * modules/unictype/category-Me: New file.
57085         * modules/unictype/category-N: New file.
57086         * modules/unictype/category-Nd: New file.
57087         * modules/unictype/category-Nl: New file.
57088         * modules/unictype/category-No: New file.
57089         * modules/unictype/category-P: New file.
57090         * modules/unictype/category-Pc: New file.
57091         * modules/unictype/category-Pd: New file.
57092         * modules/unictype/category-Ps: New file.
57093         * modules/unictype/category-Pe: New file.
57094         * modules/unictype/category-Pi: New file.
57095         * modules/unictype/category-Pf: New file.
57096         * modules/unictype/category-Po: New file.
57097         * modules/unictype/category-S: New file.
57098         * modules/unictype/category-Sm: New file.
57099         * modules/unictype/category-Sc: New file.
57100         * modules/unictype/category-Sk: New file.
57101         * modules/unictype/category-So: New file.
57102         * modules/unictype/category-Z: New file.
57103         * modules/unictype/category-Zs: New file.
57104         * modules/unictype/category-Zl: New file.
57105         * modules/unictype/category-Zp: New file.
57106         * modules/unictype/category-C: New file.
57107         * modules/unictype/category-Cc: New file.
57108         * modules/unictype/category-Cf: New file.
57109         * modules/unictype/category-Cs: New file.
57110         * modules/unictype/category-Co: New file.
57111         * modules/unictype/category-Cn: New file.
57112         * modules/unictype/category-or: New file.
57113         * modules/unictype/category-of: New file.
57114         * modules/unictype/category-test: New file.
57115         * modules/unictype/category-test-withtable: New file.
57116         * modules/unictype/category-byname: New file.
57117         * modules/unictype/category-none: New file.
57118         * modules/unictype/category-and: New file.
57119         * modules/unictype/category-and-not: New file.
57120         * modules/unictype/category-name: New file.
57121         * modules/unictype/combining-class: New file.
57122         * modules/unictype/category-all: New file.
57123         * modules/unictype/bidicategory-all: New file.
57124         * modules/unictype/bidicategory-byname: New file.
57125         * modules/unictype/bidicategory-name: New file.
57126         * modules/unictype/bidicategory-of: New file.
57127         * modules/unictype/bidicategory-test: New file.
57128         * modules/unictype/decimal-digit: New file.
57129         * modules/unictype/digit: New file.
57130         * modules/unictype/numeric: New file.
57131         * modules/unictype/mirror: New file.
57132         * modules/unictype/property-white-space: New file.
57133         * modules/unictype/property-alphabetic: New file.
57134         * modules/unictype/property-other-alphabetic: New file.
57135         * modules/unictype/property-not-a-character: New file.
57136         * modules/unictype/property-default-ignorable-code-point: New file.
57137         * modules/unictype/property-other-default-ignorable-code-point: New
57138         file.
57139         * modules/unictype/property-deprecated: New file.
57140         * modules/unictype/property-logical-order-exception: New file.
57141         * modules/unictype/property-variation-selector: New file.
57142         * modules/unictype/property-private-use: New file.
57143         * modules/unictype/property-unassigned-code-value: New file.
57144         * modules/unictype/property-uppercase: New file.
57145         * modules/unictype/property-other-uppercase: New file.
57146         * modules/unictype/property-lowercase: New file.
57147         * modules/unictype/property-other-lowercase: New file.
57148         * modules/unictype/property-titlecase: New file.
57149         * modules/unictype/property-soft-dotted: New file.
57150         * modules/unictype/property-id-start: New file.
57151         * modules/unictype/property-other-id-start: New file.
57152         * modules/unictype/property-id-continue: New file.
57153         * modules/unictype/property-other-id-continue: New file.
57154         * modules/unictype/property-xid-start: New file.
57155         * modules/unictype/property-xid-continue: New file.
57156         * modules/unictype/property-pattern-white-space: New file.
57157         * modules/unictype/property-pattern-syntax: New file.
57158         * modules/unictype/property-join-control: New file.
57159         * modules/unictype/property-grapheme-base: New file.
57160         * modules/unictype/property-grapheme-extend: New file.
57161         * modules/unictype/property-other-grapheme-extend: New file.
57162         * modules/unictype/property-grapheme-link: New file.
57163         * modules/unictype/property-bidi-control: New file.
57164         * modules/unictype/property-bidi-left-to-right: New file.
57165         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
57166         * modules/unictype/property-bidi-arabic-right-to-left: New file.
57167         * modules/unictype/property-bidi-european-digit: New file.
57168         * modules/unictype/property-bidi-eur-num-separator: New file.
57169         * modules/unictype/property-bidi-eur-num-terminator: New file.
57170         * modules/unictype/property-bidi-arabic-digit: New file.
57171         * modules/unictype/property-bidi-common-separator: New file.
57172         * modules/unictype/property-bidi-block-separator: New file.
57173         * modules/unictype/property-bidi-segment-separator: New file.
57174         * modules/unictype/property-bidi-whitespace: New file.
57175         * modules/unictype/property-bidi-non-spacing-mark: New file.
57176         * modules/unictype/property-bidi-boundary-neutral: New file.
57177         * modules/unictype/property-bidi-pdf: New file.
57178         * modules/unictype/property-bidi-embedding-or-override: New file.
57179         * modules/unictype/property-bidi-other-neutral: New file.
57180         * modules/unictype/property-hex-digit: New file.
57181         * modules/unictype/property-ascii-hex-digit: New file.
57182         * modules/unictype/property-ideographic: New file.
57183         * modules/unictype/property-unified-ideograph: New file.
57184         * modules/unictype/property-radical: New file.
57185         * modules/unictype/property-ids-binary-operator: New file.
57186         * modules/unictype/property-ids-trinary-operator: New file.
57187         * modules/unictype/property-zero-width: New file.
57188         * modules/unictype/property-space: New file.
57189         * modules/unictype/property-non-break: New file.
57190         * modules/unictype/property-iso-control: New file.
57191         * modules/unictype/property-format-control: New file.
57192         * modules/unictype/property-dash: New file.
57193         * modules/unictype/property-hyphen: New file.
57194         * modules/unictype/property-punctuation: New file.
57195         * modules/unictype/property-line-separator: New file.
57196         * modules/unictype/property-paragraph-separator: New file.
57197         * modules/unictype/property-quotation-mark: New file.
57198         * modules/unictype/property-sentence-terminal: New file.
57199         * modules/unictype/property-terminal-punctuation: New file.
57200         * modules/unictype/property-currency-symbol: New file.
57201         * modules/unictype/property-math: New file.
57202         * modules/unictype/property-other-math: New file.
57203         * modules/unictype/property-paired-punctuation: New file.
57204         * modules/unictype/property-left-of-pair: New file.
57205         * modules/unictype/property-combining: New file.
57206         * modules/unictype/property-composite: New file.
57207         * modules/unictype/property-decimal-digit: New file.
57208         * modules/unictype/property-numeric: New file.
57209         * modules/unictype/property-diacritic: New file.
57210         * modules/unictype/property-extender: New file.
57211         * modules/unictype/property-ignorable-control: New file.
57212         * modules/unictype/property-test: New file.
57213         * modules/unictype/property-byname: New file.
57214         * modules/unictype/property-all: New file.
57215         * modules/unictype/scripts: New file.
57216         * modules/unictype/scripts-all: New file.
57217         * modules/unictype/block-of: New file.
57218         * modules/unictype/block-test: New file.
57219         * modules/unictype/block-list: New file.
57220         * modules/unictype/block-all: New file.
57221         * modules/unictype/syntax-c-whitespace: New file.
57222         * modules/unictype/syntax-java-whitespace: New file.
57223         * modules/unictype/syntax-c-ident: New file.
57224         * modules/unictype/syntax-java-ident: New file.
57225         * modules/unictype/ctype-alnum: New file.
57226         * modules/unictype/ctype-alpha: New file.
57227         * modules/unictype/ctype-cntrl: New file.
57228         * modules/unictype/ctype-digit: New file.
57229         * modules/unictype/ctype-graph: New file.
57230         * modules/unictype/ctype-lower: New file.
57231         * modules/unictype/ctype-print: New file.
57232         * modules/unictype/ctype-punct: New file.
57233         * modules/unictype/ctype-space: New file.
57234         * modules/unictype/ctype-upper: New file.
57235         * modules/unictype/ctype-xdigit: New file.
57236         * modules/unictype/ctype-blank: New file.
57237         * lib/unictype/bidi_byname.c: New file.
57238         * lib/unictype/bidi_name.c: New file.
57239         * lib/unictype/bidi_of.c: New file.
57240         * lib/unictype/bidi_test.c: New file.
57241         * lib/unictype/bitmap.h: New file.
57242         * lib/unictype/block_test.c: New file.
57243         * lib/unictype/blocks.c: New file.
57244         * lib/unictype/categ_C.c: New file.
57245         * lib/unictype/categ_Cc.c: New file.
57246         * lib/unictype/categ_Cf.c: New file.
57247         * lib/unictype/categ_Cn.c: New file.
57248         * lib/unictype/categ_Co.c: New file.
57249         * lib/unictype/categ_Cs.c: New file.
57250         * lib/unictype/categ_L.c: New file.
57251         * lib/unictype/categ_Ll.c: New file.
57252         * lib/unictype/categ_Lm.c: New file.
57253         * lib/unictype/categ_Lo.c: New file.
57254         * lib/unictype/categ_Lt.c: New file.
57255         * lib/unictype/categ_Lu.c: New file.
57256         * lib/unictype/categ_M.c: New file.
57257         * lib/unictype/categ_Mc.c: New file.
57258         * lib/unictype/categ_Me.c: New file.
57259         * lib/unictype/categ_Mn.c: New file.
57260         * lib/unictype/categ_N.c: New file.
57261         * lib/unictype/categ_Nd.c: New file.
57262         * lib/unictype/categ_Nl.c: New file.
57263         * lib/unictype/categ_No.c: New file.
57264         * lib/unictype/categ_P.c: New file.
57265         * lib/unictype/categ_Pc.c: New file.
57266         * lib/unictype/categ_Pd.c: New file.
57267         * lib/unictype/categ_Pe.c: New file.
57268         * lib/unictype/categ_Pf.c: New file.
57269         * lib/unictype/categ_Pi.c: New file.
57270         * lib/unictype/categ_Po.c: New file.
57271         * lib/unictype/categ_Ps.c: New file.
57272         * lib/unictype/categ_S.c: New file.
57273         * lib/unictype/categ_Sc.c: New file.
57274         * lib/unictype/categ_Sk.c: New file.
57275         * lib/unictype/categ_Sm.c: New file.
57276         * lib/unictype/categ_So.c: New file.
57277         * lib/unictype/categ_Z.c: New file.
57278         * lib/unictype/categ_Zl.c: New file.
57279         * lib/unictype/categ_Zp.c: New file.
57280         * lib/unictype/categ_Zs.c: New file.
57281         * lib/unictype/categ_and.c: New file.
57282         * lib/unictype/categ_and_not.c: New file.
57283         * lib/unictype/categ_byname.c: New file.
57284         * lib/unictype/categ_name.c: New file.
57285         * lib/unictype/categ_none.c: New file.
57286         * lib/unictype/categ_of.c: New file.
57287         * lib/unictype/categ_or.c: New file.
57288         * lib/unictype/categ_test.c: New file.
57289         * lib/unictype/combining.c: New file.
57290         * lib/unictype/ctype_alnum.c: New file.
57291         * lib/unictype/ctype_alpha.c: New file.
57292         * lib/unictype/ctype_blank.c: New file.
57293         * lib/unictype/ctype_cntrl.c: New file.
57294         * lib/unictype/ctype_digit.c: New file.
57295         * lib/unictype/ctype_graph.c: New file.
57296         * lib/unictype/ctype_lower.c: New file.
57297         * lib/unictype/ctype_print.c: New file.
57298         * lib/unictype/ctype_punct.c: New file.
57299         * lib/unictype/ctype_space.c: New file.
57300         * lib/unictype/ctype_upper.c: New file.
57301         * lib/unictype/ctype_xdigit.c: New file.
57302         * lib/unictype/decdigit.c: New file.
57303         * lib/unictype/digit.c: New file.
57304         * lib/unictype/identsyntaxmap.h: New file.
57305         * lib/unictype/mirror.c: New file.
57306         * lib/unictype/numeric.c: New file.
57307         * lib/unictype/pr_alphabetic.c: New file.
57308         * lib/unictype/pr_ascii_hex_digit.c: New file.
57309         * lib/unictype/pr_bidi_arabic_digit.c: New file.
57310         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
57311         * lib/unictype/pr_bidi_block_separator.c: New file.
57312         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
57313         * lib/unictype/pr_bidi_common_separator.c: New file.
57314         * lib/unictype/pr_bidi_control.c: New file.
57315         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
57316         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
57317         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
57318         * lib/unictype/pr_bidi_european_digit.c: New file.
57319         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
57320         * lib/unictype/pr_bidi_left_to_right.c: New file.
57321         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
57322         * lib/unictype/pr_bidi_other_neutral.c: New file.
57323         * lib/unictype/pr_bidi_pdf.c: New file.
57324         * lib/unictype/pr_bidi_segment_separator.c: New file.
57325         * lib/unictype/pr_bidi_whitespace.c: New file.
57326         * lib/unictype/pr_byname.c: New file.
57327         * lib/unictype/pr_byname.gperf: New file.
57328         * lib/unictype/pr_combining.c: New file.
57329         * lib/unictype/pr_composite.c: New file.
57330         * lib/unictype/pr_currency_symbol.c: New file.
57331         * lib/unictype/pr_dash.c: New file.
57332         * lib/unictype/pr_decimal_digit.c: New file.
57333         * lib/unictype/pr_default_ignorable_code_point.c: New file.
57334         * lib/unictype/pr_deprecated.c: New file.
57335         * lib/unictype/pr_diacritic.c: New file.
57336         * lib/unictype/pr_extender.c: New file.
57337         * lib/unictype/pr_format_control.c: New file.
57338         * lib/unictype/pr_grapheme_base.c: New file.
57339         * lib/unictype/pr_grapheme_extend.c: New file.
57340         * lib/unictype/pr_grapheme_link.c: New file.
57341         * lib/unictype/pr_hex_digit.c: New file.
57342         * lib/unictype/pr_hyphen.c: New file.
57343         * lib/unictype/pr_id_continue.c: New file.
57344         * lib/unictype/pr_id_start.c: New file.
57345         * lib/unictype/pr_ideographic.c: New file.
57346         * lib/unictype/pr_ids_binary_operator.c: New file.
57347         * lib/unictype/pr_ids_trinary_operator.c: New file.
57348         * lib/unictype/pr_ignorable_control.c: New file.
57349         * lib/unictype/pr_iso_control.c: New file.
57350         * lib/unictype/pr_join_control.c: New file.
57351         * lib/unictype/pr_left_of_pair.c: New file.
57352         * lib/unictype/pr_line_separator.c: New file.
57353         * lib/unictype/pr_logical_order_exception.c: New file.
57354         * lib/unictype/pr_lowercase.c: New file.
57355         * lib/unictype/pr_math.c: New file.
57356         * lib/unictype/pr_non_break.c: New file.
57357         * lib/unictype/pr_not_a_character.c: New file.
57358         * lib/unictype/pr_numeric.c: New file.
57359         * lib/unictype/pr_other_alphabetic.c: New file.
57360         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
57361         * lib/unictype/pr_other_grapheme_extend.c: New file.
57362         * lib/unictype/pr_other_id_continue.c: New file.
57363         * lib/unictype/pr_other_id_start.c: New file.
57364         * lib/unictype/pr_other_lowercase.c: New file.
57365         * lib/unictype/pr_other_math.c: New file.
57366         * lib/unictype/pr_other_uppercase.c: New file.
57367         * lib/unictype/pr_paired_punctuation.c: New file.
57368         * lib/unictype/pr_paragraph_separator.c: New file.
57369         * lib/unictype/pr_pattern_syntax.c: New file.
57370         * lib/unictype/pr_pattern_white_space.c: New file.
57371         * lib/unictype/pr_private_use.c: New file.
57372         * lib/unictype/pr_punctuation.c: New file.
57373         * lib/unictype/pr_quotation_mark.c: New file.
57374         * lib/unictype/pr_radical.c: New file.
57375         * lib/unictype/pr_sentence_terminal.c: New file.
57376         * lib/unictype/pr_soft_dotted.c: New file.
57377         * lib/unictype/pr_space.c: New file.
57378         * lib/unictype/pr_terminal_punctuation.c: New file.
57379         * lib/unictype/pr_test.c: New file.
57380         * lib/unictype/pr_titlecase.c: New file.
57381         * lib/unictype/pr_unassigned_code_value.c: New file.
57382         * lib/unictype/pr_unified_ideograph.c: New file.
57383         * lib/unictype/pr_uppercase.c: New file.
57384         * lib/unictype/pr_variation_selector.c: New file.
57385         * lib/unictype/pr_white_space.c: New file.
57386         * lib/unictype/pr_xid_continue.c: New file.
57387         * lib/unictype/pr_xid_start.c: New file.
57388         * lib/unictype/pr_zero_width.c: New file.
57389         * lib/unictype/scripts.c: New file.
57390         * lib/unictype/sy_c_ident.c: New file.
57391         * lib/unictype/sy_c_whitespace.c: New file.
57392         * lib/unictype/sy_java_ident.c: New file.
57393         * lib/unictype/sy_java_whitespace.c: New file.
57394
57395         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
57396         Unicode 5.0.0.
57397         * lib/unictype/blocks.h: Likewise.
57398         * lib/unictype/categ_C.h: Likewise.
57399         * lib/unictype/categ_Cc.h: Likewise.
57400         * lib/unictype/categ_Cf.h: Likewise.
57401         * lib/unictype/categ_Cn.h: Likewise.
57402         * lib/unictype/categ_Co.h: Likewise.
57403         * lib/unictype/categ_Cs.h: Likewise.
57404         * lib/unictype/categ_L.h: Likewise.
57405         * lib/unictype/categ_Ll.h: Likewise.
57406         * lib/unictype/categ_Lm.h: Likewise.
57407         * lib/unictype/categ_Lo.h: Likewise.
57408         * lib/unictype/categ_Lt.h: Likewise.
57409         * lib/unictype/categ_Lu.h: Likewise.
57410         * lib/unictype/categ_M.h: Likewise.
57411         * lib/unictype/categ_Mc.h: Likewise.
57412         * lib/unictype/categ_Me.h: Likewise.
57413         * lib/unictype/categ_Mn.h: Likewise.
57414         * lib/unictype/categ_N.h: Likewise.
57415         * lib/unictype/categ_Nd.h: Likewise.
57416         * lib/unictype/categ_Nl.h: Likewise.
57417         * lib/unictype/categ_No.h: Likewise.
57418         * lib/unictype/categ_P.h: Likewise.
57419         * lib/unictype/categ_Pc.h: Likewise.
57420         * lib/unictype/categ_Pd.h: Likewise.
57421         * lib/unictype/categ_Pe.h: Likewise.
57422         * lib/unictype/categ_Pf.h: Likewise.
57423         * lib/unictype/categ_Pi.h: Likewise.
57424         * lib/unictype/categ_Po.h: Likewise.
57425         * lib/unictype/categ_Ps.h: Likewise.
57426         * lib/unictype/categ_S.h: Likewise.
57427         * lib/unictype/categ_Sc.h: Likewise.
57428         * lib/unictype/categ_Sk.h: Likewise.
57429         * lib/unictype/categ_Sm.h: Likewise.
57430         * lib/unictype/categ_So.h: Likewise.
57431         * lib/unictype/categ_Z.h: Likewise.
57432         * lib/unictype/categ_Zl.h: Likewise.
57433         * lib/unictype/categ_Zp.h: Likewise.
57434         * lib/unictype/categ_Zs.h: Likewise.
57435         * lib/unictype/categ_of.h: Likewise.
57436         * lib/unictype/combining.h: Likewise.
57437         * lib/unictype/ctype_alnum.h: Likewise.
57438         * lib/unictype/ctype_alpha.h: Likewise.
57439         * lib/unictype/ctype_blank.h: Likewise.
57440         * lib/unictype/ctype_cntrl.h: Likewise.
57441         * lib/unictype/ctype_digit.h: Likewise.
57442         * lib/unictype/ctype_graph.h: Likewise.
57443         * lib/unictype/ctype_lower.h: Likewise.
57444         * lib/unictype/ctype_print.h: Likewise.
57445         * lib/unictype/ctype_punct.h: Likewise.
57446         * lib/unictype/ctype_space.h: Likewise.
57447         * lib/unictype/ctype_upper.h: Likewise.
57448         * lib/unictype/ctype_xdigit.h: Likewise.
57449         * lib/unictype/decdigit.h: Likewise.
57450         * lib/unictype/digit.h: Likewise.
57451         * lib/unictype/mirror.h: Likewise.
57452         * lib/unictype/numeric.h: Likewise.
57453         * lib/unictype/pr_alphabetic.h: Likewise.
57454         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57455         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57456         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57457         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57458         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57459         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57460         * lib/unictype/pr_bidi_control.h: Likewise.
57461         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57462         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57463         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57464         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57465         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57466         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57467         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57468         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57469         * lib/unictype/pr_bidi_pdf.h: Likewise.
57470         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57471         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57472         * lib/unictype/pr_combining.h: Likewise.
57473         * lib/unictype/pr_composite.h: Likewise.
57474         * lib/unictype/pr_currency_symbol.h: Likewise.
57475         * lib/unictype/pr_dash.h: Likewise.
57476         * lib/unictype/pr_decimal_digit.h: Likewise.
57477         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57478         * lib/unictype/pr_deprecated.h: Likewise.
57479         * lib/unictype/pr_diacritic.h: Likewise.
57480         * lib/unictype/pr_extender.h: Likewise.
57481         * lib/unictype/pr_format_control.h: Likewise.
57482         * lib/unictype/pr_grapheme_base.h: Likewise.
57483         * lib/unictype/pr_grapheme_extend.h: Likewise.
57484         * lib/unictype/pr_grapheme_link.h: Likewise.
57485         * lib/unictype/pr_hex_digit.h: Likewise.
57486         * lib/unictype/pr_hyphen.h: Likewise.
57487         * lib/unictype/pr_id_continue.h: Likewise.
57488         * lib/unictype/pr_id_start.h: Likewise.
57489         * lib/unictype/pr_ideographic.h: Likewise.
57490         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57491         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57492         * lib/unictype/pr_ignorable_control.h: Likewise.
57493         * lib/unictype/pr_iso_control.h: Likewise.
57494         * lib/unictype/pr_join_control.h: Likewise.
57495         * lib/unictype/pr_left_of_pair.h: Likewise.
57496         * lib/unictype/pr_line_separator.h: Likewise.
57497         * lib/unictype/pr_logical_order_exception.h: Likewise.
57498         * lib/unictype/pr_lowercase.h: Likewise.
57499         * lib/unictype/pr_math.h: Likewise.
57500         * lib/unictype/pr_non_break.h: Likewise.
57501         * lib/unictype/pr_not_a_character.h: Likewise.
57502         * lib/unictype/pr_numeric.h: Likewise.
57503         * lib/unictype/pr_other_alphabetic.h: Likewise.
57504         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57505         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57506         * lib/unictype/pr_other_id_continue.h: Likewise.
57507         * lib/unictype/pr_other_id_start.h: Likewise.
57508         * lib/unictype/pr_other_lowercase.h: Likewise.
57509         * lib/unictype/pr_other_math.h: Likewise.
57510         * lib/unictype/pr_other_uppercase.h: Likewise.
57511         * lib/unictype/pr_paired_punctuation.h: Likewise.
57512         * lib/unictype/pr_paragraph_separator.h: Likewise.
57513         * lib/unictype/pr_pattern_syntax.h: Likewise.
57514         * lib/unictype/pr_pattern_white_space.h: Likewise.
57515         * lib/unictype/pr_private_use.h: Likewise.
57516         * lib/unictype/pr_punctuation.h: Likewise.
57517         * lib/unictype/pr_quotation_mark.h: Likewise.
57518         * lib/unictype/pr_radical.h: Likewise.
57519         * lib/unictype/pr_sentence_terminal.h: Likewise.
57520         * lib/unictype/pr_soft_dotted.h: Likewise.
57521         * lib/unictype/pr_space.h: Likewise.
57522         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57523         * lib/unictype/pr_titlecase.h: Likewise.
57524         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57525         * lib/unictype/pr_unified_ideograph.h: Likewise.
57526         * lib/unictype/pr_uppercase.h: Likewise.
57527         * lib/unictype/pr_variation_selector.h: Likewise.
57528         * lib/unictype/pr_white_space.h: Likewise.
57529         * lib/unictype/pr_xid_continue.h: Likewise.
57530         * lib/unictype/pr_xid_start.h: Likewise.
57531         * lib/unictype/pr_zero_width.h: Likewise.
57532         * lib/unictype/scripts.h: Likewise.
57533         * lib/unictype/scripts_byname.gperf: Likewise.
57534         * lib/unictype/sy_c_ident.h: Likewise.
57535         * lib/unictype/sy_c_whitespace.h: Likewise.
57536         * lib/unictype/sy_java_ident.h: Likewise.
57537         * lib/unictype/sy_java_whitespace.h: Likewise.
57538
57539         * lib/unictype/Makefile: New file.
57540         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
57541         glibc.
57542         * lib/unictype/3level.h: New file, copied from glibc.
57543         * lib/unictype/3levelbit.h: New file.
57544
57545 2007-11-11  Bruno Haible  <bruno@clisp.org>
57546
57547         * modules/gperf: New file.
57548         * modules/iconv_open (Depends-on): Add it.
57549         (Makefile.am): Remove the GPERF definition.
57550
57551 2007-11-11  Bruno Haible  <bruno@clisp.org>
57552
57553         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
57554         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
57555
57556 2007-11-11  Bruno Haible  <bruno@clisp.org>
57557
57558         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
57559         (usage): Remove function.
57560
57561 2007-11-11  Bruno Haible  <bruno@clisp.org>
57562
57563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
57564         gl_FUNC_CEILF_LIBS.
57565         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
57566         gl_FUNC_CEIL_LIBS.
57567         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
57568         gl_FUNC_CEILL_LIBS.
57569         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
57570         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
57571         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
57572
57573 2007-11-11  Bruno Haible  <bruno@clisp.org>
57574
57575         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
57576         roundf were declared but do not exist on functions.
57577         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
57578         roundl were declared but do not exist on functions.
57579         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
57580         HAVE_FLOORL_AND_CEILL, respectively.
57581         Needed for Sun C on Solaris 10.
57582
57583 2007-11-11  Bruno Haible  <bruno@clisp.org>
57584
57585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
57586         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
57587         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
57588         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
57589         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
57590         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
57591         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
57592         HAVE_DECL_ROUNDF.
57593         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
57594         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
57595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
57596         of HAVE_DECL_ROUND*.
57597         * modules/math (Makefile.am): Update.
57598
57599 2007-11-10  Bruno Haible  <bruno@clisp.org>
57600
57601         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
57602         ptrdiff_t as m4/intl.m4.
57603
57604 2007-11-10  Jim Meyering  <meyering@redhat.com>
57605
57606         Avoid link failure for the argmatch test.
57607         * tests/test-argmatch.c (usage): Define function to avoid a link
57608         failure: argmatch_die requires a usage function.
57609
57610 2007-11-09  Bruno Haible  <bruno@clisp.org>
57611
57612         * doc/functions/snprintf.texi: Mention BeOS deficiency.
57613         * doc/functions/vsnprintf.texi: Likewise.
57614         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
57615         with a size argument < 2.
57616
57617 2007-11-09  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
57620         buffer. Fixes an inefficiency introduced on 2007-11-03.
57621
57622 2007-11-09  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
57625         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
57626
57627 2007-11-08  Jim Meyering  <meyering@redhat.com>
57628
57629         Change cache variable name prefix "jm_" to "gl_" everywhere.
57630         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
57631         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
57632         * m4/uptime.m4: s/gl_/jm_/
57633
57634 2007-11-07  Bruno Haible  <bruno@clisp.org>
57635
57636         Update to GNU gettext 0.17.
57637         * m4/intl.m4: Update to GNU gettext 0.17.
57638         * m4/po.m4: Likewise.
57639         * modules/gettext (Files): Remove m4/ulonglong.m4.
57640         (configure.ac): Require gettext infrastructure from version 0.17.
57641
57642 2007-11-06  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
57645         symbolic values are not defined in a public header.
57646         * lib/freadable.c (freadable) [QNX]: Likewise.
57647         * lib/freadahead.c (freadahead) [QNX]: Likewise.
57648         * lib/freading.c (freading) [QNX]: Likewise.
57649         * lib/fseterr.c (fseterr) [QNX]: Likewise.
57650         * lib/fwritable.c (fwritable) [QNX]: Likewise.
57651         * lib/fwriting.c (fwriting) [QNX]: Likewise.
57652         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
57653         Reported by Alain Magloire.
57654
57655         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
57656
57657 2007-11-05  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
57660         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
57661         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
57662         Reported by Eric Blake.
57663
57664 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57665             Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
57668         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
57669         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
57670         (malloc): Undefine also before including <stdlib.h>.
57671         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
57672         Needed on OSF/1 4.0.
57673
57674 2007-11-05  Jim Meyering  <meyering@redhat.com>
57675
57676         git-version-gen: sync from coreutils.
57677         * build-aux/git-version-gen: Add comments.
57678         Change the first '-' to '.' in the snapshot version string,
57679         e.g., 6.9-377-08144 -> 6.9.377-08144
57680         Remove first parameter.
57681         Don't declare a version "-dirty" merely because a time
57682         stamp has changed.
57683
57684 2007-11-04  Bruno Haible  <bruno@clisp.org>
57685
57686         * lib/lock.h: Protect all macro definitions containing an 'if'
57687         statement through a "do { ... } while (0)".
57688         * lib/tls.h: Likewise.
57689
57690 2007-11-04  Bruno Haible  <bruno@clisp.org>
57691
57692         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
57693
57694 2007-11-04  Bruno Haible  <bruno@clisp.org>
57695
57696         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
57697         * modules/fprintf-posix (Depends-on): Add nocrash.
57698         * modules/snprintf-posix (Depends-on): Likewise.
57699         * modules/sprintf-posix (Depends-on): Likewise.
57700         * modules/vasnprintf-posix (Depends-on): Likewise.
57701         * modules/vasprintf-posix (Depends-on): Likewise.
57702         * modules/vfprintf-posix (Depends-on): Likewise.
57703         * modules/vsnprintf-posix (Depends-on): Likewise.
57704         * modules/vsprintf-posix (Depends-on): Likewise.
57705         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57706         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57707         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57708         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57709         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57710         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57711         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57712
57713 2007-11-04  Bruno Haible  <bruno@clisp.org>
57714
57715         * modules/nocrash: New file.
57716         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
57717         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
57718
57719 2007-11-04  Bruno Haible  <bruno@clisp.org>
57720
57721         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
57722         precision handling.
57723         * tests/test-vasprintf-posix.c (test_function): Likewise.
57724         * tests/test-snprintf-posix.h (test_function): Likewise.
57725         * tests/test-sprintf-posix.h (test_function): Likewise.
57726
57727         Fix *printf behaviour for large precisions on mingw and BeOS.
57728         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
57729         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
57730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
57731         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57733         gl_PRINTF_PRECISION and test its result. Invoke
57734         gl_PREREQ_VASNPRINTF_PRECISION.
57735         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57736         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57742         * doc/functions/fprintf.texi: Update.
57743         * doc/functions/printf.texi: Update.
57744         * doc/functions/snprintf.texi: Update.
57745         * doc/functions/sprintf.texi: Update.
57746         * doc/functions/vfprintf.texi: Update.
57747         * doc/functions/vprintf.texi: Update.
57748         * doc/functions/vsnprintf.texi: Update.
57749         * doc/functions/vsprintf.texi: Update.
57750
57751 2007-11-04  Bruno Haible  <bruno@clisp.org>
57752
57753         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
57754
57755 2007-11-04  Bruno Haible  <bruno@clisp.org>
57756
57757         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
57758         Reported by Sylvain Beucler <beuc@gnu.org>.
57759
57760 2007-11-03  Bruno Haible  <bruno@clisp.org>
57761
57762         * tests/test-fprintf-posix2.sh: New file.
57763         * tests/test-fprintf-posix2.c: New file.
57764         * modules/fprintf-posix-tests (Files): Add them.
57765         (TESTS): Add test-fprintf-posix2.sh.
57766         (configure.ac): Check for getrlimit and setrlimit.
57767         (check_PROGRAMS): Add test-fprintf-posix2.
57768
57769         * tests/test-printf-posix2.sh: New file.
57770         * tests/test-printf-posix2.c: New file.
57771         * modules/printf-posix-tests (Files): Add them.
57772         (TESTS): Add test-printf-posix2.sh.
57773         (configure.ac): Check for getrlimit and setrlimit.
57774         (check_PROGRAMS): Add test-printf-posix2.
57775
57776         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
57777         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
57778         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
57779         (decode_double): New function, copied from decode_long_double.
57780         (scale10_round_decimal_decoded): New function, extracted from
57781         scale10_round_decimal_long_double.
57782         (scale10_round_decimal_long_double): Use it.
57783         (scale10_round_decimal_double): New function.
57784         (floorlog10): New function.
57785         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
57786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
57787         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57789         gl_PRINTF_ENOMEM and test its result. Invoke
57790         gl_PREREQ_VASNPRINTF_ENOMEM.
57791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57798         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
57799         * modules/snprintf-posix (Depends-on): Likewise.
57800         * modules/sprintf-posix (Depends-on): Likewise.
57801         * modules/vasnprintf-posix (Depends-on): Likewise.
57802         * modules/vasprintf-posix (Depends-on): Likewise.
57803         * modules/vfprintf-posix (Depends-on): Likewise.
57804         * modules/vsnprintf-posix (Depends-on): Likewise.
57805         * modules/vsprintf-posix (Depends-on): Likewise.
57806         * doc/functions/fprintf.texi: Update.
57807         * doc/functions/printf.texi: Update.
57808         * doc/functions/snprintf.texi: Update.
57809         * doc/functions/sprintf.texi: Update.
57810         * doc/functions/vfprintf.texi: Update.
57811         * doc/functions/vprintf.texi: Update.
57812         * doc/functions/vsnprintf.texi: Update.
57813         * doc/functions/vsprintf.texi: Update.
57814
57815 2007-11-03  Bruno Haible  <bruno@clisp.org>
57816
57817         * modules/frexp-nolibm-tests: New file.
57818
57819         * modules/frexp-nolibm: New file.
57820         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57821
57822 2007-11-03  Bruno Haible  <bruno@clisp.org>
57823
57824         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57825         value is C99 compliant.
57826         Needed for OSF/1 5.1.
57827
57828 2007-11-03  Bruno Haible  <bruno@clisp.org>
57829
57830         Fix out-of-memory handling of vasnprintf.
57831         * lib/printf-parse.c: Include <errno.h>.
57832         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57833         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57834         is already set.
57835
57836 2007-11-02  Eric Blake  <ebb9@byu.net>
57837
57838         Fix tests on cygwin.
57839         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57840
57841 2007-11-01  Bruno Haible  <bruno@clisp.org>
57842
57843         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57844         warning.
57845         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57846         needed for POSIX compatibility.
57847
57848 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57849
57850         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57851         for compatibility with GNU.
57852
57853 2007-11-01  Bruno Haible  <bruno@clisp.org>
57854
57855         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57856         (putenv): Renamed from rpl_putenv. Change argument type from
57857         'const char *' to 'char *'.
57858         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57859         of defining putenv in config.h, just set REPLACE_PUTENV.
57860         * modules/putenv (Depends-on): Add stdlib.
57861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57862         (Include): Use <stdlib.h>.
57863         * lib/stdlib.in.h (putenv): New declaration.
57864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57865         REPLACE_PUTENV.
57866         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57867         REPLACE_PUTENV.
57868         Needed for MacOS X 10.5.0.
57869         Reported by Peter O'Gorman <peter@pogma.com>.
57870
57871 2007-11-01  Jim Meyering  <meyering@redhat.com>
57872
57873         Treat an empty date string exactly like "0".
57874         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57875         if the remaining date string (to be parsed) is empty, use "0".
57876         Reported by Mischa Molhoek and discussed in this thread:
57877         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57878
57879 2007-10-31  Bruno Haible  <bruno@clisp.org>
57880
57881         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57882         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57883         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57884         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57885         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57886         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57887
57888 2007-10-31  Bruno Haible  <bruno@clisp.org>
57889
57890         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57891         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57892         (AC_TYPE_LONG_LONG_INT): Use it.
57893         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57894         it as well.
57895         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57896         to m4/longlong.m4.
57897         * modules/stdint (Files): Remove m4/ulonglong.m4.
57898         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57899         m4/ulonglong.m4.
57900         * modules/strtoumax (Files): Likewise.
57901
57902 2007-10-30  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/xvasprintf-posix: New file.
57905         Suggested by Eric Blake.
57906
57907 2007-10-30  Bruno Haible  <bruno@clisp.org>
57908
57909         * modules/xprintf-posix-tests: New file.
57910         * tests/test-xprintf-posix.sh: New file.
57911         * tests/test-xprintf-posix.c: New file.
57912         * tests/test-xfprintf-posix.c: New file.
57913
57914         * modules/xprintf-posix: New file.
57915
57916 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57917
57918         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57919         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57920         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57921
57922 2007-10-29  Bruno Haible  <bruno@clisp.org>
57923
57924         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57925         contain the special marker '_cv_'.
57926         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57927         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57928         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57929         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57930         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57931         Reported by Ralf Wildenhues.
57932
57933 2007-10-29  Bruno Haible  <bruno@clisp.org>
57934
57935         * gnulib-tool (func_import): When --lgpl is not specified, set
57936         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57937         GPLv3.
57938         Reported by Simon Josefsson.
57939
57940 2007-10-28  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57943         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57944         HAVE_DECL_ISFINITE.
57945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57946         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57947         HAVE_DECL_ISFINITE.
57948
57949 2007-10-28  Bruno Haible  <bruno@clisp.org>
57950
57951         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57952         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57953
57954 2007-10-28  Bruno Haible  <bruno@clisp.org>
57955
57956         Fix link errors with Sun C 5.0 on Solaris 10.
57957         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57958         function is declared but not present in the compiler's libm.
57959         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57960         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57961         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57962         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57963         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57964         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57965         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57967         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57968         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57969         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57970         HAVE_DECL_FLOORL.
57971
57972 2007-10-28  Bruno Haible  <bruno@clisp.org>
57973
57974         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57975         gl_FUNC_FLOORL. Cache the result.
57976         (gl_FUNC_FLOORL): Use it.
57977         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57978         gl_FUNC_CEILL. Cache the result.
57979         (gl_FUNC_CEILL): Use it.
57980
57981         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57982         gl_FUNC_FLOOR. Cache the result.
57983         (gl_FUNC_FLOOR): Use it.
57984         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57985         gl_FUNC_CEIL. Cache the result.
57986         (gl_FUNC_CEIL): Use it.
57987
57988         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57989         gl_FUNC_FLOORF. Cache the result.
57990         (gl_FUNC_FLOORF): Use it.
57991         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57992         gl_FUNC_CEILF. Cache the result.
57993         (gl_FUNC_CEILF): Use it.
57994
57995 2007-10-28  Bruno Haible  <bruno@clisp.org>
57996
57997         * gnulib-tool: Allow specifying the LGPL version number through
57998         --lgpl=2 or --lgpl=3.
57999         (func_usage): Document --lgpl with argument.
58000         Handle --lgpl=... arguments.
58001         (func_import): Recognize also gl_LGPL calls with an argument. When
58002         --lgpl=2 is used and the module's license is just LGPL, report an
58003         error. Set sed_transform_lib_file according to the lgpl variable. In
58004         the generated files, use --lgpl or gl_LGPL invocations with argument,
58005         if necessary.
58006         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
58007         an LGPv2+ license.
58008         * doc/gnulib-tool.texi (Modified imports): Update explanation of
58009         gl_LGPL macro.
58010
58011 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58012             Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
58015         (u16_uctomb_aux): Likewise.
58016         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
58017         !HAVE_INLINE.
58018         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
58019
58020 2007-10-28  Bruno Haible  <bruno@clisp.org>
58021
58022         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
58023         Invoke AM_GETTEXT_OPTION if it exists.
58024         * modules/vasprintf: Likewise.
58025         * modules/verror: Likewise.
58026         * modules/xprintf: Likewise.
58027         * modules/xvasprintf: Likewise.
58028
58029 2007-10-27  Ben Pfaff  <blp@gnu.org>
58030
58031         * lib/math.in.h: Define isfinite macro and prototypes for
58032         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
58033         implementations.
58034         * m4/math_h.m4: New substitutions for isfinite module.
58035         * lib/isfinite.c: New file.
58036         * m4/isfinite.m4: New file.
58037         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
58038         * modules/isfinite: New file.
58039         * modules/isfinite-tests: New file.
58040         * tests/tests-isfinite.c: New file.
58041         * doc/functions/isfinite.texi: Mention isfinite module.
58042         * MODULES.html.sh: Mention new module.
58043
58044 2007-10-27  Ben Pfaff  <blp@gnu.org>
58045
58046         Ralf Wildenhues reported that Tru64 4.0D declares the round
58047         functions but does not have definitions.
58048         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
58049         cannot be found in any library, set the output variable to
58050         "missing" instead of "".
58051         * m4/round.m4: Also use our substitute if we cannot find round in
58052         any library, even if it is declared.
58053         * m4/roundf.m4: Likewise for roundf.
58054         * m4/roundl.m4: Likewise for roundl.
58055         * lib/math.in.h: Undefine roundf, round, roundl before defining
58056         their replacements, to allow for hypothetical systems where these
58057         may be defined as macros but not available in libraries.
58058
58059 2007-10-27  Bruno Haible  <bruno@clisp.org>
58060
58061         * doc/gnulib.texi: Invoke @firstparagraphindent.
58062         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
58063         changes in gnulib.
58064         (Source changes): New section.
58065
58066 2007-10-26  Bruno Haible  <bruno@clisp.org>
58067
58068         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
58069         borrowed from autoconf.
58070
58071 2007-10-26  Bruno Haible  <bruno@clisp.org>
58072
58073         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
58074         strerror returned the empty string. Needed on HP-UX 11.00.
58075
58076 2007-10-24  Micah Cowan  <micah@cowan.name>
58077
58078         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
58079         * build-aux/bootstrap: Remove support for now-unnecessary option,
58080         --cvs-user, and envvars CVS_USER, CVS_RSH.
58081
58082 2007-10-24  Jim Meyering  <meyering@redhat.com>
58083
58084         Avoid diagnostics from sha1sum when there is no cached checksum.
58085         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
58086         if the po.s1 file hasn't been created yet.
58087
58088         * build-aux/bootstrap: Sync from coreutils:
58089         2007-10-24  Jim Meyering  <meyering@redhat.com>
58090         Get gnulib from the git repository, not from an obsolete cvs one.
58091         * build-aux/bootstrap: Suggestion from Micah Cowan.
58092         2007-10-04  Jim Meyering  <jim@meyering.net>
58093         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
58094         (update_po_files): Work also when there are no .po files in po/.
58095
58096 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58097
58098         * README: Append ".git" to git and cg examples.
58099         Problem reported by Benoit Sigoure.
58100
58101 2007-10-23  Micah Cowan  <micah@cowan.name>
58102
58103         * users.txt: Add wget.
58104
58105 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58106
58107         Fix linking of some unistdio tests on FreeBSD.
58108         * modules/unistdio/u16-vsnprintf-tests
58109         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
58110         * modules/unistdio/u16-vsprintf-tests
58111         (test_u16_vsnprintf1_LDADD): Likewise.
58112         * modules/unistdio/u32-vsnprintf-tests
58113         (test_u32_vsnprintf1_LDADD): Likewise.
58114         * modules/unistdio/u32-vsprintf-tests
58115         (test_u32_vsprintf1_LDADD): Likewise.
58116         * modules/unistdio/u8-vsnprintf-tests
58117         (test_u8_vsnprintf1_LDADD): Likewise.
58118         * modules/unistdio/u8-vsprintf-tests
58119         (test_u8_vsprintf1_LDADD): Likewise.
58120         * modules/unistdio/ulc-vsnprintf-tests
58121         (test_ulc_vsnprintf1_LDADD): Likewise.
58122         * modules/unistdio/ulc-vsprintf-tests
58123         (test_ulc_vsprintf1_LDADD): Likewise.
58124
58125         Fix linking of some uniconv tests on FreeBSD.
58126         * modules/uniconv/u16-conv-from-enc-tests
58127         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
58128         * modules/uniconv/u16-conv-to-enc-tests
58129         (test_u16_conv_to_enc_LDADD): Likewise.
58130         * modules/uniconv/u16-strconv-from-enc-tests
58131         (test_u16_strconv_from_enc_LDADD): Likewise.
58132         * modules/uniconv/u16-strconv-to-enc-tests
58133         (test_u16_strconv_to_enc_LDADD): Likewise.
58134         * modules/uniconv/u32-conv-from-enc-tests
58135         (test_u32_conv_from_enc_LDADD): Likewise.
58136         * modules/uniconv/u32-conv-to-enc-tests
58137         (test_u32_conv_to_enc_LDADD): Likewise.
58138         * modules/uniconv/u32-strconv-from-enc-tests
58139         (test_u32_strconv_from_enc_LDADD): Likewise.
58140         * modules/uniconv/u32-strconv-to-enc-tests
58141         (test_u32_strconv_to_enc_LDADD): Likewise.
58142         * modules/uniconv/u8-conv-from-enc-tests
58143         (test_u8_conv_from_enc_LDADD): Likewise.
58144         * modules/uniconv/u8-conv-to-enc-tests
58145         (test_u8_conv_to_enc_LDADD): Likewise.
58146         * modules/uniconv/u8-strconv-from-enc-tests
58147         (test_u8_strconv_from_enc_LDADD): Likewise.
58148         * modules/uniconv/u8-strconv-to-enc-tests
58149         (test_u8_strconv_to_enc_LDADD): Likewise.
58150
58151 2007-10-22  Bruno Haible  <bruno@clisp.org>
58152
58153         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
58154         size.
58155
58156 2007-10-22  Eric Blake  <ebb9@byu.net>
58157
58158         Tweak x*printf documentation.
58159         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
58160         variable name and comments.
58161         Suggested by Bruno Haible.
58162
58163 2007-10-22  Bruno Haible  <bruno@clisp.org>
58164
58165         * lib/acl.c (copy_acl): Fix file name in comment.
58166
58167 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         Fix Tru64 problem with stdbool.h.
58170         * lib/stdbool.in.h (false, true):
58171         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
58172         Don't declare as an enum in this situation; it runs afoul of Tru64.
58173         Problem reported by Steven M. Schweda in
58174         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
58175
58176 2007-10-22  Eric Blake  <ebb9@byu.net>
58177
58178         Also wrap vf?printf.
58179         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
58180         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
58181         (xvprintf, xvfprintf): New functions.
58182
58183 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58184
58185         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
58186         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
58187
58188         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
58189         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
58190
58191 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58192
58193         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
58194         by Bruno Haible.
58195
58196 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58197
58198         * lib/getloadavg.c
58199         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
58200         Undef `sys' after including sys/table.h, for Tru64 4.0D.
58201
58202         * tests/test-i-ring.c: Work for C89.
58203
58204 2007-10-22  Bruno Haible  <bruno@clisp.org>
58205
58206         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
58207         -1u, in preprocessor expression, so that we don't test for the bug
58208         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
58209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
58210
58211 2007-10-22  Eric Blake  <ebb9@byu.net>
58212
58213         * tests/test-yesno.sh: Silence stderr during test.
58214
58215 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58216
58217         * modules/crypto/gc-camellia: New file.
58218
58219         * m4/gc-camellia.m4: New file.
58220
58221         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
58222
58223         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
58224
58225 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58226
58227         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
58228         --help to stdout.  Reported by sms@antinode.org (Steven
58229         M. Schweda).
58230
58231 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58232
58233         * users.txt: Fix link to libksba.
58234
58235 2007-10-21  Ben Pfaff  <blp@gnu.org>
58236
58237         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
58238         round.c roundf implementation that depends on floorf and ceilf to
58239         be tested unconditionally.
58240
58241 2007-10-21  Ben Pfaff  <blp@gnu.org>
58242
58243         * m4/check-libm-func.m4: Removed.
58244         * m4/check-math-lib.m4: New file.
58245         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
58246         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
58247         definition and lack of AC_LIBOBJ([roundf]).
58248         * m4/roundl.m4: Ditto, and similarly for roundl.
58249         * modules/round: Reference new m4 file.
58250         * modules/roundf: Ditto.
58251         * modules/roundl: Ditto.
58252         * tests/test-round2.c (main): Use ROUND instead of round.
58253         Bug report from Bruno Haible.
58254
58255 2007-10-21  Bruno Haible  <bruno@clisp.org>
58256
58257         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
58258         context.
58259
58260 2007-10-21  Bruno Haible  <bruno@clisp.org>
58261
58262         * tests/test-wcwidth.c (main): Allow negative result for some control
58263         characters.
58264
58265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
58266         Needed on OSF/1 5.1.
58267
58268 2007-10-21  Bruno Haible  <bruno@clisp.org>
58269
58270         * tests/test-floorf1.c: Include isnanf.h.
58271         (main): Use isnanf() instead of isnan().
58272         * tests/test-ceilf1.c: Include isnanf.h.
58273         (main): Use isnanf() instead of isnan().
58274         * tests/test-truncf1.c: Include isnanf.h.
58275         (main): Use isnanf() instead of isnan().
58276         * tests/test-roundf1.c: Include isnanf.h.
58277         (main): Use isnanf() instead of isnan().
58278
58279 2007-10-21  Eric Blake  <ebb9@byu.net>
58280
58281         * users.txt: Update URL for m4.
58282
58283 2007-10-21  Bruno Haible  <bruno@clisp.org>
58284
58285         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
58286
58287 2007-10-21  Bruno Haible  <bruno@clisp.org>
58288
58289         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
58290         Git's management files if the CVS files are not present.
58291
58292 2007-10-20  Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
58295         gcc-3.4.x.
58296
58297 2007-10-20  Ben Pfaff  <blp@gnu.org>
58298
58299         * lib/math.in.h: Declare round, roundf, roundl if we are providing
58300         implementations.
58301         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
58302         * lib/round.c: New file.
58303         * lib/roundf.c: New file.
58304         * lib/roundl.c: New file.
58305         * m4/round.m4: New file.
58306         * m4/roundf.m4: New file.
58307         * m4/roundl.m4: New file.
58308         * m4/check-libm-func-m4: New file.
58309         * modules/math: Replace round, roundf, roundl related @VARS@ in
58310         math.in.h.
58311         * modules/round: New file.
58312         * modules/round-tests: New file.
58313         * modules/roundf: New file.
58314         * modules/roundf-tests: New file.
58315         * modules/roundl: New file.
58316         * modules/roundl-tests: New file.
58317         * tests/test-round1.c: New file.
58318         * tests/test-round2.c: New file.
58319         * tests/test-roundf1.c: New file.
58320         * tests/test-roundf2.c: New file.
58321         * tests/test-roundl.c: New file.
58322         * doc/functions/round.texi: Mention round module.
58323         * doc/functions/roundf.texi: Mention roundf module.
58324         * doc/functions/roundl.texi: Mention roundl module.
58325         * MODULES.html.sh: Mention new modules.
58326         Thanks to Bruno Haible for suggestions.
58327
58328 2007-10-20  Jim Meyering  <meyering@redhat.com>
58329
58330         * lib/xprintf.c: Include <config.h> unconditionally.
58331
58332         Change xprintf's license to GPL.
58333         * modules/xprintf (License): s/LGPL/GPL/, since this module
58334         depends on modules (exit and exitfail) which are GPL.
58335         Suggestion from Bruno Haible.
58336
58337         xprintf fixes.
58338         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
58339         Use a clearer diagnostic.
58340         Patch from Bruno Haible.
58341
58342 2007-10-20  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
58345         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
58346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58347
58348 2007-10-20  Bruno Haible  <bruno@clisp.org>
58349
58350         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
58351         precision in the comparison result > x - 1 or similar.
58352         * tests/test-ceilf2.c (correct_result_p): Likewise.
58353         * tests/test-truncf2.c (correct_result_p): Likewise.
58354         * tests/test-trunc2.c (correct_result_p): Likewise.
58355         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58356
58357 2007-10-20  Bruno Haible  <bruno@clisp.org>
58358
58359         * modules/ceil: New file.
58360         * m4/ceil.m4: New file.
58361         * doc/functions/ceil.texi: Mention the 'ceil' module.
58362
58363 2007-10-20  Bruno Haible  <bruno@clisp.org>
58364
58365         * modules/floor: New file.
58366         * m4/floor.m4: New file.
58367         * doc/functions/floor.texi: Mention the 'floor' module.
58368
58369 2007-10-20  Bruno Haible  <bruno@clisp.org>
58370
58371         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
58372         of %a.
58373         * modules/floorf-tests (Depends-on): Likewise.
58374         * modules/truncf-tests (Depends-on): Likewise.
58375         * modules/trunc-tests (Depends-on): Likewise.
58376         Reported by Ben Pfaff.
58377
58378 2007-10-19  Jim Meyering  <meyering@redhat.com>
58379
58380         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
58381         Don't bother testing specific errno values.  Just test ferror.
58382
58383         New module: xprintf
58384         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
58385
58386 2007-10-19  Bruno Haible  <bruno@clisp.org>
58387
58388         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
58389         syntax.
58390         * modules/javaexec (Makefile.am): Likewise.
58391         * modules/relocatable-prog (Makefile.am): Likewise.
58392         Suggested by Jim Meyering.
58393
58394 2007-10-18  Bruno Haible  <bruno@clisp.org>
58395
58396         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
58397         Reported by Jim Meyering.
58398
58399 2007-10-18  Eric Blake  <ebb9@byu.net>
58400
58401         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
58402
58403 2007-10-18  Bruno Haible  <bruno@clisp.org>
58404
58405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
58406         the format string into writable memory. Needed in Fortify conditions.
58407
58408 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
58409             Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
58412         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
58413         * modules/trim (Depends-on): Add mbchar.
58414         (configure.ac): Add gl_FUNC_MBRTOWC.
58415         (Makefile.am): Augment lib_SOURCES.
58416
58417 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58418
58419         Modify glob.c to use fstatat and dirfd, to simplify it.
58420         Suggested by Eric Blake.
58421         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
58422         Don't include <stdbool.h>; not used.
58423         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
58424         (link_exists_p): Simplify implementation, since we can now assume
58425         dirfd and fstatat.
58426         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
58427
58428 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58429
58430         * gnulib-tool (func_get_dependencies): Fix sed script to
58431         match only tests.
58432
58433 2007-10-17  Bruno Haible  <bruno@clisp.org>
58434
58435         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
58436         allow locale names without encoding suffix.
58437         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58439
58440 2007-10-16  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
58443         * lib/getgroups.c (getgroups): Likewise.
58444         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
58445
58446 2007-10-16  Bruno Haible  <bruno@clisp.org>
58447
58448         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
58449         * modules/malloc-posix (License): Likewise.
58450         * modules/realloc-posix (License): Likewise.
58451         * modules/calloc-posix (License): Likewise.
58452         * modules/intprops (License): Change from GPL to LGPL, with
58453         Paul Eggert's approval.
58454
58455 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         Merge glibc changes into lib/glob.c.
58458
58459         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
58460         2007-10-15 04:59:03 UTC.  Here are the changes:
58461
58462         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
58463
58464         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
58465
58466         * lib/glob.c: Add some branch prediction throughout.
58467
58468         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
58469
58470         [BZ #5103]
58471         * lib/glob.c (glob): Recognize patterns starting \/.
58472
58473         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
58474
58475         [BZ #3996]
58476         * lib/glob.c (attribute_hidden): Define if not defined.
58477         (glob): Unescape dirname, filename or username when needed and not
58478         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
58479         is NULL.  Handle unescaped [ in pattern without closing ].
58480         Don't pass GLOB_CHECK down to recursive glob for directories.
58481         (__glob_pattern_type): New function.
58482         (__glob_pattern_p): Implement using __glob_pattern_type.
58483         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
58484         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
58485         Remove unreachable code.
58486
58487         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
58488
58489         * lib/glob.c (glob_in_dir): Add some comments and asserts to
58490         explain why there are no leaks.
58491
58492         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
58493
58494         [BZ #3253]
58495         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
58496         time, rather allocate increasingly bigger arrays of pointers, if
58497         possible with alloca, if too large with malloc.
58498
58499 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58500
58501         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
58502         Problem reported by H.Merijn Brand in
58503         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
58504         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
58505         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58506
58507 2007-10-15  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
58510         with explicit rpl_ prefix.
58511         * lib/fopen.c (fopen): Likewise.
58512         * lib/freopen.c (freopen): Likewise.
58513         * lib/iconv.c (iconv): Likewise.
58514         * lib/iconv_close.c (iconv_close): Likewise.
58515
58516 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58517
58518         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
58519
58520 2007-10-15  Bruno Haible  <bruno@clisp.org>
58521
58522         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
58523         <stddef.h> instead of <stdlib.h> since we only need NULL.
58524         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58525
58526 2007-10-15  Bruno Haible  <bruno@clisp.org>
58527
58528         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
58529         Replace paragraph talking about LIBOBJS.
58530         Reported by Colin Watson <cjwatson@debian.org>.
58531
58532 2007-10-15  Bruno Haible  <bruno@clisp.org>
58533
58534         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
58535         <stdlib.h> before using NULL.
58536
58537 2007-10-15  Simon Josefsson  <simon@josefsson.org>
58538
58539         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
58540         Reported by Albert Chin <china@thewrittenword.com>.
58541
58542 2007-10-14  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/iconv_open-utf-tests: New file.
58545         * tests/test-iconv-utf.c: New file.
58546
58547         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
58548         * modules/iconv_open-utf: New file.
58549         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
58550         (iconv, iconv_close): New declarations.
58551         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
58552         be defined.
58553         (iconv_open): Add special handling of conversion between UTF-8 and
58554         UTF-{16,32}{BE,LE}.
58555         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
58556         * lib/iconv_close.c: New file.
58557         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
58558         gl_FUNC_ICONV_OPEN.
58559         (gl_FUNC_ICONV_OPEN): Use it.
58560         (gl_FUNC_ICONV_OPEN_UTF): New macro.
58561         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
58562         and REPLACE_ICONV_UTF.
58563         * modules/iconv_open (Depends-on): Add c-strcase.
58564         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
58565         ICONV_CONST.
58566         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
58567
58568 2007-10-13  Albert Chin  <china@thewrittenword.com>
58569             Bruno Haible  <bruno@clisp.org>
58570
58571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
58572         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
58573
58574 2007-10-13  Bruno Haible  <bruno@clisp.org>
58575
58576         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
58577         defined, use the ISO C99 inline semantics.
58578         * lib/argp.h (ARGP_EI): Likewise.
58579
58580 2007-10-13  Bruno Haible  <bruno@clisp.org>
58581
58582         Handle 'inline' change in gcc 4.3.0.
58583         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
58584         argp_fmtstream_write, argp_fmtstream_set_lmargin,
58585         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
58586         argp_fmtstream_point): Disable 'extern' declaration if the function
58587         definition is going to be provided inline.
58588         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
58589         semantics, not the ISO C99 inline semantics.
58590         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
58591         'extern' declaration if the function definition is going to be provided
58592         inline.
58593         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
58594         the GNU C inline semantics, not the ISO C99 inline semantics. With
58595         GCC 4.2, avoid a warning.
58596
58597 2007-10-13  Bruno Haible  <bruno@clisp.org>
58598
58599         * lib/freading.h (freading): Enable the use of __freading for
58600         glibc >= 2.7.
58601         * lib/freading.c (freading): Likewise.
58602
58603 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
58606         "warning: C99 inline functions are not supported; using GNU89".
58607
58608 2007-10-12  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
58611         of 2.
58612         * tests/test-ceilf2.c: New file.
58613         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
58614
58615         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
58616         * modules/ceilf-tests: Update.
58617
58618 2007-10-12  Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
58621         of 2.
58622         * tests/test-floorf2.c: New file.
58623         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
58624
58625         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
58626         * modules/floorf-tests: Update.
58627
58628 2007-10-12  Bruno Haible  <bruno@clisp.org>
58629
58630         * tests/test-trunc2.c: New file.
58631         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
58632
58633         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
58634         * modules/trunc-tests: Update.
58635
58636 2007-10-12  Bruno Haible  <bruno@clisp.org>
58637
58638         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
58639         of 2.
58640         * tests/test-truncf2.c: New file.
58641         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
58642
58643         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
58644         * modules/truncf-tests: Update.
58645
58646 2007-10-11  Eric Blake  <ebb9@byu.net>
58647
58648         Don't claim strerror is broken on Interix.
58649         * doc/functions/strerror.texi (strerror): Known broken systems are
58650         now Solaris 8, and not Interix.
58651         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
58652         Interix on cross-compile.
58653         Reported by Martin Koeppe in
58654         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
58655
58656 2007-10-11  Bruno Haible  <bruno@clisp.org>
58657
58658         * modules/i-ring-tests: New file.
58659         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
58660         instead of assert.
58661
58662 2007-10-11  Bruno Haible  <bruno@clisp.org>
58663
58664         * modules/filenamecat-tests: New file.
58665         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
58666         * lib/filenamecat.c: Remove test code.
58667
58668 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58669
58670         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
58671
58672         * lib/strerror.c: Include <string.h> always, to test interface,
58673         and to remove the need for the dummy.
58674         Include intprops.h to compute width instead of doing it ourselves
58675         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
58676         (strerror): Define it to return NULL if there's no system strerror.
58677         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
58678         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
58679         ancient pre-strerror Unix systems well any more.  Saying "unknown
58680         system error" is enough.
58681         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
58682         simpler strerror.c implementation.
58683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
58684         Simplify the tests to reflect the simpler strerror implementation.
58685         * modules/strerror (Depends-on): Add intprops.
58686
58687 2007-10-09  Eric Blake  <ebb9@byu.net>
58688
58689         Silence test-fpending.
58690         * modules/fpending-tests (Files): Add wrapper script.
58691         * tests/test-fpending.sh: New file.
58692
58693 2007-10-09  Bruno Haible  <bruno@clisp.org>
58694
58695         * MODULES.html.sh (func_module): Don't create a hyperlink for
58696         function names like 'printf_frexp'.
58697         (Misc): Add crc, memxor.
58698         (Characteristics of floating types): New section.
58699         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
58700         isnanf-nolibm, signbit, trunc, truncf, truncl.
58701         (Enhancements for ISO C 99 functions): New subsection Input/output.
58702         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
58703         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
58704         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
58705         (Compatibility checks for POSIX:2001 functions): Add clock-time.
58706         (Enhancements for POSIX:2001 functions): Add chdir-long.
58707         (File system functions): Add areadlink, chdir-safer, read-file.
58708         Remove cycle-check.
58709         (File system as inode set): New section.
58710         (Date and time): Add gethrxtime.
58711         (Multithreading): Add openmp.
58712         (Internationalization functions): Add localename.
58713         (Unicode string functions): Add unistr/u*-mbsnlen.
58714         (Support for maintaining and releasing projects): Add git-version-gen.
58715         (Lone files): Remove directories.
58716
58717 2007-10-08  Ben Pfaff  <blp@gnu.org>
58718
58719         * lib/xmalloca.h: Fix typo in comment.
58720
58721 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58722
58723         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
58724         when avoiding problems with integer overflow.  Use a portable test
58725         instead.
58726
58727 2007-10-08  Simon Josefsson  <simon@josefsson.org>
58728
58729         * modules/dummy (License): Change to LGPLv2+.
58730         * modules/float (License): Likewise
58731         * modules/realloc (License): Likewise
58732         * modules/stdlib (License): Likewise
58733
58734 2007-10-07  Bruno Haible  <bruno@clisp.org>
58735
58736         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
58737         * floor.c (TWO_MANT_DIG): Likewise.
58738         * ceil.c (TWO_MANT_DIG): Likewise.
58739         Reported by Ben Pfaff.
58740
58741 2007-10-07  Bruno Haible  <bruno@clisp.org>
58742
58743         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
58744         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
58745         * lib/frexp.c (FUNC): Likewise.
58746         * lib/printf-frexp.h (printf_frexp): Likewise.
58747         * lib/printf-frexpl.h (printf_frexpl): Likewise.
58748         * lib/printf-frexp.c (FUNC): Likewise.
58749         Suggested by Jim Meyering.
58750
58751 2007-10-07  Jim Meyering  <meyering@redhat.com>
58752
58753         Make xnanosleep's integer overflow test more robust.
58754         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
58755         so that gcc-4.3.0 doesn't optimize away this test for overflow.
58756
58757 2007-10-07  Bruno Haible  <bruno@clisp.org>
58758
58759         * NEWS: Mention the license change.
58760
58761         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
58762         abbreviations in the modules files.
58763
58764         Change copyright notice from GPLv2+ to GPLv3+.
58765         * README: Change copyright notice.
58766         * MODULES.html.sh: Likewise.
58767         * build-aux/bootstrap.conf: Likewise.
58768         * build-aux/config.libpath: Likewise.
58769         * build-aux/csharpcomp.sh.in: Likewise.
58770         * build-aux/csharpexec.sh.in: Likewise.
58771         * build-aux/install-reloc: Likewise.
58772         * build-aux/javacomp.sh.in: Likewise.
58773         * build-aux/javaexec.sh.in: Likewise.
58774         * build-aux/ldd.sh.in: Likewise.
58775         * build-aux/reloc-ldflags: Likewise.
58776         * build-aux/relocatable.sh.in: Likewise.
58777         * build-aux/x-to-1.in: Likewise.
58778         * check-module: Likewise.
58779         * config/srclistvars.sh: Likewise.
58780         * gnulib-tool: Likewise.
58781         * lib/acl-internal.h: Likewise.
58782         * lib/acl.c: Likewise.
58783         * lib/acl.h: Likewise.
58784         * lib/acl_entries.c: Likewise.
58785         * lib/areadlink-with-size.c: Likewise.
58786         * lib/areadlink.c: Likewise.
58787         * lib/areadlink.h: Likewise.
58788         * lib/argmatch.c: Likewise.
58789         * lib/argmatch.h: Likewise.
58790         * lib/argp-ba.c: Likewise.
58791         * lib/argp-eexst.c: Likewise.
58792         * lib/argp-fmtstream.c: Likewise.
58793         * lib/argp-fmtstream.h: Likewise.
58794         * lib/argp-fs-xinl.c: Likewise.
58795         * lib/argp-help.c: Likewise.
58796         * lib/argp-namefrob.h: Likewise.
58797         * lib/argp-parse.c: Likewise.
58798         * lib/argp-pin.c: Likewise.
58799         * lib/argp-pv.c: Likewise.
58800         * lib/argp-pvh.c: Likewise.
58801         * lib/argp-xinl.c: Likewise.
58802         * lib/argp.h: Likewise.
58803         * lib/at-func.c: Likewise.
58804         * lib/atanl.c: Likewise.
58805         * lib/backupfile.c: Likewise.
58806         * lib/backupfile.h: Likewise.
58807         * lib/basename.c: Likewise.
58808         * lib/binary-io.h: Likewise.
58809         * lib/byteswap.in.h: Likewise.
58810         * lib/c-stack.c: Likewise.
58811         * lib/c-stack.h: Likewise.
58812         * lib/c-strcasestr.c: Likewise.
58813         * lib/c-strcasestr.h: Likewise.
58814         * lib/c-strstr.c: Likewise.
58815         * lib/c-strstr.h: Likewise.
58816         * lib/c-strtod.c: Likewise.
58817         * lib/calloc.c: Likewise.
58818         * lib/canon-host.c: Likewise.
58819         * lib/canon-host.h: Likewise.
58820         * lib/canonicalize-lgpl.c: Likewise.
58821         * lib/canonicalize.c: Likewise.
58822         * lib/canonicalize.h: Likewise.
58823         * lib/ceil.c: Likewise.
58824         * lib/ceilf.c: Likewise.
58825         * lib/ceill.c: Likewise.
58826         * lib/chdir-long.c: Likewise.
58827         * lib/chdir-long.h: Likewise.
58828         * lib/chdir-safer.c: Likewise.
58829         * lib/chdir-safer.h: Likewise.
58830         * lib/chown.c: Likewise.
58831         * lib/classpath.c: Likewise.
58832         * lib/classpath.h: Likewise.
58833         * lib/clean-temp.c: Likewise.
58834         * lib/clean-temp.h: Likewise.
58835         * lib/cloexec.c: Likewise.
58836         * lib/close-stream.c: Likewise.
58837         * lib/closein.c: Likewise.
58838         * lib/closein.h: Likewise.
58839         * lib/closeout.c: Likewise.
58840         * lib/closeout.h: Likewise.
58841         * lib/concat-filename.c: Likewise.
58842         * lib/copy-file.c: Likewise.
58843         * lib/copy-file.h: Likewise.
58844         * lib/count-one-bits.h: Likewise.
58845         * lib/crc.c: Likewise.
58846         * lib/crc.h: Likewise.
58847         * lib/creat-safer.c: Likewise.
58848         * lib/csharpcomp.c: Likewise.
58849         * lib/csharpcomp.h: Likewise.
58850         * lib/csharpexec.c: Likewise.
58851         * lib/csharpexec.h: Likewise.
58852         * lib/cycle-check.c: Likewise.
58853         * lib/cycle-check.h: Likewise.
58854         * lib/diacrit.c: Likewise.
58855         * lib/diacrit.h: Likewise.
58856         * lib/diffseq.h: Likewise.
58857         * lib/dirchownmod.c: Likewise.
58858         * lib/dirent.in.h: Likewise.
58859         * lib/dirfd.c: Likewise.
58860         * lib/dirfd.h: Likewise.
58861         * lib/dirname.c: Likewise.
58862         * lib/dirname.h: Likewise.
58863         * lib/dummy.c: Likewise.
58864         * lib/dup-safer.c: Likewise.
58865         * lib/dup2.c: Likewise.
58866         * lib/eealloc.h: Likewise.
58867         * lib/error.c: Likewise.
58868         * lib/error.h: Likewise.
58869         * lib/euidaccess.c: Likewise.
58870         * lib/exclude.c: Likewise.
58871         * lib/exclude.h: Likewise.
58872         * lib/execute.c: Likewise.
58873         * lib/execute.h: Likewise.
58874         * lib/exitfail.c: Likewise.
58875         * lib/exitfail.h: Likewise.
58876         * lib/expl.c: Likewise.
58877         * lib/fatal-signal.c: Likewise.
58878         * lib/fatal-signal.h: Likewise.
58879         * lib/fbufmode.c: Likewise.
58880         * lib/fbufmode.h: Likewise.
58881         * lib/fchdir.c: Likewise.
58882         * lib/fchmodat.c: Likewise.
58883         * lib/fchownat.c: Likewise.
58884         * lib/fcntl--.h: Likewise.
58885         * lib/fcntl-safer.h: Likewise.
58886         * lib/fcntl.in.h: Likewise.
58887         * lib/fd-safer.c: Likewise.
58888         * lib/fflush.c: Likewise.
58889         * lib/file-has-acl.c: Likewise.
58890         * lib/file-set.c: Likewise.
58891         * lib/file-type.c: Likewise.
58892         * lib/file-type.h: Likewise.
58893         * lib/fileblocks.c: Likewise.
58894         * lib/filemode.c: Likewise.
58895         * lib/filemode.h: Likewise.
58896         * lib/filename.h: Likewise.
58897         * lib/filenamecat.c: Likewise.
58898         * lib/filenamecat.h: Likewise.
58899         * lib/findprog.c: Likewise.
58900         * lib/findprog.h: Likewise.
58901         * lib/float.in.h: Likewise.
58902         * lib/floor.c: Likewise.
58903         * lib/floorf.c: Likewise.
58904         * lib/floorl.c: Likewise.
58905         * lib/fopen-safer.c: Likewise.
58906         * lib/fopen.c: Likewise.
58907         * lib/fpending.c: Likewise.
58908         * lib/fpending.h: Likewise.
58909         * lib/fprintf.c: Likewise.
58910         * lib/fprintftime.h: Likewise.
58911         * lib/fpucw.h: Likewise.
58912         * lib/fpurge.c: Likewise.
58913         * lib/fpurge.h: Likewise.
58914         * lib/freadable.c: Likewise.
58915         * lib/freadable.h: Likewise.
58916         * lib/freadahead.c: Likewise.
58917         * lib/freadahead.h: Likewise.
58918         * lib/freading.c: Likewise.
58919         * lib/freading.h: Likewise.
58920         * lib/free.c: Likewise.
58921         * lib/freopen.c: Likewise.
58922         * lib/frexp.c: Likewise.
58923         * lib/frexpl.c: Likewise.
58924         * lib/fseek.c: Likewise.
58925         * lib/fseterr.c: Likewise.
58926         * lib/fseterr.h: Likewise.
58927         * lib/fstatat.c: Likewise.
58928         * lib/fstrcmp.c: Likewise.
58929         * lib/fstrcmp.h: Likewise.
58930         * lib/fsusage.c: Likewise.
58931         * lib/fsusage.h: Likewise.
58932         * lib/ftell.c: Likewise.
58933         * lib/ftello.c: Likewise.
58934         * lib/fts-cycle.c: Likewise.
58935         * lib/fts.c: Likewise.
58936         * lib/fts_.h: Likewise.
58937         * lib/full-read.c: Likewise.
58938         * lib/full-read.h: Likewise.
58939         * lib/full-write.c: Likewise.
58940         * lib/full-write.h: Likewise.
58941         * lib/fwritable.c: Likewise.
58942         * lib/fwritable.h: Likewise.
58943         * lib/fwriteerror.c: Likewise.
58944         * lib/fwriteerror.h: Likewise.
58945         * lib/fwriting.c: Likewise.
58946         * lib/fwriting.h: Likewise.
58947         * lib/gcd.c: Likewise.
58948         * lib/gcd.h: Likewise.
58949         * lib/getcwd.c: Likewise.
58950         * lib/getdate.h: Likewise.
58951         * lib/getdate.y: Likewise.
58952         * lib/getdomainname.c: Likewise.
58953         * lib/getdomainname.h: Likewise.
58954         * lib/getgroups.c: Likewise.
58955         * lib/gethostname.c: Likewise.
58956         * lib/gethrxtime.c: Likewise.
58957         * lib/gethrxtime.h: Likewise.
58958         * lib/getloadavg.c: Likewise.
58959         * lib/getndelim2.c: Likewise.
58960         * lib/getndelim2.h: Likewise.
58961         * lib/getnline.c: Likewise.
58962         * lib/getnline.h: Likewise.
58963         * lib/getopt.c: Likewise.
58964         * lib/getopt.in.h: Likewise.
58965         * lib/getopt1.c: Likewise.
58966         * lib/getopt_int.h: Likewise.
58967         * lib/getpagesize.h: Likewise.
58968         * lib/getsubopt.c: Likewise.
58969         * lib/gettime.c: Likewise.
58970         * lib/getugroups.c: Likewise.
58971         * lib/getugroups.h: Likewise.
58972         * lib/getusershell.c: Likewise.
58973         * lib/gl_anyavltree_list1.h: Likewise.
58974         * lib/gl_anyavltree_list2.h: Likewise.
58975         * lib/gl_anyhash_list1.h: Likewise.
58976         * lib/gl_anyhash_list2.h: Likewise.
58977         * lib/gl_anylinked_list1.h: Likewise.
58978         * lib/gl_anylinked_list2.h: Likewise.
58979         * lib/gl_anyrbtree_list1.h: Likewise.
58980         * lib/gl_anyrbtree_list2.h: Likewise.
58981         * lib/gl_anytree_list1.h: Likewise.
58982         * lib/gl_anytree_list2.h: Likewise.
58983         * lib/gl_anytree_oset.h: Likewise.
58984         * lib/gl_anytreehash_list1.h: Likewise.
58985         * lib/gl_anytreehash_list2.h: Likewise.
58986         * lib/gl_array_list.c: Likewise.
58987         * lib/gl_array_list.h: Likewise.
58988         * lib/gl_array_oset.c: Likewise.
58989         * lib/gl_array_oset.h: Likewise.
58990         * lib/gl_avltree_list.c: Likewise.
58991         * lib/gl_avltree_list.h: Likewise.
58992         * lib/gl_avltree_oset.c: Likewise.
58993         * lib/gl_avltree_oset.h: Likewise.
58994         * lib/gl_avltreehash_list.c: Likewise.
58995         * lib/gl_avltreehash_list.h: Likewise.
58996         * lib/gl_carray_list.c: Likewise.
58997         * lib/gl_carray_list.h: Likewise.
58998         * lib/gl_linked_list.c: Likewise.
58999         * lib/gl_linked_list.h: Likewise.
59000         * lib/gl_linkedhash_list.c: Likewise.
59001         * lib/gl_linkedhash_list.h: Likewise.
59002         * lib/gl_list.c: Likewise.
59003         * lib/gl_list.h: Likewise.
59004         * lib/gl_oset.c: Likewise.
59005         * lib/gl_oset.h: Likewise.
59006         * lib/gl_rbtree_list.c: Likewise.
59007         * lib/gl_rbtree_list.h: Likewise.
59008         * lib/gl_rbtree_oset.c: Likewise.
59009         * lib/gl_rbtree_oset.h: Likewise.
59010         * lib/gl_rbtreehash_list.c: Likewise.
59011         * lib/gl_rbtreehash_list.h: Likewise.
59012         * lib/gl_sublist.c: Likewise.
59013         * lib/gl_sublist.h: Likewise.
59014         * lib/group-member.c: Likewise.
59015         * lib/group-member.h: Likewise.
59016         * lib/hard-locale.c: Likewise.
59017         * lib/hard-locale.h: Likewise.
59018         * lib/hash-pjw.c: Likewise.
59019         * lib/hash-pjw.h: Likewise.
59020         * lib/hash-triple.c: Likewise.
59021         * lib/hash.c: Likewise.
59022         * lib/hash.h: Likewise.
59023         * lib/human.c: Likewise.
59024         * lib/human.h: Likewise.
59025         * lib/i-ring.c: Likewise.
59026         * lib/i-ring.h: Likewise.
59027         * lib/idcache.c: Likewise.
59028         * lib/imaxabs.c: Likewise.
59029         * lib/imaxdiv.c: Likewise.
59030         * lib/inet_pton.c: Likewise.
59031         * lib/inet_pton.h: Likewise.
59032         * lib/intprops.h: Likewise.
59033         * lib/inttostr.c: Likewise.
59034         * lib/inttostr.h: Likewise.
59035         * lib/inttypes.in.h: Likewise.
59036         * lib/isapipe.c: Likewise.
59037         * lib/isdir.c: Likewise.
59038         * lib/isnan.c: Likewise.
59039         * lib/isnan.h: Likewise.
59040         * lib/isnanf.c: Likewise.
59041         * lib/isnanf.h: Likewise.
59042         * lib/isnanl-nolibm.h: Likewise.
59043         * lib/isnanl.c: Likewise.
59044         * lib/isnanl.h: Likewise.
59045         * lib/javacomp.c: Likewise.
59046         * lib/javacomp.h: Likewise.
59047         * lib/javaexec.c: Likewise.
59048         * lib/javaexec.h: Likewise.
59049         * lib/javaversion.c: Likewise.
59050         * lib/javaversion.h: Likewise.
59051         * lib/javaversion.java: Likewise.
59052         * lib/lbrkprop.h: Likewise.
59053         * lib/lchmod.h: Likewise.
59054         * lib/lchown.c: Likewise.
59055         * lib/ldexpl.c: Likewise.
59056         * lib/linebreak.c: Likewise.
59057         * lib/linebreak.h: Likewise.
59058         * lib/linebuffer.c: Likewise.
59059         * lib/linebuffer.h: Likewise.
59060         * lib/locale.in.h: Likewise.
59061         * lib/logl.c: Likewise.
59062         * lib/long-options.c: Likewise.
59063         * lib/long-options.h: Likewise.
59064         * lib/lstat.c: Likewise.
59065         * lib/lstat.h: Likewise.
59066         * lib/math.in.h: Likewise.
59067         * lib/mbchar.c: Likewise.
59068         * lib/mbchar.h: Likewise.
59069         * lib/mbfile.h: Likewise.
59070         * lib/mbiter.h: Likewise.
59071         * lib/mbscasecmp.c: Likewise.
59072         * lib/mbscasestr.c: Likewise.
59073         * lib/mbschr.c: Likewise.
59074         * lib/mbscspn.c: Likewise.
59075         * lib/mbslen.c: Likewise.
59076         * lib/mbsncasecmp.c: Likewise.
59077         * lib/mbsnlen.c: Likewise.
59078         * lib/mbspbrk.c: Likewise.
59079         * lib/mbspcasecmp.c: Likewise.
59080         * lib/mbsrchr.c: Likewise.
59081         * lib/mbssep.c: Likewise.
59082         * lib/mbsspn.c: Likewise.
59083         * lib/mbsstr.c: Likewise.
59084         * lib/mbstok_r.c: Likewise.
59085         * lib/mbswidth.c: Likewise.
59086         * lib/mbswidth.h: Likewise.
59087         * lib/mbuiter.h: Likewise.
59088         * lib/memcasecmp.c: Likewise.
59089         * lib/memcasecmp.h: Likewise.
59090         * lib/memchr.c: Likewise.
59091         * lib/memcmp.c: Likewise.
59092         * lib/memcoll.c: Likewise.
59093         * lib/memcoll.h: Likewise.
59094         * lib/memcpy.c: Likewise.
59095         * lib/memrchr.c: Likewise.
59096         * lib/mkancesdirs.c: Likewise.
59097         * lib/mkdir-p.c: Likewise.
59098         * lib/mkdir-p.h: Likewise.
59099         * lib/mkdir.c: Likewise.
59100         * lib/mkdirat.c: Likewise.
59101         * lib/mkdtemp.c: Likewise.
59102         * lib/mkstemp-safer.c: Likewise.
59103         * lib/mkstemp.c: Likewise.
59104         * lib/modechange.c: Likewise.
59105         * lib/modechange.h: Likewise.
59106         * lib/mountlist.c: Likewise.
59107         * lib/mountlist.h: Likewise.
59108         * lib/mpsort.c: Likewise.
59109         * lib/nanosleep.c: Likewise.
59110         * lib/obstack.c: Likewise.
59111         * lib/obstack.h: Likewise.
59112         * lib/open-safer.c: Likewise.
59113         * lib/open.c: Likewise.
59114         * lib/openat-die.c: Likewise.
59115         * lib/openat-priv.h: Likewise.
59116         * lib/openat-proc.c: Likewise.
59117         * lib/openat.c: Likewise.
59118         * lib/openat.h: Likewise.
59119         * lib/pagealign_alloc.c: Likewise.
59120         * lib/pagealign_alloc.h: Likewise.
59121         * lib/physmem.c: Likewise.
59122         * lib/physmem.h: Likewise.
59123         * lib/pipe-safer.c: Likewise.
59124         * lib/pipe.c: Likewise.
59125         * lib/pipe.h: Likewise.
59126         * lib/posixtm.c: Likewise.
59127         * lib/posixtm.h: Likewise.
59128         * lib/posixver.c: Likewise.
59129         * lib/printf-frexp.c: Likewise.
59130         * lib/printf-frexp.h: Likewise.
59131         * lib/printf-frexpl.c: Likewise.
59132         * lib/printf-frexpl.h: Likewise.
59133         * lib/printf.c: Likewise.
59134         * lib/progname.c: Likewise.
59135         * lib/progname.h: Likewise.
59136         * lib/progreloc.c: Likewise.
59137         * lib/putenv.c: Likewise.
59138         * lib/quote.c: Likewise.
59139         * lib/quote.h: Likewise.
59140         * lib/quotearg.c: Likewise.
59141         * lib/quotearg.h: Likewise.
59142         * lib/raise.c: Likewise.
59143         * lib/readline.c: Likewise.
59144         * lib/readline.h: Likewise.
59145         * lib/readlink.c: Likewise.
59146         * lib/readtokens.c: Likewise.
59147         * lib/readtokens.h: Likewise.
59148         * lib/readtokens0.c: Likewise.
59149         * lib/readtokens0.h: Likewise.
59150         * lib/readutmp.c: Likewise.
59151         * lib/readutmp.h: Likewise.
59152         * lib/realloc.c: Likewise.
59153         * lib/relocwrapper.c: Likewise.
59154         * lib/rename-dest-slash.c: Likewise.
59155         * lib/rename.c: Likewise.
59156         * lib/rmdir.c: Likewise.
59157         * lib/rpmatch.c: Likewise.
59158         * lib/safe-read.c: Likewise.
59159         * lib/safe-read.h: Likewise.
59160         * lib/safe-write.c: Likewise.
59161         * lib/safe-write.h: Likewise.
59162         * lib/same-inode.h: Likewise.
59163         * lib/same.c: Likewise.
59164         * lib/same.h: Likewise.
59165         * lib/save-cwd.c: Likewise.
59166         * lib/save-cwd.h: Likewise.
59167         * lib/savedir.c: Likewise.
59168         * lib/savedir.h: Likewise.
59169         * lib/savewd.c: Likewise.
59170         * lib/savewd.h: Likewise.
59171         * lib/search.in.h: Likewise.
59172         * lib/setenv.c: Likewise.
59173         * lib/setenv.h: Likewise.
59174         * lib/settime.c: Likewise.
59175         * lib/sh-quote.c: Likewise.
59176         * lib/sh-quote.h: Likewise.
59177         * lib/sig2str.c: Likewise.
59178         * lib/sig2str.h: Likewise.
59179         * lib/signal.in.h: Likewise.
59180         * lib/signbitd.c: Likewise.
59181         * lib/signbitf.c: Likewise.
59182         * lib/signbitl.c: Likewise.
59183         * lib/sigprocmask.c: Likewise.
59184         * lib/sincosl.c: Likewise.
59185         * lib/sleep.c: Likewise.
59186         * lib/sprintf.c: Likewise.
59187         * lib/sqrtl.c: Likewise.
59188         * lib/stat-time.h: Likewise.
59189         * lib/stdio--.h: Likewise.
59190         * lib/stdio-safer.h: Likewise.
59191         * lib/stdlib--.h: Likewise.
59192         * lib/stdlib-safer.h: Likewise.
59193         * lib/stdlib.in.h: Likewise.
59194         * lib/stpcpy.c: Likewise.
59195         * lib/stpncpy.c: Likewise.
59196         * lib/strchrnul.c: Likewise.
59197         * lib/strcspn.c: Likewise.
59198         * lib/strerror.c: Likewise.
59199         * lib/strftime.c: Likewise.
59200         * lib/strftime.h: Likewise.
59201         * lib/striconveh.c: Likewise.
59202         * lib/striconveh.h: Likewise.
59203         * lib/striconveha.c: Likewise.
59204         * lib/striconveha.h: Likewise.
59205         * lib/stripslash.c: Likewise.
59206         * lib/strnlen1.c: Likewise.
59207         * lib/strnlen1.h: Likewise.
59208         * lib/strtod.c: Likewise.
59209         * lib/strtoimax.c: Likewise.
59210         * lib/strtok_r.c: Likewise.
59211         * lib/strtol.c: Likewise.
59212         * lib/strtoll.c: Likewise.
59213         * lib/strtoul.c: Likewise.
59214         * lib/strtoull.c: Likewise.
59215         * lib/sysexits.in.h: Likewise.
59216         * lib/tempname.c: Likewise.
59217         * lib/tempname.h: Likewise.
59218         * lib/timespec.h: Likewise.
59219         * lib/tls.c: Likewise.
59220         * lib/tls.h: Likewise.
59221         * lib/tmpdir.c: Likewise.
59222         * lib/tmpdir.h: Likewise.
59223         * lib/tmpfile-safer.c: Likewise.
59224         * lib/tmpfile.c: Likewise.
59225         * lib/trigl.c: Likewise.
59226         * lib/trigl.h: Likewise.
59227         * lib/trim.c: Likewise.
59228         * lib/trim.h: Likewise.
59229         * lib/trunc.c: Likewise.
59230         * lib/truncf.c: Likewise.
59231         * lib/truncl.c: Likewise.
59232         * lib/tsearch.c: Likewise.
59233         * lib/unicodeio.c: Likewise.
59234         * lib/unicodeio.h: Likewise.
59235         * lib/unistd--.h: Likewise.
59236         * lib/unistd-safer.h: Likewise.
59237         * lib/unistdio/ulc-fprintf.c: Likewise.
59238         * lib/unistdio/ulc-vfprintf.c: Likewise.
59239         * lib/unlinkdir.c: Likewise.
59240         * lib/unlinkdir.h: Likewise.
59241         * lib/unlocked-io.h: Likewise.
59242         * lib/unsetenv.c: Likewise.
59243         * lib/userspec.c: Likewise.
59244         * lib/utime.c: Likewise.
59245         * lib/utimecmp.c: Likewise.
59246         * lib/utimecmp.h: Likewise.
59247         * lib/utimens.c: Likewise.
59248         * lib/verify.h: Likewise.
59249         * lib/verror.c: Likewise.
59250         * lib/verror.h: Likewise.
59251         * lib/version-etc-fsf.c: Likewise.
59252         * lib/version-etc.c: Likewise.
59253         * lib/version-etc.h: Likewise.
59254         * lib/vfprintf.c: Likewise.
59255         * lib/vprintf.c: Likewise.
59256         * lib/vsprintf.c: Likewise.
59257         * lib/w32spawn.h: Likewise.
59258         * lib/wait-process.c: Likewise.
59259         * lib/wait-process.h: Likewise.
59260         * lib/wcwidth.c: Likewise.
59261         * lib/write-any-file.c: Likewise.
59262         * lib/xalloc-die.c: Likewise.
59263         * lib/xalloc.h: Likewise.
59264         * lib/xasprintf.c: Likewise.
59265         * lib/xgetcwd.c: Likewise.
59266         * lib/xgetcwd.h: Likewise.
59267         * lib/xgetdomainname.c: Likewise.
59268         * lib/xgetdomainname.h: Likewise.
59269         * lib/xgethostname.c: Likewise.
59270         * lib/xmalloc.c: Likewise.
59271         * lib/xmalloca.c: Likewise.
59272         * lib/xmalloca.h: Likewise.
59273         * lib/xmemcoll.c: Likewise.
59274         * lib/xnanosleep.c: Likewise.
59275         * lib/xreadlink.c: Likewise.
59276         * lib/xreadlink.h: Likewise.
59277         * lib/xsetenv.c: Likewise.
59278         * lib/xsetenv.h: Likewise.
59279         * lib/xstriconv.c: Likewise.
59280         * lib/xstriconv.h: Likewise.
59281         * lib/xstrndup.c: Likewise.
59282         * lib/xstrndup.h: Likewise.
59283         * lib/xstrtod.c: Likewise.
59284         * lib/xstrtod.h: Likewise.
59285         * lib/xstrtol-error.c: Likewise.
59286         * lib/xstrtol.c: Likewise.
59287         * lib/xstrtol.h: Likewise.
59288         * lib/xtime.h: Likewise.
59289         * lib/xvasprintf.c: Likewise.
59290         * lib/xvasprintf.h: Likewise.
59291         * lib/yesno.c: Likewise.
59292         * lib/yesno.h: Likewise.
59293         * posix-modules: Likewise.
59294         * tests/test-alloca-opt.c: Likewise.
59295         * tests/test-arcfour.c: Likewise.
59296         * tests/test-arctwo.c: Likewise.
59297         * tests/test-argmatch.c: Likewise.
59298         * tests/test-argp-2.sh: Likewise.
59299         * tests/test-argp.c: Likewise.
59300         * tests/test-arpa_inet.c: Likewise.
59301         * tests/test-array_list.c: Likewise.
59302         * tests/test-array_oset.c: Likewise.
59303         * tests/test-atexit.c: Likewise.
59304         * tests/test-avltree_list.c: Likewise.
59305         * tests/test-avltree_oset.c: Likewise.
59306         * tests/test-avltreehash_list.c: Likewise.
59307         * tests/test-base64.c: Likewise.
59308         * tests/test-binary-io.c: Likewise.
59309         * tests/test-byteswap.c: Likewise.
59310         * tests/test-c-ctype.c: Likewise.
59311         * tests/test-c-strcasecmp.c: Likewise.
59312         * tests/test-c-strcasestr.c: Likewise.
59313         * tests/test-c-strncasecmp.c: Likewise.
59314         * tests/test-c-strstr.c: Likewise.
59315         * tests/test-canonicalize-lgpl.c: Likewise.
59316         * tests/test-canonicalize.c: Likewise.
59317         * tests/test-carray_list.c: Likewise.
59318         * tests/test-ceilf.c: Likewise.
59319         * tests/test-ceill.c: Likewise.
59320         * tests/test-count-one-bits.c: Likewise.
59321         * tests/test-crc.c: Likewise.
59322         * tests/test-dirname.c: Likewise.
59323         * tests/test-fbufmode.c: Likewise.
59324         * tests/test-fcntl.c: Likewise.
59325         * tests/test-fflush.c: Likewise.
59326         * tests/test-floorf.c: Likewise.
59327         * tests/test-floorl.c: Likewise.
59328         * tests/test-fopen.c: Likewise.
59329         * tests/test-fprintf-posix.c: Likewise.
59330         * tests/test-fprintf-posix.h: Likewise.
59331         * tests/test-fpurge.c: Likewise.
59332         * tests/test-freadable.c: Likewise.
59333         * tests/test-freadahead.c: Likewise.
59334         * tests/test-freading.c: Likewise.
59335         * tests/test-freopen.c: Likewise.
59336         * tests/test-frexp.c: Likewise.
59337         * tests/test-frexpl.c: Likewise.
59338         * tests/test-fseek.c: Likewise.
59339         * tests/test-fseeko.c: Likewise.
59340         * tests/test-fseterr.c: Likewise.
59341         * tests/test-fstrcmp.c: Likewise.
59342         * tests/test-ftell.c: Likewise.
59343         * tests/test-ftello.c: Likewise.
59344         * tests/test-fwritable.c: Likewise.
59345         * tests/test-fwriting.c: Likewise.
59346         * tests/test-getaddrinfo.c: Likewise.
59347         * tests/test-getpass.c: Likewise.
59348         * tests/test-gettimeofday.c: Likewise.
59349         * tests/test-hmac-md5.c: Likewise.
59350         * tests/test-hmac-sha1.c: Likewise.
59351         * tests/test-iconv.c: Likewise.
59352         * tests/test-iconvme.c: Likewise.
59353         * tests/test-inttypes.c: Likewise.
59354         * tests/test-isnan.c: Likewise.
59355         * tests/test-isnanf.c: Likewise.
59356         * tests/test-isnanl-nolibm.c: Likewise.
59357         * tests/test-isnanl.c: Likewise.
59358         * tests/test-isnanl.h: Likewise.
59359         * tests/test-ldexpl.c: Likewise.
59360         * tests/test-linked_list.c: Likewise.
59361         * tests/test-linkedhash_list.c: Likewise.
59362         * tests/test-locale.c: Likewise.
59363         * tests/test-localename.c: Likewise.
59364         * tests/test-lock.c: Likewise.
59365         * tests/test-lseek.c: Likewise.
59366         * tests/test-malloca.c: Likewise.
59367         * tests/test-math.c: Likewise.
59368         * tests/test-mbscasecmp.c: Likewise.
59369         * tests/test-mbscasestr1.c: Likewise.
59370         * tests/test-mbscasestr2.c: Likewise.
59371         * tests/test-mbscasestr3.c: Likewise.
59372         * tests/test-mbscasestr4.c: Likewise.
59373         * tests/test-mbschr.c: Likewise.
59374         * tests/test-mbscspn.c: Likewise.
59375         * tests/test-mbsncasecmp.c: Likewise.
59376         * tests/test-mbspbrk.c: Likewise.
59377         * tests/test-mbspcasecmp.c: Likewise.
59378         * tests/test-mbsrchr.c: Likewise.
59379         * tests/test-mbsspn.c: Likewise.
59380         * tests/test-mbsstr1.c: Likewise.
59381         * tests/test-mbsstr2.c: Likewise.
59382         * tests/test-mbsstr3.c: Likewise.
59383         * tests/test-md5.c: Likewise.
59384         * tests/test-memmem.c: Likewise.
59385         * tests/test-netinet_in.c: Likewise.
59386         * tests/test-open.c: Likewise.
59387         * tests/test-printf-frexp.c: Likewise.
59388         * tests/test-printf-frexpl.c: Likewise.
59389         * tests/test-printf-posix.c: Likewise.
59390         * tests/test-printf-posix.h: Likewise.
59391         * tests/test-rbtree_list.c: Likewise.
59392         * tests/test-rbtree_oset.c: Likewise.
59393         * tests/test-rbtreehash_list.c: Likewise.
59394         * tests/test-read-file.c: Likewise.
59395         * tests/test-rijndael.c: Likewise.
59396         * tests/test-search.c: Likewise.
59397         * tests/test-signbit.c: Likewise.
59398         * tests/test-sleep.c: Likewise.
59399         * tests/test-snprintf-posix.c: Likewise.
59400         * tests/test-snprintf-posix.h: Likewise.
59401         * tests/test-snprintf.c: Likewise.
59402         * tests/test-sprintf-posix.c: Likewise.
59403         * tests/test-sprintf-posix.h: Likewise.
59404         * tests/test-stat-time.c: Likewise.
59405         * tests/test-stdbool.c: Likewise.
59406         * tests/test-stdint.c: Likewise.
59407         * tests/test-stdio.c: Likewise.
59408         * tests/test-stdlib.c: Likewise.
59409         * tests/test-stpncpy.c: Likewise.
59410         * tests/test-strcasestr.c: Likewise.
59411         * tests/test-striconv.c: Likewise.
59412         * tests/test-striconveh.c: Likewise.
59413         * tests/test-striconveha.c: Likewise.
59414         * tests/test-string.c: Likewise.
59415         * tests/test-sys_select.c: Likewise.
59416         * tests/test-sys_socket.c: Likewise.
59417         * tests/test-sys_stat.c: Likewise.
59418         * tests/test-sys_time.c: Likewise.
59419         * tests/test-sysexits.c: Likewise.
59420         * tests/test-time.c: Likewise.
59421         * tests/test-tls.c: Likewise.
59422         * tests/test-trunc.c: Likewise.
59423         * tests/test-truncf.c: Likewise.
59424         * tests/test-truncl.c: Likewise.
59425         * tests/test-unistd.c: Likewise.
59426         * tests/test-vasnprintf-posix.c: Likewise.
59427         * tests/test-vasnprintf-posix2.c: Likewise.
59428         * tests/test-vasnprintf.c: Likewise.
59429         * tests/test-vasprintf-posix.c: Likewise.
59430         * tests/test-vasprintf.c: Likewise.
59431         * tests/test-verify.c: Likewise.
59432         * tests/test-vfprintf-posix.c: Likewise.
59433         * tests/test-vprintf-posix.c: Likewise.
59434         * tests/test-vsnprintf-posix.c: Likewise.
59435         * tests/test-vsnprintf.c: Likewise.
59436         * tests/test-vsprintf-posix.c: Likewise.
59437         * tests/test-wchar.c: Likewise.
59438         * tests/test-wctype.c: Likewise.
59439         * tests/test-wcwidth.c: Likewise.
59440         * tests/test-xstrtol.c: Likewise.
59441         * tests/test-xvasprintf.c: Likewise.
59442         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59443         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59444         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59445         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59446         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59447         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59448         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59449         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59450         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59451         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59452         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59453         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59454         * tests/uniname/test-uninames.c: Likewise.
59455         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59456         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
59457         * tests/unistdio/test-u16-printf1.h: Likewise.
59458         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59459         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59460         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59461         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59462         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59463         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59464         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59465         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
59466         * tests/unistdio/test-u32-printf1.h: Likewise.
59467         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59468         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59469         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59470         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59471         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59472         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59473         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59474         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
59475         * tests/unistdio/test-u8-printf1.h: Likewise.
59476         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59477         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59478         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59479         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59480         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59481         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59482         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59483         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
59484         * tests/unistdio/test-ulc-printf1.h: Likewise.
59485         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59486         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59487         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59488         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59489         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59490         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59491         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59492         * tests/uniwidth/test-u16-width.c: Likewise.
59493         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59494         * tests/uniwidth/test-u32-width.c: Likewise.
59495         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59496         * tests/uniwidth/test-u8-width.c: Likewise.
59497         * tests/uniwidth/test-uc_width.c: Likewise.
59498         * config/srclist-update: Likewise.
59499         (fixlicense): Update to GPLv3+.
59500
59501         Change copyright notice from LGPLv2.1+ to LGPLv3+.
59502         * tests/test-tsearch.c: Change copyright notice.
59503
59504         Change copyright notice from LGPLv2.0+ to LGPLv3+.
59505         * lib/c-strcaseeq.h: Change copyright notice.
59506         * lib/streq.h: Likewise.
59507         * lib/uniconv.h: Likewise.
59508         * lib/uniconv/u-conv-from-enc.h: Likewise.
59509         * lib/uniconv/u-conv-to-enc.h: Likewise.
59510         * lib/uniconv/u-strconv-from-enc.h: Likewise.
59511         * lib/uniconv/u-strconv-to-enc.h: Likewise.
59512         * lib/uniconv/u16-conv-from-enc.c: Likewise.
59513         * lib/uniconv/u16-conv-to-enc.c: Likewise.
59514         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
59515         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
59516         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
59517         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
59518         * lib/uniconv/u32-conv-from-enc.c: Likewise.
59519         * lib/uniconv/u32-conv-to-enc.c: Likewise.
59520         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
59521         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
59522         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
59523         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
59524         * lib/uniconv/u8-conv-from-enc.c: Likewise.
59525         * lib/uniconv/u8-conv-to-enc.c: Likewise.
59526         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
59527         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
59528         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
59529         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
59530         * lib/uniname.h: Likewise.
59531         * lib/uniname/uniname.c: Likewise.
59532         * lib/unistdio.h: Likewise.
59533         * lib/unistdio/u-asnprintf.h: Likewise.
59534         * lib/unistdio/u-asprintf.h: Likewise.
59535         * lib/unistdio/u-printf-args.c: Likewise.
59536         * lib/unistdio/u-printf-args.h: Likewise.
59537         * lib/unistdio/u-printf-parse.h: Likewise.
59538         * lib/unistdio/u-snprintf.h: Likewise.
59539         * lib/unistdio/u-sprintf.h: Likewise.
59540         * lib/unistdio/u-vasprintf.h: Likewise.
59541         * lib/unistdio/u-vsnprintf.h: Likewise.
59542         * lib/unistdio/u-vsprintf.h: Likewise.
59543         * lib/unistdio/u16-asnprintf.c: Likewise.
59544         * lib/unistdio/u16-asprintf.c: Likewise.
59545         * lib/unistdio/u16-printf-parse.c: Likewise.
59546         * lib/unistdio/u16-snprintf.c: Likewise.
59547         * lib/unistdio/u16-sprintf.c: Likewise.
59548         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
59549         * lib/unistdio/u16-u16-asprintf.c: Likewise.
59550         * lib/unistdio/u16-u16-snprintf.c: Likewise.
59551         * lib/unistdio/u16-u16-sprintf.c: Likewise.
59552         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
59553         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
59554         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
59555         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
59556         * lib/unistdio/u16-vasnprintf.c: Likewise.
59557         * lib/unistdio/u16-vasprintf.c: Likewise.
59558         * lib/unistdio/u16-vsnprintf.c: Likewise.
59559         * lib/unistdio/u16-vsprintf.c: Likewise.
59560         * lib/unistdio/u32-asnprintf.c: Likewise.
59561         * lib/unistdio/u32-asprintf.c: Likewise.
59562         * lib/unistdio/u32-printf-parse.c: Likewise.
59563         * lib/unistdio/u32-snprintf.c: Likewise.
59564         * lib/unistdio/u32-sprintf.c: Likewise.
59565         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
59566         * lib/unistdio/u32-u32-asprintf.c: Likewise.
59567         * lib/unistdio/u32-u32-snprintf.c: Likewise.
59568         * lib/unistdio/u32-u32-sprintf.c: Likewise.
59569         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
59570         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
59571         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
59572         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
59573         * lib/unistdio/u32-vasnprintf.c: Likewise.
59574         * lib/unistdio/u32-vasprintf.c: Likewise.
59575         * lib/unistdio/u32-vsnprintf.c: Likewise.
59576         * lib/unistdio/u32-vsprintf.c: Likewise.
59577         * lib/unistdio/u8-asnprintf.c: Likewise.
59578         * lib/unistdio/u8-asprintf.c: Likewise.
59579         * lib/unistdio/u8-printf-parse.c: Likewise.
59580         * lib/unistdio/u8-snprintf.c: Likewise.
59581         * lib/unistdio/u8-sprintf.c: Likewise.
59582         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
59583         * lib/unistdio/u8-u8-asprintf.c: Likewise.
59584         * lib/unistdio/u8-u8-snprintf.c: Likewise.
59585         * lib/unistdio/u8-u8-sprintf.c: Likewise.
59586         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
59587         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
59588         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
59589         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
59590         * lib/unistdio/u8-vasnprintf.c: Likewise.
59591         * lib/unistdio/u8-vasprintf.c: Likewise.
59592         * lib/unistdio/u8-vsnprintf.c: Likewise.
59593         * lib/unistdio/u8-vsprintf.c: Likewise.
59594         * lib/unistdio/ulc-asnprintf.c: Likewise.
59595         * lib/unistdio/ulc-asprintf.c: Likewise.
59596         * lib/unistdio/ulc-printf-parse.c: Likewise.
59597         * lib/unistdio/ulc-snprintf.c: Likewise.
59598         * lib/unistdio/ulc-sprintf.c: Likewise.
59599         * lib/unistdio/ulc-vasnprintf.c: Likewise.
59600         * lib/unistdio/ulc-vasprintf.c: Likewise.
59601         * lib/unistdio/ulc-vsnprintf.c: Likewise.
59602         * lib/unistdio/ulc-vsprintf.c: Likewise.
59603         * lib/unistr.h: Likewise.
59604         * lib/unistr/u-cpy-alloc.h: Likewise.
59605         * lib/unistr/u-cpy.h: Likewise.
59606         * lib/unistr/u-endswith.h: Likewise.
59607         * lib/unistr/u-move.h: Likewise.
59608         * lib/unistr/u-set.h: Likewise.
59609         * lib/unistr/u-startswith.h: Likewise.
59610         * lib/unistr/u-stpcpy.h: Likewise.
59611         * lib/unistr/u-stpncpy.h: Likewise.
59612         * lib/unistr/u-strcat.h: Likewise.
59613         * lib/unistr/u-strcpy.h: Likewise.
59614         * lib/unistr/u-strcspn.h: Likewise.
59615         * lib/unistr/u-strdup.h: Likewise.
59616         * lib/unistr/u-strlen.h: Likewise.
59617         * lib/unistr/u-strncat.h: Likewise.
59618         * lib/unistr/u-strncpy.h: Likewise.
59619         * lib/unistr/u-strnlen.h: Likewise.
59620         * lib/unistr/u-strpbrk.h: Likewise.
59621         * lib/unistr/u-strspn.h: Likewise.
59622         * lib/unistr/u-strstr.h: Likewise.
59623         * lib/unistr/u-strtok.h: Likewise.
59624         * lib/unistr/u16-check.c: Likewise.
59625         * lib/unistr/u16-chr.c: Likewise.
59626         * lib/unistr/u16-cmp.c: Likewise.
59627         * lib/unistr/u16-cpy-alloc.c: Likewise.
59628         * lib/unistr/u16-cpy.c: Likewise.
59629         * lib/unistr/u16-endswith.c: Likewise.
59630         * lib/unistr/u16-mblen.c: Likewise.
59631         * lib/unistr/u16-mbsnlen.c: Likewise.
59632         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59633         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59634         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59635         * lib/unistr/u16-mbtouc.c: Likewise.
59636         * lib/unistr/u16-mbtoucr.c: Likewise.
59637         * lib/unistr/u16-move.c: Likewise.
59638         * lib/unistr/u16-next.c: Likewise.
59639         * lib/unistr/u16-prev.c: Likewise.
59640         * lib/unistr/u16-set.c: Likewise.
59641         * lib/unistr/u16-startswith.c: Likewise.
59642         * lib/unistr/u16-stpcpy.c: Likewise.
59643         * lib/unistr/u16-stpncpy.c: Likewise.
59644         * lib/unistr/u16-strcat.c: Likewise.
59645         * lib/unistr/u16-strchr.c: Likewise.
59646         * lib/unistr/u16-strcmp.c: Likewise.
59647         * lib/unistr/u16-strcpy.c: Likewise.
59648         * lib/unistr/u16-strcspn.c: Likewise.
59649         * lib/unistr/u16-strdup.c: Likewise.
59650         * lib/unistr/u16-strlen.c: Likewise.
59651         * lib/unistr/u16-strmblen.c: Likewise.
59652         * lib/unistr/u16-strmbtouc.c: Likewise.
59653         * lib/unistr/u16-strncat.c: Likewise.
59654         * lib/unistr/u16-strncmp.c: Likewise.
59655         * lib/unistr/u16-strncpy.c: Likewise.
59656         * lib/unistr/u16-strnlen.c: Likewise.
59657         * lib/unistr/u16-strpbrk.c: Likewise.
59658         * lib/unistr/u16-strrchr.c: Likewise.
59659         * lib/unistr/u16-strspn.c: Likewise.
59660         * lib/unistr/u16-strstr.c: Likewise.
59661         * lib/unistr/u16-strtok.c: Likewise.
59662         * lib/unistr/u16-to-u32.c: Likewise.
59663         * lib/unistr/u16-to-u8.c: Likewise.
59664         * lib/unistr/u16-uctomb-aux.c: Likewise.
59665         * lib/unistr/u16-uctomb.c: Likewise.
59666         * lib/unistr/u32-check.c: Likewise.
59667         * lib/unistr/u32-chr.c: Likewise.
59668         * lib/unistr/u32-cmp.c: Likewise.
59669         * lib/unistr/u32-cpy-alloc.c: Likewise.
59670         * lib/unistr/u32-cpy.c: Likewise.
59671         * lib/unistr/u32-endswith.c: Likewise.
59672         * lib/unistr/u32-mblen.c: Likewise.
59673         * lib/unistr/u32-mbsnlen.c: Likewise.
59674         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59675         * lib/unistr/u32-mbtouc.c: Likewise.
59676         * lib/unistr/u32-mbtoucr.c: Likewise.
59677         * lib/unistr/u32-move.c: Likewise.
59678         * lib/unistr/u32-next.c: Likewise.
59679         * lib/unistr/u32-prev.c: Likewise.
59680         * lib/unistr/u32-set.c: Likewise.
59681         * lib/unistr/u32-startswith.c: Likewise.
59682         * lib/unistr/u32-stpcpy.c: Likewise.
59683         * lib/unistr/u32-stpncpy.c: Likewise.
59684         * lib/unistr/u32-strcat.c: Likewise.
59685         * lib/unistr/u32-strchr.c: Likewise.
59686         * lib/unistr/u32-strcmp.c: Likewise.
59687         * lib/unistr/u32-strcpy.c: Likewise.
59688         * lib/unistr/u32-strcspn.c: Likewise.
59689         * lib/unistr/u32-strdup.c: Likewise.
59690         * lib/unistr/u32-strlen.c: Likewise.
59691         * lib/unistr/u32-strmblen.c: Likewise.
59692         * lib/unistr/u32-strmbtouc.c: Likewise.
59693         * lib/unistr/u32-strncat.c: Likewise.
59694         * lib/unistr/u32-strncmp.c: Likewise.
59695         * lib/unistr/u32-strncpy.c: Likewise.
59696         * lib/unistr/u32-strnlen.c: Likewise.
59697         * lib/unistr/u32-strpbrk.c: Likewise.
59698         * lib/unistr/u32-strrchr.c: Likewise.
59699         * lib/unistr/u32-strspn.c: Likewise.
59700         * lib/unistr/u32-strstr.c: Likewise.
59701         * lib/unistr/u32-strtok.c: Likewise.
59702         * lib/unistr/u32-to-u16.c: Likewise.
59703         * lib/unistr/u32-to-u8.c: Likewise.
59704         * lib/unistr/u32-uctomb.c: Likewise.
59705         * lib/unistr/u8-check.c: Likewise.
59706         * lib/unistr/u8-chr.c: Likewise.
59707         * lib/unistr/u8-cmp.c: Likewise.
59708         * lib/unistr/u8-cpy-alloc.c: Likewise.
59709         * lib/unistr/u8-cpy.c: Likewise.
59710         * lib/unistr/u8-endswith.c: Likewise.
59711         * lib/unistr/u8-mblen.c: Likewise.
59712         * lib/unistr/u8-mbsnlen.c: Likewise.
59713         * lib/unistr/u8-mbtouc-aux.c: Likewise.
59714         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59715         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59716         * lib/unistr/u8-mbtouc.c: Likewise.
59717         * lib/unistr/u8-mbtoucr.c: Likewise.
59718         * lib/unistr/u8-move.c: Likewise.
59719         * lib/unistr/u8-next.c: Likewise.
59720         * lib/unistr/u8-prev.c: Likewise.
59721         * lib/unistr/u8-set.c: Likewise.
59722         * lib/unistr/u8-startswith.c: Likewise.
59723         * lib/unistr/u8-stpcpy.c: Likewise.
59724         * lib/unistr/u8-stpncpy.c: Likewise.
59725         * lib/unistr/u8-strcat.c: Likewise.
59726         * lib/unistr/u8-strchr.c: Likewise.
59727         * lib/unistr/u8-strcmp.c: Likewise.
59728         * lib/unistr/u8-strcpy.c: Likewise.
59729         * lib/unistr/u8-strcspn.c: Likewise.
59730         * lib/unistr/u8-strdup.c: Likewise.
59731         * lib/unistr/u8-strlen.c: Likewise.
59732         * lib/unistr/u8-strmblen.c: Likewise.
59733         * lib/unistr/u8-strmbtouc.c: Likewise.
59734         * lib/unistr/u8-strncat.c: Likewise.
59735         * lib/unistr/u8-strncmp.c: Likewise.
59736         * lib/unistr/u8-strncpy.c: Likewise.
59737         * lib/unistr/u8-strnlen.c: Likewise.
59738         * lib/unistr/u8-strpbrk.c: Likewise.
59739         * lib/unistr/u8-strrchr.c: Likewise.
59740         * lib/unistr/u8-strspn.c: Likewise.
59741         * lib/unistr/u8-strstr.c: Likewise.
59742         * lib/unistr/u8-strtok.c: Likewise.
59743         * lib/unistr/u8-to-u16.c: Likewise.
59744         * lib/unistr/u8-to-u32.c: Likewise.
59745         * lib/unistr/u8-uctomb-aux.c: Likewise.
59746         * lib/unistr/u8-uctomb.c: Likewise.
59747         * lib/unitypes.h: Likewise.
59748         * lib/uniwidth.h: Likewise.
59749         * lib/uniwidth/cjk.h: Likewise.
59750         * lib/uniwidth/u16-strwidth.c: Likewise.
59751         * lib/uniwidth/u16-width.c: Likewise.
59752         * lib/uniwidth/u32-strwidth.c: Likewise.
59753         * lib/uniwidth/u32-width.c: Likewise.
59754         * lib/uniwidth/u8-strwidth.c: Likewise.
59755         * lib/uniwidth/u8-width.c: Likewise.
59756         * lib/uniwidth/width.c: Likewise.
59757
59758 2007-10-07  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
59761         The file is still under LGPL (see modules/inttypes).
59762
59763 2007-10-06  Bruno Haible  <bruno@clisp.org>
59764
59765         * modules/trunc (Dependencies): Add 'extensions'.
59766         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
59767         Reported by Ben Pfaff <blp@gnu.org>.
59768
59769 2007-10-06  Bruno Haible  <bruno@clisp.org>
59770
59771         * modules/freopen-tests: New file.
59772         * tests/test-freopen.c: New file.
59773
59774         * modules/fopen-tests: New file.
59775         * tests/test-fopen.c: New file.
59776
59777         * modules/fopen: New file.
59778         * lib/fopen.c: New file.
59779         * m4/fopen.m4: New file.
59780         * modules/freopen: New file.
59781         * lib/freopen.c: New file.
59782         * m4/freopen.m4: New file.
59783         * lib/stdio.in.h (fopen, freopen): New declarations.
59784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
59785         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59786         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
59787         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59788         * doc/functions/fopen.texi: Mention the 'fopen' module.
59789         * doc/functions/freopen.texi: Mention the 'freopen' module.
59790
59791 2007-10-06  Bruno Haible  <bruno@clisp.org>
59792
59793         * modules/open-tests: New file.
59794         * tests/test-open.c: New file.
59795
59796         * modules/open: New file.
59797         * lib/open.c: New file.
59798         * m4/open.m4: New file.
59799         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
59800         lib/open.c does.
59801         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
59802         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
59803         macros.
59804         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
59805         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59806         REPLACE_OPEN.
59807         * doc/functions/open.texi: Mention the 'open' module.
59808
59809 2007-10-04  Bruno Haible  <bruno@clisp.org>
59810
59811         * modules/ceill-tests: New file.
59812         * tests/test-ceill.c: New file.
59813
59814         * modules/ceill: New file.
59815         * lib/ceill.c: Replace entire file.
59816         * m4/ceill.m4: New file.
59817         * lib/math.in.h (ceill): Replace declaration.
59818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59819         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59820         * doc/functions/ceill.texi: Mention the 'ceill' module.
59821         * modules/mathl (Files): Remove lib/ceill.c.
59822         (Depends-on): Add ceill.
59823
59824 2007-10-04  Bruno Haible  <bruno@clisp.org>
59825
59826         * modules/ceilf-tests: New file.
59827         * tests/test-ceilf.c: New file.
59828
59829         * modules/ceilf: New file.
59830         * lib/ceil.c: New file.
59831         * lib/ceilf.c: New file.
59832         * m4/ceilf.m4: New file.
59833         * lib/math.in.h (ceilf): New declaration.
59834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59835         HAVE_DECL_CEILF.
59836         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59837         HAVE_DECL_CEILF.
59838         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59839
59840 2007-10-04  Bruno Haible  <bruno@clisp.org>
59841
59842         * modules/floorl-tests: New file.
59843         * tests/test-floorl.c: New file.
59844
59845         * modules/floorl: New file.
59846         * lib/floorl.c: Replace entire file.
59847         * m4/floorl.m4: New file.
59848         * lib/math.in.h (floorl): Replace declaration.
59849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59850         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59851         * doc/functions/floorl.texi: Mention the 'floorl' module.
59852         * modules/mathl (Files): Remove lib/floorl.c.
59853         (Depends-on): Add floorl.
59854
59855 2007-10-04  Bruno Haible  <bruno@clisp.org>
59856
59857         * modules/floorf-tests: New file.
59858         * tests/test-floorf.c: New file.
59859
59860         * modules/floorf: New file.
59861         * lib/floor.c: New file.
59862         * lib/floorf.c: New file.
59863         * m4/floorf.m4: New file.
59864         * lib/math.in.h (floorf): New declaration.
59865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59866         HAVE_DECL_FLOORF.
59867         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59868         HAVE_DECL_FLOORF.
59869         * doc/functions/floorf.texi: Mention the 'floorf' module.
59870
59871 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59872             Bruno Haible  <bruno@clisp.org>
59873
59874         Advertise for the Git server instead of the CVS server.
59875         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59876         repository instead of the CVS one.
59877         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59878         about all VCS systems generically.
59879         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59880
59881 2007-10-04  Bruno Haible  <bruno@clisp.org>
59882
59883         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59884         means.
59885         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59886
59887 2007-10-04  Bruno Haible  <bruno@clisp.org>
59888
59889         * modules/truncl-tests: New file.
59890         * tests/test-truncl.c: New file.
59891
59892         * modules/truncl: New file.
59893         * lib/truncl.c: New file.
59894         * m4/truncl.m4: New file.
59895         * lib/math.in.h (truncl): New declaration.
59896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59897         HAVE_DECL_TRUNCL.
59898         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59899         HAVE_DECL_TRUNCL.
59900         * doc/functions/truncl.texi: Mention the 'truncl' module.
59901
59902 2007-10-04  Bruno Haible  <bruno@clisp.org>
59903
59904         * modules/truncf-tests: New file.
59905         * tests/test-truncf.c: New file.
59906
59907         * modules/truncf: New file.
59908         * lib/trunc.c: Make paramerizable through USE_* macros.
59909         * lib/truncf.c: New file.
59910         * m4/truncf.m4: New file.
59911         * lib/math.in.h (truncf): New declaration.
59912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59913         HAVE_DECL_TRUNCF.
59914         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59915         HAVE_DECL_TRUNCF.
59916         * doc/functions/truncf.texi: Mention the 'truncf' module.
59917
59918 2007-10-03  Bruno Haible  <bruno@clisp.org>
59919
59920         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59921         augmentation also for tests modules.
59922         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59923         * modules/atexit-tests (Makefile.am): Likewise.
59924         * modules/binary-io-tests (Makefile.am): Likewise.
59925         * modules/c-strcase-tests (Makefile.am): Likewise.
59926         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59927         * modules/canonicalize-tests (Makefile.am): Likewise.
59928         * modules/closein-tests (Makefile.am): Likewise.
59929         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59930         * modules/freadahead-tests (Makefile.am): Likewise.
59931         * modules/fseek-tests (Makefile.am): Likewise.
59932         * modules/fseeko-tests (Makefile.am): Likewise.
59933         * modules/ftell-tests (Makefile.am): Likewise.
59934         * modules/ftello-tests (Makefile.am): Likewise.
59935         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59936         * modules/isnanl-tests (Makefile.am): Likewise.
59937         * modules/lseek-tests (Makefile.am): Likewise.
59938         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59939         * modules/mbscasestr-tests (Makefile.am): Likewise.
59940         * modules/mbschr-tests (Makefile.am): Likewise.
59941         * modules/mbscspn-tests (Makefile.am): Likewise.
59942         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59943         * modules/mbspbrk-tests (Makefile.am): Likewise.
59944         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59945         * modules/mbsrchr-tests (Makefile.am): Likewise.
59946         * modules/mbsspn-tests (Makefile.am): Likewise.
59947         * modules/mbsstr-tests (Makefile.am): Likewise.
59948         * modules/printf-posix-tests (Makefile.am): Likewise.
59949         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59950         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59951         * modules/tsearch-tests (Makefile.am): Likewise.
59952         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59953         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59954         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59955         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59956         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59957         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59958         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59959         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59960         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59961         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59962         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59963         * modules/xstrtol-tests (Makefile.am): Likewise.
59964         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59965         * modules/yesno-tests (Makefile.am): Likewise.
59966
59967 2007-10-03  Bruno Haible  <bruno@clisp.org>
59968
59969         * modules/trunc-tests: New file.
59970         * tests/test-trunc.c: New file.
59971
59972         * modules/trunc: New file.
59973         * lib/trunc.c: New file.
59974         * m4/trunc.m4: New file.
59975         * lib/math.in.h (trunc): New declaration.
59976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59977         HAVE_DECL_TRUNC.
59978         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59979         HAVE_DECL_TRUNC.
59980         * doc/functions/trunc.texi: Mention the 'trunc' module.
59981
59982 2007-10-03  Bruno Haible  <bruno@clisp.org>
59983
59984         * tests/test-fpending.c: New file, mostly copied
59985         from coreutils/lib/t-fpending.c.
59986         * modules/fpending-tests: New file.
59987
59988 2007-10-03  Bruno Haible  <bruno@clisp.org>
59989
59990         Port the stdio extensions to QNX (untested).
59991         * lib/fseterr.c (fseterr): Add support for QNX.
59992         * lib/fbufmode.c (fbufmode): Likewise.
59993         * lib/freadable.c (freadable): Likewise.
59994         * lib/fwritable.c (fwritable): Likewise.
59995         * lib/freading.c (freading): Likewise.
59996         * lib/fwriting.c (fwriting): Likewise.
59997         * lib/freadahead.c (freadahed): Likewise.
59998         * lib/fpurge.c (fpurge): Likewise.
59999         * lib/fseeko.c (rpl_fseeko): Likewise.
60000
60001 2007-10-03  Bruno Haible  <bruno@clisp.org>
60002             Jim Meyering  <jim@meyering.net>
60003             Eric Blake  <ebb9@byu.net>
60004
60005         * doc/relocatable.texi: Use @command instead of @program.
60006
60007 2007-10-02  Jim Meyering  <jim@meyering.net>
60008
60009         Perform one more "_.h" -> ".in.h" substitution.
60010         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
60011         instead of unistd_.h here, too.
60012
60013 2007-10-01  Bruno Haible  <bruno@clisp.org>
60014
60015         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
60016         Needed for the alloca-opt module.
60017
60018 2007-09-30  Bruno Haible  <bruno@clisp.org>
60019
60020         * lib/alloca.in.h: Renamed from lib/alloca_.h.
60021         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
60022         alloca_.h.
60023         * lib/argz.in.h: Renamed from lib/argz_.h.
60024         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
60025         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
60026         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
60027         byteswap_.h.
60028         * lib/dirent.in.h: Renamed from lib/dirent_.h.
60029         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
60030         dirent_.h.
60031         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
60032         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
60033         fcntl_.h.
60034         * lib/float.in.h: Renamed from lib/float_.h.
60035         * modules/float (Files, Makefile.am): Use float.in.h instead of
60036         float_.h.
60037         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
60038         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
60039         fnmatch_.h.
60040         * lib/getopt.in.h: Renamed from lib/getopt_.h.
60041         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
60042         getopt_.h.
60043         * lib/glob.in.h: Renamed from lib/glob_.h.
60044         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
60045         * lib/iconv.in.h: Renamed from lib/iconv_.h.
60046         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
60047         iconv_.h.
60048         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
60049         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
60050         inttypes_.h.
60051         * lib/locale.in.h: Renamed from lib/locale_.h.
60052         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
60053         locale_.h.
60054         * lib/math.in.h: Renamed from lib/math_.h.
60055         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
60056         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
60057         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
60058         of netinet_in_.h. Add dependency.
60059         * lib/poll.in.h: Renamed from lib/poll_.h.
60060         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
60061         * lib/search.in.h: Renamed from lib/search_.h.
60062         * modules/search (Files, Makefile.am): Use search.in.h instead of
60063         search_.h.
60064         * lib/signal.in.h: Renamed from lib/signal_.h.
60065         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
60066         _signal.h.
60067         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
60068         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
60069         stdbool_.h.
60070         * lib/stdint.in.h: Renamed from lib/stdint_.h.
60071         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
60072         stdint_.h.
60073         * lib/stdio.in.h: Renamed from lib/stdio_.h.
60074         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
60075         stdio_.h.
60076         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
60077         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
60078         stdlib_.h.
60079         * lib/string.in.h: Renamed from lib/string_.h.
60080         * modules/string (Files, Makefile.am): Use string.in.h instead of
60081         string_.h.
60082         * doc/gnulib-tool.texi (Initial import): Update.
60083         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
60084         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
60085         of sys_select_.h. Add dependency.
60086         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
60087         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
60088         of sys_socket_.h.
60089         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
60090         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
60091         sys_stat_.h.
60092         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
60093         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
60094         sys_time_.h.
60095         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
60096         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
60097         sysexits_.h.
60098         * lib/time.in.h: Renamed from lib/time_.h.
60099         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
60100         * lib/unistd.in.h: Renamed from lib/unistd_.h.
60101         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
60102         unistd_.h.
60103         * lib/wchar.in.h: Renamed from lib/wchar_.h.
60104         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
60105         wchar_.h.
60106         * lib/wctype.in.h: Renamed from lib/wctype_.h.
60107         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
60108         wctype_.h.
60109         * build-aux/bootstrap (slurp): Update.
60110         * lib/.cppi-disable: Update.
60111
60112 2007-09-30  Bruno Haible  <bruno@clisp.org>
60113
60114         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
60115         Needed on BeOS.
60116
60117 2007-09-30  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
60120
60121 2007-09-29  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
60124
60125 2007-09-29  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
60128         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
60129         * build-aux/install-reloc: Compile also areadlink.c.
60130         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
60131
60132 2007-09-29  Bruno Haible  <bruno@clisp.org>
60133
60134         * gnulib-tool (func_emit_initmacro_done): Indentation.
60135
60136 2007-09-29  Bruno Haible  <bruno@clisp.org>
60137
60138         * README: Add CVS checkout update instructions.
60139         Info from Bob Proulx <bob@proulx.com>.
60140
60141 2007-09-28  Eric Blake  <ebb9@byu.net>
60142
60143         Provide move-if-change.
60144         * build-aux/move-if-change: New file, based on best practice
60145         rather than any canonical upstream location.
60146
60147 2007-09-28  Jim Meyering  <jim@meyering.net>
60148
60149         Fix canonicalize loop-detection corner case.
60150         Do not attempt to stat the symlink values stored via seen_triple.
60151         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
60152         on linux-2.6.18, (but not 2.6.22).
60153         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
60154         triple_compare.  The former compares dev,ino,filename, while the latter
60155         would actually stat dirname(filename) when dev and ino were equal.
60156         * lib/hash-triple.c: Install <string.h>.
60157         (STREQ): Define.
60158         (triple_compare_ino_str): New function.
60159         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
60160
60161 2007-09-28  Eric Blake  <ebb9@byu.net>
60162
60163         Enforce that AC_REPLACE_FUNCS files exist.
60164         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
60165         override check for typos.
60166
60167         Fix test-closein on Solaris 10.
60168         * tests/test-closein.c (main): Don't assume stdin can be inherited
60169         closed on all systems.
60170         * tests/test-closein.sh: Likewise.
60171         Reported by Piotr Tarnowski.
60172
60173 2007-09-28  Jim Meyering  <jim@meyering.net>
60174
60175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
60176
60177 2007-09-27  Jim Meyering  <jim@meyering.net>
60178
60179         canonicalize: Avoid a false-positive cycle failure.
60180         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
60181         Sort.  Remove cycle-check.
60182         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
60183         not cycle-check.h.
60184         (seen_triple): New function.
60185         (canonicalize_filename_mode): Use it instead of cycle-check.
60186         * tests/test-canonicalize.c: Add a test for this bug.
60187         * tests/test-canonicalize.sh: Set up and run the test.
60188
60189         New module, file-set, from coreutils.
60190         * modules/file-set: Define it.
60191         * lib/file-set.c, lib/file-set.h: Implement.
60192
60193         New module, hash-triple, from coreutils.
60194         * modules/hash-triple: Define it.
60195         * lib/hash-triple.c, lib/hash-triple.h: Implement.
60196
60197 2007-09-25  Eric Blake  <ebb9@byu.net>
60198
60199         Fix strerror on Interix.
60200         * lib/string_.h (strerror): Declare replacement.
60201         * doc/functions/strerror.texi (strerror): Document the Interix
60202         shortcoming.
60203         * modules/string (Makefile.am): Support new hooks.
60204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
60205         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
60206         gl_FUNC_STRERROR_SEPARATE.
60207         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
60208         * lib/strerror.c (rpl_strerror): Provide replacement.
60209         * modules/strerror (Depends-on): Add string.
60210         (configure.ac): Detect use of module.
60211         * tests/test-strerror.c: New file.
60212         * modules/strerror-tests: New test module.
60213         * modules/argp (Depends-on): Add strerror.
60214         * modules/error (Depends-on): Likewise.
60215         Reported by Martin Koeppe.
60216
60217 2007-09-24  Bruno Haible  <bruno@clisp.org>
60218
60219         * README: Update git instructions.
60220
60221 2007-09-24  Eric Blake  <ebb9@byu.net>
60222
60223         Revert fpending breakage from 2007-09-08.
60224         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
60225         __fpending.c.
60226
60227 2007-09-24  Jim Meyering  <jim@meyering.net>
60228
60229         filenamecat.c: Add a test.
60230         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
60231         showing how the function works when DIR is the empty string.
60232
60233 2007-09-21  Simon Josefsson  <simon@josefsson.org>
60234
60235         * tests/test-canonicalize.sh: Turn on executable bit.
60236
60237 2007-09-19  Eric Blake  <ebb9@byu.net>
60238
60239         * README: Update CVS instructions.
60240
60241 2007-09-18  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/areadlink: New file.
60244         * lib/areadlink.h (areadlink): New declaration.
60245         * lib/areadlink.c: New file, based on lib/xreadlink.c.
60246
60247 2007-09-17  Jim Meyering  <jim@meyering.net>
60248
60249         * lib/savewd.c (ESTALE) [!defined]: Define.
60250         Reported to be required on Interix by Martin Koeppe.
60251
60252 2007-09-17  Bruno Haible  <bruno@clisp.org>
60253
60254         * gnulib-tool (func_version): Use $version.
60255
60256 2007-09-16  Bruno Haible  <bruno@clisp.org>
60257
60258         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
60259         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
60260         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
60261         Reported by Greg Schafer <gschafer@zip.com.au>.
60262
60263 2007-09-15  Bruno Haible  <bruno@clisp.org>
60264
60265         * gnulib-tool (sed): Try a little harder to make bash understand the
60266         alias.
60267         Reported by Bruce Korb <bruce.korb@gmail.com>.
60268
60269 2007-09-13  Eric Blake  <ebb9@byu.net>
60270
60271         * ChangeLog: Remove conflict markers.
60272
60273 2007-09-13  Simon Josefsson  <simon@josefsson.org>
60274
60275         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
60276         Reported by Bruno Haible <bruno@clisp.org>.
60277
60278 2007-09-12  Bruno Haible  <bruno@clisp.org>
60279
60280         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
60281         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
60282         is not defined.
60283
60284 2007-09-12  Eric Blake  <ebb9@byu.net>
60285
60286         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
60287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
60288         Autoconf definition.
60289         * modules/euidaccess (Depends-on): Add extensions, for
60290         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
60291         * modules/fnmatch (Depends-on): Likewise.
60292         * modules/getaddrinfo (Depends-on): Likewise.
60293         * modules/getdelim (Depends-on): Likewise.
60294         * modules/getline (Depends-on): Likewise.
60295         * modules/getsubopt (Depends-on): Likewise.
60296         * modules/gettext (Depends-on): Likewise.
60297         * modules/group-member (Depends-on): Likewise.
60298         * modules/mbchar (Depends-on): Likewise.
60299         * modules/memmem (Depends-on): Likewise.
60300         * modules/mempcpy (Depends-on): Likewise.
60301         * modules/memrchr (Depends-on): Likewise.
60302         * modules/pagealign_alloc (Depends-on): Likewise.
60303         * modules/readutmp (Depends-on): Likewise.
60304         * modules/stpcpy (Depends-on): Likewise.
60305         * modules/stpncpy (Depends-on): Likewise.
60306         * modules/strchrnul (Depends-on): Likewise.
60307         * modules/strndup (Depends-on): Likewise.
60308         * modules/strsep (Depends-on): Likewise.
60309         * modules/strverscmp (Depends-on): Likewise.
60310         * modules/vasprintf (Depends-on): Likewise.
60311         * modules/wcwidth (Depends-on): Likewise.
60312         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
60313         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
60314         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
60315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
60316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60318         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
60319         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60320         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
60321         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
60322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60323         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60324         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60325         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60326         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
60327         * m4/readutmp.m4 (gl_READUTMP): Likewise.
60328         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60329         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60330         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60331         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60333         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60334         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60335         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
60336         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
60337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60338         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
60339         so that lock.m4 can be used in gettext without extensions module.
60340
60341 2007-09-11  Bruno Haible  <bruno@clisp.org>
60342
60343         * m4/isc-posix.m4: Remove file.
60344         Suggested by Eric Blake.
60345
60346 2007-09-11  Eric Blake  <ebb9@byu.net>
60347
60348         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
60349
60350 2007-09-10  Bruno Haible  <bruno@clisp.org>
60351
60352         * posix-modules: Fix typo in error message.
60353         Reported by Matt <mkraai@beckman.com>.
60354
60355 2007-09-09  Bruno Haible  <bruno@clisp.org>
60356
60357         * doc/functions/getdelim.texi: Update list of platforms lacking the
60358         function.
60359         * doc/functions/getline.texi: Likewise.
60360
60361 2007-09-09  Jim Meyering  <jim@meyering.net>
60362
60363         * lib/hash.c (hash_initialize): Detect calloc failure.
60364         Reported by Bruno Haible.
60365
60366 2007-09-09  Bruno Haible  <bruno@clisp.org>
60367
60368         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
60369         malloc or realloc fails.
60370
60371 2007-09-09  Bruno Haible  <bruno@clisp.org>
60372
60373         * modules/getcwd (Depends-on): Add malloc-posix.
60374         * modules/glob (Depends-on): Likewise.
60375         * modules/putenv (Depends-on): Likewise.
60376         * modules/strdup (Depends-on): Likewise.
60377         * modules/getdelim (Depends-on): Add realloc-posix.
60378         * modules/read-file (Depends-on): Likewise.
60379
60380 2007-09-09  Bruno Haible  <bruno@clisp.org>
60381
60382         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
60383         (gl_FUNC_MALLOC_POSIX): Require it.
60384         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
60385         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
60386         * modules/realloc (Files): Add m4/malloc.m4.
60387         * modules/calloc (Files): Likewise.
60388
60389 2007-09-09  Bruno Haible  <bruno@clisp.org>
60390
60391         * modules/malloc-posix: New file.
60392         * modules/malloc (Depends-on): Add malloc-posix.
60393         * lib/malloc.c: Include errno.h.
60394         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
60395         and a POSIX-compatible malloc into a single function. Set ENOMEM
60396         when returning NULL.
60397         * m4/malloc.m4: New file.
60398         * doc/functions/malloc.texi: Mention the malloc-posix module.
60399         * lib/stdlib_.h (malloc): New declaration.
60400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60401         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
60402         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
60403         and HAVE_MALLOC_POSIX.
60404
60405 2007-09-09  Bruno Haible  <bruno@clisp.org>
60406
60407         * modules/realloc-posix: New file.
60408         * modules/realloc (Depends-on): Add realloc-posix.
60409         * lib/realloc.c: Include errno.h.
60410         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
60411         and a POSIX-compatible realloc into a single function. Set ENOMEM
60412         when returning NULL.
60413         * m4/realloc.m4: New file.
60414         * doc/functions/realloc.texi: Mention the realloc-posix module.
60415         * lib/stdlib_.h (realloc): New declaration.
60416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60417         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
60418         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
60419         and HAVE_REALLOC_POSIX.
60420
60421 2007-09-09  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/calloc-posix: New file.
60424         * modules/calloc (Depends-on): Add calloc-posix.
60425         * lib/calloc.c: Include errno.h.
60426         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
60427         and a POSIX-compatible calloc into a single function. Set ENOMEM
60428         when returning NULL.
60429         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
60430         * doc/functions/calloc.texi: Mention the calloc-posix module.
60431         * lib/stdlib_.h (calloc): New declaration.
60432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60433         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
60434         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
60435         and HAVE_CALLOC_POSIX.
60436
60437 2007-09-09  Bruno Haible  <bruno@clisp.org>
60438
60439         Allow for modules to show an arbitrary notice.
60440         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
60441         * gnulib-tool: New option --extract-notice.
60442         (func_usage): Document it.
60443         (sed_extract_prog): Update.
60444         (func_get_notice): New function.
60445         (func_modules_notice): New function.
60446         (func_import, func_create_testdir): Invoke it.
60447         Suggested by Jim Meyering.
60448
60449 2007-09-09  Bruno Haible  <bruno@clisp.org>
60450
60451         * gnulib-tool: New options --verbose, --quiet.
60452         (func_usage): Document them.
60453         (verbose): New variable.
60454         (func_execute_command): New function.
60455         (func_import): Don't show the module list and the file list if
60456         $verbose < 0.
60457         (func_create_testdir): Likewise. Use func_execute_command.
60458         (func_create_megatestdir): Use func_execute_command.
60459
60460 2007-09-08  Bruno Haible  <bruno@clisp.org>
60461
60462         * gnulib-tool (func_import): Prefer rsync over wget when available,
60463         for fetching the PO files.
60464
60465 2007-09-08  Bruno Haible  <bruno@clisp.org>
60466
60467         * posix-modules: New file. Portions copied from gnulib-tool.
60468         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
60469
60470 2007-09-08  Jim Meyering  <jim@meyering.net>
60471
60472         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
60473         * lib/fpending.h: Rename from __fpending.h.
60474         * lib/fpending.c: Rename from __fpending.c.
60475         Include "fpending.h", not "__fpending.h".
60476         * lib/__fpending.h, lib/__fpending.c: Remove files.
60477         * modules/fpending (Files): Reflect new file names.
60478         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
60479
60480 2007-09-08  Bruno Haible  <bruno@clisp.org>
60481
60482         * m4/inttypes-h.m4: Remove stub file.
60483
60484 2007-09-07  Simon Josefsson  <simon@josefsson.org>
60485
60486         * doc/headers/stdint.texi: Discuss #include_next issue.
60487
60488 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         * build-aux/bootstrap: Remove obsolete comment about wget --help.
60491
60492 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60493
60494         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
60495         in variable name.
60496
60497 2007-09-03  Jim Meyering  <jim@meyering.net>
60498
60499         New module: git-version-gen.
60500         * modules/git-version-gen: New file.
60501
60502         Import changes from coreutils for bootstrap script.
60503
60504         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
60505
60506         bootstrap: uses rsync to download the .po files
60507         * build-aux/bootstrap (po_download_command_format): New global.
60508         (download_po_files): Use rsync.
60509         (update_po_files): Don't remove .po files after download,
60510         so future rsync runs can take advantage of the copies.
60511
60512         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
60513
60514         Solve the unnecessary-.po-file-regeneration problem once and for all.
60515         * build-aux/bootstrap (download_po_files): New function, renamed from
60516         get_translations.  Now, downloads, but doesn't update LINGUAS.
60517         (update_po_files): New function.
60518
60519         bootstrap: Ignore more.
60520         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
60521         uniwidth to e.g., lib/.gitignore.
60522         (slurp): Handle the sys_stat_.h -> sys mapping, too.
60523
60524         * build-aux/bootstrap: New setting: vc_ignore.
60525         (insert_sorted_if_absent): Create $file if absent.
60526         Adapt to new, possibly empty, list: $vc_ignore.
60527
60528         bootstrap: generate more ignorable names
60529         * build-aux/bootstrap (slurp): When generating ignorable names,
60530         also map .sin to .sed, .gperf to .c, and .y to .c.
60531
60532 2007-09-03  Jim Meyering  <jim@meyering.net>
60533
60534         * build-aux/git-version-gen: New file, from coreutils.  For details, see
60535         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
60536
60537 2007-09-02  Bruno Haible  <bruno@clisp.org>
60538
60539         Fix mis-recognition of 'mcs' on QNX 6.
60540         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
60541         output contains the string "Mono".
60542         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
60543         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
60544
60545 2007-09-01  Bruno Haible  <bruno@clisp.org>
60546
60547         Fix collision between uniwidth/* and linebreak modules.
60548         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
60549         u32_width): Remove declarations.
60550         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
60551         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
60552         streq3, streq2, streq1, streq0): Remove functions.
60553         (STREQ): Remove macro.
60554         (is_cjk_encoding): Remove function.
60555         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
60556         (uc_width, u8_width, u16_width, u32_width): Remove functions.
60557         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
60558         * NEWS: Document the change.
60559
60560 2007-09-01  Bruno Haible  <bruno@clisp.org>
60561
60562         * lib/streq.h: Add double-inclusion guard.
60563
60564 2007-09-01  Karl Berry  <karl@gnu.org>
60565
60566         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
60567
60568 2007-08-28  Jim Meyering  <jim@meyering.net>
60569
60570         Rename mreadlink_with_size to areadlink_with_size.
60571         * NEWS: Document the change.
60572         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
60573         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
60574         * lib/mreadlink.h: Rename this to...
60575         * lib/areadlink.h: ...this.
60576         * modules/mreadlink-with-size: Rename this to...
60577         * modules/areadlink-with-size: ...this.
60578         * lib/canonicalize.c: Reflect the renaming.
60579         * modules/canonicalize: Likewise.
60580
60581 2007-08-26  Bruno Haible  <bruno@clisp.org>
60582
60583         * gnulib-tool (func_import): When deciding which files to remove,
60584         consider also dangling symbolic links.
60585         Reported by Eric Blake.
60586
60587 2007-08-26  Bruno Haible  <bruno@clisp.org>
60588
60589         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
60590
60591 2007-08-23  Simon Josefsson  <simon@josefsson.org>
60592
60593         * lib/readline.c: Don't include getline.h, the prototype is now
60594         found in stdio.h.
60595
60596 2007-08-23  Jim Meyering  <jim@meyering.net>
60597
60598         Getdelim touchup.
60599         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
60600         around the funlockfile call, since funlockfile never sets errno.
60601         Don't set errno upon failed realloc.
60602
60603 2007-08-22  Eric Blake  <ebb9@byu.net>
60604
60605         Getline touchups.
60606         * lib/getdelim.c (getdelim): Revert regression that required *n to
60607         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
60608         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
60609         getdelim, rather than whether implementation is missing.
60610         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
60611         * lib/stdio_.h (getline): Also declare if replacement is
60612         required.
60613         * doc/functions/getdelim.texi: New file.
60614         * doc/functions/getline.texi: Likewise.
60615         * doc/gnulib.texi (Function Substitutes): Add new files.
60616         Reported by Bruno Haible.
60617
60618 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
60619
60620         * users.txt: Add Guile.
60621
60622 2007-08-22  Eric Blake  <ebb9@byu.net>
60623
60624         * tests/test-getdelim.c (main): Use remove, not unlink.
60625         * tests/test-getline.c (main): Likewise.
60626
60627         Move getline and getdelim into stdio.h, per POSIX 200x.
60628         * modules/getline (Files): Remove getline.h.
60629         (Depends-on): Add stdio.
60630         (configure.ac): Add module indicator.
60631         * modules/getdelim (Files): Remove getdelim.h.
60632         (Depends-on): Add stdio.
60633         (configure.ac): Add module indicator.
60634         * modules/stdio (Makefile.am): Work with new indicators.
60635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60636         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
60637         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60638         * lib/getdelim.h: Delete.
60639         * lib/getline.h: Delete.
60640         * lib/stdio_.h (getdelim, getline): Declare.
60641         * modules/getdelim-tests: New module.
60642         * modules/getline-tests: Likewise.
60643         * tests/test-getdelim.c: New file.
60644         * tests/test-getline.c: Likewise.
60645         * NEWS: Document the change.
60646         * lib/getline.c: Update choice of header.
60647         * lib/csharpcomp.c: Likewise.
60648         * lib/getpass.c: Likewise.
60649         * lib/javacomp.c: Likewise.
60650         * lib/javaversion.c: Likewise.
60651         * lib/yesno.c: Likewise.
60652         * lib/getdelim.c: Likewise.
60653         (getdelim): Set errno on failure, and avoid memory leak.
60654
60655 2007-08-19  Bruno Haible  <bruno@clisp.org>
60656
60657         * modules/closein (Depends-on): Add freadahead.
60658         * lib/closein.c: Include freadahead.h.
60659         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
60660         is zero.
60661
60662 2007-08-19  Bruno Haible  <bruno@clisp.org>
60663
60664         * modules/freadahead-tests: New file.
60665         * tests/test-freadahead.sh: New file.
60666         * tests/test-freadahead.c: New file.
60667
60668         * modules/freadahead: New file.
60669         * lib/freadahead.h: New file.
60670         * lib/freadahead.c: New file.
60671         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
60672         fbufmode, fpurge, freadable, fwritable.
60673
60674 2007-08-19  Eric Blake  <ebb9@byu.net>
60675
60676         Test yesno in combination with closein.
60677         * lib/yesno.c (yesno): Document use of stdin.
60678         * modules/yesno-tests (Files): New module.
60679         * tests/test-yesno.c (main): New file.
60680         * tests/test-yesno.sh: Likewise.
60681
60682 2007-08-19  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
60685         * lib/fseeko.c (rpl_fseeko): Likewise.
60686         * lib/fseterr.c (fseterr): Likewise.
60687
60688 2007-08-19  Bruno Haible  <bruno@clisp.org>
60689
60690         * tests/test-lseek.c (main): Disable a test for BeOS.
60691         * doc/functions/lseek.texi: Document the BeOS bug.
60692
60693 2007-08-19  Bruno Haible  <bruno@clisp.org>
60694             Eric Blake  <ebb9@byu.net>
60695
60696         * lib/lseek.c: Include <sys/stat.h>.
60697         (rpl_lseek): Add workaround code also for Unix platforms.
60698         Needed for BeOS.
60699         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
60700         * doc/functions/lseek.texi: Document BeOS definiency.
60701
60702 2007-08-18  Bruno Haible  <bruno@clisp.org>
60703
60704         * modules/fstrcmp-tests: New file.
60705         * tests/test-fstrcmp.c: New file.
60706
60707 2007-08-18  Bruno Haible  <bruno@clisp.org>
60708
60709         * modules/fstrcmp: New file, from GNU gettext with modifications.
60710         * lib/fstrcmp.h: New file, from GNU gettext.
60711         * lib/fstrcmp.c: New file, from GNU gettext.
60712         * MODULES.html.sh (String handling): Add fstrcmp.
60713
60714 2007-08-18  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
60717         'bool'.
60718         (diag, compareseq): Remove const from the ctxt argument.
60719         (USE_HEURISTIC): Undefine at the end.
60720
60721 2007-08-18  Jim Meyering  <jim@meyering.net>
60722
60723         New file: lib/idcache.h
60724         * NEWS: Mention the addition.
60725         * modules/idcache (Files): Add lib/idcache.h
60726         * lib/idcache.c: Include "idcache.h".
60727         Don't include <sys/types.h>.
60728         Add a FIXME comment.
60729         Move file-scoped "static" declarations to the top.
60730         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
60731
60732 2007-08-17  Bruno Haible  <bruno@clisp.org>
60733         and Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         * MODULES.html.sh: Add diffseq.
60736         * modules/diffseq: New file.
60737         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
60738         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
60739
60740 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         Import changes from coreutils for bootstrap script.
60743
60744         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
60745
60746         * build-aux/bootstrap (slurp): Work even in environments where
60747         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
60748         current code does not slurp files whose names start with ".", and
60749         this looks like it might be a troublesome area.
60750
60751         2007-07-11  Jim Meyering  <jim@meyering.net>
60752
60753         If there's a GPL vN copyright comment, require that N == 3.
60754
60755         2007-07-08  Jim Meyering  <jim@meyering.net>
60756
60757         Run the coreutils-specific code only if tests/Makefile.am.in exists.
60758         * build-aux/bootstrap (mam_template): Move definition out of loop.
60759
60760         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60761
60762         * build-aux/bootstrap (symlink_to_dir): Rename function from
60763         symlink_to_gnulib.  Add a directory parameter.  Update all
60764         callers.
60765         (cp_mark_as_generated): Also check for -- and link to -- files in
60766         gl/.
60767
60768         2007-07-08  Jim Meyering  <jim@meyering.net>
60769
60770         Adapt to deeper hierarchy in gnulib.
60771         * build-aux/bootstrap (symlink_to_dir): If the destination
60772         directory doesn't exist, create it. This is required at least for
60773         "lib/uniwidth/cjk.h".
60774
60775         2007-05-15  Jim Meyering  <jim@meyering.net>
60776
60777         * build-aux/bootstrap: Now that generated Makefile.am files
60778         are no longer under version control, they must be created at
60779         bootstrap time.
60780
60781 2007-08-14  Ben Pfaff  <blp@gnu.org>
60782
60783         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
60784
60785 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
60788         given the changes below.
60789         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
60790         even on hosts that have padding bits beyond the supported 64.
60791
60792 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60793
60794         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
60795         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
60796         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
60797         depends on it.
60798         (xstrtol_error): Remove.
60799         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
60800         but with a different signature.
60801         (ATTRIBUTE_NORETURN, __attribute__): New macros.
60802         * lib/xstrtol-error.c: Include exitfail.h.
60803         (xstrtol_fatal): New function, with a different signature from the
60804         old xstrtol_error, so that the caller need not worry about passing
60805         in an exit status, or about storage management of the option argument.
60806         (xstrtol_error): Now a static function.  Redo signature to
60807         implement xstrtol_fatal.  Output the correct number of hyphens in
60808         front of the option so that the caller need not worry about
60809         storage management.
60810         (N_): New macro.
60811         (_): Remove; not used now.
60812         * modules/xstrtol: Depend on getopt.
60813         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60814         of old STRTOL_FATAL_ERROR macro.
60815         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60816         of test program.
60817         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60818         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60819
60820 2007-08-08  Eric Blake  <ebb9@byu.net>
60821
60822         * lib/xstrtol-error.c: Add missing include.
60823
60824         Move xstrtol messages into gnulib domain, when --pobase is used.
60825         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60826         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60827         * modules/xstrtol (Files): Distribute new file.
60828         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60829         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60830         * tests/test-xstrtol.c: ...into new file.
60831         * tests/test-xstrtoul.c: Also test xstrtoul.
60832         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60833         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60834         * tests/test-xstrtol.sh: Drive the tests.
60835         * tests/test-xstrtoimax.sh: Likewise.
60836         * tests/test-xstrtoumax.sh: Likewise.
60837         * modules/xstrtol-tests: New module.
60838         * modules/xstrtoimax-tests: Likewise.
60839         * modules/xstrtoumax-tests: Likewise.
60840
60841 2007-08-08  Jim Meyering  <jim@meyering.net>
60842
60843         New function: mfile_name_concat.
60844         * lib/filenamecat.c (mfile_name_concat): New function, just like
60845         file_name_concat, but return NULL upon failure rather than exiting
60846         with a diagnostic.
60847         * lib/filenamecat.h: Declare it.
60848
60849 2007-08-07  Bruno Haible  <bruno@clisp.org>
60850
60851         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60852         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60853         warning from gcc.
60854         Reported by Eric Blake.
60855
60856 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60857
60858         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60859         * modules/crypto/arcfour (License): Likewise.
60860         * modules/crypto/des-tests (License): Likewise.
60861         * modules/crypto/gc-arctwo-tests (License): Likewise.
60862         * modules/crypto/gc-des-tests (License): Likewise.
60863         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60864         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60865         * modules/crypto/gc-md2-tests (License): Likewise.
60866         * modules/crypto/gc-md4-tests (License): Likewise.
60867         * modules/crypto/gc-md5-tests (License): Likewise.
60868         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60869         * modules/crypto/gc-rijndael-tests (License): Likewise.
60870         * modules/crypto/gc-sha1-tests (License): Likewise.
60871         * modules/crypto/gc-tests (License): Likewise.
60872         * modules/crypto/hmac-md5 (License): Likewise.
60873         * modules/crypto/hmac-sha1 (License): Likewise.
60874         * modules/crypto/md2-tests (License): Likewise.
60875         * modules/crypto/md4-tests (License): Likewise.
60876         * modules/crypto/md5 (License): Likewise.
60877         * modules/crypto/rijndael (License): Likewise.
60878         * modules/crypto/sha1 (License): Likewise.
60879         * modules/memxor (License): Likewise.
60880
60881 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60882         and Bruno Haible  <bruno@clisp.org>
60883
60884         * NEWS: Describe interface changes to human, xstrtol.
60885         * lib/human.h: Include <xstrtol.h>.
60886         (human_options): Return enum strtol_error, not int.  Remove
60887         bool arg; take int * instead.
60888         * lib/human.c: Don't include "gettext.h".
60889         (_): Remove; no longer used.
60890         Don't include <xstrtol.h>, since human.h does it.
60891         (human_options): Adjust to abovementioned interface changes.
60892         Do not report error to stderr; that's now the caller's
60893         responsibility.
60894         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60895         interface change.
60896         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60897         Str, Argument_type_string.  All uses changed.  Put " argument"
60898         in diagnostics to make them clearer.  Change wording of suffix
60899         message for clarity.
60900         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60901         Argument_type_string.
60902         (STRTOL_FATAL_WARN): Remove; no longer used.
60903         * modules/human (Depends-on): Remove gettext-h.
60904
60905 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60906
60907         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60908
60909 2007-07-31  Bruno Haible  <bruno@clisp.org>
60910
60911         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60912         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60913         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60914
60915 2007-07-31  Bruno Haible  <bruno@clisp.org>
60916
60917         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60918         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60919
60920 2007-07-30  Bruno Haible  <bruno@clisp.org>
60921
60922         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60923         * modules/c-ctype (License): Likewise.
60924         * modules/c-strcase (License): Likewise.
60925         * modules/check-version (License): Likewise.
60926         * modules/iconv (License): Likewise.
60927         * modules/iconv_open (License): Likewise.
60928         * modules/read-file (License): Likewise.
60929         * modules/striconv (License): Likewise.
60930         * modules/strverscmp (License): Likewise.
60931         * modules/vasprintf (License): Likewise.
60932         * modules/crypto/des (License): Likewise.
60933         * modules/crypto/gc (License): Likewise.
60934         * modules/crypto/gc-arcfour (License): Likewise.
60935         * modules/crypto/gc-arctwo (License): Likewise.
60936         * modules/crypto/gc-des (License): Likewise.
60937         * modules/crypto/gc-hmac-md5 (License): Likewise.
60938         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60939         * modules/crypto/gc-md2 (License): Likewise.
60940         * modules/crypto/gc-md4 (License): Likewise.
60941         * modules/crypto/gc-md5 (License): Likewise.
60942         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60943         * modules/crypto/gc-random (License): Likewise.
60944         * modules/crypto/gc-rijndael (License): Likewise.
60945         * modules/crypto/gc-sha1 (License): Likewise.
60946         * modules/crypto/md2 (License): Likewise.
60947         * modules/crypto/md4 (License): Likewise.
60948
60949 2007-07-30  Jim Meyering  <jim@meyering.net>
60950
60951         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60952         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60953         it has valid stat data.  This bug would cause du not to count the
60954         sizes of inaccessible directories.
60955         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60956         in <http://bugzilla.redhat.com/250077>.
60957
60958 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60959             Bruno Haible  <bruno@clisp.org>
60960
60961         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60962         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60963         #include_next, gives a diagnostic about it, but reports no error in
60964         the exit code.
60965         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60966
60967 2007-07-24  Ben Pfaff  <blp@gnu.org>
60968
60969         Improve name: "count-one-bits" is better than "popcount".
60970         * MODULES.html.sh: Update name.
60971         * lib/popcount.h: Renamed lib/count-one-bits.h.
60972         (popcount): Renamed count_one_bits.
60973         (popcountl): Renamed count_one_bits_l.
60974         (popcountll): Renamed count_one_bits_ll.
60975         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60976         * modules/popcount: Renamed module/count-one-bits.
60977         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60978         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60979
60980 2007-07-23  Ben Pfaff  <blp@gnu.org>
60981
60982         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60983         better code generation, and add U to large constants to avoid
60984         warnings, in non-GCC case.
60985         Suggested by Bruno Haible.
60986
60987 2007-07-23  Ben Pfaff  <blp@gnu.org>
60988
60989         * lib/popcount.h: Use verify_true instead of if...abort.
60990         * modules/popcount: Depend on verify module.
60991         Suggested by Jim Meyering.
60992
60993 2007-07-23  Bruno Haible  <bruno@clisp.org>
60994
60995         * gnulib-tool (func_import): Create a .cvsignore file also when the
60996         directory is not yet in CVS but the toplevel directory is. When
60997         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60998         Reported by Karl Berry.
60999
61000 2007-07-22  Ben Pfaff  <blp@gnu.org>
61001
61002         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
61003         case.
61004         Suggested by Eric Blake.
61005
61006 2007-07-22  Ben Pfaff  <blp@gnu.org>
61007
61008         New module: popcount.
61009         * MODULES.html.sh: Add popcount.
61010         * modules/popcount: New file.
61011         * modules/popcount-tests: New file.
61012         * tests/test-popcount.c: New file.
61013         * lib/popcount.h: New file.
61014         * m4/popcount.m4: New file.
61015
61016 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61017
61018         * build-aux/announce-gen: Update to GPLv3.
61019
61020         * build-aux/config.guess: Update from config.
61021
61022 2007-07-21  Bruno Haible  <bruno@clisp.org>
61023
61024         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
61025         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
61026
61027 2007-07-20  Jim Meyering  <jim@meyering.net>
61028
61029         * check-module: Diagnose a self-dependency.
61030
61031 2007-07-19  Bruno Haible  <bruno@clisp.org>
61032
61033         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
61034         empty.
61035         Reported by Eric Blake.
61036
61037 2007-07-18  Bruno Haible  <bruno@clisp.org>
61038
61039         * gnulib-tool: New options --po-base, --po-domain.
61040         (func_usage): Document them.
61041         (pobase, po_domain): New variables.
61042         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
61043         DEFAULT_TEXT_DOMAIN.
61044         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
61045         (func_import): Consider pobase and po_domain. Create a po/ directory.
61046         (func_create_testdir): Set pobase and po_domain to empty.
61047         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
61048         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
61049
61050 2007-07-18  Bruno Haible  <bruno@clisp.org>
61051
61052         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61053         EXTRA_DIST augmentation for files in build-aux/.
61054
61055 2007-07-16  Bruno Haible  <bruno@clisp.org>
61056
61057         * modules/lseek (License): Use the synonymous term "LGPLv2+".
61058         * modules/getdelim (License): Likewise.
61059
61060 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61061
61062         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
61063         * modules/d-type (License): Likewise.
61064         * modules/extensions (License): Likewise.
61065         * modules/fnmatch (License): Likewise.
61066         * modules/fseeko (License): Likewise.
61067         * modules/getaddrinfo (License): Likewise.
61068         * modules/getline (License): Likewise.
61069         * modules/getlogin_r (License): Likewise.
61070         * modules/getpass (License): Likewise.
61071         * modules/gettimeofday (License): Likewise.
61072         * modules/glob (License): Likewise.
61073         * modules/inet_ntop (License): Likewise.
61074         * modules/malloc (License): Likewise.
61075         * modules/malloca (License): Likewise.
61076         * modules/memmem (License): Likewise.
61077         * modules/mempcpy (License): Likewise.
61078         * modules/memset (License): Likewise.
61079         * modules/minmax (License): Likewise.
61080         * modules/mktime (License): Likewise.
61081         * modules/netinet_in (License): Likewise.
61082         * modules/pathmax (License): Likewise.
61083         * modules/poll (License): Likewise.
61084         * modules/regex (License): Likewise.
61085         * modules/snprintf (License): Likewise.
61086         * modules/stdbool (License): Likewise.
61087         * modules/stdint (License): Likewise.
61088         * modules/stdio (License): Likewise.
61089         * modules/strcase (License): Likewise.
61090         * modules/strcasestr (License): Likewise.
61091         * modules/strdup (License): Likewise.
61092         * modules/string (License): Likewise.
61093         * modules/strndup (License): Likewise.
61094         * modules/strnlen (License): Likewise.
61095         * modules/strpbrk (License): Likewise.
61096         * modules/strptime (License): Likewise.
61097         * modules/strsep (License): Likewise.
61098         * modules/sys_select (License): Likewise.
61099         * modules/sys_socket (License): Likewise.
61100         * modules/sys_stat (License): Likewise.
61101         * modules/sys_time (License): Likewise.
61102         * modules/time (License): Likewise.
61103         * modules/time_r (License): Likewise.
61104         * modules/timegm (License): Likewise.
61105         * modules/unistd (License): Likewise.
61106         * modules/vsnprintf (License): Likewise.
61107         * modules/wctype (License): Likewise.
61108
61109 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61110
61111         * modules/argz (License): LGPLv2+.
61112
61113 2007-07-15  Karl Berry  <karl@gnu.org>
61114
61115         * doc/gnulib.texi: revise node structure per new fdl.texi.
61116
61117 2007-07-14  Bruno Haible  <bruno@clisp.org>
61118
61119         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
61120         the output file.
61121         * lib/uniname/uninames.h: Regenerated.
61122
61123 2007-07-14  Karl Berry  <karl@gnu.org>
61124
61125         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
61126         omitting sectioning and index commands.
61127
61128 2007-07-13  Bruno Haible  <bruno@clisp.org>
61129
61130         New gnulib-tool option --more-symlinks.
61131         * gnulib-tool (func_usage): Document --more-symlinks.
61132         (do_copyrights): New variable.
61133         Recognize option --more-symlinks.
61134         (func_import): Don't add a copyright notice transform to
61135         sed_transform_lib_file if do_copyrights is empty.
61136
61137 2007-07-13  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/vasnprintf.c (decimal_point_char): Define also if
61140         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
61141         && !NEED_PRINTF_DIRECTIVE_A.
61142         Reported by Clemens Koller <clemens.koller@anagramm.de> via
61143         Gary V. Vaughan <gary@gnu.org>.
61144
61145 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
61146
61147         * lib/inttypes_.h: Undo previous change, since it was fixed
61148         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
61149
61150 2007-07-13  Bruno Haible  <bruno@clisp.org>
61151
61152         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
61153         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
61154
61155 2007-07-13  Jim Meyering  <jim@meyering.net>
61156
61157         df: Don't fail for Tru64's "file-on-file mount".
61158         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
61159         so we fall through and use statfs instead.  Details here:
61160         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
61161         Reported by Albert Chin.
61162
61163 2007-07-13  Bruno Haible  <bruno@clisp.org>
61164
61165         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
61166         * modules/configmake (License): Likewise.
61167         * modules/gettext (License): Likewise.
61168         * modules/gettext-h (License): Likewise.
61169         * modules/include_next (License): Likewise.
61170         * modules/link-warning (License): Likewise.
61171         * modules/localcharset (License): Likewise.
61172         * modules/localename (License): Likewise.
61173         * modules/lock (License): Likewise.
61174         * modules/relocatable-lib-lgpl (License): Likewise.
61175         * modules/size_max (License): Likewise.
61176         * modules/vasnprintf (License): Likewise.
61177         * modules/wchar (License): Likewise.
61178         * modules/xsize (License): Likewise.
61179
61180 2007-07-13  Bruno Haible  <bruno@clisp.org>
61181
61182         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
61183         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
61184
61185 2007-07-12  Bruno Haible  <bruno@clisp.org>
61186
61187         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
61188         in the modules files.
61189
61190 2007-07-11  Karl Berry  <karl@gnu.org>
61191
61192         * MODULES.html.sh (func_module): use
61193          sed -e '\|^'"${includefile}"'$|d'
61194          instead of /.../d, to avoid errors on $includefile's containing /.
61195
61196 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61197
61198         * gnulib-tool (func_import): Avoid duplication of --avoid
61199         statements
61200         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
61201         names to `_' in variable names.
61202
61203 2007-07-10  Eric Blake  <ebb9@byu.net>
61204
61205         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
61206         * NEWS: Document this change.
61207
61208 2007-07-08  Bruno Haible  <bruno@clisp.org>
61209
61210         Update to Unicode 5.0.
61211         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
61212         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
61213         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
61214         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
61215         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
61216         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
61217         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
61218         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
61219         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
61220         U+10A3F, U+1D242..U+1D244.
61221         (nonspacing_table_ind): Update.
61222         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
61223         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
61224
61225 2007-07-08  Bruno Haible  <bruno@clisp.org>
61226
61227         Update to Unicode 5.0.
61228         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
61229         code transform. Extend the name index field of unicode_name_to_code and
61230         unicode_code_to_name from 16 to 24 bits.
61231         * lib/uniname/uniname.c (unicode_character_name,
61232         unicode_name_character): Add the range 0x12xxx to the code transform.
61233         * lib/uniname/uninames.h: Regenerated.
61234         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
61235
61236 2007-07-07  Bruno Haible  <bruno@clisp.org>
61237
61238         * modules/wcwidth-tests: New file.
61239         * tests/test-wcwidth.c: New file.
61240
61241         Work around MacOS X wcwidth() bug.
61242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
61243         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
61244         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
61245         original wcwidth in non-UTF-8 locales.
61246         * modules/wcwidth (Depends-on): Add localcharset, streq,
61247         uniwidth/width.
61248         * doc/functions/wcwidth.texi: Update.
61249
61250 2007-07-07  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
61253         (wcwidth): New declaration.
61254         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
61255         macros.
61256         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
61257         here. Prepare for creating <wchar.h> unconditionally.
61258         * modules/wchar (Depends-on): Add link-warning.
61259         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
61260         REPLACE_WCWIDTH, and GL_LINK_WARNING.
61261         * lib/wcwidth.h: Remove file.
61262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
61263         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
61264         * modules/wcwidth (Files): Remove lib/wcwidth.h.
61265         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
61266         (Include): Replace wcwidth.h with <wchar.h>.
61267         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
61268         * lib/mbchar.h: Don't include wcwidth.h.
61269         * lib/mbswidth.c: Likewise.
61270         * NEWS: Mention the change.
61271
61272 2007-07-07  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
61275         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
61276         definition with an external declaration.
61277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
61278         defined as a function. Remove AC_C_INLINE requirement.
61279         * modules/wcwidth (Files): Add lib/wcwidth.c.
61280         (Makefile.am): Remove redundant statement.
61281
61282 2007-07-07  Bruno Haible  <bruno@clisp.org>
61283
61284         * MODULES.html.sh (Unicode string functions): Add the new modules.
61285
61286         * tests/uniwidth/test-u32-strwidth.c: New file.
61287         * modules/uniwidth/u32-strwidth-tests: New file.
61288
61289         * lib/uniwidth/u32-strwidth.c: New file.
61290         * modules/uniwidth/u32-strwidth: New file.
61291
61292         * tests/uniwidth/test-u16-strwidth.c: New file.
61293         * modules/uniwidth/u16-strwidth-tests: New file.
61294
61295         * lib/uniwidth/u16-strwidth.c: New file.
61296         * modules/uniwidth/u16-strwidth: New file.
61297
61298         * tests/uniwidth/test-u8-strwidth.c: New file.
61299         * modules/uniwidth/u8-strwidth-tests: New file.
61300
61301         * lib/uniwidth/u8-strwidth.c: New file.
61302         * modules/uniwidth/u8-strwidth: New file.
61303
61304         * tests/uniwidth/test-u32-width.c: New file.
61305         * modules/uniwidth/u32-width-tests: New file.
61306
61307         * lib/uniwidth/u32-width.c: New file.
61308         * modules/uniwidth/u32-width: New file.
61309
61310         * tests/uniwidth/test-u16-width.c: New file.
61311         * modules/uniwidth/u16-width-tests: New file.
61312
61313         * lib/uniwidth/u16-width.c: New file.
61314         * modules/uniwidth/u16-width: New file.
61315
61316         * tests/uniwidth/test-u8-width.c: New file.
61317         * modules/uniwidth/u8-width-tests: New file.
61318
61319         * lib/uniwidth/u8-width.c: New file.
61320         * modules/uniwidth/u8-width: New file.
61321
61322         * tests/uniwidth/test-uc_width.c: New file.
61323         * modules/uniwidth/width-tests: New file.
61324
61325         * lib/uniwidth/width.c: New file, from GNU libiconv.
61326         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
61327         * modules/uniwidth/width: New file.
61328
61329         * lib/uniwidth.h: New file, from GNU libiconv.
61330         * modules/uniwidth/base: New file.
61331
61332 2007-07-07  Bruno Haible  <bruno@clisp.org>
61333
61334         * lib/uniname.h: New file, from GNU gettext.
61335         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
61336         * lib/uniname/uninames.h: New file, from GNU gettext.
61337         * lib/uniname/uniname.c: New file, from GNU gettext.
61338         * tests/uniname/test-uninames.sh: New file.
61339         * tests/uniname/test-uninames.c: New file, from GNU gettext.
61340         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
61341         * modules/uniname/base: New file.
61342         * modules/uniname/uniname: New file.
61343         * modules/uniname/uniname-tests: New file.
61344         * MODULES.html.sh (Unicode string functions): Add the new modules.
61345
61346 2007-07-06  Bruno Haible  <bruno@clisp.org>
61347
61348         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
61349
61350 2007-07-06  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
61353         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
61354         includes <cygwin/sys_time.h> which includes <sys/select.h> which
61355         include <sys/time.h>.
61356         Reported by Eric Blake.
61357
61358 2007-07-06  Eric Blake  <ebb9@byu.net>
61359
61360         Fix testing canonicalize on cygwin.
61361         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61362         Revert patch from 2007-06-19.
61363         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
61364         canonicalize module is also in use.
61365         * tests/test-canonicalize.c: New file.
61366         * tests/test-canonicalize.sh: Likewise.
61367         * modules/canonicalize-tests: Likewise.
61368
61369 2007-07-06  Jim Meyering  <jim@meyering.net>
61370
61371         * lib/getugroups.c (getugroups): Detect getgrent failure.
61372         Adjust comment to reflect reality: this function may return -1.
61373
61374 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61375
61376         * build-aux/bootstrap (TP_URL,get_translations): Update to use
61377         the new TP address.
61378         (usage): Fix typo
61379         (gnulib_mk): New variable.
61380
61381 2007-07-05  Jim Meyering  <jim@meyering.net>
61382
61383         Don't let endgrent clobber errno, no matter how improbable.
61384         * lib/getugroups.c (getugroups): Save and restore errno around
61385         endgrent call.
61386
61387         Close the group DB even when failing with 2^31 or more members.
61388         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
61389
61390 2007-07-04  Jim Meyering  <jim@meyering.net>
61391
61392         * lib/getugroups.h: New file.
61393         * lib/getugroups.c: Include "getugroups.h".
61394         Remove uses of "register" keyword.
61395         Move local variable, "cp", down into scope where used.
61396         Give "username" parameter the "const" attribute.
61397         * modules/getugroups (Files): Add lib/getugroups.h
61398
61399 2007-07-04  Karl Berry  <karl@gnu.org>
61400
61401         * MODULES.html.sh (func_all_modules): Complete rename of
61402         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
61403
61404 2007-07-02  Bruno Haible  <bruno@clisp.org>
61405
61406         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
61407         mode, when inttypes.h comes from gnulib.
61408         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61409
61410 2007-07-02  Simon Josefsson  <simon@josefsson.org>
61411
61412         * NEWS: Mention lgpl module name change.
61413
61414         * modules/lgpl-2.1: Renamed from lgpl.
61415
61416         * NEWS: Mention gpl module name change.
61417
61418         * modules/gpl-3.0: New file, based on gpl-2.0.
61419
61420         * modules/gpl-2.0: Renamed from gpl.
61421
61422         * modules/gpl: Fix filename, doc/gpl.texi is now found at
61423         doc/gpl-2.0.texi.
61424
61425 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
61428         #define __STDC_LIMIT_MACROS temporarily while including
61429         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
61430         Problem reported by Joel E. Denny in
61431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
61432
61433 2007-07-01  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/unistdio.h: New file.
61436         * lib/unistdio/u-asnprintf.h: New file.
61437         * lib/unistdio/u-asprintf.h: New file.
61438         * lib/unistdio/u-printf-args.c: New file.
61439         * lib/unistdio/u-printf-args.h: New file.
61440         * lib/unistdio/u-printf-parse.h: New file.
61441         * lib/unistdio/u-snprintf.h: New file.
61442         * lib/unistdio/u-sprintf.h: New file.
61443         * lib/unistdio/u-vasprintf.h: New file.
61444         * lib/unistdio/u-vsnprintf.h: New file.
61445         * lib/unistdio/u-vsprintf.h: New file.
61446         * lib/unistdio/ulc-asnprintf.c: New file.
61447         * lib/unistdio/ulc-asprintf.c: New file.
61448         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
61449         * lib/unistdio/ulc-printf-parse.c: New file.
61450         * lib/unistdio/ulc-snprintf.c: New file.
61451         * lib/unistdio/ulc-sprintf.c: New file.
61452         * lib/unistdio/ulc-vasnprintf.c: New file.
61453         * lib/unistdio/ulc-vasprintf.c: New file.
61454         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
61455         * lib/unistdio/ulc-vsnprintf.c: New file.
61456         * lib/unistdio/ulc-vsprintf.c: New file.
61457         * lib/unistdio/u8-asnprintf.c: New file.
61458         * lib/unistdio/u8-asprintf.c: New file.
61459         * lib/unistdio/u8-printf-parse.c: New file.
61460         * lib/unistdio/u8-snprintf.c: New file.
61461         * lib/unistdio/u8-sprintf.c: New file.
61462         * lib/unistdio/u8-vasnprintf.c: New file.
61463         * lib/unistdio/u8-vasprintf.c: New file.
61464         * lib/unistdio/u8-vsnprintf.c: New file.
61465         * lib/unistdio/u8-vsprintf.c: New file.
61466         * lib/unistdio/u8-u8-asnprintf.c: New file.
61467         * lib/unistdio/u8-u8-asprintf.c: New file.
61468         * lib/unistdio/u8-u8-snprintf.c: New file.
61469         * lib/unistdio/u8-u8-sprintf.c: New file.
61470         * lib/unistdio/u8-u8-vasnprintf.c: New file.
61471         * lib/unistdio/u8-u8-vasprintf.c: New file.
61472         * lib/unistdio/u8-u8-vsnprintf.c: New file.
61473         * lib/unistdio/u8-u8-vsprintf.c: New file.
61474         * lib/unistdio/u16-asnprintf.c: New file.
61475         * lib/unistdio/u16-asprintf.c: New file.
61476         * lib/unistdio/u16-printf-parse.c: New file.
61477         * lib/unistdio/u16-snprintf.c: New file.
61478         * lib/unistdio/u16-sprintf.c: New file.
61479         * lib/unistdio/u16-vasnprintf.c: New file.
61480         * lib/unistdio/u16-vasprintf.c: New file.
61481         * lib/unistdio/u16-vsnprintf.c: New file.
61482         * lib/unistdio/u16-vsprintf.c: New file.
61483         * lib/unistdio/u16-u16-asnprintf.c: New file.
61484         * lib/unistdio/u16-u16-asprintf.c: New file.
61485         * lib/unistdio/u16-u16-snprintf.c: New file.
61486         * lib/unistdio/u16-u16-sprintf.c: New file.
61487         * lib/unistdio/u16-u16-vasnprintf.c: New file.
61488         * lib/unistdio/u16-u16-vasprintf.c: New file.
61489         * lib/unistdio/u16-u16-vsnprintf.c: New file.
61490         * lib/unistdio/u16-u16-vsprintf.c: New file.
61491         * lib/unistdio/u32-asnprintf.c: New file.
61492         * lib/unistdio/u32-asprintf.c: New file.
61493         * lib/unistdio/u32-printf-parse.c: New file.
61494         * lib/unistdio/u32-snprintf.c: New file.
61495         * lib/unistdio/u32-sprintf.c: New file.
61496         * lib/unistdio/u32-vasnprintf.c: New file.
61497         * lib/unistdio/u32-vasprintf.c: New file.
61498         * lib/unistdio/u32-vsnprintf.c: New file.
61499         * lib/unistdio/u32-vsprintf.c: New file.
61500         * lib/unistdio/u32-u32-asnprintf.c: New file.
61501         * lib/unistdio/u32-u32-asprintf.c: New file.
61502         * lib/unistdio/u32-u32-snprintf.c: New file.
61503         * lib/unistdio/u32-u32-sprintf.c: New file.
61504         * lib/unistdio/u32-u32-vasnprintf.c: New file.
61505         * lib/unistdio/u32-u32-vasprintf.c: New file.
61506         * lib/unistdio/u32-u32-vsnprintf.c: New file.
61507         * lib/unistdio/u32-u32-vsprintf.c: New file.
61508         * tests/unistdio/test-ulc-asnprintf1.c: New file.
61509         * tests/unistdio/test-ulc-asnprintf1.h: New file.
61510         * tests/unistdio/test-ulc-printf1.h: New file.
61511         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
61512         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
61513         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
61514         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
61515         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
61516         * tests/unistdio/test-ulc-vasprintf1.c: New file.
61517         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
61518         * tests/unistdio/test-ulc-vsprintf1.c: New file.
61519         * tests/unistdio/test-u8-asnprintf1.c: New file.
61520         * tests/unistdio/test-u8-asnprintf1.h: New file.
61521         * tests/unistdio/test-u8-printf1.h: New file.
61522         * tests/unistdio/test-u8-vasnprintf1.c: New file.
61523         * tests/unistdio/test-u8-vasnprintf2.c: New file.
61524         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
61525         * tests/unistdio/test-u8-vasnprintf3.c: New file.
61526         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
61527         * tests/unistdio/test-u8-vasprintf1.c: New file.
61528         * tests/unistdio/test-u8-vsnprintf1.c: New file.
61529         * tests/unistdio/test-u8-vsprintf1.c: New file.
61530         * tests/unistdio/test-u16-asnprintf1.c: New file.
61531         * tests/unistdio/test-u16-asnprintf1.h: New file.
61532         * tests/unistdio/test-u16-printf1.h: New file.
61533         * tests/unistdio/test-u16-vasnprintf1.c: New file.
61534         * tests/unistdio/test-u16-vasnprintf2.c: New file.
61535         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
61536         * tests/unistdio/test-u16-vasnprintf3.c: New file.
61537         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
61538         * tests/unistdio/test-u16-vasprintf1.c: New file.
61539         * tests/unistdio/test-u16-vsnprintf1.c: New file.
61540         * tests/unistdio/test-u16-vsprintf1.c: New file.
61541         * tests/unistdio/test-u32-asnprintf1.c: New file.
61542         * tests/unistdio/test-u32-asnprintf1.h: New file.
61543         * tests/unistdio/test-u32-printf1.h: New file.
61544         * tests/unistdio/test-u32-vasnprintf1.c: New file.
61545         * tests/unistdio/test-u32-vasnprintf2.c: New file.
61546         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
61547         * tests/unistdio/test-u32-vasnprintf3.c: New file.
61548         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
61549         * tests/unistdio/test-u32-vasprintf1.c: New file.
61550         * tests/unistdio/test-u32-vsnprintf1.c: New file.
61551         * tests/unistdio/test-u32-vsprintf1.c: New file.
61552         * modules/unistdio/base: New file.
61553         * modules/unistdio/u-printf-args: New file.
61554         * modules/unistdio/ulc-asnprintf: New file.
61555         * modules/unistdio/ulc-asprintf: New file.
61556         * modules/unistdio/ulc-fprintf: New file.
61557         * modules/unistdio/ulc-printf-parse: New file.
61558         * modules/unistdio/ulc-snprintf: New file.
61559         * modules/unistdio/ulc-sprintf: New file.
61560         * modules/unistdio/ulc-vasnprintf: New file.
61561         * modules/unistdio/ulc-vasprintf: New file.
61562         * modules/unistdio/ulc-vfprintf: New file.
61563         * modules/unistdio/ulc-vsnprintf: New file.
61564         * modules/unistdio/ulc-vsprintf: New file.
61565         * modules/unistdio/u8-asnprintf: New file.
61566         * modules/unistdio/u8-asprintf: New file.
61567         * modules/unistdio/u8-printf-parse: New file.
61568         * modules/unistdio/u8-snprintf: New file.
61569         * modules/unistdio/u8-sprintf: New file.
61570         * modules/unistdio/u8-vasnprintf: New file.
61571         * modules/unistdio/u8-vasprintf: New file.
61572         * modules/unistdio/u8-vsnprintf: New file.
61573         * modules/unistdio/u8-vsprintf: New file.
61574         * modules/unistdio/u8-u8-asnprintf: New file.
61575         * modules/unistdio/u8-u8-asprintf: New file.
61576         * modules/unistdio/u8-u8-snprintf: New file.
61577         * modules/unistdio/u8-u8-sprintf: New file.
61578         * modules/unistdio/u8-u8-vasnprintf: New file.
61579         * modules/unistdio/u8-u8-vasprintf: New file.
61580         * modules/unistdio/u8-u8-vsnprintf: New file.
61581         * modules/unistdio/u8-u8-vsprintf: New file.
61582         * modules/unistdio/u16-asnprintf: New file.
61583         * modules/unistdio/u16-asprintf: New file.
61584         * modules/unistdio/u16-printf-parse: New file.
61585         * modules/unistdio/u16-snprintf: New file.
61586         * modules/unistdio/u16-sprintf: New file.
61587         * modules/unistdio/u16-vasnprintf: New file.
61588         * modules/unistdio/u16-vasprintf: New file.
61589         * modules/unistdio/u16-vsnprintf: New file.
61590         * modules/unistdio/u16-vsprintf: New file.
61591         * modules/unistdio/u16-u16-asnprintf: New file.
61592         * modules/unistdio/u16-u16-asprintf: New file.
61593         * modules/unistdio/u16-u16-snprintf: New file.
61594         * modules/unistdio/u16-u16-sprintf: New file.
61595         * modules/unistdio/u16-u16-vasnprintf: New file.
61596         * modules/unistdio/u16-u16-vasprintf: New file.
61597         * modules/unistdio/u16-u16-vsnprintf: New file.
61598         * modules/unistdio/u16-u16-vsprintf: New file.
61599         * modules/unistdio/u32-asnprintf: New file.
61600         * modules/unistdio/u32-asprintf: New file.
61601         * modules/unistdio/u32-printf-parse: New file.
61602         * modules/unistdio/u32-snprintf: New file.
61603         * modules/unistdio/u32-sprintf: New file.
61604         * modules/unistdio/u32-vasnprintf: New file.
61605         * modules/unistdio/u32-vasprintf: New file.
61606         * modules/unistdio/u32-vsnprintf: New file.
61607         * modules/unistdio/u32-vsprintf: New file.
61608         * modules/unistdio/u32-u32-asnprintf: New file.
61609         * modules/unistdio/u32-u32-asprintf: New file.
61610         * modules/unistdio/u32-u32-snprintf: New file.
61611         * modules/unistdio/u32-u32-sprintf: New file.
61612         * modules/unistdio/u32-u32-vasnprintf: New file.
61613         * modules/unistdio/u32-u32-vasprintf: New file.
61614         * modules/unistdio/u32-u32-vsnprintf: New file.
61615         * modules/unistdio/u32-u32-vsprintf: New file.
61616         * modules/unistdio/ulc-asnprintf-tests: New file.
61617         * modules/unistdio/ulc-vasnprintf-tests: New file.
61618         * modules/unistdio/ulc-vasprintf-tests: New file.
61619         * modules/unistdio/ulc-vsnprintf-tests: New file.
61620         * modules/unistdio/ulc-vsprintf-tests: New file.
61621         * modules/unistdio/u8-asnprintf-tests: New file.
61622         * modules/unistdio/u8-vasnprintf-tests: New file.
61623         * modules/unistdio/u8-vasprintf-tests: New file.
61624         * modules/unistdio/u8-vsnprintf-tests: New file.
61625         * modules/unistdio/u8-vsprintf-tests: New file.
61626         * modules/unistdio/u16-asnprintf-tests: New file.
61627         * modules/unistdio/u16-vasnprintf-tests: New file.
61628         * modules/unistdio/u16-vasprintf-tests: New file.
61629         * modules/unistdio/u16-vsnprintf-tests: New file.
61630         * modules/unistdio/u16-vsprintf-tests: New file.
61631         * modules/unistdio/u32-asnprintf-tests: New file.
61632         * modules/unistdio/u32-vasnprintf-tests: New file.
61633         * modules/unistdio/u32-vasprintf-tests: New file.
61634         * modules/unistdio/u32-vsnprintf-tests: New file.
61635         * modules/unistdio/u32-vsprintf-tests: New file.
61636         * MODULES.html.sh (Unicode string functions): Add the new modules.
61637
61638 2007-07-01  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/sprintf.c (sprintf): Limit the available length estimation,
61641         to avoid address wraparound.
61642         * lib/vsprintf.c (vsprintf): Likewise.
61643         * modules/sprintf-posix (Dependencies): Add stdint.
61644         * modules/vsprintf-posix (Dependencies): Likewise.
61645
61646 2007-07-01  Bruno Haible  <bruno@clisp.org>
61647
61648         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
61649         Windows PATH as well. Conservative double-quoting. Comments.
61650
61651 2007-07-01  Bruno Haible  <bruno@clisp.org>
61652             Eric Blake  <ebb9@byu.net>
61653             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61654
61655         * gnulib-tool (self_abspathname): Fix algorithm to cope with
61656         empty components in $PATH, denoting '.'.
61657
61658 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61659
61660         * gnulib-tool: Fix indentation.
61661         (func_create_megatestdir): Likewise.
61662         Report by Bruno Haible.
61663
61664 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61665
61666         Sync from Automake.
61667         * build-aux/gnupload: Fix shell portability issues with for loops.
61668         Report by Karl Berry.
61669
61670 2007-06-29  Simon Josefsson  <simon@josefsson.org>
61671
61672         * build-aux/maint.mk (POURL): Use translationproject.org.
61673
61674 2007-06-27  Simon Josefsson  <simon@josefsson.org>
61675             Bruno Haible  <bruno@clisp.org>
61676
61677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
61678         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
61679         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
61680         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
61681         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
61682
61683 2007-06-27  Bruno Haible  <bruno@clisp.org>
61684
61685         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
61686         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
61687
61688 2007-06-26  Karl Berry  <karl@gnu.org>
61689
61690         * MODULES.html.sh: remove xreadlink-with-size.
61691
61692 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61693
61694         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
61695         method that I hope also handles the double-include problem noted
61696         by Bruno Haible in
61697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
61698
61699 2007-06-23  Bruno Haible  <bruno@clisp.org>
61700
61701         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61702         Don't let the 'mostlyclean' target fail if the last subdirectory could
61703         not be removed.
61704         Reported by Karl Berry.
61705
61706 2007-06-23  Bruno Haible  <bruno@clisp.org>
61707
61708         * gnulib-tool (echo): Add a speedier workaround for ksh.
61709         * tests/test-echo.sh: Likewise.
61710
61711 2007-06-23  Bruno Haible  <bruno@clisp.org>
61712
61713         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
61714         * tests/test-echo.sh: Likewise.
61715
61716 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61717
61718         * gnulib-tool (IFS): Initialize early, so we don't set it to
61719         empty later.
61720         (self_abspathname): Rewrite algorithm to set it, reindent.
61721         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
61722         (func_create_megatestdir): Merge some sed scripts.
61723
61724 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
61727         exposed by Sun Studio 11 cc on Solaris 8.
61728
61729 2007-06-22  Bruno Haible  <bruno@clisp.org>
61730
61731         * gnulib-tool (echo): Ensure the echo primitive does not interpret
61732         backslashes.
61733         * tests/test-echo.sh: New file.
61734
61735 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61736
61737         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
61738         simplify `sed_replace_build_aux' scripts, they are portable but
61739         echoing them with `echo' is not.
61740         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
61741
61742 2007-06-21  Karl Berry  <karl@gnu.org>
61743
61744         * config/srclist.txt: guess we can't handle the licenses via
61745         srclist at the moment.
61746
61747 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61748
61749         * MODULES.html.sh: Add include_next.
61750         * modules/include_next: New file.
61751
61752 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61753
61754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
61755         INCLUDE_NEXT.
61756         (gl_CHECK_NEXT_HEADERS): New macro.
61757         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
61758         the obsolescent gl_ABSOLUTE_HEADER.
61759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
61760         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
61761         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61762         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61763         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61764         * m4/math_h.m4 (gl_MATH_H): Likewise.
61765         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61766         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61767         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61768         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61769         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61770         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61771         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61775         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
61776         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61777         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
61778         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61779         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61780         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61781         * m4/inttypes.m4 (gl_INTTYPES_H): Define
61782         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
61783         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
61784         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
61785         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
61786         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
61787         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
61788         * lib/float_.h: Likewise.
61789         * lib/inttypes_.h: Likewise.
61790         * lib/math_.h: Likewise.
61791         * lib/search_.h: Likewise.
61792         * lib/signal_.h: Likewise.
61793         * lib/stdint_.h: Likewise.
61794         * lib/stdio_.h: Likewise.
61795         * lib/stdlib_.h: Likewise.
61796         * lib/string_.h: Likewise.
61797         * lib/sys_stat_.h: Likewise.
61798         * lib/sys_time_.h: Likewise.
61799         * lib/time_.h: Likewise.
61800         * lib/unistd_.h: Likewise.
61801         * lib/wchar_.h: Likewise.
61802         * lib/wctype_.h: Likewise.
61803         * lib/dirent_.h: Likewise.
61804         * lib/iconv_.h: Likewise.
61805         * lib/locale_.h: Likewise.
61806         * lib/netinet_in_.h: Likewise.
61807         * lib/sys_select_.h: Likewise.
61808         * lib/sys_socket_.h: Likewise.
61809         * lib/sysexits_.h: Likewise.
61810         * modules/fcntl (Depends-on): Depend on include_next, not
61811         absolute_header.
61812         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61813         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61814         * modules/fchdir: Likewise.
61815         * modules/float: Likewise.
61816         * modules/iconv_open: Likewise.
61817         * modules/inttypes: Likewise.
61818         * modules/locale: Likewise.
61819         * modules/math: Likewise.
61820         * modules/netinet_in: Likewise.
61821         * modules/search: Likewise.
61822         * modules/signal: Likewise.
61823         * modules/stdint: Likewise.
61824         * modules/stdio: Likewise.
61825         * modules/stdlib: Likewise.
61826         * modules/string: Likewise.
61827         * modules/sys_select: Likewise.
61828         * modules/sys_socket: Likewise.
61829         * modules/sys_stat: Likewise.
61830         * modules/sys_time: Likewise.
61831         * modules/sysexits: Likewise.
61832         * modules/time: Likewise.
61833         * modules/unistd: Likewise.
61834         * modules/wchar: Likewise.
61835         * modules/wctype: Likewise.
61836         * modules/sys_stat: Change maintainer to "all".
61837         * modules/unistd: Likewise.
61838
61839 2007-06-20  Karl Berry  <karl@gnu.org>
61840
61841         * config/srclist.txt: track www changes in license files.
61842
61843 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61844
61845         * build-aux/bootstrap: Remove stray dot.
61846         Make sure build_aux settings are honored when linking
61847         gnulib_extra_files.
61848
61849 2007-06-19  Eric Blake  <ebb9@byu.net>
61850
61851         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61852         Allow compilation on cygwin.
61853
61854 2007-06-19  Jim Meyering  <jim@meyering.net>
61855
61856         xreadlink-with-size: Remove module.  No longer used.
61857         Ex-callers now use xreadlink or mreadlink-with-size.
61858         * modules/xreadlink-with-size: Remove module.
61859         * lib/xreadlink-with-size.c: Remove file.
61860         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61861         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61862         just before the function definition *is* accurate.
61863
61864         Eliminate one way canonicalize_filename_mode could exit.
61865         * lib/canonicalize.c (canonicalize_filename_mode):
61866         Use mreadlink_with_size, not xreadlink_with_size.
61867
61868 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61869
61870         Detect porting problems to FreeBSD/arm, which has time_t wider than
61871         long int.  Original problem reported for GNU diff by Xin Li in
61872         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61873         * modules/getdate (Depends-on): Add intprops, verify.
61874         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61875         is an integer type no wider than long int.
61876
61877 2007-06-18  Jim Meyering  <jim@meyering.net>
61878
61879         New module: mreadlink-with-size.
61880         * MODULES.html.sh: Add mreadlink-with-size.
61881         * modules/mreadlink-with-size: New module
61882         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61883         not xreadlink-with-size.
61884         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61885
61886 2007-06-16  Bruno Haible  <bruno@clisp.org>
61887
61888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61889         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61890         Reported by Gary V. Vaughan <gary@gnu.org>.
61891
61892 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         Revamp lchown so that it lives in unistd.h where it belongs.
61895         * lib/lchown.h: Remove.
61896         * lib/dirchownmod.c: Don't include lib/lchown.h.
61897         * lib/fchownat.c: Likewise.
61898         * lib/openat.c: Likewise.
61899         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61900         does not follow symlinks.
61901         (EOPNOTSUPP): Define if not defined.
61902         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61903         is defined to 0.
61904         (lchown): New decl.
61905         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61906         Do not check for lchown decl.
61907         Set REPLACE_LCHOWN.
61908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61909         REPLACE_LCHOWN.
61910         * modules/chown: Make it clear it follows symlinks.
61911         * modules/lchown: Make it clear it doesn't follow symlinks.
61912         (Files): Remove lib/lchown.h
61913         (Depends-on): Add unistd.
61914         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61915         (Include): Include <unistd.h>, not "lchown.h".
61916         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61917         REPLACE_LCHOWN.
61918
61919 2007-06-15  Jim Meyering  <jim@meyering.net>
61920
61921         Change license (GPL to LGPL) of fsusage and dependents.
61922         * modules/fsusage (License): Change to LGPL.
61923         * modules/full-read (License): Likewise.
61924         * modules/full-write (License): Likewise.
61925         * modules/safe-read (License): Likewise.
61926         * modules/safe-write (License): Likewise.
61927
61928 2007-06-14  Ben Pfaff  <blp@gnu.org>
61929
61930         Missing part of allocsa -> malloca transition.
61931         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61932         gl_MALLOCA.
61933
61934 2007-06-12  Bruno Haible  <bruno@clisp.org>
61935
61936         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61937         to ia64, x86_64, i386.
61938         Reported by Eric Blake.
61939
61940 2007-06-12  Bruno Haible  <bruno@clisp.org>
61941
61942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61943         cross-compiling to x86_64.
61944
61945 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61946
61947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61948         glitch reported by Ralf Wildenhues in
61949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61950
61951         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61952         Vin Shelton.
61953
61954 2007-06-11  Bruno Haible  <bruno@clisp.org>
61955
61956         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61957         replacement string.
61958         Reported by Eric Blake.
61959
61960 2007-06-10  Bruno Haible  <bruno@clisp.org>
61961
61962         Prepare vasnprintf code for use with Unicode strings.
61963         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61964         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61965         TYPE_U32_STRING.
61966         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61967         a_u32_string variants.
61968         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61969         * lib/printf-args.c: Don't include config.h and the specification
61970         header if PRINTF_FETCHARGS is already defined.
61971         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61972         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61973         TYPE_U16_STRING, TYPE_U32_STRING.
61974         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61975         u16_directive, u16_directives, u32_directive, u32_directives): New
61976         types.
61977         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61978         New declarations.
61979         * lib/printf-parse.c: Don't include config.h and the specification
61980         header if PRINTF_PARSE is already defined. Eliminate the set of
61981         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61982         them now. Include c-ctype.h.
61983         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61984         directive and CHAR_T_ONLY_ASCII.
61985         * lib/vasnprintf.c: Don't include config.h and the specification header
61986         if VASNPRINTF is already defined.
61987         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61988         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61989         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61990         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61991         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61992         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61993         code accordingly.
61994         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61995         pad_ourselves also in this case, with the 'c' and 's' directives, and
61996         with a different notion of "width".
61997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61998
61999 2007-06-10  Bruno Haible  <bruno@clisp.org>
62000
62001         * modules/unistr/u32-mbsnlen: New file.
62002         * lib/unistr/u32-mbsnlen.c: New file.
62003
62004         * modules/unistr/u16-mbsnlen: New file.
62005         * lib/unistr/u16-mbsnlen.c: New file.
62006
62007         * modules/unistr/u8-mbsnlen: New file.
62008         * lib/unistr/u8-mbsnlen.c: New file.
62009
62010         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
62011         declarations.
62012
62013 2007-06-10  Bruno Haible  <bruno@clisp.org>
62014
62015         * lib/string_.h (mbsnlen): New declaration.
62016         * lib/mbsnlen.c: New file.
62017         * m4/mbsnlen.m4: New file.
62018         * modules/mbsnlen: New file.
62019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
62020         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
62021         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
62022
62023 2007-06-10  Bruno Haible  <bruno@clisp.org>
62024
62025         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
62026
62027 2007-06-10  Bruno Haible  <bruno@clisp.org>
62028
62029         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
62030         * lib/mbuiter.h: Likewise.
62031
62032 2007-06-10  Bruno Haible  <bruno@clisp.org>
62033
62034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
62035         declaration.
62036
62037 2007-06-10  Karl Berry  <karl@gnu.org>
62038
62039         * config/srclist.txt: remove gettext entries, Bruno prefers
62040         to update individually.
62041
62042 2007-06-10  Bruno Haible  <bruno@clisp.org>
62043
62044         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
62045         'maxlen'. Ensure only length + width bytes are allocated, not
62046         length + 1 + width.
62047
62048 2007-06-09  Bruno Haible  <bruno@clisp.org>
62049
62050         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
62051         (CHAR_T): Remove macro.
62052         (VASNPRINTF): Update.
62053
62054 2007-06-09  Bruno Haible  <bruno@clisp.org>
62055
62056         * MODULES.html.sh (Unicode string functions): Add the new modules.
62057
62058         * modules/uniconv/u32-conv-to-enc: New file.
62059         * lib/uniconv/u32-conv-to-enc.c: New file.
62060         * modules/uniconv/u32-conv-to-enc-tests: New file.
62061         * tests/uniconv/test-u32-conv-to-enc.c: New file.
62062
62063         * modules/uniconv/u16-conv-to-enc: New file.
62064         * lib/uniconv/u16-conv-to-enc.c: New file.
62065         * lib/uniconv/u-conv-to-enc.h: New file.
62066         * modules/uniconv/u16-conv-to-enc-tests: New file.
62067         * tests/uniconv/test-u16-conv-to-enc.c: New file.
62068
62069         * modules/uniconv/u8-conv-to-enc: New file.
62070         * lib/uniconv/u8-conv-to-enc.c: New file.
62071         * modules/uniconv/u8-conv-to-enc-tests: New file.
62072         * tests/uniconv/test-u8-conv-to-enc.c: New file.
62073
62074         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62075         u32_conv_to_encoding): New declarations.
62076
62077 2007-06-09  Bruno Haible  <bruno@clisp.org>
62078
62079         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
62080
62081 2007-06-09  Bruno Haible  <bruno@clisp.org>
62082
62083         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
62084         * modules/malloca: Renamed from modules/allocsa, updated.
62085         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
62086         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
62087         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
62088         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
62089         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
62090         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
62091         * modules/xmalloca: Renamed from modules/xallocsa, updated.
62092         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
62093         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
62094         * modules/c-strcasestr (Depends-on): Update.
62095         * lib/c-strcasestr.c: Update.
62096         * modules/c-strstr (Depends-on): Update.
62097         * lib/c-strstr.c: Update.
62098         * modules/canonicalize-lgpl (Depends-on): Update.
62099         * lib/canonicalize-lgpl.c: Update.
62100         * modules/clean-temp (Depends-on): Update.
62101         * lib/clean-temp.c: Update.
62102         * modules/csharpcomp (Depends-on): Update.
62103         * lib/csharpcomp.c: Update.
62104         * modules/csharpexec (Depends-on): Update.
62105         * lib/csharpexec.c: Update.
62106         * modules/javacomp (Depends-on): Update.
62107         * lib/javacomp.c: Update.
62108         * modules/javaexec (Depends-on): Update.
62109         * lib/javaexec.c: Update.
62110         * modules/mbscasestr (Depends-on): Update.
62111         * lib/mbscasestr.c: Update.
62112         * modules/mbsstr (Depends-on): Update.
62113         * lib/mbsstr.c: Update.
62114         * modules/setenv (Depends-on): Update.
62115         * lib/setenv.c: Update.
62116         * modules/strcasestr (Depends-on): Update.
62117         * lib/strcasestr.c: Update.
62118         * modules/striconveha (Depends-on): Update.
62119         * lib/striconveha.c: Update.
62120         * modules/relocatable-prog-wrapper (Files): Update.
62121         * lib/relocwrapper.c: Update.
62122         * build-aux/install-reloc: Update.
62123         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
62124
62125 2007-06-08  Bruno Haible  <bruno@clisp.org>
62126
62127         Port to uClibc.
62128         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
62129         * lib/fpurge.c (fpurge): Likewise.
62130         * lib/freading.c (freading): Likewise.
62131         * lib/fseeko.c (rpl_fseeko): Likewise.
62132         * lib/fseterr.c (fseterr): Likewise.
62133         * lib/fwriting.c (fwriting): Likewise.
62134         * tests/test-fflush.c (main): Avoid a failure on uClibc.
62135
62136 2007-06-08  Bruno Haible  <bruno@clisp.org>
62137
62138         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
62139         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
62140         * modules/gettext (Files): Add m4/intlmacosx.m4.
62141
62142 2007-06-07  Bruno Haible  <bruno@clisp.org>
62143
62144         * modules/localename-tests: New file.
62145         * tests/test-localename.c: New file.
62146
62147         New module 'localename'.
62148         * lib/localename.h: New file.
62149         * lib/localename.c: New file, from GNU gettext.
62150         * m4/localename.m4: New file.
62151         * modules/localename: New file.
62152
62153 2007-06-07  Bruno Haible  <bruno@clisp.org>
62154
62155         Work around the lack of <wchar.h> on some builds of uClibc.
62156         * doc/headers/wchar.texi: Update.
62157         * lib/wchar_.h: Include <wchar.h> only if it exists.
62158         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
62159         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
62160         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
62161         doesn't exist.
62162         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
62163         * modules/mbfile (Depends-on): Add wchar.
62164         * modules/mbiter (Depends-on): Likewise.
62165         * modules/mbuiter (Depends-on): Likewise.
62166         Reported by Simon Josefsson.
62167
62168 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         Work around problem reported by Steven M. Schweda in
62171         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
62172         Tru64 5.1B with the Compaq compiler environment installed declares
62173         an 'isblank' function but does not define it in the C library.
62174         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
62175         * lib/regex_internal.h (isblank): Likewise.
62176         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
62177         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62178
62179 2007-06-05  Bruno Haible  <bruno@clisp.org>
62180
62181         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
62182         ia64.
62183         * modules/printf-safe: New file.
62184         * modules/fprintf-posix (Depends-on): Add printf-safe.
62185         * modules/printf-posix (Depends-on): Likewise.
62186         * modules/snprintf-posix (Depends-on): Likewise.
62187         * modules/sprintf-posix (Depends-on): Likewise.
62188         * modules/vasnprintf-posix (Depends-on): Likewise.
62189         * modules/vasprintf-posix (Depends-on): Likewise.
62190         * modules/vfprintf-posix (Depends-on): Likewise.
62191         * modules/vprintf-posix (Depends-on): Likewise.
62192         * modules/vsnprintf-posix (Depends-on): Likewise.
62193         * modules/vsprintf-posix (Depends-on): Likewise.
62194         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
62195         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
62196         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
62197         "no" on i386, x86_64, ia64.
62198         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
62199         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62200         on i386, x86_64, ia64.
62201         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
62202         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62203         on i386, x86_64, ia64.
62204         * tests/test-vasnprintf-posix.c: Include float.h.
62205         (LDBL80_WORDS): New macro.
62206         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62207         on i386, x86_64, ia64.
62208         * tests/test-vasprintf-posix.c: Include float.h.
62209         (LDBL80_WORDS): New macro.
62210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62211         on i386, x86_64, ia64.
62212         * tests/test-snprintf-posix.c: Include float.h.
62213         * tests/test-sprintf-posix.c: Likewise.
62214         * tests/test-vsnprintf-posix.c: Likewise.
62215         * tests/test-vsprintf-posix.c: Likewise.
62216
62217 2007-06-05  Bruno Haible  <bruno@clisp.org>
62218
62219         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
62220         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
62221         non-IEEE numbers on i386, x86_64, ia64.
62222         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
62223         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
62224         * tests/test-isnanl.h: Include float.h.
62225         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
62226
62227 2007-06-05  Bruno Haible  <bruno@clisp.org>
62228
62229         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
62230         also the %a / %A. Handle the %a / %A code before this extra handling.
62231
62232 2007-06-05  Bruno Haible  <bruno@clisp.org>
62233
62234         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
62235         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
62236
62237 2007-06-05  Bruno Haible  <bruno@clisp.org>
62238
62239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
62240         typo in variable name.
62241
62242 2007-06-05  Eric Blake  <ebb9@byu.net>
62243
62244         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
62245         Reported by Simon Josefsson.
62246
62247 2007-06-04  Bruno Haible  <bruno@clisp.org>
62248
62249         Avoid test failures on some PowerPC platforms.
62250         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
62251         Define differently for PowerPC.
62252         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
62253         Reported by Gary V. Vaughan <gary@gnu.org>.
62254
62255 2007-06-02  Bruno Haible  <bruno@clisp.org>
62256
62257         Fix test-stdint failure on FreeBSD/ia64.
62258         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
62259         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
62260         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
62261         * doc/headers/stdint.texi: Update.
62262
62263 2007-06-01  Bruno Haible  <bruno@clisp.org>
62264
62265         * tests/test-binary-io.c (main): Pass a third argument to open().
62266         Reported by Gary V. Vaughan <gary@gnu.org>.
62267
62268 2007-06-01  Bruno Haible  <bruno@clisp.org>
62269
62270         * doc/functions/frexpl.texi: Update for mingw.
62271
62272 2007-06-01  Bruno Haible  <bruno@clisp.org>
62273
62274         * tests/test-lseek.c (main): Disable test of errno for invalid third
62275         argument.
62276         * doc/functions/lseek.texi: Update.
62277         Reported by Gary V. Vaughan <gary@gnu.org>.
62278
62279 2007-05-28  Bruno Haible  <bruno@clisp.org>
62280
62281         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
62282
62283 2007-05-31  Eric Blake  <ebb9@byu.net>
62284
62285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
62286         cross compiling.
62287
62288 2007-05-30  Eric Blake  <ebb9@byu.net>
62289         and Bruno Haible  <bruno@clisp.org>
62290
62291         Work around mingw test failures exposed by m4-1.4.9b.
62292         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
62293         * tests/test-unistd.c: Disable uid_t and git_t tests for the
62294         moment.
62295
62296 2007-05-30  Bruno Haible  <bruno@clisp.org>
62297
62298         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
62299         assuming that they are closed. Needed on HP-UX 11.
62300
62301 2007-05-29  Bruno Haible  <bruno@clisp.org>
62302
62303         Fix a problem with #include_next.
62304         * lib/dirent_.h: Split the double-inclusion guard.
62305         * lib/fcntl_.h: Likewise.
62306         * lib/float_.h: Likewise.
62307         * lib/iconv_.h: Likewise.
62308         * lib/inttypes_.h: Likewise.
62309         * lib/locale_.h: Likewise.
62310         * lib/math_.h: Likewise.
62311         * lib/netinet_in_.h: Likewise.
62312         * lib/search_.h: Likewise.
62313         * lib/signal_.h: Likewise.
62314         * lib/stdint_.h: Likewise.
62315         * lib/stdio_.h: Likewise.
62316         * lib/stdlib_.h: Likewise.
62317         * lib/string_.h: Likewise.
62318         * lib/sys_select_.h: Likewise.
62319         * lib/sys_socket_.h: Likewise.
62320         * lib/sys_stat_.h: Likewise.
62321         * lib/sys_time_.h: Likewise.
62322         * lib/sysexits_.h: Likewise.
62323         * lib/time_.h: Likewise.
62324         * lib/unistd_.h: Likewise.
62325         * lib/wchar_.h: Likewise.
62326         * lib/wctype_.h: Likewise.
62327
62328 2007-05-29  Bruno Haible  <bruno@clisp.org>
62329
62330         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
62331         for the moment.
62332
62333 2007-05-29  Bruno Haible  <bruno@clisp.org>
62334
62335         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
62336         invocation.
62337         Reported by Eric Blake.
62338
62339 2007-05-29  Bruno Haible  <bruno@clisp.org>
62340
62341         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
62342         compiling case.
62343
62344 2007-05-29  Eric Blake  <ebb9@byu.net>
62345             Bruno Haible  <bruno@clisp.org>
62346
62347         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
62348         cross compiles.
62349
62350 2007-05-28  Eric Blake  <ebb9@byu.net>
62351
62352         * modules/closein-tests (test_closein_LDADD): Support test on
62353         cygwin with libtool.
62354
62355 2007-05-28  Bruno Haible  <bruno@clisp.org>
62356
62357         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
62358         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62359         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62360         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62361         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62362         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62363         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62364         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62365         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62366
62367 2007-05-28  Eric Blake  <ebb9@byu.net>
62368
62369         Unconditionally include <config.h> in unit tests.
62370         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
62371         * tests/test-allocsa.c, tests/test-arcfour.c,
62372         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
62373         tests/test-array_list.c, tests/test-array_oset.c,
62374         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
62375         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
62376         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
62377         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
62378         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
62379         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
62380         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
62381         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
62382         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
62383         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
62384         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
62385         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
62386         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
62387         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
62388         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
62389         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
62390         test-md5.c, test-memmem.c, test-printf-posix.c,
62391         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
62392         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
62393         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
62394         test-strcasestr.c, test-striconv.c, test-striconveh.c,
62395         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
62396         test-vasnprintf-posix2.c, test-vasnprintf.c,
62397         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
62398         test-vfprintf-posix.c, test-vprintf-posix.c,
62399         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
62400         test-xvasprintf.c: Likewise.
62401
62402 2007-05-28  Bruno Haible  <bruno@clisp.org>
62403
62404         * gnulib-tool (func_import): Remember the --with-tests command-line
62405         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
62406         Reported by Eric Blake.
62407
62408 2007-05-28  Bruno Haible  <bruno@clisp.org>
62409
62410         * modules/ftell-tests: New file.
62411         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
62412         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
62413
62414         * lib/ftell.c: New file.
62415         * modules/ftell: New file.
62416         * m4/ftell.m4: New file.
62417         * doc/functions/ftell.texi: Update.
62418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
62419         REPLACE_FTELL.
62420         * lib/stdio_.h (rpl_ftell): New declaration.
62421         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
62422         REPLACE_FTELL.
62423
62424 2007-05-28  Eric Blake  <ebb9@byu.net>
62425
62426         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
62427
62428 2007-05-28  Bruno Haible  <bruno@clisp.org>
62429
62430         * modules/fseek-tests: New file.
62431         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
62432         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
62433
62434         * lib/fseek.c: New file.
62435         * modules/fseek: New file.
62436         * m4/fseek.m4: New file.
62437         * doc/functions/fseek.texi: Update.
62438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
62439         REPLACE_FSEEK.
62440         * lib/stdio_.h (rpl_fseek): New declaration.
62441         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
62442         REPLACE_FSEEK.
62443
62444 2007-05-28  Bruno Haible  <bruno@clisp.org>
62445
62446         * lib/stdio_.h (fflush): More comments.
62447
62448 2007-05-28  Bruno Haible  <bruno@clisp.org>
62449
62450         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
62451         runtime test.
62452
62453 2007-05-28  Eric Blake  <ebb9@byu.net>
62454
62455         Improve lseek module.
62456         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
62457         * lib/unistd_.h (lseek): Scale back link warning message.
62458         * tests/test-lseek.c: Beef up test.
62459         * tests/test-lseek.sh: Exercise more facets of lseek.
62460         Reported by Bruno Haible.
62461
62462 2007-05-28  Bruno Haible  <bruno@clisp.org>
62463
62464         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
62465         to define.
62466
62467 2007-05-27  Bruno Haible  <bruno@clisp.org>
62468
62469         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
62470
62471 2007-05-27  Bruno Haible  <bruno@clisp.org>
62472
62473         * modules/openmp: New file.
62474         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
62475         Noah Misch.
62476
62477 2007-05-26  Bruno Haible  <bruno@clisp.org>
62478
62479         * modules/chdir-long (Depends-on): Add fchdir.
62480         * modules/chdir-safer (Depends-on): Likewise.
62481         * modules/fts (Depends-on): Likewise.
62482         * modules/fts-lgpl (Depends-on): Likewise.
62483         * modules/openat (Depends-on): Likewise.
62484         * modules/savewd (Depends-on): Likewise.
62485
62486 2007-05-24  Eric Blake  <ebb9@byu.net>
62487
62488         Fix lseek on mingw.
62489         * modules/lseek: New module.
62490         * m4/lseek.m4: New file.
62491         * lib/lseek.c: New file.
62492         * modules/lseek-tests: New file.
62493         * tests/test-lseek.c: New file.
62494         * tests/test-lseek.sh: New file.
62495         * MODULES.html.sh: Document lseek module.
62496         * modules/fflush (Depends-on): Add lseek, fseeko.
62497         * modules/fseeko (Depends-on): Likewise.
62498         * modules/ftello (Depends-on): Likewise.
62499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
62500         broken.
62501         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
62502         broken.
62503         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
62504         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
62505         * lib/ftello.c (rpl_ftello): Likewise.
62506         * tests/test-fseeko.c (main): Test this.
62507         * tests/test-fseeko.sh: Likewise.
62508         * tests/test-ftello.c (main): Likewise.
62509         * tests/test-ftello.sh: Likewise.
62510         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
62511         implies replacing fseek.
62512         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
62513         HAVE_FTELLO.
62514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
62515         * modules/unistd (Makefile.am): Likewise.
62516         * lib/unistd_.h (lseek): Declare a replacement.
62517         * doc/functions/lseek.texi (lseek): Document this fix.
62518         * doc/functions/fseek.texi (fseek): Likewise.
62519         * doc/functions/ftell.texi (ftell): Likewise.
62520
62521 2007-05-24  Bruno Haible  <bruno@clisp.org>
62522
62523         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
62524         in the printed representation of a NaN.
62525         * tests/test-vasprintf-posix.c (test_function): Likewise.
62526         * tests/test-snprintf-posix.h (test_function): Likewise.
62527         * tests/test-sprintf-posix.h (test_function): Likewise.
62528         Reported by Eric Blake.
62529
62530 2007-05-23  Eric Blake  <ebb9@byu.net>
62531
62532         Fix fseeko/ftello on cygwin 1.5.24.
62533         * doc/functions/fseeko.texi (fseeko): Document the fix.
62534         * doc/functions/ftello.texi (ftello): Document the fix.
62535         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
62536         * doc/functions/stdout.text (stdout): New file.
62537         * doc/functions/stderr.text (stderr): New file.
62538         * doc/gnulib.texi (Function Substitutes): Use new files.
62539         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
62540         prior to 1.7.0.
62541         * tests/test-ftello.c (main): Likewise for ftello.
62542         * tests/test-fseeko.sh: New file.
62543         * tests/test-ftello.sh: New file.
62544         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
62545         with seekable stdin.
62546         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
62547         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
62548         (gl_REPLACE_FSEEKO): New macro.
62549         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
62550         * modules/fseeko (Files): Distribute fseeko.c.
62551         * modules/ftello (Files): Distribute ftello.c.
62552         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
62553         mode.
62554         * lib/ftello.c (rpl_ftello): New file.
62555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
62556         fseeko, ftello.
62557         (gl_STDIN_LARGE_OFFSET): New macro.
62558         * modules/stdio (Makefile.am): Perform the replacement.
62559         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
62560
62561 2007-05-23  Bruno Haible  <bruno@clisp.org>
62562
62563         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
62564         GNULIB_POSIXCHECK is defined.
62565
62566 2007-05-21  Bruno Haible  <bruno@clisp.org>
62567
62568         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
62569         Check also the output for NaN arguments. When cross-compiling, guess
62570         no on IRIX.
62571         * lib/vasnprintf.c: Update comments.
62572         * tests/test-vasnprintf-posix.c (strisnan): New function.
62573         (test_function): Use it.
62574         * tests/test-vasprintf-posix.c (strisnan): New function.
62575         (test_function): Use it.
62576         * tests/test-snprintf-posix.h (strisnan): New function.
62577         (test_function): Use it.
62578         * tests/test-sprintf-posix.h (strisnan): New function.
62579         (test_function): Use it.
62580         Reported by Eric Blake.
62581
62582 2007-05-20  Bruno Haible  <bruno@clisp.org>
62583
62584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
62585         numbers that fails on BeOS.
62586         * doc/functions/frexpl.texi: Update.
62587
62588 2007-05-20  Jim Meyering  <jim@meyering.net>
62589
62590         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
62591         forced upon us by glibc-2.6.
62592
62593 2007-05-20  Bruno Haible  <bruno@clisp.org>
62594
62595         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
62596         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
62597         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
62598         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
62599         NEED_PRINTF_INFINITE.
62600         (is_infinitel): New function.
62601         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
62602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
62603         gl_PREREQ_VASNPRINTF_INFINITE.
62604         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
62605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62606         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
62607         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
62608         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
62609         gl_PREREQ_VASNPRINTF_INFINITE.
62610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62617         * doc/functions/fprintf.texi: Update.
62618         * doc/functions/printf.texi: Update.
62619         * doc/functions/snprintf.texi: Update.
62620         * doc/functions/sprintf.texi: Update.
62621         * doc/functions/vfprintf.texi: Update.
62622         * doc/functions/vprintf.texi: Update.
62623         * doc/functions/vsnprintf.texi: Update.
62624         * doc/functions/vsprintf.texi: Update.
62625
62626 2007-05-20  Bruno Haible  <bruno@clisp.org>
62627
62628         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
62629         was not found in libc.
62630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62631
62632 2007-05-20  Bruno Haible  <bruno@clisp.org>
62633
62634         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62635         printed as "-nan" instead of "nan".
62636         * tests/test-vasprintf-posix.c (test_function): Likewise.
62637         * tests/test-snprintf-posix.h (test_function): Likewise.
62638         * tests/test-sprintf-posix.h (test_function): Likewise.
62639         Needed for HP-UX 11.
62640
62641 2007-05-20  Jim Meyering  <jim@meyering.net>
62642
62643         Fix buggy test for the fchownat-deref bug.
62644         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
62645         symlink required for the run-test.  Without it, this test would
62646         always declare that fchownat doesn't work, and client code would
62647         unnecessarily use the replacement function with fixed libc.
62648         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
62649         Reported by Greg Schafer.
62650
62651 2007-05-19  Bruno Haible  <bruno@clisp.org>
62652
62653         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
62654         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
62655         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
62656         Needed for IRIX 6.5 and Solaris 2.5.1.
62657
62658 2007-05-19  Bruno Haible  <bruno@clisp.org>
62659
62660         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
62661         (test_function): Skip tests involving -0.0 on platforms where
62662         -0.0 = 0.0.
62663         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
62664         (test_function): Skip tests involving -0.0 on platforms where
62665         -0.0 = 0.0.
62666         * tests/test-snprintf-posix.h (have_minus_zero): New function.
62667         (test_function): Skip tests involving -0.0 on platforms where
62668         -0.0 = 0.0.
62669         * tests/test-sprintf-posix.h (have_minus_zero): New function.
62670         (test_function): Skip tests involving -0.0 on platforms where
62671         -0.0 = 0.0.
62672         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
62673         tests.
62674         * tests/test-printf-posix.h (test_function): Likewise.
62675         * tests/test-printf-posix.output: Remove all -0.0 related results.
62676         Needed for IRIX 6.5.
62677
62678 2007-05-19  Bruno Haible  <bruno@clisp.org>
62679
62680         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62681         printed as "nan0x7fffffff" instead of "nan".
62682         * tests/test-vasprintf-posix.c (test_function): Likewise.
62683         * tests/test-snprintf-posix.h (test_function): Likewise.
62684         * tests/test-sprintf-posix.h (test_function): Likewise.
62685         * tests/test-fprintf-posix.h (NaN): Remove macro.
62686         (test_function): Remove all NaN related tests.
62687         * tests/test-printf-posix.h (NaN): Remove macro.
62688         (test_function): Remove all NaN related tests.
62689         * tests/test-printf-posix.output: Remove all NaN related results.
62690         Needed for IRIX 6.5.
62691
62692 2007-05-19  Bruno Haible  <bruno@clisp.org>
62693
62694         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
62695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62696
62697 2007-05-19  Bruno Haible  <bruno@clisp.org>
62698
62699         * lib/float_.h: New file.
62700         * m4/float_h.m4: New file.
62701         * modules/float: New file.
62702         * modules/isnanl (Dependencies): Add float.
62703         * modules/isnanl-nolibm (Dependencies): Likewise.
62704         * modules/mathl (Dependencies): Likewise.
62705         * modules/printf-frexpl (Dependencies): Likewise.
62706         * modules/signbit (Dependencies): Likewise.
62707         * modules/vasnprintf (Dependencies): Likewise.
62708         * doc/headers/float.texi: Update.
62709
62710 2007-05-19  Jim Meyering  <jim@meyering.net>
62711
62712         * lib/utimens.c (gl_futimens): Rename from futimens,
62713         now that glibc-2.6 declares futimens.
62714         * lib/utimens.h: Likewise.
62715
62716 2007-05-19  Bruno Haible  <bruno@clisp.org>
62717
62718         Avoid test failures on mingw.
62719         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
62720         * tests/test-printf-posix.sh: Likewise.
62721         * tests/test-vfprintf-posix.sh: Likewise.
62722         * tests/test-vprintf-posix.sh: Likewise.
62723
62724 2007-05-19  Bruno Haible  <bruno@clisp.org>
62725
62726         Fix *printf result for NaN, Inf, -0.0 on mingw.
62727         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
62728         * lib/vasnprintf.c: Include math.h and isnan.h.
62729         (is_infinite_or_zero): New function.
62730         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
62731         values in the %f, %F, %e, %E, %g, %G directives.
62732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
62733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62734         gl_PRINTF_INFINITE and test its result. Invoke
62735         gl_PREREQ_VASNPRINTF_INFINITE.
62736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62743         * doc/functions/fprintf.texi: Update.
62744         * doc/functions/printf.texi: Update.
62745         * doc/functions/snprintf.texi: Update.
62746         * doc/functions/sprintf.texi: Update.
62747         * doc/functions/vfprintf.texi: Update.
62748         * doc/functions/vprintf.texi: Update.
62749         * doc/functions/vsnprintf.texi: Update.
62750         * doc/functions/vsprintf.texi: Update.
62751
62752 2007-05-19  Bruno Haible  <bruno@clisp.org>
62753
62754         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
62755         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
62756         Instead of multiplying with 10^k, set extra_zeroes to k.
62757         (scale10_round_long_double): Remove function.
62758
62759 2007-05-18  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
62762         introduced on 2007-05-06.
62763
62764 2007-05-18  Bruno Haible  <bruno@clisp.org>
62765
62766         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
62767         %g directives.
62768         * tests/test-vasprintf-posix.c (test_function): Likewise.
62769         * tests/test-snprintf-posix.h (test_function): Likewise.
62770         * tests/test-sprintf-posix.h (test_function): Likewise.
62771
62772 2007-05-18  Bruno Haible  <bruno@clisp.org>
62773
62774         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
62775         (strmatch): New function.
62776         (test_function): Test the %f directive on numbers of various exponents.
62777         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
62778         (strmatch): New function.
62779         (test_function): Test the %f directive on numbers of various exponents.
62780         * tests/test-snprintf-posix.h (strmatch): New function.
62781         (test_function): Test the %f directive on numbers of various exponents.
62782         * tests/test-sprintf-posix.h (strmatch): New function.
62783         (test_function): Test the %f directive on numbers of various exponents.
62784         * tests/test-snprintf-posix.c (SIZEOF): New macro.
62785         * tests/test-sprintf-posix.c (SIZEOF): New macro.
62786         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
62787         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
62788
62789 2007-05-18  Bruno Haible  <bruno@clisp.org>
62790
62791         Add support for 'long double' number output.
62792         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
62793         * lib/vasnprintf.c: Include math.h and float+.h.
62794         (mp_limb_t): New type.
62795         (GMP_LIMB_BITS): New macro.
62796         (mp_twolimb_t): New type.
62797         (GMP_TWOLIMB_BITS): New macro.
62798         (mpn_t): New type.
62799         (multiply, divide, convert_to_decimal, decode_long_double,
62800         scale10_round_long_double, scale10_round_decimal_long_double,
62801         floorlog10l): New functions.
62802         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
62803         for the %f, %F, %e, %E, %g, %G directives.
62804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
62805         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62806         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62807         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62811         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62812         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62814         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62815         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62816         * modules/snprintf-posix (Depends-on): Likewise.
62817         * modules/sprintf-posix (Depends-on): Likewise.
62818         * modules/vasnprintf-posix (Depends-on): Likewise.
62819         * modules/vasprintf-posix (Depends-on): Likewise.
62820         * modules/vfprintf-posix (Depends-on): Likewise.
62821         * modules/vsnprintf-posix (Depends-on): Likewise.
62822         * modules/vsprintf-posix (Depends-on): Likewise.
62823         * modules/vasnprintf (Files): Add lib/float+.h.
62824         * doc/functions/fprintf.texi: Update.
62825         * doc/functions/printf.texi: Update.
62826         * doc/functions/snprintf.texi: Update.
62827         * doc/functions/sprintf.texi: Update.
62828         * doc/functions/vfprintf.texi: Update.
62829         * doc/functions/vprintf.texi: Update.
62830         * doc/functions/vsnprintf.texi: Update.
62831         * doc/functions/vsprintf.texi: Update.
62832
62833 2007-05-18  Bruno Haible  <bruno@clisp.org>
62834
62835         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62836
62837 2007-05-18  Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62840         for printing 64-bit integers. Needed for mingw.
62841
62842 2007-05-18  Bruno Haible  <bruno@clisp.org>
62843
62844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62845         gl_FUNC_FREXPL_WORKS.
62846         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62847
62848 2007-05-18  Bruno Haible  <bruno@clisp.org>
62849
62850         * modules/frexpl-nolibm-tests: New file.
62851
62852         * modules/frexpl-nolibm: New file.
62853         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62854
62855 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62856
62857         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62858         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62859         GCC 4.2, which otherwise issues a lot of warnings.
62860         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62861         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62862         Likewise.
62863         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62864         * modules/iconv_open (iconv.h): Likewise.
62865         * modules/locale (locale.h): Likewise.
62866         * modules/netinet_in (netinet/in.h): Likewise.
62867         * modules/sys_select (sys_select.h): Likewise.
62868         * modules/sys_socket (sys/socket.h): Likewise.
62869         * modules/sys_stat (sys/stat.h): Likewise.
62870         * modules/sysexits (sysexits.h): Likewise.
62871         * modules/unistd (unistd.h): Likewise.
62872
62873 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62874
62875         * modules/closein-tests (Makefile.am): Distribute
62876         `test-closein.sh'.
62877
62878 2007-05-17  Bruno Haible  <bruno@clisp.org>
62879
62880         * tests/test-printf-posix.output: Renamed from
62881         tests/test-fprintf-posix.out.
62882         * modules/fprintf-posix-tests: Update.
62883         * modules/printf-posix-tests: Update.
62884         * modules/vfprintf-posix-tests: Update.
62885         * modules/vprintf-posix-tests: Update.
62886         * tests/test-fprintf-posix.sh: Update.
62887         * tests/test-printf-posix.sh: Update.
62888         * tests/test-vfprintf-posix.sh: Update.
62889         * tests/test-vprintf-posix.sh: Update.
62890         Reported by Ralf Wildenhues.
62891
62892 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62895         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62896         GCC 4.2, which otherwise issues a lot of warnings.
62897         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62898         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62899         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62900         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62901         it should no longer be needed.
62902         * lib/string_.h: Likewise.
62903         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62904         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62905         * modules/inttypes (inttypes.h): Likewise.
62906         * modules/math (math.h): Likewise.
62907         * modules/search (search.h): Likewise.
62908         * modules/signal (signal.h): Likewise.
62909         * modules/stdint (stdint.h): Likewise.
62910         * modules/stdio (stdio.h): Likewise.
62911         * modules/stdlib (stdlib.h): Likewise.
62912         * modules/string (string.h): Likewise.
62913         * modules/sys_time (sys/time.h): Likewise.
62914         * modules/time (time.h): Likewise.
62915         * modules/wchar (wchar.h): Likewise.
62916         * modules/wctype (wtype.h): Likewise.
62917
62918 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62919
62920         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62921
62922 2007-05-13  Bruno Haible  <bruno@clisp.org>
62923
62924         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62925         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62926         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62927         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62928         (gl_PREREQ_STRTOK_R): Don't require it here.
62929
62930 2007-05-13  Bruno Haible  <bruno@clisp.org>
62931
62932         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62933         when used in C++ mode.
62934
62935 2007-05-12  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/linebuffer.h: Tweak doc.
62938         * lib/linebuffer.c: Likewise.
62939
62940 2007-05-12  James Youngman  <jay@gnu.org>
62941
62942         * lib/linebuffer.c (readlinebuffer_delim): New function,
62943         like readlinebuffer, but use a caller-specified delimiter.
62944         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62945         as the delimiter.
62946         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62947
62948 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62949
62950         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62951         * modules/openat (Files): Remove openat-die.c.
62952         (Depends-on): Add openat-die.
62953         * modules/openat-die: New module.
62954
62955 2007-05-06  Bruno Haible  <bruno@clisp.org>
62956
62957         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62958         Update with info about Cygwin.
62959         * doc/functions/fprintf.texi: Update.
62960         * doc/functions/printf.texi: Update.
62961         * doc/functions/snprintf.texi: Update.
62962         * doc/functions/sprintf.texi: Update.
62963         * doc/functions/vfprintf.texi: Update.
62964         * doc/functions/vprintf.texi: Update.
62965         * doc/functions/vsnprintf.texi: Update.
62966         * doc/functions/vsprintf.texi: Update.
62967         Reported by Eric Blake.
62968
62969 2007-05-06  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62972         padding ourselves for the floating-point directives.
62973         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62976         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62977         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62985         * tests/test-snprintf-posix.h (test_function): Also check the width
62986         and some flags in the %f directive.
62987         * tests/test-sprintf-posix.h (test_function): Likewise.
62988         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62989         * tests/test-vasprintf-posix.c (test_function): Likewise.
62990         * doc/functions/fprintf.texi: Update.
62991         * doc/functions/printf.texi: Update.
62992         * doc/functions/snprintf.texi: Update.
62993         * doc/functions/sprintf.texi: Update.
62994         * doc/functions/vfprintf.texi: Update.
62995         * doc/functions/vprintf.texi: Update.
62996         * doc/functions/vsnprintf.texi: Update.
62997         * doc/functions/vsprintf.texi: Update.
62998
62999 2007-05-06  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
63002         pass the ' flag character to sprintf or snprintf.
63003         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
63004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
63005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63006         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
63007         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
63008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63015         * tests/test-snprintf-posix.h (test_function): Also check the grouping
63016         flag.
63017         * tests/test-sprintf-posix.h (test_function): Likewise.
63018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63019         * tests/test-vasprintf-posix.c (test_function): Likewise.
63020         * doc/functions/fprintf.texi: Update.
63021         * doc/functions/printf.texi: Update.
63022         * doc/functions/snprintf.texi: Update.
63023         * doc/functions/sprintf.texi: Update.
63024         * doc/functions/vfprintf.texi: Update.
63025         * doc/functions/vprintf.texi: Update.
63026         * doc/functions/vsnprintf.texi: Update.
63027         * doc/functions/vsprintf.texi: Update.
63028
63029 2007-05-01  Bruno Haible  <bruno@clisp.org>
63030
63031         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
63032
63033 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
63036         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
63037
63038 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63039
63040         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
63041         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
63042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
63043
63044 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
63045
63046         * lib/argp-help.c (struct hol_entry): New member `ord'.
63047         (HOL_ENTRY_PTRCMP): Use ord for comparison
63048         (hol_sort): Initialize ord.
63049
63050 2007-05-01  Bruno Haible  <bruno@clisp.org>
63051
63052         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
63053         Reported by Eric Blake.
63054         * doc/gnulib.texi (Function Substitutes): Update.
63055
63056 2007-05-01  Bruno Haible  <bruno@clisp.org>
63057
63058         * doc/functions.texi: Remove file, now redundant through
63059         doc/functions/*.texi.
63060
63061 2007-05-01  Bruno Haible  <bruno@clisp.org>
63062
63063         * modules/argp (Depends-on): Add sleep.
63064
63065 2007-05-01  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/sleep-tests: New file.
63068         * tests/test-sleep.c: New file.
63069
63070         * modules/sleep: New file.
63071         * lib/sleep.c: New file.
63072         * m4/sleep.m4: New file.
63073         * lib/unistd_.h (sleep): New declaration.
63074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
63075         HAVE_SLEEP.
63076         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
63077         * doc/functions/sleep.texi: Document the sleep module.
63078
63079 2007-05-01  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/sigprocmask.h: Remove file.
63082         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
63083         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
63084         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
63085         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
63086         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
63087         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
63088         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
63089         HAVE_SIGSET_T as a shell variable.
63090         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
63091         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
63092         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
63093         (Depends-on): Add signal. Remove verify.
63094         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
63095         (Include): Mention <signal.h> instead of sigprocmask.h.
63096         * NEWS: Mention the change.
63097         * lib/fatal-signal.c: Don't include sigprocmask.h.
63098
63099 2007-05-01  Bruno Haible  <bruno@clisp.org>
63100
63101         * modules/signal: New file.
63102         * lib/signal_.h: New file.
63103         * m4/signal_h.m4: New file.
63104
63105 2007-05-01  Bruno Haible  <bruno@clisp.org>
63106
63107         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
63108         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
63109         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
63110         HAVE_WCTYPE_CTMP_BUG into wctype.h.
63111
63112 2007-05-01  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
63115         configure time.
63116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
63117         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
63118         * modules/sys_stat (Makefile.am): Substitute their values into
63119         sys/stat.h.
63120
63121 2007-05-01  Bruno Haible  <bruno@clisp.org>
63122
63123         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
63124         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
63125         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
63126
63127 2007-05-01  Bruno Haible  <bruno@clisp.org>
63128
63129         * doc/header/assert.texi: Undo last change: don't mention the gnulib
63130         'assert' module here.
63131
63132 2007-05-01  Bruno Haible  <bruno@clisp.org>
63133
63134         * doc/functions/*.texi: New files.
63135         * doc/functions/google-ranking.txt: New file.
63136         * doc/gnulib.texi (Function Substitutes): New chapter.
63137         (ctime, inet_ntoa): Remove sections.
63138         * doc/ctime.texi: Remove file.
63139         * doc/inet_ntoa.texi: Remove file.
63140         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
63141         dependencies.
63142         (%.info): New rule, specifying a --reference-limit.
63143
63144 2007-05-01  Bruno Haible  <bruno@clisp.org>
63145
63146         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
63147
63148 2007-05-01  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
63151         the portability of 'mkdir' to mingw systems.
63152
63153 2007-05-01  Bruno Haible  <bruno@clisp.org>
63154
63155         * doc/headers/google-ranking.txt: New file.
63156
63157 2007-04-30  Eric Blake  <ebb9@byu.net>
63158
63159         Prefer fseeko to fseek.
63160         * modules/getpass (Depends-on): Add fseeko.
63161         * lib/getpass.c (getpass): Use fseeko, not fseek.
63162
63163 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
63164
63165         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
63166         assumes the sorting is stable, while most qsort implementations
63167         are not.  Use argument addresses to ensure they never compare as
63168         equal.
63169
63170         * tests/test-argp-2.sh (usage-indent test): Fix output
63171         (func_compare): Restore diff options
63172         * tests/test-argp.c: Restore #include "progname.h"
63173
63174 2007-04-29  Bruno Haible  <bruno@clisp.org>
63175
63176         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
63177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63178         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
63179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63180         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
63181         (configure.ac): Define CHECK_SNPRINTF_POSIX.
63182         (TESTS, check_PROGRAMS): Add test-snprintf.
63183         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
63184         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
63185         (TESTS, check_PROGRAMS): Add test-vsnprintf.
63186         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
63187         assertions that fail on HP-UX, OSF/1, or IRIX.
63188         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
63189
63190 2007-04-29  Bruno Haible  <bruno@clisp.org>
63191
63192         * MODULES.html.sh (posix_functions): Remove 'contents'.
63193
63194 2007-04-29  Karl Berry  <karl@gnu.org>
63195
63196         * config/srclist.txt (gendocs_template_min): new entry.
63197
63198 2007-04-29  Bruno Haible  <bruno@clisp.org>
63199
63200         Work around fpurge bug on BSD systems.
63201         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
63202         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
63203         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
63204         fpurge to rpl_fpurge if the system already has this function.
63205         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
63206         the case where the system already has this function. Correct invariants
63207         on BSD systems.
63208         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
63209         BSD systems.
63210
63211 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
63212
63213         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
63214         proposed by Sven Verdoolaege.
63215
63216         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
63217         options.
63218         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
63219         (usage and help tests): Update
63220
63221 2007-04-29  Bruno Haible  <bruno@clisp.org>
63222
63223         * tests/test-fflush.c (main): Use a file of size 17, not 10.
63224         Print more information in case of failure. Disable a test on BeOS.
63225
63226 2007-04-29  Bruno Haible  <bruno@clisp.org>
63227
63228         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
63229         This helps debugging on systems on which no gdb is available.
63230
63231 2007-04-29  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/freading.h: Improve comments.
63234         * lib/fwriting.h: Likewise.
63235         * tests/test-freading.c (main): Don't check freading immediately after
63236         repositioning. Needed for glibc.
63237
63238 2007-04-29  Bruno Haible  <bruno@clisp.org>
63239
63240         * lib/freading.c (freading): Trivial simplification.
63241
63242 2007-04-28  Bruno Haible  <bruno@clisp.org>
63243
63244         * tests/test-fwriting.c (main): Also test the interaction between
63245         fflush and fwriting.
63246         * modules/fwriting-tests (Depends-on): Add fflush.
63247
63248         * tests/test-freading.c (main): Also test the interaction between
63249         fflush and freading.
63250         * modules/freading-tests (Depends-on): Add fflush.
63251
63252 2007-04-28  Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
63255         fseeko and ftello.
63256         Suggested by Eric Blake.
63257
63258 2007-04-28  Jim Meyering  <jim@meyering.net>
63259
63260         Avoid false-negative in gl_STDINT_H's C99 conformance test.
63261         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
63262         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
63263
63264 2007-04-27  Eric Blake  <ebb9@byu.net>
63265
63266         * doc/headers/assert.texi (assert.h): Document assert module use.
63267
63268 2007-04-27  Bruno Haible  <bruno@clisp.org>
63269
63270         * doc/headers/*.texi: New files.
63271         * doc/gnulib.texi (Header File Substitutes): New chapter.
63272         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
63273         dependencies.
63274         (standards.info ,standards.html, standards.dvi): Update dependencies.
63275         (mostlyclean, clean): New targets.
63276
63277 2007-04-27  Bruno Haible  <bruno@clisp.org>
63278
63279         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
63280         * modules/sysexits (Files, Makefile.am): Update.
63281
63282         * lib/sys_socket_.h: Renamed from lib/socket_.h.
63283         * modules/sys_socket (Files, Makefile.am): Update.
63284
63285         * lib/sys_stat_.h: Renamed from lib/stat_.h.
63286         * modules/sys_stat (Files, Makefile.am): Update.
63287
63288 2007-04-27  Eric Blake  <ebb9@byu.net>
63289
63290         * lib/freading.h: Improve comments.
63291         * lib/fwriting.h: Likewise.
63292         * lib/fflush.c: Likewise.
63293
63294         Fix closein for mingw.
63295         * modules/closein-tests: Add tests for closein.
63296         * tests/test-closein.c: New file.
63297         * tests/test-closein.sh: Likewise.
63298         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
63299         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
63300
63301 2007-04-27  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
63304         version is < 6.
63305         * lib/math_.h [__DECC]: Likewise.
63306         * lib/stdio_.h [__DECC]: Likewise.
63307         * lib/stdlib_.h [__DECC]: Likewise.
63308         * lib/string_.h [__DECC]: Likewise.
63309         * lib/time_.h [__DECC]: Likewise.
63310         * lib/wchar_.h [__DECC]: Likewise.
63311         * lib/wctype_.h [__DECC]: Likewise.
63312
63313 2007-04-27  Bruno Haible  <bruno@clisp.org>
63314
63315         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
63316
63317 2007-04-27  Bruno Haible  <bruno@clisp.org>
63318
63319         * lib/fflush.c: Add comments.
63320         * modules/fpurge-tests (Depends-on): Add fflush.
63321         * modules/freadable-tests (Depends-on): Likewise.
63322         * modules/fwritable-tests (Depends-on): Likewise.
63323
63324 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
63325
63326         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
63327         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
63328         Report by Bruno Haible <bruno@clisp.org>.
63329
63330 2007-04-26  Eric Blake  <ebb9@byu.net>
63331
63332         Fix fflush on mingw.
63333         * modules/fflush (Depends-on): Add freading.
63334         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
63335         but unread data.
63336
63337 2007-04-26  Eric Blake  <ebb9@byu.net>
63338         and Bruno Haible  <bruno@clisp.org>
63339
63340         Implement freading and fwriting.
63341         * lib/freading.c: New file.
63342         * lib/freading.h: Likewise.
63343         * m4/freading.m4: Likewise.
63344         * modules/freading: Likewise.
63345         * modules/freading-tests: Likewise.
63346         * tests/test-freading.c: Likewise.
63347         * lib/fwriting.c: New file.
63348         * lib/fwriting.h: Likewise.
63349         * m4/fwriting.m4: Likewise.
63350         * modules/fwriting: Likewise.
63351         * modules/fwriting-tests: Likewise.
63352         * tests/test-fwriting.c: Likewise.
63353         * MODULES.html.sh (File stream based Input/Output): Mention them.
63354
63355 2007-04-26  Bruno Haible  <bruno@clisp.org>
63356
63357         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
63358         'long' when we assume it.
63359         Suggested by Eric Blake.
63360
63361 2007-04-26  Bruno Haible  <bruno@clisp.org>
63362
63363         Ensure fseeko, ftello are declared on glibc systems.
63364         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
63365         * modules/fseeko (configure.ac-early): Likewise.
63366         * modules/ftello (configure.ac-early): Likewise.
63367         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
63368         AC_FUNC_FSEEKO for this.
63369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
63370         (gl_CHECK_FSEEKO): Remove macro.
63371
63372 2007-04-26  Bruno Haible  <bruno@clisp.org>
63373
63374         * tests/test-fflush.c (main): Also check the ftell result after
63375         fflush and fseek/fseeko.
63376         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
63377         file descriptor position cache in the stream.
63378         * lib/fseeko.c (rpl_fseeko): Likewise.
63379
63380 2007-04-26  Bruno Haible  <bruno@clisp.org>
63381
63382         * modules/fflush-tests (Depends-on): Add fseeko.
63383
63384 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
63385             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63386
63387         * lib/argz_.h: ensure error_t definition is obtained in same
63388         mechanism system argz.h would have.
63389         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
63390         argz facilities are known bad.  Err on the side of caution if
63391         cross-compiling.
63392
63393 2007-04-25  Eric Blake  <ebb9@byu.net>
63394
63395         * lib/fpurge.c (includes): Use stdlib.h for free.
63396         * tests/test-fflush.c (main): Also test fflush-fseeko.
63397
63398 2007-04-25  Bruno Haible  <bruno@clisp.org>
63399
63400         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
63401         * lib/fseeko.c: New file.
63402         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
63403         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
63404         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
63405         gl_FUNC_FSEEKO.
63406         (gl_FUNC_FSEEKO): Invoke it.
63407         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
63408         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
63409         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
63410
63411 2007-04-25  Bruno Haible  <bruno@clisp.org>
63412
63413         * modules/fflush (Depends-on): Add ftello.
63414
63415 2007-04-25  Bruno Haible  <bruno@clisp.org>
63416
63417         * modules/ftello-tests: New file.
63418         * tests/test-ftello.c: New file.
63419
63420         * modules/ftello: New file.
63421         * m4/ftello.m4: New file.
63422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
63423         HAVE_FTELLO.
63424         * lib/stdio_.h (ftello): New declaration.
63425         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
63426         HAVE_FTELLO.
63427
63428 2007-04-25  Bruno Haible  <bruno@clisp.org>
63429
63430         * modules/fseeko-tests: New file.
63431         * tests/test-fseeko.c: New file.
63432
63433         * modules/fseeko: New file.
63434         * m4/fseeko.m4: New file.
63435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
63436         HAVE_FSEEKO.
63437         * lib/stdio_.h (fseeko): New declaration.
63438         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
63439         HAVE_FSEEKO.
63440
63441 2007-04-25  Bruno Haible  <bruno@clisp.org>
63442
63443         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
63444
63445 2007-04-25  Bruno Haible  <bruno@clisp.org>
63446
63447         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
63448         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
63449         * tests/test-unistd.c: Likewise.
63450         * tests/test-fcntl.c: Likewise.
63451
63452 2007-04-23  Eric Blake  <ebb9@byu.net>
63453
63454         * lib/fflush.c: Fix missing include.
63455         Reported by Bruno Haible.
63456
63457 2007-04-23  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
63460         Reported by Eric Blake.
63461
63462 2007-04-23  Bruno Haible  <bruno@clisp.org>
63463
63464         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
63465
63466 2007-04-23  Bruno Haible  <bruno@clisp.org>
63467
63468         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
63469
63470 2007-04-23  Bruno Haible  <bruno@clisp.org>
63471
63472         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
63473         Needed on HP-UX 11.
63474
63475 2007-04-16  Eric Blake  <ebb9@byu.net>
63476
63477         Make fflush rely on fpurge.
63478         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
63479         open coding all variants.
63480         * modules/fflush (Depends-on): Add fpurge and unistd.
63481         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
63482         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
63483
63484         Fix --with-tests compilation on cygwin.
63485         * modules/argmatch-tests (Makefile.am): List gnulib library first
63486         in LDADD.
63487         * modules/argp-tests (Makefile.am): Likewise.
63488         * modules/array-list-tests (Makefile.am): Likewise.
63489         * modules/array-oset-tests (Makefile.am): Likewise.
63490         * modules/avltree-list-tests (Makefile.am): Likewise.
63491         * modules/avltree-oset-tests (Makefile.am): Likewise.
63492         * modules/avltreehash-list-tests (Makefile.am): Likewise.
63493         * modules/carray-list-tests (Makefile.am): Likewise.
63494         * modules/dirname-tests (Makefile.am): Likewise.
63495         * modules/frexp-tests (Makefile.am): Likewise.
63496         * modules/isnanl-tests (Makefile.am): Likewise.
63497         * modules/linked-list-tests (Makefile.am): Likewise.
63498         * modules/linkedhash-list-tests (Makefile.am): Likewise.
63499         * modules/lock-tests (Makefile.am): Likewise.
63500         * modules/rbtree-list-tests (Makefile.am): Likewise.
63501         * modules/rbtree-oset-tests (Makefile.am): Likewise.
63502         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
63503         * modules/tls-tests (Makefile.am): Likewise.
63504         * modules/tsearch-tests (Makefile.am): Likewise.
63505         * modules/xvasprintf-tests (Makefile.am): Likewise.
63506
63507         Fix fpurge for cygwin.
63508         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
63509         value.
63510         * modules/fpurge-tests (Depends-on): Clean up trash.
63511
63512 2007-04-16  Simon Josefsson  <simon@josefsson.org>
63513
63514         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
63515
63516         * m4/autobuild.m4: Re-indent.
63517
63518 2007-04-13  Bruno Haible  <bruno@clisp.org>
63519
63520         * modules/fpurge-tests: New file.
63521         * tests/test-fpurge.c: New file.
63522
63523         * modules/fpurge: New file.
63524         * lib/fpurge.h: New file.
63525         * lib/fpurge.c: New file.
63526         * m4/fpurge.m4: New file.
63527
63528 2007-04-13  Bruno Haible  <bruno@clisp.org>
63529
63530         * modules/fbufmode-tests: New file.
63531         * tests/test-fbufmode.c: New file.
63532
63533         * modules/fbufmode: New file.
63534         * lib/fbufmode.h: New file.
63535         * lib/fbufmode.c: New file.
63536         * m4/fbufmode.m4: New file.
63537
63538 2007-04-13  Bruno Haible  <bruno@clisp.org>
63539
63540         * modules/fwritable-tests: New file.
63541         * tests/test-fwritable.c: New file.
63542
63543         * modules/fwritable: New file.
63544         * lib/fwritable.h: New file.
63545         * lib/fwritable.c: New file.
63546         * m4/fwritable.m4: New file.
63547
63548 2007-04-13  Bruno Haible  <bruno@clisp.org>
63549
63550         * modules/freadable-tests: New file.
63551         * tests/test-freadable.c: New file.
63552
63553         * modules/freadable: New file.
63554         * lib/freadable.h: New file.
63555         * lib/freadable.c: New file.
63556         * m4/freadable.m4: New file.
63557
63558 2007-04-13  Bruno Haible  <bruno@clisp.org>
63559
63560         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
63561         MOSTLYCLEANFILES.
63562
63563 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
63566         gzip bootstrap.conf to avoid dragging in i18n machinery.
63567         (gnulib_tool_option): Use it.
63568
63569 2007-04-13  Bruno Haible  <bruno@clisp.org>
63570
63571         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
63572         %F directives.
63573         * tests/test-vasprintf-posix.c (test_function): Likewise.
63574         * tests/test-snprintf-posix.h (test_function): Likewise.
63575         * tests/test-sprintf-posix.h (test_function): Likewise.
63576         * tests/test-fprintf-posix.h (test_function): Likewise.
63577         * tests/test-printf-posix.h (test_function): Likewise.
63578         * tests/test-fprintf-posix.out: Likewise.
63579
63580 2007-04-13  Bruno Haible  <bruno@clisp.org>
63581
63582         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
63583         * modules/tls-tests (configure.ac): Likewise.
63584         Reported by Arto C. Nirkko <anirkko@insel.ch>.
63585
63586 2007-04-13  Bruno Haible  <bruno@clisp.org>
63587
63588         * lib/tls.c (glthread_tls_get): Fix return type.
63589         Patch by Arto C. Nirkko <anirkko@insel.ch>.
63590
63591 2007-04-12  Eric Blake  <ebb9@byu.net>
63592
63593         * modules/gettime (Depends-on): Remove gettime.
63594         Reported by Dmitry V. Levin.
63595
63596 2007-04-12  Bruno Haible  <bruno@clisp.org>
63597
63598         * modules/fflush (Include): Mention <stdio.h>.
63599         * modules/strtoimax (Include): Mention <inttypes.h>.
63600         * modules/strtoumax (Include): Likewise.
63601
63602 2007-04-12  Eric Blake  <ebb9@byu.net>
63603
63604         * .cvsignore: New file.
63605         * .gitignore: Likewise.
63606
63607 2007-04-12  Bruno Haible  <bruno@clisp.org>
63608
63609         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
63610         not before, since $(LDADD) often contains libgnu.a.
63611         * modules/striconv-tests (test_striconv_LDADD): Likewise.
63612         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
63613         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
63614         Needed on Cygwin.
63615
63616 2007-04-12  Eric Blake  <ebb9@byu.net>
63617
63618         Work around glibc's failure to flush stdin on fclose.
63619         * lib/closein.c (close_stdin): Flush stdin before closing.
63620
63621         Work around glibc's failure to reset seekable stdin on exit.
63622         * modules/closein: New module.
63623         * lib/closein.c: New file.
63624         * lib/closein.h: Likewise.
63625         * m4/closein.m4: Likewise.
63626         * MODULES.html.sh (File stream based Input/Output): Document it.
63627
63628 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63629
63630         * gnulib-tool: Rename generated 'autobuild' script to
63631         'do-autobuild' in --create-megatestdir output.
63632
63633         * doc/gnulib.texi (Build robot for gnulib): Fix.
63634
63635 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63636
63637         * modules/sysexits (Depends-on): Add absolute-header.
63638
63639 2007-04-12  Eric Blake  <ebb9@byu.net>
63640
63641         No need to preserve errno on success.
63642         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
63643         Reported by Bruno Haible.
63644
63645 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63646
63647         * MODULES.html.sh (Support for maintaining and releasing
63648         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
63649
63650 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63651
63652         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
63653
63654 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63655
63656         * modules/autobuild: New module.
63657
63658         * m4/autobuild.m4: New file.
63659
63660 2007-04-11  Bruno Haible  <bruno@clisp.org>
63661
63662         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
63663         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
63664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
63665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
63666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
63673         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63674         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
63676         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63677         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
63679         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63680         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
63682         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63683         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
63685         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63686         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
63688         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63689         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63690         Reported by Eric Blake.
63691
63692 2007-04-11  Bruno Haible  <bruno@clisp.org>
63693
63694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
63695
63696 2007-04-10  Bruno Haible  <bruno@clisp.org>
63697
63698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
63699         for NaN and Infinity. Needed on FreeBSD 6.1.
63700         * tests/test-vasnprintf-posix.c (test_function): Undo last change
63701         regarding results for "%010a" of Infinity and NaN.
63702         * tests/test-vasprintf-posix.c (test_function): Likewise.
63703         * tests/test-snprintf-posix.h (test_function): Likewise.
63704         * tests/test-sprintf-posix.h (test_function): Likewise.
63705         * tests/test-fprintf-posix.h (test_function): Likewise.
63706         * tests/test-printf-posix.h (test_function): Likewise.
63707         * tests/test-fprintf-posix.out: Likewise.
63708
63709 2007-04-10  Bruno Haible  <bruno@clisp.org>
63710
63711         * modules/locale-tests: New file.
63712         * tests/test-locale.c: New file.
63713
63714         * modules/locale: New file.
63715         * lib/locale_.h: New file.
63716         * m4/locale_h.m4: New file.
63717
63718 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
63719             Bruno Haible  <bruno@clisp.org>
63720
63721         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
63722         be determined, test for availability of the copysignf, copysign,
63723         copysignl functions.
63724         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
63725         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
63726         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
63727
63728 2007-04-09  Eric Blake  <ebb9@byu.net>
63729
63730         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
63731         * modules/stdio (Makefile.am): Support fflush.
63732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63733         * modules/fflush: New file.
63734         * lib/fflush.c: Likewise.
63735         * m4/fflush.m4: Likewise.
63736         * modules/fflush-tests: New test.
63737         * tests/test-fflush.c: Likewise.
63738         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
63739
63740 2007-04-06  Bruno Haible  <bruno@clisp.org>
63741
63742         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
63743         (VASNPRINTF): Use signbit for faster determination whether to print a
63744         minus sign.
63745         * modules/vasnprintf (Files): Remove lib/float+.h.
63746         * modules/fprintf-posix (Depends-on): Add signbit.
63747         * modules/snprintf-posix (Depends-on): Likewise.
63748         * modules/sprintf-posix (Depends-on): Likewise.
63749         * modules/vasnprintf-posix (Depends-on): Likewise.
63750         * modules/vasprintf-posix (Depends-on): Likewise.
63751         * modules/vfprintf-posix (Depends-on): Likewise.
63752         * modules/vsnprintf-posix (Depends-on): Likewise.
63753         * modules/vsprintf-posix (Depends-on): Likewise.
63754
63755 2007-04-06  Bruno Haible  <bruno@clisp.org>
63756
63757         * tests/test-frexp.c (main): Test also the sign bit of zero results.
63758         * tests/test-frexpl.c (main): Likewise.
63759         * tests/test-ldexpl.c (main): Likewise.
63760         * modules/frexp-tests (Depends-on): Add signbit.
63761         * modules/frexpl-tests (Depdends-on): Likewise.
63762         * modules/ldexpl-tests (Depdends-on): Likewise.
63763
63764 2007-04-06  Bruno Haible  <bruno@clisp.org>
63765
63766         * modules/signbit-tests: New file.
63767         * tests/test-signbit.c: New file.
63768
63769         * modules/signbit: New file.
63770         * lib/signbitf.c: New file.
63771         * lib/signbitd.c: New file.
63772         * lib/signbitl.c: New file.
63773         * m4/signbit.m4: New file.
63774         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
63775         (signbit): New macro.
63776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
63777         REPLACE_SIGNBIT.
63778         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
63779         REPLACE_FREXPL into math.h.
63780
63781 2007-04-06  Bruno Haible  <bruno@clisp.org>
63782
63783         * modules/isnanf-nolibm-tests: New file.
63784         * tests/test-isnanf.c: New file.
63785
63786         * modules/isnanf-nolibm: New file.
63787         * lib/isnanf.h: New file.
63788         * lib/isnanf.c: New file.
63789         * lib/isnan.c: Consider the USE_FLOAT macro.
63790         * m4/isnanf.m4: New file.
63791
63792 2007-04-06  Bruno Haible  <bruno@clisp.org>
63793
63794         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
63795         (Link): New section.
63796
63797         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
63798
63799 2007-04-06  Bruno Haible  <bruno@clisp.org>
63800
63801         Assume the 'long double' type.
63802         * m4/longdouble.m4: Remove file.
63803         * config/srclist.txt: Don't mention longdouble.m4.
63804         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
63805         * lib/float+.h: Likewise.
63806         * lib/frexp.c: Likewise.
63807         * lib/printf-args.h: Likewise.
63808         * lib/printf-args.c: Likewise.
63809         * lib/printf-frexp.c: Likewise.
63810         * lib/printf-parse.c: Likewise.
63811         * lib/vasnprintf.c: Likewise.
63812         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63813         * m4/intl.m4: Likewise.
63814         * m4/isnanl.m4: Likewise.
63815         * m4/printf.m4: Likewise.
63816         * m4/printf-frexpl.m4: Likewise.
63817         * m4/vasnprintf.m4: Likewise.
63818         * modules/allocsa (Files): Remove m4/longdouble.m4.
63819         * modules/gettext (Files): Likewise.
63820         * modules/relocatable-prog-wrapper (Files): Likewise.
63821         * modules/vasnprintf (Files): Likewise.
63822         * modules/isnanl (Files): Likewise.
63823         (Include): Simplify.
63824         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63825         (Include): Simplify.
63826         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63827         (Include): Simplify.
63828         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63829         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63830         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63831         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63832         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63833         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63834         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63835         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63836         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63837         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63838         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63839         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63840         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63841         * tests/test-isnanl.c: Likewise.
63842         * tests/test-snprintf-posix.h: Likewise.
63843         * tests/test-sprintf-posix.h: Likewise.
63844         * tests/test-vasnprintf-posix.c: Likewise.
63845         * tests/test-vasnprintf-posix2.c: Likewise.
63846         * tests/test-vasprintf-posix.c: Likewise.
63847
63848 2007-04-06  Bruno Haible  <bruno@clisp.org>
63849
63850         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63851         * lib/math_.h [__DECC]: Include the overridden include file through
63852         #include_next, outside the double-inclusion guard.
63853         * lib/stdio_.h [__DECC]: Likewise.
63854         * lib/stdlib_.h [__DECC]: Likewise.
63855         * lib/string_.h [__DECC]: Likewise.
63856         * lib/time_.h [__DECC]: Likewise.
63857         * lib/wchar_.h [__DECC]: Likewise.
63858         * lib/wctype_.h [__DECC]: Likewise.
63859         * lib/inttypes_.h [__DECC]: Likewise.
63860         Reported by Albert Chin <china@thewrittenword.com> in
63861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63862
63863 2007-04-04  Eric Blake  <ebb9@byu.net>
63864
63865         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63866         1.5.x.
63867
63868 2007-04-04  Bruno Haible  <bruno@clisp.org>
63869
63870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63871         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63872
63873 2007-04-04  Bruno Haible  <bruno@clisp.org>
63874
63875         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63876         results for "%010a" of Infinity and NaN.
63877         * tests/test-vasprintf-posix.c (test_function): Likewise.
63878         * tests/test-snprintf-posix.h (test_function): Likewise.
63879         * tests/test-sprintf-posix.h (test_function): Likewise.
63880         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63881         * tests/test-printf-posix.h (test_function): Likewise.
63882         * tests/test-fprintf-posix.out: Update.
63883         Needed for FreeBSD 6.1.
63884
63885 2007-04-04  Bruno Haible  <bruno@clisp.org>
63886
63887         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63888         directly used by the gnulib modules nor by gnulib-tool.
63889
63890 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63891
63892         * DEPENDENCIES: Give overall description of version dependency
63893         desirability.  Use more-typical names for apps.
63894         Add shell, coreutils, diffutils, grep, tar, gzip.
63895
63896 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63897
63898         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63899
63900 2007-04-04  Karl Berry  <karl@gnu.org>
63901
63902         * MODULES.html.sh (func_module): missing '.
63903
63904 2007-04-03  Bruno Haible  <bruno@clisp.org>
63905
63906         * modules/argmatch-tests (Makefile.am): New variable
63907         test_argmatch_LDADD.
63908         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63909         * modules/array-list-tests (Makefile.am): New variable
63910         test_array_list_LDADD.
63911         * modules/array-oset-tests (Makefile.am): New variable
63912         test_array_oset_LDADD.
63913         * modules/avltree-list-tests (Makefile.am): New variable
63914         test_avltree_list_LDADD.
63915         * modules/avltree-oset-tests (Makefile.am): New variable
63916         test_avltree_oset_LDADD.
63917         * modules/avltreehash-list-tests (Makefile.am): New variable
63918         test_avltreehash_list_LDADD.
63919         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63920         test_canonicalize_lgpl_LDADD.
63921         * modules/carray-list-tests (Makefile.am): New variable
63922         test_carray_list_LDADD.
63923         * modules/dirname-tests (Makefile.am): New variable
63924         test_dirname_LDADD.
63925         * modules/linked-list-tests (Makefile.am): New variable
63926         test_linked_list_LDADD.
63927         * modules/linkedhash-list-tests (Makefile.am): New variable
63928         test_linkedhash_list_LDADD.
63929         * modules/rbtree-list-tests (Makefile.am): New variable
63930         test_rbtree_list_LDADD.
63931         * modules/rbtree-oset-tests (Makefile.am): New variable
63932         test_rbtree_oset_LDADD.
63933         * modules/rbtreehash-list-tests (Makefile.am): New variable
63934         test_rbtreehash_list_LDADD.
63935         * modules/xvasprintf-tests (Makefile.am): New variable
63936         test_xvasprintf_LDADD.
63937         Reported by Eric Blake.
63938
63939 2007-04-03  Eric Blake  <ebb9@byu.net>
63940
63941         * DEPENDENCIES: Weaken m4 requirements.
63942
63943 2007-04-03  Bruno Haible  <bruno@clisp.org>
63944
63945         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63946         * modules/isnanl-tests (configure.ac): Likewise.
63947
63948 2007-04-03  Ben Pfaff  <blp@gnu.org>
63949
63950         * modules/iconv_open: Add $(srcdir)/ to source directory
63951         references in Makefile fragments that call gperf, to fix VPATH
63952         builds.
63953
63954 2007-04-03  Bruno Haible  <bruno@clisp.org>
63955
63956         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63957         * lib/ldexpl.c: Undo last change.
63958
63959 2007-04-03  Bruno Haible  <bruno@clisp.org>
63960
63961         * modules/printf-frexpl (Depends-on): Undo last change.
63962         (Files): Add m4/ldexpl.m4.
63963
63964 2007-04-03  Bruno Haible  <bruno@clisp.org>
63965
63966         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63967         * modules/isnanl (Link): New section.
63968
63969         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63970         * modules/frexp (Link): New section.
63971
63972         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63973         * modules/frexpl (Link): New section.
63974
63975         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63976         * modules/ldexpl (Link): New section.
63977
63978 2007-04-03  Bruno Haible  <bruno@clisp.org>
63979
63980         * modules/TEMPLATE-EXTENDED: New file.
63981         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63982
63983 2007-04-03  Bruno Haible  <bruno@clisp.org>
63984
63985         * DEPENDENCIES: New file.
63986         Suggested by Simon Josefsson.
63987
63988 2007-04-03  Bruno Haible  <bruno@clisp.org>
63989
63990         * doc/gnulib.texi: Escape @.
63991
63992 2007-04-03  James Youngman  <jay@gnu.org>
63993         and Paul Eggert  <eggert@cs.ucla.edu>
63994
63995         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63996         birthtime on all systems that have birthtime, not just those which
63997         use st_birthtimensec rather than st_birthtim.  Putting zero in
63998         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63999         that the birth time is not available for files on an NFS mount.
64000
64001 2007-04-03  Simon Josefsson  <simon@josefsson.org>
64002
64003         * modules/memxor: Move back from crypto/, suggested by Bruno.
64004         * modules/crypto/hmac-sha1: Fix memxor dependency.
64005
64006         * modules/crypto/gc: Moved from ../.
64007
64008 2007-04-02  Eric Blake  <ebb9@byu.net>
64009
64010         * lib/ldexpl.c (includes): Avoid libm.
64011
64012         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
64013
64014 2007-04-02  Bruno Haible  <bruno@clisp.org>
64015
64016         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
64017         on IRIX.
64018
64019 2007-04-02  Bruno Haible  <bruno@clisp.org>
64020
64021         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
64022         x86 or x86_64 platforms running MacOS X.
64023         Reported by Ryan Schmidt <@ryandesign.com>.
64024
64025 2007-04-02  Bruno Haible  <bruno@clisp.org>
64026
64027         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
64028         i386.
64029
64030 2007-04-01  Simon Josefsson  <simon@josefsson.org>
64031
64032         * modules/crypto/arcfour: Moved from ../.
64033         * modules/crypto/arcfour-tests: Moved from ../.
64034         * modules/crypto/arctwo: Moved from ../.
64035         * modules/crypto/arctwo-tests: Moved from ../.
64036         * modules/crypto/des: Moved from ../.
64037         * modules/crypto/des-tests: Moved from ../.
64038         * modules/crypto/gc-arcfour: Moved from ../.
64039         * modules/crypto/gc-arcfour-tests: Moved from ../.
64040         * modules/crypto/gc-arctwo: Moved from ../.
64041         * modules/crypto/gc-arctwo-tests: Moved from ../.
64042         * modules/crypto/gc-des: Moved from ../.
64043         * modules/crypto/gc-des-tests: Moved from ../.
64044         * modules/crypto/gc-hmac-md5: Moved from ../.
64045         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
64046         * modules/crypto/gc-hmac-sha1: Moved from ../.
64047         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
64048         * modules/crypto/gc-md2: Moved from ../.
64049         * modules/crypto/gc-md2-tests: Moved from ../.
64050         * modules/crypto/gc-md4: Moved from ../.
64051         * modules/crypto/gc-md4-tests: Moved from ../.
64052         * modules/crypto/gc-md5: Moved from ../.
64053         * modules/crypto/gc-md5-tests: Moved from ../.
64054         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
64055         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
64056         * modules/crypto/gc-random: Moved from ../.
64057         * modules/crypto/gc-rijndael: Moved from ../.
64058         * modules/crypto/gc-rijndael-tests: Moved from ../.
64059         * modules/crypto/gc-sha1: Moved from ../.
64060         * modules/crypto/gc-sha1-tests: Moved from ../.
64061         * modules/crypto/gc-tests: Moved from ../.
64062         * modules/crypto/hmac-md5: Moved from ../.
64063         * modules/crypto/hmac-md5-tests: Moved from ../.
64064         * modules/crypto/hmac-sha1: Moved from ../.
64065         * modules/crypto/hmac-sha1-tests: Moved from ../.
64066         * modules/crypto/md2: Moved from ../.
64067         * modules/crypto/md2-tests: Moved from ../.
64068         * modules/crypto/md4: Moved from ../.
64069         * modules/crypto/md4-tests: Moved from ../.
64070         * modules/crypto/md5: Moved from ../.
64071         * modules/crypto/md5-tests: Moved from ../.
64072         * modules/crypto/memxor: Moved from ../.
64073         * modules/crypto/rijndael: Moved from ../.
64074         * modules/crypto/rijndael-tests: Moved from ../.
64075         * modules/crypto/sha1: Moved from ../.
64076
64077 2007-03-30  James Youngman  <jay@gnu.org>
64078
64079         * tests/test-stat-time.c (prepare_test): use chmod() rather than
64080         rename() to change the ctime of a file (because ctime is unaffected
64081         by rename on jfs2 on AIX 5.1).
64082         (main): Start by doing cleanup, in case a previous run failed leaving
64083         test files behind.
64084
64085 2007-03-31  Bruno Haible  <bruno@clisp.org>
64086
64087         Support old proprietary implementations of iconv.
64088         * modules/iconv_open: New file.
64089         * lib/iconv_.h: New file.
64090         * m4/iconv_h.m4: New file.
64091         * lib/iconv_open.c: New file.
64092         * lib/iconv_open-aix.gperf: New file.
64093         * lib/iconv_open-hpux.gperf: New file.
64094         * lib/iconv_open-irix.gperf: New file.
64095         * lib/iconv_open-osf.gperf: New file.
64096         * m4/iconv_open.m4: New file.
64097         * modules/linebreak (Depends-on): Add iconv_open.
64098         * modules/striconv (Depends-on): Likewise.
64099         * modules/striconveh (Depends-on): Likewise.
64100         * modules/unicodeio (Depends-on): Likewise.
64101         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
64102         (iconv_t)(-1).
64103         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
64104         conversion if cd is (iconv_t)(-1).
64105         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
64106         is not possible.
64107
64108 2007-03-31  Bruno Haible  <bruno@clisp.org>
64109
64110         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64111         work on Solaris either. Protect also second use of "autodetect_jp".
64112
64113 2007-03-31  Bruno Haible  <bruno@clisp.org>
64114
64115         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
64116         the function is not present.
64117
64118 2007-03-31  Bruno Haible  <bruno@clisp.org>
64119
64120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
64121         the function is not present.
64122
64123 2007-03-31  Bruno Haible  <bruno@clisp.org>
64124
64125         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
64126         a bug in HP-UX iconv_open().
64127
64128 2007-03-31  Bruno Haible  <bruno@clisp.org>
64129
64130         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
64131         (Mathematics <math.h>): New section, add fpieee.
64132         (Input/output <stdio.h>): Add fseterr.
64133         (Mathematics <math.h>): New section, add printf-frexp.
64134         (Container data structures): Add sublist.
64135         (Core language properties): Add fpucw, inline.
64136         (Functions for greatest-width integer types <inttypes.h>): Add
64137         imaxabs, imaxdiv, inttypes.
64138         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
64139         isnanl-nolibm, ldexp.
64140         (Mathematics <math.h>): New section, add printf-frexpl.
64141         (Support for systems lacking POSIX:2001): Add fprintf-posix,
64142         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
64143         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
64144         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
64145         (Unicode string functions): Add unistr/u*-mbtoucr.
64146         (Java): Add javacomp-script, javaexec-script.
64147         (C#): Add csharpcomp-script, csharpexec-script.
64148         (Support for building libraries and executables): Add havelib,
64149         relocatable-*.
64150         (Support for maintaining and releasing projects): Renamed from
64151         'Support for maintaining and release projects'. Add announce-gen.
64152
64153 2007-03-31  Bruno Haible  <bruno@clisp.org>
64154
64155         * README: Talk primarily about git.
64156         (git and CVS): Renamed from CVS.
64157         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
64158         gnulib is available through git.
64159         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
64160
64161 2007-03-30  Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
64164         * lib/poll_.h: Likewise.
64165         * lib/stat_.h: Likewise.
64166         * lib/sys_time_.h: Likewise.
64167         * lib/sysexit_.h: Likewise.
64168         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
64169         * lib/stdbool_.h: Likewise.
64170         * lib/byteswap_.h: Add double-inclusion guard.
64171
64172 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
64173
64174         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
64175
64176 2007-03-30  Karl Berry  <karl@gnu.org>
64177
64178         * config/srclist-update: double space after USA in the license
64179         substitution, since that's how it's usually (?) written.
64180
64181 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
64182
64183         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
64184         reported by Bruno Haible.
64185
64186 2007-03-29  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
64189         a bug in AIX iconv().
64190
64191 2007-03-29  Bruno Haible  <bruno@clisp.org>
64192
64193         * modules/ldexpl-tests: New file.
64194         * tests/test-ldexpl.c: New file.
64195
64196 2007-03-29  Bruno Haible  <bruno@clisp.org>
64197
64198         * lib/ldexpl.c: Include fpucw.h.
64199         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
64200         multiplication.
64201         * modules/ldexpl (Depends-on): Add fpucw.
64202
64203 2007-03-29  Bruno Haible  <bruno@clisp.org>
64204
64205         * modules/ldexpl: New file.
64206         * m4/ldexpl.m4: New file.
64207         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
64208         set.
64209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
64210         REPLACE_LDEXPL.
64211         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
64212         REPLACE_LDEXPL.
64213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64214         gl_FUNC_LDEXPL_WORKS.
64215         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
64216         * modules/mathl (Files): Remove lib/ldexpl.c.
64217         (Depends-on): Add ldexpl.
64218
64219 2007-03-29  Bruno Haible  <bruno@clisp.org>
64220
64221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
64222
64223 2007-03-29  Bruno Haible  <bruno@clisp.org>
64224
64225         * tests/test-striconveh.c (main): Don't assume that a direct conversion
64226         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
64227         and possibly also HP-UX.
64228         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64229         work on AIX, IRIX, HP-UX, OSF/1.
64230         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
64231         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
64232         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
64233         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
64234         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
64235         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
64236
64237 2007-03-29  Bruno Haible  <bruno@clisp.org>
64238
64239         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
64240
64241 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
64244         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
64245
64246 2007-03-29  Eric Blake  <ebb9@byu.net>
64247
64248         * lib/acl-internal.h: Remove redundant include.
64249         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
64250         Cygwin when a file is locked.
64251
64252 2007-03-29  Bruno Haible  <bruno@clisp.org>
64253
64254         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
64255         file.
64256         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
64257
64258 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
64259
64260         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
64261         try to remove a parent directory if the child couldn't be removed
64262         (except for the first rmdir, which could fail because the child
64263         doesn't exist).  Problem reported by Jeff Blaine in
64264         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
64265
64266 2007-03-28  Bruno Haible  <bruno@clisp.org>
64267
64268         * lib/striconveh.c (utf8conv_carefully): New function.
64269         (mem_cd_iconveh_internal): Invoke it.
64270
64271 2007-03-28  Bruno Haible  <bruno@clisp.org>
64272
64273         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
64274         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
64275         input.
64276         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
64277         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
64278         unistr/u8-uctomb.
64279
64280 2007-03-28  Bruno Haible  <bruno@clisp.org>
64281
64282         * modules/unistr/u8-mbtoucr: New file.
64283         * lib/unistr/u8-mbtoucr.c: New file.
64284         * modules/unistr/u16-mbtoucr: New file.
64285         * lib/unistr/u16-mbtoucr.c: New file.
64286         * modules/unistr/u16-mbtoucr: New file.
64287         * lib/unistr/u16-mbtoucr.c: New file.
64288         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
64289
64290 2007-03-27  Simon Josefsson  <simon@josefsson.org>
64291             Bruno Haible  <bruno@clisp.org>
64292
64293         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
64294         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
64295         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
64296
64297         * m4/stdio_h.m4: Add stubs for vasprintf too.
64298
64299         * modules/stdio: Support vasprintf in sed command.
64300
64301         * modules/vasprintf: Depend on stdio for prototypes.  Remove
64302         vasprintf.h.  Add stdio module indicator.
64303
64304         * lib/stdio_.h: Declare asprintf and vasprintf, based on
64305         vasprintf.h.
64306
64307         * lib/vasprintf.h: File removed.
64308
64309         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
64310         * lib/vasprintf.c: Ditto.
64311         * lib/xvasprintf.c: Ditto.
64312         * tests/test-vasprintf-posix.c: Ditto.
64313         * tests/test-vasprintf.c: Ditto.
64314
64315 2007-03-27  Bruno Haible  <bruno@clisp.org>
64316
64317         Make vasnprintf multithread-safe.
64318         * lib/vasnprintf.c (decimal_point_char): New function.
64319         (VASNPRINTF): Use it.
64320         Suggested by Simon Josefsson.
64321
64322 2007-03-27  Eric Blake  <ebb9@byu.net>
64323
64324         Support sub-second birthtime on cygwin.
64325         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
64326         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
64327         (get_stat_birthtime): Also work with st_birthtim.
64328
64329 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
64330
64331         * lib/stat-time.h (USE_BIRTHTIME): Remove.
64332         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
64333         (get_stat_birthtime_ns): Do not try to use "spare" fields.
64334         (get_stat_birthtime_ns): Simplify compile-time tests.
64335         (get_stat_birthtime): Change the API to look like
64336         get_stat_mtime etc., except return a negative tv_nsec on error.
64337         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
64338         Don't check for "spare" fields.
64339         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
64340         or for struct stat.st_birthtime, as these tests aren't used.
64341         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
64342
64343 2007-03-27  Bruno Haible  <bruno@clisp.org>
64344
64345         * lib/stat-time.h: Include <sys/stat.h>.
64346
64347 2007-03-27  James Youngman  <jay@gnu.org>
64348
64349         * lib/stat-time.h (get_stat_birthtime): New function for
64350           retrieving st_birthtime as provided by UFS2 (hence *BSD).
64351         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
64352           and its variants.
64353         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
64354         * modules/stat-time-test: New file.
64355         * tests/test-stat-time.c: New test, devised by Bruno Haible.
64356
64357 2007-03-26  Bruno Haible  <bruno@clisp.org>
64358
64359         Better support of signalling NaNs.
64360         * lib/atanl.c: Include isnanl.h.
64361         (atanl): Perform test for NaN at the beginning of the function and
64362         through a call to isnanl.
64363         * lib/cosl.c: Include isnanl.h.
64364         (cosl): Perform test for NaN at the beginning of the function and
64365         through a call to isnanl.
64366         * lib/ldexpl.c: Include isnanl.h.
64367         (ldexpl): Perform test for NaN through a call to isnanl.
64368         * lib/logl.c: Include isnanl.h.
64369         (logl): Perform test for NaN at the beginning of the function and
64370         through a call to isnanl.
64371         * lib/sinl.c: Include isnanl.h.
64372         (sinl): Perform test for NaN at the beginning of the function and
64373         through a call to isnanl.
64374         * lib/sqrtl.c: Include isnanl.h.
64375         (sqrtl): Perform test for NaN at the beginning of the function and
64376         through a call to isnanl.
64377         * lib/tanl.c: Include isnanl.h.
64378         (tanl): Perform test for NaN at the beginning of the function and
64379         through a call to isnanl.
64380         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
64381         * modules/mathl (Depends-on): Add isnanl.
64382
64383 2007-03-26  Eric Blake  <ebb9@byu.net>
64384
64385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
64386         regression in logic sense of previous patch.
64387
64388 2007-03-26  Bruno Haible  <bruno@clisp.org>
64389
64390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
64391         unportable shell command "if ! ...".
64392         Reported by Ralf Wildenhues.
64393
64394 2007-03-25  Bruno Haible  <bruno@clisp.org>
64395
64396         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
64397         <sysexits.h> file, and only add EX_CONFIG.
64398         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
64399         absolute file name and whether it is sufficient. Substitute also
64400         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
64401         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
64402         ABSOLUTE_SYSEXITS_H into sysexits.h.
64403
64404 2007-03-25  Bruno Haible  <bruno@clisp.org>
64405
64406         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
64407         hints is NULL.
64408
64409 2007-03-25  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
64412         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
64413
64414 2007-03-25  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/vasnprintf.c: Include langinfo.h.
64417         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
64418         multithread-safe.
64419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
64420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
64421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64422         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64425         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64426         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
64427         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64428         Reported by Simon Josefsson.
64429
64430 2007-03-25  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
64433         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
64434         * modules/vasnprintf (Depends-on): Add stdint.
64435
64436 2007-03-25  Bruno Haible  <bruno@clisp.org>
64437
64438         * modules/fpieee: New file.
64439         * m4/fpieee.m4: New file.
64440         * modules/isnan-nolibm (Depends-on): Add fpieee.
64441         * modules/isnanl-nolibm (Depends-on): Add fpieee.
64442         * modules/isnanl (Depends-on): Add fpieee.
64443
64444 2007-03-25  Bruno Haible  <bruno@clisp.org>
64445
64446         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
64447
64448 2007-03-25  Bruno Haible  <bruno@clisp.org>
64449
64450         Avoid test failures on IRIX 6.5.
64451         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
64452         (main): Use it.
64453         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
64454         macros.
64455         (main): Use them.
64456
64457 2007-03-25  Bruno Haible  <bruno@clisp.org>
64458
64459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
64460         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
64461         exists but doesn't work.
64462         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
64463         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
64464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
64465         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
64466         math.h.
64467
64468 2007-03-25  Bruno Haible  <bruno@clisp.org>
64469
64470         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
64471         returns inf. Needed on IRIX 6.5.
64472
64473 2007-03-25  Bruno Haible  <bruno@clisp.org>
64474
64475         * tests/test-frexpl.c: Include isnanl-nolibm.h.
64476         (main): Use isnanl instead of x != x idiom.
64477         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
64478
64479         * tests/test-frexp.c: Include isnan.h.
64480         (main): Use isnan instead of x != x idiom.
64481         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
64482
64483 2007-03-25  Bruno Haible  <bruno@clisp.org>
64484
64485         * tests/test-frexp.c (NaN): New function/macro.
64486         (main): Use it instead of 0.0 / 0.0.
64487         * tests/test-isnan.c (NaN): New function/macro.
64488         (main): Use it instead of 0.0 / 0.0.
64489         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
64490         (test_function): Use it instead of 0.0 / 0.0.
64491         * tests/test-vasprintf-posix.c (NaN): New function/macro.
64492         (test_function): Use it instead of 0.0 / 0.0.
64493         * tests/test-snprintf-posix.h (NaN): New function/macro.
64494         (test_function): Use it instead of 0.0 / 0.0.
64495         * tests/test-sprintf-posix.h (NaN): New function/macro.
64496         (test_function): Use it instead of 0.0 / 0.0.
64497         * tests/test-fprintf-posix.h (NaN): New function/macro.
64498         (test_function): Use it instead of 0.0 / 0.0.
64499         * tests/test-printf-posix.h (NaN): New function/macro.
64500         (test_function): Use it instead of 0.0 / 0.0.
64501
64502         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
64503
64504 2007-03-25  Bruno Haible  <bruno@clisp.org>
64505
64506         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
64507
64508 2007-03-25  Bruno Haible  <bruno@clisp.org>
64509
64510         * lib/regexec.c (merge_state_with_log): Make static.
64511
64512 2007-03-25  Bruno Haible  <bruno@clisp.org>
64513
64514         * lib/trigl.c (kernel_rem_pio2): Make static.
64515
64516 2007-03-25  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/sincosl.c (sincosl_table): Make static.
64519
64520 2007-03-25  Bruno Haible  <bruno@clisp.org>
64521
64522         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
64523         if the compiler does not support C99.
64524
64525 2007-03-25  Bruno Haible  <bruno@clisp.org>
64526
64527         * modules/time (Makefile.am): Ensure all rule action lines start with a
64528         tab.
64529
64530 2007-03-24  Bruno Haible  <bruno@clisp.org>
64531
64532         * modules/tsearch-tests: New file.
64533         * tests/test-tsearch.sh: New file.
64534         * tests/test-tsearch.c: New file, mostly copied from glibc.
64535
64536         * modules/search-tests: New file.
64537         * tests/test-search.c: New file.
64538
64539         * modules/search: New file.
64540         * lib/search_.h: New file, incorporating lib/tsearch.h.
64541         * m4/search_h.m4: New file.
64542         * lib/tsearch.h: Remove file.
64543         * lib/tsearch.c: Include search.h instead of tsearch.h.
64544         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
64545         HAVE_TSEARCH.
64546         * modules/tsearch (Files): Remove lib/tsearch.h.
64547         (Depends-on): Add search.
64548         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
64549         (Include): Change tsearch.h into search.h.
64550
64551 2007-03-24  Bruno Haible  <bruno@clisp.org>
64552
64553         * modules/fpucw: New file.
64554         * lib/fpucw.h: New file.
64555         * lib/frexp.c: Include fpucw.h.
64556         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64557         (FUNC): Use them.
64558         * lib/printf-frexp.c: Include fpucw.h.
64559         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64560         (FUNC): Use them.
64561         * lib/vasnprintf.c: Include fpucw.h.
64562         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
64563         'long double' calculations.
64564         * tests/test-frexpl.c: Include fpucw.h.
64565         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64566         * tests/test-printf-frexpl.c: Include fpucw.h.
64567         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64568         * modules/frexpl (Depends-on): Add fpucw.
64569         * modules/printf-frexpl (Depends-on): Likewise.
64570         * modules/fprintf-posix (Depends-on): Likewise.
64571         * modules/snprintf-posix (Depends-on): Likewise.
64572         * modules/sprintf-posix (Depends-on): Likewise.
64573         * modules/vasnprintf-posix (Depends-on): Likewise.
64574         * modules/vasprintf-posix (Depends-on): Likewise.
64575         * modules/vfprintf-posix (Depends-on): Likewise.
64576         * modules/vsnprintf-posix (Depends-on): Likewise.
64577         * modules/vsprintf-posix (Depends-on): Likewise.
64578         * modules/frexpl-tests (Depends-on): Likewise.
64579         * modules/printf-frexpl-tests (Depends-on): Likewise.
64580
64581 2007-03-24  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/float+.h: New file.
64584         * lib/isnan.c: Include float+.h.
64585         (SIZE): New macro.
64586         (FUNC): Compare only SIZE bytes of the value.
64587         * lib/vasnprintf.c: Include float+.h.
64588         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
64589         SIZEOF_LDBL or SIZEOF_DBL bytes.
64590         * modules/isnan-nolibm (Files): Add lib/float+.h.
64591         * modules/isnanl-nolibm (Files): Add lib/float+.h.
64592         * modules/isnanl (Files): Add lib/float+.h.
64593         * modules/vasnprintf (Files): Add lib/float+.h.
64594
64595 2007-03-24  Bruno Haible  <bruno@clisp.org>
64596
64597         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
64598         include isnanl-nolibm.h.
64599
64600 2007-03-24  Bruno Haible  <bruno@clisp.org>
64601
64602         * tests/test-read-file.c (main): Don't produce spurious output for
64603         expected situations. Make the test fail if it encountered unexpected
64604         results.
64605
64606 2007-03-24  Bruno Haible  <bruno@clisp.org>
64607
64608         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
64609         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
64610
64611 2007-03-24  Bruno Haible  <bruno@clisp.org>
64612
64613         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
64614
64615 2007-03-24  Bruno Haible  <bruno@clisp.org>
64616
64617         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
64618         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
64619
64620         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
64621         * modules/utf8-ucs4: Turn into a symbolic link to module
64622         unistr/u8-mbtouc.
64623
64624         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
64625         utf8-ucs4-unsafe.
64626         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
64627         unistr/u8-mbtouc-unsafe.
64628
64629         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
64630         * modules/utf16-ucs4: Turn into a symbolic link to module
64631         unistr/u16-mbtouc.
64632
64633         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
64634         utf16-ucs4-unsafe.
64635         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
64636         unistr/u16-mbtouc-unsafe.
64637
64638         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
64639         * modules/ucs4-utf8: Turn into a symbolic link to module
64640         unistr/u8-ubtomb.
64641
64642         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
64643         * modules/ucs4-utf16: Turn into a symbolic link to module
64644         unistr/u16-ubtomb.
64645
64646 2007-03-24  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
64649         Enable the function only if HAVE_INLINE.
64650         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
64651         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64652         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
64653         Enable the function only if HAVE_INLINE.
64654         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
64655         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64656         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
64657         Enable the function only if HAVE_INLINE.
64658         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
64659         Enable the function only if HAVE_INLINE.
64660         * modules/utf8-ucs4: Update.
64661         * modules/utf8-ucs4-unsafe: Update.
64662         * modules/utf16-ucs4: Update.
64663         * modules/utf16-ucs4-unsafe: Update.
64664         * modules/ucs4-utf8: Update.
64665         * modules/ucs4-utf16: Update.
64666
64667 2007-03-24  Bruno Haible  <bruno@clisp.org>
64668
64669         * lib/utf8-ucs4.h: Remove file.
64670         * lib/utf8-ucs4-unsafe.h: Remove file.
64671         * lib/utf16-ucs4.h: Remove file.
64672         * lib/utf16-ucs4-unsafe.h: Remove file.
64673         * lib/ucs4-utf8.h: Remove file.
64674         * lib/ucs4-utf16.h: Remove file.
64675         * lib/unistr.h: Include their previous contents.
64676         * m4/utf-ucs4.m4: Remove file.
64677         * m4/ucs4-utf.m4: Remove file.
64678         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
64679         (Depends-on): Add unistr/base.
64680         (configure.ac): Remove gl_UTF_UCS4.
64681         (Makefile.am): Update.
64682         (Include): Change to unistr.h.
64683         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
64684         (Depends-on): Add unistr/base.
64685         (configure.ac): Remove gl_UTF_UCS4.
64686         (Makefile.am): Update.
64687         (Include): Change to unistr.h.
64688         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
64689         (Depends-on): Add unistr/base.
64690         (configure.ac): Remove gl_UTF_UCS4.
64691         (Makefile.am): Update.
64692         (Include): Change to unistr.h.
64693         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
64694         (Depends-on): Add unistr/base.
64695         (configure.ac): Remove gl_UTF_UCS4.
64696         (Makefile.am): Update.
64697         (Include): Change to unistr.h.
64698         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
64699         (Depends-on): Add unistr/base.
64700         (configure.ac): Remove gl_UCS4_UTF.
64701         (Makefile.am): Update.
64702         (Include): Change to unistr.h.
64703         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
64704         (Depends-on): Add unistr/base.
64705         (configure.ac): Remove gl_UCS4_UTF.
64706         (Makefile.am): Update.
64707         (Include): Change to unistr.h.
64708         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
64709         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
64710         utf8-ucs4-unsafe.h.
64711         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
64712         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
64713         utf16-ucs4-unsafe.h.
64714         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
64715         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
64716         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
64717         * lib/unistr/u8-strchr.c: Likewise.
64718         * lib/unistr/u8-strrchr.c: Likewise.
64719         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
64720         * lib/unistr/u16-strchr.c: Likewise.
64721         * lib/unistr/u16-strrchr.c: Likewise.
64722         * lib/striconveh.c: Update.
64723         * lib/linebreak.c: Update.
64724
64725 2007-03-24  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
64728         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
64729
64730 2007-03-22  Bruno Haible  <bruno@clisp.org>
64731
64732         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
64733
64734 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         * MODULES.html.sh (File system functions): New module write-any-file.
64737         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
64738         * m4/write-any-file.m4: New files.
64739
64740 2007-03-23  Eric Blake  <ebb9@byu.net>
64741
64742         * gnulib-tool: Rearrange space-tab sequences, since some editors
64743         like to eat them.
64744
64745 2007-03-23  Eric Blake  <ebb9@byu.net>
64746
64747         * lib/version-etc.c (version_etc_va): Update license wording to
64748         be more concise.  Recommended by Richard Stallman.
64749
64750 2007-03-22  Bruno Haible  <bruno@clisp.org>
64751
64752         * lib/poll.c (MSG_PEEK): New fallback definition.
64753
64754 2007-03-22  Bruno Haible  <bruno@clisp.org>
64755
64756         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
64757         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
64758         (main): Update.
64759         Fixes a compilation error on BeOS.
64760
64761 2007-03-22  Bruno Haible  <bruno@clisp.org>
64762
64763         * modules/frexpl-tests: New file.
64764         * tests/test-frexpl.c: New file.
64765
64766         * modules/frexpl: New file.
64767         * m4/frexpl.m4: New file.
64768         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
64769         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
64770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
64771         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
64772         (Depends-on): Add frexpl. Remove isnanl-nolibm.
64773         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
64774
64775 2007-03-22  Bruno Haible  <bruno@clisp.org>
64776
64777         * lib/frexpl.c: Share code with lib/frexp.c.
64778         * modules/mathl (Files): Add lib/frexp.c.
64779         (Depends-on): Add isnanl-nolibm.
64780
64781 2007-03-22  Bruno Haible  <bruno@clisp.org>
64782
64783         * modules/printf-frexp (Files): Add m4/frexp.m4.
64784         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
64785         only if the found frexp function actually works.
64786
64787 2007-03-22  Bruno Haible  <bruno@clisp.org>
64788
64789         * lib/frexp.c: Remove older implementation that uses divisions.
64790
64791 2007-03-21  Bruno Haible  <bruno@clisp.org>
64792
64793         * modules/frexp-tests: New file.
64794         * tests/test-frexp.c: New file.
64795
64796         * modules/frexp: New file.
64797         * lib/frexp.c: New file.
64798         * m4/frexp.m4: New file.
64799         * lib/math_.h (frexp): New declaration.
64800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
64801         REPLACE_FREXP.
64802         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
64803
64804 2007-03-21  Bruno Haible  <bruno@clisp.org>
64805
64806         * modules/isnanl-tests: New file.
64807         * tests/test-isnanl.c: New file.
64808
64809         * modules/isnanl: New file.
64810         * lib/isnanl.h: New file.
64811         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64812         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64813         gl_FUNC_ISNANL_WORKS.
64814         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64815         New macros.
64816
64817 2007-03-21  Bruno Haible  <bruno@clisp.org>
64818
64819         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64820         lib/isnanl.h.
64821         (Include): Update.
64822         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64823         * lib/vasnprintf.c: Update.
64824         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64825         tests/test-isnanl.h, remove tests/test-isnanl.c.
64826         (Makefile.am): Update.
64827         * tests/test-isnanl-nolibm.c: New file.
64828         * tests/test-isnanl.h: New file.
64829         * tests/test-isnanl.c: Remove file.
64830
64831 2007-03-21  Jim Meyering  <jim@meyering.net>
64832
64833         When trying to open ".", treat ESTALE like EACCES.
64834         * lib/savewd.c (savewd_save): Resort to forking not just upon
64835         failure with EACCES, but also when errno is ESTALE.
64836
64837 2007-03-20  Bruno Haible  <bruno@clisp.org>
64838
64839         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64840         Needed on AIX 5.1. Reported by Matthew Woehlke.
64841
64842 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         Suggestions by Bruno Haible:
64845         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64846         our own.
64847         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64848         * modules/acl (Depends-on): Add gettext.
64849
64850 2007-03-19  Bruno Haible  <bruno@clisp.org>
64851
64852         * modules/iconvme: Remove file.
64853         * lib/iconvme.h: Remove file.
64854         * lib/iconvme.c: Remove file.
64855         * m4/iconvme.m4: Remove file.
64856
64857 2007-03-19  Bruno Haible  <bruno@clisp.org>
64858
64859         * doc/relocatable-maint.texi: Break long shell script line.
64860         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64861
64862 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64865         handle file_has_acl.
64866         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64867         * lib/acl.c: Move header inclusions and related macro defns into
64868         lib/acl-internal.h.
64869         (S_ISLNK): Remove defn, since that's now done for us.
64870         (file_has_acl): Move to lib/file-has-acl.c.
64871         Call acl_trivial if available.  This is the crucial part of the fix.
64872         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64873         shared within the library.  Rewrite a bit, partly to make it compatible
64874         with the GNU coding style.
64875         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64876         Remove unnecessary double-quotes.
64877         Don't test for acl_to_text; the build will catch that.
64878         Replace acl_entries if it doesn't exist and it is needed.
64879         Check for -lsec and acl_trivial (as used on Solaris 10).
64880         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64881         lib/file-has-acl.c.
64882         (Depends-on): Add sys_stat, for S_ISLNK.
64883
64884 2007-03-19  Ben Pfaff  <blp@gnu.org>
64885
64886         * doc/gnulib.texi: Fix typos.
64887         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64888
64889 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64890
64891         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64892         If size is zero here, buf must be zero.
64893
64894 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64895
64896         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64897         <bruno@clisp.org>.
64898
64899 2007-03-18  Bruno Haible  <bruno@clisp.org>
64900
64901         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64902         Suggested by Eric Blake.
64903
64904 2007-03-18  Ben Pfaff  <blp@gnu.org>
64905
64906         * doc/relocatable.texi: Recommend using as prefix a directory
64907         that does not exist and will never be created.  Based on
64908         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64909         and others.
64910
64911 2007-03-17  Bruno Haible  <bruno@clisp.org>
64912
64913         * lib/fchownat.c: Include lchown.h.
64914
64915 2007-03-17  Bruno Haible  <bruno@clisp.org>
64916
64917         Fix endless loop when the given allocated size was > INT_MAX.
64918         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64919         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64920         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64921         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64922         * lib/sprintf.c (sprintf): Likewise.
64923
64924 2007-03-17  Bruno Haible  <bruno@clisp.org>
64925
64926         * tests/test-argp-2.sh (func_compare): Output a context diff.
64927
64928 2007-03-17  Bruno Haible  <bruno@clisp.org>
64929
64930         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64931         locale's decimal-point character.
64932
64933 2007-03-17  Bruno Haible  <bruno@clisp.org>
64934
64935         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64936         before comparing it. Needed because on some platforms (e.g. x86) a
64937         'long double' occupies less bytes than sizeof (long double).
64938
64939 2007-03-17  Bruno Haible  <bruno@clisp.org>
64940
64941         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64942         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64943         * tests/test-getaddrinfo.c (simple): Likewise.
64944         * tests/test-read-file.c (main): Likewise.
64945
64946 2007-03-17  Bruno Haible  <bruno@clisp.org>
64947
64948         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64949
64950 2007-03-17  Bruno Haible  <bruno@clisp.org>
64951
64952         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64953         unused variable.
64954
64955 2007-03-17  Bruno Haible  <bruno@clisp.org>
64956
64957         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64958         * tests/test-c-strncasecmp.c: Likewise.
64959
64960 2007-03-17  Bruno Haible  <bruno@clisp.org>
64961
64962         * modules/stdlib (Depends-on): Add unistd.
64963         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64964         Needed for MacOS X 10.3.
64965
64966 2007-03-17  Bruno Haible  <bruno@clisp.org>
64967
64968         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64969
64970 2007-03-17  Bruno Haible  <bruno@clisp.org>
64971
64972         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64973
64974 2007-03-17  Bruno Haible  <bruno@clisp.org>
64975
64976         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64977         to reflect files copied from gnulib (with or without modifications).
64978         Suggested by Jim Meyering.
64979
64980 2007-03-17  Eric Blake  <ebb9@byu.net>
64981
64982         * NEWS: Document stdlib change from 2007-02-18.
64983
64984 2007-03-17  Jim Meyering  <jim@meyering.net>
64985
64986         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64987         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64988         someone uses a name containing shell meta-characters.
64989         Reported by Alfred M. Szmidt.
64990
64991         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64992
64993 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64994
64995         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64996         and copy gettext configuration files only if configure.ac contains
64997         a use of AM_GNU_GETTEXT_VERSION.
64998
64999 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65000
65001         * build-aux/bootstrap (gnulib_name): New variable.
65002         (gnulib_tool_options): Use it.
65003
65004 2007-03-13  Simon Josefsson  <simon@josefsson.org>
65005
65006         * tests/test-des.c: Use new namespace.
65007
65008 2007-03-15  Bruno Haible  <bruno@clisp.org>
65009
65010         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
65011         Reported by James Youngman <jay@gnu.org>.
65012
65013 2007-03-15  Bruno Haible  <bruno@clisp.org>
65014
65015         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
65016         declared prototype. Needed with cc on OSF/1 5.1.
65017
65018 2007-03-15  Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
65021         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
65022         (struct gl_list_implementation): Add dispose_fn argument to the
65023         'create_empty', 'create' methods.
65024         (struct gl_list_impl_base): Add field 'dispose_fn'.
65025         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
65026         argument.
65027         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
65028         dispose_fn argument.
65029         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
65030         dispose_fn on the dropped values.
65031         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
65032         dispose_fn argument.
65033         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
65034         dropped values.
65035         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
65036         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65037         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
65038         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65039         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
65040         argument.
65041         (gl_tree_list_free): Call dispose_fn on the dropped values.
65042         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
65043         the dropped values.
65044         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65045         Add dispose_fn argument.
65046         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
65047         Call dispose_fn on the dropped values.
65048         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
65049         Add dispose_fn argument.
65050         (gl_sublist_create): Initialize the 'dispose_fn' field.
65051         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
65052         * tests/test-array_list.c (main): Update.
65053         * tests/test-carray_list.c (main): Update.
65054         * tests/test-avltree_list.c (main): Update.
65055         * tests/test-rbtree_list.c (main): Update.
65056         * tests/test-avltreehash_list.c (main): Update.
65057         * tests/test-rbtreehash_list.c (main): Update.
65058         * tests/test-linked_list.c (main): Update.
65059         * tests/test-linkedhash_list.c (main): Update.
65060         * tests/test-array_oset.c (main): Update.
65061
65062 2007-03-15  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
65065         (gl_oset_create_empty): Add dispose_fn argument.
65066         (struct gl_oset_implementation): Add dispose_fn argument to
65067         'create_empty' method.
65068         (struct gl_oset_impl_base): Add dispose_fn field.
65069         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
65070         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
65071         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
65072         values.
65073         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
65074         (gl_tree_oset_free): Call dispose_fn on the dropped values.
65075         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65076         dropped value.
65077         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65078         dropped value.
65079         * tests/test-array_oset.c (main): Update.
65080         * tests/test-avltree_oset.c (main): Update.
65081         * tests/test-rbtree_oset.c (main): Update.
65082         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
65083
65084 2007-03-13  Bruno Haible  <bruno@clisp.org>
65085
65086         * tests/test-stdbool.c (i): Update after last patch.
65087
65088 2007-03-12  Bruno Haible  <bruno@clisp.org>
65089
65090         * lib/quotearg.c: Include <wctype.h> early, before the definition of
65091         the iswprint macro. Needed on Solaris 2.5.1.
65092
65093 2007-03-12  Bruno Haible  <bruno@clisp.org>
65094
65095         * tests/test-printf-frexp.c (main): Declare x as volatile.
65096
65097 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65098
65099         * doc/gnulib.texi (Build robot for gnulib): New section.
65100
65101 2007-03-12  Jim Meyering  <jim@meyering.net>
65102
65103         * build-aux/bootstrap: New file.
65104         * build-aux/bootstrap.conf: New file, from coreutils.
65105
65106 2007-03-11  Bruno Haible  <bruno@clisp.org>
65107
65108         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
65109
65110 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65111
65112         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
65113         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
65114         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
65115
65116 2007-03-11  Bruno Haible  <bruno@clisp.org>
65117
65118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
65119         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
65120
65121 2007-03-11  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
65124         formula. Needed for SunPRO C 5.0.
65125
65126 2007-03-11  Bruno Haible  <bruno@clisp.org>
65127
65128         * modules/long-options (Depends-on): Add getopt.
65129
65130 2007-03-11  Bruno Haible  <bruno@clisp.org>
65131
65132         * modules/modechange (Depends-on): Add stdbool.
65133
65134 2007-03-11  Bruno Haible  <bruno@clisp.org>
65135
65136         * modules/i-ring (Depends-on): Add stdbool.
65137
65138 2007-03-11  Bruno Haible  <bruno@clisp.org>
65139
65140         * modules/gc-des (Depends-on): Add stdbool.
65141
65142 2007-03-11  Bruno Haible  <bruno@clisp.org>
65143
65144         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
65145
65146 2007-03-11  Bruno Haible  <bruno@clisp.org>
65147
65148         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
65149
65150 2007-03-11  Bruno Haible  <bruno@clisp.org>
65151
65152         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
65153
65154 2007-03-11  Bruno Haible  <bruno@clisp.org>
65155
65156         * lib/vasnprintf.c (sprintf): Undefine.
65157
65158 2007-03-11  Bruno Haible  <bruno@clisp.org>
65159
65160         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
65161         initializers in SunPRO C and Compaq C compilers.
65162
65163 2007-03-11  Bruno Haible  <bruno@clisp.org>
65164
65165         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
65166         decrementing code ANSI C compliant.
65167
65168 2007-03-11  Bruno Haible  <bruno@clisp.org>
65169
65170         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
65171         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
65172
65173 2007-03-11  Bruno Haible  <bruno@clisp.org>
65174
65175         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
65176         <stdbool.h> substitute doesn't pass.
65177
65178 2007-03-11  Bruno Haible  <bruno@clisp.org>
65179
65180         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
65181
65182 2007-03-11  Bruno Haible  <bruno@clisp.org>
65183
65184         * gnulib-tool (func_create_megatestdir): Create also an autobuild
65185         script, for submission to autobuild.josefsson.org.
65186
65187 2007-03-10  Bruno Haible  <bruno@clisp.org>
65188
65189         * modules/canonicalize-lgpl-tests: New file.
65190         * tests/test-canonicalize-lgpl.sh: New file.
65191         * tests/test-canonicalize-lgpl.c: New file.
65192
65193         * modules/c-strcase-tests: New file.
65194         * tests/test-c-strcase.sh: New file.
65195         * tests/test-c-strcasecmp.c: New file.
65196         * tests/test-c-strncasecmp.c: New file.
65197
65198         * modules/atexit-tests: New file.
65199         * tests/test-atexit.sh: New file.
65200         * tests/test-atexit.c: New file.
65201
65202 2007-03-10  Bruno Haible  <bruno@clisp.org>
65203
65204         * tests/test-binary-io.sh: Use temporary filenames that are not so
65205         likely to clash with those of other tests (in a parallel make).
65206         * tests/test-binary-io.c: Likewise.
65207
65208 2007-03-10  Bruno Haible  <bruno@clisp.org>
65209
65210         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
65211         fallback; use #error instead.
65212         Suggested by Simon Josefsson.
65213
65214 2007-03-10  Bruno Haible  <bruno@clisp.org>
65215
65216         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
65217         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
65218         first and the last.
65219
65220 2007-03-10  Bruno Haible  <bruno@clisp.org>
65221
65222         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
65223
65224 2007-03-10  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
65227         "make distcheck".
65228         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
65229         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
65230         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
65231
65232 2007-03-10  Bruno Haible  <bruno@clisp.org>
65233
65234         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
65235         variable.
65236         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
65237         variable.
65238
65239 2007-03-09  Eric Blake  <ebb9@byu.net>
65240         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
65241
65242         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
65243         types are not being provided by gnulib.
65244         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
65245         types are supported.
65246
65247 2007-03-10  Bruno Haible  <bruno@clisp.org>
65248
65249         * lib/stdio_.h (__attribute__): New macro.
65250         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
65251         vsprintf): Specify __attribute__ __format__ for GCC.
65252         Suggested by Eric Blake.
65253
65254 2007-03-09  Bruno Haible  <bruno@clisp.org>
65255
65256         * modules/printf-posix-tests: New file.
65257         * tests/test-printf-posix.sh: New file.
65258         * tests/test-printf-posix.c: New file.
65259
65260         * modules/printf-posix: New file.
65261         * lib/printf.c: New file.
65262         * m4/printf-posix-rpl.m4: New file.
65263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
65264         REPLACE_PRINTF.
65265         * lib/stdio_.h (printf): New declaration.
65266         (format, __format__, ____printf____, ____scanf____, ____strftime____,
65267         ____strfmon____): New macros.
65268         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
65269         REPLACE_PRINTF.
65270
65271 2007-03-09  Bruno Haible  <bruno@clisp.org>
65272
65273         * tests/test-vasnprintf-posix2.sh: New file.
65274         * tests/test-vasnprintf-posix2.c: New file.
65275         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
65276         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
65277         (Makefile.am): Activate test-vasnprintf-posix2.sh.
65278
65279         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
65280         a locale dependent decimal point, rather than always '.'.
65281
65282 2007-03-09  Eric Blake  <ebb9@byu.net>
65283
65284         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
65285         spite of platforms like Tandem/NSK that define it to -1.
65286
65287 2007-03-08  Bruno Haible  <bruno@clisp.org>
65288
65289         * modules/vprintf-posix-tests: New file.
65290         * tests/test-vprintf-posix.sh: New file.
65291         * tests/test-vprintf-posix.c: New file.
65292         * tests/test-printf-posix.h: New file.
65293
65294         * modules/vprintf-posix: New file.
65295         * lib/vprintf.c: New file.
65296         * m4/vprintf-posix.m4: New file.
65297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
65298         REPLACE_VPRINTF.
65299         * lib/stdio_.h (vprintf): New declaration.
65300         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
65301         REPLACE_VPRINTF.
65302
65303 2007-03-08  Bruno Haible  <bruno@clisp.org>
65304
65305         * modules/fprintf-posix-tests: New file.
65306         * tests/test-fprintf-posix.sh: New file.
65307         * tests/test-fprintf-posix.c: New file.
65308
65309         * modules/fprintf-posix: New file.
65310         * lib/fprintf.c: New file.
65311         * m4/fprintf-posix.m4: New file.
65312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
65313         REPLACE_FPRINTF.
65314         * lib/stdio_.h (fprintf): New declaration.
65315         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
65316         REPLACE_FPRINTF.
65317
65318 2007-03-08  Bruno Haible  <bruno@clisp.org>
65319
65320         * modules/vfprintf-posix-tests: New file.
65321         * tests/test-vfprintf-posix.sh: New file.
65322         * tests/test-vfprintf-posix.c: New file.
65323         * tests/test-fprintf-posix.h: New file.
65324         * tests/test-fprintf-posix.out: New file.
65325
65326         * modules/vfprintf-posix: New file.
65327         * lib/vfprintf.c: New file.
65328         * m4/vfprintf-posix.m4: New file.
65329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
65330         REPLACE_VFPRINTF.
65331         * lib/stdio_.h (vfprintf): New declaration.
65332         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
65333         REPLACE_VFPRINTF.
65334
65335 2007-03-08  Bruno Haible  <bruno@clisp.org>
65336
65337         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
65338
65339 2007-03-08  Bruno Haible  <bruno@clisp.org>
65340
65341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
65342         instead of 'expr' invocations.
65343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65348         Suggested by Paul Eggert.
65349
65350 2007-03-08  Bruno Haible  <bruno@clisp.org>
65351
65352         * modules/fseterr-tests: New file.
65353         * tests/test-fseterr.c: New file.
65354
65355         * modules/fseterr: New file.
65356         * lib/fseterr.h: New file.
65357         * lib/fseterr.c: New file.
65358
65359 2007-03-08  Bruno Haible  <bruno@clisp.org>
65360
65361         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
65362         * lib/getopt_.h: Likewise.
65363         * lib/mbswidth.h: Likewise.
65364         * lib/setenv.h: Likewise.
65365         * lib/vasnprintf.h: Likewise.
65366         * lib/vasprintf.h: Likewise.
65367         * lib/verror.h: Likewise.
65368         * lib/xsetenv.h: Likewise.
65369         * lib/xvasprintf.h: Likewise.
65370
65371 2007-03-08  Jim Meyering  <jim@meyering.net>
65372
65373         * users.txt: Add parted.
65374
65375         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
65376
65377 2007-03-07  Bruno Haible  <bruno@clisp.org>
65378
65379         * m4/printf.m4: Make the shell script snippets copy&pastable.
65380
65381 2007-03-02  Bruno Haible  <bruno@clisp.org>
65382
65383         * lib/netinet_in_.h: New file.
65384         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
65385         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
65386         * modules/netinet_in (Files): Add lib/netinet_in_.h.
65387         (Depends-on): Add absolute-header.
65388         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
65389         into netinet/in.h.
65390
65391 2007-03-03  Bruno Haible  <bruno@clisp.org>
65392
65393         * lib/sys_select_.h: New file.
65394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
65395         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
65396         * modules/sys_select (Files): Add lib/sys_select_.h.
65397         (Depends-on): Add absolute-header.
65398         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
65399         into sys/select.h.
65400
65401 2007-03-02  Bruno Haible  <bruno@clisp.org>
65402
65403         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
65404         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
65405         values.
65406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
65407         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
65408         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
65409         * modules/sys_socket (Depends-on): Add absolute-header.
65410         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
65411         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
65412         (Include): Remove requirement of inclusion of <sys/types.h>.
65413
65414 2007-03-02  Bruno Haible  <bruno@clisp.org>
65415
65416         * lib/byteswap_.h (bswap_32): Fix formula.
65417
65418 2007-03-06  Bruno Haible  <bruno@clisp.org>
65419
65420         * modules/sprintf-posix-tests: New file.
65421         * tests/test-sprintf-posix.c: New file.
65422
65423         * modules/sprintf-posix: New file.
65424         * lib/sprintf.c: New file.
65425         * m4/sprintf-posix.m4: New file.
65426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
65427         REPLACE_SPRINTF.
65428         * lib/stdio_.h (sprintf): New declaration.
65429         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
65430         REPLACE_SPRINTF.
65431
65432 2007-03-06  Bruno Haible  <bruno@clisp.org>
65433
65434         * modules/vsprintf-posix-tests: New file.
65435         * tests/test-vsprintf-posix.c: New file.
65436         * tests/test-sprintf-posix.h: New file.
65437
65438         * modules/vsprintf-posix: New file.
65439         * lib/vsprintf.c: New file.
65440         * m4/vsprintf-posix.m4: New file.
65441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
65442         REPLACE_VSPRINTF.
65443         * lib/stdio_.h (vsprintf): New declaration.
65444         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
65445         REPLACE_VSPRINTF.
65446
65447 2007-03-06  Bruno Haible  <bruno@clisp.org>
65448
65449         * modules/vsnprintf (Depend-on): Remove minmax.
65450
65451 2007-03-06  Bruno Haible  <bruno@clisp.org>
65452
65453         * modules/snprintf-posix-tests: New file.
65454         * tests/test-snprintf-posix.c: New file.
65455
65456         * modules/snprintf-posix: New file.
65457         * m4/snprintf-posix.m4: New file.
65458         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
65459         gl_FUNC_SNPRINTF.
65460         (gl_FUNC_SNPRINTF): Invoke it.
65461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
65462         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
65463         is set.
65464         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
65465
65466 2007-03-06  Bruno Haible  <bruno@clisp.org>
65467
65468         * modules/vsnprintf-posix-tests: New file.
65469         * tests/test-vsnprintf-posix.c: New file.
65470         * tests/test-snprintf-posix.h: New file.
65471
65472         * modules/vsnprintf-posix: New file.
65473         * m4/vsnprintf-posix.m4: New file.
65474         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
65475         gl_FUNC_VSNPRINTF.
65476         (gl_FUNC_VSNPRINTF): Invoke it.
65477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
65478         * lib/stdio_.h (vsnprintf): Define as a replacement if
65479         REPLACE_VSNPRINTF is set.
65480         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
65481
65482 2007-03-06  Bruno Haible  <bruno@clisp.org>
65483
65484         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
65485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
65486
65487 2007-03-06  Bruno Haible  <bruno@clisp.org>
65488
65489         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
65490         (asinl): Declare also if HAVE_DECL_ASINL is set.
65491         (atanl): Declare also if HAVE_DECL_ATANL is set.
65492         (ceill): Declare also if HAVE_DECL_CEILL is set.
65493         (cosl): Declare also if HAVE_DECL_COSL is set.
65494         (expl): Declare also if HAVE_DECL_EXPL is set.
65495         (floorl): Declare also if HAVE_DECL_FLOORL is set.
65496         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
65497         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
65498         (logl): Declare also if HAVE_DECL_LOGL is set.
65499         (sinl): Declare also if HAVE_DECL_SINL is set.
65500         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
65501         (tanl): Declare also if HAVE_DECL_TANL is set.
65502         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
65503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
65504         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
65505         declaration of frexpl, ldexpl.
65506         * modules/printf-frexpl (Depends-on): Add math.
65507         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
65508
65509 2007-03-05  Bruno Haible  <bruno@clisp.org>
65510
65511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
65512         frexpl and ldexpl are declared.
65513         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
65514
65515 2007-03-05  Bruno Haible  <bruno@clisp.org>
65516
65517         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
65518         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
65519
65520 2007-03-05  Bruno Haible  <bruno@clisp.org>
65521
65522         * lib/stdio_.h: Include <stddef.h>.
65523
65524 2007-03-05  Bruno Haible  <bruno@clisp.org>
65525
65526         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
65527
65528 2007-03-05  Bruno Haible  <bruno@clisp.org>
65529
65530         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
65531         NetBSD 4, from Ralf Wildenhues.
65532
65533 2007-03-04  Bruno Haible  <bruno@clisp.org>
65534
65535         * lib/vasprintf.h: Update #if logic for the case when the functions
65536         exist but are overridden.
65537
65538 2007-03-04  Bruno Haible  <bruno@clisp.org>
65539
65540         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
65541         implementations: glibc-2.4 and MacOS X 10.3.
65542         * tests/test-vasnprintf-posix.c (test_function): Test also the case
65543         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
65544         * tests/test-vasprintf-posix.c (test_function): Likewise.
65545
65546 2007-03-04  Bruno Haible  <bruno@clisp.org>
65547
65548         * modules/vasprintf-posix-tests: New file.
65549         * tests/test-vasprintf-posix.c: New file.
65550
65551         * modules/vasprintf-posix: New file.
65552         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
65553         defined.
65554         * m4/vasprintf-posix.m4: New file.
65555         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
65556         gl_FUNC_VASPRINTF.
65557         (gl_FUNC_VASPRINTF): Invoke it.
65558         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
65559         here.
65560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
65561
65562 2007-03-04  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
65565         REPLACE_GETTIMEOFDAY.
65566         * modules/sys_time (Makefile.am): Likewise.
65567         * m4/sys_time_h.m4: Likewise.
65568         * m4/gettimeofday.m4: Likewise.
65569
65570 2007-03-04  Bruno Haible  <bruno@clisp.org>
65571
65572         * modules/vasnprintf-posix-tests: New file.
65573         * tests/test-vasnprintf-posix.c: New file.
65574
65575         * modules/vasnprintf-posix: New file.
65576         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
65577         printf-frexpl.h.
65578         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
65579         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
65580         REPLACE_VASNPRINTF is defined.
65581         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
65582         gl_FUNC_VASNPRINTF.
65583         (gl_FUNC_VASNPRINTF): Invoke it.
65584         * m4/vasnprintf-posix.m4: New file.
65585         * m4/printf.m4: New file.
65586
65587 2007-03-04  Bruno Haible  <bruno@clisp.org>
65588
65589         Compile progreloc.c only if --enable-relocatable is specified.
65590         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
65591         if --enable-relocatable was specified.
65592         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
65593         lib_SOURCES.
65594
65595 2007-03-04  Jim Meyering  <jim@meyering.net>
65596
65597         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
65598         Use it consistently, rather than enumerating errno constants.
65599
65600 2007-03-04  Bruno Haible  <bruno@clisp.org>
65601
65602         * modules/xvasprintf-tests: New file.
65603         * tests/test-xvasprintf.c: New file.
65604
65605         * modules/vasprintf-tests: New file.
65606         * tests/test-vasprintf.c: New file.
65607
65608         * modules/vasnprintf-tests: New file.
65609         * tests/test-vasnprintf.c: New file.
65610
65611         * modules/vsnprintf-tests: New file.
65612         * tests/test-vsnprintf.c: New file.
65613
65614         * modules/snprintf-tests: New file.
65615         * tests/test-snprintf.c: New file.
65616
65617 2007-03-04  Bruno Haible  <bruno@clisp.org>
65618
65619         Compile relocatable.c only if --enable-relocatable is specified.
65620         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
65621         gl_RELOCATABLE_LIBRARY.
65622         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
65623         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
65624         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
65625         gl_RELOCATABLE_LIBRARY.
65626         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
65627         (Makefile.am): Remove lib_SOURCES.
65628         * modules/relocatable-lib-lgpl (configure.ac): Invoke
65629         gl_RELOCATABLE_LIBRARY.
65630         (Makefile.am): Remove lib_SOURCES.
65631         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
65632         always.
65633         * modules/relocatable-prog-wrapper (configure.ac): Invoke
65634         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
65635
65636 2007-03-04  Bruno Haible  <bruno@clisp.org>
65637
65638         * modules/argmatch-tests: New file.
65639         * tests/test-argmatch.c: New file.
65640
65641         * tests/test-allocsa.c (main): Halve the number of loop runs.
65642
65643         * modules/alloca-opt-tests: New file.
65644         * tests/test-alloca-opt.c: New file.
65645
65646 2007-03-04  Jim Meyering  <jim@meyering.net>
65647
65648         Work around difference between Linux ACLs and Solaris 10 ZFS.
65649         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
65650         for EINVAL.
65651
65652 2007-03-03  Bruno Haible  <bruno@clisp.org>
65653
65654         * modules/relocatable-prog (Depends-on): Add back progreloc's
65655         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
65656
65657 2007-03-03  Bruno Haible  <bruno@clisp.org>
65658
65659         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
65660         * modules/relocatable-lib: New file.
65661
65662 2007-03-03  Bruno Haible  <bruno@clisp.org>
65663
65664         * modules/relocatable-prog: Renamed from modules/relocatable.
65665         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
65666
65667 2007-03-03  Bruno Haible  <bruno@clisp.org>
65668
65669         * modules/relocatable-script (Files): Add doc/relocatable.texi,
65670         m4/relocatable-lib.m4.
65671         (Depends-on): Remove 'relocatable'.
65672         (configure.ac): Add gl_RELOCATABLE_NOP.
65673
65674 2007-03-03  Bruno Haible  <bruno@clisp.org>
65675
65676         * modules/relocatable-prog-wrapper: New file.
65677         * modules/relocatable (Depends-on): Add it. Remove all other
65678         dependencies except progname.
65679         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
65680
65681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
65682         (gl_FUNC_STRERROR): Nop.
65683         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
65684
65685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
65686         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
65687
65688         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
65689         (gl_FUNC_READLINK): Update.
65690
65691         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
65692
65693 2007-03-03  Bruno Haible  <bruno@clisp.org>
65694
65695         * lib/xreadlink.c: Include <unistd.h> unconditionally.
65696         * modules/xreadlink (Depends-on): Add unistd.
65697         * modules/xreadlink-with-size (Depends-on): Likewise.
65698
65699 2007-03-03  Bruno Haible  <bruno@clisp.org>
65700
65701         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
65702         extracted from gt_FUNC_SETENV.
65703         (gt_FUNC_SETENV): Remove macro.
65704         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
65705         remove gt_FUNC_SETENV.
65706
65707 2007-03-03  Bruno Haible  <bruno@clisp.org>
65708
65709         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
65710         ENABLE_RELOCATABLE here.
65711         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
65712
65713 2007-03-03  Bruno Haible  <bruno@clisp.org>
65714
65715         * modules/rbtreehash-list-tests (Depends-on): Add progname.
65716         * tests/test-rbtreehash_list.c: Include progname.h.
65717         (main): Call set_program_name.
65718
65719         * modules/rbtree-oset-tests (Depends-on): Add progname.
65720         * tests/test-rbtree_oset.c: Include progname.h.
65721         (main): Call set_program_name.
65722
65723         * modules/rbtree-list-tests (Depends-on): Add progname.
65724         * tests/test-rbtree_list.c: Include progname.h.
65725         (main): Call set_program_name.
65726
65727         * modules/linked-list-tests (Depends-on): Add progname.
65728         * tests/test-linked_list.c: Include progname.h.
65729         (main): Call set_program_name.
65730
65731 2007-03-03  Bruno Haible  <bruno@clisp.org>
65732
65733         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
65734         All uses of __restrict changed to _Restrict_.
65735         * lib/glob_.h (__restrict): Remove macro.
65736
65737 2007-03-02  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/gettext (configure.ac): Require gettext infrastructure
65740         from version 0.16.1.
65741
65742 2007-03-02  Bruno Haible  <bruno@clisp.org>
65743
65744         * modules/linkedhash-list-tests (Depends-on): Add progname.
65745         * tests/test-linkedhash_list.c: Include progname.h.
65746         (main): Call set_program_name.
65747
65748         * modules/carray-list-tests (Depends-on): Add progname.
65749         * tests/test-carray_list.c: Include progname.h.
65750         (main): Call set_program_name.
65751
65752         * modules/avltreehash-list-tests (Depends-on): Add progname.
65753         * tests/test-avltreehash_list.c: Include progname.h.
65754         (main): Call set_program_name.
65755
65756         * modules/avltree-oset-tests (Depends-on): Add progname.
65757         * tests/test-avltree_oset.c: Include progname.h.
65758         (main): Call set_program_name.
65759
65760         * modules/avltree-list-tests (Depends-on): Add progname.
65761         * tests/test-avltree_list.c: Include progname.h.
65762         (main): Call set_program_name.
65763
65764         * modules/array-oset-tests (Depends-on): Add progname.
65765         * tests/test-array_oset.c: Include progname.h.
65766         (main): Call set_program_name.
65767
65768         * modules/array-list-tests (Depends-on): Add progname.
65769         * tests/test-array_list.c: Include progname.h.
65770         (main): Call set_program_name.
65771
65772         * modules/argp-tests (Depends-on): Add progname.
65773         * tests/test-argp.c: Include argp.h first. Include progname.h.
65774         (main): Call set_program_name.
65775
65776 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * doc/gnulib-tool.texi (Initial import): Reword description of
65779         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
65780         limited effect even if defined after the first system include.
65781
65782 2007-03-01  Bruno Haible  <bruno@clisp.org>
65783
65784         * build-aux/config.libpath: Update to libtool-1.5.22.
65785         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65786
65787 2007-03-01  Bruno Haible  <bruno@clisp.org>
65788
65789         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
65790         foo_CFLAGS.
65791         Reported by Ralf Wildenhues.
65792
65793 2007-03-01  Bruno Haible  <bruno@clisp.org>
65794
65795         * build-aux/install-reloc: Remove object files left over by some
65796         compilers.
65797         Reported by Ralf Wildenhues.
65798
65799 2007-03-01  Bruno Haible  <bruno@clisp.org>
65800
65801         * build-aux/install-reloc: Break long lines.
65802
65803 2007-03-01  Bruno Haible  <bruno@clisp.org>
65804
65805         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65806         Reported by Ralf Wildenhues.
65807
65808 2007-03-01  Bruno Haible  <bruno@clisp.org>
65809
65810         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65811         include ordering constraints.
65812
65813 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65817         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65818         as another example.
65819         * lib/time_.h: Fix misspelling.
65820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65821         Require gl_HEADER_TIME_H_DEFAULTS.
65822         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65823         * m4/time_r.m4 (gl_TIME_R): Likewise.
65824         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65825
65826 2007-03-01  Bruno Haible  <bruno@clisp.org>
65827
65828         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65829         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65830
65831 2007-03-01  Jim Meyering  <jim@meyering.net>
65832
65833         * modules/xreadlink (Maintainer): Add my name.
65834         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65835
65836 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65837             Bruno Haible  <bruno@clisp.org>
65838
65839         * build-aux/install-reloc: Compile also c-ctype.c.
65840         * build-aux/relocatable.sh.in: New file.
65841         * doc/relocatable.texi: New file.
65842         * doc/relocatable-maint.texi: New file.
65843         * doc/gnulib.texi: Include relocatable-maint.texi.
65844         * lib/progreloc.c: Include unistd.h unconditionally.
65845         * lib/relocwrapper.c: Include unistd.h unconditionally.
65846         Include c-ctype.h.
65847         (add_dotbin): Use c_tolower.
65848         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65849         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65850         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65851         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65852         to m4/relocatable-lib.m4.
65853         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65854         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65855         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65856         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65857         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65858         * modules/relocatable: New file.
65859         * modules/relocatable-lib: New file.
65860         * modules/relocatable-script: New file.
65861
65862 2007-02-28  Bruno Haible  <bruno@clisp.org>
65863
65864         Import --enable-relocatable infrastructure.
65865         * build-aux/config.libpath: New file, from GNU gettext.
65866         * build-aux/install-reloc: New file, from GNU gettext.
65867         * build-aux/reloc-ldflags: New file, from GNU gettext.
65868         * lib/relocatable.h: New file, from GNU gettext.
65869         * lib/relocatable.c: New file, from GNU gettext.
65870         * lib/relocwrapper.c: New file, from GNU gettext.
65871         * m4/relocatable.m4: New file, from GNU gettext.
65872
65873 2007-02-28  Bruno Haible  <bruno@clisp.org>
65874
65875         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65876
65877         * modules/xreadlink: New file, from GNU gettext with modifications.
65878         * lib/xreadlink.c: New file, from GNU gettext.
65879         * lib/xreadlink.h: Add comments.
65880         (xreadlink): New declaration.
65881
65882         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65883         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65884         lib/xreadlink-with-size.c.
65885         (configure.ac): Remove gl_XREADLINK invocation.
65886         (Makefile.am): Augment lib_SOURCES.
65887         * m4/xreadlink.m4: Remove file.
65888         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65889         (xreadlink_with_size): Renamed from xreadink.
65890         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65891         * modules/canonicalize (Depends-on): Replace xreadlink with
65892         xreadlink-with-size.
65893         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65894
65895 2007-02-25  Jim Meyering  <jim@meyering.net>
65896
65897         * build-aux/announce-gen: When complaining about excess arguments,
65898         list them.
65899
65900 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * README: Document signed integer overflow situation more
65903         accurately.
65904
65905 2007-02-25  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65908         'a' or 'A' conversion.
65909
65910 2007-02-25  Bruno Haible  <bruno@clisp.org>
65911
65912         * modules/filename: Renamed from modules/pathname.
65913         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65914         lib/concatpath.c with lib/concat-filename.c.
65915         (Makefile.am): Update.
65916         (Include): Replace pathname.h with filename.h.
65917         * lib/filename.h: Renamed from lib/pathname.h.
65918         (concatenated_filename): Renamed from concatenated_pathname.
65919         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65920         (concatenated_filename): Renamed from concatenated_pathname.
65921         * lib/findprog.c: Include filename.h instead of pathname.h.
65922         (find_in_path): Update.
65923         * lib/javacomp.c: Include filename.h instead of pathname.h.
65924         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65925         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65926         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65927         is_oldgcj_14_13_usable, is_javac_usable): Update.
65928         * lib/javaexec.c: Include filename.h instead of pathname.h.
65929         (execute_java_class): Update.
65930         * modules/findprog: Update.
65931         * modules/javacomp: Update.
65932         * modules/javaexec: Update.
65933         * MODULES.html.sh (File system functions): Add 'filename', remove
65934         'pathname'.
65935
65936 2007-02-25  Bruno Haible  <bruno@clisp.org>
65937
65938         * modules/printf-frexpl-tests: New file.
65939         * tests/test-printf-frexpl.c: New file.
65940
65941         * modules/printf-frexpl: New file.
65942         * lib/printf-frexpl.h: New file.
65943         * lib/printf-frexpl.c: New file.
65944         * m4/printf-frexpl.m4: New file.
65945
65946 2007-02-25  Bruno Haible  <bruno@clisp.org>
65947
65948         * modules/printf-frexp-tests: New file.
65949         * tests/test-printf-frexp.c: New file.
65950
65951         * modules/printf-frexp: New file.
65952         * lib/printf-frexp.h: New file.
65953         * lib/printf-frexp.c: New file.
65954         * m4/printf-frexp.m4: New file.
65955
65956 2007-02-25  Bruno Haible  <bruno@clisp.org>
65957
65958         Assume automake >= 1.10 for the tests.
65959         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65960         * modules/arctwo-tests: Likewise.
65961         * modules/argp-tests: Likewise.
65962         * modules/avltree-list-tests: Likewise.
65963         * modules/avltree-oset-tests: Likewise.
65964         * modules/avltreehash-list-tests: Likewise.
65965         * modules/carray-list-tests: Likewise.
65966         * modules/crc-tests: Likewise.
65967         * modules/des-tests: Likewise.
65968         * modules/gc-arcfour-tests: Likewise.
65969         * modules/gc-arctwo-tests: Likewise.
65970         * modules/gc-des-tests: Likewise.
65971         * modules/gc-hmac-md5-tests: Likewise.
65972         * modules/gc-hmac-sha1-tests: Likewise.
65973         * modules/gc-md2-tests: Likewise.
65974         * modules/gc-md4-tests: Likewise.
65975         * modules/gc-md5-tests: Likewise.
65976         * modules/gc-pbkdf2-sha1-tests: Likewise.
65977         * modules/gc-rijndael-tests: Likewise.
65978         * modules/gc-sha1-tests: Likewise.
65979         * modules/gc-tests: Likewise.
65980         * modules/getaddrinfo-tests: Likewise.
65981         * modules/hmac-md5-tests: Likewise.
65982         * modules/hmac-sha1-tests: Likewise.
65983         * modules/linked-list-tests: Likewise.
65984         * modules/linkedhash-list-tests: Likewise.
65985         * modules/lock-tests: Likewise.
65986         * modules/md2-tests: Likewise.
65987         * modules/md4-tests: Likewise.
65988         * modules/md5-tests: Likewise.
65989         * modules/rbtree-list-tests: Likewise.
65990         * modules/rbtree-oset-tests: Likewise.
65991         * modules/rbtreehash-list-tests: Likewise.
65992         * modules/read-file-tests: Likewise.
65993         * modules/rijndael-tests: Likewise.
65994         * modules/stdint-tests: Likewise.
65995         * modules/tls-tests: Likewise.
65996
65997 2007-02-24  Bruno Haible  <bruno@clisp.org>
65998
65999         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
66000         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
66001         function; instead check whether isnan with a double argument links.
66002         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
66003         function; instead check whether isnan with a 'long double' argument
66004         links.
66005         Reported by Eric Blake <ebb9@byu.net>.
66006
66007 2007-02-24  Bruno Haible  <bruno@clisp.org>
66008
66009         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
66010         defined.
66011         * lib/isnanl.c: Remove all code. Just include isnan.c.
66012         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
66013
66014 2007-02-25  Jim Meyering  <jim@meyering.net>
66015
66016         Avoid conflicting types for 'unsetenv' on FreeBSD.
66017         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
66018         conflicting with FreeBSD's (5.0 and 6.1) function declaration
66019         in stdlib.h.
66020
66021 2007-02-24  Bruno Haible  <bruno@clisp.org>
66022
66023         * modules/isnanl-nolibm-tests: New file.
66024         * tests/test-isnanl.c: New file.
66025
66026         * modules/isnanl-nolibm: New file.
66027         * lib/isnanl.h: New file.
66028         * lib/isnanl.c: New file.
66029         * m4/isnanl.m4: New file.
66030
66031 2007-02-24  Bruno Haible  <bruno@clisp.org>
66032
66033         * modules/isnan-nolibm-tests: New file.
66034         * tests/test-isnan.c: New file.
66035
66036         * modules/isnan-nolibm: New file.
66037         * lib/isnan.h: New file.
66038         * lib/isnan.c: New file.
66039         * m4/isnan.m4: New file.
66040
66041 2007-02-24  Bruno Haible  <bruno@clisp.org>
66042
66043         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
66044         assume that an exponent fits in 20 bits.
66045
66046 2007-02-24  Jim Meyering  <jim@meyering.net>
66047
66048         * m4/regex.m4: Update the description of the configure-time option,
66049         --without-included-regex, to state accurately what the defaults are,
66050         and perhaps to give people an idea why using this option is risky.
66051
66052 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66053
66054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
66055         loops on small arguments.  This attempts to avoid the problem
66056         Bruno Haible reported for AIX 4.3.2 in
66057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
66058
66059 2007-02-23  Bruno Haible  <bruno@clisp.org>
66060
66061         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
66062         Needed for help2man.
66063
66064 2007-02-23  Karl Berry  <karl@gnu.org>
66065
66066         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
66067         exists, foo.h should be cvs-ignored, not committed.
66068
66069 2007-02-23  Eric Blake  <ebb9@byu.net>
66070
66071         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
66072         * lib/stat-time.h (includes): Likewise.
66073         * lib/utimecmp.c (includes): Likewise.
66074         * lib/utimens.h (includes): Likewise.
66075         * lib/getdate.y (includes): Also include "timespec.h" for use
66076         internal to the module.
66077         * modules/utimens (Depends-on): Revert yesterday's patch.
66078         * modules/nanosleep (Depends-on): Add missing dependency.
66079
66080 2007-02-22  Bruno Haible  <bruno@clisp.org>
66081
66082         * lib/glob.c: Don't include getlogin_r.h.
66083
66084 2007-02-22  Jim Meyering  <jim@meyering.net>
66085
66086         * modules/utimens (Depends-on): Add timespec, required for
66087         utimens.h's inclusion of timespec.h.
66088
66089 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
66092         long unreadable paths in GNU/Linux.  Problem reported by Andreas
66093         Schwab in
66094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
66095         I'll try to think of a better way to fix the Solaris problem.
66096
66097         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
66098         like glibc; on Solaris 10, it fails with errno == EINVAL.
66099         POSIX says the behavior is unspecified if the first argument is NULL,
66100         so play it safe and never pass NULL to the system getcwd.
66101
66102 2007-02-21  Jim Meyering  <jim@meyering.net>
66103
66104         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
66105         of gettimeofday.  It would conflict with the one now always
66106         provided via sys_time_.h.  Reported by Matthew Woehlke, as
66107         an IRIX 6.5 build failure.
66108
66109 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66110
66111         Minor fixups to port to Solaris 10 with Sun C 5.8.
66112         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
66113         * modules/getcwd (Depends-on): Add dirfd.
66114         * lib/putenv.c (putenv): #undef it.
66115         (rpl_putenv): New decl.
66116         (malloc, free): Include <stdlib.h> rather than prototyping separately.
66117
66118 2007-02-20  Bruno Haible  <bruno@clisp.org>
66119
66120         * modules/stdio-tests: New file.
66121         * tests/test-stdio.c: New file.
66122
66123         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
66124         (Depends-on): Add stdio.
66125         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66126         (Include): Use <stdio.h> instead of vsnprintf.h.
66127         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66128         HAVE_DECL_VSNPRINTF.
66129         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
66130
66131         * modules/snprintf (Files): Remove lib/snprintf.h.
66132         (Depends-on): Add stdio.
66133         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66134         (Include): Use <stdio.h> instead of snprintf.h.
66135         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66136         HAVE_DECL_SNPRINTF.
66137         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
66138         * lib/getaddrinfo.c: Likewise.
66139
66140         * modules/stdio: New file.
66141         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
66142         * lib/snprintf.h: Remove file.
66143         * lib/vsnprintf.h: Remove file.
66144         * lib/.cppi-disable: Remove snprintf.h.
66145         * m4/stdio_h.m4: New file.
66146         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
66147
66148 2007-02-20  Jim Meyering  <jim@meyering.net>
66149
66150         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
66151         used by e.g., mingw.  From Bruno Haible.
66152
66153 2007-02-19  Bruno Haible  <bruno@clisp.org>
66154
66155         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
66156         warnings.
66157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66158
66159 2007-02-19  Bruno Haible  <bruno@clisp.org>
66160
66161         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
66162         from mingw users.
66163
66164 2007-02-19  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
66167         warnings.
66168         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
66169
66170 2007-02-19  Jim Meyering  <jim@meyering.net>
66171
66172         Don't use FD after a successful "fdopendir (fd)".
66173         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
66174         Reset it by calling dirfd on the just-obtained DIR*.
66175
66176         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
66177         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
66178
66179 2007-02-18  Bruno Haible  <bruno@clisp.org>
66180
66181         * lib/readlink.c: Include <unistd.h>.
66182         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
66183         HAVE_READLINK.
66184         * modules/readlink (Depends-on): Add unistd.
66185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66186         (Include): Add <unistd.h>.
66187
66188         * lib/getlogin_r.h: Remove file.
66189         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
66190         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
66191         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
66192         HAVE_DECL_GETLOGIN_R.
66193         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
66194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66195         (Include): Use <unistd.h> instead of getlogin_r.h.
66196
66197         * lib/getcwd.h: Remove file.
66198         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
66199         * lib/xgetcwd.c: Likewise.
66200         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
66201         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
66202         * modules/getcwd (Files): Remove lib/getcwd.h.
66203         (Depends-on): Add unistd.
66204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66205         (Include): Use <unistd.h> instad of getcwd.h.
66206
66207         * lib/ftruncate.c: Include <unistd.h> first.
66208         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
66209         Set HAVE_FTRUNCATE.
66210         * modules/ftruncate (Depends-on): Add unistd.
66211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66212
66213         * lib/fchdir.c: Include <unistd.h> first.
66214         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
66215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
66216         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
66217         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66218         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
66219
66220         * lib/dup2.c: Include <unistd.h> first.
66221         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
66222         HAVE_DUP2.
66223         * modules/dup2 (Depends-on): Add unistd.
66224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66225
66226         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
66227         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
66228         REPLACE_CHOWN. Don't define chown as a macro here.
66229         * modules/chown (Depends-on): Add unistd.
66230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66231
66232         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
66233         Add definition for GL_LINK_WARNING.
66234         (chown, dup2): New declarations.
66235         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
66236         link warning.
66237         (ftruncate): New declaration.
66238         (getcwd): New declaration, taken from old getcwd.h.
66239         (getlogin_r): New declaration, taken from old getlogin_r.h.
66240         (readlink): New declaration.
66241         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
66242         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
66243         (gl_PREREQ_UNISTD): Remove macro.
66244         (gl_UNISTD_MODULE_INDICATOR): New macro.
66245         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
66246         many new variables. Don't set UNISTD_H.
66247         * modules/unistd (Description): Change.
66248         (Depends-on): Add link-warning.
66249         (configure.ac): Update.
66250         (Makefile.am): Create unistd.h always. Substitute many new variables
66251         into it.
66252
66253 2007-02-18  Bruno Haible  <bruno@clisp.org>
66254
66255         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
66256         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
66257         HAVE_GETSUBOPT.
66258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
66259         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
66260         * lib/getsubopt.h: Remove file.
66261         * modules/getsubopt (Files): Remove lib/getsubopt.h.
66262         (Depends-on): Add stdlib.
66263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66264         (Includes): Use <stdlib.h> instead of getsubopt.h.
66265         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
66266         Set HAVE_GETSUBOPT.
66267         * lib/getsubopt.c: Don't include getsubopt.h.
66268
66269 2007-02-18  Bruno Haible  <bruno@clisp.org>
66270
66271         * modules/fchdir (Depends-on): Add dup2.
66272
66273 2007-02-18  Bruno Haible  <bruno@clisp.org>
66274
66275         * lib/stdlib_.h: Handle glibc's special invocation convention
66276         specially.
66277
66278 2007-02-18  Bruno Haible  <bruno@clisp.org>
66279
66280         * modules/stdlib-tests: New file.
66281         * tests/test-stdlib.c: New file.
66282
66283         * modules/mkstemp (Files): Remove lib/mkstemp.h.
66284         (Depends-on): Add stdlib.
66285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66286         (Includes): Use <stdlib.h> instead of mkstemp.h.
66287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66288         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
66289         * lib/mkstemp.c: Don't include mkstemp.h.
66290         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
66291         * lib/stdlib--.h: Don't include mkstemp.h.
66292
66293         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
66294         (Depends-on): Add stdlib.
66295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66296         (Includes): Use <stdlib.h> instead of mkdtemp.h.
66297         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66298         HAVE_MKDTEMP.
66299         * lib/mkdtemp.c: Don't include mkdtemp.h.
66300         * lib/clean-temp.c: Don't include mkdtemp.h.
66301
66302         * modules/exit (Files): Remove lib/exit.h.
66303         (Depends-on): Add stdlib.
66304         (Makefile.am): Remove lib_SOURCES.
66305         (Include): Use <stdlib.h> instead of exit.h.
66306         * lib/argmatch.c: Don't include exit.h.
66307         * lib/execute.c: Likewise.
66308         * lib/pagealign_alloc.c: Likewise.
66309         * lib/pipe.c: Likewise.
66310         * lib/wait-process.c: Likewise.
66311         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
66312         * lib/exitfail.c: Likewise.
66313         * lib/savewd.c: Likewise.
66314         * lib/xsetenv.c: Likewise.
66315
66316         * modules/stdlib: New file.
66317         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
66318         and extra comments about mkstemp().
66319         * lib/exit.h: Remove file.
66320         * lib/mkdtemp.h: Remove file.
66321         * lib/mkstemp.h: Remove file.
66322         * m4/stdlib_h.m4: New file.
66323         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
66324
66325 2007-02-18  Bruno Haible  <bruno@clisp.org>
66326
66327         * modules/math-tests: New file.
66328         * tests/test-math.c: New file.
66329
66330         * modules/math: New file.
66331         * modules/mathl (Files): Remove lib/mathl.h.
66332         (Depends-on): Add math.
66333         (Makefile.am): Don't mention mathl.h.
66334         (Include): Use <math.h> instead of mathl.h.
66335         * lib/math_.h: New file.
66336         * lib/mathl.h: Remove file.
66337         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
66338         mathl.h.
66339         * lib/asinl.c: Likewise.
66340         * lib/atanl.c: Likewise.
66341         * lib/ceill.c: Likewise.
66342         * lib/cosl.c: Likewise.
66343         * lib/expl.c: Likewise.
66344         * lib/floorl.c: Likewise.
66345         * lib/frexpl.c: Likewise.
66346         * lib/ldexpl.c: Likewise.
66347         * lib/logl.c: Likewise.
66348         * lib/sincosl.c: Likewise.
66349         * lib/sinl.c: Likewise.
66350         * lib/sqrtl.c: Likewise.
66351         * lib/tanl.c: Likewise.
66352         * lib/trigl.c: Likewise.
66353         * m4/math_h.m4: New file.
66354         * MODULES.html.sh (Mathematics): Add math.
66355
66356 2007-02-17  Bruno Haible  <bruno@clisp.org>
66357
66358         * modules/wctype-tests: New file.
66359         * tests/test-wctype.c: New file.
66360
66361         * modules/wchar-tests: New file.
66362         * tests/test-wchar.c: New file.
66363
66364         * modules/unistd-tests: New file.
66365         * tests/test-unistd.c: New file.
66366
66367         * modules/time-tests: New file.
66368         * tests/test-time.c: New file.
66369
66370         * modules/sysexits-tests: New file.
66371         * tests/test-sysexits.c: New file.
66372
66373         * modules/sys_time-tests: New file.
66374         * tests/test-sys_time.c: New file.
66375
66376         * modules/sys_stat-tests: New file.
66377         * tests/test-sys_stat.c: New file.
66378
66379         * modules/sys_socket-tests: New file.
66380         * tests/test-sys_socket.c: New file.
66381
66382         * modules/sys_select-tests: New file.
66383         * tests/test-sys_select.c: New file.
66384
66385         * modules/string-tests: New file.
66386         * tests/test-string.c: New file.
66387
66388         * modules/stdbool-tests: New file.
66389         * tests/test-stdbool.c: New file.
66390
66391         * modules/netinet_in-tests: New file.
66392         * tests/test-netinet_in.c: New file.
66393
66394         * modules/inttypes-tests: New file.
66395         * tests/test-inttypes.c: New file.
66396
66397         * modules/fcntl-tests: New file.
66398         * tests/test-fcntl.c: New file.
66399
66400         * modules/byteswap-tests: New file.
66401         * tests/test-byteswap.c: New file.
66402
66403         * modules/arpa_inet-tests: New file.
66404         * tests/test-arpa_inet.c: New file.
66405
66406 2007-02-17  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
66409         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
66410         if the corresponding module is not enabled. Emit link warnings if
66411         the function is used nevertheless.
66412         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
66413         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
66414         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
66415         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
66416         * modules/inttypes (Depends-on): Add link-warning.
66417         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66418         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
66419         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
66420         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
66421         * modules/imaxdiv (configure.ac): Likewise.
66422         * modules/strtoimax (configure.ac): Likewise.
66423         * modules/strtoumax (configure.ac): Likewise.
66424
66425 2007-02-17  Bruno Haible  <bruno@clisp.org>
66426
66427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
66428         gl_STRING_MODULE_INDICATOR_DEFAULTS.
66429         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
66430         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
66431
66432 2007-02-17  Bruno Haible  <bruno@clisp.org>
66433
66434         * modules/link-warning: New file.
66435         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
66436         * lib/string_.h (GL_LINK_WARNING): Remove definition.
66437         * modules/string (Depends-on): Add link-warning.
66438         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66439         string.h.
66440         * MODULES.html.sh (Support for building libraries and executables): Add
66441         link-warning.
66442
66443 2007-02-17  Bruno Haible  <bruno@clisp.org>
66444
66445         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
66446         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
66447         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
66448         long lines.
66449
66450 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
66451             Bruno Haible  <bruno@clisp.org>
66452
66453         * modules/tmpfile: New file.
66454         * lib/tmpfile.c: New file.
66455         * m4/tmpfile.m4: New file.
66456         * MODULES.html.sh (func_all_modules): New section "Input/output".
66457
66458 2007-02-15  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
66461         (supports_delete_on_close): New function.
66462         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
66463
66464 2007-02-14  Bruno Haible  <bruno@clisp.org>
66465
66466         * modules/mbspcasecmp-tests: New file.
66467         * tests/test-mbspcasecmp.sh: New file.
66468         * tests/test-mbspcasecmp.c: New file.
66469
66470         New module mbspcasecmp.
66471         * modules/mbspcasecmp: New file.
66472         * lib/mbspcasecmp.c: New file.
66473         * lib/string_.h (strncasecmp): Change warning message.
66474         (mbspcasecmp): New declaration.
66475         * m4/mbspcasecmp.m4: New file.
66476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66477         GNULIB_MBSPCASECMP.
66478         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
66479         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
66480
66481 2007-02-14  Bruno Haible  <bruno@clisp.org>
66482
66483         * modules/mbsncasecmp-tests: New file.
66484         * tests/test-mbsncasecmp.sh: New file.
66485         * tests/test-mbsncasecmp.c: New file.
66486
66487         New module mbsncasecmp.
66488         * modules/mbsncasecmp: New file.
66489         * lib/mbsncasecmp.c: New file.
66490         * lib/string_.h (mbsncasecmp): New declaration.
66491         * m4/mbsncasecmp.m4: New file.
66492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66493         GNULIB_MBSNCASECMP.
66494         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
66495         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
66496
66497 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
66500         Verify that it doesn't overlap with our flags.
66501         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
66502         do not have the desired effect in multibyte locales; instead, use
66503         mbscasecmp.
66504         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
66505         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
66506         we don't require GNU fnmatch ourselves (if our users require it, they
66507         should do so explicitly).
66508
66509         Fix regex code so it doesn't rely on strcasecmp.
66510         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
66511         Otherwise, include gnulib's langinfo.h.
66512         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
66513         undesirable behavior in non-C locales.  Instead, rely on localecharset.
66514         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
66515         * modules/regex (FILES): Remove m4/codeset.m4.
66516         (Depends-on): Add localcharset.  Remove strcase.
66517
66518 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66519
66520         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
66521         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
66522
66523 2007-02-13  Bruno Haible  <bruno@clisp.org>
66524
66525         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
66526         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66527
66528 2007-02-12  Bruno Haible  <bruno@clisp.org>
66529
66530         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66531         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
66532         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
66533         time warning rather than a link error.
66534
66535 2007-02-12  Bruno Haible  <bruno@clisp.org>
66536
66537         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
66538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66540
66541 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66542
66543         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
66544         args, not 2.
66545
66546 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66547
66548         New module 'time', so that apps can include <time.h> as per
66549         POSIX and GNU instead of separate include files like time_r.h
66550         and timegm.h.  This implementation tries out a simpler approach
66551         for replacing decls in standard include files (as compared to
66552         the string module), somewhat as an experiment.
66553
66554         * config/srclist.txt: Comment out mktime.c for now.
66555         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
66556         since it doesn't apply any more.  Use generic wording instead.
66557         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
66558         'time'.
66559         * lib/time_.h, m4/time_h.m4, modules/time: New files.
66560         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
66561         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
66562         Don't include <sys/types.h>; no longer needed since we assume C89.
66563         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
66564         * lib/strftime.c: Likewise.
66565         * lib/time_r.c: Likewise.
66566         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
66567         * lib/nanosleep.c: Include <time.h> first, to check interface.
66568         * lib/strptime.c: Likewise.
66569         * lib/time_r.c: Likewise.
66570         * lib/timegm.c: Likewise.
66571         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
66572         needed.
66573         * lib/timegm.c: Don't include timegm.h; no longer needed.
66574         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
66575         time.h now handles any problems in that area.
66576         (struct timespec, nanosleep): Remove; time.h now arranges for these.
66577         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
66578         that time.h defines struct timespec.
66579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
66580         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
66581         handles that.
66582         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
66583         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
66584         needed.  Set REPLACE_LOCALTIME.
66585         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
66586         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
66587         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
66588         nanosleep; time_h.m4 now does that.  Don't require
66589         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
66590         module handles this now.
66591         * modules/getdate (Depends-on): Remove timespec.  Add time.
66592         * modules/nanosleep (Depends-on): Likewise.
66593         * modules/stat-time (Depends-on): Likewise.
66594         * modules/nanosleep (Include): Include time.h, not timespec.h.
66595         * modules/strptime (Files): Remove lib/strptime.h.
66596         (Depends-on): Add extensions, time.
66597         (Include): Include time.h, not strptime.h.
66598         * modules/time_r (Files): Remove lib/time_r.h.
66599         (Depends-on): Add time.
66600         (Include): Include time.h, not time_r.h.
66601         * modules/timegm: Likewise.
66602         * modules/timespec (Description): Now does timespec-related decls
66603         of our own, instead of struct timespec itself.
66604         (Depends-on): Add time; remove extensions.
66605         (Maintainer): Add self.
66606         * modules/utimecmp (Depends-on): Add time; remove timespec.
66607         * modules/utimens (Depends-on): Likewise.
66608         * modules/xnanosleep (Depends-on): Likewise.
66609
66610 2007-02-11  Bruno Haible  <bruno@clisp.org>
66611
66612         * lib/c-strstr.c: Include allocsa.h.
66613         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66614         * lib/c-strcasestr.c: Include allocsa.h.
66615         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66616         * lib/strcasestr.c: Include allocsa.h.
66617         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66618         * lib/mbsstr.c: Include allocsa.h.
66619         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66620         allocsa/freesa instead of malloc/free.
66621         * lib/mbscasestr.c: Include allocsa.h.
66622         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66623         allocsa/freesa instead of malloc/free.
66624         * modules/c-strstr (Depends-on): Add allocsa.
66625         * modules/c-strcasestr (Depends-on): Likewise.
66626         * modules/strcasestr (Depends-on): Likewise.
66627         * modules/mbsstr (Depends-on): Likewise.
66628         * modules/mbscasestr (Depends-on): Likewise.
66629
66630 2007-02-11  Bruno Haible  <bruno@clisp.org>
66631
66632         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
66633
66634         * modules/mbsspn-tests: New file.
66635         * tests/test-mbsspn.sh: New file.
66636         * tests/test-mbsspn.c: New file.
66637
66638 2007-02-11  Bruno Haible  <bruno@clisp.org>
66639
66640         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
66641
66642         * modules/mbspbrk-tests: New file.
66643         * tests/test-mbspbrk.sh: New file.
66644         * tests/test-mbspbrk.c: New file.
66645
66646 2007-02-11  Bruno Haible  <bruno@clisp.org>
66647
66648         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
66649         unneeded cast.
66650
66651         * modules/mbscspn-tests: New file.
66652         * tests/test-mbscspn.sh: New file.
66653         * tests/test-mbscspn.c: New file.
66654
66655 2007-02-11  Bruno Haible  <bruno@clisp.org>
66656
66657         * modules/mbscasecmp-tests: New file.
66658         * tests/test-mbscasecmp.sh: New file.
66659         * tests/test-mbscasecmp.c: New file.
66660
66661 2007-02-11  Bruno Haible  <bruno@clisp.org>
66662
66663         Ensure O(n) worst-case complexity of mbscasestr.
66664         * lib/mbscasestr.c: Include stdbool.h.
66665         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66666         functions.
66667         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
66668         the bookkeeping indicates that it's worth it.
66669         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
66670
66671         * modules/mbscasestr-tests: New file.
66672         * tests/test-mbscasestr1.c: New file.
66673         * tests/test-mbscasestr2.sh: New file.
66674         * tests/test-mbscasestr2.c: New file.
66675         * tests/test-mbscasestr3.sh: New file.
66676         * tests/test-mbscasestr3.c: New file.
66677         * tests/test-mbscasestr4.sh: New file.
66678         * tests/test-mbscasestr4.c: New file.
66679         * m4/locale-tr.m4: New file.
66680
66681 2007-02-11  Bruno Haible  <bruno@clisp.org>
66682
66683         Ensure O(n) worst-case complexity of mbsstr.
66684         * lib/mbsstr.c: Include stdbool.h.
66685         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66686         functions.
66687         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
66688         bookkeeping indicates that it's worth it.
66689         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
66690
66691         * modules/mbsstr-tests: New file.
66692         * tests/test-mbsstr1.c: New file.
66693         * tests/test-mbsstr2.sh: New file.
66694         * tests/test-mbsstr2.c: New file.
66695         * tests/test-mbsstr3.sh: New file.
66696         * tests/test-mbsstr3.c: New file.
66697         * m4/locale-fr.m4: New file.
66698
66699 2007-02-11  Bruno Haible  <bruno@clisp.org>
66700
66701         * lib/mbsrchr.c (mbsrchr): Fix bug.
66702
66703         * modules/mbsrchr-tests: New file.
66704         * tests/test-mbsrchr.sh: New file.
66705         * tests/test-mbsrchr.c: New file.
66706
66707 2007-02-11  Bruno Haible  <bruno@clisp.org>
66708
66709         * lib/mbschr.c (mbschr): Fix bug.
66710
66711         * modules/mbschr-tests: New file.
66712         * tests/test-mbschr.sh: New file.
66713         * tests/test-mbschr.c: New file.
66714         * m4/locale-zh.m4: New file.
66715
66716 2007-02-11  Bruno Haible  <bruno@clisp.org>
66717
66718         Support for copying multibyte string iterators.
66719         * lib/mbiter.h: Include <string.h>.
66720         (mbiter_multi_copy): New function.
66721         (mbi_copy): New macro.
66722         * lib/mbuiter.h: Include <string.h>.
66723         (mbuiter_multi_copy): New function.
66724         (mbui_copy): New macro.
66725
66726 2007-02-11  Bruno Haible  <bruno@clisp.org>
66727
66728         New module mbslen.
66729         * modules/mbslen: New file.
66730         * lib/mbslen.c: New file.
66731         * lib/string_.h (mbslen): New declaration.
66732         * m4/mbslen.m4: New file.
66733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66734         GNULIB_MBSLEN.
66735         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
66736         * MODULES.html.sh (Internationalization functions): Add mbslen.
66737
66738 2007-02-11  Bruno Haible  <bruno@clisp.org>
66739
66740         Ensure O(n) worst-case complexity of strcasestr substitute.
66741         * lib/strcasestr.c: Include stdbool.h.
66742         (knuth_morris_pratt): New function.
66743         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66744         bookkeeping indicates that it's worth it.
66745         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
66746
66747         * modules/strcasestr-tests: New file.
66748         * tests/test-strcasestr.c: New file.
66749
66750 2007-02-11  Bruno Haible  <bruno@clisp.org>
66751
66752         Ensure O(n) worst-case complexity of c_strcasestr.
66753         * lib/c-strcasestr.c: Include stdbool.h, string.h.
66754         (knuth_morris_pratt): New function.
66755         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
66756         the bookkeeping indicates that it's worth it.
66757         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
66758
66759         * modules/c-strcasestr-tests: New file.
66760         * tests/test-c-strcasestr.c: New file.
66761
66762 2007-02-11  Bruno Haible  <bruno@clisp.org>
66763
66764         Ensure O(n) worst-case complexity of c_strstr.
66765         * lib/c-strstr.c: Include stdbool.h, string.h.
66766         (knuth_morris_pratt): New function.
66767         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66768         bookkeeping indicates that it's worth it.
66769         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
66770
66771         * lib/c-strstr.c: Complete rewrite for maintainability.
66772
66773         * modules/c-strstr-tests: New file.
66774         * tests/test-c-strstr.c: New file.
66775
66776 2007-02-11  Bruno Haible  <bruno@clisp.org>
66777
66778         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
66779         5.2.1 and earlier, whereby \055 was treated just like the range
66780         delimiter '-'.
66781         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66782
66783 2007-02-08  Bruno Haible  <bruno@clisp.org>
66784
66785         * modules/regex (Depends-on): Add stdbool.
66786         Reported by Dalibor Topic <robilad@kaffe.org>.
66787
66788 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
66791         Prefer returning from main to exiting from it.
66792         Remove unnecessary parens after sizeof.
66793
66794 2007-02-05  Bruno Haible  <bruno@clisp.org>
66795
66796         New module mbssep.
66797         * modules/mbssep: New file.
66798         * lib/mbssep.c: New file.
66799         * lib/string_.h (strsep): Add a conditional link warning.
66800         (mbssep): New declaration.
66801         * m4/mbssep.m4: New file.
66802         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66803         GNULIB_MBSSEP.
66804         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
66805         * MODULES.html.sh (Internationalization functions): Add mbssep.
66806
66807 2007-02-05  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66810         Optimize search in case of 1 delimiter.
66811
66812 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66813
66814         * lib/acl.h: Include sys/types.h before sys/acl.h.
66815
66816 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66817
66818         Merge upstream fix for glibc bugzilla #3957:
66819
66820         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66821
66822         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66823         bit for RE_HAT_LISTS_NOT_NEWLINE.
66824         (build_charclass_op): Remove bogus comment.
66825
66826 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66827
66828         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66829
66830 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66831
66832         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66833         * lib/memmem.c [!defined _LIBC]: Include config.h.
66834
66835 2007-02-04  Bruno Haible  <bruno@clisp.org>
66836
66837         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66838         warning message.
66839
66840 2007-02-04  Bruno Haible  <bruno@clisp.org>
66841
66842         New module mbstok_r.
66843         * modules/mbstok_r: New file.
66844         * lib/mbstok_r.c: New file.
66845         * lib/string_.h (strtok_r): Change argument names to match the
66846         comments. Add a conditional link warning.
66847         (mbstok_r): New declaration.
66848         * m4/mbstok_r.m4: New file.
66849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66850         GNULIB_MBSTOK_R.
66851         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66852         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66853
66854 2007-02-04  Bruno Haible  <bruno@clisp.org>
66855
66856         New module mbsspn.
66857         * modules/mbsspn: New file.
66858         * lib/mbsspn.c: New file.
66859         * lib/string_.h (strspn): Add a conditional link warning.
66860         (mbsspn): New declaration.
66861         * m4/mbsspn.m4: New file.
66862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66863         GNULIB_MBSSPN.
66864         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66865         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66866
66867 2007-02-04  Bruno Haible  <bruno@clisp.org>
66868
66869         New module mbspbrk.
66870         * modules/mbspbrk: New file.
66871         * lib/mbspbrk.c: New file.
66872         * lib/string_.h (strpbrk): Add a conditional link warning.
66873         (mbspbrk): New declaration.
66874         * m4/mbspbrk.m4: New file.
66875         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66876         GNULIB_MBSPBRK.
66877         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66878         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66879
66880 2007-02-04  Bruno Haible  <bruno@clisp.org>
66881
66882         New module mbscspn.
66883         * modules/mbscspn: New file.
66884         * lib/mbscspn.c: New file.
66885         * lib/string_.h (strcspn): Add a conditional link warning.
66886         (mbscspn): New declaration.
66887         * m4/mbscspn.m4: New file.
66888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66889         GNULIB_MBSCSPN.
66890         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66891         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66892
66893 2007-02-04  Bruno Haible  <bruno@clisp.org>
66894
66895         New module mbscasestr, reduced goal of strcasestr.
66896         * modules/mbscasestr: New file.
66897         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66898         (mbscasestr): Renamed from strcasestr.
66899         * lib/strcasestr.c: Don't include mbuiter.h.
66900         (strcasestr): Remove support for multibyte locales.
66901         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66902         Change the conditional link warning.
66903         (mbscasestr): New declaration.
66904         * m4/mbscasestr.m4: New file.
66905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66906         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66907         REPLACE_STRCASESTR.
66908         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66910         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66911         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66912         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66913         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66914         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66915         (Depends-on): Remove mbuiter.
66916         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66917
66918 2007-02-04  Bruno Haible  <bruno@clisp.org>
66919
66920         Simplify handling of strncasecmp.
66921         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66922         the conditional link warning.
66923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66924         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66925         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66926         * modules/strcase (configure.ac): Don't invoke
66927         gl_STRING_MODULE_INDICATOR.
66928         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66929
66930 2007-02-04  Bruno Haible  <bruno@clisp.org>
66931
66932         New module mbscasecmp, reduced goal of strcasecmp.
66933         * modules/mbscasecmp: New file.
66934         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66935         (mbscasecmp): Renamed from strcasecmp.
66936         * lib/strcasecmp.c: Don't include mbuiter.h.
66937         (strcasecmp): Remove support for multibyte locales.
66938         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66939         Change the conditional link warning.
66940         (mbscasecmp): New declaration.
66941         * m4/mbscasecmp.m4: New file.
66942         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66943         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66944         REPLACE_STRCASECMP.
66945         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66947         GNULIB_MBSCASECMP.
66948         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66949         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66950         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66951         (Depends-on): Remove mbuiter.
66952         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66953
66954 2007-02-04  Bruno Haible  <bruno@clisp.org>
66955
66956         New module mbsstr. Remove module strstr.
66957         * modules/mbsstr: New file.
66958         * modules/strstr: Remove file.
66959         * lib/mbsstr.c: Renamed from lib/strstr.c.
66960         (mbsstr): Renamed from strstr.
66961         * lib/string_.h (strstr): Remove declaration. Change the conditional
66962         link warning.
66963         (mbsstr): New declaration.
66964         * m4/mbsstr.m4: New file.
66965         * m4/strstr.m4: Remove file.
66966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66967         REPLACE_STRSTR.
66968         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66969         Don't initialize GNULIB_STRSTR.
66970         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66971         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66972         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66973         (Support for systems lacking ANSI C 89): Remove strstr.
66974
66975 2007-02-04  Bruno Haible  <bruno@clisp.org>
66976
66977         New module mbsrchr.
66978         * modules/mbsrchr: New file.
66979         * lib/mbsrchr.c: New file.
66980         * lib/string_.h (strrchr): Add a conditional link warning.
66981         (mbsrchr): New declaration.
66982         * m4/mbsrchr.m4: New file.
66983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66984         GNULIB_MBSRCHR.
66985         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66986         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66987
66988 2007-02-04  Bruno Haible  <bruno@clisp.org>
66989
66990         New module mbschr.
66991         * modules/mbschr: New file.
66992         * lib/mbschr.c: New file.
66993         * lib/string_.h (strchr): Add a conditional link warning.
66994         (mbschr): New declaration.
66995         * m4/mbschr.m4: New file.
66996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66997         GNULIB_MBSCHR.
66998         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66999         * MODULES.html.sh (Internationalization functions): Add mbschr.
67000
67001 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
67004
67005         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
67006
67007 2007-02-04  Bruno Haible  <bruno@clisp.org>
67008
67009         New module description section 'configure.ac-early'.
67010         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
67011         (func_get_autoconf_early_snippet): New function.
67012         (func_import, func_create_testdir): Use it. Remove special cases for
67013         modules 'extensions' and 'lock'.
67014         * modules/extensions (configure.ac-early): Require
67015         gl_USE_SYSTEM_EXTENSIONS.
67016         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
67017
67018 2007-02-04  Bruno Haible  <bruno@clisp.org>
67019
67020         Make use of gcj-4.3's -fsource and -ftarget option.
67021         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
67022         and if so try the options -fsource and -ftarget.
67023         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
67024         source_version, ftarget_option, target_version arguments.
67025         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
67026         (is_envjavac_oldgcj_14_14_usable): Renamed from
67027         is_envjavac_gcj_14_14_usable.
67028         (is_envjavac_oldgcj_14_13_usable): Renamed from
67029         is_envjavac_gcj_14_13_usable.
67030         (is_gcj_present): Update.
67031         (is_gcj_43, is_gcj43_usable): New functions.
67032         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
67033         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
67034         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
67035         try the options -fsource and -ftarget.
67036
67037 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67038
67039         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
67040         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
67041         larger value.
67042
67043 2007-02-03  Jim Meyering  <jim@meyering.net>
67044
67045         Give tools a better chance to allocate space for very large buffers.
67046         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
67047
67048         Make pwd and readlink work also when run with an unreadable parent dir
67049         on systems with openat support.
67050         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
67051         provided getcwd function, even when we have openat support.
67052         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
67053
67054 2007-02-02  Bruno Haible  <bruno@clisp.org>
67055
67056         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67057         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
67058         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
67059         portability problems if one of these functions is only used on specific
67060         platforms.
67061         Reported by Paul Eggert.
67062
67063 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
67066         is causing more trouble than it's curing.
67067         * lib/regex_internal.h (__mempcpy): Remove.
67068         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
67069         (and make the code a tad smaller to boot).
67070         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
67071
67072 2007-02-02  Jim Meyering  <jim@meyering.net>
67073
67074         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
67075         section, not in the Makefile.am: one.
67076
67077 2007-02-02  Eric Blake  <ebb9@byu.net>
67078
67079         * lib/strchrnul.c: Always include config.h first.
67080
67081         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
67082         gnulib strstr is not necessary here.
67083
67084 2007-02-02  Simon Josefsson  <simon@josefsson.org>
67085
67086         * m4/socklen.m4: Fix typo.
67087
67088 2007-02-02  Eric Blake  <ebb9@byu.net>
67089
67090         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
67091         * modules/netinet_in (Makefile.am): Likewise.
67092
67093 2007-02-01  Bruno Haible  <bruno@clisp.org>
67094
67095         * lib/string_.h (GL_LINK_WARNING): New macro.
67096         (strcasecmp, strstr, strcasestr): If provided by the system,
67097         conditionally define as a macro that leads to a warning instead of to
67098         an error.
67099         (strncasecmp): Conditionally define as a macro that leads to a warning.
67100
67101 2007-02-01  Karl Berry  <karl@gnu.org>
67102
67103         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
67104
67105 2007-02-01  Bruno Haible  <bruno@clisp.org>
67106
67107         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
67108         renamings.
67109
67110 2007-02-01  Eric Blake  <ebb9@byu.net>
67111
67112         * modules/regex (Depends-on): Revert dependence on mempcpy.
67113         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
67114         module's definition of mempcpy.
67115         Reported by Paul Eggert.
67116
67117 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         * lib/string_.h: If the gnulib module XYZ is not present, undefine
67120         the symbol XYZ before redefining it.  This fixes a problem with
67121         programs that don't use XYZ, when compiled on systems that define
67122         XYZ to something else.
67123
67124 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
67125
67126         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
67127         occurs when "mkdir -m foo" creates a setgid directory that is (1)
67128         writeable to group or other and (2) is intended to have a special
67129         mode bit that is set or cleared.  In such a case, the directory
67130         should be neither group- nor other-writeable until the special
67131         mode bits are right.
67132
67133 2007-01-31  Eric Blake  <ebb9@byu.net>
67134
67135         * modules/mountlist (Depends-on): Add strstr.
67136
67137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
67138         bug.
67139         * modules/string (Makefile.am): Remove redundant replacement.
67140         * modules/regex (Depends-on): Add mempcpy.
67141
67142 2007-01-31  Bruno Haible  <bruno@clisp.org>
67143
67144         New module description field 'Link'.
67145         * gnulib-tool (func_usage): Document --extract-link-directive.
67146         (sed_extract_prog): Recognize 'Link' directive.
67147         (func_get_link_directive): New function.
67148         (func_import): Show summary of link directives.
67149         Handle --extract-link-directive option.
67150         * modules/acl (Link): New section.
67151         * modules/clock-time (Link): New section.
67152         * modules/euidaccess (Link): New section.
67153         * modules/gettext (Link): New section.
67154         * modules/iconv (Link): New section.
67155         * modules/lock (Link): New section.
67156         * modules/nanosleep (Link): New section.
67157         * modules/readline (Link): New section.
67158
67159 2007-01-27  Bruno Haible  <bruno@clisp.org>
67160
67161         Enforce the use of gnulib modules for unportable <string.h> functions.
67162         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
67163         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
67164         (gl_HEADER_STRING_H_BODY): Require it.
67165         * lib/string_.h: If the gnulib module XYZ is not present, redefine
67166         the symbol XYZ to one that gives a link error.
67167         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
67168         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
67169         * modules/mempcpy (configure.ac): Likewise.
67170         * modules/memrchr (configure.ac): Likewise.
67171         * modules/stpcpy (configure.ac): Likewise.
67172         * modules/stpncpy (configure.ac): Likewise.
67173         * modules/strcase (configure.ac): Likewise.
67174         * modules/strcasestr (configure.ac): Likewise.
67175         * modules/strchrnul (configure.ac): Likewise.
67176         * modules/strdup (configure.ac): Likewise.
67177         * modules/strndup (configure.ac): Likewise.
67178         * modules/strnlen (configure.ac): Likewise.
67179         * modules/strpbrk (configure.ac): Likewise.
67180         * modules/strsep (configure.ac): Likewise.
67181         * modules/strstr (configure.ac): Likewise.
67182         * modules/strtok_r (configure.ac): Likewise.
67183
67184 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
67185
67186         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
67187
67188 2007-01-30  Jim Meyering  <jim@meyering.net>
67189
67190         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
67191
67192 2007-01-29  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
67195         * lib/execute.c: Likewise.
67196         * lib/pipe.c: Likewise.
67197         * lib/printf-args.h: Likewise.
67198         * lib/printf-args.c: Likewise.
67199         * lib/printf-parse.c: Likewise.
67200         * lib/vasnprintf.c: Likewise.
67201
67202 2007-01-29  Eric Blake  <ebb9@byu.net>
67203
67204         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
67205         declaration.
67206
67207 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * lib/strptime.h (strptime): Use 'restrict' for args where
67210         POSIX requires this.
67211         * lib/strptime.c (strptime): Likewise.
67212         Change license notice from LGPL to GPL, since gnulib-tool will
67213         change this as needed.
67214         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
67215         defined.
67216         Include "strptime.h" first, to check interface.
67217         Do not #undef _LIBC and _NL_CURRENT.
67218         Do not include <stdlib.h>; no longer needed.
67219         Include "time_r.h" and declare ptime_locale_status
67220         only if _LIBC is not defined.
67221         (__P): Remove unused macro.
67222         (match_string): Bring back glibc version, but use it only if _LIBC
67223         is defined.
67224         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
67225         Remove unnecessary assertion and abort() call.
67226         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
67227         * m4/strptime.m4: Fix serial number comment.
67228         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
67229         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
67230         (Depends-on): Add time_r.
67231
67232 2007-01-29  Bruno Haible  <bruno@clisp.org>
67233
67234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67235         strptime.
67236         * modules/strptime (Depends-on): Add stdbool.
67237         * lib/strptime.h: Include <time.h> always. Add comments.
67238
67239 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67240
67241         * modules/strptime: New file.
67242         * lib/strptime.h: New file.
67243         * lib/strptime.c: New file.
67244         * m4/strptime.m4: New file.
67245
67246 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67247
67248         * MODULES.html.sh: New module mpsort.
67249         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
67250
67251         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
67252         a circularity problem with HP-UX ia64 reported by Bob Proulx in
67253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
67254         All uses changed.
67255         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
67256         All uses changed.
67257         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
67258         to _Restrict_.
67259         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
67260         the parameter matches the prototype.
67261
67262 2007-01-28  Jim Meyering  <jim@meyering.net>
67263
67264         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
67265         sys/time.h here, reverting that part of the previous patch:
67266         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
67267
67268 2007-01-28  Bruno Haible  <bruno@clisp.org>
67269
67270         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
67271         value of $(SYS_TIME_H).
67272         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
67273         remove it conditionally, too. [added by Jim Meyering]
67274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
67275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67276         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
67277         GETTIMEOFDAY_REPLACEMENT to 1.
67278
67279 2007-01-28  Bruno Haible  <bruno@clisp.org>
67280
67281         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
67282         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
67283         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
67284         Set UNISTD_H instead of UNISTD_H2.
67285         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
67286
67287 2007-01-28  Bruno Haible  <bruno@clisp.org>
67288
67289         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
67290         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
67291
67292 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67293
67294         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
67295         (func_create_testdir): Ensure C locale for `grep' and `tr'
67296         character ranges.
67297         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
67298         ACLOCAL_AMFLAGS parsing state machine.
67299
67300 2007-01-27  Bruno Haible  <bruno@clisp.org>
67301
67302         * modules/unistr/base: Update.
67303
67304 2007-01-27  Bruno Haible  <bruno@clisp.org>
67305
67306         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
67307         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
67308         * modules/unistr/u32-mbtouc-unsafe: Renamed from
67309         modules/unistr/u32-mbtouc.
67310         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
67311         * lib/unistr.h: Update.
67312         * lib/linebreak.c: Update.
67313         * modules/unistr/u32-mbtouc: Renamed from
67314         modules/unistr/u32-mbtouc-safe.
67315         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
67316         * lib/unistr.h: Update.
67317         * lib/unistr/u32-to-u8.c: Update.
67318         * lib/unistr/u32-to-u16.c: Update.
67319
67320 2007-01-27  Bruno Haible  <bruno@clisp.org>
67321
67322         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
67323         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
67324         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
67325         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
67326         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
67327         * modules/unistr/u16-mbtouc-unsafe: Renamed from
67328         modules/unistr/u16-mbtouc.
67329         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
67330         * lib/unistr.h: Update.
67331         * lib/linebreak.c: Update.
67332         * modules/linebreak: Update.
67333         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
67334         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
67335         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
67336         * modules/unistr/u16-mbtouc: Renamed from
67337         modules/unistr/u16-mbtouc-safe.
67338         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
67339         * lib/unistr.h: Update.
67340         * lib/unistr/u16-to-u8.c: Update.
67341         * modules/unistr/u16-to-u8: Update.
67342         * lib/unistr/u16-to-u32.c: Update.
67343         * modules/unistr/u16-to-u32: Update.
67344
67345 2007-01-27  Bruno Haible  <bruno@clisp.org>
67346
67347         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
67348         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
67349         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
67350         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
67351         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
67352         * modules/unistr/u8-mbtouc-unsafe: Renamed from
67353         modules/unistr/u8-mbtouc.
67354         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
67355         * lib/unistr.h: Update.
67356         * lib/striconveh.c: Update.
67357         * modules/striconveh: Update.
67358         * lib/linebreak.c: Update.
67359         * modules/linebreak: Update.
67360         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
67361         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
67362         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
67363         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
67364         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
67365         * lib/unistr.h: Update.
67366         * lib/striconveh.c: Update.
67367         * modules/striconveh: Update.
67368         * lib/unistr/u8-to-u16.c: Update.
67369         * modules/unistr/u8-to-u16: Update.
67370         * lib/unistr/u8-to-u32.c: Update.
67371         * modules/unistr/u8-to-u32: Update.
67372
67373 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67374
67375         Sync from Libtool.
67376         * lib/argz.c: Do not include strings.h nor memory.h, include
67377         string.h unconditionally.  Patch by Simon Josefsson.
67378
67379 2007-01-27  Bruno Haible  <bruno@clisp.org>
67380
67381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
67382         from gl_HEADER_STRING_H_BODY.
67383         (gl_HEADER_STRING_H_BODY): Require it.
67384         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
67385         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67387         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67388         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67389         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
67390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
67391         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67392         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
67393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67394         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67395         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
67396         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67397         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
67398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67399
67400 2007-01-27  Bruno Haible  <bruno@clisp.org>
67401
67402         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
67403         check_PROGRAMS into noinst_PROGRAMS.
67404         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
67405         check_PROGRAMS in this case.
67406         (func_import): Set for_test to false.
67407         (func_create_testdir): Set for_test to true.
67408
67409 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67410             Bruno Haible  <bruno@clisp.org>
67411
67412         * modules/strcasestr (Files): Remove lib/strcasestr.h.
67413         (Depends-on): Add string.
67414         (Includes): Use <string.h> instead of strcasestr.h.
67415         * modules/string (Makefile.am): Also substitute the value of
67416         REPLACE_STRCASESTR.
67417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
67418         assume strcasestr is declared in <string.h> not <strings.h>. Also
67419         set REPLACE_STRCASESTR.
67420         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
67421         REPLACE_STRCASESTR.
67422         * lib/strcasestr.h: Remove file.
67423         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
67424         * lib/string_.h (strcasestr): New declaration.
67425
67426 2007-01-27  Bruno Haible  <bruno@clisp.org>
67427
67428         * lib/string_.h: Use 'extern'.
67429
67430 2007-01-27  Jim Meyering  <jim@meyering.net>
67431
67432         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
67433         of set-but-not-used local, "q".
67434
67435         * lib/mempcpy.c: Include <config.h> before <string.h>.
67436         This fixes a compilation error on HP-UX, due to the system's
67437         "restrict"-using mempcpy prototype.
67438
67439 2007-01-26  Bruno Haible  <bruno@clisp.org>
67440
67441         Small optimization.
67442         * lib/javacomp.c: Include c-strstr.h.
67443          (is_envjavac_gcj): Use c_strstr instead of strstr.
67444         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
67445
67446 2007-01-26  Bruno Haible  <bruno@clisp.org>
67447
67448         * MODULES.html.sh (Unicode string functions): Add the new modules.
67449
67450         * modules/uniconv/u32-strconv-to-locale: New file.
67451         * lib/uniconv/u32-strconv-to-locale.c: New file.
67452
67453         * modules/uniconv/u16-strconv-to-locale: New file.
67454         * lib/uniconv/u16-strconv-to-locale.c: New file.
67455
67456         * modules/uniconv/u8-strconv-to-locale: New file.
67457         * lib/uniconv/u8-strconv-to-locale.c: New file.
67458
67459         * modules/uniconv/u32-strconv-from-locale: New file.
67460         * lib/uniconv/u32-strconv-from-locale.c: New file.
67461
67462         * modules/uniconv/u16-strconv-from-locale: New file.
67463         * lib/uniconv/u16-strconv-from-locale.c: New file.
67464
67465         * modules/uniconv/u8-strconv-from-locale: New file.
67466         * lib/uniconv/u8-strconv-from-locale.c: New file.
67467
67468         * modules/uniconv/u32-strconv-to-enc: New file.
67469         * lib/uniconv/u32-strconv-to-enc.c: New file.
67470         * modules/uniconv/u32-strconv-to-enc-tests: New file.
67471         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
67472
67473         * modules/uniconv/u16-strconv-to-enc: New file.
67474         * lib/uniconv/u16-strconv-to-enc.c: New file.
67475         * lib/uniconv/u-strconv-to-enc.h: New file.
67476         * modules/uniconv/u16-strconv-to-enc-tests: New file.
67477         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
67478
67479         * modules/uniconv/u8-strconv-to-enc: New file.
67480         * lib/uniconv/u8-strconv-to-enc.c: New file.
67481         * modules/uniconv/u8-strconv-to-enc-tests: New file.
67482         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
67483
67484         * modules/uniconv/u32-strconv-from-enc: New file.
67485         * lib/uniconv/u32-strconv-from-enc.c: New file.
67486         * modules/uniconv/u32-strconv-from-enc-tests: New file.
67487         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
67488
67489         * modules/uniconv/u16-strconv-from-enc: New file.
67490         * lib/uniconv/u16-strconv-from-enc.c: New file.
67491         * modules/uniconv/u16-strconv-from-enc-tests: New file.
67492         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
67493
67494         * modules/uniconv/u8-strconv-from-enc: New file.
67495         * lib/uniconv/u8-strconv-from-enc.c: New file.
67496         * lib/uniconv/u-strconv-from-enc.h: New file.
67497         * modules/uniconv/u8-strconv-from-enc-tests: New file.
67498         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
67499
67500         * modules/uniconv/u32-conv-from-enc: New file.
67501         * lib/uniconv/u32-conv-from-enc.c: New file.
67502         * modules/uniconv/u32-conv-from-enc-tests: New file.
67503         * tests/uniconv/test-u32-conv-from-enc.c: New file.
67504
67505         * modules/uniconv/u16-conv-from-enc: New file.
67506         * lib/uniconv/u16-conv-from-enc.c: New file.
67507         * lib/uniconv/u-conv-from-enc.h: New file.
67508         * modules/uniconv/u16-conv-from-enc-tests: New file.
67509         * tests/uniconv/test-u16-conv-from-enc.c: New file.
67510
67511         * modules/uniconv/u8-conv-from-enc: New file.
67512         * lib/uniconv/u8-conv-from-enc.c: New file.
67513         * modules/uniconv/u8-conv-from-enc-tests: New file.
67514         * tests/uniconv/test-u8-conv-from-enc.c: New file.
67515
67516         * modules/uniconv/base: New file.
67517         * lib/uniconv.h: New file.
67518
67519 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * doc/gnulib-tool.texi (Initial import): Update to match current
67522         behavior with strdup module.
67523         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
67524         * lib/memmem.h: Remove; all uses removed.  This is now done
67525         by <string.h>.
67526         * lib/mempcpy.h: Likewise.
67527         * lib/memrchr.h: Likewise.
67528         * lib/stpcpy.h: Likewise.
67529         * lib/stpncpy.h: Likewise.
67530         * lib/strcase.h: Likewise.
67531         * lib/strchrnul.h: Likewise.
67532         * lib/strdup.h: Likewise.
67533         * lib/strndup.h: Likewise.
67534         * lib/strnlen.h: Likewise.
67535         * lib/strpbrk.h: Likewise.
67536         * lib/strsep.h: Likewise.
67537         * lib/strstr.h: Likewise.
67538         * lib/strtok_r.h: Likewise.
67539         * lib/string_.h: New file.
67540         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
67541         Rely on <string.h> instead.
67542         * lib/canon-host.c: Likewise.
67543         * lib/chdir-long.c: Likewise.
67544         * lib/concatpath.c: Likewise.
67545         * lib/exclude.c: Likewise.
67546         * lib/fchdir.c: Likewise.
67547         * lib/getaddrinfo.c: Likewise.
67548         * lib/getcwd.c: Likewise.
67549         * lib/getsubopt.c: Likewise.
67550         * lib/glob.c: Likewise.
67551         * lib/hard-locale.c: Likewise.
67552         * lib/iconvme.c: Likewise.
67553         * lib/javacomp.c: Likewise.
67554         * lib/mempcpy.c: Likewise.
67555         * lib/memrchr.c: Likewise.
67556         * lib/regex_internal.h: Likewise.
67557         * lib/stpncpy.c: Likewise.
67558         * lib/strcasecmp.c: Likewise.
67559         * lib/strchrnul.c: Likewise.
67560         * lib/strdup.c: Likewise.
67561         * lib/striconv.c: Likewise.
67562         * lib/striconveh.c: Likewise.
67563         * lib/striconveha.c: Likewise.
67564         * lib/strncasecmp.c: Likewise.
67565         * lib/strndup.c: Likewise.
67566         * lib/strnlen.c: Likewise.
67567         * lib/strsep.c: Likewise.
67568         * lib/strstr.c: Likewise.
67569         * lib/strtok_r.c: Likewise.
67570         * lib/userspec.c: Likewise.
67571         * lib/w32spawn.h: Likewise.
67572         * lib/xstrndup.c: Likewise.
67573         * lib/mountlist.c (strstr): Remove decl.
67574         * m4/string_h.m4: New file.
67575         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
67576         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
67577         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
67578         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
67579         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
67580         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
67581         Set REPLACE_STRCASECMP if necessary.
67582         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
67583         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
67584         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
67585         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
67586         HAVE_DECL_STRDUP if necessary.
67587         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
67588         since gl_FUNC_STRNDUP does that now.
67589         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
67590         Check for decl here...
67591         (gl_PREREQ_STRNLEN): ... not here.
67592         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
67593         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
67594         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
67595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
67596         necessary.
67597         * modules/string: New file.
67598         * modules/memmem (Files): Remove special-purpose include file.
67599         (Depends-on): Add string.
67600         (Include): Include <string.h>, not the removed file.
67601         * modules/mempcpy: Likewise.
67602         * modules/memrchr: Likewise.
67603         * modules/stpcpy: Likewise.
67604         * modules/stpncpy: Likewise.
67605         * modules/strcase: Likewise.
67606         * modules/strchrnul: Likewise.
67607         * modules/strdup: Likewise.
67608         * modules/strndup: Likewise.
67609         * modules/strnlen: Likewise.
67610         * modules/strpbrk: Likewise.
67611         * modules/strsep: Likewise.
67612         * modules/strstr: Likewise.
67613         * modules/strtok_r: Likewise.
67614         * tests/test-dirname.c: Don't include "strdup.h", since
67615         <string.h> now suffices.
67616         * tests/test-memmem.c: Don't include "memmem.h", since
67617         <string.h> now suffices.
67618
67619 2007-01-25  Bruno Haible  <bruno@clisp.org>
67620
67621         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
67622         *resultp is 0.
67623
67624         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
67625         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
67626         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
67627         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
67628
67629         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
67630         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
67631         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
67632         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
67633         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
67634         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
67635
67636 2007-01-24  Bruno Haible  <bruno@clisp.org>
67637
67638         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
67639         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
67640         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
67641         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
67642         gl_FUNC_FTS_CORE.
67643         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
67644         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
67645         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67646         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
67647         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
67648         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
67649         gl_FUNC_FCHOWNAT.
67650         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
67651         gl_FUNC_STRFTIME.
67652         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
67653         Reported by Ralf Wildenhues.
67654
67655 2007-01-24  Bruno Haible  <bruno@clisp.org>
67656
67657         Drop AC_REQUIRE calls that are redundant with the module dependencies.
67658         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
67659         gl_GETADDRINFO.
67660         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
67661         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
67662         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
67663
67664 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
67665
67666         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
67667         Don't use 'exit'; just return from 'main'.
67668         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
67669
67670         * lib/fnmatch_.h: Readjust white space and comments to match
67671         glibc, to avoid spurious diffs.
67672
67673 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
67676         2004-12-01 change by Jakub Jelinek, since this code won't compile
67677         if !LIBC.  Problem reported by Bob Proulx.
67678
67679 2007-01-23  Bruno Haible  <bruno@clisp.org>
67680
67681         * lib/striconveh.c: Include c-strcaseeq.h.
67682         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
67683         * modules/striconveh (Depends-on): Add c-strcaseeq.
67684
67685 2007-01-23  Bruno Haible  <bruno@clisp.org>
67686
67687         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
67688
67689         * modules/c-strcaseeq: New file.
67690         * lib/c-strcaseeq.h: New file.
67691
67692         * modules/streq: New file.
67693         * lib/streq.h: New file.
67694
67695 2007-01-23  Bruno Haible  <bruno@clisp.org>
67696
67697         * modules/striconveha-tests: New file.
67698         * tests/test-striconveha.c: New file.
67699
67700         * lib/striconveha.h: Include <stdbool.h>.
67701         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
67702         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
67703         (mem_iconveha_notranslit): Renamed from mem_iconveha.
67704         (mem_iconveha): New function.
67705         (str_iconveha_notranslit): Renamed from str_iconveha.
67706         (str_iconveha): New function.
67707         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
67708         c-strcase.
67709
67710 2007-01-23  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
67713         encodings without forgiving before trying any encoding with handler.
67714         (str_iconveha): Try all encodings without forgiving before trying any
67715         encoding with handler.
67716
67717 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         Import the following changes from libc.
67720
67721         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67722
67723         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
67724
67725         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67726
67727         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
67728         normal_bracket label.
67729
67730         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
67731
67732         [BZ #361]
67733         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
67734         to normal_bracket after fetching the next character.
67735
67736 2007-01-22  Bruno Haible  <bruno@clisp.org>
67737
67738         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
67739         argument.
67740         * lib/striconveh.c (iconv_carefully_1): New function.
67741         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
67742         argument.
67743         (str_cd_iconveh): Update.
67744         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
67745         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
67746         * tests/test-striconveh.c (MAGIC): New macro.
67747         (new_offsets): New function.
67748         (main): Test call with and without offsets.
67749
67750 2007-01-22  Bruno Haible  <bruno@clisp.org>
67751
67752         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
67753         * modules/sys_select (Makefile.am): Likewise.
67754         * modules/sys_socket (Makefile.am): Likewise.
67755         * modules/sys_time (Makefile.am): Likewise.
67756
67757 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67758
67759         * modules/gettimeofday (License): Change from GPL to LGPL, since
67760         gettimeofday is a library function.
67761
67762 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67763
67764         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
67765
67766 2007-01-21  Bruno Haible  <bruno@clisp.org>
67767
67768         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
67769
67770 2007-01-21  Bruno Haible  <bruno@clisp.org>
67771
67772         * modules/striconveha: New file.
67773         * lib/striconveha.h: New file.
67774         * lib/striconveha.c: New file.
67775         * MODULES.html.sh (Internationalization functions): Add striconveha.
67776         * lib/striconv.c (str_iconv): Optimize the case of an empty input
67777         string.
67778         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
67779
67780 2007-01-21  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
67783         * lib/striconveh.c (str_iconveh): Likewise.
67784
67785 2007-01-21  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/striconveh.h (mem_iconveh): New declaration.
67788         * lib/striconveh.c (mem_iconveh): New function.
67789         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
67790
67791 2007-01-21  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
67794
67795         * lib/striconveh.h (mem_cd_iconveh): Change specification.
67796         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
67797         original result buffer.
67798         (str_cd_iconveh): Update.
67799         * tests/test-striconveh.c (main): Update.
67800
67801         * lib/striconv.h (mem_cd_iconv): Change specification.
67802         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
67803         result buffer.
67804         (str_cd_iconv): Update.
67805         * tests/test-striconv.c (main): Update.
67806
67807 2007-01-21  Bruno Haible  <bruno@clisp.org>
67808
67809         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67810
67811 2007-01-20  Jim Meyering  <jim@meyering.net>
67812
67813         * lib/userspec.c (parse_with_separator): If a user or group string
67814         starts with "+", skip the corresponding name-to-ID look-up, since
67815         such a look-up must fail: user and group names may not include "+".
67816
67817 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67820         since we now assume the sys_time module.
67821         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67822         check for sys/time.h; no longer needed.
67823         * modules/poll (Depends-on): Depend on sys_time.
67824
67825 2007-01-18  Bruno Haible  <bruno@clisp.org>
67826
67827         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67829
67830         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67831         gettimeofday.
67832
67833         * tests/test-gettimeofday.c: Include <time.h>.
67834         (dummy): Remove variable.
67835
67836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67837         gl_HEADER_SYS_TIME_H.
67838         (gl_HEADER_SYS_TIME_H): New macro.
67839
67840         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67841         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67843         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67844         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67845         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67846         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67847         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67848         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67849         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67850         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67851
67852         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67853         last change; it caused a compilation error when cross-compiling to
67854         Cygwin.
67855
67856 2007-01-18  Jim Meyering  <jim@meyering.net>
67857
67858         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67859         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67860         than the race-prone "test -d sys || mkdir sys".
67861         (configure.ac): Use AC_PROG_MKDIR_P.
67862         * modules/sys_select: Likewise.
67863         * modules/sys_socket: Likewise.
67864         * modules/sys_time: Likewise.
67865
67866 2007-01-18  Eric Blake  <ebb9@byu.net>
67867
67868         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67869         replace gettimeofday.
67870         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67871         name, to avoid infinite recursion.
67872
67873 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67876         module sys_time.
67877         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67878         assume timespec.h defines struct timeval.
67879         * lib/settime.c: Likewise.
67880         * lib/utimens.c: Likewise.
67881         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67882         since we now assume the gettimeofday module.
67883         * lib/tempname.c (__gen_tempname): Likewise.
67884         * lib/gettimeofday.h: Remove.
67885         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67886         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67887         Include <time.h>, for 'time()'.
67888         (localtime_buffer_addr): Also use this workaround if
67889         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67890         to simplify the uses.  All uses changed.
67891         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67892         that #undef is inside {}, and 'const' follows type name consistently.
67893         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67894         (gettimeofday): Do not use the maximum possible value for
67895         tv->tv_usec, since that might break usages other than ls.c.
67896         Instead, we'll leave ls.c alone.  This undoes today's patch
67897         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67898         we've never observed the problem but might as well keep the
67899         canary.
67900         * lib/nanosleep.c: Include timespec.h first, for interface check.
67901         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67902         now assume the sys_time module.
67903         * lib/tempname.c: Likewise.
67904         * lib/timespec.h: Likewise.
67905         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67906         needed.
67907         * lib/strftime.c: Likewise.
67908         * lib/timespec.h: Likewise.
67909         * lib/posixtm.c: Include posixtm.h first, for interface check.
67910         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67911         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67912         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67913         * lib/sys_time_.h: New file.
67914         * lib/timespec.h (struct timespec): Use long int, not long.
67915         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67916         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67917         Remove obsolescent call to AC_HEADER_TIME.
67918         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67921         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67922         Likewise.
67923         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67924         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67926         into the sys_time module.  Check for gettimeofday just once.
67927         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67928         for gettimeofday signature to just check the signature.  Merely
67929         compile it, since linking doesn't test signature.  Improve test for
67930         whether gettimeofday.o is actually needed.
67931         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67932         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67933         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67934         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67935         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67936         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67937         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67938         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67939         than worrying about sys/time.h.
67940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67941         Don't bother worrying about TIME_WITH_SYS_TIME.
67942         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67943         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67944         * m4/sys_time_h.m4: New file.
67945         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67946         Don't include sys/time.h.  Return from main rather than exiting.
67947         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67948         all uses changed.
67949         * modules/gethrxtime (Depends-on): Add sys_time.
67950         * modules/gettime (Depends-on): Likewise.
67951         * modules/gettimeofday (Depends-on): Likewise.
67952         * modules/nanosleep (Depends-on): Likewise.
67953         * modules/settime (Depends-on): Likewise.
67954         * modules/tempname (Depends-on): Likewise.
67955         * modules/utimens (Depends-on): Likewise.
67956         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67957         (Include): Change back to <sys/time.h>.
67958         (Maintainer): Add self.
67959         * modules/sys_time: New file.
67960         * modules/tempname (Depends-on): Add gettimeofday.
67961         * tests/test-gettimeofday.c: Include <sys/time.h>
67962         rather than gettimeofday.h.
67963
67964 2007-01-17  Bruno Haible  <bruno@clisp.org>
67965
67966         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67967         the license default to GPL.
67968         (func_create_testdir): Don't complain if a module is LGPL and its
67969         tests module depends on GPLed modules.
67970
67971 2007-01-17  Bruno Haible  <bruno@clisp.org>
67972
67973         * lib/gettimeofday.c (gettimeofday): Add code for the case
67974         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67975         maximum possible value for tv->tv_usec, rather than the minimum one.
67976
67977 2005-10-08  Martin Lambers  <marlam@marlam.de>
67978 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67979 2007-01-16  Bruno Haible  <bruno@clisp.org>
67980
67981         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67982         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67983         gl_FUNC_GETTIMEOFDAY.
67984         (Include): Add gettimeofday.h.
67985         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67986         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67987         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67988         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67989         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67990         * lib/gettimeofday.h: New file.
67991         * lib/gettimeofday.c: Include <sys/timeb.h>.
67992         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67993         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67994         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67995         fall back on time().
67996
67997         * tests/test-gettimeofday.c: New file.
67998         * modules/gettimeofday-tests: New file.
67999
68000 2007-01-16  Eric Blake  <ebb9@byu.net>
68001
68002         * modules/fnmatch (Depends-on): Depend on wchar.
68003         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
68004         * m4/fnmatch.m4: Likewise.
68005         * modules/mbchar (Makefile.am): Assume <wchar.h>.
68006         * m4/mbchar.m4: Likewise.
68007         * modules/mbswidth (Depends-on): Depend on wchar.
68008         * lib/mbswidth.c: Assume <wchar.h>.
68009         * m4/mbswidth.m4: Likewise.
68010         * modules/quotearg (Depends-on): Depend on wchar.
68011         * lib/quotearg.c: Assume <wchar.h>.
68012         * m4/quotearg.m4: Likewise.
68013         * modules/regex (Depends-on): Depend on wchar.
68014         * lib/regex_internal.h: Assume <wchar.h>.
68015         * m4/regex.m4: Likewise.
68016         * modules/stdint (Depends-on): Depend on wchar.
68017         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
68018         * m4/stdint.m4: Likewise.
68019         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
68020         * modules/strftime (Depends-on): Depend on wchar.
68021         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
68022         * modules/strtol (Depends-on): Depend on wchar.
68023         * lib/strtol.c: Assume <wchar.h>.
68024         * modules/wcwidth (Depends-on): Depend on wchar.
68025         * lib/wcwidth.h: Assume <wchar.h>.
68026         * m4/wcwidth.m4: Likewise.
68027
68028 2007-01-16  Bruno Haible  <bruno@clisp.org>
68029
68030         * modules/csharpexec-script: New, created from...
68031         * modules/csharpexec: ... this.
68032
68033 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
68034
68035         * modules/javaexec-script: New, created from...
68036         * modules/javaexec: ... this.
68037
68038 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68039
68040         * modules/poll (Dependencies): Add sys_select.
68041
68042 2007-01-15  Jim Meyering  <jim@meyering.net>
68043
68044         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
68045         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
68046         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
68047         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
68048
68049 2007-01-15  Bruno Haible  <bruno@clisp.org>
68050
68051         * modules/striconveh: New file.
68052         * lib/striconveh.h: New file.
68053         * lib/striconveh.c: New file.
68054         * MODULES.html.sh (Internationalization functions): Add striconveh.
68055
68056         * modules/striconveh-tests: New file.
68057         * tests/test-striconveh.c: New file.
68058
68059 2007-01-15  Bruno Haible  <bruno@clisp.org>
68060
68061         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
68062         not from GNU libiconv or GNU libc.
68063
68064 2007-01-15  Bruno Haible  <bruno@clisp.org>
68065
68066         * doc/gnulib-intro.texi (Copyright): Explain the different license
68067         terms for module descriptions, autoconf macros, tests, documentation.
68068
68069 2007-01-14  Bruno Haible  <bruno@clisp.org>
68070
68071         * modules/striconv-tests: New file.
68072         * tests/test-striconv.c: New file.
68073
68074 2007-01-14  Bruno Haible  <bruno@clisp.org>
68075
68076         * modules/iconv-tests: New file.
68077         * tests/test-iconv.c: New file.
68078
68079 2007-01-14  Bruno Haible  <bruno@clisp.org>
68080
68081         * gnulib-tool (func_get_license): For test modules, use the license of
68082         the main module.
68083
68084 2007-01-14  Bruno Haible  <bruno@clisp.org>
68085
68086         * modules/iconv (Include): Clarify that <iconv.h> can only be included
68087         if iconv is found to exist.
68088
68089 2007-01-14  Bruno Haible  <bruno@clisp.org>
68090
68091         * modules/c-ctype-tests: New file.
68092         * tests/test-c-ctype.c: New file.
68093
68094 2007-01-14  Bruno Haible  <bruno@clisp.org>
68095
68096         * modules/binary-io-tests: New file.
68097         * tests/test-binary-io.sh: New file.
68098         * tests/test-binary-io.c: New file.
68099
68100 2007-01-14  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/array-oset-tests: New file.
68103         * tests/test-array_oset.c: New file.
68104
68105 2007-01-14  Bruno Haible  <bruno@clisp.org>
68106
68107         * modules/array-list-tests: New file.
68108         * tests/test-array_list.c: New file.
68109
68110 2007-01-14  Bruno Haible  <bruno@clisp.org>
68111
68112         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
68113         and make.
68114         Reported by Simon Josefsson in
68115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
68116
68117 2007-01-14  Bruno Haible  <bruno@clisp.org>
68118
68119         * modules/allocsa-tests: New file.
68120         * tests/test-allocsa.c: New file.
68121
68122 2007-01-14  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/fchdir (Depends-on): Add absolute-header.
68125         * modules/unistd (Depends-on): Likewise.
68126
68127 2006-12-30  Bruno Haible  <bruno@clisp.org>
68128
68129         * modules/fchdir: New file.
68130         * modules/unistd (Files): Add lib/unistd_.h.
68131         (Makefile.am): Generate unistd.h from unistd_.h.
68132         * lib/fchdir.c: New file.
68133         * lib/dirent_.h: New file.
68134         * lib/unistd_.h: New file.
68135         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
68136         * m4/fchdir.m4: New file.
68137         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
68138         (gl_HEADER_UNISTD): Invoke it.
68139         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
68140         function.
68141         * lib/backupfile.c (opendir, closedir): Undefine.
68142         * lib/chown.c (open, close): Undefine.
68143         * lib/clean-temp.c (open, close): Undefine.
68144         * lib/copy-file.c (open, close): Undefine.
68145         * lib/execute.c (open, close): Undefine.
68146         * lib/fsusage.c (open, close): Undefine.
68147         * lib/gc-gnulib.c (open, close): Undefine.
68148         * lib/getcwd.c (opendir, closedir): Undefine.
68149         * lib/glob.c (opendir, closedir): Undefine.
68150         * lib/javacomp.c (open, close): Undefine.
68151         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
68152         * lib/openat-proc.c (open, close): Undefine.
68153         * lib/pagealign_alloc.c (open, close): Undefine.
68154         * lib/pipe.c (open, close): Undefine.
68155         * lib/progreloc.c (open, close): Undefine.
68156         * lib/savedir.c (opendir, closedir): Undefine.
68157         * lib/utime.c (open, close): Undefine.
68158         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
68159
68160 2007-01-10  Bruno Haible  <bruno@clisp.org>
68161
68162         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
68163
68164 2007-01-12  Eric Blake  <ebb9@byu.net>
68165
68166         Provide a robust <wchar.h>.  Further simplifications are now
68167         possible in other modules, but not included here.
68168         * modules/wchar: New module.
68169         * m4/wchar.m4: New file.
68170         * lib/wchar_.h: Likewise.
68171         * modules/mbchar (Depends-on): Depend on wchar, as the first use
68172         of the new module.
68173         * MODULES.html.sh (Extended multibyte and wide character utilities):
68174         New section.
68175
68176 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
68179         to a reasonable default for memory allocation.
68180         (xreadlink): Don't allocate a huge buffer, to work around a buggy
68181         file system that reports garbage st_size values for symlinks.
68182         Problem reported by Liyang Hu.
68183
68184 2007-01-11  Simon Josefsson  <simon@josefsson.org>
68185
68186         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
68187         Emacs .#* auto-save files).
68188
68189 2007-01-11  Bruno Haible  <bruno@clisp.org>
68190
68191         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
68192         directory.
68193
68194 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         Use @...@ consistently in lib/wctype_.h.
68197         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
68198         on it being set to 1 or 0.
68199         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
68200         go back to AC_SUBSTing it.
68201         * modules/wctype (Makefile.am): Undo previous change.
68202
68203 2007-01-10  Eric Blake  <ebb9@byu.net>
68204
68205         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
68206         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
68207         * modules/wctype (Makefile.am): Likewise.
68208         Reported by Chris McGuire.
68209
68210 2007-01-10  Jim Meyering  <jim@meyering.net>
68211
68212         fts.c: a small readability/maintainability improvement
68213         * lib/fts.c (fts_read): Make this code slightly more readable and
68214         maintainable by hoisting the "sp->fts_cur = p" assignments to
68215         immediately follow the statements that set P.  Derived from
68216         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
68217
68218 2007-01-10  Eric Blake  <ebb9@byu.net>
68219
68220         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
68221         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
68222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68223         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
68224         Reported by Chris McGuire.
68225
68226 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68227
68228         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
68229         in sed script.
68230
68231 2007-01-09  Bruno Haible  <bruno@clisp.org>
68232
68233         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
68234         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
68235         variables.
68236         (func_module): Use them.
68237
68238 2007-01-09  Bruno Haible  <bruno@clisp.org>
68239
68240         * modules/unistr/base: New file.
68241         * lib/unistr.h: New file.
68242
68243         * modules/unistr/u8-to-u16: New file.
68244         * lib/unistr/u8-to-u16.c: New file.
68245
68246         * modules/unistr/u8-to-u32: New file.
68247         * lib/unistr/u8-to-u32.c: New file.
68248
68249         * modules/unistr/u16-to-u8: New file.
68250         * lib/unistr/u16-to-u8.c: New file.
68251
68252         * modules/unistr/u16-to-u32: New file.
68253         * lib/unistr/u16-to-u32.c: New file.
68254
68255         * modules/unistr/u32-to-u8: New file.
68256         * lib/unistr/u32-to-u8.c: New file.
68257
68258         * modules/unistr/u32-to-u16: New file.
68259         * lib/unistr/u32-to-u16.c: New file.
68260
68261         * modules/unistr/u8-check: New file.
68262         * modules/unistr/u16-check: New file.
68263         * modules/unistr/u32-check: New file.
68264         * lib/unistr/u8-check.c: New file.
68265         * lib/unistr/u16-check.c: New file.
68266         * lib/unistr/u32-check.c: New file.
68267
68268         * modules/unistr/u8-chr: New file.
68269         * modules/unistr/u16-chr: New file.
68270         * modules/unistr/u32-chr: New file.
68271         * lib/unistr/u8-chr.c: New file.
68272         * lib/unistr/u16-chr.c: New file.
68273         * lib/unistr/u32-chr.c: New file.
68274
68275         * modules/unistr/u8-cmp: New file.
68276         * modules/unistr/u16-cmp: New file.
68277         * modules/unistr/u32-cmp: New file.
68278         * lib/unistr/u8-cmp.c: New file.
68279         * lib/unistr/u16-cmp.c: New file.
68280         * lib/unistr/u32-cmp.c: New file.
68281
68282         * modules/unistr/u8-cpy: New file.
68283         * modules/unistr/u16-cpy: New file.
68284         * modules/unistr/u32-cpy: New file.
68285         * lib/unistr/u8-cpy.c: New file.
68286         * lib/unistr/u16-cpy.c: New file.
68287         * lib/unistr/u32-cpy.c: New file.
68288         * lib/unistr/u-cpy.h: New file.
68289
68290         * modules/unistr/u8-cpy-alloc: New file.
68291         * modules/unistr/u16-cpy-alloc: New file.
68292         * modules/unistr/u32-cpy-alloc: New file.
68293         * lib/unistr/u8-cpy-alloc.c: New file.
68294         * lib/unistr/u16-cpy-alloc.c: New file.
68295         * lib/unistr/u32-cpy-alloc.c: New file.
68296         * lib/unistr/u-cpy-alloc.h: New file.
68297
68298         * modules/unistr/u8-endswith: New file.
68299         * modules/unistr/u16-endswith: New file.
68300         * modules/unistr/u32-endswith: New file.
68301         * lib/unistr/u8-endswith.c: New file.
68302         * lib/unistr/u16-endswith.c: New file.
68303         * lib/unistr/u32-endswith.c: New file.
68304         * lib/unistr/u-endswith.h: New file.
68305
68306         * modules/unistr/u8-mblen: New file.
68307         * modules/unistr/u16-mblen: New file.
68308         * modules/unistr/u32-mblen: New file.
68309         * lib/unistr/u8-mblen.c: New file.
68310         * lib/unistr/u16-mblen.c: New file.
68311         * lib/unistr/u32-mblen.c: New file.
68312
68313         * modules/unistr/u8-mbtouc: New file.
68314         * modules/unistr/u16-mbtouc: New file.
68315         * modules/unistr/u32-mbtouc: New file.
68316         * lib/unistr/u8-mbtouc.c: New file.
68317         * lib/unistr/u16-mbtouc.c: New file.
68318         * lib/unistr/u32-mbtouc.c: New file.
68319
68320         * modules/unistr/u8-mbtouc-safe: New file.
68321         * modules/unistr/u16-mbtouc-safe: New file.
68322         * modules/unistr/u32-mbtouc-safe: New file.
68323         * lib/unistr/u8-mbtouc-safe.c: New file.
68324         * lib/unistr/u16-mbtouc-safe.c: New file.
68325         * lib/unistr/u32-mbtouc-safe.c: New file.
68326
68327         * modules/unistr/u8-move: New file.
68328         * modules/unistr/u16-move: New file.
68329         * modules/unistr/u32-move: New file.
68330         * lib/unistr/u8-move.c: New file.
68331         * lib/unistr/u16-move.c: New file.
68332         * lib/unistr/u32-move.c: New file.
68333         * lib/unistr/u-move.h: New file.
68334
68335         * modules/unistr/u8-next: New file.
68336         * modules/unistr/u16-next: New file.
68337         * modules/unistr/u32-next: New file.
68338         * lib/unistr/u8-next.c: New file.
68339         * lib/unistr/u16-next.c: New file.
68340         * lib/unistr/u32-next.c: New file.
68341
68342         * modules/unistr/u8-prev: New file.
68343         * modules/unistr/u16-prev: New file.
68344         * modules/unistr/u32-prev: New file.
68345         * lib/unistr/u8-prev.c: New file.
68346         * lib/unistr/u16-prev.c: New file.
68347         * lib/unistr/u32-prev.c: New file.
68348
68349         * modules/unistr/u8-set: New file.
68350         * modules/unistr/u16-set: New file.
68351         * modules/unistr/u32-set: New file.
68352         * lib/unistr/u8-set.c: New file.
68353         * lib/unistr/u16-set.c: New file.
68354         * lib/unistr/u32-set.c: New file.
68355         * lib/unistr/u-set.h: New file.
68356
68357         * modules/unistr/u8-startswith: New file.
68358         * modules/unistr/u16-startswith: New file.
68359         * modules/unistr/u32-startswith: New file.
68360         * lib/unistr/u8-startswith.c: New file.
68361         * lib/unistr/u16-startswith.c: New file.
68362         * lib/unistr/u32-startswith.c: New file.
68363         * lib/unistr/u-startswith.h: New file.
68364
68365         * modules/unistr/u8-stpcpy: New file.
68366         * modules/unistr/u16-stpcpy: New file.
68367         * modules/unistr/u32-stpcpy: New file.
68368         * lib/unistr/u8-stpcpy.c: New file.
68369         * lib/unistr/u16-stpcpy.c: New file.
68370         * lib/unistr/u32-stpcpy.c: New file.
68371         * lib/unistr/u-stpcpy.h: New file.
68372
68373         * modules/unistr/u8-stpncpy: New file.
68374         * modules/unistr/u16-stpncpy: New file.
68375         * modules/unistr/u32-stpncpy: New file.
68376         * lib/unistr/u8-stpncpy.c: New file.
68377         * lib/unistr/u16-stpncpy.c: New file.
68378         * lib/unistr/u32-stpncpy.c: New file.
68379         * lib/unistr/u-stpncpy.h: New file.
68380
68381         * modules/unistr/u8-strcat: New file.
68382         * modules/unistr/u16-strcat: New file.
68383         * modules/unistr/u32-strcat: New file.
68384         * lib/unistr/u8-strcat.c: New file.
68385         * lib/unistr/u16-strcat.c: New file.
68386         * lib/unistr/u32-strcat.c: New file.
68387         * lib/unistr/u-strcat.h: New file.
68388
68389         * modules/unistr/u8-strchr: New file.
68390         * modules/unistr/u16-strchr: New file.
68391         * modules/unistr/u32-strchr: New file.
68392         * lib/unistr/u8-strchr.c: New file.
68393         * lib/unistr/u16-strchr.c: New file.
68394         * lib/unistr/u32-strchr.c: New file.
68395
68396         * modules/unistr/u8-strcmp: New file.
68397         * modules/unistr/u16-strcmp: New file.
68398         * modules/unistr/u32-strcmp: New file.
68399         * lib/unistr/u8-strcmp.c: New file.
68400         * lib/unistr/u16-strcmp.c: New file.
68401         * lib/unistr/u32-strcmp.c: New file.
68402
68403         * modules/unistr/u8-strcpy: New file.
68404         * modules/unistr/u16-strcpy: New file.
68405         * modules/unistr/u32-strcpy: New file.
68406         * lib/unistr/u8-strcpy.c: New file.
68407         * lib/unistr/u16-strcpy.c: New file.
68408         * lib/unistr/u32-strcpy.c: New file.
68409         * lib/unistr/u-strcpy.h: New file.
68410
68411         * modules/unistr/u8-strcspn: New file.
68412         * modules/unistr/u16-strcspn: New file.
68413         * modules/unistr/u32-strcspn: New file.
68414         * lib/unistr/u8-strcspn.c: New file.
68415         * lib/unistr/u16-strcspn.c: New file.
68416         * lib/unistr/u32-strcspn.c: New file.
68417         * lib/unistr/u-strcspn.h: New file.
68418
68419         * modules/unistr/u8-strdup: New file.
68420         * modules/unistr/u16-strdup: New file.
68421         * modules/unistr/u32-strdup: New file.
68422         * lib/unistr/u8-strdup.c: New file.
68423         * lib/unistr/u16-strdup.c: New file.
68424         * lib/unistr/u32-strdup.c: New file.
68425         * lib/unistr/u-strdup.h: New file.
68426
68427         * modules/unistr/u8-strlen: New file.
68428         * modules/unistr/u16-strlen: New file.
68429         * modules/unistr/u32-strlen: New file.
68430         * lib/unistr/u8-strlen.c: New file.
68431         * lib/unistr/u16-strlen.c: New file.
68432         * lib/unistr/u32-strlen.c: New file.
68433         * lib/unistr/u-strlen.h: New file.
68434
68435         * modules/unistr/u8-strmblen: New file.
68436         * modules/unistr/u16-strmblen: New file.
68437         * modules/unistr/u32-strmblen: New file.
68438         * lib/unistr/u8-strmblen.c: New file.
68439         * lib/unistr/u16-strmblen.c: New file.
68440         * lib/unistr/u32-strmblen.c: New file.
68441
68442         * modules/unistr/u8-strmbtouc: New file.
68443         * modules/unistr/u16-strmbtouc: New file.
68444         * modules/unistr/u32-strmbtouc: New file.
68445         * lib/unistr/u8-strmbtouc.c: New file.
68446         * lib/unistr/u16-strmbtouc.c: New file.
68447         * lib/unistr/u32-strmbtouc.c: New file.
68448
68449         * modules/unistr/u8-strncat: New file.
68450         * modules/unistr/u16-strncat: New file.
68451         * modules/unistr/u32-strncat: New file.
68452         * lib/unistr/u8-strncat.c: New file.
68453         * lib/unistr/u16-strncat.c: New file.
68454         * lib/unistr/u32-strncat.c: New file.
68455         * lib/unistr/u-strncat.h: New file.
68456
68457         * modules/unistr/u8-strncmp: New file.
68458         * modules/unistr/u16-strncmp: New file.
68459         * modules/unistr/u32-strncmp: New file.
68460         * lib/unistr/u8-strncmp.c: New file.
68461         * lib/unistr/u16-strncmp.c: New file.
68462         * lib/unistr/u32-strncmp.c: New file.
68463
68464         * modules/unistr/u8-strncpy: New file.
68465         * modules/unistr/u16-strncpy: New file.
68466         * modules/unistr/u32-strncpy: New file.
68467         * lib/unistr/u8-strncpy.c: New file.
68468         * lib/unistr/u16-strncpy.c: New file.
68469         * lib/unistr/u32-strncpy.c: New file.
68470         * lib/unistr/u-strncpy.h: New file.
68471
68472         * modules/unistr/u8-strnlen: New file.
68473         * modules/unistr/u16-strnlen: New file.
68474         * modules/unistr/u32-strnlen: New file.
68475         * lib/unistr/u8-strnlen.c: New file.
68476         * lib/unistr/u16-strnlen.c: New file.
68477         * lib/unistr/u32-strnlen.c: New file.
68478         * lib/unistr/u-strnlen.h: New file.
68479
68480         * modules/unistr/u8-strpbrk: New file.
68481         * modules/unistr/u16-strpbrk: New file.
68482         * modules/unistr/u32-strpbrk: New file.
68483         * lib/unistr/u8-strpbrk.c: New file.
68484         * lib/unistr/u16-strpbrk.c: New file.
68485         * lib/unistr/u32-strpbrk.c: New file.
68486         * lib/unistr/u-strpbrk.h: New file.
68487
68488         * modules/unistr/u8-strrchr: New file.
68489         * modules/unistr/u16-strrchr: New file.
68490         * modules/unistr/u32-strrchr: New file.
68491         * lib/unistr/u8-strrchr.c: New file.
68492         * lib/unistr/u16-strrchr.c: New file.
68493         * lib/unistr/u32-strrchr.c: New file.
68494
68495         * modules/unistr/u8-strspn: New file.
68496         * modules/unistr/u16-strspn: New file.
68497         * modules/unistr/u32-strspn: New file.
68498         * lib/unistr/u8-strspn.c: New file.
68499         * lib/unistr/u16-strspn.c: New file.
68500         * lib/unistr/u32-strspn.c: New file.
68501         * lib/unistr/u-strspn.h: New file.
68502
68503         * modules/unistr/u8-strstr: New file.
68504         * modules/unistr/u16-strstr: New file.
68505         * modules/unistr/u32-strstr: New file.
68506         * lib/unistr/u8-strstr.c: New file.
68507         * lib/unistr/u16-strstr.c: New file.
68508         * lib/unistr/u32-strstr.c: New file.
68509         * lib/unistr/u-strstr.h: New file.
68510
68511         * modules/unistr/u8-strtok: New file.
68512         * modules/unistr/u16-strtok: New file.
68513         * modules/unistr/u32-strtok: New file.
68514         * lib/unistr/u8-strtok.c: New file.
68515         * lib/unistr/u16-strtok.c: New file.
68516         * lib/unistr/u32-strtok.c: New file.
68517         * lib/unistr/u-strtok.h: New file.
68518
68519         * modules/unistr/u8-uctomb: New file.
68520         * modules/unistr/u16-uctomb: New file.
68521         * modules/unistr/u32-uctomb: New file.
68522         * lib/unistr/u8-uctomb.c: New file.
68523         * lib/unistr/u16-uctomb.c: New file.
68524         * lib/unistr/u32-uctomb.c: New file.
68525
68526         * MODULES.html.sh (Unicode string functions): Add the new modules.
68527
68528 2007-01-08  Bruno Haible  <bruno@clisp.org>
68529
68530         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
68531         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
68532         subdirectories.
68533
68534 2007-01-08  Karl Berry  <karl@gnu.org>
68535
68536         * doc/error.texi: mention that main() fns must set program_name
68537         when progname is used.
68538
68539 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
68542         WCTYPE_H is empty, for the benefit of builds from non-distclean
68543         directories.  Problem reported by Eric Blake in
68544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
68545
68546 2007-01-08  Bruno Haible  <bruno@clisp.org>
68547
68548         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
68549         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
68550         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
68551         PROVIDE_CANONICALIZE_FILENAME_MODE.
68552         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
68553
68554 2007-01-08  Bruno Haible  <bruno@clisp.org>
68555
68556         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
68557         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
68558         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
68559         * lib/fts.c: Likewise.
68560         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
68561
68562 2006-12-25  Bruno Haible  <bruno@clisp.org>
68563
68564         * modules/utf8-ucs4-safe: New file.
68565         * lib/utf8-ucs4-safe.h: New file.
68566         * lib/unistr/utf8-ucs4-safe.c: New file.
68567
68568         * modules/utf16-ucs4-safe: New file.
68569         * lib/utf16-ucs4-safe.h: New file.
68570         * lib/unistr/utf16-ucs4-safe.c: New file.
68571
68572         * MODULES.html.sh (Unicode string functions): Add the new modules.
68573
68574 2007-01-08  Bruno Haible  <bruno@clisp.org>
68575
68576         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
68577         (Depends-on): Add unitypes.
68578         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68579         (u8_mbtouc_aux): Move out to separate file.
68580         (u8_mbtouc): Use ucs4_t, uint8_t types.
68581         * lib/unistr/utf8-ucs4.c: New file.
68582
68583         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
68584         (Depends-on): Add unitypes.
68585         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68586         (u16_mbtouc_aux): Move out to separate file.
68587         (u16_mbtouc): Use ucs4_t, uint16_t types.
68588         * lib/unistr/utf16-ucs4.c: New file.
68589
68590         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
68591         (Depends-on): Add unitypes.
68592         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
68593         (u8_uctomb_aux): Move out to separate file.
68594         (u8_uctomb): Use ucs4_t, uint8_t types.
68595         * lib/unistr/ucs4-utf8.c: New file.
68596
68597         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
68598         (Depends-on): Add unitypes.
68599         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
68600         (u16_uctomb_aux): Move out to separate file.
68601         (u16_uctomb): Use ucs4_t, uint16_t types.
68602         * lib/unistr/ucs4-utf16.c: New file.
68603
68604 2006-12-25  Bruno Haible  <bruno@clisp.org>
68605
68606         * modules/unitypes: New file.
68607         * lib/unitypes.h: New file.
68608         * MODULES.html.sh (func_all_modules): New section "Unicode string
68609         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
68610         this section. Add unitypes.
68611
68612 2007-01-08  Bruno Haible  <bruno@clisp.org>
68613
68614         Avoid variable names that conflict with those from libtool.
68615         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
68616         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
68617         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
68618         library_names_spec to acl_library_names_spec, hardcode_* to
68619         acl_hardcode_*.
68620         Reported by Ralf Wildenhues.
68621
68622 2007-01-08  Bruno Haible  <bruno@clisp.org>
68623
68624         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
68625         definition.
68626         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
68627         definition.
68628         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
68629         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
68630         definition.
68631         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
68632         definition.
68633         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
68634         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
68635         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
68636         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
68637         definition.
68638         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68639         definition.
68640         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
68641         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
68642         GC_USE_<algorithm>.
68643         * lib/gc-libgcrypt.c: Likewise.
68644         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
68645         * modules/gc-arctwo (configure.ac): Likewise.
68646         * modules/gc-des (configure.ac): Likewise.
68647         * modules/gc-hmac-md5 (configure.ac): Likewise.
68648         * modules/gc-hmac-sha1 (configure.ac): Likewise.
68649         * modules/gc-md2 (configure.ac): Likewise.
68650         * modules/gc-md4 (configure.ac): Likewise.
68651         * modules/gc-md5 (configure.ac): Likewise.
68652         * modules/gc-random (configure.ac): Likewise.
68653         * modules/gc-rijndael (configure.ac): Likewise.
68654         * modules/gc-sha1 (configure.ac): Likewise.
68655
68656 2007-01-08  Bruno Haible  <bruno@clisp.org>
68657
68658         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
68659         macro definition.
68660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
68661         definition.
68662         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
68663         definition.
68664         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
68665         * modules/fcntl-safer (configure.ac): Likewise.
68666         * modules/fopen-safer (configure.ac): Likewise.
68667         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
68668         GNULIB_FWRITEERROR macro definition.
68669
68670 2007-01-08  Bruno Haible  <bruno@clisp.org>
68671
68672         * m4/gnulib-common.m4: New file.
68673         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
68674         (func_get_filelist): Add m4/gnulib-common.m4.
68675
68676 2007-01-08  Bruno Haible  <bruno@clisp.org>
68677
68678         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
68679         command.
68680
68681 2007-01-08  Jim Meyering  <jim@meyering.net>
68682
68683         Use a more robust test for a "can't happen" condition.
68684         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
68685         narrowed the st_size value.  Presuming the "can't happen" condition
68686         is true, that narrowing could conceivably convert an invalid st_size
68687         value into a valid one.  Instead, use a change based on Matthew
68688         Woehlke's original patch.
68689
68690         Slight readability improvement: use an assert-like macro
68691         in place of literal "abort ()" uses.
68692         * lib/fts.c (fts_assert): Define.
68693         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
68694         Use this macro instead of a bare 'abort'.
68695
68696 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         Don't worry about using IRIX 5.3's wctype.h broken definitions;
68699         simply work around them.
68700         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
68701         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
68702         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
68703         declaring.
68704         Don't bother to define as macros, since the standard doesn't require it.
68705         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
68706         longer worry about IRIX 5.3.
68707         (HAVE_WCTYPE_CTMP_BUG): Remove.
68708
68709 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68710
68711         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
68712         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
68713         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68714         Problems reported by Georg Schwarz for IRIX 5.3.
68715
68716         * gnulib-tool (autoconf_minversion): Take the maximum version number
68717         found, not the minimum.  Problem reported by James Youngman.
68718
68719 2007-01-03  Karl Berry  <karl@gnu.org>
68720
68721         * doc/error.texi: new file, explaining interaction with progname.
68722         * doc/gnulib.texi: include it.  Update copyright.
68723
68724 2007-01-03  Simon Josefsson  <simon@josefsson.org>
68725
68726         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
68727         AC_CANONICAL_HOST, to improve autobuild outputs.
68728
68729 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
68730             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68731
68732         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
68733         sockets, server sockets, and other file descriptors.  Count errors
68734         to compute the return value.  Reorder the code a bit to be easier
68735         to follow.  Don't set event bits that were not requested (except
68736         POLLERR and POLLHUP).
68737
68738 2007-01-01  Bruno Haible  <bruno@clisp.org>
68739
68740         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
68741
68742 2007-01-03  Jim Meyering  <jim@meyering.net>
68743
68744         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
68745
68746 2007-01-02  Bruno Haible  <bruno@clisp.org>
68747
68748         * modules/settime (Include): Require timespec.h.
68749         * modules/nanosleep (Include): Likewise.
68750
68751 2007-01-01  Bruno Haible  <bruno@clisp.org>
68752
68753         * gnulib-tool (func_emit_copyright_notice): Bump year.
68754         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
68755
68756 2007-01-01  Bruno Haible  <bruno@clisp.org>
68757
68758         Improve support for OpenBSD.
68759         * build-aux/config.rpath (libname_spec): Export.
68760         (library_names_spec): New variable. Export.
68761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
68762         library_names_spec from the config.rpath output. Locate shared library
68763         through the name pattern in library_names_spec.
68764
68765 2007-01-01  Eric Blake  <ebb9@byu.net>
68766
68767         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
68768
68769 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
68772         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
68773         assume the C locale, and avoid an "eval" that could cause trouble.
68774         Problem with SORT reported by Bob Proulx.
68775
68776         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
68777         Define.  Trivial patch from Henning Nielsen Lund, originally
68778         sent to bug-grep@gnu.org today.
68779
68780 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
68783         struct stat.  Problem reported by Henning Nielsen Lund.
68784         * lib/acl.c: Include acl.h first, to check interface.  Don't
68785         bother to include sys/types.h and sys/stat.h again.
68786
68787 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68788
68789         Import the following change from libc; problem reported by
68790         Sven Verdoolaege.
68791
68792         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
68793
68794         [BZ #1373]
68795         * lib/argp.h: Remove __NTH for __argp_usage inline function.
68796
68797 2006-12-28  Jim Meyering  <jim@meyering.net>
68798
68799         * build-aux/announce-gen: Do not assume that the package
68800         builds any of tar.gz, tar.bz2, and .xdelta files.
68801         Suggestion from Simon Josefsson.
68802
68803 2006-12-28  Simon Josefsson  <simon@josefsson.org>
68804
68805         * modules/announce-gen: New file.
68806
68807 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68808
68809         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68810         handles its gotchas now.
68811         * lib/mbswidth.c: Likewise.
68812         * lib/wcwidth.h: Likewise.
68813         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68814         and iswcntrl; the wctype module does this stuff now.
68815         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68817         * modules/mbchar (Depends-on): Add wctype.
68818         * modules/mbswidth (Depends-on): Likewise.
68819         * modules/wcwidth (Depends-on): Likewise.
68820
68821 2006-12-27  Eric Blake  <ebb9@byu.net>
68822
68823         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68824         module uses more than what <wctype.h> is required to provide.
68825
68826 2006-12-26  Eric Blake  <ebb9@byu.net>
68827
68828         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68829
68830 2006-12-26  Eric Blake  <ebb9@byu.net>
68831
68832         * modules/absolute-header: New module.
68833         * modules/fcntl (Depends-on): Depend on it.
68834         * modules/inttypes (Depends-on): Likewise.
68835         * modules/stdint (Depends-on): Likewise.
68836         * modules/sys_stat (Depends-on): Likewise.
68837         * modules/wctype (Depends-on): Likewise.
68838         * MODULES.html.sh (Support for building libraries and
68839         executables): Document it.
68840
68841 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68842
68843         * gnulib-tool (SED): Remove, undoing previous change.
68844         The problem was that it broke coreutils on Solaris, because
68845         "sed --posix" leaked into a makefile.
68846         (sed): New alias, if 'alias' and GNU sed.
68847
68848 2006-12-24  Jim Meyering  <jim@meyering.net>
68849
68850         Work around an fchownat bug in glibc-2.4:
68851         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68852         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68853         in spite of the -P option.
68854         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68855         New macros.
68856         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68857         * modules/openat (Files): Add lib/fchownat.c.
68858         * lib/openat.c (fchownat): Don't define here.  Move to...
68859         * lib/fchownat.c: ...this new file.
68860
68861 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         Fix bug reported by Bruno Haible in
68864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68865         where quotearg.c didn't compile on Mac OS X 10.2 because it
68866         lacks <wchar.h> and wint_t.
68867         * lib/wctype_.h (__wctype_wint_t): New type.
68868         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68869         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68870         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68871         Arg is now of type __wctype_wint_t, not wint_t.
68872         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68873         substitute HAVE_WINT_T.
68874         * modules/wctype (Files): Add m4/wint_t.m4.
68875         (wctype.h): Substitute HAVE_WINT_T.
68876
68877 2006-12-23  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68880
68881 2006-12-23  Bruno Haible  <bruno@clisp.org>
68882
68883         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68884         S_ISLNK.
68885         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68886         mingw.
68887
68888 2006-12-22  Bruno Haible  <bruno@clisp.org>
68889
68890         * lib/copy-file.c: Include acl.h.
68891         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68892         Close the file descriptors only after being done with copy_acl.
68893         * modules/copy-file (Depends-on): Add acl.
68894
68895 2006-12-22  Bruno Haible  <bruno@clisp.org>
68896
68897         * gnulib-tool (SED): New variable.
68898         Use $SED instead of sed everywhere.
68899
68900 2006-12-22  Bruno Haible  <bruno@clisp.org>
68901
68902         * modules/no-c++: New file.
68903         * m4/no-c++.m4: New file.
68904         * MODULES.html.sh (Support for building libraries and executables):
68905         Add no-c++.
68906
68907 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68910         Include <limits.h>, and use its INT_MAX to rewrite the
68911         j loop so that it does not overflow 'int'.  Problem reported by
68912         Ralf Wildenhues in
68913         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68914         Play it safe by shifting left by 1 rather than multiplying by 2,
68915         as GCC is less likely to optimize this away when the value
68916         is signed (when it assumes overflow leads to undefined behavior).
68917         Also, don't assume time_t uses two's complement.
68918
68919 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68920
68921         * MODULES.html.sh: New module wctype.
68922         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68923         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68924         <wctype.h>, since the new wctype module should fix this.
68925         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68926         the wctype module should arrange for it.
68927         * lib/regex_internal.h: Likewise.
68928         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68929         since the wctype module should handle this now.
68930         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68931         * modules/fnmatch (Depends-on): Add wctype.
68932         * modules/quotearg (Depends-on): Likewise.
68933         * modules/regex (Depends-on): Likewise.
68934
68935 2006-12-19  Bruno Haible  <bruno@clisp.org>
68936
68937         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68938         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68939
68940 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68941
68942         * modules/savewd (Depends-on): Fix dependency on fcntl.
68943
68944 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68947         conforms to C99, rather than relying on the user's environment
68948         setting of STDINT_H.
68949
68950 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68951         and Eric Blake  <ebb9@byu.net>
68952
68953         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68954         This is more consistent with the other defines here.
68955         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68956         Port to z/OS.  Problem reported by Paul Gilmartin.
68957         Change local vars to use gl_ prefix rather than ac_.
68958         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68959         with other defines.
68960         * modules/double-slash-root: New module.
68961         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68962         (Depends-on): Add double-slash-root.
68963         * MODULES.html.sh (File system functions): Mention new module.
68964
68965 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68968         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68969         This is for the benefit of gzip, which doesn't do i18n.
68970
68971 2006-12-12  Jim Meyering  <jim@meyering.net>
68972
68973         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68974         Reported by Andreas Schwab <schwab@suse.de>.
68975
68976 2006-12-12  Bruno Haible  <bruno@clisp.org>
68977
68978         Merge these changes.
68979         2006-09-05  Bruno Haible  <bruno@clisp.org>
68980         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68981         iconv_alloc succeeded.
68982         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68983         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68984         test for " && dest " at the end - dest is always != NULL there. Call
68985         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68986         with 2xNULL arguments, also to flush the state storage. Handle the
68987         IRIX iconv behaviour. Realloc the final result, to throw away unused
68988         memory.
68989
68990 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68993         and fchmodat unconditionally, since glibc 2.4 has them.
68994         Problem reported by Arkadiusz Miskiewicz.
68995
68996 2006-12-10  Bruno Haible  <bruno@clisp.org>
68997
68998         * gnulib-tool (func_import): Show the include files only for those
68999         modules that are copied and specified.
69000         Reported by Karl Berry.
69001
69002 2006-12-08  Jim Meyering  <jim@meyering.net>
69003
69004         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
69005         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
69006
69007         * build-aux/announce-gen: Add two new options, both optional:
69008         --bootstrap-tools=TOOL_LIST
69009               a comma-separated list of tools, e.g.,
69010               autoconf,automake,bison,gnulib
69011         --gnulib-snapshot-date=DATE
69012               if gnulib is in the bootstrap tool list,
69013               then report this as the snapshot date.
69014               If not specified, use the current date/time.
69015               If you specify a date here, be sure it's UTC.
69016
69017 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69018
69019         * tests/test-argp-2.sh: Fix test to match actual output.
69020         (func_compare): Fix sed script to be portable.
69021
69022 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
69025         workaround for this case.  It is not autoconfigured now; offhand
69026         it's hard to see how to autoconfigure it.
69027
69028 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
69031         a directory that is about to be chowned.  Such a directory's
69032         initial file permissions should permit the owner only and this
69033         should not be changed until after the chown, since the group and
69034         other bits would be incorrect if they granted permission before
69035         the chown.
69036
69037         Fix porting problem for iswctype reported by Georg Schwarz in:
69038         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
69039         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
69040         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
69041         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
69042         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69043
69044 2006-12-03  Jim Meyering  <jim@meyering.net>
69045
69046         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
69047         p->fts_statp may not yet be defined.
69048         (fts_read): Instead, set it in the caller, once p->fts_statp is
69049         sure to be defined, and corresponds to a top-level directory.
69050         This bug made du -x fail.  Here's the coreutils test case:
69051         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
69052         Reported by Mike Frysinger.
69053
69054 2006-12-01  Jim Meyering  <jim@meyering.net>
69055
69056         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
69057         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
69058         Reported by Simon Josefsson.
69059
69060 2006-11-30  Jim Meyering  <jim@meyering.net>
69061
69062         * m4/warning.m4: Use the all-permissive copyright notice
69063         recommended by RMS (rather than LGPL).
69064         * m4/vararrays.m4: Likewise.
69065         * m4/flexmember.m4: Likewise.
69066
69067 2006-11-29  Bruno Haible  <bruno@clisp.org>
69068
69069         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69070         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
69071         using +=.
69072         Reported by Simon Josefsson <simon@josefsson.org>.
69073
69074 2006-11-28  James Youngman <jay@gnu.org>
69075
69076         * README: Advise users that they might find the bug-gnulib@gnu.org
69077         and autotools-announce@gnu.org mailing lists useful.
69078
69079 2006-11-28  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/ptrdiff_max.m4: Remove file.
69082
69083 2006-11-21  Bruno Haible  <bruno@clisp.org>
69084
69085         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
69086         _AC_COMPUTE_INT.
69087         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69088         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
69089         _AC_COMPUTE_INT.
69090         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69091         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
69092         _AC_COMPUTE_INT.
69093         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69094
69095 2006-11-28  Jim Meyering  <jim@meyering.net>
69096
69097         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
69098         warning from "gcc -Wshadow" about shadowing the builtin.
69099
69100 2006-11-27  Bruno Haible  <bruno@clisp.org>
69101
69102         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
69103         _AC_COMPUTE_INT.
69104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69105
69106 2006-11-27  Bruno Haible  <bruno@clisp.org>
69107             Paul Eggert  <eggert@cs.ucla.edu>
69108
69109         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
69110
69111 2006-11-26  Bruno Haible  <bruno@clisp.org>
69112
69113         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69114         noinst_LTLIBRARIES.
69115
69116 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69117             Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
69120         if compiling with "gcc -ansi".
69121
69122 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         Fix some incompatibilities with gcc -ansi -pedantic.
69125         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
69126         if compiling pedantically with GCC, unless it's C99 or later.
69127         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
69128         it mishandles gcc -ansi -pedantic as well.
69129         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
69130         if gcc -pedantic.
69131         * lib/regexec.c (check_node_accept_bytes): Don't use auto
69132         initializers for struct if -pedantic, unless it's C99 or later.
69133
69134 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
69135
69136         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
69137         Don't close an fd more than once. Identical atimes indicate
69138         success, not failure.
69139
69140 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
69141
69142         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
69143
69144 2006-11-23  Jim Meyering  <jim@meyering.net>
69145
69146         * build-aux/announce-gen: New file.  From coreutils.
69147
69148 2006-11-22  Jim Meyering  <jim@meyering.net>
69149
69150         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
69151         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
69152         (fts_read): Use a temporary to narrow the overused st_size member
69153         before using it in a switch statement.  Reported by Matthew Woehlke.
69154
69155         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
69156         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
69157
69158 2006-11-20  Bruno Haible  <bruno@clisp.org>
69159
69160         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
69161         changequote instead of pairs of brackets.
69162         Reported by Andreas Schwab <schwab@suse.de>.
69163
69164 2006-11-21  Jim Meyering  <jim@meyering.net>
69165
69166         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
69167         so as to remain compatible with older compilers.
69168         Patch from Michael Deutschmann.
69169
69170 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69171
69172         * MODULES.html.sh (File system functions): Add openat.
69173
69174         * lib/openat.h (rpl_fstatat): New macro, if
69175         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
69176         (fstatat): Define to rpl_fstatat under the same conditions,
69177         unless COMPILING_FSTATAT.
69178         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
69179         seems to have the bug.
69180         * lib/fstatat.c: New file.
69181         * modules/openat (Files): Add it.
69182
69183 2006-11-20  Bruno Haible  <bruno@clisp.org>
69184
69185         * Makefile: New file.
69186
69187 2006-11-20  Jim Meyering  <jim@meyering.net>
69188
69189         The beginnings of syntax-related checks for gnulib.
69190         * lib/Makefile: New file.
69191         * lib/t-idcache: New script.  Ensure that the two halves of
69192         idcache.c stay in sync.
69193
69194         * lib/idcache.c: Adjust comments in user- and group- portions to
69195         be more accurate, and to be consistent with one another.
69196
69197 2006-11-20  Jim Meyering  <jim@meyering.net>
69198
69199         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
69200         continue using the flexible array member (thus, this module performs
69201         half as many malloc calls), with the addition that...
69202         (getgroup, getuser): Consistently record a non-match via an empty
69203         "name" string, and map an empty string match to a NULL return value.
69204         * modules/idcache (Depends-on): Re-add flexmember.
69205
69206         * lib/idcache.c (getuser): Remove all uses of the register keyword.
69207         (getuidbyname, getgroup, getgidbyname): Likewise.
69208
69209         Use cleaner syntax: NULL rather than 0.
69210         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
69211
69212 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
69215         It mishandled the case where the group was missing.
69216         Problem reported by Greg Schafer.
69217         * modules/idcache: Likewise.
69218
69219 2006-11-18  Jim Meyering  <jim@meyering.net>
69220
69221         * check-module (%exempt_header): Add exception for some
69222         conditionally-included headers.
69223
69224         * modules/i-ring (Depends-on): Add verify.
69225         (License): Change to LGPL.
69226
69227 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
69230         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
69231         and inttostr.h.  Use snprintf rather than uinttostr, so that
69232         LGPLed code doesn't depend on GPLed.
69233
69234 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69235
69236         * modules/inline (License): Change from GPL to LGPL.
69237
69238 2006-11-17  Jim Meyering  <jim@meyering.net>
69239
69240         * modules/d-type (License): Switch to LGPL.
69241
69242 2006-11-15  Bruno Haible  <bruno@clisp.org>
69243
69244         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
69245
69246 2006-11-15  Eric Blake  <ebb9@byu.net>
69247
69248         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
69249         the module dependency.
69250
69251 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69252             Bruno Haible  <bruno@clisp.org>
69253
69254         * gnulib-tool (func_create_testdir): Add license consistency check.
69255
69256 2006-11-15  Eric Blake  <ebb9@byu.net>
69257
69258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
69259         random "(cached)" in configure output.
69260
69261 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69262
69263         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
69264         test for conforming inttypes.h is both announced and cached.
69265
69266         * MODULES.html.sh (seen_modules, seen_files): New variables.
69267         (func_module): Rewrite to use a few less gnulib-tool and sed
69268         invocations.  Avoid a couple of quadratic algorithms for ...
69269         (missed_modules, missed_files): ... these, with ...
69270         (func_append, func_tmpdir): ... these new functions, from
69271         gnulib-tool.  Analogously, install traps for cleanup.
69272
69273         * tests/test-gc.c (main): Remove unused variables.
69274         * tests/test-read-file.c: Include stdlib.h, for 'free'.
69275
69276 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * modules/inttostr (License): Change to LGPL.
69279
69280 2006-11-14  Eric Blake  <ebb9@byu.net>
69281
69282         * modules/tempname (License): Change to LGPL.
69283
69284 2006-11-14  Eric Blake  <ebb9@byu.net>
69285
69286         * doc/functions.texi (Function Portability): *printf functions on
69287         Cygwin now understand all POSIX size specifiers.
69288
69289 2006-11-14  Bruno Haible  <bruno@clisp.org>
69290
69291         * modules/c-ctype (License): Change to LGPL.
69292
69293 2006-11-12  Bruno Haible  <bruno@clisp.org>
69294
69295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
69296         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
69297         for GNOME libraries, for which the include files are installed in
69298         subdirectories of $prefix/include.
69299
69300 2006-11-12  Bruno Haible  <bruno@clisp.org>
69301
69302         * m4/lib-link.m4: Require at least autoconf-2.54.
69303         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
69304         name to underscores for the --with option.
69305
69306 2006-11-13  Bruno Haible  <bruno@clisp.org>
69307
69308         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
69309         the tests directory.
69310         Reported by Ralf Wildenhues.
69311
69312 2006-11-13  Bruno Haible  <bruno@clisp.org>
69313
69314         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
69315         (func_emit_initmacro_end): Undo the override here.
69316         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
69317         Works around the famous automake error in coreutils.
69318
69319 2006-11-13  Eric Blake  <ebb9@byu.net>
69320
69321         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
69322         element, not its node.
69323
69324 2006-11-12  Bruno Haible  <bruno@clisp.org>
69325
69326         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
69327         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
69328
69329 2006-11-12  Bruno Haible  <bruno@clisp.org>
69330
69331         * gnulib-tool: New option --local-symlink.
69332         (func_usage): Document it.
69333         (lsymbolic): New variable.
69334         (func_import, func_create_testdir): If --symlink was not specified,
69335         test whether --local-symlink was specified and the file comes from
69336         the local_gnulib_dir.
69337
69338 2006-11-12  Bruno Haible  <bruno@clisp.org>
69339
69340         * gnulib-tool (func_ln): New function.
69341         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
69342
69343 2006-11-12  Bruno Haible  <bruno@clisp.org>
69344
69345         Finish support for source files in subdirectories.
69346         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
69347         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
69348         AUTOMAKE_OPTIONS.
69349         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
69350
69351 2006-11-12  Bruno Haible  <bruno@clisp.org>
69352
69353         * gnulib-tool (func_get_automake_snippet): Synthesize also an
69354         EXTRA_lib_SOURCES augmentation.
69355         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
69356
69357 2006-11-12  Jim Meyering  <jim@meyering.net>
69358
69359         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
69360         file descriptors.  This also averts a failure on systems with
69361         native openat support when a traversed directory lacks "x" access.
69362         * lib/fts_.h: Include "i-ring.h"
69363         (struct FTS) [fts_fd_ring]: New member.
69364         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
69365         (FCHDIR): Add parentheses.
69366         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
69367         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
69368         When descending, rather than simply closing the previous
69369         fts_cwd_fd value, push that file descriptor onto the ring.
69370         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
69371         (fts_open): Initialize the new fd_ring member.
69372         (fts_close): Clear the ring.
69373         (fts_safe_changedir): When possible, use our new fd_ring to skip
69374         the diropen and fstat and dev/ino comparison that would normally
69375         accompany a virtual `chdir ("..")'.
69376
69377         * modules/fts (Depends-on): Add i-ring.
69378         * modules/i-ring: New module.
69379         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
69380         * m4/i-ring.m4: New file.
69381
69382 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69383
69384         * gnulib-tool (func_create_testdir): Fix replacement of
69385         `build-aux' in configure.ac.  Run autotools in gltests
69386         subdirectory.
69387         (func_create_testdir, func_create_megatestdir, test): There is
69388         no need for '--force' in most autotool invocations in a new
69389         tree.  Actually fail the whole test if any of the tools, or the
69390         configure or make stages fail.
69391
69392         Sync from Automake.
69393         * build-aux/gnupload: Revert last change.  Add pointer to upload
69394         instructions of the GNU Maintenance Instructions.
69395         Suggestion by Karl Berry.
69396
69397 2006-11-10  Jim Meyering  <jim@meyering.net>
69398
69399         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
69400
69401 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
69404         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
69405         (bind_textdomain_codeset) [! ENABLE_NLS]:
69406         Evaluate all the arguments.  That way, callers get compatible behavior
69407         if the arguments have side effects.  Also, it avoids some GCC
69408         diagnostics in some cases; Joel E. Denny reported problems when Bison
69409         was configured with --enable-gcc-warnigs.
69410
69411 2006-11-10  Jim Meyering  <jim@meyering.net>
69412
69413         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
69414         relevant options in CFLAGS (like -O, -fno-inline) are taken into
69415         account.
69416
69417 2006-11-10  Jim Meyering  <jim@meyering.net>
69418
69419         * modules/inline: New file/module.
69420         * modules/xalloc (Files): Remove m4/inline.m4.
69421         (Depends-on): Add inline, instead.
69422         * modules/oset: Likewise.
69423         * modules/list: Likewise.
69424
69425 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
69428         Problem reported by Matthew Woehlke.
69429
69430 2006-11-09  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/tempname.c (gen_tempname): Remove variant that invokes
69433         __gen_tempname.
69434         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
69435         __gen_tempname.
69436
69437 2006-11-08  Bruno Haible  <bruno@clisp.org>
69438
69439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
69440         to 'yes' instead of 'cross-compiling'.
69441
69442 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * lib/quotearg.h (quotearg_free): New decl.
69445         * lib/quotearg.c (quotearg_free): New function.
69446         (slot0, nslots, slotvec0, slotvec):
69447         Now file-scope so that quotearg_free can get at them.
69448
69449 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69450
69451         Sync from Automake.
69452         * build-aux/gnupload: Add missing 'gnu' to example URL.
69453         Report by Karl Berry.
69454
69455 2006-11-08  Bruno Haible  <bruno@clisp.org>
69456
69457         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
69458         Suggested by Paul Eggert.
69459
69460 2006-11-08  Jim Meyering  <jim@meyering.net>
69461
69462         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
69463         It's already included if !_LIBC.
69464         (fts_safe_changedir): Add a comment.
69465
69466 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
69469         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
69470         Matthew Woehlke.
69471
69472         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
69473         definitions up, to avoid colliding with change below.
69474         (static_inline) [HAVE_INLINE]: New macro.
69475         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
69476         Provide extern decls when !HAVE_INLINE.  Do not define unless
69477         static_inline is defined, either by us or by xmalloc.c.  Use
69478         static_inline rather than static inline.
69479         (XCALLOC): Optimize sizeof(T) = 1 case.
69480         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
69481
69482 2006-11-07  Bruno Haible  <bruno@clisp.org>
69483
69484         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
69485         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
69486         AC_C_INLINE.
69487         * modules/xalloc (Files): Add m4/inline.m4.
69488
69489 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69490
69491         * README: Fix typo.
69492         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
69493         (Miscellanous Notes): ...from this.
69494
69495 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69496
69497         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
69498         Mention that offsetof should be used instead of sizeof.
69499         From Bruno Haible.
69500
69501 2006-11-07  Bruno Haible  <bruno@clisp.org>
69502
69503         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
69504
69505 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69506
69507         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69508         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
69509         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69510         (gl_tree_add_before, gl_tree_add_after):
69511         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
69512         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
69513         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69514         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
69515         (gl_linked_add_after, gl_linked_add_at): Likewise.
69516         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
69517         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69518         (gl_tree_add_before, gl_tree_add_after): Likewise.
69519         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
69520         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
69521         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
69522
69523 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69524
69525         * lib/gl_oset.h: Use C comment style, not C++ comment style.
69526
69527 2006-11-06  Bruno Haible  <bruno@clisp.org>
69528
69529         * m4/inline.m4: New file.
69530         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
69531         * modules/list (Files): Add m4/inline.m4.
69532         * modules/oset (Files): Likewise.
69533
69534 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * lib/idcache.c: Include <stddef.h>, for offsetof.
69537         (struct userid.name): Change from char * to a flexible array member.
69538         All uses changed.
69539         * modules/idcache (Depends-on): Add flexmember.
69540
69541         * MODULES.html.sh (Core language properties): New module flexmember.
69542         * modules/flexmember, m4/flexmember.m4: New files.
69543
69544         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
69545         inline functions that are identical with the old xnmalloc_inline,
69546         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
69547         that we can avoid some unnecessary integer multiplications and
69548         divisions in the common case where the element size is known at
69549         compile time.
69550         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
69551         needed.
69552         (xnboundedmalloc): Remove.
69553         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
69554         arguments, for consistency with rest of this header.
69555         (xcharalloc): Rewrite using XNMALLOC.
69556         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
69557         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
69558         versions have been moved to lib/xalloc.h and renamed to be the
69559         non-*_inline versions.
69560         (xmalloc, xrealloc): Implement without reference to the xnmalloc
69561         and xnrealloc functions, since those functions are now inline and
69562         now call us.
69563         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
69564         renaming described above.
69565         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
69566         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
69567         captures the dependency in AC_C_INLINE.
69568
69569         New module canonicalize-lgpl, proposed by Charles Wilson in
69570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
69571         with a few small changes afterwards.
69572         * MODULES.html.sh (File system functions): New module
69573         canonicalize-lgpl.
69574         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
69575         and canonicalize_file_name.
69576         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
69577         * modules/canonicalize-lgpl: New files.
69578
69579 2006-11-05  Bruno Haible  <bruno@clisp.org>
69580
69581         * gnulib-tool (func_import, func_create_testdir): Create directories
69582         also for files in subdirectories of lib/.
69583
69584 2006-11-05  Bruno Haible  <bruno@clisp.org>
69585
69586         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
69587         ANSI C compliant.
69588
69589 2006-11-03  Bruno Haible  <bruno@clisp.org>
69590
69591         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69592         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
69593         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
69594         (xnboundedmalloc): New inline function.
69595         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
69596         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
69597         xmalloc.
69598         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
69599         xmalloc.
69600         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
69601         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
69602         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
69603         xmalloc.
69604         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69605         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
69606         xmalloc.
69607         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
69608         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69609         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
69610         xmalloc.
69611         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69612         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
69613         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69614         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
69615         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
69616         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
69617         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
69618
69619 2006-11-03  Bruno Haible  <bruno@clisp.org>
69620
69621         * lib/c-ctype.h [C++]: Define functions without name mangling.
69622         * lib/fwriteerror.h [C++]: Likewise.
69623         * lib/gcd.h [C++]: Likewise.
69624         * lib/linebreak.h [C++]: Likewise.
69625
69626 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
69629         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
69630         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
69631         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69632         Check for functions and headers just once.
69633         Check for declaration of canonicalize_file_name.
69634         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
69635
69636 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69637
69638         * gnulib-tool (func_import): Fix typo in actioncmd.
69639
69640 2006-11-02  Bruno Haible  <bruno@clisp.org>
69641
69642         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
69643         newline sequence in the Makefile.am snippet as a space, like "make"
69644         does.
69645         Reported by Roger Persson <perrog@gmail.com>.
69646
69647 2006-11-01  Bruno Haible  <bruno@clisp.org>
69648
69649         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
69650         already declared in <string.h>.
69651         * lib/strcase.h (strncasecmp): Don't declare it if yes.
69652
69653 2006-11-01  Bruno Haible  <bruno@clisp.org>
69654
69655         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
69656         * lib/strcase.h: Include <string.h>.
69657         (strcasecmp): Define to rpl_strcasecmp here.
69658
69659 2006-11-01  Bruno Haible  <bruno@clisp.org>
69660
69661         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
69662
69663 2006-11-01  Eric Blake  <ebb9@byu.net>
69664
69665         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
69666
69667         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
69668
69669 2006-10-29  Bruno Haible  <bruno@clisp.org>
69670
69671         Make it compile in C++ mode.
69672         * lib/full-write.c (full_rw): Add a cast.
69673
69674 2006-11-01  Bruno Haible  <bruno@clisp.org>
69675
69676         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
69677         be POSIX compliant.
69678         Reported by Roger Persson <perrog@gmail.com>.
69679
69680 2006-11-01  Eric Blake  <ebb9@byu.net>
69681
69682         * lib/getopt_.h: Fix comments.
69683
69684 2006-10-31  Eric Blake  <ebb9@byu.net>
69685
69686         * modules/tmpdir (Depends-on): Add sys_stat.
69687         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
69688         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
69689         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
69690         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
69691         tempname.
69692
69693 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         Avoid some C++ diagnostics reported by Bruno Haible.
69696         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
69697         xmalloc.
69698         (quotearg_alloc): Use xcharalloc rather than xmalloc.
69699         (struct slotvec): Move to top level.
69700         (quotearg_n_options): Rewrite to avoid xmalloc.
69701         * lib/xalloc.h (xcharalloc): New function.
69702         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
69703         [defined __cplusplus]: Add function template that provides result
69704         type propagation.  This part of the change is from Bruno Haible.
69705
69706 2006-10-29  Bruno Haible  <bruno@clisp.org>
69707
69708         Make it compile in C++ mode.
69709         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
69710         * lib/strnlen1.c (strnlen1): Cast memchr result.
69711         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
69712         * lib/clean-temp.c (string_equals, string_hash): Add casts.
69713         (create_temp_dir): Rename local variable 'template'.
69714         (compile_csharp_using_sscli): Add cast.
69715         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
69716         * lib/findprog.c (find_in_path): Likewise.
69717         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
69718         * lib/wait-process.c (register_slave_subprocess): Likewise.
69719
69720 2006-10-22  Bruno Haible  <bruno@clisp.org>
69721
69722         * modules/tsearch: New file.
69723         * lib/tsearch.h: New file.
69724         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
69725         * m4/tsearch.m4: New file.
69726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
69727
69728 2006-10-29  Eric Blake  <ebb9@byu.net>
69729
69730         * lib/arcfour.c: Assume config.h.
69731         * lib/arctwo.c: Likewise.
69732         * lib/base64.c: Likewise.
69733         * lib/check-version.c: Likewise.
69734         * lib/crc.c: Likewise.
69735         * lib/des.c: Likewise.
69736         * lib/gc-gnulib.c: Likewise.
69737         * lib/gc-libgcrypt.c: Likewise.
69738         * lib/gc-pbkdf2-sha1.c: Likewise.
69739         * lib/getaddrinfo.c: Likewise.
69740         * lib/getdelim.c: Likewise.
69741         * lib/getline.c: Likewise.
69742         * lib/hmac-md5.c: Likewise.
69743         * lib/hmac-sha1.c: Likewise.
69744         * lib/iconvme.c: Likewise.
69745         * lib/md2.c: Likewise.
69746         * lib/md4.c: Likewise.
69747         * lib/memxor.c: Likewise.
69748         * lib/read-file.c: Likewise.
69749         * lib/readline.c: Likewise.
69750         * lib/rijndael-alg-fst.c: Likewise.
69751         * lib/rijndael-api-fst.c: Likewise.
69752         * lib/xgetdomainname.c: Likewise.
69753
69754 2006-10-28  Eric Blake  <ebb9@byu.net>
69755
69756         * lib/xstrndup.c: Assume config.h.
69757
69758 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
69761         stat-macros.h is now for our own macros, whereas stat_h is for
69762         macros in the <sys/stat.h> name space.
69763         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
69764         (STAT_MACROS_H): Remove.
69765         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
69766         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
69767         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
69768         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
69769         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
69770         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
69771         Move these macros to ...
69772         * lib/stat_.h: here.  Don't include stat-macros.h.
69773         * lib/canonicalize.c: Don't include stat-macros.h.
69774         * lib/chown.c: Likewise.
69775         * lib/euidaccess.c: Likewise.
69776         * lib/file-type.c: Likewise.
69777         * lib/filemode.c: Likewise.
69778         * lib/glob.c: Likewise.
69779         * lib/isapipe.c: Likewise.
69780         * lib/lchown.c: Likewise.
69781         * lib/lstat.c: Likewise.
69782         * lib/mkdir-p.c: Likewise.
69783         * lib/rmdir.c: Likewise.
69784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
69785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
69786         unless mkdir isn't declared, to speed up 'configure'.
69787         Always create sys/stat.h, since it's unlikely any real sys/stat.h
69788         would define all the S_* symbols.
69789         * modules/canonicalize (Depends-on):
69790         Depend on sys_stat, not stat-macros.
69791         * modules/chown: Likewise.
69792         * modules/euidaccess: Likewise.
69793         * modules/filemode: Likewise.
69794         * modules/file-type: Likewise.
69795         * modules/glob: Likewise.
69796         * modules/isapipe: Likewise.
69797         * modules/lchown: Likewise.
69798         * modules/lstat: Likewise.
69799         * modules/mkancesdirs: Likewise.
69800         * modules/rmdir: Likewise.
69801         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
69802         * modules/modechange: Likewise.
69803         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
69804         (configure.ac): Remove gl_STAT_MACROS.
69805         * modules/sys_stat (Depends-on): Remove stat-macros.
69806
69807 2006-10-27  Bruno Haible  <bruno@clisp.org>
69808
69809         * m4/signed.m4: Remove file.
69810         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69811         invocation.
69812         * modules/vasnprintf (Files): Remove m4/signed.m4.
69813
69814 2006-10-27  Bruno Haible  <bruno@clisp.org>
69815
69816         Update to GNU gettext 0.16.
69817         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69818         m4/inttypes-h.m4, m4/signed.m4.
69819         * m4/gettext.m4: Update to GNU gettext 0.16.
69820         * m4/intl.m4: New file, from GNU gettext.
69821         * m4/intldir.m4: New file, from GNU gettext.
69822         * config/srclist.txt: Update
69823
69824 2006-10-27  Eric Blake  <ebb9@byu.net>
69825
69826         * MODULES.html.sh: Document tempname.
69827         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69828         dependencies.
69829         (Files): Move lib/tempname.c...
69830         * modules/tempname: ...to this new module.
69831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69832         (gl_PREREQ_TEMPNAME): Move...
69833         * m4/tempname.m4: ...to this new file.
69834         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69835         * modules/sys_stat (Depends-on): Add stat-macros.
69836         * lib/stat_.h (includes): Pick up stat macros.
69837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69838         if stat macros are broken.
69839         * lib/tempname.c (includes): No need to include "stat-macros.h".
69840         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69841         (direxists, __path_search) [!_LIBC]: Don't compile these in
69842         gnulib; the tmpdir module covers that.
69843         * lib/tempname.h: New file.
69844
69845 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69846
69847         * COPYING: Explain how gnulib-tool converts licence headers.
69848         Almost all wording by Eric Blake.
69849
69850 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         * lib/mbchar.h (is_basic_table): Make read-only.
69853         * lib/mbchar.c (is_basic_table): Likewise.
69854         Reported by John Darrington.
69855
69856 2006-10-25  Bruno Haible  <bruno@clisp.org>
69857
69858         * lib/progname.h (set_program_name): Undefine before defining.
69859
69860 2006-10-25  Bruno Haible  <bruno@clisp.org>
69861
69862         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69863         false for non-gcc C++ compilers.
69864         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69865
69866 2006-10-24  Bruno Haible  <bruno@clisp.org>
69867
69868         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69869         iconv implementations like Irix iconv.
69870
69871 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * modules/vararrays: New file.
69874         * m4/vararrays.m4: New file, taken from diffutils.
69875         * MODULES.html.sh: New module vararrays.
69876
69877 2006-10-24  Karl Berry  <karl@gnu.org>
69878
69879         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69880         Don't call GNU Unix.
69881
69882 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69883
69884         * users.txt: Add Libtool.
69885
69886         Sync from Libtool:
69887
69888         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69889
69890         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69891         to gnulib's policy of including config.h unconditionally.
69892
69893 2006-10-24  Bruno Haible  <bruno@clisp.org>
69894
69895         * modules/wcwidth (Files): Add m4/wint_t.m4.
69896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69897         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69898
69899 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69900
69901         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69902         to pacify GCC with some -W flags enabled.  Problem reported by
69903         Bruno Haible.
69904
69905 2006-10-24  Jim Meyering  <jim@meyering.net>
69906
69907         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69908         Reported by Karl Berry.
69909
69910 2006-10-23  Bruno Haible  <bruno@clisp.org>
69911
69912         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69913
69914 2006-10-24  Bruno Haible  <bruno@clisp.org>
69915
69916         * lib/gl_list.h: Use C comment style, not C++ comment style.
69917
69918 2006-10-23  Eric Blake  <ebb9@byu.net>
69919
69920         * lib/getaddrinfo.c (includes): Add missing include.
69921
69922 2006-10-23  Bruno Haible  <bruno@clisp.org>
69923             Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         Ability to rename obstack_free.
69926         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69927         obstack_free.
69928         (obstack_free): Invoke the __obstack_free macro.
69929         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69930
69931 2006-10-23  Bruno Haible  <bruno@clisp.org>
69932             Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69935         __argc, __argv from the declaration. (They are defined as macros on
69936         mingw.)
69937
69938 2006-10-22  Bruno Haible  <bruno@clisp.org>
69939
69940         * doc/gnulib-intro.texi: New file.
69941         * doc/gnulib.texi: Include it.
69942
69943 2006-10-21  Bruno Haible  <bruno@clisp.org>
69944
69945         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69946         "Introduction", "Miscellanous Notes", "Particular Modules".
69947
69948 2006-10-21  Bruno Haible  <bruno@clisp.org>
69949
69950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69951         Change mostlyclean-local rule to avoid sh syntax error from bash
69952         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69953
69954 2006-10-23  Jim Meyering  <jim@meyering.net>
69955
69956         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69957         in place of snprintf.
69958
69959         * modules/inttostr (Files): Add lib/uinttostr.c.
69960         * lib/uinttostr.c (inttostr): New file/function.
69961         * lib/inttostr.h (uinttostr): Declare.
69962         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69963         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69964         Add uinttostr.
69965         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69966
69967 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         * lib/canonicalize.c (ELOOP): Define if not already defined.
69970         Problem reported by Bruno Haible in
69971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69972
69973 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69976         Problem reported by Perry Smith and Ville Laurikari.
69977
69978         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69979         uses.
69980
69981 2006-10-19  Bruno Haible  <bruno@clisp.org>
69982
69983         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69984         for mingw.
69985
69986 2006-10-19  Bruno Haible  <bruno@clisp.org>
69987
69988         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69989         Needed for mingw.
69990
69991 2006-10-19  Bruno Haible  <bruno@clisp.org>
69992
69993         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69994
69995 2006-10-19  Bruno Haible  <bruno@clisp.org>
69996
69997         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69998         it.
69999
70000 2006-10-19  Bruno Haible  <bruno@clisp.org>
70001
70002         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
70003         invocation.
70004
70005 2006-10-19  Bruno Haible  <bruno@clisp.org>
70006
70007         * gnulib-tool (func_create_testdir): Don't include ftruncate and
70008         mountlist by default.
70009
70010 2006-10-16  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/c-strstr.c: Include c-strstr.h.
70013
70014 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70015
70016         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
70017         in a slash.
70018
70019 2006-10-18  Bruno Haible  <bruno@clisp.org>
70020
70021         * lib/lock.h [C++]: Wrap definitions in extern "C".
70022
70023 2006-10-18  Bruno Haible  <bruno@clisp.org>
70024
70025         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
70026         gl_LIBOBJS list.
70027
70028 2006-10-18  Bruno Haible  <bruno@clisp.org>
70029
70030         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
70031
70032 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * lib/xstrtol.h: Include gettext.h.
70035         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
70036         Problem reported by Eric Blake.
70037         * modules/xstrtol (Depends-on): Add gettext-h.
70038
70039 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
70040
70041         * lib/strftime.c (advance): New macro.
70042         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
70043         incomplete type, so you can't add 0 to it.  Problem and patch
70044         reported by Eelco Dolstra for dietlibc.
70045
70046 2006-10-18  Jim Meyering  <jim@meyering.net>
70047
70048         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
70049         type for a local, and rename it: s/up/user_proc/.
70050
70051 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
70052
70053         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
70054         READ_UTMP_USER_PROCESS.
70055         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
70056
70057 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70058
70059         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
70060         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
70061
70062 2006-10-17  Eric Blake  <ebb9@byu.net>
70063
70064         * lib/sigprocmask.c (sigprocmask): Fix typo.
70065
70066         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
70067
70068         * modules/clean-temp (Makefile.am): Don't add to make output...
70069         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
70070         config.h.
70071
70072 2006-10-17  Bruno Haible  <bruno@clisp.org>
70073
70074         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
70075         differently if DEFAULT_TEXT_DOMAIN is set.
70076
70077 2006-10-16  Bruno Haible  <bruno@clisp.org>
70078
70079         * lib/clean-temp.c: Include fwriteerror.h.
70080
70081 2006-10-16  Bruno Haible  <bruno@clisp.org>
70082
70083         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
70084
70085 2006-10-16  Bruno Haible  <bruno@clisp.org>
70086
70087         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
70088         * lib/sigprocmask.h: Include <sys/types.h>.
70089         (sigset_t): Use the system's definition if present.
70090
70091 2006-10-17  Eric Blake  <ebb9@byu.net>
70092
70093         * lib/xvasprintf.c (includes): Assume config.h.
70094         * lib/xasprintf.c (includes): Likewise.
70095
70096 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
70099         at least as wide as intmax_t.
70100
70101 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
70102
70103         (Imported from Automake.)
70104         * build-aux/gnupload: Update to version 1.1 of directive file.
70105
70106 2006-10-16  Eric Blake  <ebb9@byu.net>
70107
70108         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
70109         match Automake 1.10a.
70110
70111 2006-10-14  Bruno Haible  <bruno@clisp.org>
70112
70113         * modules/sigprocmask: New file.
70114         * lib/sigprocmask.h: New file.
70115         * lib/sigprocmask.c: New file.
70116         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
70117         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
70118         request sigprocmask.o.
70119         (gl_PREREQ_SIGPROCMASK): New macro.
70120         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
70121         (Depends-on): Add sigprocmask.
70122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
70123         gt_SIGNALBLOCKING. Test for 'raise' only once.
70124         * lib/fatal-signal.c: Include sigprocmask.h.
70125         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
70126         unblock_fatal_signals): Define always.
70127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70128         sigprocmask.
70129
70130 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         Sync from Automake.
70133         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
70134         which incorrectly sets the mode of an existing destination
70135         directory.  In some cases the unpatched install-sh could do the
70136         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
70137         system.  We hope this is rare in practice, but it's clearly worth
70138         fixing.  Problem reported by Alex Unleashed in
70139         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
70140         Also, don't bother to check for -m bugs unless we're using -m;
70141         suggested by Stepan Kasal.
70142
70143 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70144
70145         Sync from Automake.
70146         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
70147         `-c' flag, so they appear at the same position as in %FASTDEP%
70148         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
70149         which ignores unknown options only after the first non-option.
70150         Bug report against M4 by Nelson H. F. Beebe.
70151
70152 2006-10-13  Jim Meyering  <jim@meyering.net>
70153
70154         Fix a bug in yesterday's change.
70155         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
70156         p->fts_statp->st_dev would be used uninitialized.
70157         Ensures that we always call fts_stat on the very first entry.
70158         Miklos Szeredi reported that find -xdev stopped working.
70159
70160 2006-10-12  Bruno Haible  <bruno@clisp.org>
70161
70162         * gnulib-tool (func_get_automake_snippet): Append an automatically
70163         computed EXTRA_DIST augmentation.
70164         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
70165         * modules/alloca-opt (Makefile.am): Likewise.
70166         * modules/allocsa (Makefile.am): Likewise.
70167         * modules/arcfour (Makefile.am): Likewise.
70168         * modules/arctwo (Makefile.am): Likewise.
70169         * modules/argmatch (Makefile.am): Likewise.
70170         * modules/argz (Makefile.am): Likewise.
70171         * modules/atexit (Makefile.am): Likewise.
70172         * modules/backupfile (Makefile.am): Likewise.
70173         * modules/byteswap (Makefile.am): Likewise.
70174         * modules/c-strtod (Makefile.am): Likewise.
70175         * modules/c-strtold (Makefile.am): Likewise.
70176         * modules/calloc (Makefile.am): Likewise.
70177         * modules/canon-host (Makefile.am): Likewise.
70178         * modules/canonicalize (Makefile.am): Likewise.
70179         * modules/chdir-long (Makefile.am): Likewise.
70180         * modules/chdir-safer (Makefile.am): Likewise.
70181         * modules/check-version (Makefile.am): Likewise.
70182         * modules/chown (Makefile.am): Likewise.
70183         * modules/cloexec (Makefile.am): Likewise.
70184         * modules/close-stream (Makefile.am): Likewise.
70185         * modules/closeout (Makefile.am): Likewise.
70186         * modules/crc (Makefile.am): Likewise.
70187         * modules/csharpexec (Makefile.am): Likewise.
70188         * modules/cycle-check (Makefile.am): Likewise.
70189         * modules/des (Makefile.am): Likewise.
70190         * modules/dev-ino (Makefile.am): Likewise.
70191         * modules/dirfd (Makefile.am): Likewise.
70192         * modules/dirname (Makefile.am): Likewise.
70193         * modules/dup2 (Makefile.am): Likewise.
70194         * modules/eealloc (Makefile.am): Likewise.
70195         * modules/error (Makefile.am): Likewise.
70196         * modules/euidaccess (Makefile.am): Likewise.
70197         * modules/exclude (Makefile.am): Likewise.
70198         * modules/exitfail (Makefile.am): Likewise.
70199         * modules/fcntl-safer (Makefile.am): Likewise.
70200         * modules/fcntl (Makefile.am): Likewise.
70201         * modules/file-type (Makefile.am): Likewise.
70202         * modules/fileblocks (Makefile.am): Likewise.
70203         * modules/filemode (Makefile.am): Likewise.
70204         * modules/filenamecat (Makefile.am): Likewise.
70205         * modules/fnmatch (Makefile.am): Likewise.
70206         * modules/fopen-safer (Makefile.am): Likewise.
70207         * modules/fpending (Makefile.am): Likewise.
70208         * modules/fprintftime (Makefile.am): Likewise.
70209         * modules/free (Makefile.am): Likewise.
70210         * modules/fsusage (Makefile.am): Likewise.
70211         * modules/ftruncate (Makefile.am): Likewise.
70212         * modules/fts (Makefile.am): Likewise.
70213         * modules/gc-arcfour (Makefile.am): Likewise.
70214         * modules/gc-des (Makefile.am): Likewise.
70215         * modules/gc-hmac-md5 (Makefile.am): Likewise.
70216         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
70217         * modules/gc-md4 (Makefile.am): Likewise.
70218         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70219         * modules/gc-sha1 (Makefile.am): Likewise.
70220         * modules/gc (Makefile.am): Likewise.
70221         * modules/getaddrinfo (Makefile.am): Likewise.
70222         * modules/getcwd (Makefile.am): Likewise.
70223         * modules/getdelim (Makefile.am): Likewise.
70224         * modules/getdomainname (Makefile.am): Likewise.
70225         * modules/getgroups (Makefile.am): Likewise.
70226         * modules/gethostname (Makefile.am): Likewise.
70227         * modules/gethrxtime (Makefile.am): Likewise.
70228         * modules/getline (Makefile.am): Likewise.
70229         * modules/getloadavg (Makefile.am): Likewise.
70230         * modules/getlogin_r (Makefile.am): Likewise.
70231         * modules/getndelim2 (Makefile.am): Likewise.
70232         * modules/getopt (Makefile.am): Likewise.
70233         * modules/getpagesize (Makefile.am): Likewise.
70234         * modules/getpass-gnu (Makefile.am): Likewise.
70235         * modules/getpass (Makefile.am): Likewise.
70236         * modules/getsubopt (Makefile.am): Likewise.
70237         * modules/gettime (Makefile.am): Likewise.
70238         * modules/gettimeofday (Makefile.am): Likewise.
70239         * modules/getugroups (Makefile.am): Likewise.
70240         * modules/getusershell (Makefile.am): Likewise.
70241         * modules/glob (Makefile.am): Likewise.
70242         * modules/group-member (Makefile.am): Likewise.
70243         * modules/hard-locale (Makefile.am): Likewise.
70244         * modules/hash (Makefile.am): Likewise.
70245         * modules/hmac-md5 (Makefile.am): Likewise.
70246         * modules/hmac-sha1 (Makefile.am): Likewise.
70247         * modules/human (Makefile.am): Likewise.
70248         * modules/idcache (Makefile.am): Likewise.
70249         * modules/imaxabs (Makefile.am): Likewise.
70250         * modules/imaxdiv (Makefile.am): Likewise.
70251         * modules/inet_ntop (Makefile.am): Likewise.
70252         * modules/inet_pton (Makefile.am): Likewise.
70253         * modules/intprops (Makefile.am): Likewise.
70254         * modules/inttostr (Makefile.am): Likewise.
70255         * modules/inttypes (Makefile.am): Likewise.
70256         * modules/isapipe (Makefile.am): Likewise.
70257         * modules/javaversion (Makefile.am): Likewise.
70258         * modules/lchmod (Makefile.am): Likewise.
70259         * modules/lchown (Makefile.am): Likewise.
70260         * modules/localcharset (Makefile.am): Likewise.
70261         * modules/long-options (Makefile.am): Likewise.
70262         * modules/lstat (Makefile.am): Likewise.
70263         * modules/malloc (Makefile.am): Likewise.
70264         * modules/mathl (Makefile.am): Likewise.
70265         * modules/mbchar (Makefile.am): Likewise.
70266         * modules/md2 (Makefile.am): Likewise.
70267         * modules/md4 (Makefile.am): Likewise.
70268         * modules/md5 (Makefile.am): Likewise.
70269         * modules/memcasecmp (Makefile.am): Likewise.
70270         * modules/memchr (Makefile.am): Likewise.
70271         * modules/memcmp (Makefile.am): Likewise.
70272         * modules/memcoll (Makefile.am): Likewise.
70273         * modules/memcpy (Makefile.am): Likewise.
70274         * modules/memmem (Makefile.am): Likewise.
70275         * modules/memmove (Makefile.am): Likewise.
70276         * modules/mempcpy (Makefile.am): Likewise.
70277         * modules/memrchr (Makefile.am): Likewise.
70278         * modules/memset (Makefile.am): Likewise.
70279         * modules/memxor (Makefile.am): Likewise.
70280         * modules/mkancesdirs (Makefile.am): Likewise.
70281         * modules/mkdir-p (Makefile.am): Likewise.
70282         * modules/mkdir (Makefile.am): Likewise.
70283         * modules/mkdtemp (Makefile.am): Likewise.
70284         * modules/mkstemp (Makefile.am): Likewise.
70285         * modules/mktime (Makefile.am): Likewise.
70286         * modules/modechange (Makefile.am): Likewise.
70287         * modules/mountlist (Makefile.am): Likewise.
70288         * modules/nanosleep (Makefile.am): Likewise.
70289         * modules/obstack (Makefile.am): Likewise.
70290         * modules/openat (Makefile.am): Likewise.
70291         * modules/pagealign_alloc (Makefile.am): Likewise.
70292         * modules/pathmax (Makefile.am): Likewise.
70293         * modules/physmem (Makefile.am): Likewise.
70294         * modules/poll (Makefile.am): Likewise.
70295         * modules/posixtm (Makefile.am): Likewise.
70296         * modules/posixver (Makefile.am): Likewise.
70297         * modules/putenv (Makefile.am): Likewise.
70298         * modules/quote (Makefile.am): Likewise.
70299         * modules/quotearg (Makefile.am): Likewise.
70300         * modules/raise (Makefile.am): Likewise.
70301         * modules/read-file (Makefile.am): Likewise.
70302         * modules/readline (Makefile.am): Likewise.
70303         * modules/readlink (Makefile.am): Likewise.
70304         * modules/readtokens (Makefile.am): Likewise.
70305         * modules/readutmp (Makefile.am): Likewise.
70306         * modules/realloc (Makefile.am): Likewise.
70307         * modules/regex (Makefile.am): Likewise.
70308         * modules/rename-dest-slash (Makefile.am): Likewise.
70309         * modules/rename (Makefile.am): Likewise.
70310         * modules/rijndael (Makefile.am): Likewise.
70311         * modules/rmdir (Makefile.am): Likewise.
70312         * modules/rpmatch (Makefile.am): Likewise.
70313         * modules/safe-read (Makefile.am): Likewise.
70314         * modules/safe-write (Makefile.am): Likewise.
70315         * modules/same-inode (Makefile.am): Likewise.
70316         * modules/same (Makefile.am): Likewise.
70317         * modules/save-cwd (Makefile.am): Likewise.
70318         * modules/savedir (Makefile.am): Likewise.
70319         * modules/setenv (Makefile.am): Likewise.
70320         * modules/settime (Makefile.am): Likewise.
70321         * modules/sha1 (Makefile.am): Likewise.
70322         * modules/sig2str (Makefile.am): Likewise.
70323         * modules/snprintf (Makefile.am): Likewise.
70324         * modules/stat-macros (Makefile.am): Likewise.
70325         * modules/stat-time (Makefile.am): Likewise.
70326         * modules/stdbool (Makefile.am): Likewise.
70327         * modules/stdint (Makefile.am): Likewise.
70328         * modules/stdlib-safer (Makefile.am): Likewise.
70329         * modules/stpcpy (Makefile.am): Likewise.
70330         * modules/stpncpy (Makefile.am): Likewise.
70331         * modules/strcase (Makefile.am): Likewise.
70332         * modules/strcasestr (Makefile.am): Likewise.
70333         * modules/strchrnul (Makefile.am): Likewise.
70334         * modules/strcspn (Makefile.am): Likewise.
70335         * modules/strdup (Makefile.am): Likewise.
70336         * modules/strerror (Makefile.am): Likewise.
70337         * modules/strftime (Makefile.am): Likewise.
70338         * modules/strndup (Makefile.am): Likewise.
70339         * modules/strnlen (Makefile.am): Likewise.
70340         * modules/strpbrk (Makefile.am): Likewise.
70341         * modules/strsep (Makefile.am): Likewise.
70342         * modules/strstr (Makefile.am): Likewise.
70343         * modules/strtod (Makefile.am): Likewise.
70344         * modules/strtoimax (Makefile.am): Likewise.
70345         * modules/strtok_r (Makefile.am): Likewise.
70346         * modules/strtol (Makefile.am): Likewise.
70347         * modules/strtoll (Makefile.am): Likewise.
70348         * modules/strtoul (Makefile.am): Likewise.
70349         * modules/strtoull (Makefile.am): Likewise.
70350         * modules/strtoumax (Makefile.am): Likewise.
70351         * modules/strverscmp (Makefile.am): Likewise.
70352         * modules/sys_socket (Makefile.am): Likewise.
70353         * modules/sys_stat (Makefile.am): Likewise.
70354         * modules/sysexits (Makefile.am): Likewise.
70355         * modules/time_r (Makefile.am): Likewise.
70356         * modules/timegm (Makefile.am): Likewise.
70357         * modules/timespec (Makefile.am): Likewise.
70358         * modules/tmpfile-safer (Makefile.am): Likewise.
70359         * modules/trim (Makefile.am): Likewise.
70360         * modules/unistd-safer (Makefile.am): Likewise.
70361         * modules/unlinkdir (Makefile.am): Likewise.
70362         * modules/unlocked-io (Makefile.am): Likewise.
70363         * modules/userspec (Makefile.am): Likewise.
70364         * modules/utime (Makefile.am): Likewise.
70365         * modules/utimecmp (Makefile.am): Likewise.
70366         * modules/utimens (Makefile.am): Likewise.
70367         * modules/vasnprintf (Makefile.am): Likewise.
70368         * modules/vasprintf (Makefile.am): Likewise.
70369         * modules/vsnprintf (Makefile.am): Likewise.
70370         * modules/xalloc (Makefile.am): Likewise.
70371         * modules/xgetcwd (Makefile.am): Likewise.
70372         * modules/xnanosleep (Makefile.am): Likewise.
70373         * modules/xreadlink (Makefile.am): Likewise.
70374         * modules/xstrtod (Makefile.am): Likewise.
70375         * modules/xstrtol (Makefile.am): Likewise.
70376         * modules/xstrtold (Makefile.am): Likewise.
70377         * modules/yesno (Makefile.am): Likewise.
70378         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
70379
70380 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * modules/error (Makefile.am): Distribute files through
70383         EXTRA_DIST, not lib_SOURCES.
70384
70385 2006-10-12  Eric Blake  <ebb9@byu.net>
70386
70387         * modules/error (Makefile.am): Distribute files in /lib.
70388         * modules/obstack (Makefile.am): Likewise.
70389
70390 2006-10-12  Bruno Haible  <bruno@clisp.org>
70391
70392         * modules/acl (Makefile.am): Distribute all files in lib/ through
70393         EXTRA_DIST.
70394         * modules/arcfour (Makefile.am): Likewise.
70395         * modules/arctwo (Makefile.am): Likewise.
70396         * modules/argmatch (Makefile.am): Likewise.
70397         * modules/argz (Makefile.am): Likewise.
70398         * modules/atexit (Makefile.am): Likewise.
70399         * modules/backupfile (Makefile.am): Likewise.
70400         * modules/c-strtod (Makefile.am): Likewise.
70401         * modules/c-strtold (Makefile.am): Likewise.
70402         * modules/calloc (Makefile.am): Likewise.
70403         * modules/canon-host (Makefile.am): Likewise.
70404         * modules/canonicalize (Makefile.am): Likewise.
70405         * modules/chdir-long (Makefile.am): Likewise.
70406         * modules/chdir-safer (Makefile.am): Likewise.
70407         * modules/check-version (Makefile.am): Likewise.
70408         * modules/chown (Makefile.am): Likewise.
70409         * modules/cloexec (Makefile.am): Likewise.
70410         * modules/close-stream (Makefile.am): Likewise.
70411         * modules/closeout (Makefile.am): Likewise.
70412         * modules/crc (Makefile.am): Likewise.
70413         * modules/cycle-check (Makefile.am): Likewise.
70414         * modules/des (Makefile.am): Likewise.
70415         * modules/dirfd (Makefile.am): Likewise.
70416         * modules/dirname (Makefile.am): Likewise.
70417         * modules/dup2 (Makefile.am): Likewise.
70418         * modules/euidaccess (Makefile.am): Likewise.
70419         * modules/exclude (Makefile.am): Likewise.
70420         * modules/exitfail (Makefile.am): Likewise.
70421         * modules/fcntl-safer (Makefile.am): Likewise.
70422         * modules/file-type (Makefile.am): Likewise.
70423         * modules/fileblocks (Makefile.am): Likewise.
70424         * modules/filemode (Makefile.am): Likewise.
70425         * modules/filenamecat (Makefile.am): Likewise.
70426         * modules/fnmatch (Makefile.am): Likewise.
70427         * modules/fopen-safer (Makefile.am): Likewise.
70428         * modules/fpending (Makefile.am): Likewise.
70429         * modules/fprintftime (Makefile.am): Likewise.
70430         * modules/free (Makefile.am): Likewise.
70431         * modules/fsusage (Makefile.am): Likewise.
70432         * modules/ftruncate (Makefile.am): Likewise.
70433         * modules/fts (Makefile.am): Likewise.
70434         * modules/gc (Makefile.am): Likewise.
70435         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70436         * modules/getaddrinfo (Makefile.am): Likewise.
70437         * modules/getcwd (Makefile.am): Likewise.
70438         * modules/getdelim (Makefile.am): Likewise.
70439         * modules/getdomainname (Makefile.am): Likewise.
70440         * modules/getgroups (Makefile.am): Likewise.
70441         * modules/gethostname (Makefile.am): Likewise.
70442         * modules/gethrxtime (Makefile.am): Likewise.
70443         * modules/getline (Makefile.am): Likewise.
70444         * modules/getloadavg (Makefile.am): Likewise.
70445         * modules/getlogin_r (Makefile.am): Likewise.
70446         * modules/getopt (Makefile.am): Likewise.
70447         * modules/getpass (Makefile.am): Likewise.
70448         * modules/getpass-gnu (Makefile.am): Likewise.
70449         * modules/getsubopt (Makefile.am): Likewise.
70450         * modules/gettime (Makefile.am): Likewise.
70451         * modules/gettimeofday (Makefile.am): Likewise.
70452         * modules/getugroups (Makefile.am): Likewise.
70453         * modules/getusershell (Makefile.am): Likewise.
70454         * modules/glob (Makefile.am): Likewise.
70455         * modules/group-member (Makefile.am): Likewise.
70456         * modules/hard-locale (Makefile.am): Likewise.
70457         * modules/hash (Makefile.am): Likewise.
70458         * modules/hmac-md5 (Makefile.am): Likewise.
70459         * modules/hmac-sha1 (Makefile.am): Likewise.
70460         * modules/human (Makefile.am): Likewise.
70461         * modules/idcache (Makefile.am): Likewise.
70462         * modules/imaxabs (Makefile.am): Likewise.
70463         * modules/imaxdiv (Makefile.am): Likewise.
70464         * modules/inet_ntop (Makefile.am): Likewise.
70465         * modules/inet_pton (Makefile.am): Likewise.
70466         * modules/inttostr (Makefile.am): Likewise.
70467         * modules/isapipe (Makefile.am): Likewise.
70468         * modules/lchown (Makefile.am): Likewise.
70469         * modules/long-options (Makefile.am): Likewise.
70470         * modules/lstat (Makefile.am): Likewise.
70471         * modules/malloc (Makefile.am): Likewise.
70472         * modules/mathl (Makefile.am): Likewise.
70473         * modules/mbchar (Makefile.am): Likewise.
70474         * modules/md2 (Makefile.am): Likewise.
70475         * modules/md4 (Makefile.am): Likewise.
70476         * modules/md5 (Makefile.am): Likewise.
70477         * modules/memcasecmp (Makefile.am): Likewise.
70478         * modules/memchr (Makefile.am): Likewise.
70479         * modules/memcmp (Makefile.am): Likewise.
70480         * modules/memcoll (Makefile.am): Likewise.
70481         * modules/memcpy (Makefile.am): Likewise.
70482         * modules/memmem (Makefile.am): Likewise.
70483         * modules/memmove (Makefile.am): Likewise.
70484         * modules/mempcpy (Makefile.am): Likewise.
70485         * modules/memrchr (Makefile.am): Likewise.
70486         * modules/memset (Makefile.am): Likewise.
70487         * modules/memxor (Makefile.am): Likewise.
70488         * modules/mkancesdirs (Makefile.am): Likewise.
70489         * modules/mkdir (Makefile.am): Likewise.
70490         * modules/mkdir-p (Makefile.am): Likewise.
70491         * modules/mkdtemp (Makefile.am): Likewise.
70492         * modules/mkstemp (Makefile.am): Likewise.
70493         * modules/mktime (Makefile.am): Likewise.
70494         * modules/modechange (Makefile.am): Likewise.
70495         * modules/mountlist (Makefile.am): Likewise.
70496         * modules/nanosleep (Makefile.am): Likewise.
70497         * modules/openat (Makefile.am): Likewise.
70498         * modules/pagealign_alloc (Makefile.am): Likewise.
70499         * modules/physmem (Makefile.am): Likewise.
70500         * modules/poll (Makefile.am): Likewise.
70501         * modules/posixtm (Makefile.am): Likewise.
70502         * modules/posixver (Makefile.am): Likewise.
70503         * modules/putenv (Makefile.am): Likewise.
70504         * modules/quote (Makefile.am): Likewise.
70505         * modules/quotearg (Makefile.am): Likewise.
70506         * modules/raise (Makefile.am): Likewise.
70507         * modules/read-file (Makefile.am): Likewise.
70508         * modules/readline (Makefile.am): Likewise.
70509         * modules/readlink (Makefile.am): Likewise.
70510         * modules/readtokens (Makefile.am): Likewise.
70511         * modules/readutmp (Makefile.am): Likewise.
70512         * modules/realloc (Makefile.am): Likewise.
70513         * modules/regex (Makefile.am): Likewise.
70514         * modules/rename (Makefile.am): Likewise.
70515         * modules/rename-dest-slash (Makefile.am): Likewise.
70516         * modules/rijndael (Makefile.am): Likewise.
70517         * modules/rmdir (Makefile.am): Likewise.
70518         * modules/rpmatch (Makefile.am): Likewise.
70519         * modules/safe-read (Makefile.am): Likewise.
70520         * modules/safe-write (Makefile.am): Likewise.
70521         * modules/same (Makefile.am): Likewise.
70522         * modules/save-cwd (Makefile.am): Likewise.
70523         * modules/savedir (Makefile.am): Likewise.
70524         * modules/setenv (Makefile.am): Likewise.
70525         * modules/settime (Makefile.am): Likewise.
70526         * modules/sha1 (Makefile.am): Likewise.
70527         * modules/sig2str (Makefile.am): Likewise.
70528         * modules/snprintf (Makefile.am): Likewise.
70529         * modules/stdlib-safer (Makefile.am): Likewise.
70530         * modules/stpcpy (Makefile.am): Likewise.
70531         * modules/stpncpy (Makefile.am): Likewise.
70532         * modules/strcase (Makefile.am): Likewise.
70533         * modules/strcasestr (Makefile.am): Likewise.
70534         * modules/strchrnul (Makefile.am): Likewise.
70535         * modules/strcspn (Makefile.am): Likewise.
70536         * modules/strdup (Makefile.am): Likewise.
70537         * modules/strerror (Makefile.am): Likewise.
70538         * modules/strftime (Makefile.am): Likewise.
70539         * modules/strndup (Makefile.am): Likewise.
70540         * modules/strnlen (Makefile.am): Likewise.
70541         * modules/strpbrk (Makefile.am): Likewise.
70542         * modules/strsep (Makefile.am): Likewise.
70543         * modules/strstr (Makefile.am): Likewise.
70544         * modules/strtod (Makefile.am): Likewise.
70545         * modules/strtoimax (Makefile.am): Likewise.
70546         * modules/strtok_r (Makefile.am): Likewise.
70547         * modules/strtol (Makefile.am): Likewise.
70548         * modules/strtoll (Makefile.am): Likewise.
70549         * modules/strtoul (Makefile.am): Likewise.
70550         * modules/strtoull (Makefile.am): Likewise.
70551         * modules/strtoumax (Makefile.am): Likewise.
70552         * modules/strverscmp (Makefile.am): Likewise.
70553         * modules/time_r (Makefile.am): Likewise.
70554         * modules/timegm (Makefile.am): Likewise.
70555         * modules/tmpfile-safer (Makefile.am): Likewise.
70556         * modules/unistd-safer (Makefile.am): Likewise.
70557         * modules/unlinkdir (Makefile.am): Likewise.
70558         * modules/userspec (Makefile.am): Likewise.
70559         * modules/utime (Makefile.am): Likewise.
70560         * modules/utimecmp (Makefile.am): Likewise.
70561         * modules/utimens (Makefile.am): Likewise.
70562         * modules/vasnprintf (Makefile.am): Likewise.
70563         * modules/vasprintf (Makefile.am): Likewise.
70564         * modules/vsnprintf (Makefile.am): Likewise.
70565         * modules/xalloc (Makefile.am): Likewise.
70566         * modules/xgetcwd (Makefile.am): Likewise.
70567         * modules/xnanosleep (Makefile.am): Likewise.
70568         * modules/xreadlink (Makefile.am): Likewise.
70569         * modules/xstrtod (Makefile.am): Likewise.
70570         * modules/xstrtol (Makefile.am): Likewise.
70571         * modules/xstrtold (Makefile.am): Likewise.
70572         * modules/yesno (Makefile.am): Likewise.
70573
70574 2006-10-12  Jim Meyering  <jim@meyering.net>
70575
70576         * m4/getloadavg.m4: Revert the change below.
70577
70578         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
70579         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
70580         fail with a symlink, which is what coreutils' ./bootstrap now
70581         creates by default.
70582
70583 2006-10-12  Bruno Haible  <bruno@clisp.org>
70584
70585         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
70586         mingw.
70587         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
70588         MSVC and mingw explicitly.
70589
70590 2006-10-11  Simon Josefsson  <jas@extundo.com>
70591             Bruno Haible  <bruno@clisp.org>
70592
70593         Add support for multiple gnulib-tool invocations in the scope of a
70594         single configure.ac file.
70595         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
70596         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
70597         with the same contents as the _LIBADD variable.
70598         (func_emit_initmacro_start, func_emit_initmacro_end,
70599         func_emit_initmacro_done): New functions.
70600         (func_import, func_create_testdir): Invoke them. Allow the identifiers
70601         gl_LIBOBJS and gl_LTLIBOBJS.
70602
70603 2006-10-11  Bruno Haible  <bruno@clisp.org>
70604
70605         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
70606         (func_create_testdir): Don't create po/Makefile.am, don't invoke
70607         autoreconf. Instead, invoke autopoint explicitly but move back the
70608         *.m4 files from gnulib.
70609
70610 2006-10-11  Bruno Haible  <bruno@clisp.org>
70611
70612         * gnulib-tool (func_usage): Make module names after --create-testdir
70613         optional.
70614         (func_create_testdir): If no module was specified, use nearly all
70615         modules.
70616
70617 2006-10-12  Jim Meyering  <jim@meyering.net>
70618
70619         Big performance improvement for fts-based tools that use FTS_NOSTAT.
70620         Avoid spurious inode-mismatch problems on non-POSIX file systems.
70621         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
70622         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
70623         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
70624         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
70625         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
70626         (fts_set_stat_required): New function.
70627         (fts_open): Defer the calls to fts_stat, if possible or requested.
70628         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
70629         into fts_stat itself.
70630         (fts_read): Perform any required (deferred) fts_stat call.
70631         (fts_build): Likewise, for the directory we're about to open and read.
70632         In the readdir loop, carefully decide whether each entry will require
70633         an eventual call to fts_stat, using dirent.d_type info if available.
70634         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
70635         a command line argument into this function.  Update all callers.
70636         Map a return value of FTS_DOT to FTS_D for a command line argument.
70637         * modules/fts (Depends-on): Add d-type.  Alphabetize.
70638         Thanks to Miklos Szeredi for his tenacity and for the initial
70639         bug report about "find" failing on a FUSE-based file system.
70640
70641         * lib/fts.c (fts_open): Use consistent indentation.
70642
70643 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70644
70645         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
70646         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
70647         reported by Jim Meyering.  All uses of cache variables renamed
70648         to match Autoconf's.
70649         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
70650         the other one.
70651
70652         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70653         Fix misspelling in diagnostic.
70654
70655 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70656
70657         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
70658         defined.  Problem reported by Matthew Woehlke.
70659
70660         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
70661         Add support for Tandem NonStop R series.
70662         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
70663         Use new macro.
70664
70665         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
70666         (has_trailing_slash): Omit size arg; all callers changed.
70667         Omit 'inline', since it doesn't help performance and we'd
70668         need to configure it.
70669         Don't count //, ///, etc. as having a trailing slash.
70670         As a side effect, this removes a C99ism reported by Matthew Woehlke.
70671         (rpl_rename_dest_slash): On failure, use rename's errno rather
70672         than (in some cases) an incorrect or junk errno.
70673         Simplify code by removing need to compute length; this does
70674         cause it to make two passes instead of one over the file name,
70675         but it's worth it.
70676
70677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
70678         change, since Autoconf's version may no longer be appropriate now
70679         that we are using CVS Autoconf's version.  Add support for Tandem.
70680
70681 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70682             Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
70685         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
70686         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
70687         gl_AC_TYPE_LONG_LONG.
70688
70689         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
70690         instead of HAVE_LONG_LONG.
70691         * lib/printf-args.c (printf_fetchargs): Likewise.
70692         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
70693         * lib/vasnprintf.c (VASNPRINTF): Likewise.
70694         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
70695         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
70696         gl_AC_TYPE_LONG_LONG.
70697
70698 2006-10-11  Bruno Haible  <bruno@clisp.org>
70699
70700         * m4/longlong.m4: Add comments.
70701         * m4/ulonglong.m4: Likewise.
70702
70703 2006-10-10  Bruno Haible  <bruno@clisp.org>
70704
70705         Make it possible to #define stpcpy, strdup to aliases.
70706         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
70707         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
70708
70709 2006-10-10  Bruno Haible  <bruno@clisp.org>
70710
70711         Make it possible to #define gcd to an alias.
70712         * lib/gcd.c: Include config.h.
70713
70714 2006-10-10  Bruno Haible  <bruno@clisp.org>
70715
70716         Make it possible to #define c_isascii to an alias.
70717         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
70718         defined. Undefine the macros before defining them, to avoid gcc
70719         warnings.
70720         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
70721         define NO_C_CTYPE_MACROS early.
70722
70723 2006-10-10  Bruno Haible  <bruno@clisp.org>
70724
70725         Make it possible to #define set_program_name to an alias.
70726         * lib/progname.c: Don't undefine set_program_name; instead, undefine
70727         ENABLE_RELOCATABLE early.
70728
70729 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         Port to Tandem NSK OSS, which has 64-bit signed int but at most
70732         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
70733         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
70734         More generally, don't assume that 64-bit signed int is available
70735         if unsigned int is, and vice versa.
70736         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
70737         unsigned symbols, not on their signed counterparts.
70738         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
70739         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
70740         (UINT64_C, UINTMAX_C):
70741         Likewise.
70742         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
70743         unsigned counterparts.
70744         (Have_long_long, Unsigned): New macros.
70745         (Int): Renamed from INT.
70746         (strtoimax): Use the new macros.
70747         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
70748         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
70749         * modules/inttypes (inttypes.h): Substitute
70750         HAVE_UNSIGNED_LONG_LONG_INT.
70751         * modules/stdint (stdint.h): Likewise.
70752         (Files): Add m4/ulonglong.m4.
70753
70754 2006-10-10  Bruno Haible  <bruno@clisp.org>
70755
70756         Fix a gcc -Wshadow warning.
70757         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
70758         to 'bucket'.
70759         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
70760         gl_linked_indexof_from_to): Likewise.
70761         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
70762         Likewise.
70763         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
70764         Likewise.
70765         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
70766         Reported by Eric Blake.
70767
70768 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
70771         for NetBSD.  Problem reported by Bruno Haible.
70772
70773 2006-10-09  Jim Meyering  <jim@meyering.net>
70774
70775         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
70776         Patch from Bruno Haible.
70777
70778 2006-10-09  Jim Meyering  <jim@meyering.net>
70779
70780         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
70781         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
70782         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
70783
70784 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70785
70786         Don't include <config.h> twice; this doesn't work in some cases,
70787         e.g., when config.h has "#define intmax_t long long int" and
70788         we include <config.h>, <inttypes.h>, <config.h> in that order.
70789         Problem reported by Matthew Woehlke in:
70790         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
70791         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
70792         * lib/fts-cycle.c: Don't include config.h.
70793         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
70794         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
70795         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
70796         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
70797         inttypes.h.
70798         * lib/xstrtoumax.c: Likewise.
70799         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
70800         __strtol and the like, so that this module is more like its siblings.
70801         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
70802         Remove; no longer needed now that we assume gnulib inttypes.h.
70803
70804 2006-10-08  Bruno Haible  <bruno@clisp.org>
70805
70806         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70807         option.
70808
70809 2006-10-07  Jim Meyering  <jim@meyering.net>
70810
70811         * modules/inttypes (inttypes.h): Revert what seems to have been
70812         an inadvertent part of today's change: use "|", not "/" in the
70813         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70814
70815 2006-10-07  Bruno Haible  <bruno@clisp.org>
70816
70817         * modules/sublist: New file.
70818
70819 2006-10-07  Bruno Haible  <bruno@clisp.org>
70820
70821         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70822         * modules/argz (argz.h): Likewise.
70823         * modules/arpa_inet (arpa/inet.h): Likewise.
70824         * modules/byteswap (byteswap.h): Likewise.
70825         * modules/configmake (configmake.h): Likewise.
70826         * modules/fcntl (fcntl.h): Likewise.
70827         * modules/fnmatch (fnmatch.h): Likewise.
70828         * modules/getopt (getopt.h): Likewise.
70829         * modules/glob (glob.h): Likewise.
70830         * modules/inttypes (inttypes.h): Likewise.
70831         * modules/netinet_in (netinet/in.h): Likewise.
70832         * modules/poll (poll.h): Likewise.
70833         * modules/stdbool (stdbool.h): Likewise.
70834         * modules/stdint (stdint.h): Likewise.
70835         * modules/sys_select (sys/select.h): Likewise.
70836         * modules/sys_socket (sys/socket.h): Likewise.
70837         * modules/sys_stat (sys/stat.h): Likewise.
70838         * modules/sysexits (sysexits.h): Likewise.
70839         * modules/unistd (unistd.h): Likewise.
70840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70841         Add a "DO NOT EDIT" comment to the generated file.
70842         (func_import): Likewise for gnulib-comp.m4.
70843
70844 2006-10-07  Bruno Haible  <bruno@clisp.org>
70845
70846         * lib/gl_sublist.h: New file.
70847         * lib/gl_sublist.c: New file.
70848
70849 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70852         name (relative to the original working directory) and the file
70853         name component (relative to the temporary working directory).  All
70854         callers changed.
70855         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70856         * lib/mkdir-p.c (make_dir_parents): Likewise.
70857         * lib/mkdir-p.h (make_dir_parents): Likewise.
70858
70859 2006-10-06  Eric Blake  <ebb9@byu.net>
70860
70861         Define several macros for use by the clean-temp module.
70862         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70863         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70864         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70865
70866         * lib/clean-temp.h (close_stream_temp): New declaration.
70867         * lib/clean-temp.c (includes): Pull in headers according to what
70868         other modules are in use.
70869         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70870
70871 2006-10-06  Bruno Haible  <bruno@clisp.org>
70872
70873         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70874         instead of fopen, fwriteerror.
70875
70876 2006-10-06  Bruno Haible  <bruno@clisp.org>
70877
70878         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70879         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70880         int.
70881         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70882         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70883         Return an error indicator.
70884         Suggested by Eric Blake.
70885
70886 2006-10-06  Bruno Haible  <bruno@clisp.org>
70887
70888         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70889         Reported by Eric Blake.
70890
70891 2006-10-06  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/closeout (Description): Mention stderr too.
70894
70895 2006-10-06  Bruno Haible  <bruno@clisp.org>
70896         and Paul Eggert  <eggert@cs.ucla.edu>
70897
70898         * lib/closeout.c (close_stdout): Also close stderr.
70899         * lib/closeout.h: Update comment.
70900
70901 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70902
70903         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70904         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70905         * lib/dirchownmod.c: Include lchown.h.
70906         * lib/lchown.c: Don't include files that lchown.h now includes.
70907         Don't declare chown, since lchown.h now does that.
70908         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70909         (lchown): Define to rpl_chown if lchown is declared but
70910         does not exist.  Declare using a prototype if lchown is not
70911         declared.  Add a copyright notice.
70912         * lib/mkstemp.h: Include <unistd.h>.
70913         * lib/openat.c: Include lchown.h.
70914
70915         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70916         we now test for that separately.
70917         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70918         rather than O_NOFOLLOW, when testing whether it's possible to
70919         avoid a race condition reliably.
70920         * lib/savewd.c (savewd_chdir): Likewise.
70921
70922         Remove macros that are no longer needed now that stdint.h is
70923         reliable.
70924         * lib/fsusage.c (UINTMAX_MAX): Remove.
70925         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70926         * lib/utimecmp.c (SIZE_MAX): Remove.
70927
70928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70929
70930         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70931         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70932         O_NOATIME works.
70933
70934 2006-10-05  Bruno Haible  <bruno@clisp.org>
70935
70936         * lib/gl_list.h (gl_sortedlist_search_from_to,
70937         gl_sortedlist_indexof_from_to): New declarations.
70938         (gl_list_implementation): New fields sortedlist_search_from_to,
70939         sortedlist_indexof_from_to.
70940         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70941         inline functions.
70942         * lib/gl_list.c (gl_sortedlist_search_from_to,
70943         gl_sortedlist_indexof_from_to): New functions.
70944         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70945         function.
70946         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70947         (gl_array_sortedlist_search_from_to): New function.
70948         (gl_array_list_implementation): Update.
70949         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70950         function.
70951         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70952         (gl_carray_sortedlist_search_from_to): New function.
70953         (gl_carray_list_implementation): Update.
70954         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70955         gl_linked_sortedlist_indexof_from_to): New functions.
70956         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70957         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70958         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70959         gl_tree_sortedlist_indexof_from_to): New functions.
70960         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70961         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70962         Update.
70963         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70964         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70965         Update.
70966
70967 2006-10-05  Bruno Haible  <bruno@clisp.org>
70968
70969         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70970         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70971         (struct gl_list_implementation): Add fields search_from_to,
70972         indexof_from_to. Remove fields search, indexof.
70973         (gl_list_search): Use the search_from_to method.
70974         (gl_list_search_from, gl_list_search_from_to): New functions.
70975         (gl_list_indexof): Use the indexof_from_to method.
70976         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70977         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70978         (gl_list_search_from, gl_list_search_from_to): New functions.
70979         (gl_list_indexof): Use the indexof_from_to method.
70980         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70981         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70982         gl_array_indexof. Add start_index, end_index arguments.
70983         (gl_array_search_from_to): Renamed from gl_array_search. Add
70984         start_index, end_index arguments.
70985         (gl_array_remove, gl_array_list_implementation): Update.
70986         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70987         gl_carray_indexof. Add start_index, end_index arguments.
70988         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70989         start_index, end_index arguments.
70990         (gl_carray_remove, gl_carray_list_implementation): Update.
70991         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70992         gl_linked_search. Add start_index, end_index arguments.
70993         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70994         start_index, end_index arguments.
70995         (gl_linked_remove): Update.
70996         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70997         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70998         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70999         field to 'size_t'.
71000         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
71001         gl_tree_search. Add start_index, end_index arguments.
71002         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71003         start_index, end_index arguments.
71004         (gl_tree_remove): Update.
71005         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71006         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71007         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
71008         function.
71009         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
71010         gl_tree_search. Add start_index, end_index arguments.
71011         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71012         start_index, end_index arguments.
71013         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71014         Update.
71015         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71016
71017 2006-10-05  Bruno Haible  <bruno@clisp.org>
71018
71019         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
71020
71021         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
71022         fwriteerror_temp): New declarations.
71023         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
71024         (descriptors): New variable.
71025         (cleanup): First, close the descriptors.
71026         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
71027         fclose_temp, fwriteerror_temp): New functions.
71028
71029 2006-10-04  Jim Meyering  <jim@meyering.net>
71030
71031         * lib/fts.c (fts_open): Tiny comment change.
71032
71033 2006-10-04  Bruno Haible  <bruno@clisp.org>
71034
71035         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
71036         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
71037         gl_LOCK_BODY.
71038         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
71039         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
71040         gl_LOCK_EARLY_BODY.
71041         (gl_LOCK): Require gl_LOCK_BODY.
71042
71043 2006-10-04  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
71046         (gl_oset_search_atleast): New declaration.
71047         (struct gl_oset_implementation): Add field 'search_atleast'.
71048         (gl_oset_search_atleast): New inline function.
71049         * lib/gl_oset.c (gl_oset_search_atleast): New function.
71050         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
71051         (gl_array_oset_implementation): Update.
71052         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
71053         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
71054         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
71055
71056 2006-10-04  Bruno Haible  <bruno@clisp.org>
71057
71058         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
71059
71060 2006-10-03  Bruno Haible  <bruno@clisp.org>
71061
71062         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
71063         from gl_avltreehash_list_implementation.
71064
71065 2006-10-03  Bruno Haible  <bruno@clisp.org>
71066
71067         * lib/gl_oset.c (gl_oset_add): Fix return type.
71068
71069 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
71070
71071         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
71072
71073 2006-10-02  Eric Blake  <ebb9@byu.net>
71074
71075         * modules/strnlen (Depends-on): Add extensions.
71076
71077 2006-10-02  Eric Blake  <ebb9@byu.net>
71078
71079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
71080         definition in 2.60+.
71081
71082 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71083
71084         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
71085         checks.
71086
71087 2006-10-02  Bruno Haible  <bruno@clisp.org>
71088
71089         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
71090         to the AUTOMAKE_OPTIONS.
71091         Reported by Jim Meyering.
71092
71093 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         Work around bug in Solaris 10 /proc file system:
71096         /proc/self/fd/NNN/.. isn't the parent directory of
71097         the directory whose file descriptor is NNN.  This needs to
71098         be worked around at run time, not compile time, since a
71099         program might be built on Solaris 8, where things work, and
71100         run on Solaris 10.
71101         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
71102         to use the following interface instead:
71103         (OPENAT_BUFFER_SIZE): New macro.
71104         (openat_proc_name): New function.
71105         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
71106         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
71107         Likewise.
71108         * lib/openat-proc.c: New file.
71109         * modules/openat (Files): Add lib/openat-proc.c.
71110         (Depends-on): Add same-inode, stdbool.
71111         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
71112
71113 2006-09-29  Bruno Haible  <bruno@clisp.org>
71114
71115         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
71116         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
71117         argument. Set stdout_closed before testing for ferror, not after.
71118         (fwriteerror, fwriteerror_no_ebadf): New functions.
71119
71120 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71121
71122         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
71123
71124 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
71125
71126         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
71127         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
71128
71129 2006-09-28  Jim Meyering  <jim@meyering.net>
71130
71131         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
71132         Include <unistd.h>.
71133
71134 2006-09-28  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
71137         * modules/linkedhash-list (Depends-on): Likewise.
71138         * modules/rbtreehash-list (Depends-on): Likewise.
71139
71140 2006-09-28  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/strndup.h: Simplify the redefinition of strndup.
71143         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
71144         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
71145
71146 2006-09-28  Bruno Haible  <bruno@clisp.org>
71147
71148         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
71149         * lib/gl_linkedhash_list.c: Likewise.
71150         * lib/gl_rbtreehash_list.c: Likewise.
71151
71152 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71153
71154         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
71155         getaddrinfo.
71156
71157         * lib/__fpending.h: Don't include <stdio_ext.h> unless
71158         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
71159         it causes <stdio_ext.h> to cause a compile-time error.
71160         Problem reported by Nelson H. F. Beebe.
71161         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
71162         of HAVE_DECL___PENDING.
71163
71164         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
71165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
71166         declaration.
71167
71168 2006-09-27  Jim Meyering  <jim@meyering.net>
71169
71170         This file could end up with a definition for a function
71171         named __strndup, rather than rpl_strndup on a system with
71172         incomplete weak_alias support.
71173         * lib/strndup.c (strndup): Rename from __strndup.
71174         Remove #defines that used to map __strndup to strndup.
71175         Don't use K&R prototypes.
71176         Remove LIBC-related code, since this file is not sync'd with glibc.
71177         * lib/strndup.h: Revamp, accordingly.
71178         * m4/strndup.m4: Modernize.
71179
71180 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71181
71182         * modules/savewd (Depends-on): Add 'raise'.
71183         * lib/savewd.c: Include <signal.h>, for 'raise'.
71184
71185 2006-09-26  Jim Meyering  <jim@meyering.net>
71186
71187         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
71188         when we detect Darwin 8.7.0's acl_get_file bug.
71189         Rearrange to perform the new (below) run-test while $LIBS
71190         contains any acl-related library.  Set USE_ACL at the end.
71191         (gl_ACL_GET_FILE): New function.
71192
71193 2006-09-26  Eric Blake  <ebb9@byu.net>
71194
71195         * lib/verror.c: Include <config.h> unconditionally.
71196
71197 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
71198
71199         * modules/clock-time (Maintainer): Add self.
71200         * modules/getlogin_r (Depends-on): Add extensions.
71201
71202 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71203
71204         * modules/clock-time: New module.
71205         * modules/nanosleep (Depends-on): Add clock-time.
71206         * modules/gethrxtime (Depends-on): Likewise.
71207         * modules/gettime (Depends-on): Likewise.
71208         * modules/settime (Depends-on): Likewise.
71209
71210         * modules/fts-lgpl: Depend on openat.
71211         * modules/mkancesdirs: Depend on savewd.
71212         * modules/mkdir-p: Likewise.
71213
71214 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71215
71216         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
71217
71218         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
71219         `gl_have_arbitrary_file_name_length_limit' to
71220         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
71221         actually works between configure runs.
71222
71223 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71224             Bruno Haible  <bruno@clisp.org>
71225
71226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
71227
71228 2006-09-25  Jim Meyering  <jim@meyering.net>
71229
71230         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
71231         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
71232
71233 2006-09-25  Eric Blake  <ebb9@byu.net>
71234
71235         * gnulib-tool (func_import, func_create_testdir): Fix typos in
71236         exec's in 2006-09-18 patch when shuffling fds.
71237
71238 2006-09-25  Bruno Haible  <bruno@clisp.org>
71239
71240         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
71241         Reported by Jim Meyering.
71242
71243 2006-09-24  Jim Meyering  <jim@meyering.net>
71244
71245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
71246         compare a pointer against a literal "0".  That caused failures with
71247         at least HP-UX's hpcc.
71248
71249 2006-09-22  Simon Josefsson  <jas@extundo.com>
71250
71251         * modules/gc-sha1:
71252         * modules/gc-md4:
71253         * modules/gc-hmac-sha1:
71254         * modules/gc-hmac-md5:
71255         * modules/gc-des:
71256         * modules/gc-arcfour: Distribute more files.
71257
71258 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71259
71260         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
71261         (gl_linked_iterator_from_to): Initialize struct completely.
71262         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
71263         (gl_tree_iterator_from_to): Likewise
71264         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
71265         * lib/gl_array_list.c [lint] (gl_array_iterator)
71266         (gl_array_iterator_from_to): Likewise.
71267         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
71268         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
71269         (gl_carray_iterator_from_to): Likewise.
71270
71271         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
71272         * lib/md4.c (md4_process_block): Remove unused variable.
71273         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
71274         parentheses for clarity.
71275
71276 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71277
71278         * modules/bison-i18n (Depends-on): Add gettext.
71279
71280 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71281
71282         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
71283         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
71284         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
71285         also add missing comma that caused broken test.
71286         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
71287         stdlib.h, for `abort'.
71288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
71289         variables.
71290         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
71291         include unistd.h if present, for `rmdir'.
71292         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
71293         variables.
71294         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
71295         in the process include standard headers for prototypes.
71296         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
71297         gets declared on GNU/Linux.
71298         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
71299         unistd.h, for `rmdir'.
71300         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
71301
71302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
71303         always true.
71304         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
71305
71306         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
71307
71308 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71309
71310         * gnulib-tool (func_version): Create output all at once.  This
71311         may help avoid triggering unnecessary SIGPIPEs, and at any
71312         rate it doesn't hurt.
71313
71314 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71315             Bruno Haible  <bruno@clisp.org>
71316
71317         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
71318         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71319         * m4/signed.m4 (bh_C_SIGNED): Likewise.
71320
71321         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
71322         (gl_FUNC_VASPRINTF): Invoke it.
71323
71324 2006-09-22  Bruno Haible  <bruno@clisp.org>
71325
71326         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
71327         getloadavg.c as first argument.
71328
71329 2006-09-22  Bruno Haible  <bruno@clisp.org>
71330
71331         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
71332         at the beginning of the gl_INIT macro.
71333         * modules/getloadavg (configure.ac): Pass $gl_source_base to
71334         gl_GETLOADAVG.
71335
71336 2006-09-22  Bruno Haible  <bruno@clisp.org>
71337
71338         * gnulib-tool (func_create_megatestdir): Don't include the config-h
71339         module.
71340         Suggested by Ralf Wildenhues.
71341
71342 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         Import this patch from libc:
71345
71346         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
71347
71348         * lib/regex_internal.c (re_string_reconstruct): Handle
71349         offset < pstr->valid_raw_len && pstr->offsets_needed case.
71350         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
71351         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
71352         re_string_context_at.
71353
71354         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
71355         now requires it.
71356         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
71357         gl_REGEX now does it for us.
71358         (gl_REGEX): Add test taken from
71359         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
71360
71361         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
71362         Check that large offsets work.  Modernize Autoconf usages.
71363         Prefer "yes" to mean a good thing rather than a bad.
71364         Don't put "#define mkstemp" in config.h, as this might interfere
71365         with standard system headers that "#define mkstemp mkstemp64".
71366
71367         * modules/mkstemp (Depends-on): Add extensions, so that
71368         mkstemp is visible on some platforms.
71369         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
71370         (Include): Change to "mkstemp.h" from <stdlib.h>.
71371         (Files): Add mkstemp.h.
71372
71373         * lib/mkstemp.h: New file, since some standard headers
71374         #define mkstemp.
71375         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
71376         Include "mkstemp.h".
71377         Make the _LIBC code resemble glibc original more,
71378         e.g., use K&R style.
71379         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
71380         (mkstemp): Remove, since mkstemp.h does this for us.
71381         * lib/stdlib--.h: Include mkstemp.h.
71382
71383         Import this patch from libc:
71384
71385         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71386
71387         * lib/tempname.c (__gen_tempname): Change attempts_min
71388         into a macro.  Use preprocessor to decide how to initialize
71389         attempts [Coverity CID 67].
71390
71391 2006-09-20  Bruno Haible  <bruno@clisp.org>
71392
71393         * lib/mkdtemp.c: Import from libc.
71394         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71395                 * sysdeps/posix/tempname.c (__gen_tempname): Change
71396                 attempts_min into a macro.  Use preprocessor to decide how to
71397                 initialize attempts [Coverity CID 67].
71398         2001-11-27  Paul Eggert  <eggert@twinsun.com>
71399                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
71400                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
71401
71402 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71403
71404         * gnulib-tool (func_exit): New function, to allow to pass the
71405         exit status portably through the trap.  Use everywhere.
71406         (--help, --version): Signal a write error.
71407         (trap): catch SIGPIPE, for write errors.
71408         Exit at the end of the trap, with the correct exit status.
71409
71410 2006-09-19  Karl Berry  <karl@gnu.org>
71411
71412         * doc/gnulib.texi: note about the license texinfo files.
71413
71414 2006-09-19  Eric Blake  <ebb9@byu.net>
71415
71416         * gnulib-tool: Avoid space-tab.
71417
71418 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71419
71420         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
71421         that prevented coreutils 6.1 from building.  Problem reported
71422         by Petter Reinholdtsen.
71423
71424 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * gnulib-tool (avoidlist): Fix typo that broke options like
71427         --avoid=lock that are used by coreutils bootstrap.
71428
71429 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
71430
71431         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
71432         more systematically.
71433
71434 2006-09-18  Jim Meyering  <jim@meyering.net>
71435
71436         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
71437
71438 2006-09-18  Bruno Haible  <bruno@clisp.org>
71439
71440         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
71441
71442 2006-09-18  Bruno Haible  <bruno@clisp.org>
71443
71444         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
71445         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
71446         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
71447         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
71448         * m4/gettext.m4: Require autoconf >= 2.52.
71449         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
71450         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
71451         of gl_cv_header_inttypes_h.
71452
71453 2006-09-18  Bruno Haible  <bruno@clisp.org>
71454
71455         * lib/javaversion.c: Include configmake.h.
71456
71457 2006-09-18  Bruno Haible  <bruno@clisp.org>
71458
71459         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
71460         avoid that the while loops be executed in a subshell.
71461
71462 2006-09-18  Bruno Haible  <bruno@clisp.org>
71463
71464         * MODULES.html.sh (func_module): Break long lines.
71465         Suggested by Bruce Korb <bkorb@gnu.org>.
71466
71467 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71468
71469         Speed up by a factor of 1.12.
71470         * gnulib-tool (nl): New variable.
71471         (func_import): Rewrite include directive extraction to only read each
71472         directive once.
71473
71474 2006-09-17  Bruno Haible  <bruno@clisp.org>
71475
71476         * modules/javaversion (Makefile.am): Remove DEFS setting.
71477         (Depends-on): Add configmake, for PKGDATADIR definition.
71478
71479 2006-09-17  Bruno Haible  <bruno@clisp.org>
71480
71481         * gnulib-tool (func_create_testdir): Rewrite all files at once.
71482
71483 2006-09-17  Bruno Haible  <bruno@clisp.org>
71484
71485         * gnulib-tool (func_append): New function, stolen from libtool.m4.
71486         (func_modules_transitive_closure, func_modules_add_dummy,
71487         func_modules_to_filelist, func_import, func_create_testdir,
71488         func_create_megatestdir, ...): Use it wherever possible.
71489         Suggested by Ralf Wildenhues.
71490
71491 2006-09-16  Karl Berry  <karl@gnu.org>
71492
71493         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
71494         to avoid sectioning errors.
71495         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
71496         [ifinfo]: blank line after @center-ed titles.
71497         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
71498         Spell FSF address consistently with others.
71499         (These changes approved by rms.)
71500
71501 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71502
71503         Speed up by a factor of 1.61.
71504         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
71505         already checked module names again.
71506
71507 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71508
71509         Speed up by a factor of 1.13.
71510         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
71511         for new_files, and the input to func_add_or_update.
71512
71513 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71514
71515         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
71516         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
71517
71518 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * modules/mkancesdirs (Depends-on): Add fcntl.
71521         * modules/savewd: New file.
71522         * MODULES.html.sh (File system functions): Add savewd.
71523
71524         * modules/configmake (Makefile.am): Add support for the
71525         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
71526
71527 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71528
71529         * m4/savewd.m4: New file.
71530
71531 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
71534         (dirchownmod): New arg FD.  All callers changed.
71535         Use FD rather than opening the directory ourself, as opening is
71536         now the caller's responsibility.
71537         * lib/dirchownmod.h: Likewise.
71538         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
71539         hosts that require <sys/types.h> before <sys/stat.h>.  Include
71540         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
71541         (test_dir): Remove.
71542         (mkancesdirs): Return length of prefix of FILE that has already
71543         been made, or -2 if there is a child doing the work.  Redo
71544         algorithm so that it is O(N) rather than O(N**2).  Optimize away
71545         ".", and treat ".." specially since it might stray back into
71546         already-created areas.  Use a subprocess if necessary.  New arg
71547         WD; all users changed.  MAKE_DIR function should now return 1
71548         if it creates a directory that is not readable.  Return -2 if
71549         a child process is spun off.
71550         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
71551         Adjust signature to match code.
71552         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
71553         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
71554         all users changed.
71555         * lib/savewd.c, lib/savewd.h: New files.
71556
71557 2006-09-15  Jim Meyering  <jim@meyering.net>
71558
71559         * modules/rename-dest-slash: New module.
71560         * MODULES.html.sh (posix_compat): Add it here.
71561
71562         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
71563
71564 2006-09-15  Jim Meyering  <jim@meyering.net>
71565
71566         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
71567         file.
71568
71569         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
71570
71571 2006-09-15  Jim Meyering  <jim@meyering.net>
71572
71573         * lib/rename-dest-slash.c (has_trailing_slash): Use
71574         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
71575         (rpl_rename_dest_slash): Perform the cheaper trailing slash
71576         test before testing whether SRC is a directory.
71577         Suggestions from Bruno Haible.
71578
71579         Avoid a warning about an unused variable.
71580         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
71581         into the #ifdef block where it's used.
71582
71583         * lib/rename-dest-slash.c: New file.
71584
71585 2006-09-14  Bruno Haible  <bruno@clisp.org>
71586
71587         * lib/allocsa.c: Include <config.h> unconditionally.
71588         * lib/asnprintf.c: Likewise.
71589         * lib/asprintf.c: Likewise.
71590         * lib/c-strcasecmp.c: Likewise.
71591         * lib/c-strcasestr.c: Likewise.
71592         * lib/c-strncasecmp.c: Likewise.
71593         * lib/c-strstr.c: Likewise.
71594         * lib/classpath.c: Likewise.
71595         * lib/clean-temp.c: Likewise.
71596         * lib/concatpath.c: Likewise.
71597         * lib/copy-file.c: Likewise.
71598         * lib/csharpcomp.c: Likewise.
71599         * lib/csharpexec.c: Likewise.
71600         * lib/execute.c: Likewise.
71601         * lib/fatal-signal.c: Likewise.
71602         * lib/findprog.c: Likewise.
71603         * lib/fwriteerror.c: Likewise.
71604         * lib/gl_array_list.c: Likewise.
71605         * lib/gl_array_oset.c: Likewise.
71606         * lib/gl_avltree_list.c: Likewise.
71607         * lib/gl_avltree_oset.c: Likewise.
71608         * lib/gl_avltreehash_list.c: Likewise.
71609         * lib/gl_carray_list.c: Likewise.
71610         * lib/gl_linked_list.c: Likewise.
71611         * lib/gl_linkedhash_list.c: Likewise.
71612         * lib/gl_list.c: Likewise.
71613         * lib/gl_oset.c: Likewise.
71614         * lib/gl_rbtree_list.c: Likewise.
71615         * lib/gl_rbtree_oset.c: Likewise.
71616         * lib/gl_rbtreehash_list.c: Likewise.
71617         * lib/imaxabs.c: Likewise.
71618         * lib/imaxdiv.c: Likewise.
71619         * lib/javacomp.c: Likewise.
71620         * lib/javaexec.c: Likewise.
71621         * lib/javaversion.c: Likewise.
71622         * lib/linebreak.c: Likewise.
71623         * lib/localcharset.c: Likewise.
71624         * lib/lock.c: Likewise.
71625         * lib/mbchar.c: Likewise.
71626         * lib/mbswidth.c: Likewise.
71627         * lib/mkdtemp.c: Likewise.
71628         * lib/pipe.c: Likewise.
71629         * lib/printf-args.c: Likewise.
71630         * lib/printf-parse.c: Likewise.
71631         * lib/progname.c: Likewise.
71632         * lib/progreloc.c: Likewise.
71633         * lib/readlink.c: Likewise.
71634         * lib/sh-quote.c: Likewise.
71635         * lib/stpcpy.c: Likewise.
71636         * lib/stpncpy.c: Likewise.
71637         * lib/strcasecmp.c: Likewise.
71638         * lib/strcasestr.c: Likewise.
71639         * lib/strcspn.c: Likewise.
71640         * lib/striconv.c: Likewise.
71641         * lib/strncasecmp.c: Likewise.
71642         * lib/strnlen1.c: Likewise.
71643         * lib/strstr.c: Likewise.
71644         * lib/strtok_r.c: Likewise.
71645         * lib/tls.c: Likewise.
71646         * lib/tmpdir.c: Likewise.
71647         * lib/unicodeio.c: Likewise.
71648         * lib/unsetenv.c: Likewise.
71649         * lib/vasnprintf.c: Likewise.
71650         * lib/vasprintf.c: Likewise.
71651         * lib/wait-process.c: Likewise.
71652         * lib/xallocsa.c: Likewise.
71653         * lib/xsetenv.c: Likewise.
71654         * lib/xstriconv.c: Likewise.
71655
71656 2006-09-13  Simon Josefsson  <jas@extundo.com>
71657
71658         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
71659         that internally, suggested by Ralf Wildenhues
71660         <Ralf.Wildenhues@gmx.de>.
71661
71662 2006-09-13  Simon Josefsson  <jas@extundo.com>
71663
71664         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
71665         @LIBOBJS@.
71666         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71667
71668 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * lib/_fpending.c: Include <config.h> unconditionally, since we no
71671         longer worry about uses that don't define HAVE_CONFIG_H.
71672         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
71673         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
71674         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
71675         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
71676         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
71677         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
71678         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
71679         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
71680         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
71681         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
71682         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
71683         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
71684         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
71685         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
71686         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
71687         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
71688         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
71689         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
71690         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
71691         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
71692         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
71693         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
71694         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
71695         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
71696         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
71697         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
71698         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
71699         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
71700         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
71701         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
71702         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
71703         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
71704         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
71705         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
71706         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
71707         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
71708         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
71709         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
71710         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
71711         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
71712         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
71713         Likewise.
71714
71715 2006-09-13  Eric Blake  <ebb9@byu.net>
71716
71717         * lib/getopt.c: Fix typo in last commit.
71718
71719 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71720
71721         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
71722         dgettext.
71723
71724 2006-09-12  Jim Meyering  <jim@meyering.net>
71725
71726         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
71727         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
71728         Reported by Nelson H. F. Beebe.
71729
71730 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71731
71732         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
71733         program_invocation_name and program_invocation_short_name are
71734         initialized.
71735         * lib/argp-namefrob.h: Move declarations of program_invocation_name
71736         and program_invocation_short_name to argp.h, so they are visible
71737         to user programs.
71738         * lib/argp.h: Likewise
71739
71740 2006-09-10  Bruno Haible  <bruno@clisp.org>
71741
71742         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71743         m4/inttypes_h.m4, m4/uintmax_t.m4.
71744
71745 2006-09-10  Bruno Haible  <bruno@clisp.org>
71746
71747         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
71748         gl_AC_TYPE_UINTMAX_T.
71749
71750 2006-09-10  Bruno Haible  <bruno@clisp.org>
71751
71752         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
71753
71754 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71755
71756         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
71757         convention.  Text proposed by Bruno Haible.
71758         (struct argp_option): Document the use of N_() wrappers.
71759
71760         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
71761         '\v', and translate the two parts separately, instead of feeding
71762         the whole string to gettext.  This allows to exclude
71763         '\v' from the strings visible to the translator by writing doc
71764         strings as N_("..") "\v" N_("..").
71765
71766 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * config/srclist.txt: Undo latest change; the bug was fixed.
71769
71770 2006-09-09  Bruno Haible  <bruno@clisp.org>
71771
71772         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
71773         assignments if building a library without libtool.
71774         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
71775         in func_emit_lib_Makefile_am.
71776         (func_import): When building a static library libfoo.a, arrange to
71777         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
71778         (func_create_testdir): Likewise.
71779         * modules/gc (configure.ac, Makefile.am): If building statically,
71780         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
71781         * modules/iconvme (configure.ac, Makefile.am): Likewise.
71782         * modules/striconv (configure.ac, Makefile.am): Likewise.
71783         Based on a suggestion by Ralf Wildenhues.
71784
71785 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71788         Check for unistd.h too, since Autoconf doesn't assume POSIX.
71789         Also:
71790
71791         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71792         Add year_2050_test to catch glibc bug 2821
71793         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71794
71795         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71796         Prefer #ifdef to #if.
71797
71798         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
71799         Return from 'main' instead of calling 'exit'.
71800
71801 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71802
71803         * lib/mktime.c (guess_time_tm): Fix bug where mktime
71804         returned the maximum time_t value rather than (time_t) -1.
71805         Problem originally reported by William Bardwell
71806         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71807
71808         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71809         Moved to here ...
71810         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71811         ... from here.
71812
71813 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71816         2821 is fixed.
71817
71818 2006-09-08  Jim Meyering  <jim@meyering.net>
71819
71820         Don't make generated files read-only.  That would bother too many
71821         people.  However, do retain the ability to work when targets are
71822         read-only: remove the destination and temporary files before writing
71823         them (when generated via sed or echo), or by using the -f option for
71824         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71825         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71826         * modules/byteswap, modules/configmake, modules/fcntl:
71827         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71828         * modules/localcharset, modules/netinet_in, modules/poll:
71829         * modules/stdbool, modules/stdint, modules/sys_select:
71830         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71831
71832 2006-09-08  Jim Meyering  <jim@meyering.net>
71833
71834         Avoid new build failure on FreeBSD 6.0.
71835         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71836         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71837         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71838
71839 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71840
71841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71842
71843 2006-09-07  Jim Meyering  <jim@meyering.net>
71844
71845         Fix global typo in last change: use chmod u-w, not chmod u-x.
71846         Spotted by Paul Eggert and Bruce Korb.
71847         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71848         * modules/byteswap, modules/configmake, modules/fcntl:
71849         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71850         * modules/localcharset, modules/netinet_in, modules/poll:
71851         * modules/stdbool, modules/stdint, modules/sys_select:
71852         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71853
71854 2006-09-06  Jim Meyering  <jim@meyering.net>
71855
71856         Make generated files be read-only.
71857         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71858         Ensure that each generated file is now read-only.
71859         * modules/argz: Likewise.
71860         * modules/arpa_inet: Likewise.
71861         * modules/byteswap: Likewise.
71862         * modules/configmake: Likewise.
71863         * modules/fcntl: Likewise.
71864         * modules/fnmatch: Likewise.
71865         * modules/getopt: Likewise.
71866         * modules/glob: Likewise.
71867         * modules/inttypes: Likewise.
71868         * modules/netinet_in: Likewise.
71869         * modules/poll: Likewise.
71870         * modules/stdbool: Likewise.
71871         * modules/stdint: Likewise.
71872         * modules/sys_select: Likewise.
71873         * modules/sys_socket: Likewise.
71874         * modules/sys_stat: Likewise.
71875         * modules/sysexits: Likewise.
71876         * modules/localcharset: Same as above, but continue using temporary
71877         file named "t-$@" (why different?) rather than the "$@-t" used
71878         everywhere else.
71879
71880         * modules/sysexits (Makefile.am): Replace literal occurrences
71881         of "sysexit.h" more readable, and more consistent, "$@".
71882
71883 2006-09-06  Bruno Haible  <bruno@clisp.org>
71884
71885         * modules/striconv: New file.
71886         * modules/xstriconv: New file.
71887         * MODULES.html.sh (Internationalization functions): Add striconv,
71888         xstriconv.
71889
71890 2006-09-06  Bruno Haible  <bruno@clisp.org>
71891
71892         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71893         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71894         not using libtool correctly.
71895
71896 2006-09-06  Bruno Haible  <bruno@clisp.org>
71897
71898         * lib/striconv.h: New file.
71899         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71900         iconvstring.c.
71901         * lib/xstriconv.h: New file.
71902         * lib/xstriconv.c: New file.
71903
71904 2006-09-06  Bruno Haible  <bruno@clisp.org>
71905
71906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71907         lib_..._LDFLAGS.
71908
71909 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71910
71911         * lib/argz_.h: Sync from Libtool.
71912
71913         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71914                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71915
71916         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71917
71918 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71919
71920         * modules/trim: New file.
71921
71922 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71923
71924         * lib/trim.h: New file.
71925         * lib/trim.c: New file.
71926
71927 2006-09-05  Bruno Haible  <bruno@clisp.org>
71928
71929         * MODULES.html.sh (String handling): Add trim.
71930
71931 2006-09-04  Karl Berry  <karl@gnu.org>
71932
71933         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71934         until next release.
71935
71936 2006-09-03  Bruno Haible  <bruno@clisp.org>
71937
71938         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71939         correctly.
71940
71941 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71944         not gl_GETLOADAVG.  Omit unneeded semicolons.
71945         Problems reported by Ralf Wildenhues in
71946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71947         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71948         at the end, which is the usual gnulib style.
71949
71950         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71951         of doing all the work ourselves.
71952         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71953         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71954
71955 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71956
71957         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71958         Problem reported by Ralf Wildenhues in
71959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71960
71961         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71962         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71963
71964 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71967         yesterday's patch by changing test -n to test -z.
71968
71969 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71972         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71973         the former is now obsolescent.
71974
71975         * modules/chdir-long (Depends-on): Add fcntl.
71976
71977 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71978
71979         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71980         obsolescent, and programs should use gnulib instead.
71981         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71982         but with prefixes changed.
71983
71984 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71985
71986         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71987         or stdbool.h, because they might not exist while configuring.
71988
71989         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71990         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71991         does that for us.
71992         (O_DIRECTORY): Remove.
71993
71994 2006-08-31  Eric Blake  <ebb9@byu.net>
71995
71996         * gnulib-tool: Don't let emacs change spaces to TAB.
71997
71998 2006-08-31  Bruno Haible  <bruno@clisp.org>
71999
72000         * gnulib-tool: When calling func_import more than once, do it in a
72001         subshell.
72002         Reported by Eric Blake <ebb9@byu.net>.
72003
72004 2006-08-31  Bruno Haible  <bruno@clisp.org>
72005
72006         * gnulib-tool (nl): Remove variable.
72007         (sed_transform_lib_file): Use more robust test for config-h module.
72008         (func_import): Fix typo in 2006-08-25 patch.
72009
72010 2006-08-31  Bruno Haible  <bruno@clisp.org>
72011
72012         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
72013         specified, augment Makefile.am variables instead of assigning them.
72014
72015 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         Work around a bug in both the Linux and SunOS 64-bit kernels:
72018         nanosleep mishandles sleeps for longer than 2**31 seconds.
72019         Problem reported by Frank v Waveren in
72020         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
72022         Check for nanosleep bug.
72023         (LIB_NANOSLEEP): Append clock_gettime library if needed.
72024
72025 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         Work around a bug in both the Linux and SunOS 64-bit kernels:
72028         nanosleep mishandles sleeps for longer than 2**31 seconds.
72029         Problem reported by Frank v Waveren in
72030         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72031         * lib/nanosleep.c (BILLION): New constant.
72032         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
72033         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
72034         implementation.
72035
72036 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         * modules/nanosleep (Depends-on): Add gettime.
72039
72040 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72041         and Simon Josefsson  <jas@extundo.com>
72042         and Oskar Liljeblad  <oskar@osk.mine.nu>
72043
72044         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
72045         * gnulib-tool (func_import): New license type 'unmodifiable license
72046         text'.
72047         * modules/fdl: Use it.  Longer description.
72048         * module/gpl, module/lgpl: New files.
72049
72050 2006-08-30  Jim Meyering  <jim@meyering.net>
72051
72052         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
72053         shadowing the parameter.
72054
72055 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72056
72057         Sync from Libtool:
72058
72059         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72060
72061         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
72062         sharing with gnulib.  Report by Eric Blake.
72063
72064 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * modules/isapipe: New file.
72067         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
72068
72069 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * modules/configmake (Makefile.am): Add a comment, and omit
72072         the CONFIGMAKE_ prefix from generated macro names.  Suggested
72073         by Bruno Haible.
72074
72075 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * m4/isapipe.m4: New file.
72078
72079 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * lib/isapipe.c, lib/isapipe.h: New files.
72082
72083 2006-08-29  Jim Meyering  <jim@meyering.net>
72084
72085         * modules/configmake (Makefile.am): Make configmake.h depend on
72086         Makefile.  Otherwise, a stale configmake.h could hang around.
72087
72088 2006-08-29  Eric Blake  <ebb9@byu.net>
72089
72090         * lib/error.c (error_at_line, print_errno_message): Match libc, after
72091         resolution of upstream bug 3044.
72092
72093 2006-08-29  Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/localcharset (Depends-on): Add configmake.
72096         (Makefile.am): Remove setting of LIBDIR through DEFS.
72097
72098 2006-08-29  Bruno Haible  <bruno@clisp.org>
72099
72100         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
72101         defined.
72102
72103 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72104
72105         * modules/fcntl: New file.
72106         * modules/chdir-safer (Depends-on): Add fcntl.
72107         * modules/fts: Likewise.
72108         * modules/mkdir-p: Likewise.
72109
72110         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
72111         This undoes the most recent change, since we're now addressing the
72112         problem in a different way.
72113
72114         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
72115         into output, since the output might be called Makefile.am even
72116         if $makefile_name is something different.
72117         (func_import): Use $makefile_am rather than
72118         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
72119         empty.
72120
72121         * modules/inttypes (Files): Add m4/inttypes-h.m4.
72122
72123 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72124
72125         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
72126         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
72127         recent change to stdint.m4, since we're now addressing the problem in a
72128         different way.
72129
72130 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * m4/fcntl_h.m4: New file.
72133
72134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         * lib/fcntl_.h: New file.
72137         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
72138         the fcntl module.
72139         * lib/dirchownmod.c: Likewise.
72140         * lib/fts.c: Likewise.
72141
72142         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
72143         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
72144         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
72145         just before including <inttypes.h>, to avoid circular inclusion.
72146
72147 2006-08-28  Jim Meyering  <jim@meyering.net>
72148
72149         * doc/visibility.texi: Actually read and correct the grammar of the
72150         sentence affected by yesterday's change.
72151
72152 2006-08-28  Eric Blake  <ebb9@byu.net>
72153
72154         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
72155         needs wrapper.
72156
72157 2006-08-28  Eric Blake  <ebb9@byu.net>
72158
72159         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
72160
72161 2006-08-28  Eric Blake  <ebb9@byu.net>
72162
72163         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
72164
72165 2006-08-28  Bruno Haible  <bruno@clisp.org>
72166
72167         * modules/c-strstr: New file, from GNU gettext.
72168         * MODULES.html.sh (String handling): Add c-strstr.
72169
72170 2006-08-28  Bruno Haible  <bruno@clisp.org>
72171
72172         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
72173         macros.
72174         Reported by Eric Blake.
72175
72176 2006-08-28  Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
72179         (VASNPRINTF): Return a string of length > INT_MAX without failing.
72180         * lib/vasprintf.c: Include errno.h, limits.h.
72181         (EOVERFLOW): New fallback definition.
72182         (vasprintf): Test here whether the string length is > INT_MAX.
72183         * lib/vsnprintf.c: Include errno.h, limits.h.
72184         (EOVERFLOW): New fallback definition.
72185         (vsnprintf): Fix bug when generated string was too long for the buffer.
72186         Test here whether the string length is > INT_MAX.
72187
72188 2006-08-28  Bruno Haible  <bruno@clisp.org>
72189
72190         * lib/inttypes_.h (SCNX*): Remove definitions.
72191         Reported by Eric Blake.
72192
72193 2006-08-28  Bruno Haible  <bruno@clisp.org>
72194
72195         * lib/c-strstr.h: New file, from GNU gettext.
72196         * lib/c-strstr.c: New file, from GNU gettext.
72197
72198 2006-08-28  Bruno Haible  <bruno@clisp.org>
72199
72200         * gnulib-tool: Reorder some statements.
72201
72202 2006-08-28  Bruno Haible  <bruno@clisp.org>
72203
72204         * gnulib-tool: New option --makefile-name.
72205         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
72206         $makefile_name.
72207         (func_import): Write $makefile_name to the cache file, and read it from
72208         there unless explicitly specified. Use $makefile_name as file name
72209         instead of Makefile.am. Adjust the recommendations accordingly.
72210
72211 2006-08-28  Bruno Haible  <bruno@clisp.org>
72212
72213         * gnulib-tool (func_verify_module): Check against misapplying patch.
72214
72215 2006-08-28  Bruno Haible  <bruno@clisp.org>
72216
72217         * gnulib-tool (func_relativize, func_relconcat): New functions.
72218         Give an error if --local-dir is given with --update.
72219         Remove trailing slashes from $local_gnulib_dir.
72220         (func_import): Store the relativized $local_gnulib_dir in
72221         gnulib-cache.m4, and read it from there if not specified explicitly.
72222
72223 2006-08-28  Bruno Haible  <bruno@clisp.org>
72224
72225         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
72226         is the current directory. Respect also $local_gnulib_dir.
72227
72228 2006-08-28  Bruno Haible  <bruno@clisp.org>
72229             Simon Josefsson  <jas@extundo.com>
72230
72231         BeOS portability.
72232         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
72233
72234 2006-08-27  Jim Meyering  <jim@meyering.net>
72235
72236         * doc/visibility.texi: Remove duplicate word: "pointer".
72237
72238 2006-08-26  Bruno Haible  <bruno@clisp.org>
72239
72240         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
72241         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
72242         (Makefile.am): Create inttypes.h from inttypes_.h.
72243         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
72244
72245         * modules/imaxabs: New file.
72246
72247         * modules/imaxdiv: New file.
72248
72249 2006-08-26  Bruno Haible  <bruno@clisp.org>
72250
72251         * m4/inttypes.m4: New file.
72252         * m4/_inttypes_h.m4: Remove file.
72253         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
72254         PRI_MACROS_BROKEN.
72255         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
72256
72257         * m4/imaxabs.m4: New file.
72258
72259         * m4/imaxdiv.m4: New file.
72260
72261 2006-08-26  Bruno Haible  <bruno@clisp.org>
72262
72263         * lib/inttypes_.h: New file.
72264         * lib/inttypes.h: Remove file.
72265         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
72266
72267         * lib/imaxabs.c: New file.
72268
72269         * lib/imaxdiv.c: New file.
72270
72271 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         New config-h module, so that "make" output needn't be cluttered
72274         by -DHAVE_CONFIG_H.
72275         * MODULES.html.sh (Support for building libraries and executables):
72276         Add config-h.
72277         * modules/config-h: New file.
72278         * gnulib-tool (nl, sed_transform_lib_file): New vars.
72279         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
72280         the config-h module is used.
72281
72282         New configmake module, so that "make" output needn't be cluttered
72283         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
72284         * MODULES.html.sh (Support for building libraries and executables):
72285         Add configmake.
72286         * modules/configmake: New file.
72287
72288 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * m4/config-h.m4: New file.
72291
72292 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * config/srclist.txt: Add elisp-comp.
72295
72296 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         * MODULES.html.sh (Support for building libraries and executables):
72299         Add elisp-comp.
72300         * build-aux/elisp-comp: New file.
72301         * modules/elisp-comp: New file.
72302
72303 2006-08-24  Bruno Haible  <bruno@clisp.org>
72304
72305         * gnulib-tool (func_create_testdir): Use non-default values of
72306         sourcebase and m4base.
72307
72308 2006-08-24  Bruno Haible  <bruno@clisp.org>
72309
72310         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
72311         HTML structure.
72312
72313 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72314
72315         * modules/openat (Depends-on): Add lchown.
72316
72317 2006-08-23  Bruno Haible  <bruno@clisp.org>
72318
72319         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
72320         of gl_LOCK_EARLY instead of gl_LOCK.
72321
72322 2006-08-23  Bruno Haible  <bruno@clisp.org>
72323
72324         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
72325         on OSF/1 to no.
72326         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
72327
72328 2006-08-23  Bruno Haible  <bruno@clisp.org>
72329
72330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
72331         as unusable.
72332
72333         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
72334         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
72335         (gl_LOCK): New macro.
72336
72337 2006-08-22  Simon Josefsson  <jas@extundo.com>
72338
72339         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
72340         to md5 module.
72341
72342 2006-08-22  Simon Josefsson  <jas@extundo.com>
72343
72344         * MODULES.html.sh: Add "Support for maintaining and release
72345         projects".
72346
72347         * build-aux/gnupload: New file, from coreutils.
72348
72349 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         Avoid the need for AC_LIBSOURCES in m4 macros.
72352         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
72353         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
72354         * modules/check-version (EXTRA_DIST): Add check-version.h.
72355         * modules/crc (EXTRA_DIST): Add crc.h.
72356         * modules/des (EXTRA_DIST): Add des.h.
72357         * modules/gc (EXTRA_DIST): Add gc.h.
72358         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
72359         * modules/getline (EXTRA_DIST): Add getline.h.
72360         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
72361         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
72362         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
72363         * modules/md2 (EXTRA_DIST): Add md2.h.
72364         * modules/md4 (EXTRA_DIST): Add md4.h.
72365         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
72366         * modules/read-file (EXTRA_DIST): Add read-file.h.
72367         * modules/readline (EXTRA_DIST): Add readline.h.
72368         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
72369         rijndael-api-fst.h.
72370
72371 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * m4/rijndael.m4 (gl_ARCFOUR):
72374         * m4/arctwo.m4 (gl_ARCTWO):
72375         * m4/check-version.m4 (gl_CHECK_VERSION):
72376         * m4/crc.m4 (gl_CRC):
72377         * m4/des.m4 (gl_DES):
72378         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
72379         * m4/gc.m4 (gl_GC):
72380         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
72381         * m4/getline.m4 (gl_FUNC_GETLINE):
72382         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
72383         * m4/hmac-md5.m4 (gl_HMAC_MD5):
72384         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
72385         * m4/md2.m4 (gl_MD2):
72386         * m4/md4.m4 (gl_MD4):
72387         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
72388         * m4/read-file.m4 (gl_FUNC_READ_FILE):
72389         * m4/readline.m4 (gl_FUNC_READLINE):
72390         * m4/rijndael.m4 (gl_RIJNDAEL):
72391         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72392         to get the necessary .h files and whatnot.
72393
72394 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72395
72396         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
72397         gnulib rather than the other way around.
72398         * config/srclistvars.sh (COREUTILS): Remove.
72399
72400 2006-08-22  Jim Meyering  <jim@meyering.net>
72401
72402         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
72403
72404         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
72405
72406 2006-08-22  Eric Blake  <ebb9@byu.net>
72407
72408         * modules/regexprops-generic: New file.
72409         * MODULES.html.sh (Support for building documentation): List it.
72410
72411 2006-08-22  Eric Blake  <ebb9@byu.net>
72412
72413         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
72414         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
72415         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
72416         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
72417
72418 2006-08-22  Bruno Haible  <bruno@clisp.org>
72419
72420         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
72421         and lib_LTLIBRARIES like the other lib_* variables.
72422
72423 2006-08-22  Bruno Haible  <bruno@clisp.org>
72424
72425         * build-aux/x-to-1.in: New file, from GNU gettext.
72426
72427 2006-08-22  Bruno Haible  <bruno@clisp.org>
72428
72429         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
72430         <utmpx.h> exists.
72431
72432 2006-08-22  Bruno Haible  <bruno@clisp.org>
72433
72434         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
72435         <utmpx.h> exists.
72436
72437 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         BeOS portability.
72440         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
72441         exist.
72442         Problem reported by Bruno Haible.
72443
72444 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         Avoid the need for AC_LIBSOURCES in m4 macros.
72447         * modules/acl (EXTRA_DIST): Add acl.h.
72448         * modules/argmatch (Files): Add m4/argmatch.m4.
72449         (configure.ac): Add gl_ARGMATCH.
72450         (EXTRA_DIST): Renamed from lib_SOURCES, for
72451         consistency with the other modules.  Remove argmatch.c.
72452         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
72453         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
72454         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
72455         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
72456         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
72457         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
72458         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
72459         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
72460         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
72461         * modules/closeout (EXTRA_DIST): Add closeout.h.
72462         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
72463         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
72464         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
72465         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
72466         dirname.h; remove basename.c and stripslash.c.
72467         * modules/exclude (EXTRA_DIST): Add exclude.h.
72468         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
72469         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
72470         * modules/file-type (EXTRA_DIST): Add file-type.h.
72471         * modules/filemode (EXTRA_DIST): Add filemode.h.
72472         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
72473         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72474         * modules/fpending (EXTRA_DIST): Add __fpending.h.
72475         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
72476         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
72477         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
72478         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
72479         * modules/getdate (EXTRA_DIST): Add getdate.c.
72480         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
72481         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
72482         * modules/getpass (EXTRA_DIST): Add getpass.h.
72483         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
72484         * modules/group-member (EXTRA_DIST): Add group-member.h.
72485         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
72486         * modules/hash (EXTRA_DIST): Add hash.h.
72487         * modules/human (EXTRA_DIST): Add human.h.
72488         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
72489         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
72490         * modules/lchown (EXTRA_DIST): Add lchown.h.
72491         * modules/long-options (EXTRA_DIST): Add long-options.h.
72492         * modules/lstat (EXTRA_DIST): Add lstat.h.
72493         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
72494         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
72495         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
72496         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
72497         * modules/memxor (EXTRA_DIST): Add memxor.h.
72498         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
72499         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
72500         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
72501         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
72502         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
72503         * modules/physmem (EXTRA_DIST): Add physmem.h.
72504         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
72505         * modules/posixver (EXTRA_DIST): Add posixver.h.
72506         * modules/quote (EXTRA_DIST): Add quote.h.
72507         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
72508         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
72509         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
72510         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
72511         regex_internal.h regexec.c.
72512         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
72513         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
72514         * modules/same (EXTRA_DIST): Add same.h.
72515         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
72516         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
72517         * modules/savedir (EXTRA_DIST): Add savedir.h.
72518         * modules/sha1 (EXTRA_DIST): Add sha1.h.
72519         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
72520         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
72521         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
72522         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
72523         * modules/strdup (EXTRA_DIST): Add strdup.h.
72524         * modules/strftime (EXTRA_DIST): Add strftime.h.
72525         * modules/strndup (EXTRA_DIST): Add strndup.h.
72526         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
72527         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
72528         * modules/time_r (EXTRA_DIST): Add time_r.h.
72529         * modules/timespec (EXTRA_DIST): Add timespec.h.
72530         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72531         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
72532         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
72533         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
72534         * modules/userspec (EXTRA_DIST): Add userspec.h.
72535         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
72536         * modules/utimens (EXTRA_DIST): Add utimens.h.
72537         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
72538         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
72539         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
72540         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
72541         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
72542         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
72543         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
72544         * modules/yesno (EXTRA_DIST): Add yesno.h.
72545
72546 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72547
72548         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
72549
72550         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
72551         * m4/dev-ino.m4, same-inode.m4: Remove.
72552
72553         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
72554         * m4/acl.m4 (AC_FUNC_ACL):
72555         * m4/backupfile.m4 (gl_BACKUPFILE):
72556         * m4/c-strtod.m4 (gl_C99_STRTOLD):
72557         * m4/canon-host.m4 (gl_CANON_HOST):
72558         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72559         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
72560         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
72561         * m4/cloexec.m4 (gl_CLOEXEC):
72562         * m4/close-stream.m4 (gl_CLOSE_STREAM):
72563         * m4/closeout.m4 (gl_CLOSEOUT):
72564         * m4/dirfd.m4 (gl_FUNC_DIRFD):
72565         * m4/dirname.m4 (gl_DIRNAME):
72566         * m4/exclude.m4 (gl_EXCLUDE):
72567         * m4/exitfail.m4 (gl_EXITFAIL):
72568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
72569         * m4/file-type.m4 (gl_FILE_TYPE):
72570         * m4/filemode.m4 (gl_FILEMODE):
72571         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
72572         * m4/fpending.m4 (gl_FUNC_FPENDING):
72573         * m4/fprintftime.m4 (gl_FPRINTFTIME):
72574         * m4/fts.m4 (gl_FUNC_FTS):
72575         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
72576         * m4/getdate.m4 (gl_GETDATE):
72577         * m4/gethrxtime.m4 (gl_GETHRXTIME):
72578         * m4/getpagesize.m4 (gl_GETPAGESIZE):
72579         * m4/getpass.m4 (gl_FUNC_GETPASS):
72580         * m4/gettime.m4 (gl_GETTIME):
72581         * m4/getugroups.m4 (gl_GETUGROUPS):
72582         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
72583         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
72584         * m4/hard-locale.m4 (gl_HARD_LOCALE):
72585         * m4/hash.m4 (gl_HASH):
72586         * m4/idcache.m4 (gl_IDCACHE):
72587         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
72588         * m4/lchown.m4 (gl_FUNC_LCHOWN):
72589         * m4/long-options.m4 (gl_LONG_OPTIONS):
72590         * m4/lstat.m4 (gl_FUNC_LSTAT):
72591         * m4/md5.m4 (gl_MD5):
72592         * m4/memcasecmp.m4 (gl_MEMCASECMP):
72593         * m4/memcoll.m4 (gl_MEMCOLL):
72594         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
72595         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
72596         * m4/memxor.m4 (gl_MEMXOR):
72597         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
72598         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
72599         * m4/modechange.m4 (gl_MODECHANGE):
72600         * m4/mountlist.m4 (gl_MOUNTLIST):
72601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72602         * m4/openat.m4 (gl_FUNC_OPENAT):
72603         * m4/pathmax.m4 (gl_PATHMAX):
72604         * m4/physmem.m4 (gl_PHYSMEM):
72605         * m4/posixtm.m4 (gl_POSIXTM):
72606         * m4/posixver.m4 (gl_POSIXVER):
72607         * m4/quote.m4 (gl_QUOTE):
72608         * m4/quotearg.m4 (gl_QUOTEARG):
72609         * m4/readtokens.m4 (gl_READTOKENS):
72610         * m4/readutmp.m4 (gl_READUTMP):
72611         * m4/regex.m4 (gl_REGEX):
72612         * m4/safe-read.m4 (gl_SAFE_READ):
72613         * m4/safe-write.m4 (gl_SAFE_WRITE):
72614         * m4/same.m4 (gl_SAME):
72615         * m4/save-cwd.m4 (gl_SAVE_CWD):
72616         * m4/savedir.m4 (gl_SAVEDIR):
72617         * m4/settime.m4 (gl_SETTIME):
72618         * m4/sha1.m4 (gl_SHA1):
72619         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
72620         * m4/stat-macros.m4 (gl_STAT_MACROS):
72621         * m4/stat-time.m4 (gl_STAT_TIME):
72622         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
72623         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
72624         * m4/strdup.m4 (gl_FUNC_STRDUP):
72625         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
72626         * m4/strndup.m4 (gl_FUNC_STRNDUP):
72627         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
72628         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
72629         * m4/time_r.m4 (gl_TIME_R):
72630         * m4/timespec.m4 (gl_TIMESPEC):
72631         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
72632         * m4/unlinkdir.m4 (gl_UNLINKDIR):
72633         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
72634         * m4/userspec.m4 (gl_USERSPEC):
72635         * m4/utimecmp.m4 (gl_UTIMECMP):
72636         * m4/utimens.m4 (gl_UTIMENS):
72637         * m4/xalloc.m4 (gl_XALLOC):
72638         * m4/xgetcwd.m4 (gl_XGETCWD):
72639         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
72640         * m4/xreadlink.m4 (gl_XREADLINK):
72641         * m4/xstrtod.m4 (gl_XSTRTOD):
72642         * m4/yesno.m4 (gl_YESNO):
72643         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72644         to get the necessary .h files and whatnot.
72645
72646 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
72647             Bruno Haible  <bruno@clisp.org>
72648
72649         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
72650         /bin/sh understanding of '!' conditional negation.
72651
72652 2006-08-21  Jim Meyering  <jim@meyering.net>
72653
72654         * modules/openat (Depends-on): Really alphabetize.
72655
72656         * modules/acl (Depends-on): Add error and quote.
72657
72658         * check-module (find_included_lib_files): Add at-func.c to the
72659         ok-to-include-more-than-once white list.
72660
72661         * modules/openat (Depends-on): Add lstat.  Alphabetize.
72662
72663 2006-08-21  Bruno Haible  <bruno@clisp.org>
72664
72665         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72666         Emit a pkgdata_DATA variable only if some snippets add contents to it.
72667         Reported by Martin Lambers <marlam@marlam.de>.
72668
72669 2006-08-21  Bruno Haible  <bruno@clisp.org>
72670
72671         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
72672         specify an installation location, don't emit a noinst_LIBRARIES or
72673         noinst_LTLIBRARIES assignment.
72674
72675 2006-08-21  Bruno Haible  <bruno@clisp.org>
72676
72677         BeOS portability.
72678         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
72679         BeOS has mbrtowc() but no <wctype.h>.
72680
72681 2006-08-21  Bruno Haible  <bruno@clisp.org>
72682
72683         BeOS portability.
72684         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
72685         exist.
72686
72687 2006-08-21  Bruno Haible  <bruno@clisp.org>
72688
72689         BeOS portability.
72690         * lib/mbchar.h: Include <wctype.h> only if it exists.
72691
72692 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         Remove files that are no longer needed by their respective modules.
72695         * m4/obstack.m4: Remove.
72696         * m4/strerror_r.m4: Remove.
72697         * m4/uint32_t.m4: Remove.
72698         * m4/uintptr_t.m4: Remove.
72699         * m4/ullong_max.m4: Remove.
72700         * m4/xstrtoimax.m4: Remove.
72701         * m4/xstrtoumax.m4: Remove.
72702
72703         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
72704         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
72705         dependencies now capture this.
72706
72707         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
72708         Do not use AC_LIBSOURCES, since gnulib modules now do this.
72709         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
72710         * m4/human.m4 (gl_HUMAN): Likewise.
72711         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
72712         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
72713
72714         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
72715
72716         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
72717         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
72718         stdint.
72719         * m4/human.m4 (gl_HUMAN): Likewise.
72720         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
72721         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
72722         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72723         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72724         * m4/xstrtol (gl_XSTRTOL): Likewise.
72725
72726         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
72727         AC_TYPE_LONG_LONG_INT.
72728         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72729         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
72730         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
72731         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72732
72733         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
72734         on stdbool.
72735
72736         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
72737         (gl_PREREQ_XSTRTOUL): Remove.
72738
72739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
72740
72741         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
72742         mode.
72743
72744 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         Add and change modules to make it easier for coreutils to use
72747         gnulib-tool.
72748         * modules/backupfile (Files): Remove m4/d-ino.m4.
72749         (Depends-on): Add d-ino.
72750         * modules/cycle-check (Depends-on): Add stdint.
72751         (lib_SOURCES): Add cycle-check.h.
72752         * modules/d-ino: New module.
72753         * modules/d-type: New module.
72754         * modules/error (Files): Remove m4/strerror_r.m4.
72755         * modules/filemode (Files): Add m4/st_dm_mode.m4.
72756         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72757         m4/inttypes_h.m4, m4/uintmax_t.m4.
72758         (Depends-on): Add stdint.
72759         (lib_SOURCES): Add fsusage.h.
72760         * modules/getcwd (Files): Remove d-ino.m4.
72761         (Depends-on): Add d-ino.
72762         * modules/getndelim2 (Depends-on): Add stdint.
72763         * modules/glob (Files): Remove m4/d-type.m4.
72764         (Depends-on): Add d-type.
72765         * modules/host-os: New module.
72766         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
72767         m4/inttypes_h.m4, m4/uintmax_t.m4.
72768         * Depends-on: Add stdint.
72769         (lib_SOURCES): Add human.h.
72770         * modules/inttostr (Files): Remove m4/intmax_t.m4,
72771         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
72772         m4/uintmax_t.m4, m4/ulonglong.m4.
72773         (Depends-on): Add stdint.
72774         (EXTRA_DIST): Add inttostr.h.
72775         * modules/lchmod: New module.
72776         * modules/link-follow: New module.
72777         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
72778         (Depends-on): Add lchmod.
72779         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
72780         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
72781         (Depends-on): Add stdint.
72782         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
72783         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
72784         (Depends-on): Add stdint.
72785         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
72786         * modules/perl: New module.
72787         * modules/regex (Depends-on): Add stdint.
72788         * modules/rmdir-errno: New module.
72789         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72790         m4/intmax_t.m4.
72791         (Depends-on): Add stdint.
72792         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72793         m4/uintmax_t.m4.
72794         (Depends-on): Add stdint.
72795         * modules/unlink-busy: New module.
72796         * modules/utimecmp (Depends-on): Add stdint.
72797         * modules/uptime: New module.
72798         * modules/winsz-ioctl: New module.
72799         * modules/winsz-termios: New module.
72800         * modules/xnanosleep (Depends-on): Add nanosleep.
72801         * modules/ullong_max: Remove.
72802         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
72803         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
72804         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
72805         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72806         (Depends-on): Add inttypes.
72807         (lib_SOURCES): Add xstrtol.h.
72808         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72809         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72810         * MODULES.html.sh: Move 'assert' into the assert section.
72811         Move 'dummy' into the linking section.
72812         Remove ullong_max.
72813         Add section for compatibility checks for POSIX:2001 functions,
72814         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72815         winsz-ioctl, and winsz-termios into it.
72816         Add lchmod.
72817         Add top-level Misc section and put host-os, perl, and uptime
72818         into it.
72819
72820 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72821
72822         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72823         now assume the stdint module.  Do not include inttypes.h.
72824         * lib/fsusage.h: Likewise.
72825         * lib/getndelim2.c: Likewise.
72826         * lib/human.h: Likewise.
72827         * lib/inttostr.h: Likewise.
72828         * lib/obstack.c: Likewise.
72829         * lib/regex_internal.h: Likewise.
72830         * lib/tempname.c: Likewise.
72831         * lib/utimecmp.c: Likewise.
72832         * lib/xstrtol.h: Likewise.
72833
72834         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72835
72836         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72837         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72838         * lib/xtime.h: Likewise.
72839
72840 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * modules/openat (Files): Add lib/fchmodat.c.
72843         Fixes problem reported by Jay Youngman.
72844
72845 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72846
72847         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72848         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72849
72850 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72851             Bruno Haible  <bruno@clisp.org>
72852
72853         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72854         and is a script that invokes bison. Tighten the code. Add comments.
72855
72856 2006-08-18  Jim Meyering  <jim@meyering.net>
72857
72858         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72859         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72860         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72861         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72862
72863 2006-08-18  Bruno Haible  <bruno@clisp.org>
72864
72865         * modules/bison-i18n: New file.
72866         * MODULES.html.sh (Internationalization functions): Add it.
72867
72868 2006-08-18  Bruno Haible  <bruno@clisp.org>
72869
72870         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72871         sys/statvfs.h. When getmntinfo was found, check its declaration and
72872         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72873
72874 2006-08-18  Bruno Haible  <bruno@clisp.org>
72875
72876         * m4/bison-i18n.m4: New file, from bison.
72877
72878 2006-08-18  Bruno Haible  <bruno@clisp.org>
72879
72880         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72881         (ME_DUMMY): Treat "kernfs" as a dummy.
72882         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72883
72884 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         Update from coreutils.
72887
72888         2006-08-15  Jim Meyering  <jim@meyering.net>
72889
72890         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72891
72892         2006-01-17  Jim Meyering  <jim@meyering.net>
72893
72894         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72895
72896         2006-01-11  Jim Meyering  <jim@meyering.net>
72897
72898         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72899         Check for the lchmod function.
72900
72901 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72902
72903         Update from coreutils.
72904
72905         * lib/__fpending.h: Add copyright notice.
72906         * lib/fprintftime.h: Likewise.
72907         * lib/savedir.c: Use (C) in copyright notice.
72908         * lib/savedir.h: Likewise.
72909
72910         2006-08-15  Jim Meyering  <jim@meyering.net>
72911
72912         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72913         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72914         in support of the EXPECTED_ERRNO macro.
72915         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72916         definitions.  Instead, define the appropriate symbols and include
72917         "at-func.c".
72918         * lib/mkdirat.c (mkdirat): Likewise.
72919         * lib/fchmodat.c (fchmodat): Likewise.
72920         (ENOSYS): Remove definition.
72921         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72922         it.  Don't include "unistd--.h" -- it wasn't ever used.
72923
72924         2006-01-17  Jim Meyering  <jim@meyering.net>
72925
72926         Rewrite fts.c not to change the current working directory,
72927         by using openat, fstatat, fdopendir, etc..
72928
72929         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72930         (HAVE_OPENAT_SUPPORT): Define.
72931         [_LIBC] (fchdir): Don't undef or define; no longer used.
72932         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72933         Now, this `function' always succeeds, and consumes its file descriptor
72934         parameter -- so callers must not close such FDs.  Update callers.
72935         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72936         (diropen): Add parameter, SP.  Adjust all callers.
72937         Implement using diropen_fd, rather than open.
72938         (fts_open): Initialize new member, fts_cwd_fd.
72939         Remove fts_rft-setting code.
72940         (fts_close): Close fts_cwd_fd, if necessary.
72941         (__opendir2): Define in terms of opendir or opendirat,
72942         depending on whether the FST_NOCHDIR flag is set.
72943         (fts_build): Since fts_safe_changedir consumes its FD, and since
72944         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72945         and close the dup'd file descriptor upon failure.
72946         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72947         (fts_safe_changedir): Tweak semantics to reflect that this function
72948         now calls cwd_advance_fd and hence consumes its FD argument.
72949         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72950         [struct FTS] (fts_rft): Remove now-unused member.
72951         [struct FTS] (fts_cycle.state): Improve comment.
72952
72953         * lib/openat.c (openat_needs_fchdir): New function.
72954         * lib/openat.h (openat_needs_fchdir): Declare it.
72955
72956 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72959         Problem and fix reported by Pádraig Brady in
72960         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72961
72962 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72965
72966 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * lib/memcoll.c (memcoll): Optimize for the common case where the
72969         arguments are bytewise equal.
72970
72971 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72972
72973         * doc/regexprops-generic.texi: Add a copyright notice.
72974
72975 2006-08-15  Bruno Haible  <bruno@clisp.org>
72976
72977         * modules/tmpdir (License): Change to LGPL.
72978
72979 2006-08-15  Bruno Haible  <bruno@clisp.org>
72980
72981         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72982         module.
72983
72984 2006-08-14  Simon Josefsson  <jas@extundo.com>
72985
72986         * config/srclist.txt: Add gnupload.
72987
72988 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         Change copyright notice from LGPL 2 to GPL 2, since that's the
72991         standard form used in the gnulib repository.
72992         * tests/test-lock.c: Likewise.
72993         * tests/test-stdint.c: Likewise.
72994         * tests/test-tls.c: Likewise.
72995
72996         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72997         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72998         Add copyright notice.
72999
73000         * check-module: Add copyright notice.  Output a copyright
73001         notice if "--version" is specified.
73002         * modules/COPYING: New file.
73003         * tests/test-getaddrinfo.c: Add copyright notice.
73004         * tests/test-verify.c: Likewise.
73005
73006 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         Change copyright notice from LGPL 2 to GPL 2, since that's the
73009         standard form used in the gnulib repository.
73010         * lib/lock.c: LGPL -> GPL.
73011         * lib/lock.h: Likewise.
73012         * lib/strnlen1.c: Likewise.
73013         * lib/strnlen1.h: Likewise.
73014         * lib/tls.c: Likewise.
73015         * lib/tls.h: Likewise.
73016         * lib/tmpdir.c: Likewise.
73017
73018         * lib/TODO: Remove; this belongs only in coreutils.
73019
73020 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         Add copyright notices to long-enough files that lack them, since
73023         otherwise the files aren't clearly free.  Use the same notice that
73024         getdate.texi already uses.
73025         * doc/alloca-opt.texi: Add copyright notice.
73026         * doc/alloca.texi: Likewise.
73027         * doc/ctime.texi: Likewise.
73028         * doc/functions.texi: Likewise.
73029         * doc/gcd.texi: Likewise.
73030         * doc/gnulib-tool.texi: Likewise.
73031         * doc/inet_ntoa.texi: Likewise.
73032         * doc/visibility.texi: Likewise.
73033
73034         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
73035         * doc/quote.texi: Add copyright notice.
73036
73037         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
73038         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
73039         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
73040         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
73041         is now obsolete, and give a pointer to the Sun list.
73042         Add copyright notice.
73043
73044 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * config/srclistvars.sh: Add copyright notice.
73047
73048 2006-08-14  Eric Blake  <ebb9@byu.net>
73049
73050         Import the following change from libc:
73051
73052         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
73053
73054         Upstream bug 2997.
73055         * lib/misc/error.c: Add space between program name and message if file
73056         name is missing.
73057
73058 2006-08-12  Karl Berry  <karl@gnu.org>
73059
73060         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
73061         remove, these originate in gnulib now.
73062
73063 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73064
73065         * doc/Makefile (standards.info standards.html standards.dvi):
73066         Also depend on make-stds.texi.
73067
73068 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
73071         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
73072
73073         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
73074         in wchar_t.  Problem reported by Eric Blake.
73075
73076         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
73077         LEN is smaller than SIZE.  Suggested by Bruno Haible.
73078         Also, help the compiler to keep LEN in a register.
73079
73080 2006-08-11  Eric Blake  <ebb9@byu.net>
73081
73082         * users.txt: Sort.  Add tar.
73083
73084 2006-08-11  Bruno Haible  <bruno@clisp.org>
73085
73086         * users.txt: New file.
73087
73088 2006-08-11  Bruno Haible  <bruno@clisp.org>
73089
73090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
73091         before <wchar.h>. Needed for OSF/1 and BSD/OS.
73092
73093 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73094
73095         * modules/snprintf (Depends-on): Remove minmax.
73096         (Maintainer): Add self and Bruno.
73097
73098 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73099
73100         * lib/.cppi-disable: Add snprintf.h, socket_.h.
73101         * lib/snprintf.c: Include <errno.h> and <limits.h>.
73102         (EOVERFLOW): Define if the system does not.
73103         Do not include "minmax.h"; it wasn't used.
73104         (snprintf): Don't assume size_t promotes to an unsigned type.
73105         Fix bug when generated string was too long for the buffer: the
73106         buffer's contents are supposed to be the initial prefix of the
73107         output.  Don't assume vasnprintf returns EOVERFLOW if the size
73108         exceeds INT_MAX; do the check ourselves.
73109
73110         Import the following changes from libc:
73111
73112         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
73113
73114         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
73115         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
73116         set wc to the byte which couldn't be converted.
73117         (re_string_reconstruct): Don't clear valid_raw_len before calling
73118         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
73119         tip_context using re_string_context_at.
73120
73121         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
73122
73123         * lib/posix/regex.h: g++ still cannot handled [restrict].
73124
73125         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
73126
73127         * lib/posix/regex.h: Remove special handling for VMS.
73128
73129 2006-08-10  Jim Meyering  <jim@meyering.net>
73130
73131         * modules/same-inode: New module.
73132         * modules/dev-ino: New module.
73133         * modules/cycle-check: Depend on these modules, rather than simply
73134         including their .h files.
73135         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
73136         required via m4/cycle-check.m4.
73137         * modules/same: Depend on new same-inode module, rather than
73138         including same-inode.h.
73139         * modules/chdir-safer: New file.
73140
73141         * modules/chown (Depends-on): Add stat-macros.
73142
73143 2006-08-10  Jim Meyering  <jim@meyering.net>
73144
73145         * m4/cycle-check.m4: New file.
73146         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
73147         * m4/dev-ino.m4, m4/same-inode.m4: New files.
73148
73149 2006-08-10  Eric Blake  <ebb9@byu.net>
73150
73151         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
73152         in from original proposal.
73153
73154 2006-08-10  Eric Blake  <ebb9@byu.net>
73155         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73156
73157         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
73158         namespace.
73159
73160 2006-08-10  Bruno Haible  <bruno@clisp.org>
73161
73162         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
73163         as well.
73164
73165 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         Sync from coreutils.
73168
73169         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
73170
73171         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
73172         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
73173
73174 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * modules/restrict: Remove; no longer needed now that we assume
73177         Autoconf 2.59 or later.
73178         * MODULES.html.sh: Remove 'restrict'.
73179         * modules/argp (Depends-on): Remove 'restrict'.
73180         * modules/base64 (Depends-on): Likewise.
73181         * modules/gc (Depends-on): Likewise.
73182         * modules/getaddrinfo (Depends-on): Likewise.
73183         * modules/glob (Depends-on): Likewise.
73184         * modules/inet_ntop (Depends-on): Likewise.
73185         * modules/inet_pton (Depends-on): Likewise.
73186         * modules/memxor (Depends-on): Likewise.
73187         * modules/regex (Depends-on): Likewise.
73188         * modules/strtok_r (Depends-on): Likewise.
73189         * modules/time_r (Depends-on): Likewise.
73190
73191 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
73194         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
73195         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73196         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
73197         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
73198         * m4/memxor.m4 (gl_MEMXOR): Likewise.
73199         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
73200         gl_C_RESTRICT replaced by AC_C_RESTRICT.
73201
73202         Merge from coreutils.
73203         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
73204         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
73205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73206         * m4/time_r.m4 (gl_TIME_R): Likewise.
73207
73208 2006-08-09  Karl Berry  <karl@gnu.org>
73209
73210         * config/srclist.txt: no more gettext-tools, per Bruno.
73211
73212 2006-08-08  Eric Blake  <ebb9@byu.net>
73213
73214         * modules/verror: New module.
73215         * MODULES.html.sh: Document it.
73216
73217 2006-08-08  Eric Blake  <ebb9@byu.net>
73218
73219         * lib/verror.h, lib/verror.c: New files.
73220
73221 2006-08-08  Eric Blake  <ebb9@byu.net>
73222
73223         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
73224         verror_at_line output complies with GNU Coding Standards even when
73225         file is NULL.
73226
73227 2006-08-07  Bruno Haible  <bruno@clisp.org>
73228
73229         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
73230         versions of AIX.
73231         Reported by Ralf Wildenhues.
73232
73233 2006-08-07  Bruno Haible  <bruno@clisp.org>
73234
73235         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
73236         in an AC_DEFUN. Needed so that the autoconf snippets can use
73237         AC_REQUIRE.
73238
73239 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73240
73241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73242         Initialize pkgdata_DATA.
73243         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
73244         overriding it.
73245
73246 2006-08-06  Eric Blake  <ebb9@byu.net>
73247
73248         * lib/error.h: Fold in some upstream changes from glibc.
73249         * lib/error.c: Likewise.
73250
73251 2006-08-04  Bruno Haible  <bruno@clisp.org>
73252
73253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73254         Make the mostlyclean-local rule depend on mostlyclean-generic.
73255         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
73256
73257 2006-07-31  Bruno Haible  <bruno@clisp.org>
73258
73259         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
73260         <stdlib.h>, <string.h>.
73261
73262 2006-07-30  Bruno Haible  <bruno@clisp.org>
73263
73264         * modules/readlink (License): Change to LGPL.
73265
73266 2006-07-30  Bruno Haible  <bruno@clisp.org>
73267
73268         * modules/javaversion (Makefile.am): Distribute javaversion.java and
73269         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
73270         set PKGDATADIR to point to it.
73271
73272 2006-07-30  Bruno Haible  <bruno@clisp.org>
73273
73274         * modules/csharpexec (configure.ac): Comment out macro invocation.
73275         * modules/javaexec (configure.ac): Likewise.
73276         * modules/javacomp-script (configure.ac): Likewise.
73277
73278         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
73279
73280 2006-07-30  Bruno Haible  <bruno@clisp.org>
73281
73282         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
73283         linked-list.
73284
73285 2006-07-30  Bruno Haible  <bruno@clisp.org>
73286
73287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
73288
73289 2006-07-30  Bruno Haible  <bruno@clisp.org>
73290
73291         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73292         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
73293         get removed.
73294
73295 2006-07-29  Bruno Haible  <bruno@clisp.org>
73296
73297         Make it possible for gnulib-tool to work with locally modified or
73298         augmented gnulib repositories.
73299         * gnulib-tool (func_usage): Document --local-dir option.
73300         (local_gnulib_dir): New variable.
73301         Handle --local-dir option.
73302         (func_lookup_file): New function.
73303         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
73304         (func_get_description, func_get_filelist, func_get_description,
73305         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
73306         func_get_automake_snippet, func_get_include_directive,
73307         func_get_license, func_get_maintainer): Use func_lookup_file.
73308         (func_import, func_create_testdir): Use func_lookup_file.
73309
73310 2006-07-29  Bruno Haible  <bruno@clisp.org>
73311
73312         * modules/setenv (Depends-on): Add unistd.
73313
73314 2006-07-29  Bruno Haible  <bruno@clisp.org>
73315
73316         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
73317
73318 2006-07-29  Bruno Haible  <bruno@clisp.org>
73319
73320         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
73321
73322 2006-07-29  Bruno Haible  <bruno@clisp.org>
73323
73324         * gnulib-tool (import, update): If there is no Makefile.am, look at
73325         aclocal.m4, instead of bailing out.
73326
73327 2006-07-29  Bruno Haible  <bruno@clisp.org>
73328
73329         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
73330         Categorize the options by when they are useful.
73331
73332 2006-07-29  Bruno Haible  <bruno@clisp.org>
73333
73334         * gnulib-tool (func_usage): Document option --no-libtool.
73335         Handle option --no-libtool.
73336         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
73337         for changed semantics of $libtool variable.
73338         (func_import): Likewise. If libtool is not used, show this through
73339         an option --no-libtool.
73340         (func_create_testdir): Update.
73341
73342 2006-07-29  Bruno Haible  <bruno@clisp.org>
73343
73344         * gnulib-tool (func_import): Extend error message about missing
73345         --doc-base.
73346
73347 2006-07-29  Bruno Haible  <bruno@clisp.org>
73348
73349         * gnulib-tool (func_import): Don't create the $docbase directory if
73350         there is no file to store there.
73351
73352 2006-07-29  Bruno Haible  <bruno@clisp.org>
73353
73354         * gnulib-tool (autoconf_minversion): If a --dir option is given and
73355         relevant, look for configure.ac there, not in the current directory.
73356         Also use a simple search for AC_PREREQ, not "autoconf --trace".
73357
73358 2006-07-29  Bruno Haible  <bruno@clisp.org>
73359
73360         * gnulib-tool (SORT): New variable.
73361         (func_usage): Undocument --assume-autoconf option.
73362         Remove --assume-autoconf option handling.
73363         (autoconf_minversion): Determine from the contents of configure.ac.
73364         (func_import): Remove autoconf_minversion handling.
73365         Suggested by Eric Blake.
73366
73367 2006-07-29  Bruno Haible  <bruno@clisp.org>
73368
73369         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
73370
73371 2006-07-29  Bruno Haible  <bruno@clisp.org>
73372
73373         * config/srclist.txt (*setenv.[ch]): Remove rules.
73374
73375 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73376
73377         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
73378
73379 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73380
73381         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
73382         arpa/inet.h.
73383
73384 2006-07-28  Simon Josefsson  <jas@extundo.com>
73385
73386         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
73387         * modules/inet_pton (Depends-on): Likewise.
73388
73389 2006-07-28  Simon Josefsson  <jas@extundo.com>
73390
73391         * m4/netinet_in_h.m4: New file.
73392
73393 2006-07-28  Simon Josefsson  <jas@extundo.com>
73394
73395         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
73396         #include's.
73397
73398 2006-07-28  Simon Josefsson  <jas@extundo.com>
73399
73400         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
73401         #include's.
73402
73403 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
73404
73405         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
73406         setgid on directories only if they set these bits.
73407         * lib/modechange.h: Remove obsolete comment about masks.
73408
73409 2006-07-28  Eric Blake  <ebb9@byu.net>
73410
73411         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
73412         macro expansion.
73413
73414 2006-07-28  Bruno Haible  <bruno@clisp.org>
73415
73416         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
73417
73418 2006-07-28  Bruno Haible  <bruno@clisp.org>
73419
73420         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
73421
73422 2006-07-28  Bruno Haible  <bruno@clisp.org>
73423
73424         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73425         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73426         Define fallbacks.
73427         Avoids link error on FreeBSD 4.x.
73428         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73429
73430         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
73431         encoding.
73432         * lib/mbswidth.c (iswcntrl): Likewise.
73433
73434 2006-07-27  Bruno Haible  <bruno@clisp.org>
73435
73436         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
73437         test.
73438
73439 2006-07-27  Bruno Haible  <bruno@clisp.org>
73440
73441         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
73442         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
73443         defined.
73444
73445 2006-07-26  Eric Blake  <ebb9@byu.net>
73446
73447         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
73448
73449 2006-07-26  Eric Blake  <ebb9@byu.net>
73450
73451         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
73452         like mingw that lack mkstemp.
73453         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
73454         avoid compilation warning on mingw.
73455
73456 2006-07-26  Bruno Haible  <bruno@clisp.org>
73457
73458         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
73459         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
73460         INT_FAST*_MIN, INTPTR_MIN.
73461
73462 2006-07-25  Bruno Haible  <bruno@clisp.org>
73463
73464         * modules/version-etc (Depends-on): Add stdarg.
73465
73466 2006-07-25  Bruno Haible  <bruno@clisp.org>
73467
73468         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
73469         complex commands.
73470
73471 2006-07-25  Bruno Haible  <bruno@clisp.org>
73472
73473         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
73474         defined in <stdarg.h> or config.h.
73475
73476 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
73479         (gl_STDIO_SAFER): Remove.
73480
73481 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73482
73483         * MODULES.html.sh (File stream based Input/Output):
73484         Add fopen-safer, tmpfile-safer; remove stdio-safer.
73485         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
73486         * modules/fopen-safer, modules/tmpfile-safer: New files.
73487         * modules/stdio-safer: Remove.
73488
73489 2006-07-24  Bruno Haible  <bruno@clisp.org>
73490
73491         * modules/tmpdir: New file.
73492         * MODULES.html.sh (File system functions): Add it.
73493
73494 2006-07-24  Bruno Haible  <bruno@clisp.org>
73495
73496         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
73497         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
73498
73499 2006-07-24  Bruno Haible  <bruno@clisp.org>
73500
73501         * modules/clean-temp: New file.
73502
73503 2006-07-24  Bruno Haible  <bruno@clisp.org>
73504
73505         * m4/tmpdir.m4: New file, from GNU gettext.
73506
73507 2006-07-24  Bruno Haible  <bruno@clisp.org>
73508
73509         * lib/tmpdir.h: New file, from GNU gettext.
73510         * lib/tmpdir.c: New file, from GNU gettext.
73511
73512 2006-07-24  Bruno Haible  <bruno@clisp.org>
73513
73514         * lib/clean-temp.h: New file, from GNU gettext.
73515         * lib/clean-temp.c: New file, from GNU gettext.
73516
73517 2006-07-23  Eric Blake  <ebb9@byu.net>
73518
73519         * modules/stdio-safer (Files): Add tmpfile-safer.c.
73520         (Depends-on): Add binary-io.
73521
73522 2006-07-23  Eric Blake  <ebb9@byu.net>
73523
73524         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
73525
73526 2006-07-23  Eric Blake  <ebb9@byu.net>
73527
73528         * lib/tmpfile-safer.c: New file.
73529         * lib/stdio-safer.h (fopen_safer): Add prototype.
73530         * lib/stdio--.h (tmpfile): Make safer.
73531
73532 2006-07-23  Bruno Haible  <bruno@clisp.org>
73533
73534         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
73535         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
73536         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
73537         gl_linked_remove_at): Use it.
73538
73539 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73540         and Simon Josefsson <jas@extundo.com>
73541
73542         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
73543
73544         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
73545
73546 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * modules/close-stream: New file.
73549         * modules/closeout (Description): Make it clear that it exits
73550         with a diagnostic on error.
73551         (Depends-on): Add close-stream.  Remove fpending, stdbool.
73552         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
73553
73554 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * m4/close-stream.m4: New file.
73557
73558 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73559
73560         * lib/close-stream.c, lib/close-stream.h: New files.
73561
73562 2006-07-22  Bruno Haible  <bruno@clisp.org>
73563
73564         Merge from GNU gettext 0.15.
73565
73566         2006-05-01  Bruno Haible  <bruno@clisp.org>
73567
73568                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
73569
73570         2006-07-22  Bruno Haible  <bruno@clisp.org>
73571
73572                 * modules/javaversion: New file.
73573                 * MODULES.html.sh (Java): Add javaversion.
73574
73575         2006-03-12  Bruno Haible  <bruno@clisp.org>
73576
73577                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
73578
73579         2005-12-04  Bruno Haible  <bruno@clisp.org>
73580
73581                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
73582                 (untested).
73583
73584         2006-06-21  Bruno Haible  <bruno@clisp.org>
73585
73586                 Avoid warnings from recent versions of mcs.
73587                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
73588                 -o, -L, -r any more. Use options documented since mcs-1.0
73589                 instead. Similarly for -g.
73590
73591         2005-12-04  Bruno Haible  <bruno@clisp.org>
73592
73593                 * build-aux/csharpcomp.sh.in: Suffix for resources is
73594                 .resources, not .resource.
73595
73596         2005-07-09  Bruno Haible  <bruno@clisp.org>
73597
73598                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
73599                 add a .dll suffix.
73600                 Reported by Mark Junker <mjscod@gmx.de>.
73601
73602         2006-07-22  Bruno Haible  <bruno@clisp.org>
73603
73604                 * modules/gettext: Upgrade to gettext-0.15.
73605                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
73606                 m4/visibility.m4.
73607                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
73608
73609 2006-07-22  Bruno Haible  <bruno@clisp.org>
73610
73611         Merge from GNU gettext 0.15.
73612
73613         2006-03-25  Bruno Haible  <bruno@clisp.org>
73614
73615                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
73616
73617         2006-07-21  Bruno Haible  <bruno@clisp.org>
73618
73619                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
73620                 "1.1".
73621
73622         2006-05-09  Bruno Haible  <bruno@clisp.org>
73623
73624                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
73625                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
73626                 for the conftestver execution.
73627
73628         2006-05-01  Bruno Haible  <bruno@clisp.org>
73629
73630                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
73631                 optional target-version argument. Verify that the compiler
73632                 groks source of the specified source-version, or add -source
73633                 option as necessary. Verify that the compiler produces
73634                 bytecode in the specified target-version, or add -target and
73635                 -source options as necessary. Make the result of the test
73636                 available as variable CONF_JAVAC. Also log error output in
73637                 config.log.
73638
73639         2006-03-11  Bruno Haible  <bruno@clisp.org>
73640
73641                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
73642
73643         2006-05-09  Bruno Haible  <bruno@clisp.org>
73644
73645                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
73646                 CLASSPATH_SEPARATOR to a semicolon.
73647
73648         2006-03-12  Bruno Haible  <bruno@clisp.org>
73649
73650                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
73651                 available as variable CONF_JAVA, for subsequent autoconf
73652                 tests. Also log error output in config.log.
73653
73654         2006-07-19  Bruno Haible  <bruno@clisp.org>
73655
73656                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
73657                 that getline works on glibc2 systems. Needed to avoid trouble
73658                 in relocatable.c.
73659                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
73660
73661         2005-12-04  Bruno Haible  <bruno@clisp.org>
73662
73663                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
73664                 launcher (untested).
73665
73666         2005-12-04  Bruno Haible  <bruno@clisp.org>
73667
73668                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
73669
73670         2006-07-22  Bruno Haible  <bruno@clisp.org>
73671
73672                 * gettext.m4: Update from GNU gettext-0.15.
73673                 * nls.m4: Likewise.
73674                 * po.m4: Likewise.
73675                 * inttypes-pri.m4: Likewise.
73676                 * inttypes-h.m4: Renamed from inttypes.m4.
73677                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
73678
73679 2006-07-22  Bruno Haible  <bruno@clisp.org>
73680
73681         Merge from GNU gettext 0.15.
73682
73683         2005-07-05  Bruno Haible  <bruno@clisp.org>
73684
73685                 * printf-args.c (printf_fetchargs): Work around broken
73686                 definition of wint_t on mingw.
73687
73688         2005-02-12  Bruno Haible  <bruno@clisp.org>
73689
73690                 * xallocsa.h: Add extern "C" for C++.
73691
73692         2006-05-17  Bruno Haible  <bruno@clisp.org>
73693
73694                 Cygwin portability.
73695                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
73696
73697         2006-04-30  Bruno Haible  <bruno@clisp.org>
73698
73699                 * progreloc.c: Include <mach-o/dyld.h> if available.
73700                 (find_executable): Use _NSGetExecutablePath when possible.
73701
73702         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73703
73704                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
73705                 function.
73706
73707         2005-12-29  Bruno Haible  <bruno@clisp.org>
73708
73709                 * progreloc.c (set_program_name_and_installdir): Fix
73710                 compilation error.
73711
73712         2005-12-04  Bruno Haible  <bruno@clisp.org>
73713
73714                 Cygwin portability.
73715                 * progreloc.c: Include <windows.h> also on Cygwin.
73716                 (find_executable): Add support for Cygwin.
73717                 (set_program_name_and_installdir): Handle also platforms with
73718                 nonempty EXEEXT.
73719
73720         2006-07-11  Bruno Haible  <bruno@clisp.org>
73721
73722                 * javacomp.c: Fix a comment.
73723                 Reported by Jim Meyering.
73724
73725         2006-04-30  Bruno Haible  <bruno@clisp.org>
73726
73727                 * javacomp.h (compile_java_class): Add source_version,
73728                 target_version arguments.
73729                 * javacomp.c: Rewritten to choose only a compiler that
73730                 respects the specified source_version and target_version.
73731
73732         2006-06-27  Bruno Haible  <bruno@clisp.org>
73733
73734                 Assume correct S_ISDIR macro.
73735                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
73736
73737         2006-07-22  Bruno Haible  <bruno@clisp.org>
73738
73739                 * javaversion.h: New file, from GNU gettext.
73740                 * javaversion.c: New file, from GNU gettext.
73741                 * javaversion.java: New file, from GNU gettext.
73742                 * javaversion.class: New file, from GNU gettext.
73743
73744         2006-05-17  Bruno Haible  <bruno@clisp.org>
73745
73746                 Cygwin portability.
73747                 * javaexec.c (execute_java_class): Test for jview program
73748                 also on Cygwin.
73749
73750         2006-04-09  Bruno Haible  <bruno@clisp.org>
73751
73752                 * fatal-signal.c: Don't include string.h.
73753                 (at_fatal_signal): Use a copying loop instead of memcpy.
73754
73755         2005-12-04  Bruno Haible  <bruno@clisp.org>
73756
73757                 * csharpexec.c: Add support for 'clix' launcher (untested).
73758                 (execute_csharp_using_sscli): New function.
73759                 (execute_csharp_program): Call it.
73760
73761         2006-06-21  Bruno Haible  <bruno@clisp.org>
73762
73763                 Avoid warnings from recent versions of mcs.
73764                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
73765                 -o, -L, -r any more. Use options documented since mcs-1.0
73766                 instead. Similarly for -g.
73767
73768         2005-07-09  Bruno Haible  <bruno@clisp.org>
73769
73770                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
73771                 add a .dll suffix.
73772                 Reported by Mark Junker <mjscod@gmx.de>.
73773
73774         2006-06-17  Bruno Haible  <bruno@clisp.org>
73775
73776                 * config.charset: Update for NetBSD 3.0.
73777
73778         2006-05-17  Bruno Haible  <bruno@clisp.org>
73779
73780                 Cygwin portability.
73781                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
73782
73783         2006-05-16  Bruno Haible  <bruno@clisp.org>
73784
73785                 * localcharset.c [CYGWIN]: Include <windows.h>.
73786                 (get_charset_aliases): For Cygwin, return the same CPxxx
73787                 aliases list as under WIN32.
73788                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
73789                 the environment variables. Fall back to GetACP().
73790
73791         2006-04-05  Bruno Haible  <bruno@clisp.org>
73792
73793                 * config.charset: Update Juan Manuel Guerrero's address.
73794
73795         2005-02-12  Bruno Haible  <bruno@clisp.org>
73796
73797                 * allocsa.h: Add extern "C" for C++.
73798
73799         2005-02-10  Bruno Haible  <bruno@clisp.org>
73800
73801                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
73802                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
73803
73804         2006-07-22  Bruno Haible  <bruno@clisp.org>
73805
73806                 * gettext.h: Update to GNU gettext-0.15.
73807
73808 2006-07-22  Bruno Haible  <bruno@clisp.org>
73809
73810         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73811         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73812         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73813
73814 2006-07-21  Eric Blake  <ebb9@byu.net>
73815
73816         * modules/stdlib-safer: New file.
73817         * MODULES.html.sh (File stream based Input/Output): Add
73818         stdlib-safer.
73819
73820 2006-07-21  Eric Blake  <ebb9@byu.net>
73821
73822         * lib/stdlib-safer.h: New file from coreutils, required by
73823         stdlib--.h.
73824
73825 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73828
73829 2006-07-20  Bruno Haible  <bruno@clisp.org>
73830
73831         * gnulib-tool: Recognize new option --assume-autoconf.
73832         (autoconf_minversion): New variable.
73833         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73834
73835 2006-07-20  Bruno Haible  <bruno@clisp.org>
73836
73837         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73838
73839 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73840
73841         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73842         Reindent and repaginate.
73843
73844 2006-07-19  Derek Price  <derek@ximbiot.com>
73845
73846         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73847         Correct grammar.
73848
73849 2006-07-17  Bruno Haible  <bruno@clisp.org>
73850
73851         * modules/list: New file.
73852         * modules/array-list: New file.
73853         * modules/carray-list, modules/carray-list-tests: New files.
73854         * modules/linked-list, modules/linked-list-tests: New files.
73855         * modules/avltree-list, modules/avltree-list-tests: New files.
73856         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73857         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73858         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73859         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73860         * modules/oset: New file.
73861         * modules/array-oset: New file.
73862         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73863         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73864         * tests/test-carray_list.c: New file.
73865         * tests/test-linked_list.c: New file.
73866         * tests/test-avltree_list.c: New file.
73867         * tests/test-rbtree_list.c: New file.
73868         * tests/test-linkedhash_list.c: New file.
73869         * tests/test-avltreehash_list.c: New file.
73870         * tests/test-rbtreehash_list.c: New file.
73871         * tests/test-avltree_oset.c: New file.
73872         * tests/test-rbtree_oset.c: New file.
73873         * MODULES.html.sh (Container data structures): New section.
73874
73875 2006-07-17  Bruno Haible  <bruno@clisp.org>
73876
73877         * m4/gl_list.m4: New file.
73878
73879 2006-07-17  Bruno Haible  <bruno@clisp.org>
73880
73881         * lib/gl_list.h: New file.
73882         * lib/gl_list.c: New file.
73883         * lib/gl_array_list.h: New file.
73884         * lib/gl_array_list.c: New file.
73885         * lib/gl_carray_list.h: New file.
73886         * lib/gl_carray_list.c: New file.
73887         * lib/gl_linked_list.h: New file.
73888         * lib/gl_linked_list.c: New file.
73889         * lib/gl_anylinked_list1.h: New file.
73890         * lib/gl_anylinked_list2.h: New file.
73891         * lib/gl_avltree_list.h: New file.
73892         * lib/gl_avltree_list.c: New file.
73893         * lib/gl_anyavltree_list1.h: New file.
73894         * lib/gl_anyavltree_list2.h: New file.
73895         * lib/gl_rbtree_list.h: New file.
73896         * lib/gl_rbtree_list.c: New file.
73897         * lib/gl_anyrbtree_list1.h: New file.
73898         * lib/gl_anyrbtree_list2.h: New file.
73899         * lib/gl_anytree_list1.h: New file.
73900         * lib/gl_anytree_list2.h: New file.
73901         * lib/gl_linkedhash_list.h: New file.
73902         * lib/gl_linkedhash_list.c: New file.
73903         * lib/gl_anyhash_list1.h: New file.
73904         * lib/gl_anyhash_list2.h: New file.
73905         * lib/gl_avltreehash_list.h: New file.
73906         * lib/gl_avltreehash_list.c: New file.
73907         * lib/gl_rbtreehash_list.h: New file.
73908         * lib/gl_rbtreehash_list.c: New file.
73909         * lib/gl_anytreehash_list1.h: New file.
73910         * lib/gl_anytreehash_list2.h: New file.
73911
73912         * lib/gl_oset.h: New file.
73913         * lib/gl_oset.c: New file.
73914         * lib/gl_array_oset.h: New file.
73915         * lib/gl_array_oset.c: New file.
73916         * lib/gl_avltree_oset.h: New file.
73917         * lib/gl_avltree_oset.c: New file.
73918         * lib/gl_rbtree_oset.h: New file.
73919         * lib/gl_rbtree_oset.c: New file.
73920         * lib/gl_anytree_oset.h: New file.
73921
73922 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         * m4/mkancesdirs.m4: New file.
73925         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73926         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73927         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73928         it.
73929
73930 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73931
73932         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73933         * lib/mkancesdirs.h: New files.
73934         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73935         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73936         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73937         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73938         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73939         callers changed.  Revamp internals significantly, by not
73940         attempting to create directories that are temporarily more
73941         permissive than the final results.  Do not attempt to use
73942         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73943         This removes some race conditions, fixes some bugs, and simplifies
73944         things.  Use new dirchownmod function to do owner and mode changes.
73945         * lib/mkdir-p.h: Likewise.
73946         * lib/modechange.c (octal_to_mode): New function.
73947         (struct mode_change): New member mentioned.
73948         (make_node_op_equals): New arg mentioned.  All callers changed.
73949         (mode_compile): Keep track of which mode bits the user has explicitly
73950         mentioned.
73951         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73952         New arg PMODE_BITS, to keep track of which mode bits the user
73953         mentioned; it treats S_ISUID and S_ISGID speciall.
73954         All callers changed.
73955         * lib/modechange.h: Likewise.
73956
73957 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * MODULES.html.sh: Add mkancestors.
73960         * modules/mkancesdirs: New module.
73961         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73962         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73963         The chdir-safer and afs files are now orphans; I'll remove them
73964         unless someone speaks up.
73965         Add lib/dirchownmod.c, lib/dirchownmod.h.
73966         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73967         Add lchown, mkancesdirs.
73968         (Maintainer): Add self.
73969
73970 2006-07-15  Karl Berry  <karl@gnu.org>
73971
73972         * gnulib-tool: help message wording/arrangement.
73973
73974 2006-07-14  Simon Josefsson  <jas@extundo.com>
73975
73976         * doc/gnulib.texi (Libtool and Windows): New section.
73977
73978 2006-07-12  Simon Josefsson  <jas@extundo.com>
73979
73980         * modules/gendocs (License): Fix license, approved by Karl.
73981
73982 2006-07-12  Eric Blake  <ebb9@byu.net>
73983
73984         * MODULES.html.sh: Add gendocs.
73985
73986 2006-07-11  Eric Blake  <ebb9@byu.net>
73987
73988         * modules/fdl: New module, to install doc/fdl.texi.
73989         * MODULES.html.sh: Add new section for documentation modules.
73990         * gnulib-tool: Avoid space-tab.
73991         (--doc-base): New option, to manage files from doc.
73992
73993 2006-07-11  Eric Blake  <ebb9@byu.net>
73994
73995         * m4/absolute-header.m4: Fix comments to match recent change.
73996
73997 2006-07-11  Eric Blake  <ebb9@byu.net>
73998
73999         * gnulib-tool: List --doc-base before --tests-base.
74000
74001 2006-07-11  Derek R. Price  <derek@ximbiot.com>
74002
74003         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
74004
74005 2006-07-11  Bruno Haible  <bruno@clisp.org>
74006
74007         * README: Mention where to put documentation.
74008
74009 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74010
74011         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
74012
74013 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74014
74015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
74016         to stdint.m4.
74017
74018 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
74021         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
74022         "no/such/file/stdint.h" when there is no such file, so that
74023         the resulting C code can be parsed by dodgy compilers.
74024         Problems reported by Bob Proulx.
74025
74026 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74027
74028         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
74029         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74030         macros into the GNU _D_EXACT_NAMLEN.
74031         * lib/savedir.c:  Likewise.
74032         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
74033
74034 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74035         and Paul Eggert  <eggert@cs.ucla.edu>
74036
74037         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
74038         * m4/savedir.m4:
74039         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74040         macros into the GNU _D_EXACT_NAMLEN.
74041
74042 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
74045         around the absolute name, to work around a problem with the HP-UX
74046         11.23 native C compiler, reported by Bob Proulx.
74047
74048 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * doc/maintain.texi, make-stds.texi: Sync from
74051         <http://savannah.gnu.org/projects/gnustandards>.
74052
74053 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
74056
74057 2006-07-09  Jim Meyering  <jim@meyering.net>
74058
74059         * m4/glob.m4: Remove a doubled word in a comment.
74060
74061 2006-07-09  Jim Meyering  <jim@meyering.net>
74062
74063         * lib/argp-pv.c: Remove a doubled word in a comment.
74064         * lib/check-version.c (check_version): Likewise.
74065         * lib/javacomp.c (compile_java_class): Likewise.
74066
74067 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
74070         for the benefit of people using Autoconf 2.60.  If you want to
74071         support older Autoconf versions you can copy m4/onceonly_2_57.m4
74072         (or m4/onceonly.m4, if pre-2.57) manually.
74073
74074 2006-07-08  Jim Meyering  <jim@meyering.net>
74075
74076         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
74077         comment.
74078         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
74079         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
74080         comment.
74081
74082 2006-07-08  Jim Meyering  <jim@meyering.net>
74083
74084         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
74085
74086 2006-07-07  Simon Josefsson  <jas@extundo.com>
74087
74088         * tests/test-crc.c: Change expected crc value, the test vector
74089         were probably computed using the old broken crc.c?
74090
74091 2006-07-06  Simon Josefsson  <jas@extundo.com>
74092
74093         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
74094         now the canonical place for the M4 file).
74095
74096         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
74097         from the sys_socket dependency now.
74098
74099         * modules/inet_pton (Files): Ditto.
74100
74101         * modules/inet_ntop (Files): Ditto.
74102
74103 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74104
74105         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
74106         not gl_PREREQ_GETUSERSHELL.
74107
74108 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74109
74110         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
74111         with only one argument, for Autoconf 2.60.
74112         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
74113         expand to nothing, so add a shell command to avoid syntax error.
74114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74115
74116 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74117
74118         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
74119
74120 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74121
74122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
74123         no longer needed.  Check for isblank decl.
74124         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
74125         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
74126         of existence.
74127
74128 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * lib/getloadavg.c: Use __VMS, not VMS.
74131         * lib/getopt.c: Likewise.
74132         * lib/getpagesize.h: Likewise.
74133         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
74134         and probably does not work.
74135
74136 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * lib/.cppi-disable: Add wcwidth.
74139         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
74140         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
74141         (ISGRAPH): Remove.  All uses changed to isgraph.
74142         (FOLD) [!defined _LIBC]: Remove special case.
74143         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
74144         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
74145         HAVE_ISBLANK.
74146         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
74147         case.
74148
74149 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74150
74151         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
74152         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
74153         brackets.  Other minor changes to suppress some compiler
74154         warnings.
74155
74156 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74157         and Paul Eggert  <eggert@cs.ucla.edu>
74158
74159         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
74160         of invoking obsolescent AC_HEADER_DIRENT macro.
74161         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
74162         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
74163         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
74164         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74165         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
74166         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74167         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
74168         * m4/readdir.m4: Remove; no longer needed.
74169
74170 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74171         and Paul Eggert  <eggert@cs.ucla.edu>
74172
74173         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
74174         Don't worry about this obsolete case any more.
74175         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
74176         directories.
74177         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
74178         worry about this obsolete case any more.
74179         * lib/fts.c: Likewise.
74180         * lib/getcwd.c: Likewise.
74181         * lib/glob.h: Likewise.
74182         * lib/savedir.c: Likewise.
74183
74184 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
74187         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
74188         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
74189         needed.
74190         All uses removed.
74191         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74192         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74193         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
74194         needed.
74195         * m4/getdate.m4 (gl_GETDATE): Likewise.
74196         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74197         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74198         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74199         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74200         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74202         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
74203         needed.
74204
74205 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * lib/memcasecmp.c: Include <limits.h>.
74208         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
74209         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
74210         Don't assume isdigit succeeds only on '0' through '9'.
74211
74212 2006-07-05  Eric Blake  <ebb9@byu.net>
74213
74214         * modules/getaddrinfo (Depends-on): Add snprintf.
74215
74216 2006-07-05  Eric Blake  <ebb9@byu.net>
74217
74218         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
74219         to avoid 'header present but could not be compiled' on cygwin.
74220
74221 2006-07-05  Eric Blake  <ebb9@byu.net>
74222
74223         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
74224         missing from netdb.h.
74225         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
74226
74227 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74228
74229         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
74230         no longer needed.
74231         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
74232         * m4/getdate.m4 (gl_GETDATE): Likewise.
74233         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74234         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74235         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74236         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74237         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74238
74239 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74240
74241         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
74242         All uses of is_space replaced by isspace.
74243         * lib/exit.h: Don't talk about STDC_HEADERS.
74244         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
74245         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
74246         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
74247         replaced by isprint etc.
74248         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
74249         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
74250         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
74251         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
74252         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
74253         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
74254
74255 2006-07-05  Bruno Haible  <bruno@clisp.org>
74256
74257         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
74258         the function exists, before testing against AIX.
74259         Reported by Martin Lambers <marlam@marlam.de>.
74260
74261 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
74264         From Mark D. Baushke.
74265
74266 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
74269         to the absolute name, not just one, to bypass Sun C 5.8's
74270         "warning: #include of /usr/include/... may be non-portable".
74271
74272 2006-07-04  Eric Blake  <ebb9@byu.net>
74273
74274         * modules/dirname-tests: New test module.
74275         * tests/test-dirname.c: New file, replacing dirname.c
74276         TEST_DIRNAME section that was recently deleted.
74277
74278 2006-07-04  Bruno Haible  <bruno@clisp.org>
74279
74280         Assume ANSI C header files and <ctype.h> functions.
74281         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
74282         (mbsnwidth): Use isprint, iscntrl instead.
74283
74284 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74285
74286         Merge from coreutils.
74287         * MODULES.html.sh: Add xstrtold.
74288         * modules/xstrtold: New file.
74289         * modules/cycle-check (Files): Add lib/same-inode.h.
74290         * modules/dirname (Files): Add m4/double-slash-root.m4.
74291         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
74292         * modules/mkdir-p (Files): Add lib/same-inode.h.
74293         * modules/same (Files): Add lib/same-inode.h.
74294
74295 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74296
74297         * m4/absolute-header.m4: Renamed from full-header-path.m4.
74298         This is to keep the terminology clean; POSIX talks about
74299         "absolute pathnames", not "full pathnames", but the GNU
74300         Coding Standards say to use "path" for something else;
74301         so use "absolute" to keep both sides happy.
74302         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
74303         Set gl_absolute_header, not gl_full_header_path.
74304         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
74305         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
74306         All uses changed.
74307
74308         Merge from coreutils.
74309
74310         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
74313         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
74314         want to require the building of c-strtod.o.
74315         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
74316         needs -lm directly.
74317         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
74318
74319         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
74322         --as-needed option if available.  Problem reported by Albert Chin in
74323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
74324         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
74325         cc merely issues a bunch of annoying warnings for --as-needed
74326         (this problem was reported by Bob Proulx).  Also, try linking with
74327         -lm to detect a bug in binutils 2.16 (this problem was reported
74328         by Ralf Wildenhues).
74329
74330         2006-06-18  Jim Meyering  <jim@meyering.net>
74331
74332         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
74333         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
74334         macro.
74335         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
74336         also check for glibc-2.4's abort-inducing bug.
74337
74338         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
74339         Low-probability clean-up should be to use rmdir to get rid of
74340         the just-created directory, not unlink.
74341
74342         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
74343         configure fail, and request a bug report to inform us about it.
74344         Add a comment that, barring reports to the contrary, in 2007 we'll
74345         assume ftruncate is universally available.
74346
74347         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74348
74349         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
74350
74351         2006-03-12  Jim Meyering  <jim@meyering.net>
74352
74353         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
74354         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
74355         * m4/same.m4 (gl_SAME): Likewise.
74356         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
74357
74358         2006-03-11  Eric Blake  <ebb9@byu.net>
74359
74360         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
74361         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
74362         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
74363         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
74364
74365 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
74368         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
74369         reported by Mark D. Baushke, one in
74370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
74371
74372         Merge from coreutils.
74373
74374         * lib/.cppi-disable: Add stdint_.h.
74375         * lib/.cvsignore: Add stdint.h.
74376
74377         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
74380         both double and long double versions.
74381         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
74382         * lib/xstrtold.c: New file.
74383         * lib/xstrtod.h (xstrtold): New decl.
74384
74385         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74386
74387         * lib/filemode.c (setst): Remove.
74388         (strmode): Rewrite to avoid setst.  This makes the code shorter,
74389         (arguably) clearer, and the generated code is a bit smaller on my
74390         Debian GNU/Linux stable x86 host.
74391
74392         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74393
74394         * lib/filemode.c: Include "filemode.h" first, to test the interface.
74395         Assume that filemode.h includes sys/types.h and sys/stat.h.
74396         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
74397         (ftypelet): Reorder to put common cases first, for efficiency.
74398         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
74399         to do 'M'.
74400         (strmode): Renamed from mode_string, and now stores 12 bytes instead
74401         of 10, for compatibility with FreeBSD.  All callers changed.
74402         (filemodestring): Now stores 12 bytes instead of 10, and sets file
74403         types that can't be deduced solely from st_mode.  First arg is now a
74404         const pointer.
74405         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
74406         (strmode): Renamed from mode_string.
74407         (filemodestring): New decl.
74408         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
74409         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
74410         needed.
74411         (S_ISPORT, S_ISWHT): New macros, if not already defined.
74412
74413         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
74416         fsusage.h now does that.  Include fsusage.h first, to test interface.
74417         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
74418         at most one method (the old code could have generated decls that
74419         didn't conform to C89, not that this was ever exercised).
74420         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
74421
74422         2006-03-19  Jim Meyering  <jim@meyering.net>
74423
74424         Work even in a chroot where d_ino values for entries in "/"
74425         don't match the stat.st_ino values for the same names.
74426         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
74427         number, iterate through all entries again, using lstat instead.
74428         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
74429         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
74430
74431         * lib/getcwd.c (__getcwd): Clarify a comment.
74432         Use memcpy in place of a call to strcpy.
74433
74434         2006-03-12  Jim Meyering  <jim@meyering.net>
74435
74436         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
74437         matches that of the current directory (which we're about to chdir ".."
74438         out of), then save the dev-ino of the parent, instead.
74439
74440         * lib/same-inode.h (SAME_INODE): New file/macro.
74441         * lib/chdir-safer.c (SAME_INODE): Remove definition.
74442         Include "same-inode.h", instead.
74443         * lib/same.c: Likewise.
74444         * lib/cycle-check.h: Include "same-inode.h".
74445         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
74446         * lib/cycle-check.c (SAME_INODE): Remove definition.
74447         * lib/root-dev-ino.h: Include "same-inode.h".
74448
74449         2006-03-11  Eric Blake  <ebb9@byu.net>
74450
74451         * lib/same.c (same_name): s/base_name/last_component/
74452         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
74453         * lib/filenamecat.c (file_name_concat): Likewise.
74454
74455         2006-03-11  Eric Blake  <ebb9@byu.net>,
74456                     Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
74459         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
74460         drive prefix.
74461         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
74462         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
74463         (last_component): New method.
74464         * lib/dirname.c (dir_len): Determine when drive letters need a
74465         subsequent slash.  Preserve // when it is special.
74466         (dir_name): Don't append dot when drive letter is absolute.
74467         [TEST_DIRNAME]: Move into a full-blown gnulib test.
74468         * lib/basename.c (base_name): New semantics - malloc the result.
74469         Preserve // when it is special.  Preserve relative files that look
74470         like drive letters.
74471         (base_len): Preserve // when it is special.
74472         (last_component): New method, similar to old base_name semantics.
74473         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
74474         base_name.  Strip redundant slashes from ///.
74475
74476 2006-07-03  Jim Meyering  <jim@meyering.net>
74477
74478         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
74479         macro is used before the first cycle_check call.
74480
74481 2006-07-03  Eric Blake  <ebb9@byu.net>
74482
74483         * modules/dirname (Depends-on): Add xstrndup.
74484
74485 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74486
74487         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
74488         test cases, so that config.log is a bit easier to follow.
74489
74490 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
74493         both are 64 bits, since this seems to be the tradition, and this
74494         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
74495         we ever run into a host that prefers long long to long in this
74496         case, we'll need another configure-time test.  Problem reported by
74497         Jim Meyering.
74498
74499 2006-07-02  Eric Blake  <ebb9@byu.net>
74500
74501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
74502
74503 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * modules/inttypes (Depends-on): No longer depends on stdint.
74506         * modules/stdint (Description): Say more about assumptions.
74507         Say that the fast types might differ.  Say macros are used.
74508         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
74509         (Makefile.am): Revise list of substituted symbols to match
74510         new stdint.m4.
74511         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
74512         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
74513         * tests/test-stdint.c (verify_same_types)
74514         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
74515         the code conforms to C99/C89.
74516         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
74517         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
74518
74519 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
74522         but fix a bug, by requiring at least 64 bits.
74523         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74524         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
74525         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
74526         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74527
74528         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
74529         changes.  Make 2.59 a prerequisite.  Check and substitute for
74530         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
74531         inttypes.h.  Do not use special include files; just use the
74532         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
74533         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
74534         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
74535         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
74536         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
74537         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
74538         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
74539         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
74540         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
74541         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
74542         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
74543         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
74544         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
74545         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
74546         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
74547         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
74548         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
74549         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
74550         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
74551         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
74552         WINT_MAX.  Check for C99 conformance more strictly, by detecting
74553         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
74554         not check for things that C99 does not require, e.g., int8_t.  If
74555         a test isn't needed unless <stdint.h> isn't working, and is
74556         unlikely to be needed for any other reason, then don't do it
74557         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
74558         size_t, since we assume C89 freestanding at least.  Do not check
74559         for sig_atomic_t, wchar_t, or wint_t, since the code now does
74560         the right thing even if the types are not defined.  Instead use:
74561         (gl_STDINT_TYPE_PROPERTIES): New macro.
74562         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
74563         testing whether <sys/types.h> clashes, as Autoconf does this for
74564         us now.  All uses removed.
74565         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
74566         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
74567         (gl_CHECK_TYPE_SAME):
74568         Remove; no longer needed.
74569         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
74570         exists, since we'll return 0 anyway in that case.
74571         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
74572
74573 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
74576         possible collision with system files.
74577         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
74578         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
74579         WCHAR_MIN and WCHAR_MAX in this case.
74580         (<stddef.h>): Do not include; no longer needed.
74581         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
74582         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
74583         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
74584         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
74585         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
74586         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
74587         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
74588         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
74589         !defined(__c99))]: Include in this case too, since it's harmless
74590         now.
74591         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
74592         dangerous to do so.
74593         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
74594         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
74595         (_STDINT_MIN, _STDINT_MAX): New macros.
74596         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
74597         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
74598         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
74599         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
74600         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
74601         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
74602         macros, not typedefs; this simplifies things quite a bit.
74603         Use long int for all types narrower than int64_t.
74604         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
74605         Define in terms of long long int or int64_t or long int,
74606         not int64_t or int32_t.  This saves some compile-time testing.
74607         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
74608         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
74609         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
74610         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
74611         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
74612         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
74613         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
74614         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
74615         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
74616         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
74617         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74618         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74619         undef any previous version and define our own version, for
74620         simplicity and consistency with the new macros for types.
74621         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74622         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74623         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
74624         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
74625         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
74626         @WINT_T_SUFFIX@ to keep things simple here.
74627         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
74628         Simplify by assuming typical 8/16/32/64 host, since we're
74629         already doing that elsewhere anyway.
74630         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
74631         and assume long long int is 64 bits if available.  This
74632         speeds up 'configure'.
74633
74634 2006-07-01  Eric Blake  <ebb9@byu.net>
74635
74636         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
74637         Reported by Andreas Buening.
74638
74639 2006-07-01  Eric Blake  <ebb9@byu.net>
74640
74641         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
74642
74643 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74644
74645         * lib/getaddrinfo.c: fixed typo
74646
74647 2006-06-29  Jim Meyering  <jim@meyering.net>
74648
74649         * modules/strftime (Maintainer): Add my name, since with the
74650         FPRINTFTIME changes strftime.c has forked from glibc.
74651
74652 2006-06-29  Eric Blake  <ebb9@byu.net>
74653
74654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
74655
74656 2006-06-29  Eric Blake  <ebb9@byu.net>
74657
74658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
74659
74660 2006-06-29  Eric Blake  <ebb9@byu.net>
74661
74662         * lib/stat_.h: New file.
74663
74664 2006-06-29  Eric Blake  <ebb9@byu.net>
74665
74666         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
74667         unused static function.
74668
74669 2006-06-29  Eric Blake  <ebb9@byu.net>
74670
74671         * doc/functions.texi (Function Portability): Document missing lstat
74672         on mingw.
74673
74674 2006-06-29  Eric Blake  <ebb9@byu.net>
74675
74676         * MODULES.html.sh: Add sys_stat.
74677         * modules/sys_stat: New module.
74678         * modules/mkstemp (Depends-on): Add sys_stat.
74679
74680 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74681
74682         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
74683
74684 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74685
74686         * m4/c-bs-a.m4: Removed.
74687
74688 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74689
74690         * lib/strftime.c: Assume strftime() exists.
74691
74692 2006-06-29  Derek Price  <derek@ximbiot.com>
74693
74694         * modules/c-bs-a: Removed - \a is C89.
74695         * MODULES.html.sh: Remove c-bs-a.
74696
74697 2006-06-29  Bruno Haible  <bruno@clisp.org>
74698
74699         * modules/wcwidth (License): Change to LGPL.
74700
74701 2006-06-28  Simon Josefsson  <jas@extundo.com>
74702
74703         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
74704         on _WIN32.
74705
74706         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
74707         getnameinfo.
74708
74709 2006-06-28  Simon Josefsson  <jas@extundo.com>
74710
74711         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
74712
74713 2006-06-28  Simon Josefsson  <jas@extundo.com>
74714
74715         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
74716         functions there.  It will succeed on Windows XP, but on Windows
74717         2000 and (presumably) earlier, it will fail, and use the internal
74718         re-implementation.
74719         (use_win32_p): New function.
74720         (getaddrinfo): Use strtoul on servname, to support numeric ports.
74721         Support AI_NUMERICSERV to disable getservbyname.
74722         (getnameinfo): New function, only supports
74723         NI_NUMERICHOST|NI_NUMERICSERV for now.
74724
74725         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
74726         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
74727         getnameinfo.
74728
74729 2006-06-28  Eric Blake  <ebb9@byu.net>
74730
74731         * modules/wcwidth: New file.
74732         * modules/mbchar (Depends-on): Add wcwidth.
74733         * modules/mbswidth (Depends-on): Add wcwidth.
74734         * MODULES.html.sh: Add wcwidth.
74735
74736 2006-06-28  Eric Blake  <ebb9@byu.net>
74737
74738         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
74739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
74740
74741 2006-06-28  Eric Blake  <ebb9@byu.net>
74742
74743         * lib/xvasprintf.h: Fix comments.
74744
74745 2006-06-28  Eric Blake  <ebb9@byu.net>
74746
74747         * lib/mbchar.h (wcwidth): Include wcwidth.h.
74748         * lib/mbswidth.c (wcwidth): Move from here...
74749         * lib/wcwidth.h: ...to this new file.
74750
74751 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74752
74753         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
74754
74755         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
74756         it's obsolete.
74757         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
74758
74759 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74760
74761         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
74762         Autoconf 2.60 says this stuff was obsolete.
74763
74764 2006-06-28  Bruno Haible  <bruno@clisp.org>
74765
74766         * modules/wcwidth (Files): Add m4/wchar_t.m4.
74767
74768 2006-06-28  Bruno Haible  <bruno@clisp.org>
74769
74770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
74771         gt_TYPE_WCHAR_T.
74772
74773 2006-06-28  Bruno Haible  <bruno@clisp.org>
74774
74775         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
74776         declaration for wcwidth.
74777         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
74778
74779 2006-06-28  Bruno Haible  <bruno@clisp.org>
74780
74781         * lib/mkdtemp.c [MINGW]: Include <io.h>.
74782         (mkdir): Define using _mkdir.
74783
74784 2006-06-28  Bruno Haible  <bruno@clisp.org>
74785
74786         * lib/getaddrinfo.h: Fix POSIX URL.
74787         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
74788         _WIN32.
74789         (use_win32_p): Make static.
74790         (getaddrinfo): Reject service name if it is empty or does not consist
74791         solely of decimal digits, or if its value is > 65535.
74792         (getnameinfo): Remove useless casts.
74793
74794 2006-06-27  Simon Josefsson  <jas@extundo.com>
74795
74796         * modules/sys_select: New file, suggested by Bruno Haible, Paul
74797         Eggert and Martin Lambers.
74798
74799 2006-06-27  Simon Josefsson  <jas@extundo.com>
74800
74801         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
74802         Eggert and Martin Lambers.
74803
74804 2006-06-27  Bruno Haible  <bruno@clisp.org>
74805
74806         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74807         result to 0, not to empty.
74808         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74809
74810 2006-06-27  Bruno Haible  <bruno@clisp.org>
74811
74812         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74813
74814 2006-06-26  Simon Josefsson  <jas@extundo.com>
74815
74816         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74817         present.
74818
74819 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74822         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74824
74825 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74826
74827         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74828
74829 2006-06-26  Bruno Haible  <bruno@clisp.org>
74830
74831         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74832
74833 2006-06-26  Bruno Haible  <bruno@clisp.org>
74834
74835         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74836
74837 2006-06-26  Bruno Haible  <bruno@clisp.org>
74838
74839         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74840         SGI C compiler in pre-C99 mode.
74841         Suggested by Mark D. Baushke and Larry Jones.
74842
74843 2006-06-26  Bruno Haible  <bruno@clisp.org>
74844
74845         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74846         WCHAR_MAX.
74847         Reported by Mark D. Baushke and Larry Jones.
74848
74849 2006-06-26  Bruno Haible  <bruno@clisp.org>
74850
74851         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74852         in pre-C99 mode.
74853         Suggested by Mark D. Baushke and Larry Jones.
74854
74855 2006-06-23  Simon Josefsson  <jas@extundo.com>
74856             Bruno Haible  <bruno@clisp.org>
74857
74858         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74859         Emit mostlyclean-local rule.
74860         (func_emit_tests_Makefile_am): Likewise.
74861         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74862
74863 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74864
74865         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74866
74867 2006-06-23  Bruno Haible  <bruno@clisp.org>
74868
74869         * tests/test-stdint.c: Update to match ISO C 99 Technical
74870         Corrigendum 1.
74871
74872 2006-06-23  Bruno Haible  <bruno@clisp.org>
74873
74874         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74875
74876 2006-06-23  Bruno Haible  <bruno@clisp.org>
74877
74878         * lib/stdint_.h: Treat IRIX like OpenBSD.
74879
74880 2006-06-23  Bruno Haible  <bruno@clisp.org>
74881
74882         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74883         ISO C 99 Technical Corrigendum 1.
74884
74885 2006-06-22  Simon Josefsson  <jas@extundo.com>
74886
74887         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74888         MinGW.
74889
74890 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74893         needed.  Some compiler complained about some of them.  Problem reported
74894         by Larry Jones in
74895         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74896
74897 2006-06-21  Simon Josefsson  <jas@extundo.com>
74898
74899         * tests/test-getaddrinfo.c: New file.
74900
74901         * modules/getaddrinfo-tests: New file.
74902
74903         * MODULES.html.sh: Add inet_pton.
74904
74905         * modules/inet_pton: New file.
74906
74907 2006-06-21  Simon Josefsson  <jas@extundo.com>
74908
74909         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74910         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74911         of using the (limited) gnulib implementation on Windows XP.
74912
74913         * m4/inet_pton.m4: New file.
74914
74915 2006-06-21  Simon Josefsson  <jas@extundo.com>
74916
74917         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74918         variable.
74919
74920         * lib/socket_.h: Don't define WINVER.
74921
74922         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74923         slightly modified to work in gnulib.
74924
74925 2006-06-21  Simon Josefsson  <jas@extundo.com>
74926
74927         * doc/gnulib.texi (Windows sockets): Add.
74928
74929 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74930
74931         * lib/read-file.c (fread_file): Start with buffer allocation of
74932         0 bytes rather than 1 byte; this simplifies the code.
74933         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74934         code to free buffer and save/restore errno.
74935         (internal_read_file): Remove unused local.
74936
74937 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74940         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74941         Problem reported by Denis Excoffier in
74942         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74943
74944 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74945
74946         * modules/sys_socket, modules/socklen: Include sys/types since
74947         FreeBSD 4.x's sys/socket.h needs it.
74948
74949 2006-06-19  Simon Josefsson  <jas@extundo.com>
74950
74951         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74952
74953 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74956
74957 2006-06-19  Bruno Haible  <bruno@clisp.org>
74958
74959         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74960         and FULL_PATH_INTTYPES_H in angle brackets.
74961         Reported by Mark D. Baushke <mdb@gnu.org>.
74962
74963 2006-06-17  Eric Blake  <ebb9@byu.net>
74964
74965         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74966         errno.
74967
74968 2006-06-17  Bruno Haible  <bruno@clisp.org>
74969
74970         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74971         <sys/inttypes.h>.
74972
74973 2006-06-17  Bruno Haible  <bruno@clisp.org>
74974
74975         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74976         whether errno is declared. Assume <errno.h> declares errno.
74977
74978 2006-06-17  Bruno Haible  <bruno@clisp.org>
74979
74980         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74981
74982 2006-06-17  Bruno Haible  <bruno@clisp.org>
74983
74984         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74985         problem on Solaris 2.5.1.
74986
74987 2006-06-16  Eric Blake  <ebb9@byu.net>
74988
74989         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74990         * lib/unicodeio.c [!defined errno]: Likewise.
74991         * lib/strtol.c [!defined errno]: Likewise.
74992         * lib/strtod.c [!defined errno]: Likewise.
74993
74994 2006-06-15  Eric Blake  <ebb9@byu.net>
74995
74996         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74997
74998 2006-06-15  Eric Blake  <ebb9@byu.net>
74999
75000         * config/srclist.txt (ssize_t.m4): Lose sync.
75001
75002 2006-06-15  Bruno Haible  <bruno@clisp.org>
75003
75004         * modules/stdint (Files): Include m4/full-header-path.m4,
75005         m4/size_max.m4, m4/wchar_t.m4.
75006         (Makefile.am): Many more substitutions.
75007         * modules/stdint-tests: New file.
75008         * tests/test-stdint.c: New file.
75009
75010 2006-06-15  Bruno Haible  <bruno@clisp.org>
75011
75012         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
75013         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
75014         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
75015         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
75016         gl_CHECK_TYPE_SAME): New macros.
75017
75018 2006-06-15  Bruno Haible  <bruno@clisp.org>
75019
75020         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
75021
75022 2006-06-15  Bruno Haible  <bruno@clisp.org>
75023
75024         * lib/stdint_.h: Rewritten to be fully auto-configured.
75025         Fixes bug on HP-UX/IA64.
75026
75027 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
75028
75029         * lib/getdate.y (__attribute__): Don't define if already defined.
75030         Problem reported by Larry Jones.
75031         * lib/utimens.c (__attribute__): Likewise.
75032
75033 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
75034
75035         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
75036         reported by Andreas Schwab.
75037
75038 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75039             Bruno Haible  <bruno@clisp.org>
75040
75041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
75042         check for the declaration of strnlen and a run test that exposes the
75043         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
75044         rpl_strndup.
75045
75046 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75047             Bruno Haible  <bruno@clisp.org>
75048
75049         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
75050
75051 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75052
75053         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
75054         compile test, for Tru64 4.0D.
75055
75056 2006-05-28  Karl Berry  <karl@gnu.org>
75057
75058         * config/srclist.txt (printf-args.c): lose sync.
75059
75060 2006-05-26  Martin Lambers  <marlam@marlam.de>
75061
75062         * lib/getpass.c: Updates the test for the native W32 API, and adds
75063         missing includes, thus fixing compilation warnings.
75064
75065 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75066
75067         * lib/exclude.c (exclude_fnmatch): New function.
75068         (excluded_file_name): Call exclude_fnmatch.
75069         * lib/exclude.h (excluded_file_name): New prototype
75070
75071 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
75072
75073         * lib/tempname.c (small_open, large_open): New macros.
75074         (__open, __open64) [!_LIBC]: Remove.
75075         (__gen_tempname): Use small_open and large_open instead of __open
75076         and __open64.  This fixes a portability bug on HP-UX 11.11i
75077         reported by Simon Wing-Tang in
75078         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
75079
75080 2006-05-24  Bruno Haible  <bruno@clisp.org>
75081
75082         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
75083         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
75084         Reported by Thorsten Maerz <torte@netztorte.de> via
75085         Aaron Stone <aaron@serendipity.cx>.
75086
75087 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
75090         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
75091         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
75092         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
75093         not really conditional on the cache.
75094         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
75095
75096 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75097
75098         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
75099         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
75100         (my_usleep): Don't mishandle maximum value.
75101
75102 2006-05-19  Jim Meyering  <jim@meyering.net>
75103
75104         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
75105
75106 2006-05-17  Bruno Haible  <bruno@clisp.org>
75107
75108         Cygwin portability.
75109         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
75110
75111 2006-05-17  Bruno Haible  <bruno@clisp.org>
75112
75113         * lib/stdint_.h: Fix recognition of Cygwin.
75114
75115 2006-05-15  Bruno Haible  <bruno@clisp.org>
75116
75117         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
75118         on libtool patch by Ralf Wildenhues.
75119
75120 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75121
75122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
75123         test for C99 conformance; (bool) 0.5 is an integer constant
75124         expression, but (bool) -0.5 is not.  Problem reported by Fedor
75125         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
75126
75127 2006-05-11  Simon Josefsson  <jas@extundo.com>
75128
75129         * m4/xvasprintf.m4: Fix obvious typo.
75130
75131 2006-05-11  Jim Meyering  <jim@meyering.net>
75132
75133         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
75134         James Lemley.
75135
75136 2006-05-10  Simon Josefsson  <jas@extundo.com>
75137
75138         * lib/md4.c: Typo fix, update copyright years.
75139         (K1, K2): Don't use L because it turn computations into 64-bit on
75140         64-bit platforms.
75141
75142 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
75143
75144         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
75145         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
75146         unwanted sign propagation, e.g., on hosts with 64-bit int.
75147         There still are some problems with reeelly weird theoretical hosts
75148         (e.g., 33-bit int) but it's not worth worrying about now.
75149         * lib/sha1.c (rol): Likewise.
75150         (K1, K2, K3, K4): Remove unnecessary L suffix.
75151
75152 2006-05-10  Bruno Haible  <bruno@clisp.org>
75153
75154         * lib/des.c: Cast to avoid warnings.
75155
75156 2006-05-09  Bruno Haible  <bruno@clisp.org>
75157
75158         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
75159         (Depends-on): Depend also on xsize, stdarg.
75160         (configure.ac): Add gl_XVASPRINTF.
75161
75162 2006-05-09  Bruno Haible  <bruno@clisp.org>
75163
75164         * m4/xvasprintf.m4: New file.
75165
75166 2006-05-09  Bruno Haible  <bruno@clisp.org>
75167
75168         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
75169         (EOVERFLOW): Define fallback value.
75170         (xstrcat): New function.
75171         (xvasprintf): Recognize the special case of a string concatenation.
75172
75173 2006-05-08  Eric Blake  <ebb9@byu.net>
75174
75175         * gnulib-tool (func_version): Base copyright year on CVS date.
75176         (func_emit_copyright_notice): New function.
75177         (func_emit_lib_Makefile_am): Use it.
75178         (func_emit_tests_Makefile_am): Likewise.
75179         (func_import): Likewise.
75180
75181 2006-05-08  Bruno Haible  <bruno@clisp.org>
75182
75183         * modules/stdarg: New file.
75184         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
75185
75186 2006-05-08  Bruno Haible  <bruno@clisp.org>
75187
75188         * m4/stdarg.m4: New file, from GNU gettext.
75189
75190 2006-05-08  Bruno Haible  <bruno@clisp.org>
75191
75192         * config/srclist.txt (build-aux/config.rpath): different from latest
75193         release.
75194
75195 2006-05-08  Bruno Haible  <bruno@clisp.org>
75196
75197         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
75198
75199 2006-05-05  Jim Meyering  <jim@meyering.net>
75200
75201         * m4/warning.m4: New file, derived from bison's file by the same name.
75202
75203 2006-05-03  Bruno Haible  <bruno@clisp.org>
75204
75205         * lib/stdint_.h: Shorter URL.
75206         * lib/inttypes.h: Likewise.
75207
75208 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
75211
75212 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75213
75214         * lib/verify.h: Document the internals better.  Most of this change
75215         was written by Bruno Haible.
75216
75217 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * doc/verify.texi: New file, partly based on a proposal by
75220         Bruno Haible.
75221
75222 2006-05-02  Bruno Haible  <bruno@clisp.org>
75223
75224         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
75225         test from here...
75226         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
75227
75228 2006-04-29  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
75231         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
75232
75233 2006-04-29  Bruno Haible  <bruno@clisp.org>
75234
75235         * gnulib-tool: Make --update option actually work.
75236
75237 2006-04-29  Bruno Haible  <bruno@clisp.org>
75238
75239         * doc/gcd.texi: New file.
75240         * doc/gnulib.texi: Include it.
75241
75242 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * lib/getdate.y (get_date): When adding relative date, start with the
75245         initial time, not with the result of the first mktime call.
75246
75247 2006-04-25  Bruno Haible  <bruno@clisp.org>
75248
75249         * gnulib-tool (func_import): Output the include directives in three
75250         blocks, sorted separately.
75251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75252
75253 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
75256         to define main with arguments, for C++.  Reported by Eric Blake.
75257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
75258         Prefer 'int main ()' to 'int main (void)', for C++.
75259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
75260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
75261         for 'main', for C99 and C++.
75262
75263 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
75264
75265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
75266         Don't assume that exit status -1 is valid.
75267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75268         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
75269         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
75270         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
75271         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
75272         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
75273         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
75274         functions can be used without declaring them, or that you can
75275         exit with status -1.
75276         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
75277
75278 2006-04-24  Karl Berry  <karl@gnu.org>
75279
75280         * config/srclist.txt (longdouble.m4): sync lost.
75281
75282 2006-04-24  Eric Blake  <ebb9@byu.net>
75283
75284         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
75285
75286 2006-04-24  Bruno Haible  <bruno@clisp.org>
75287
75288         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
75289         poll() implementation in AIX.
75290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75291
75292 2006-04-24  Bruno Haible  <bruno@clisp.org>
75293
75294         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
75295         assigned exactly once.
75296
75297 2006-04-23  Claudio Fontana  <claudio@gnu.org>
75298             Bruno Haible  <bruno@clisp.org>
75299
75300         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
75301         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
75302         for AM_CPPFLAGS.
75303
75304 2006-04-23  Bruno Haible  <bruno@clisp.org>
75305
75306         * modules/copy-file: Depend on unistd.
75307         * modules/execute: Likewise.
75308         * modules/fatal-signal: Likewise.
75309         * modules/findprog: Likewise.
75310         * modules/mkdtemp : Likewise.
75311         * modules/pipe: Likewise.
75312         * modules/wait-process: Likewise.
75313
75314 2006-04-23  Bruno Haible  <bruno@clisp.org>
75315
75316         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
75317         condition was already detected.
75318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75319
75320 2006-04-23  Bruno Haible  <bruno@clisp.org>
75321
75322         * lib/copy-file.c: Include <unistd.h> unconditionally.
75323         * lib/execute.c: Likewise.
75324         * lib/fatal-signal.c: Likewise.
75325         * lib/findprog.c: Likewise.
75326         * lib/mkdtemp.c: Likewise.
75327         * lib/pipe.h: Likewise.
75328         * lib/pipe.c: Likewise.
75329         * lib/wait-process.h: Likewise.
75330
75331 2006-04-23  Bruno Haible  <bruno@clisp.org>
75332
75333         * gnulib-tool (func_usage): Fix --import description. Document
75334         --update.
75335         (func_import): Create temporary file in a temporary directory, if
75336         --dry-run is specified. Silence errors from 'grep' when there are no
75337         m4 files in $m4dir.
75338         (func_create_testdir): Silence errors from 'grep' when there are no
75339         m4 files in $m4dir.
75340         Reported by Karl Berry <karl@freefriends.org>.
75341
75342 2006-04-20  Bruno Haible  <bruno@clisp.org>
75343
75344         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
75345         one argument, so that the code will be portable to Autoconf 2.60.
75346         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
75347         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75348         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
75349
75350 2006-04-19  Derek Price  <derek@ximbiot.com>
75351             Eric Blake  <ebb9@byu.net>
75352
75353         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
75354         rather than "/full/path.h".  Update comment to match.  Shorten &
75355         generalize m4_translit call via AS_TR_CPP.
75356
75357 2006-04-19  Derek Price  <derek@ximbiot.com>
75358             Eric Blake  <ebb9@byu.net>
75359
75360         * lib/inttypes.h: Correct grammar in comment.
75361
75362 2006-04-18  Derek Price  <derek@ximbiot.com>
75363             Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * modules/inttypes: New file.
75366         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
75367
75368 2006-04-18  Derek Price  <derek@ximbiot.com>
75369             Paul Eggert  <eggert@cs.ucla.edu>
75370
75371         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
75372         New files.
75373
75374 2006-04-18  Derek Price  <derek@ximbiot.com>
75375             Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * lib/inttypes.h: New file.
75378         * lib/strtoimax.c: Assume <inttypes.h>.
75379
75380 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
75383         isn't mounted.  Problem reported by Kir Kolyshkin.
75384
75385 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75386
75387         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
75388         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
75389         Derek R. Price.
75390         * lib/regex.h (RE_DUP_MAX): Update comment to match current
75391         implementation.
75392
75393 2006-04-12  Eric Blake  <ebb9@byu.net>
75394
75395         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
75396         is now done automatically by the corresponding Autoconf macro.
75397
75398 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
75401         time_r.h.
75402
75403 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         Merge regex changes from libc, removing some of our
75406         POSIX-conformance changes that were rejected and redoing them in a
75407         less-intrusive way.
75408
75409         * lib/regcomp.c (re_compile_internal, init_dfa):
75410         Length arg is now size_t, not Idx.  All uses changed.
75411         (peek_token): Forward decl now says internal_function.
75412         (__re_error_msgid, __re_error_msgid_idx):
75413         Now static rather than extern with attribute_hidden.
75414         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
75415         For some reason libc prefers K&R style defns for external functions.
75416         (regerror) [!defined _LIBC]: Likewise.
75417         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
75418         (seek_collating_symbol_entry, lookup_collation_sequence_value):
75419         (build_range_exp, build_collating_symbol):
75420         Use K&R-style defn.
75421         (re_compile_fastmap): Use '\0' to memset, not 0.
75422         (utf8_sb_map): Make the calculations more obvious.
75423         (init_dfa, parse_bracket_exp, build_charclass_op):
75424         Call calloc and cast result, as glibc does.
75425         (init_word_char, fetch_token, peek_token, peek_token_bracket):
75426         (build_range_exp, build_collating_symbol):
75427         Now internal functions.
75428
75429         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
75430
75431         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
75432         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
75433         Don't depend on VMS; depend on __VMS instead, for POSIX
75434         namespace cleanness.
75435         (regoff_t): Define to ssize_t, not long int.
75436
75437         Remove the REG_ macros named below.  Instead, make the old names
75438         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
75439         __USE_GNU_REGEX.
75440         (REG_BACKSLASH_ESCAPE_IN_LISTS):
75441         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
75442         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
75443         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
75444         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
75445         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
75446         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
75447         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
75448         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
75449         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
75450         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
75451         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
75452         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
75453         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
75454         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
75455         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
75456         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
75457         (REG_NREGS):
75458         Remove.  All uses replaced by the old RE_* names.
75459         (RE_BACKSLASH_ESCAPE_IN_LISTS):
75460         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
75461         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
75462         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
75463         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
75464         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
75465         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
75466         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
75467         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
75468         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
75469         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
75470         Don't bother having these macros be independent of each others'
75471         values, since they no longer exist in the POSIX name space.
75472
75473         Rename the following member names back to their old names,
75474         unless !__USE_GNU_REGEX.  All uses changed back.
75475         (buffer): Renamed from re_buffer.
75476         (allocated): Renamed from re_allocated.
75477         (used): Renamed from re_used.
75478         (syntax): Renamed from re_syntax.
75479         (fastmap): Renamed from re_fastmap.
75480         (translate): Renamed from re_translate.
75481         (can_be_null): Renamed from re_can_be_null.
75482         (regs_allocated): Renamed from re_regs_allocated.
75483         (fastmap_accurate): Renamed from re_fastmap_accurate.
75484         (no_sub): Renamed from re_no_sub.
75485         (not_bol): Renamed from re_not_bol.
75486         (not_eol): Renamed from re_not_eol.
75487         (newline_anchor): Renamed from re_newline_anchor.
75488         (num_regs): Renamed from rm_num_regs.
75489         (start): Renamed from rm_start.
75490         (end): Renamed from rm_end.
75491
75492         (free_state): Move up a bit.
75493
75494         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
75495         #define to be empty.
75496         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
75497         when that is what is intended.
75498         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
75499         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
75500         (MAX): New macro.
75501         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
75502         All uses changed back to re_malloc, etc.  It's now the caller's
75503         responsibility to check for overflow; all callers changed.
75504         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
75505         (re_x2nrealloc): Remove.
75506         (free_state): Remove decl.
75507
75508         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
75509         (re_set_registers, re_exec):
75510         Use K&R-style defn.
75511
75512         2006-01-31  Roland McGrath  <roland@redhat.com>
75513
75514         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
75515         Reported by Mike Frysinger <vapier@gentoo.org>.
75516
75517         2006-01-15  Andreas Jaeger  <aj@suse.de>
75518
75519         [BZ #1950]
75520         * lib/regex_internal.c (re_string_reconstruct): Adjust for
75521         build_wcs_upper_buffer change.
75522         (build_wcs_upper_buffer): Change return type.
75523
75524         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
75525
75526         * lib/regex_internal.h: Include <stdint.h> if available.
75527
75528         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
75529
75530         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
75531
75532         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75533
75534         * lib/regcomp.c: Adjust for changed secondary hash function.
75535
75536         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
75537
75538         * lib/regex.h: Pretty printing.
75539         Clean up namespace a bit.
75540
75541         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
75542
75543         * lib/regexec.c (update_cur_sifted_state, check_arrival,
75544         check_arrival_add_next_nodes): Avoid using uninitialized variable.
75545
75546         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75547                     Ulrich Drepper  <drepper@redhat.com>
75548
75549         [BZ #1302]
75550         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
75551         changed.
75552         (bitset_word_t): Renamed from bitset_word.  All uses changed.
75553
75554         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
75555
75556         [BZ #281]
75557         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
75558         * lib/regcomp.c: Remove unnecessary uses of
75559         unsigned RE_TRANSLATE_TYPE.
75560         * lib/regex_internal.h: Likewise.
75561         * lib/regex_internal.c: Likewise.
75562         * lib/regexec.c: Likewise.
75563         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
75564
75565         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
75566
75567         * lib/regexec.c (find_recover_state): Remove unnecessary
75568         initialization.
75569         (transit_state_bkref): Make DFA a const pointer.
75570         (get_subexp): Likewise.
75571         (check_arrival): Likewise.
75572         (update_cur_sifted_state): Likewise.
75573         (re_search_internal): Likewise.
75574         (prune_impossible_nodes): Likewise.
75575         (acquire_init_state_context): Likewise.
75576         (proceed_next_node): Likewise.
75577         (set_regs): Likewise.
75578         (free_fail_stack_return): Likewise.
75579         (check_arrival_expand_ecl): Mark DFA parameter as const.
75580         (check_arrival_expand_ecl_sub): Likewise.
75581         (check_subexp_limits): Likewise.
75582         (sub_epsilon_src_nodes):  Likewise.
75583         (add_epsilon_src_nodes):  Likewise.
75584         (merge_state_array): Likewise.
75585         (update_regs): Likewise.
75586         (build_trtable): Likewise.
75587         (sift_states_backward): Mark MCTX parameter as const.
75588         (build_sifted_states): Likewise.
75589         (update_cur_sifted_state): Likewise.
75590         (sift_states_mkref): Likewise.
75591         (check_arrival_expand_ecl): Mark eclosure as const.
75592         (check_dst_limits_calc_pos_1): Likewise.
75593         * lib/regex_internal.h (re_match_context_t): Make dfa a const
75594         pointer.
75595
75596         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
75597
75598         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
75599         (transit_state_sb): Likewise.
75600         (transit_state_mb): Likewise.
75601         (sift_states_iter_mb): Likewise.
75602         (check_arrival_add_next_nodes): Likewise.
75603         (check_node_accept_bytes): Change first parameter to pointer-to-const.
75604         [_LIBC] (re_search_2_stub): Use mempcpy.
75605
75606         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
75607         mbrtowc for very simple UTF-8 case.
75608
75609         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
75610         a pointer-to-const.
75611         (re_acquire_state_context): Likewise.
75612         * lib/regex_internal.h: Adjust prototypes.
75613
75614         * lib/regex.c: Prevent using C++ compilers.
75615
75616         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
75617         (re_acquire_state_context): Likewise.
75618
75619 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * modules/regex (Depends-on): Add ssize_t.
75622
75623 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
75626         translation table.
75627
75628 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
75631
75632 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
75633             Bruno Haible  <bruno@clisp.org>
75634
75635         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
75636         <sys/types.h> and <inttypes.h>.
75637
75638 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75639
75640         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
75641         `__error_t_defined', so argp.h will not typedef the former.
75642
75643 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
75646         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
75647         glibc names.  Even if glibc is changed to conform to POSIX, the
75648         traditional names will be available anyway, since regex depends on
75649         the extensions module.  Also, fix a longstanding typo in the
75650         implementation of Spencer ERE test #75 from grep 2.3.  Problems
75651         reported by Emanuele Giaquinta.  Also, change sense of cached
75652         variable, so that the message makes sense.
75653
75654 2006-03-24  Simon Josefsson  <jas@extundo.com>
75655
75656         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
75657         including some doc fixes.
75658         (base64_encode_alloc): Fix +1 bug on allocation failures.
75659
75660 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75661
75662         * lib/base64.c (base64_encode): Do not read past end of array with
75663         unsanitized input on systems with CHAR_BIT > 8.
75664
75665 2006-03-24  Eric Blake  <ebb9@byu.net>
75666
75667         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
75668
75669 2006-03-22  Karl Berry  <karl@gnu.org>
75670
75671         * config/srclist.txt (*setenv.[ch]): get from coreutils.
75672         * config/srclistvars.sh (COREUTILS): new var.
75673
75674 2006-03-17  Jim Meyering  <jim@meyering.net>
75675
75676         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
75677         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
75678
75679 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
75682         no longer needs it.  Instead, check that regoff_t is as least
75683         as wide as ptrdiff_t.
75684
75685         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
75686         so that our regex.h stays compatible with the installed regex.
75687         This is helpful for installers who configure --without-included-regex.
75688         Problem reported by Emanuele Giaquinta.
75689
75690 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
75693         Typedef to long int, not to off_, as POSIX will likely change
75694         in that direction.
75695
75696 2006-03-15  Eric Blake  <ebb9@byu.net>
75697
75698         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
75699
75700 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75701
75702         * lib/argp-help.c (validate_uparams): Fix typo
75703         * lib/argp-parse.c (argp_default_options): Consistently begin help
75704         messages with a lowercase letter.
75705
75706 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
75709         overrun buffers and shouldn't be used (much as gets shouldn't be
75710         used).
75711         * lib/time_r.c (asctime_r, ctime_r): Likewise.
75712
75713 2006-03-08  Simon Josefsson  <jas@extundo.com>
75714
75715         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
75716         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75717
75718 2006-03-08  Simon Josefsson  <jas@extundo.com>
75719
75720         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
75721         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75722
75723 2006-03-08  Simon Josefsson  <jas@extundo.com>
75724
75725         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
75726         signal that configure disabled the device.
75727
75728 2006-03-08  Simon Josefsson  <jas@extundo.com>
75729
75730         * build-aux/maint.mk: Fix refresh-po, to handle no translated
75731         languages.
75732
75733 2006-03-07  Simon Josefsson  <jas@extundo.com>
75734
75735         * modules/getopt (Depends-on): Add unistd.
75736
75737         * modules/unistd: New file.
75738
75739 2006-03-07  Simon Josefsson  <jas@extundo.com>
75740
75741         * modules/gc-random: New file.
75742
75743 2006-03-07  Simon Josefsson  <jas@extundo.com>
75744
75745         * m4/unistd_h.m4: New file.
75746
75747 2006-03-07  Simon Josefsson  <jas@extundo.com>
75748
75749         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
75750         test to be side-effect free by storing the result in the cache
75751         variable gl_cv_lib_readline, and moving the assignment of
75752         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
75753         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75754
75755 2006-03-07  Simon Josefsson  <jas@extundo.com>
75756
75757         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
75758         error on missing devices (the functions will return an error).
75759
75760         * m4/gc.m4: Move random stuff to gc-random.m4
75761
75762 2006-03-07  Simon Josefsson  <jas@extundo.com>
75763
75764         * lib/unistd_.h: New file.
75765
75766 2006-03-07  Simon Josefsson  <jas@extundo.com>
75767
75768         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
75769
75770 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
75773         Problem reported by Juan Manuel Guerrero.
75774
75775 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75776
75777         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
75778         the unistd module.
75779         * lib/getlogin_r.c: Likewise.
75780         * lib/getlogin_r.h: Likewise.
75781         * lib/glob.c: Likewise.
75782         * lib/pagealign_alloc.c: Likewise.
75783         * lib/unistd_.h: Remove; no longer needed.
75784
75785 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * MODULES.html.sh (Support for systems lacking POSIX:2001):
75788         Add unistd.
75789         * modules/c-stack (Depends-on): Add unistd.
75790         * modules/getlogin_r: Likewise.
75791         * modules/glob: Likewise.
75792         * modules/pagealign_alloc: Likewise.
75793         * modules/unistd (Files): Remove lib/unistd_.h.
75794         (EXTRA_DIST): Remove.
75795         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
75796         need unistd_.h.
75797         (MOSTLYCLEANFILES): Remove unistd.h-t.
75798
75799 2006-03-03  Simon Josefsson  <jas@extundo.com>
75800
75801         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
75802
75803 2006-03-03  Simon Josefsson  <jas@extundo.com>
75804
75805         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75806         libidn and bison.
75807
75808 2006-03-03  Simon Josefsson  <jas@extundo.com>
75809
75810         * build-aux/maint.mk: Add indent target.
75811
75812 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75813
75814         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75815         our replacement poll.h in any case, to avoid a differing
75816         declaration from a system header.  Seen on AIX.
75817
75818 2006-03-01  Simon Josefsson  <jas@extundo.com>
75819
75820         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75821         <kasal@ucw.cz>.
75822
75823 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         * modules/gettime (Depends-on): Add extensions module.
75826         * modules/nanosleep (Depends-on): Likewise.
75827         * modules/settime (Depends-on): Likewise.
75828
75829 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75832         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75833         pedantically.
75834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75835         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75836
75837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75838         not "==".  Reported by Ralf Wildenhues.
75839
75840 2006-03-01  Karl Berry  <karl@gnu.org>
75841
75842         * doc/Copyright/request-*: new files, synced from gnuorg.
75843
75844 2006-03-01  Karl Berry  <karl@gnu.org>
75845
75846         * config/srclist.txt (Copyright/*): new entries.
75847
75848 2006-02-28  Simon Josefsson  <jas@extundo.com>
75849
75850         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75851
75852 2006-02-27  Simon Josefsson  <jas@extundo.com>
75853
75854         * lib/base64.h: Indent #define's.  From Jim Meyering
75855         <jim@meyering.net>.
75856
75857 2006-02-27  Jim Meyering  <jim@meyering.net>
75858
75859         Revert the change of 2006-02-24, so these files can continue
75860         to be sync'd from gettext.
75861         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75862         of `config.h'.
75863
75864 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75865
75866         * modules/intprops: New file.
75867         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75868         Add intprops.
75869         * modules/getloadavg (Files): Remove lib/intprops.h.
75870         (Depends-on): Add intprops.
75871         * modules/human: Likewise.
75872         * modules/inttostr: Likewise.
75873         * modules/openat: Likewise.
75874         * modules/sig2str: Likewise.
75875         * modules/userspec: Likewise.
75876         * modules/utimecmp: Likewise.
75877         * modules/xnanosleep: Likewise.
75878         * modules/xstrtol: Likewise.
75879
75880 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75881
75882         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75883         * modules/lock-tests (TESTS): Use $(EXEEXT).
75884         * modules/tls-tests: Likewise.
75885         * modules/argp-tests: Likewise.
75886         (check_PROGRAMS): New var, replacing...
75887         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75888
75889 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75890
75891         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75892         `config.h'.
75893
75894 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75897
75898 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75899
75900         Sync from coreutils.
75901         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75902         gl_CHDIR_SAFER.
75903
75904 2006-02-22  Jim Meyering  <jim@meyering.net>
75905
75906         Sync from coreutils.
75907         * m4/chdir-safer.m4: New file.
75908
75909 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75910
75911         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75912         AT_FDCWD exceeds INT_MAX.
75913         * lib/openat.h (AT_FDCWD): Likewise.
75914
75915 2006-02-17  Eric Blake  <address@hidden>
75916
75917         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75918
75919 2006-02-16  Simon Josefsson  <jas@extundo.com>
75920
75921         * modules/getaddrinfo (Depends-on): Add sys_socket.
75922
75923 2006-02-15  Simon Josefsson  <jas@extundo.com>
75924
75925         * build-aux/maint.mk: Add dsyntax-check rule.
75926
75927 2006-02-15  Eric Blake  <ebb9@byu.net>
75928
75929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75930         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75931         'present but cannot compile' warnings on cygwin.
75932         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75933         use ws2tcpip.h if sys/socket.h works.
75934         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75935         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75936
75937 2006-02-14  Simon Josefsson  <jas@extundo.com>
75938
75939         * modules/maintainer-makefile (Files): Rename.
75940
75941         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75942         and (the local) Makefile.cfg to maint-cfg.mk.
75943
75944         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75945         to the latter.
75946
75947         * modules/maintainer-makefile: New module.
75948
75949         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75950         severaly stripped to make it possible to build it up from scratch
75951         with reliable tests.
75952
75953         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75954         fixes to permit overriding the default actions when configure and
75955         makefile are not available.
75956
75957 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75958
75959         Sync from coreutils.
75960         * modules/lstat (Depends-on): Don't depend on xalloc.
75961         (License): Change from GPL to LGPL, since this is now simply a
75962         replacement for a libc function.
75963
75964 2006-02-14  Jim Meyering  <jim@meyering.net>
75965
75966         Sync from coreutils.
75967
75968         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75969         failure on deficient systems, and simplify gnulib lgpl dependencies.
75970         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75971         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75972
75973         * lib/xalloc-die.c: Remove unused definition of N_.
75974
75975 2006-02-14  Jim Meyering  <jim@meyering.net>
75976
75977         Sync from coreutils.
75978         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75979         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75980         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75981         double-quote uses of that variable, to accommodate the rare case in
75982         which getmntent is available in none of the libraries checked.  This
75983         happens at least on FreeBSD 5.0.
75984
75985 2006-02-13  Simon Josefsson  <jas@extundo.com>
75986
75987         * gnulib-tool (Usage): Fix --import, from
75988         karl@freefriends.org (Karl Berry).
75989
75990 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75991
75992         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75993
75994 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75995
75996         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75997         "autoupdate" on 2005-12-12.
75998
75999 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * modules/closeout (Depends-on): Remove atexit.
76002
76003 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76004
76005         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
76006         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
76007
76008 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
76011         __EXTENSIONS__ if this causes compilation to fail.  Problem
76012         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
76013         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
76014
76015 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
76018         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
76019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
76020         All uses changed.
76021
76022 2006-01-26  Simon Josefsson  <jas@extundo.com>
76023
76024         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
76025         prototype is visible on mingw32.
76026
76027         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
76028         for mingw32.
76029
76030         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
76031         mingw32).
76032
76033 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
76034
76035         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
76036         attempt to open for write; this always fails, at least on POSIX
76037         hosts.  This reinstates the 2006-01-09 change, which was
76038         inadvertently removed.
76039
76040 2006-01-26  Bruno Haible  <bruno@clisp.org>
76041
76042         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
76043         Reported by Paul Eggert.
76044
76045 2006-01-26  Bruno Haible  <bruno@clisp.org>
76046             Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         * lib/stdbool_.h (_Bool)
76049         [(! (defined __cplusplus || defined __BEOS__)
76050           && !defined __GNUC__
76051           && !(defined __HP_cc || defined __xlc__
76052                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
76053                || defined __sgi))]:
76054         #define to signed char in these cases too; this simplifies
76055         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
76056         etc., separately) and makes it more conservative.
76057
76058 2006-01-25  Simon Josefsson  <jas@extundo.com>
76059
76060         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
76061         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
76062         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
76063
76064 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76065
76066         * lib/argp-namefrob.h: Bugfix. Remove stray #
76067
76068 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
76071         so that we test the test.
76072         Check for yet another HP-UX cc bug involving *bool |= bool.
76073
76074 2006-01-25  Karl Berry  <karl@gnu.org>
76075
76076         * config/srclist.txt (vasnprintf.c): sync lost.
76077
76078 2006-01-25  Jim Meyering  <jim@meyering.net>
76079
76080         Sync from the stable (b5) branch of coreutils:
76081
76082         * lib/fts.c (fts_children): Don't let close() clobber errno from
76083         failed fchdir().
76084
76085         * lib/fts.c (fts_stat): When following a symlink-to-directory,
76086         don't necessarily interpret stat-fails+lstat-succeeds as indicating
76087         a dangling symlink.  That can also happen at least for ELOOP.
76088         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
76089         FYI, this bug predates the inclusion of fts.c in coreutils.
76090
76091         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
76092         in their own block, so pre-c99 compilers don't object.
76093
76094         Avoid the double-free (first in fts_read, second in fts_close) that
76095         would occur when an `active' directory is made inaccessible (e.g.,
76096         via chmod a-x) during a traversal.
76097         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76098         before returning.  Reproduce this failure by
76099         mkdir -p a/b; cd a; chmod a-x . b
76100         Reported by Stavros Passas.
76101
76102 2006-01-25  Jim Meyering  <jim@meyering.net>
76103
76104         * lib/fileblocks.c: Remove more useless parentheses.
76105         * lib/readutmp.h: Likewise.
76106
76107 2006-01-25  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
76110         warnings.
76111         Reported by Paul Eggert.
76112
76113 2006-01-25  Bruno Haible  <bruno@clisp.org>
76114
76115         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
76116         rid of a trap command. For Solaris sh.
76117         Reported by Mark D. Baushke <mdb@gnu.org>.
76118
76119 2006-01-24  Simon Josefsson  <jas@extundo.com>
76120
76121         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
76122         Bruno.
76123
76124 2006-01-24  Karl Berry  <karl@gnu.org>
76125
76126         * config/srclist.txt (argp-namefrob.h): sync lost.
76127
76128 2006-01-24  Jim Meyering  <jim@meyering.net>
76129
76130         * modules/openat (Files): Add lib/intprops.h.
76131         From Mark D. Baushke.
76132
76133 2006-01-24  Jim Meyering  <jim@meyering.net>
76134
76135         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
76136         Reported by Mark D. Baushke.
76137
76138 2006-01-24  Jim Meyering  <jim@meyering.net>
76139
76140         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
76141
76142 2006-01-24  Bruno Haible  <bruno@clisp.org>
76143
76144         * modules/strnlen (Maintainer): Change from glibc to all.
76145
76146 2006-01-24  Bruno Haible  <bruno@clisp.org>
76147
76148         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
76149         Patch by Paul Eggert.
76150
76151 2006-01-24  Bruno Haible  <bruno@clisp.org>
76152
76153         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
76154         already has it.
76155         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
76156         2005-11-26.
76157
76158         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
76159         'signed char' to avoid problems with the built-in _Bool type.
76160         Reported by Paul Eggert on 2005-11-26.
76161
76162 2006-01-24  Bruno Haible  <bruno@clisp.org>
76163
76164         * gnulib-tool (func_import): Avoid constructing complicated sed
76165         expressions inside backquote.
76166         Report and solution by Mark D. Baushke <mdb@gnu.org>.
76167
76168 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
76169
76170         These changes imported from libc.
76171         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
76172         test and two separate function calls.
76173         * lib/strndup.c (__strndup): Add libc_hidden_def.
76174
76175 2006-01-23  Simon Josefsson  <jas@extundo.com>
76176
76177         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
76178         Remove the test_*_SOURCES variable: automake infers it by default.
76179         * modules/tls-tests: Likewise.
76180
76181 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         Work around porting bugs reported by Dieter in
76184         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
76185         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
76186         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
76187         Include "getopt.h" first, to check interface.
76188         (getenv): Declare only if defined HAVE_DECL_GETENV &&
76189         !HAVE_DECL_GETENV.
76190         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
76191         (__strndup): Revert to K&R-style function dfns, the glibc style.
76192         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
76193         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
76194         Include strnlen.h first, to get prototype properly.
76195         (strnlen): Renamed from __strnlen.
76196         Remove weak alias.
76197
76198 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
76201
76202 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * config/srclist.txt: Adjust to reflect glibc reorganization.
76205         This affects only comments.
76206
76207 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76208
76209          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
76210          Reported by Bruce Korb <bkorb@gnu.org>.
76211
76212 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
76213
76214         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
76215         to pacify gcc -Wswitch-default.
76216
76217 2006-01-22  Bruno Haible  <bruno@clisp.org>
76218
76219         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
76220         temporary buffer for sprintf, take into account the precision also
76221         for 'd', 'i', 'u', 'o', 'x', 'X'.
76222
76223 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76224
76225         * modules/argp-tests: New module
76226         * tests/test-argp.c: New file
76227         * tests/test-argp-2.sh: New file
76228
76229 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76230
76231         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
76232         (__argp_base_name): Removed
76233         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
76234         typo.
76235         (__argp_base_name): Provide macro definition or extern declaration
76236         depending on the configuration
76237
76238 2006-01-20  Simon Josefsson  <jas@extundo.com>
76239
76240         * modules/inet_ntop (Depends-on): Depend on sys_socket.
76241
76242 2006-01-20  Simon Josefsson  <jas@extundo.com>
76243
76244         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
76245
76246 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
76249         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
76250         Suggested by Bruno Haible.
76251
76252 2006-01-20  Karl Berry  <karl@gnu.org>
76253
76254         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
76255         until changes propagate, I guess.
76256
76257 2006-01-19  Simon Josefsson  <jas@extundo.com>
76258
76259         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
76260
76261 2006-01-19  Simon Josefsson  <jas@extundo.com>
76262
76263         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
76264
76265 2006-01-19  Simon Josefsson  <jas@extundo.com>
76266
76267         * gnulib-tool: Set check_PROGRAMS.
76268
76269         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
76270         modules/des-tests, modules/gc-arcfour-tests,
76271         modules/gc-arctwo-tests, modules/gc-des-tests,
76272         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
76273         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
76274         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
76275         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
76276         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
76277         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
76278         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
76279         test_*_SOURCES.
76280
76281 2006-01-18  Simon Josefsson  <jas@extundo.com>
76282
76283         * modules/socklen (Depends-on): Depend on sys_socket.
76284
76285 2006-01-18  Simon Josefsson  <jas@extundo.com>
76286
76287         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
76288         modules/des-tests, modules/gc-arcfour-tests,
76289         modules/gc-arctwo-tests, modules/gc-des-tests,
76290         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
76291         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
76292         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
76293         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
76294         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
76295         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
76296         $(EXEEXT) to automake TESTS variable, for mingw32.
76297
76298 2006-01-17  Simon Josefsson  <jas@extundo.com>
76299
76300         * modules/socklen (Include): Need sys/socket.h.
76301
76302 2006-01-17  Bruno Haible  <bruno@clisp.org>
76303
76304         * modules/ssize_t (Include): Add <sys/types.h>.
76305
76306 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
76309         it's not portable and it doesn't work with cross-compiles.
76310         Problem reported by Bruno Haible.  Fix missing-$ typo in
76311         'test "gl_cv_ignore_unused_libraries" ...' that prevented
76312         -zignore from being used with Sun's C compiler.
76313
76314 2006-01-12  Simon Josefsson  <jas@extundo.com>
76315
76316         * lib/base64.c: Fix warning, reported by Bruno Haible
76317         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
76318
76319 2006-01-12  Bruno Haible  <bruno@clisp.org>
76320
76321         * modules/ldd: New file.
76322         * build-aux/ldd.sh.in: New file.
76323         * MODULES.html.sh (Support for building libraries and executables): Add
76324         ldd.
76325
76326 2006-01-12  Bruno Haible  <bruno@clisp.org>
76327
76328         * m4/ldd.m4: New file.
76329
76330 2006-01-12  Bruno Haible  <bruno@clisp.org>
76331
76332         * gnulib-tool (func_import, func_create_testdir): Don't go into an
76333         endless loop while replacing $auxdir with build-aux.
76334
76335 2006-01-11  Simon Josefsson  <jas@extundo.com>
76336
76337         * lib/stdint_.h (SIZE_MAX): Add missing (.
76338
76339 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
76340
76341         Sync from coreutils.
76342         * lib/md5.c: Fix commentary typos.
76343         (alignof, UNALIGNED_P): No need for a GCC-specific version.
76344         * lib/md5.h (__attribute__): Remove; unused.
76345         * lib/sha1.c: Fix commentary to match md5 better.
76346         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
76347         so that we don't need to worry about alignment.  All uses changed.
76348         This merges the 2005-10-28 md5 change into sha1.
76349
76350 2006-01-11  Jim Meyering  <jim@meyering.net>
76351
76352         Sync from coreutils.
76353         * lib/md5.c (OP): Fix spacing.
76354
76355 2006-01-11  Bruno Haible  <bruno@clisp.org>
76356
76357         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76358         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
76359         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
76360
76361 2006-01-11  Bruno Haible  <bruno@clisp.org>
76362
76363         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76364         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
76365         the "early" section as well.
76366
76367 2006-01-11  Bruno Haible  <bruno@clisp.org>
76368
76369         Avoid "ar: no archive members specified" error on MacOS X.
76370         * gnulib-tool (func_modules_add_dummy): New function.
76371         (func_import, func_create_testdir): Invoke it.
76372
76373 2006-01-11  Bruno Haible  <bruno@clisp.org>
76374
76375         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
76376         with $auxdir in AC_CONFIG_FILES statements.
76377
76378 2006-01-11  Bruno Haible  <bruno@clisp.org>
76379
76380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76381         Initialize also noinst_HEADERS to empty.
76382
76383 2006-01-11  Bruno Haible  <bruno@clisp.org>
76384
76385         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
76386         variables.
76387         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
76388         autoreconf.
76389
76390 2006-01-11  Bruno Haible  <bruno@clisp.org>
76391
76392         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
76393         overridable by the user.
76394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76395
76396 2006-01-10  Simon Josefsson  <jas@extundo.com>
76397
76398         * modules/sys_socket: New file.
76399
76400 2006-01-10  Simon Josefsson  <jas@extundo.com>
76401
76402         * m4/sys_socket_h.m4: New file.
76403
76404 2006-01-10  Simon Josefsson  <jas@extundo.com>
76405
76406         * lib/socket_.h: New file.
76407
76408 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * modules/readutmp (Maintainer): Add myself.
76411
76412 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
76415         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
76416         People who are still concerned with buggy memcmp implementations
76417         can invoke gl_FUNC_MEMCMP themselves.
76418
76419 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76420
76421         * lib/regex_internal.h (BITSET_WORD_BITS):
76422         Work around a bug in 64-bit PGC (before version 6.1-2), where the
76423         preprocessor mishandles large unsigned values as if they were signed.
76424         Problem reported by Claudio Fontana in
76425         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
76426
76427 2006-01-10  Jim Meyering  <jim@meyering.net>
76428
76429         Avoid the double-free (first in fts_read, second in fts_close) that
76430         would occur when an `active' directory is made inaccessible (e.g.,
76431         via chmod a-x) during a traversal.
76432         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76433         before returning.  Reproduce this failure by
76434         mkdir -p a/b; cd a; chmod a-x . b
76435         Reported by Stavros Passas.
76436
76437         Sync from coreutils.
76438         * lib/sha1.c: Tweak grammar in a comment.
76439
76440 2006-01-10  Jim Meyering  <jim@meyering.net>
76441
76442         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
76443         Patch by Joerg Sonnenberger.
76444
76445 2006-01-10  Bruno Haible  <bruno@clisp.org>
76446
76447         * modules/readutmp: Depend on module free.
76448         * modules/strtok_r: Depend on module restrict.
76449
76450 2006-01-10  Bruno Haible  <bruno@clisp.org>
76451
76452         * modules/gettext (configure.ac): Add an invocation of
76453         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
76454
76455 2006-01-10  Bruno Haible  <bruno@clisp.org>
76456
76457         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
76458         Reported by Werner Lemberg <wl@gnu.org>.
76459
76460 2006-01-10  Bruno Haible  <bruno@clisp.org>
76461
76462         * lib/localcharset.c: Update from GNU gettext.
76463
76464 2006-01-10  Bruno Haible  <bruno@clisp.org>
76465
76466         * lib/argp.h (__const): Remove macro. Use const instead.
76467         * lib/argp-fmtstream.h (__const): Likewise.
76468         * lib/glob_.h (__const): Remove macro.
76469         * lib/glob-libc.h: Use const instead of __const.
76470
76471 2006-01-10  Bruno Haible  <bruno@clisp.org>
76472
76473         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
76474         variable.
76475         Needed to avoid an automake error regarding the 'gettext' module.
76476
76477 2006-01-09  Simon Josefsson  <jas@extundo.com>
76478
76479         * modules/inet_ntop (Depends-on): Add restrict.
76480
76481 2006-01-09  Simon Josefsson  <jas@extundo.com>
76482
76483         * modules/gc-rijndael-tests (License): Put under LGPL.
76484
76485         * modules/gc-des-tests (License): Likewise.
76486
76487         * modules/gc-arcfour-tests (License): Likewise.
76488
76489         * modules/gc-arctwo-tests (License): Likewise.
76490
76491         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
76492
76493         * modules/gc-hmac-sha1-tests (Files): Likewise.
76494
76495         * modules/gc-hmac-md5-tests (License): Likewise.
76496
76497         * modules/gc-sha1-tests (License): Likewise.
76498
76499         * modules/gc-md5-tests (License): Likewise.
76500
76501         * modules/gc-md4-tests (License): Likewise.
76502
76503         * modules/gc-md2-tests (License): Likewise.
76504
76505         * modules/gc-tests (License): Likewise.
76506
76507         * modules/des-tests (License): Likewise.
76508
76509         * modules/md4-tests (License): Likewise.
76510
76511         * modules/md2-tests (License): Likewise.
76512
76513 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76514
76515         Sync from coreutils:
76516
76517         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
76518         * modules/lib-ignore: New file.
76519         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
76520         chdir-safer.m4, lchmod.m4.
76521         * modules/openat: Add mkdirat.c, openat-priv.h.
76522
76523 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76524
76525         Sync from coreutils.
76526         * m4/lib-ignore.m4: New file.
76527         * m4/lchmod.m4: New file.
76528
76529 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         Sync from coreutils.
76532         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
76533         for write access: POSIX says that must fail.
76534         * lib/fts.c (diropen): Likewise.
76535         * lib/save-cwd.c (save_cwd): Likewise.
76536         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
76537         well, for minor improvements on hosts that lack O_DIRECTORY.
76538         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
76539         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
76540         Fall back on chown if open failed with EACCES.
76541
76542         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
76543         Report an error at compile-time if only a 1-second nominal clock
76544         resolution is found.
76545
76546         * lib/lchmod.h: New file.
76547         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
76548         (make_dir_parents): Use lchown rather than chown, and
76549         lchmod rather than chmod.
76550
76551         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
76552         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
76553         "proc" reported by n0dalus.
76554
76555         * lib/mountlist.c: Include <limits.h>.
76556         (dev_from_mount_options)
76557         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
76558         New function.  It no longer assumes "dev=" has the System V meaning
76559         on Linux (since it doesn't).  It also parses "dev=" more carefully.
76560         (read_file_system_list)
76561         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
76562         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
76563         dev= in that case.
76564
76565         * lib/posixtm.h (PDS_PRE_2000): New macro.
76566         * lib/posixtm.c (year): Arg is now syntax_bits rather than
76567         allow_century.  All usages changed.  Reject dates outside the range
76568         1969-1999 if PDS_PRE_2000 is used.
76569
76570 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         Sync from coreutils.
76573         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
76574         (Time of day items): Mention the possibility of leap seconds.
76575         Problem reported by Dr. David Alan Gilbert.
76576
76577 2006-01-09  Jim Meyering  <jim@meyering.net>
76578
76579         Sync from coreutils.
76580
76581         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
76582
76583         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
76584
76585         * lib/modechange.c (mode_compile): Reject an invalid mode string
76586         that starts with an octal digit.  From Andreas Gruenbacher.
76587
76588         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
76589         and dup to open_safer and dup_safer, respectively.
76590         (openat_permissive): Fix typo in comment.
76591
76592         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
76593         "gettext.h"; either no longer needed or are guaranteed by openat.h.
76594         (_): Remove; no longer needed.
76595         (openat): Renamed from rpl_openat; no need for rpl_openat
76596         since openat.h renames openat for us.
76597         Replace most of the body with a call to openat_permissive,
76598         to avoid duplicate code.
76599         Port to (probably hypothetical) environments were mode_t is
76600         wider than int.
76601         (openat_permissive): Require mode arg, so that we can check
76602         types better.  Put it just after flags.  Change cwd failure
76603         indicator from pointer-to-bool to pointer-to-errno-value.
76604         All callers changed.
76605         Invoke openat_save_fail and/or openat_restore_fail if
76606         cwd_errno is null, so that openat can call us.
76607         (openat_permissive, fdopendir, fstatat, unlinkat):
76608         Simplify errno handling to avoid some duplicate code,
76609         as it's OK to set errno on success.
76610         * lib/openat.h: Revamp code so that function macros depend on
76611         __OPENAT_PREFIX only, not also on AT_FDCWD.
76612         (openat_ro): Remove.  Caller changed to use openat_permissive.
76613         (openat_permissive): Now a macro, if not a function.
76614         (openat_restore_fail, openat_save_fail): Now always functions,
76615         since mkdirat needs them even if __OPENAT_PREFIX is defined.
76616
76617         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
76618         and openat.c.
76619         * lib/mkdirat.c: Include openat-priv.h.
76620         Remove definitions of macros defined therein.
76621         * lib/openat.c: Likewise.
76622
76623         * lib/mkdirat.c (mkdirat): New file and function.
76624         * lib/openat.h (mkdirat): Declare.
76625
76626         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
76627
76628         * lib/openat.h (openat_permissive): Declare.
76629         (openat_ro): Define.
76630
76631         * lib/openat.c (EXPECTED_ERRNO): New macro.
76632         (openat_permissive): New function -- used in remove.c rewrite.
76633         (all functions): Set errno just before returning, only if there
76634         was an actual failure.
76635         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
76636
76637         Emulate openat-family functions using Linux's procfs, if possible.
76638         Idea and some code based on Ulrich Drepper's glibc changes.
76639
76640         * lib/openat.c: (BUILD_PROC_NAME): New macro.
76641         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
76642         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
76643         before falling back on save_cwd and restore_cwd.
76644         (fdopendir, fstatat, unlinkat): Likewise.
76645
76646         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
76647         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
76648
76649         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
76650         as second argument to va_arg.  Otherwise, some versions of gcc
76651         warn that `if this code is reached, the program will abort'.
76652
76653 2006-01-09  Jim Meyering  <jim@meyering.net>
76654
76655         Sync from coreutils.
76656         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
76657         Require openat-priv.h.
76658
76659 2006-01-09  Bruno Haible  <bruno@clisp.org>
76660
76661         * modules/strnlen (Include): Use strnlen.h.
76662
76663 2006-01-09  Bruno Haible  <bruno@clisp.org>
76664
76665         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
76666
76667 2006-01-09  Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/sysexit_.h (EX_OK): New macro.
76670         Suggested by Martin Lambers <marlam@marlam.de>.
76671
76672 2006-01-09  Bruno Haible  <bruno@clisp.org>
76673
76674         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
76675         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
76676
76677 2006-01-09  Bruno Haible  <bruno@clisp.org>
76678
76679         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
76680         numbers.
76681
76682 2006-01-09  Bruno Haible  <bruno@clisp.org>
76683
76684         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
76685         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
76686         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
76687         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
76688
76689 2006-01-09  Bruno Haible  <bruno@clisp.org>
76690
76691         * build-aux/javacomp.sh.in: New file, moved from lib/.
76692         * modules/javacomp-script (Files): Update.
76693         (configure.ac): Add AC_CONFIG_FILES invocation.
76694         (EXTRA_DIST): Remove variable.
76695
76696         * build-aux/javaexec.sh.in: New file, moved from lib/.
76697         * modules/javaexec (Files): Update.
76698         (configure.ac): Add AC_CONFIG_FILES invocation.
76699         (EXTRA_DIST): Remove javaexec.sh.in.
76700
76701         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
76702         * modules/csharpcomp-script (Files): Update.
76703         (configure.ac): Add AC_CONFIG_FILES invocation.
76704         (EXTRA_DIST): Remove variable.
76705
76706         * build-aux/csharpexec.sh.in: New file, moved from lib/.
76707         * modules/csharpexec (Files): Update.
76708         (configure.ac): Add AC_CONFIG_FILES invocation.
76709         (EXTRA_DIST): Remove csharpexec.sh.in.
76710
76711 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76712
76713         Sync from coreutils.
76714
76715         Add POSIX ACL support
76716         * lib/acl.h (copy_acl, set_acl): Add declarations.
76717         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
76718         systems other than Linux.
76719         (chmod_or_fchmod): New function: use fchmod when possible,
76720         and chmod otherwise.
76721         (file_has_acl): Add a POSIX ACL implementation, with a
76722         Linux-specific subcase.
76723         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
76724         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
76725         acls are unsupported.
76726         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
76727         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
76728         are unsupported.
76729
76730 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76731
76732         Sync from coreutils.
76733         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
76734
76735 2006-01-07  Bruno Haible  <bruno@clisp.org>
76736
76737         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
76738         gl_EARLY.
76739
76740 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76741
76742         * lib/strftime.c (tzname): Don't declare if it is already #defined.
76743         Problem reported for Mingw by Mark Junker.
76744
76745 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76746
76747         * README: Gnulib normally doesn't generate a tarball.
76748
76749 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
76752         long int, not int, for nanosecond counts, so that people who are
76753         used to POSIX struct timespec won't be surprised.  Reported by Jim
76754         Meyering.
76755
76756 2005-12-28  Bruno Haible  <bruno@clisp.org>
76757
76758         * build-aux/config.rpath: Update from GNU gettext.
76759
76760 2005-12-16  Jim Meyering  <jim@meyering.net>
76761
76762         * modules/fprintftime: New module.
76763         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
76764
76765 2005-12-16  Jim Meyering  <jim@meyering.net>
76766
76767         * m4/fprintftime.m4: New file.
76768
76769 2005-12-16  Jim Meyering  <jim@meyering.net>
76770
76771         * lib/fprintftime.c, lib/fprintftime.h: New files.
76772
76773 2005-12-15  Simon Josefsson  <jas@extundo.com>
76774
76775         * modules/socklen (configure.ac): Fix M4 macro name, to align with
76776         new m4/socklen.m4.
76777
76778 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76779
76780         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
76781         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
76782
76783 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76784
76785         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
76786         * lib/argp-help.c (fill_in_uparams): Check if the constructed
76787         struct uparams is valid. Fall back to the default values if it is
76788         not.
76789
76790 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76791
76792         * modules/argp (Files): Add argp-pin.c
76793         (Depends-on): dirname
76794         (lib_SOURCES): Add argp-pin.c
76795
76796 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76797
76798         * m4/argp.m4:  Check if program_invocation_name and
76799         program_invocation_short_name are declared and define appropriate
76800         macros if they are not.
76801
76802 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76803
76804         * lib/argp-help.c (__argp_base_name): New function
76805         (__argp_short_program_name): Rewrite using __argp_base_name
76806         * lib/argp-namefrob.h: Define program_invocation_name and
76807         program_invocation_short_name if requested
76808         (__argp_base_name): Add prototype
76809         * lib/argp-parse.c (argp_def): Use gettext wrappers
76810         (argp_default_parser): Use __argp_base_name
76811         * lib/argp-pin.c: New file. Defines program_invocation_name and
76812         program_invocation_short_name on systems that lack them.
76813
76814 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76817         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76818         porting problem reported by Georg Schwarz in
76819         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76820
76821 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76824         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76825         porting problem reported by Georg Schwarz in
76826         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76827
76828 2005-12-05  Bruno Haible  <bruno@clisp.org>
76829
76830         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76831         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76832         Reported by Mark Junker <mjscod@gmx.de>.
76833
76834 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76837         Use implementation from Albert Chin, with some
76838         comments/corrections by Stepan Kasal and myself.
76839
76840 2005-12-02  Bruno Haible  <bruno@clisp.org>
76841
76842         * gnulib-tool (func_import): Accept GPLed build tool modules when
76843         --lgpl is given.
76844         * modules/csharpcomp-script: New file.
76845         * modules/csharpcomp: Depend on it.
76846         * modules/javacomp-script: New file.
76847         * modules/javacomp: Depend on it.
76848         Suggested by Simon Josefsson.
76849
76850 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76851
76852         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76853         statement, to work around an HP-UX 10.20 compiler bug reported by
76854         Peter O'Gorman.
76855
76856 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * modules/savedir (Depends-on): Add openat.
76859
76860 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76863         (uintmax_t) [defined uintmax_t]: Do not declare.
76864         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76865         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76866         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76867         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76868         sake of portability to weird hosts that C allows (though we don't
76869         know of any practical examples).
76870
76871         * lib/savedir.h (fdsavedir): New decl.
76872         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76873         contains most of the former guts of savedir.
76874         (savedir): Use savedirstream.
76875         Include "openat.h".
76876
76877 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         * modules/obstack (Files): Add m4/ulonglong.m4.
76880         Problem reported by Davide Angelocola.
76881
76882 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76883
76884         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76885         coreutils no longer futzes with rounding modes.
76886
76887 2005-11-14  Jim Meyering  <jim@meyering.net>
76888
76889         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76890         replacement of mkstemp.
76891
76892 2005-11-10  Simon Josefsson  <jas@extundo.com>
76893
76894         * lib/readline.c: Remove EOL.
76895
76896 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76897
76898         * modules/gethrxtime (Depends-on): Add gettime.
76899
76900 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76901
76902         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76903         or gettimeofday; no longer needed.
76904
76905 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76908         time business.
76909         (gethrxtime) [! (HAVE_NANOUPTIME
76910         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76911         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76912         our own approximation.
76913
76914 2005-11-08  Eric Blake  <ebb9@byu.net>
76915
76916         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76917
76918 2005-11-08  Eric Blake  <ebb9@byu.net>
76919
76920         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76921
76922 2005-11-04  Bruno Haible  <bruno@clisp.org>
76923
76924         * gnulib-tool: Implement --update mode.
76925
76926 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76927
76928         Fix porting problem reported by Theodoros V. Kalamatianos.
76929         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76930         Don't assume that futimes failing means we must fail.
76931
76932 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76935         variables to suggest the intended function of the PATH_MAX check.
76936
76937 2005-10-30  Kean Johnston  <jkj@sco.com>
76938
76939         Trivial changes to support SCO systems.
76940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76941         as PATH_MAX.
76942         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76943         where __ptr is null when no I/O is pending.
76944
76945 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76948         leave errno alone.  Problem reported by Dmitry V. Levin.
76949
76950 2005-10-28  Simon Josefsson  <jas@extundo.com>
76951
76952         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76953         Test more.
76954
76955         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76956
76957         * modules/md2, modules/md2-tests: New files.
76958
76959 2005-10-28  Simon Josefsson  <jas@extundo.com>
76960
76961         * m4/inet_ntop.m4: More tests.
76962
76963         * m4/gc-md2.m4, md2.m4: New file.
76964
76965 2005-10-28  Simon Josefsson  <jas@extundo.com>
76966
76967         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76968         "restrict" keywords, as per POSIX.  Protect the function
76969         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76970         Don't use K&R prototypes.  Check the sprintf return values.
76971         Re-define EAFNOSUPPORT if not present.  Indent.
76972
76973         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76974         suggested by Bruno Haible <bruno@clisp.org>.
76975
76976         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76977
76978         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76979
76980         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76981         libgcrypt).
76982
76983         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76984
76985         * lib/md2.h, lib/md2.c: New files.
76986
76987 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76990         errno alone.  Problem reported by Frederic Jolliton.
76991
76992 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * modules/verify (License): Change from GPL to LGPL.  This is a
76995         tiny module and there are apparently near-equivalents that are
76996         under the BSD license.
76997
76998 2005-10-24  Simon Josefsson  <jas@extundo.com>
76999
77000         * modules/sha1: Relicense to LGPL.
77001
77002 2005-10-24  Simon Josefsson  <jas@extundo.com>
77003
77004         * lib/md4.h: Shrink buffer size, now that we changed the type.
77005
77006 2005-10-23  Simon Josefsson  <jas@extundo.com>
77007
77008         * gnulib-tool (func_import): Fix --tests-base.
77009
77010 2005-10-22  Simon Josefsson  <jas@extundo.com>
77011
77012         * modules/arcfour (Depends-on): Need stdint.
77013
77014 2005-10-22  Simon Josefsson  <jas@extundo.com>
77015
77016         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
77017         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
77018
77019 2005-10-22  Simon Josefsson  <jas@extundo.com>
77020
77021         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
77022         suggested by Bruno Haible <bruno@clisp.org>.
77023
77024 2005-10-22  Simon Josefsson  <jas@extundo.com>
77025
77026         * lib/crc.h: Include stddef.h, for size_t.
77027
77028 2005-10-22  Simon Josefsson  <jas@extundo.com>
77029
77030         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
77031         arcfour_context struct (simplify test vector testing in GNU
77032         Shishi).
77033
77034 2005-10-21  Simon Josefsson  <jas@extundo.com>
77035
77036         * modules/des, modules/des-tests: New files.
77037
77038         * modules/gc-des, modules/gc-des-tests: New files.
77039
77040         * tests/test-des.c, tests/test-gc-des.c: New file.
77041
77042 2005-10-21  Simon Josefsson  <jas@extundo.com>
77043
77044         * modules/arctwo, modules/arctwo-tests: New files.
77045
77046         * tests/test-arctwo.c: New file.
77047
77048         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
77049
77050         * tests/test-gc-arctwo.c: New file.
77051
77052 2005-10-21  Simon Josefsson  <jas@extundo.com>
77053
77054         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
77055         Bruno Haible <bruno@clisp.org>.
77056
77057         * m4/gc-des.m4: New file.
77058
77059 2005-10-21  Simon Josefsson  <jas@extundo.com>
77060
77061         * m4/arctwo.m4: New file.
77062
77063         * m4/gc-arctwo.m4: New file.
77064
77065 2005-10-21  Simon Josefsson  <jas@extundo.com>
77066
77067         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
77068         block.
77069
77070 2005-10-21  Simon Josefsson  <jas@extundo.com>
77071
77072         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
77073         <bruno@clisp.org>.
77074
77075         * lib/hmac-sha1.c (hmac_sha1): Likewise.
77076
77077         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
77078         Bruno Haible <bruno@clisp.org>.
77079
77080         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
77081         <bruno@clisp.org>.
77082
77083 2005-10-21  Simon Josefsson  <jas@extundo.com>
77084
77085         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
77086
77087 2005-10-21  Simon Josefsson  <jas@extundo.com>
77088
77089         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
77090
77091 2005-10-21  Simon Josefsson  <jas@extundo.com>
77092
77093         * lib/des.h, lib/des.c: New files.
77094
77095         * lib/gc-gnulib.c: Support DES.c
77096
77097 2005-10-21  Simon Josefsson  <jas@extundo.com>
77098
77099         * lib/arctwo.h, lib/arctwo.c: New files.
77100
77101         * lib/gc-gnulib.c: Support ARCTWO.
77102
77103 2005-10-21  Simon Josefsson  <jas@extundo.com>
77104
77105         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
77106         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77107
77108 2005-10-21  Simon Josefsson  <jas@extundo.com>
77109
77110         * gnulib-tool (func_import, func_create_testdir): Define automake
77111         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
77112         Makefile.am snippet),
77113         suggested by Bruno Haible <bruno@clisp.org>.
77114
77115         * modules/gc (Makefile.am): Use it.
77116
77117 2005-10-21  Bruno Haible  <bruno@clisp.org>
77118
77119         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
77120         patch.
77121
77122 2005-10-19  Simon Josefsson  <jas@extundo.com>
77123
77124         * tests/test-gc-rijndael.c: New file.
77125
77126         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
77127
77128 2005-10-19  Simon Josefsson  <jas@extundo.com>
77129
77130         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
77131         interface too.
77132
77133 2005-10-19  Simon Josefsson  <jas@extundo.com>
77134
77135         * tests/test-gc-arcfour.c: New file.
77136
77137         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
77138
77139 2005-10-19  Simon Josefsson  <jas@extundo.com>
77140
77141         * modules/gc-md4, modules/gc-md4-tests: New file.
77142
77143         * tests/test-gc-md4.c: New file.
77144
77145 2005-10-19  Simon Josefsson  <jas@extundo.com>
77146
77147         * m4/gc-md4.m4: New file.
77148
77149 2005-10-19  Simon Josefsson  <jas@extundo.com>
77150
77151         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
77152         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
77153         <kasal@ucw.cz>.
77154
77155 2005-10-19  Simon Josefsson  <jas@extundo.com>
77156
77157         * m4/gc-arcfour.m4: New file.
77158
77159         * m4/gc-rijndael.m4: New file.
77160
77161 2005-10-19  Simon Josefsson  <jas@extundo.com>
77162
77163         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
77164
77165 2005-10-19  Simon Josefsson  <jas@extundo.com>
77166
77167         * lib/gc-gnulib.c: Support ARCFOUR.
77168
77169 2005-10-19  Simon Josefsson  <jas@extundo.com>
77170
77171         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
77172         support.
77173
77174         * lib/gc.h: Add ECB enum type.
77175
77176         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
77177
77178 2005-10-18  Simon Josefsson  <jas@extundo.com>
77179
77180         * tests/test-md5.c: New file.
77181
77182         * modules/md5-tests: New file.
77183
77184 2005-10-18  Simon Josefsson  <jas@extundo.com>
77185
77186         * tests/test-md4.c: New file.
77187
77188         * modules/md4, modules/md4-tests: New files.
77189
77190 2005-10-18  Simon Josefsson  <jas@extundo.com>
77191
77192         * m4/md4.m4: New file.
77193
77194 2005-10-18  Simon Josefsson  <jas@extundo.com>
77195
77196         * lib/md4.h, lib/md4.c: New files, based on md5.?.
77197
77198 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
77199
77200         * gnulib-tool (func_create_testdir): Omit the second check whether
77201         BUILT_SOURCES in nonempty.
77202
77203 2005-10-17  Simon Josefsson  <jas@extundo.com>
77204
77205         * tests/test-rijndael.c: New file.
77206
77207 2005-10-17  Simon Josefsson  <jas@extundo.com>
77208
77209         * modules/sha1: Depend on stdint instead of md5.
77210
77211         * modules/md5: Depend on stdint, remove uint32_t.
77212
77213 2005-10-17  Simon Josefsson  <jas@extundo.com>
77214
77215         * modules/gc-sha1-tests: New file.
77216
77217         * tests/test-gc-sha1.c: New file.
77218
77219 2005-10-17  Simon Josefsson  <jas@extundo.com>
77220
77221         * m4/md5.m4: Remove call to uint32_t.m4.
77222
77223 2005-10-17  Simon Josefsson  <jas@extundo.com>
77224
77225         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
77226
77227         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
77228         md5.h.
77229
77230         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
77231
77232         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
77233
77234 2005-10-17  Simon Josefsson  <jas@extundo.com>
77235
77236         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
77237
77238 2005-10-17  Simon Josefsson  <jas@extundo.com>
77239
77240         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
77241
77242 2005-10-17  Simon Josefsson  <jas@extundo.com>
77243
77244         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
77245
77246         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
77247
77248 2005-10-17  Bruno Haible  <bruno@clisp.org>
77249
77250         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
77251         that it can also be used in a test.
77252
77253 2005-10-16  Bruno Haible  <bruno@clisp.org>
77254
77255         * gnulib-tool (func_emit_tests_Makefile_am): Also define
77256         TESTS_ENVIRONMENT, so that individual tests can augment it.
77257
77258         * gnulib-tool (func_create_testdir): Use an intermediate target for
77259         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
77260         macros, like $(ALLOCA_H), which cannot be passed through the command
77261         line.
77262
77263 2005-10-15  Simon Josefsson  <jas@extundo.com>
77264
77265         * modules/rijndael-tests: New file.
77266
77267         * modules/rijndael: New file.
77268
77269 2005-10-15  Simon Josefsson  <jas@extundo.com>
77270
77271         * m4/rijndael.m4: New file.
77272
77273 2005-10-15  Simon Josefsson  <jas@extundo.com>
77274
77275         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
77276
77277         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
77278
77279 2005-10-14  Simon Josefsson  <jas@extundo.com>
77280
77281         * tests/test-arcfour.c: New file.
77282
77283         * modules/arcfour, modules/arcfour-tests: New files.
77284
77285 2005-10-14  Simon Josefsson  <jas@extundo.com>
77286
77287         * m4/arcfour.m4: New file.
77288
77289 2005-10-14  Simon Josefsson  <jas@extundo.com>
77290
77291         * lib/arcfour.h, lib/arcfour.c: New files.
77292
77293 2005-10-14  Roland McGrath  <roland@redhat.com>
77294
77295         Import from libc.  [BZ #1331]
77296         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
77297         macro argument.
77298         Reported by Matej Vela <vela@debian.org>.
77299
77300 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77301
77302         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
77303         include <wchar.h>; no longer needed.
77304
77305 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
77308
77309 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
77310         and  Ulrich Drepper  <drepper@redhat.com>
77311
77312         Import from libc.
77313         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
77314         instead of inline stream orientation test and two separate
77315         function calls.  Pay no attention to USE_IN_LIBIO.
77316
77317 2005-10-13  Simon Josefsson  <jas@extundo.com>
77318
77319         * modules/gc-hmac-md5-tests: New file.
77320
77321         * tests/test-gc-hmac-sha1.c: New file.
77322
77323         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
77324
77325         * modules/gc-hmac-md5-tests: New file.
77326
77327         * tests/test-gc-md5.c: New file.
77328
77329         * modules/gc-md5-tests: New file.
77330
77331 2005-10-13  Simon Josefsson  <jas@extundo.com>
77332
77333         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
77334         Move memory allocation outside of loop.
77335
77336 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
77339         intermediate directory is in a read-only file system.  Problem
77340         reported by Eric Blake.
77341
77342 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
77343
77344         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
77345
77346 2005-10-12  Simon Josefsson  <jas@extundo.com>
77347
77348         * tests/test-hmac-sha1.c: New file.
77349
77350         * modules/hmac-sha1-tests: New file.
77351
77352         * modules/hmac-sha1: New file.
77353
77354 2005-10-12  Simon Josefsson  <jas@extundo.com>
77355
77356         * modules/gc-sha1: New file.
77357
77358 2005-10-12  Simon Josefsson  <jas@extundo.com>
77359
77360         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
77361
77362         * tests/test-gc-pbkdf2-sha1.c: New file.
77363
77364 2005-10-12  Simon Josefsson  <jas@extundo.com>
77365
77366         * modules/gc-md5, modules/gc-hmac-md5: New files.
77367
77368         * modules/gc (Files): Remove md5, memxor and hmac files.
77369
77370 2005-10-12  Simon Josefsson  <jas@extundo.com>
77371
77372         * m4/gc-pbkdf2-sha1.m4: New file.
77373
77374         * m4/gc-hmac-sha1.m4: New file.
77375
77376         * m4/gc-sha1: New file.
77377
77378         * m4/hmac-sha1.m4: New file.
77379
77380 2005-10-12  Simon Josefsson  <jas@extundo.com>
77381
77382         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
77383
77384         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
77385
77386 2005-10-12  Simon Josefsson  <jas@extundo.com>
77387
77388         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
77389         suggested by Bruno Haible <bruno@clisp.org>.
77390
77391 2005-10-12  Simon Josefsson  <jas@extundo.com>
77392
77393         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
77394
77395 2005-10-12  Simon Josefsson  <jas@extundo.com>
77396
77397         * lib/gc-pbkdf2-sha1.c: New file.
77398
77399         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
77400
77401 2005-10-12  Simon Josefsson  <jas@extundo.com>
77402
77403         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
77404
77405         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
77406
77407 2005-10-12  Simon Josefsson  <jas@extundo.com>
77408
77409         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
77410         GC_USE_HMAC_MD5, respectively.
77411
77412         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
77413         (gc_md5): Fix typo.
77414
77415         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
77416
77417         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
77418
77419         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
77420
77421 2005-10-12  Bruno Haible  <bruno@clisp.org>
77422
77423         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
77424         Reported by Stepan Kasal <kasal@ucw.cz>.
77425
77426 2005-10-11  Simon Josefsson  <jas@extundo.com>
77427
77428         * tests/test-crc.c: New file.
77429
77430         * modules/crc, modules/crc-tests: New files.
77431
77432 2005-10-11  Simon Josefsson  <jas@extundo.com>
77433
77434         * m4/crc.m4: New file.
77435
77436 2005-10-11  Simon Josefsson  <jas@extundo.com>
77437
77438         * lib/gc.h: Add gc_hash and gc_hash_buffer.
77439
77440         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
77441
77442         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
77443
77444 2005-10-11  Simon Josefsson  <jas@extundo.com>
77445
77446         * lib/crc.h, lib/crc.c: New files.
77447
77448         * lib/gc.h (gc_hash_buffer): Add doc.
77449
77450 2005-10-11  Bruno Haible  <bruno@clisp.org>
77451
77452         * modules/c-strcasestr: New file.
77453         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
77454
77455 2005-10-11  Bruno Haible  <bruno@clisp.org>
77456
77457         * modules/c-strcase: New file.
77458         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
77459
77460 2005-10-11  Bruno Haible  <bruno@clisp.org>
77461
77462         * lib/strcasecmp.c: Include limits.h.
77463         (strcasecmp): Avoid integer overflow on exotic platforms.
77464         * lib/strncasecmp.c: Include limits.h.
77465         (strncasecmp): Avoid integer overflow on exotic platforms.
77466         Reported by Paul Eggert.
77467
77468 2005-10-11  Bruno Haible  <bruno@clisp.org>
77469
77470         * lib/c-strcasestr.h: New file, from GNU gettext.
77471         * lib/c-strcasestr.c: New file, from GNU gettext.
77472
77473 2005-10-11  Bruno Haible  <bruno@clisp.org>
77474
77475         * lib/c-strcase.h: New file, from GNU gettext.
77476         * lib/c-strcasecmp.c: New file, from GNU gettext.
77477         * lib/c-strncasecmp.c: New file, from GNU gettext.
77478
77479 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77480
77481         * modules/mempcpy (License): GPL -> LGPL.
77482         * modules/strchrnul (License): Likewise.
77483         * modules/sysexits (License): Likewise.
77484
77485 2005-10-08  Simon Josefsson  <jas@extundo.com>
77486
77487         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
77488
77489 2005-10-07  Simon Josefsson  <jas@extundo.com>
77490
77491         * m4/memxor.m4: Remove gl_C_RESTRICT call.
77492
77493 2005-10-06  Simon Josefsson  <jas@extundo.com>
77494
77495         * tests/test-hmac-md5.c: New file.
77496
77497         * modules/hmac-md5-tests: New file.
77498
77499         * modules/hmac-md5: New file.
77500
77501 2005-10-06  Simon Josefsson  <jas@extundo.com>
77502
77503         * m4/hmac-md5.m4: New file.
77504
77505         * m4/memxor.m4: Require gl_C_RESTRICT.
77506
77507 2005-10-06  Simon Josefsson  <jas@extundo.com>
77508
77509         * lib/memxor.c (memxor): Avoid casts and warnings.
77510
77511 2005-10-06  Simon Josefsson  <jas@extundo.com>
77512
77513         * lib/hmac-md5.c: New file.
77514
77515         * lib/hmac.h: New file.
77516
77517 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
77520         promotes to int, not unsigned int, to catch the AIX 5.3
77521         compiler bug.
77522
77523 2005-10-05  Simon Josefsson  <jas@extundo.com>
77524
77525         * modules/memxor: New file.
77526
77527         * modules/iconv (Files): Move config.rpath to havelib, it is used
77528         there.
77529
77530         * modules/havelib (Files): Add config.rpath.
77531
77532 2005-10-05  Simon Josefsson  <jas@extundo.com>
77533
77534         * m4/memxor.m4: New file.
77535
77536 2005-10-05  Simon Josefsson  <jas@extundo.com>
77537
77538         * lib/memxor.c (memxor): Fix compiler error.
77539
77540         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
77541         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
77542
77543         * lib/memxor.h, lib/memxor.c: New files.
77544
77545         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
77546         we assume all systems have it, suggested by Jim Meyering
77547         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
77548         any systems lack sys/socket.h; mingw32 is known to lack it, but we
77549         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
77550         same reasons.
77551
77552 2005-10-05  Simon Josefsson  <jas@extundo.com>
77553
77554         * config/srclist.txt: Add glibc bug 1423 for md5.h.
77555
77556 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
77559         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
77560         needed, since the source code now assumes these .h files.
77561
77562 2005-10-05  Derek Price  <derek@ximbiot.com>
77563
77564         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
77565
77566 2005-10-05  Bruno Haible  <bruno@clisp.org>
77567
77568         * modules/stdint (License): Change to LGPL.
77569
77570 2005-10-04  Simon Josefsson  <jas@extundo.com>
77571
77572         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
77573         D. Baushke" <mdb@gnu.org>.
77574
77575 2005-10-04  Bruno Haible  <bruno@clisp.org>
77576
77577         * lib/verify.h (verify_true): Provide alternative definition for C++.
77578
77579 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
77582         (SSIZE_MAX): New macro, if not already defined.
77583         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
77584         than 2 GiB.
77585
77586 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77587
77588         Sync from coreutils.
77589         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
77590         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
77591         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
77592         ULLONG_MAX doesn't work with 2.7.2.1.
77593
77594 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77595
77596         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
77597         From Ben Pfaff.
77598
77599         * modules/exclude (Depends-on): Depend on verify.
77600         * modules/strtoimax (Depends-on): Likewise.
77601         * modules/utimecmp (Depends-on): Likewise.
77602
77603 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77604
77605         * lib/exclude.c: Include verify.h.
77606         (verify): Remove.  All callers changed to use verify.h's version.
77607         * lib/strtoimax.c: Likewise.
77608         * lib/utimecmp.c: Likewis.e
77609
77610         Sync from coreutils.
77611         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
77612         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
77613         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
77614         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
77615         bother returning ENOSYS if settimeofday or stime fails; just let
77616         them return whatever errno they want to return.
77617         * lib/utimens.c: Include unistd.h, for dup2.
77618         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
77619         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
77620
77621 2005-10-02  Jim Meyering  <jim@meyering.net>
77622
77623         Sync from coreutils.
77624         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
77625         from glibc-2.2.5 that fails for read-only files.
77626
77627 2005-10-02  Jim Meyering  <jim@meyering.net>
77628
77629         Sync from coreutils.
77630         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
77631         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
77632         `#if HAVE_CONFIG_H'.
77633         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
77634         Remove AT_FDCWD test.
77635         Do not consume the fd unless successful.
77636         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
77637         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
77638         block, so that we don't even try to compile it if settimeofday is
77639         available.  This works around a compilation failure on OSF1 V5.1,
77640         due to stime requiring a `long int*' while tv_sec is `int'.
77641
77642 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
77643
77644         Sync from coreutils.
77645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
77646         against `yes', rather than just testing for nonempty.
77647
77648 2005-10-01  Simon Josefsson  <jas@extundo.com>
77649
77650         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
77651         and Darwin.
77652
77653         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
77654         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
77655         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
77656         freeaddrinfo and gai_strerror are declared by the POSIX headers.
77657         Check if struct addrinfo is declared.
77658
77659 2005-10-01  Simon Josefsson  <jas@extundo.com>
77660
77661         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
77662         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
77663         AI_* and EAI_* definitions.  Protect function declarations.
77664
77665 2005-10-01  Jim Meyering  <jim@meyering.net>
77666
77667         Sync from coreutils.
77668
77669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
77670         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
77671         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
77672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77673         in the inet and nsl libraries.  Required on Solaris 5.7.
77674
77675 2005-10-01  Jim Meyering  <jim@meyering.net>
77676
77677         Sync from coreutils.
77678         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77679         in the inet and nsl libraries.  Required on Solaris 5.7.
77680
77681 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
77682
77683         * lib/getdelim.c (getdelim): Remove unused variables.
77684
77685 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
77688         so that the code works even with ancient cpp.  Portability problem
77689         with GCC 2.7.2.1 reported by Thomas M.Ott.
77690
77691 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * modules/regex (Depends-on): Add strcase.
77694
77695         * modules/gethostname (Licence): Change from GPL to LGPL, since
77696         gethostname.c is a trivial implementation of a standard library
77697         function.
77698         * modules/poll (License): Change from GPL to LGPL, since it's
77699         derived from LGPL code.
77700
77701 2005-09-27  Jim Meyering  <jim@meyering.net>
77702
77703         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
77704         HAVE_CONFIG_H.
77705
77706         * lib/intprops.h (signed_type_or_expr__): Define.
77707         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
77708         for unsigned types.
77709
77710 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77711
77712         * lib/verify.h (verify_expr): Remove, replacing with:
77713         (verify_true): New macro that returns true instead of void.
77714         (verify_type__): Remove.
77715         (verify): Use verify_true rather than verify_type__.
77716
77717 2005-09-26  Bruno Haible  <bruno@clisp.org>
77718
77719         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
77720         is necessary.
77721         (lib_SOURCES): Remove mbchar.c.
77722         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
77723         (Files): Add m4/mbrtowc.m4.
77724         * modules/mbiter: Likewise.
77725         * modules/mbuiter: Likewise.
77726
77727 2005-09-26  Bruno Haible  <bruno@clisp.org>
77728
77729         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
77730         compile mbchar.c if they are not both present.
77731         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
77732         * m4/mbiter.m4 (gl_MBITER): Likewise.
77733         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
77734         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
77735         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
77736
77737 2005-09-25  Jim Meyering  <jim@meyering.net>
77738
77739         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
77740         also uses socklen_t.
77741
77742 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * lib/utimens.c (ENOSYS): Define if not already defined.
77745         (futimens): Support having a null PATH if the file descriptor
77746         is nonnegative.
77747
77748         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
77749         Remove.
77750         (__attribute): Define to empty unless GCC 3.1 or later.
77751         This works around a core dump on OpenBSD 3.4, which has GCC
77752         2.95.3, which dumps core when given __attribute__(()).  It also
77753         simplifies other tests, since we really don't want to bother with
77754         worrying about which ancient version of GCC supported what.
77755         Original problem reported by Yoann Vandoorselaere, with part of
77756         the fix suggested by Derek Price.
77757
77758 2005-09-24  Jim Meyering  <jim@meyering.net>
77759
77760         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
77761         so we can once again use a positive bitfield width of 1 -- now we
77762         don't have to explain why we were using a bitfield width of 2.
77763
77764 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77765
77766         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
77767         and similarly for the other external symbols.  Problem reported
77768         by James Gallager.
77769
77770         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
77771         bug reported by Jim Meyering.
77772
77773         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
77774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
77775         not needed, since socklen is a prerequisite module.
77776
77777 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
77780         Problem reported by Eric Blake.
77781         (getaddrinfo): Initialize se so that it's not garbage.
77782         Redo internal storage allocation so that it doesn't make unportable
77783         assumptions about alignment.
77784         Fix a memory leak.
77785
77786         * lib/utimens.c (futimens): Use futimesat if available.
77787         Prefer it to futimes since it doesn't have the futimes bug.
77788
77789         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
77790         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
77791         Instead, declare a function that returns a pointer to an array,
77792         and use verify_type__ to declare the size of the array.
77793         Problem and germ of a solution reported by Bruno Haible.
77794         (verify_type__): Use 2, not 1, for bitfield size, to avoid
77795         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
77796
77797 2005-09-23  Jim Meyering  <jim@meyering.net>
77798
77799         Sync from coreutils.
77800         Correct build failure (socklen_t not defined) on at least
77801         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
77802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
77803
77804 2005-09-23  Jim Meyering  <jim@meyering.net>
77805
77806         * modules/getaddrinfo (Depends-on): Add socklen.
77807
77808 2005-09-23  Bruno Haible  <bruno@clisp.org>
77809
77810         * tests/test-verify.c: New file.
77811
77812 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         Sync from coreutils.
77815
77816         * modules/argmatch (Depends-on): Add verify.
77817         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77818         unistd-safer.
77819         * modules/save-cwd (Depends-on): Likewise.
77820
77821         * modules/openat (Files): Add lib/openat-die.c.
77822         (Depends-on): Remove error, exitfail.
77823         Add dirname.
77824
77825         * modules/verify: New file.
77826         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77827         with "verify" module.
77828
77829 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         Sync from coreutils.
77832
77833         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77834         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77835         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77836         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77837         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77838         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77839         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77840         Don't bother checking for string.h, stdlib.h, unistd.h.
77841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77842         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77843         module's job.
77844         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77845         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77846
77847         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77848         (gl_GETDATE): Use it.
77849
77850         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77851
77852 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77853
77854         Sync from coreutils.
77855
77856         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77857         stat-time.h.
77858         * lib/argmatch.h: Include verify.h
77859         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77860         (ARGMATCH_ASSERT): Remove; unused.
77861         * lib/canonicalize.c: Assume STDC_HEADERS.
77862         * lib/exclude.c: Include "strcase.h".
77863         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77864         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77865         and stdio-safer.h.
77866         (getusershell): Call fopen, not fopen_safer.
77867         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77868         Do not include unistd-safer.h.
77869         (save_cwd): Don't call fd_safer; no longer needed
77870         now that we include fcntl--.h.
77871
77872         * lib/getdate.y (relative_time): New type.
77873         (RELATIVE_TIME_0): New constant.
77874         (parser_control): Use relative_time instead of doing it ourselves.
77875         (%union): Add new relative_time rel member.
77876         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77877         Now typeless.
77878         (relunit, relunit_snumber): Now of type rel.
77879         (zone, rel, relunit, get_date): Adjust to above changes.
77880
77881         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77882         Do not include unistd-safer.h.
77883         (getloadavg): Don't call fd_safer; no longer needed
77884         now that we include fcntl--.h.
77885
77886         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77887         (make_dir_parents): Treat ENOSYS like EEXIST.
77888
77889         Improve quality of diagnostics on restore_cwd failure.
77890         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77891         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77892         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77893         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77894         each time through the loop.  Do not diagnose restore_cwd failure;
77895         that is the caller's job (and perhaps the caller does not care).
77896
77897         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77898         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77899         If the file already exists but is not a directory, don't bother
77900         to try to make its parents.
77901         Close potential file descriptor leak if we can't chdir("/") (!).
77902         Don't always return true if chdir($PWD) fails; return true only
77903         if the requested action was done successfully (except for the
77904         chdir($PWD)).
77905         Don't log final directory unless we actually made it.
77906         Refactor to avoid duplicate code to fix up permissions.
77907         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77908
77909         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77910         to make it a bit faster and (I hope) clearer.
77911         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77912         Fix bug in formats like %2N.
77913
77914         * lib/verify.h: New file.
77915
77916 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77917
77918         Sync from coreutils.
77919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77920
77921 2005-09-22  Jim Meyering  <jim@meyering.net>
77922
77923         Sync from coreutils.
77924
77925         * m4/lstat.m4 (gl_FUNC_LSTAT):
77926         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77927         Remove obsolete comment.
77928         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77929         * m4/xstrtod.m4: Likewise.
77930
77931         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77932
77933 2005-09-22  Jim Meyering  <jim@meyering.net>
77934
77935         Sync from coreutils.
77936
77937         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77938
77939         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77940         the .tm_year member, since otherwise gcc-4.0 would now warn about
77941         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77942
77943         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77944         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77945
77946         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77947         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77948         when run in a time zone for which daylight savings time is in effect
77949         for the starting date.
77950
77951         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77952         stop us from restricting permissions of just-created absolute-named
77953         directories.
77954         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77955         to restore initial working directory.
77956         * lib/mkdir-p.c (make_dir_parents): New parameter:
77957         different_working_dir, to tell caller if/when we change the working
77958         directory and are unable to return to the initial one.
77959         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77960         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77961         `return false'.  This fixes a bug introduced on 2004-07-30.
77962
77963         * lib/openat.c (fdopendir): Be sure to close the supplied
77964         file descriptor before returning.  This makes our replacement
77965         implementation a little closer to Solaris's, where fdopendir
77966         ties the file descriptor to the returned DIR* pointer.
77967         * lib/openat.c (unlinkat): New function.
77968         * lib/openat.h (unlinkat): Add prototype.
77969         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77970         (openat_restore_fail): Rename from openat_restore_die.
77971         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77972
77973         Provide an alternative to exiting immediately upon save_cwd or
77974         restore_cwd failure.  Now, an application can arrange e.g.,
77975         to perform a longjump in that case.
77976         * lib/openat.c: Include dirname.h.
77977         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77978         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77979         and openat_restore_die rather than calling error directly.
77980         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77981
77982         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77983         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77984         define.
77985
77986         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77987         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77988                             int utc, int nanoseconds);
77989         Background:
77990         date should not have to allocate a megabyte of virtual memory to
77991         handle a format argument like +%1048575T.  When implemented with
77992         strftime, it must allocate such a buffer, use strftime to fill it
77993         in, print it, then free it.
77994         With fprintftime, it simply prints everything and exits.
77995         With no need for memory allocation, that's one fewer way to fail.
77996         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77997         optional field width, not before, so we accept %9:z, not %:9z.
77998         (my_strftime): Be sure to use L_('x') for literals.
77999
78000         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
78001         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
78002         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
78003         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
78004         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
78005         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
78006         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
78007         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
78008         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
78009         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
78010         * lib/xgethostname.c, lib/xreadlink.c:
78011         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
78012
78013         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
78014         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
78015         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
78016         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78017         and don't include <sys/file.h>).
78018
78019 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
78020
78021         Sync from coreutils.
78022
78023         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
78024         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
78025         [!LDAV_DONE]: Avoid unused variable warning.
78026
78027 2005-09-21  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/unicodeio.h (unicode_to_mb): New declaration.
78030
78031 2005-09-20  Derek Price  <derek@ximbiot.com>
78032
78033         * lib/getaddrinfo.c: Don't include <netdb.h> included from
78034         getaddrinfo.h.
78035
78036 2005-09-20  Bruno Haible  <bruno@clisp.org>
78037
78038         * gnulib-tool: Remove trailing slashes from the values specified for
78039         --source-base, --m4-base, --tests-base, --aux-dir.
78040         Suggested by Simon Josefsson <jas@extundo.com>.
78041
78042 2005-09-20  Bruno Haible  <bruno@clisp.org>
78043
78044         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
78045         func_modules_to_filelist, func_import, func_create_testdir): Make all
78046         sorting results locale-independent, so that gnulib-cache.m4 doesn't
78047         change when gnulib-tool is invoked in a different locale.
78048
78049 2005-09-19  Simon Josefsson  <jas@extundo.com>
78050
78051         * m4/socklen.m4: Fix typo.
78052
78053 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78054
78055         Use a consistent style for including <config.h>.
78056         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
78057         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
78058         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
78059         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
78060         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
78061         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
78062         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
78063         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
78064         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
78065         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
78066         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
78067         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
78068         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
78069         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
78070         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
78071         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
78072         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
78073         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
78074         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
78075         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
78076         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
78077         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
78078         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
78079         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
78080         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
78081         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
78082         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
78083         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
78084         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
78085         lib/xstrtoumax.c, lib/yesno.c:
78086         Standardize inclusion of config.h.
78087         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
78088         lib/inttostr.h:  Removed inclusion of config.h from header files.
78089         * lib/inttostr.c:  Adjusted in-tree users.
78090         * lib/timespec.h: Remove superfluous warning to include config.h.
78091         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
78092         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
78093         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
78094         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
78095         config.h with HAVE_CONFIG_H.
78096
78097 2005-09-19  Jim Meyering  <jim@meyering.net>
78098
78099         * modules/pathmax (License): Change to LGPL.
78100
78101 2005-09-19  Derek Price  <derek@ximbiot.com>
78102
78103         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
78104
78105 2005-09-19  Bruno Haible  <bruno@clisp.org>
78106
78107         * gnulib-tool (import): Provide default for --tests-base.
78108
78109 2005-09-19  Bruno Haible  <bruno@clisp.org>
78110
78111         * doc/quote.texi: New file, extracted from gnulib.texi.
78112         * doc/ctime.texi: New file, extracted from gnulib.texi.
78113         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
78114         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
78115         * doc/gnulib.texi: Include them.
78116
78117 2005-09-18  Bruno Haible  <bruno@clisp.org>
78118
78119         Portability fix.
78120         * gnulib-tool (func_readlink): New function.
78121         (func_ln_if_changed): Use it.
78122
78123 2005-09-18  Bruno Haible  <bruno@clisp.org>
78124
78125         * gnulib-tool: Support --with-tests also with --import.
78126         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
78127         (func_import): Use variables $testsbase and $inctests. Emit a
78128         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
78129         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
78130         SUBDIRS += $testsdir.
78131         (func_create_testdir): Update.
78132
78133 2005-09-18  Bruno Haible  <bruno@clisp.org>
78134
78135         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
78136         instead of $dry_run.
78137         (func_cp_if_changed, func_mv_if_changed): Remove functions.
78138         (func_ln_if_changed): Don't handle dry-run here.
78139         (func_import): In dry-run mode, detect more precisely which actions
78140         would be performed, and don't use "...ing" verbs.
78141
78142 2005-09-18  Bruno Haible  <bruno@clisp.org>
78143
78144         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
78145         (func_import): Use join on two temporary files instead of three nested
78146         loops, in order to determine which files are new or old.
78147
78148 2005-09-18  Bruno Haible  <bruno@clisp.org>
78149
78150         * gnulib-tool (func_import): Comment out code that spits out the
78151         new files with --dry-run.
78152
78153 2005-09-18  Bruno Haible  <bruno@clisp.org>
78154
78155         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
78156
78157 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78158
78159         * lib/stat-time.h: New file.
78160         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
78161         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
78162         in a different way.
78163         (timespec_cmp): New function.
78164         * lib/utimecmp.c: Include stat-time.h.
78165         (SYSCALL_RESOLUTION): Depend on whether various struct stat
78166         members exist, not on the obsolescent ST_MTIM_NSEC.
78167         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
78168
78169 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
78172
78173 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         * MODULES.html.sh (File system functions): Add stat-time.
78176         * modules/stat-time: New file.
78177         * modules/timespec (Files): Remove m4/st_mtim.m4; this
78178         is now done in a different way, by the stat-time module.
78179         * modules/utimecmp (Depends-on): Add stat-time.
78180
78181 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * m4/st_mtim.m4: Remove.  Superseded by...
78184         * m4/stat-time.m4: New file.
78185         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
78186         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
78187
78188 2005-09-15  Derek Price  <derek@ximbiot.com>
78189
78190         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
78191
78192 2005-09-15  Derek Price  <derek@ximbiot.com>
78193
78194         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
78195         * lib/regex_internal.c: Ditto, using this...
78196         (__GNUC_PREREQ): ...new macro.
78197         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
78198         using...
78199         (__GNUC_PREREQ): ...this new macro.
78200
78201         * lib/strstr.h: Include string.h. Define strstr as a macro here.
78202
78203 2005-09-15  Derek Price  <derek@ximbiot.com>
78204             Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
78207         changes, consolidating in...
78208         * lib/regex_internal.h: ...this file.
78209
78210 2005-09-13  Jim Meyering  <jim@meyering.net>
78211
78212         * lib/canon-host.c: Filter through gnu indent and reword comments
78213         slightly.
78214         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
78215
78216 2005-09-13  Derek Price  <derek@ximbiot.com>
78217
78218         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
78219         failure.
78220         Reported by Jim Meyering  <jim@meyering.net>.
78221
78222 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78223
78224         * lib/base64.c: Typo.
78225         (base64_encode): Put b64str in initialized data section.
78226
78227 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
78228
78229         Merge glibc and coreutils changes into gnulib, plus a few
78230         extra fixes.
78231         * lib/md5.c: Use #error rather than a string.
78232         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
78233         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
78234         (__attribute__): Define to empty for non recent-GCC.
78235         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
78236         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
78237         Renamed from their non-__ counterparts, with new macros replacing
78238         them if not _LIBC.  Add __THROW attribute.
78239         (rol): Remove.
78240         (struct md5_ctx): Align buffer if using GCC.
78241         * lib/sha1.h (struct sha1_ctx): Likewise.
78242         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
78243         The old name was backwards.
78244         (NOTSWAP): Remove; not used.
78245         (rol): New macro, moved here from md5.h.
78246         (sha1_process_block): Remove a FIXME that doesn't make sense.
78247
78248 2005-09-12  Derek Price  <derek@ximbiot.com>
78249
78250         Return usable errors from canon-host.
78251         * lib/canon-host.h: New file.
78252         * lib/canon-host.c (canon_host): Wrap...
78253         (canon_host_r): ...this new function, which now relies exclusively on
78254         getaddrinfo.
78255         (ch_strerror): New function.
78256         (last_cherror): New global.
78257         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
78258         interface.
78259         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
78260         void *.
78261         (freeaddrinfo): Free ai->ai_canonname when set.
78262
78263 2005-09-12  Derek Price  <derek@ximbiot.com>
78264
78265         Make canon-host require getaddrinfo.
78266         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
78267         AC_LIBSOURCE canon-host.h.  Call...
78268         (gl_PREREQ_CANON_HOST): ...this new function, which requires
78269         gl_GETADDRINFO.
78270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
78271
78272 2005-09-12  Derek Price  <derek@ximbiot.com>
78273
78274         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
78275         LGPL.
78276         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
78277
78278 2005-09-12  Derek Price  <derek@ximbiot.com>
78279
78280         * lib/gai_strerror.c: Include config.h when available.  Include
78281         getaddrinfo.h before other headers to test interface.
78282         Reported by Larry Jones <lawrence.jones@ugs.com>.
78283
78284 2005-09-12  Derek Price  <derek@ximbiot.com>
78285             Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         * modules/glob (Files): Add glob-libc.h.
78288
78289 2005-09-12  Derek Price  <derek@ximbiot.com>
78290             Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
78293         glob_.h, glob-libc.h.
78294         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
78295
78296 2005-09-12  Derek Price  <derek@ximbiot.com>
78297             Paul Eggert  <eggert@cs.ucla.edu>
78298
78299         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
78300         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
78301         protecting things that should be done only in gnulib contexts.
78302         * lib/glob_.h: New file, containing only the glob things needed for
78303         gnulib.
78304         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
78305         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
78306         (glob, globfree, glob_pattern_p): Now defined simply in terms of
78307         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
78308         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
78309         and to respect the namespace rules better.
78310
78311 2005-09-08  Simon Josefsson  <jas@extundo.com>
78312
78313         * modules/socklen: New file.
78314
78315 2005-09-08  Simon Josefsson  <jas@extundo.com>
78316
78317         * m4/socklen.m4: New file.
78318
78319 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78320
78321         * modules/utimens (Files): Add m4/utimbuf.m4, since
78322         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
78323         Reported by Sergey Poznyakoff.
78324
78325 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78326
78327         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
78328         definitions, since that's the preferred style in glibc.
78329         Fix a minor spacing issue, and update copyright notice to match
78330         glibc's.
78331
78332 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78333
78334         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
78335
78336 2005-09-06  Simon Josefsson  <jas@extundo.com>
78337
78338         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
78339         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
78340
78341 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
78344         warning.
78345
78346 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         * config/srclist.txt: Add glibc bug 1302.
78349
78350 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         Change bitset word type from unsigned int to unsigned long int,
78353         as this has better performance on typical 64-bit hosts.
78354         Port bitset code to hosts with unusual word sizes.
78355         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
78356         (build_collating_symbol):
78357         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
78358         argument is a bitset.  This is merely a style issue, but it makes
78359         it clearer that an entire array is expected.
78360         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
78361         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
78362         Port to the case where bitset_word is not the same as unsigned int.
78363         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78364         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
78365         Likewise.
78366         * lib/regexec.c (check_dst_limits_calc_pos_1,
78367         check_subexp_matching_top):
78368         (build_trtable, group_nodes_into_DFAstates):
78369         Likewise.
78370         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
78371         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
78372         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
78373         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
78374         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
78375         * lib/regcomp.c (optimize_subexps, lower_subexp):
78376         Work even if bitset_word has holes in its bitwise representation.
78377         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
78378         * lib/regexec.c (check_dst_limits_calc_pos_1,
78379         check_subexp_matching_top):
78380         Likewise.
78381         * lib/regex_internal.c (re_string_reconstruct):
78382         Don't assume UCHAR_MAX == 255.
78383         * lib/regex_internal.h (bitset_set_all): Likewise.
78384         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
78385         All uses changed.
78386         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
78387         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
78388         All uses changed.
78389         (BITSET_WORD_MAX): New macro.
78390         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
78391         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
78392         (bitset_empty, bitset_copy):
78393         Prefer sizeof (bitset) to multiplying it out ourselves.
78394         (bitset_not_merge): Remove; unused.
78395         (bitset_contain): Return bool, not unsigned int with one bit on.
78396         All callers changed.
78397         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
78398         alignment than re_node_set; do this by defining a new internal
78399         type struct dests_alloc and using it to allocate memory.
78400
78401 2005-09-05  Bruno Haible  <bruno@clisp.org>
78402
78403         * gnulib-tool (func_import): Fix comparison in handling of symbolic
78404         links.
78405
78406 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
78407
78408         * modules/size_max (Makefile.am): Add size_max.h
78409
78410 2005-09-04  Derek Price  <derek@ximbiot.com>
78411
78412         * gnulib-tool (func_import): Fix reversed $symbolic logic.
78413
78414 2005-09-03  Simon Josefsson  <jas@extundo.com>
78415
78416         * gnulib-tool: Fix typo.
78417
78418 2005-09-03  Simon Josefsson  <jas@extundo.com>
78419
78420         * config/srclist.txt: Add glibc bug 1293.
78421
78422 2005-09-03  Derek Price  <derek@ximbiot.com>
78423
78424         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
78425         From Larry Jones <lawrence.jones@ugs.com>.
78426
78427 2005-09-02  Simon Josefsson  <jas@extundo.com>
78428
78429         * modules/socklen: New file.
78430
78431 2005-09-02  Simon Josefsson  <jas@extundo.com>
78432
78433         * modules/havelib: New module.
78434
78435         * modules/gettext, modules/iconv, modules/lock, modules/readline:
78436         Use havelib.
78437
78438 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78439
78440         Check for arithmetic overflow when calculating sizes, to prevent
78441         some buffer-overflow issues.  These patches are conservative, in the
78442         sense that when I couldn't determine whether an overflow was possible,
78443         I inserted a run-time check.
78444         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
78445         macros.
78446         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
78447         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
78448         (re_xnrealloc, re_x2nrealloc): New inline functions.
78449         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
78450         parse_bracket_exp):
78451         (build_equiv_class, build_charclass): Check for arithmetic overflow
78452         in size expression calculations.
78453         * lib/regex_internal.c (re_string_realloc_buffers):
78454         (build_wcs_upper_buffer, re_node_set_add_intersect):
78455         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
78456         (re_dfa_add_node, register_state): Likewise.
78457         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
78458         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
78459         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
78460         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
78461
78462 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78463
78464         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78465         m4/ulonglong.m4.  Problem reported by Martin Lambers.
78466
78467 2005-09-02  Bruno Haible  <bruno@clisp.org>
78468
78469         Support for lib vs. lib64 distinction on biarch platforms.
78470         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
78471         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
78472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
78473
78474 2005-09-02  Bruno Haible  <bruno@clisp.org>
78475
78476         * gnulib-tool (import): In the other first-use case, provide defaults
78477         as well.
78478
78479 2005-09-02  Bruno Haible  <bruno@clisp.org>
78480
78481         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
78482         patches not yet found in the latest gettext release.
78483
78484 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
78487         to avoid a collision with bits/local_lim.h in glibc.
78488         All uses changed.  Problem reported by Dmitry V. Levin in
78489         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
78490
78491         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
78492         bugs in int versus size_t comparisons.
78493         (re_string_context_at): Fix bug where the code assumed that
78494         Idx is signed.
78495
78496         Use bool where appropriate.
78497         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
78498         All callers changed.
78499         (calc_eclosure_iter): Likewise, for ROOT arg.
78500         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
78501         (build_charclass_op): Likewise, for NON_MATCH arg.
78502         * lib/regex_internal.c (re_string_allocate, re_string_construct):
78503         (re_string_construct_common): Likewise, for ICASE arg.
78504         * lib/regexec.c (re_search_2_stub, re_search_stub):
78505         Likewise, for RET_LEN arg.
78506         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
78507         (set_regs): Likewise, for FL_BACKTRACK arg.
78508         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
78509         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
78510         (calc_eclosure_iter, parse_bracket_exp):
78511         Use bool for internal variables that are booleans.
78512         * lib/regexec.c (re_search_internal, check_matching,
78513         proceed_next_node):
78514         (set_regs, build_sifted_states, sift_states_bkref):
78515         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
78516         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78517         (find_collation_sequence_value):
78518         Likewise.
78519         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
78520         (re_node_set_compare):
78521         Return bool, not int. All callers changed.
78522         * lib/regexec.c (check_halt_node_context, check_dst_limits):
78523         (build_trtable, check_node_accept): Likewise.
78524         * lib/regex_internal.h: Include stdbool.h.
78525
78526         Fix bugs uncovered when converting to bool.
78527         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
78528         failure instead of charging ahead blindly.
78529         * lib/regex_internal.c (register_state): Likewise.
78530         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
78531         for freeing internal storage.
78532         (group_nodes_into_DFA_states): Use unsigned int, not int, for
78533         bitset pieces used as boolean, to avoid undefined behavior
78534         on hosts that do int overflow checking.
78535
78536 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78537
78538         * config/srclist.txt: Add glibc bugs 1285-1287.
78539
78540 2005-09-01  Jim Meyering  <jim@meyering.net>
78541
78542         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
78543         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
78544         Require gl_STAT_MACROS, too.
78545
78546 2005-09-01  Bruno Haible  <bruno@clisp.org>
78547
78548         * gnulib-tool (import): In the first-use case, provide defaults.
78549
78550 2005-09-01  Bruno Haible  <bruno@clisp.org>
78551
78552         * gnulib-tool (func_import): Remove the .tmp files.
78553
78554 2005-09-01  Bruno Haible  <bruno@clisp.org>
78555
78556         * gnulib-tool (func_import): Fix handling of symbolic links.
78557
78558 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
78561         old glibc regex code mishandles strings longer than 2**31 bytes.
78562         This patch fixes this when the regex code is used in gnulib
78563         (i.e., outside glibc).
78564
78565         This patch should not affect the use of the regex code inside
78566         glibc.  No doubt this problem also needs to be handled for glibc
78567         as well, but the result will be an incompatible change to the
78568         glibc ABI, and the old ABI will have to be supported too.  That
78569         can be the the subject for another patch.
78570
78571         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
78572         governing whether the rest of this patch is active.  By default,
78573         the macro is disabled and the patch has no effect.
78574         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
78575         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
78576         (struct re_pattern_buffer, re_search, re_search_2, re_match):
78577         (re_match_2, re_set_registers): Use the new types.
78578         * lib/regex_internal.h (Idx, re_hashval_t): New types.
78579         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
78580         New macros.
78581         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
78582         (re_string_context_at, bin_tree_t, re_dfastate_t):
78583         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
78584         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
78585         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
78586         (re_string_char_size_at, re_string_wchar_at):
78587         (re_string_elem_size_at):
78588         Use the new types and macros to port to 64-bit hosts.
78589         Use unsigned types for internal values, so that the code
78590         mostly works even for arrays larger than SSIZE_MAX.
78591         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
78592         (search_duplicated_node, calc_eclosure_iter, fetch_number):
78593         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
78594         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
78595         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
78596         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
78597         (calc_inveclosure, parse_dup_op, build_range_exp):
78598         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
78599         (fetch_number, create_token_tree, mark_opt_subexp):
78600         Likewise.
78601         * lib/regex_internal.c (re_string_construct_common,
78602         create_ci_newstate):
78603         (create_cd_newstate, re_string_allocate, re_string_construct):
78604         (re_string_realloc_buffers, build_wcs_upper_buffer):
78605         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78606         (re_string_reconstruct, re_string_peek_byte_case):
78607         (re_string_fetch_byte_case, re_string_context_at):
78608         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78609         (re_node_set_init_copy, re_node_set_add_intersect):
78610         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78611         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78612         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78613         (re_acquire_state, re_acquire_state_context, register_state):
78614         Likewise.
78615         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
78616         search_cur_bkref_entry):
78617         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
78618         (re_search_internal, re_search_2_stub, re_search_stub)
78619         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
78620         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
78621         (update_cur_sifted_state, check_dst_limits):
78622         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78623         (check_subexp_limits, sift_states_bkref, merge_state_array):
78624         (check_subexp_matching_top, get_subexp, get_subexp_sub):
78625         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
78626         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78627         (expand_bkref_cache, check_node_accept_bytes):
78628         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
78629         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
78630         (acquire_init_state_context, check_halt_node_context):
78631         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
78632         (sift_states_backward, clean_state_log_if_needed):
78633         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
78634         (find_recover_state, transit_state_sb, transit_state_mb):
78635         (transit_state_bkref, build_trtable, match_ctx_clean):
78636         Likewise.
78637         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
78638         to work around an assumption that REG_MISSING is negative.
78639
78640         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
78641         (seek_collating_symbol_entry) [defined _LIBC]:
78642         (lookup_collation_sequence_value) [defined _LIBC]:
78643         (build_range_exp, build_collating_symbol) [defined _LIBC]:
78644         Use prototypes rather than old-style function definitions.
78645         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
78646         (transit_state_sb) [0]:
78647         (find_collation_sequence_value) [defined _LIBC]: Likewise.
78648
78649         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
78650         rm_eo.
78651
78652         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
78653         (optimize_subexps, lower_subexp):
78654         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
78655         since the signed shift might overflow.  Use 1u<<31 instead.
78656         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78657         Likewise.
78658         * lib/regexec.c (check_dst_limits_calc_pos_1,
78659         check_subexp_matching_top): Likewise.
78660
78661         * lib/regcomp.c (optimize_subexps, lower_subexp):
78662         Use CHAR_BIT rather than 8, for clarity.
78663         * lib/regexec.c (check_dst_limits_calc_pos_1):
78664         (check_subexp_matching_top): Likewise.
78665         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
78666         have to worry about portability issues when shifting it left.
78667         Remove no-longer-needed test for table_size > 0.
78668         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
78669         in a word, as the resulting behavior is undefined.
78670         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
78671         in one case, a <= should have been an <, and in another case the
78672         whole test was missing.
78673         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
78674         the standard name CHAR_BIT.
78675         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
78676         this is not true on one's complement and signed-magnitude hosts.
78677
78678         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
78679         next_last_offset.
78680         (struct re_dfa_t): Remove unused member states_alloc.
78681         * lib/regcomp.c (init_dfa): Don't initialize unused members.
78682
78683 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
78686         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
78687         and large-file glibc and in 32-bit large-file Solaris.
78688
78689 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
78692         lengths fit in regoff_t; this isn't true if regoff_t is the same
78693         width as size_t.
78694         * lib/regex.c (re_search_internal): 5th arg is LAST_START
78695         (= START + RANGE) instead of RANGE.  This avoids overflow
78696         problems when regoff_t is the same width as size_t.
78697         All callers changed.
78698         (re_search_2_stub): Check for overflow when adding the
78699         sizes of the two strings.
78700         (re_search_stub): Check for overflow when adding START
78701         to RANGE; if it occurs, substitute the extreme value.
78702
78703 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
78706
78707 2005-08-31  Jim Meyering  <jim@meyering.net>
78708
78709         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
78710         a pointer-to-const.
78711         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
78712         (register_state): Likewise.
78713         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
78714         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78715         (group_nodes_into_DFAstates): Likewise.
78716
78717 2005-08-31  Jim Meyering  <jim@meyering.net>
78718
78719         * check-module: Add a FIXME comment.
78720
78721 2005-08-31  Eric Blake  <ebb9@byu.net>
78722
78723         * modules/unistd-safer (Files): Add unistd--.h.
78724         * modules/stdio-safer (Files): Add stdio--.h.
78725
78726 2005-08-31  Derek Price  <derek@ximbiot.com>
78727
78728         * lib/getdelim.c (getdelim): Return EOF on EOF.
78729         Reported by Larry Jones <lawrence.jones@ugs.com>.
78730
78731 2005-08-31  Bruno Haible  <bruno@clisp.org>
78732
78733         Avoid unnecessary diffs in the generated lib/Makefile.am.
78734         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
78735         the generated files.
78736         (func_import): Don't set cmd.
78737
78738 2005-08-31  Bruno Haible  <bruno@clisp.org>
78739
78740         * lib/strstr.c: Include <stddef.h>, for NULL.
78741         * lib/strcasestr.c: Likewise.
78742         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78743
78744 2005-08-31  Bruno Haible  <bruno@clisp.org>
78745
78746         * gnulib-tool: New option --macro-prefix.
78747         (func_import): Use macro_prefix.
78748         (import): Handle option --macro-prefix.
78749
78750 2005-08-31  Bruno Haible  <bruno@clisp.org>
78751
78752         * gnulib-tool (import): Rename most ac_* variables to cached_*.
78753         Also use new variables cached_lgpl, cached_libtool.
78754
78755 2005-08-31  Bruno Haible  <bruno@clisp.org>
78756
78757         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
78758         always instantiating them.
78759
78760 2005-08-31  Bruno Haible  <bruno@clisp.org>
78761
78762         * gnulib-tool (func_import): Read the previous cached settings
78763         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
78764         earlier added by gnulib but are now dropped. Warn when a gnulib file
78765         overwrites a non-gnulib file.
78766
78767 2005-08-31  Bruno Haible  <bruno@clisp.org>
78768
78769         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
78770         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
78771         projects that don't keep autogenerated files in CVS. Put into
78772         actioncmd only the specified modules, not the transitive closure.
78773
78774 2005-08-31  Bruno Haible  <bruno@clisp.org>
78775
78776         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
78777         Create directories that shall be filled.
78778         (import): Don't look for gl_* macros in configure.ac. Recurse across
78779         all directories containing a gnulib-cache.m4 files, if meaningful.
78780
78781 2005-08-31  Bruno Haible  <bruno@clisp.org>
78782
78783         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
78784         (import): Set seen_libtool when we see gl_LIBTOOL.
78785
78786 2005-08-31  Bruno Haible  <bruno@clisp.org>
78787
78788         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
78789         declaration macro definitions from generated gnulib.m4.
78790
78791 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
78792
78793         * lib/iconvme.h: Add prototype for iconv_alloc.
78794
78795 2005-08-29  Simon Josefsson  <jas@extundo.com>
78796
78797         * lib/iconvme.c: Fix errno.
78798
78799 2005-08-29  Bruno Haible  <bruno@clisp.org>
78800
78801         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
78802         that it works when the directory contains spaces.
78803
78804 2005-08-29  Bruno Haible  <bruno@clisp.org>
78805
78806         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78807
78808 2005-08-29  Bruno Haible  <bruno@clisp.org>
78809
78810         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78811         Emit more advice.
78812
78813 2005-08-29  Bruno Haible  <bruno@clisp.org>
78814         and Stepan Kasal  <kasal@ucw.cz>
78815
78816         * check-module: If more parameters are given, check each of them
78817         separately; add more exceptions, as noted by Jim Meyering.
78818         (check_module): New procedure.
78819         (%exempt_header): Now contains all exceptions.
78820
78821 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78822
78823         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78824
78825 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78826
78827         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78828
78829 2005-08-28  Bruno Haible  <bruno@clisp.org>
78830
78831         * m4/gnulib-tool.m4: New file.
78832
78833 2005-08-27  Jim Meyering  <jim@meyering.net>
78834
78835         * modules/unistd-safer (Files): Add pipe-safer.c.
78836         * modules/fcntl-safer (Files): Add creat-safer.c.
78837
78838 2005-08-27  Jim Meyering  <jim@meyering.net>
78839
78840         * m4/stdlib-safer.m4: New file.  From coreutils.
78841         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78842         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78843         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78844         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78845         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78846
78847 2005-08-27  Jim Meyering  <jim@meyering.net>
78848
78849         * lib/fopen-safer.c: Merge minor changes from coreutils.
78850         * lib/dup-safer.c: Likewise.
78851         * lib/fd-safer.c: Likewise.
78852
78853         Merge from coreutils.
78854         * lib/stdio--.h: New file.
78855         * lib/stdlib--.h: New file.
78856         * lib/mkstemp-safer.c: New file.
78857
78858         GNU tar needs these.
78859         * lib/pipe-safer.c: New file.
78860         * lib/creat-safer.c: New file.
78861         * lib/fcntl--.h (creat): Define to creat_safer.
78862         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78863         * lib/unistd--.h (pipe): Define to pipe_safer.
78864         * lib/unistd-safer.h: Declare pipe_safer.
78865
78866 2005-08-26  Simon Josefsson  <jas@extundo.com>
78867
78868         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78869         Haible <bruno@clisp.org>.
78870
78871 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * lib/regex_internal.h: Remove all references to
78874         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78875         or better.
78876         (bitset_not, bitset_merge, bitset_not_merge):
78877         (bitset_mask, re_string_allocate, re_string_construct):
78878         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78879         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78880         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78881         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78882         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78883         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78884         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78885         (re_acquire_state_context):
78886         Remove unnecessary forward decls.
78887         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78888         Put __attribute at function definition,
78889         now that the function decl has been removed.
78890         * lib/regex_internal.c (re_string_peek_byte_case):
78891         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78892         Likewise.
78893
78894 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78895
78896         * m4/regex.m4: Add AC_PREREQ(2.50).
78897         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78898
78899 2005-08-25  Simon Josefsson  <jas@extundo.com>
78900
78901         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78902         __fsetlocking.
78903
78904 2005-08-25  Simon Josefsson  <jas@extundo.com>
78905
78906         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78907         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78908         GLIBC specific code.
78909
78910 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         Make regex safe for g++.  This fixes one real bug (an "err"
78913         that should have been "*err").  g++ problem reported by
78914         Sam Steingold.
78915         * lib/regex_internal.h (re_calloc): New macro, consistent with
78916         re_malloc etc.  All callers of calloc changed to use re_calloc.
78917         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78918         not int.  All callers changed.
78919         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78920         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78921         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78922         (find_recover_state): Change "err" to "*err"; this fixes what
78923         appears to be a real bug.
78924         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78925         versus int.
78926
78927 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         * modules/regex (Depends-on): Add malloc, since the code
78930         assumes that !malloc(0) means failure.
78931
78932 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78935
78936         alloca modernization/simplification for regex.
78937         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78938         needs to be at the start of the file, and can be moved into
78939         regex_internal.h and simplified.
78940         * lib/regex_internal.h: Include <alloca.h>.
78941         (__libc_use_alloca) [!defined _LIBC]: New macro.
78942         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78943         now works outside glibc.
78944
78945 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         * config/srclist.txt: Add glibc bugs 1241, 1245.
78948
78949 2005-08-25  Jim Meyering  <jim@meyering.net>
78950
78951         * lib/open-safer.c: Include <config.h>.
78952         Otherwise, we'd lose LARGEFILE support in any file using
78953         e.g. "fcntl--.h"
78954
78955 2005-08-25  Bruno Haible  <bruno@clisp.org>
78956
78957         * m4/minmax.m4: Require autoconf 2.52.
78958         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78959         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78960         alternatives of translit over the alphabet.
78961         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78962
78963 2005-08-24  Simon Josefsson  <jas@extundo.com>
78964
78965         * tests/test-getpass.c: New file.
78966
78967 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78970         for GNU regex features.
78971
78972 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78975         * lib/regex.h (regerror): Likewise.
78976
78977         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78978         requires this.  (The code never needed it.)
78979
78980         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78981         All uses of recently-renamed identifiers changed to use the new,
78982         POSIX-compliant names.  The code will build and run just fine
78983         without these changes, but it's better to eat our own dog food
78984         and use the standard-conforming names.
78985
78986         * lib/regex.h: Fix a multitude of POSIX name space violations.
78987         These changes have an effect only for programs that define
78988         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78989         do not change anything for programs compiled in the normal way.
78990         Also, there is no effect on the ABI.
78991
78992         (_REGEX_SOURCE): New macro.
78993         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78994         defined and _GNU_SOURCE is not; this fixes a name space violation.
78995
78996         Rename the following macros to obey POSIX requirements.
78997         The old names are still visible as macros if _REGEX_SOURCE is defined.
78998         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78999         RE_BACKSLASH_ESCAPE_IN_LISTS.
79000         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
79001         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
79002         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
79003         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
79004         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
79005         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
79006         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
79007         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
79008         (REG_INTERVALS): renamed from RE_INTERVALS.
79009         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
79010         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
79011         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
79012         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
79013         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
79014         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
79015         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
79016         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
79017         RE_UNMATCHED_RIGHT_PAREN_ORD.
79018         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
79019         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
79020         (REG_DEBUG): renamed from RE_DEBUG.
79021         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
79022         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
79023         unusual, since we can't clash with the POSIX REG_ICASE.
79024         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
79025         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
79026         (REG_NO_SUB): renamed from RE_NO_SUB.
79027         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
79028         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
79029         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
79030         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
79031         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
79032         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
79033         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
79034         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
79035         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
79036         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
79037         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
79038         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
79039         RE_SYNTAX_POSIX_MINIMAL_BASIC.
79040         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
79041         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
79042         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
79043         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
79044         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
79045         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
79046         (REG_FIXED): Renamed from REGS_FIXED.
79047         (REG_NREGS): Renamed from RE_NREGS.
79048
79049         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
79050         of other REG_* macros, since POSIX says the user is allowed to
79051         #undef these macros selectively.
79052
79053         (reg_errcode_t): Update comment stating what other tables need
79054         to be consistent.
79055
79056         Rename the following enum values to obey POSIX requirements.
79057         The old names are still visible as macros.
79058         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
79059         is not defined, since GNU is supposed to be a superset of POSIX as
79060         much as possible, and since we want reg_errcode_t to be a signed
79061         type for implementation consistency.
79062         (_REG_NOERROR): Renamed from REG_NOERROR.
79063         (_REG_NOMATCH): Renamed from REG_NOMATCH.
79064         (_REG_BADPAT): Renamed from REG_BADPAT.
79065         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
79066         (_REG_ECTYPE): Renamed from REG_ECTYPE.
79067         (_REG_EESCAPE): Renamed from REG_EESCAPE.
79068         (_REG_ESUBREG): Renamed from REG_ESUBREG.
79069         (_REG_EBRACK): Renamed from REG_EBRACK.
79070         (_REG_EPAREN): Renamed from REG_EPAREN.
79071         (_REG_EBRACE): Renamed from REG_EBRACE.
79072         (_REG_BADBR): Renamed from REG_BADBR.
79073         (_REG_ERANGE): Renamed from REG_ERANGE.
79074         (_REG_ESPACE): Renamed from REG_ESPACE.
79075         (_REG_BADRPT): Renamed from REG_BADRPT.
79076         (_REG_EEND): Renamed from REG_EEND.
79077         (_REG_ESIZE): Renamed from REG_ESIZE.
79078         (_REG_ERPAREN): Renamed from REG_ERPAREN.
79079         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
79080         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
79081         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
79082         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
79083
79084         (_REG_RE_NAME, _REG_RM_NAME): New macros.
79085         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
79086         changed.  But support the old name if the new one is not defined
79087         and if _REGEX_SOURCE.
79088
79089         Change the following member names in struct re_pattern_buffer.
79090         The old names are still supported if !_REGEX_SOURCE.
79091         The new names are always supported, regardless of _REGEX_SOURCE.
79092         (re_buffer): Renamed from buffer.
79093         (re_allocated): Renamed from allocated.
79094         (re_used): Renamed from used.
79095         (re_syntax): Renamed from syntax.
79096         (re_fastmap): Renamed from fastmap.
79097         (re_translate): Renamed from translate.
79098         (re_can_be_null): Renamed from can_be_null.
79099         (re_regs_allocated): Renamed from regs_allocated.
79100         (re_fastmap_accurate): Renamed from fastmap_accurate.
79101         (re_no_sub): Renamed from no_sub.
79102         (re_not_bol): Renamed from not_bol.
79103         (re_not_eol): Renamed from not_eol.
79104         (re_newline_anchor): Renamed from newline_anchor.
79105
79106         Change the following member names in struct re_registers.
79107         The old names are still supported if !_REGEX_SOURCE.
79108         The new names are always supported, regardless of _REGEX_SOURCE.
79109         (rm_num_regs): Renamed from num_regs.
79110         (rm_start): Renamed from start.
79111         (rm_end): Renamed from end.
79112
79113         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
79114         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
79115         Prepend __ to parameter names.
79116
79117         Undo yesterday's changes.
79118
79119 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
79122         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
79123         lib/regex.c.
79124
79125 2005-08-24  Jim Meyering  <jim@meyering.net>
79126
79127         Sync from coreutils.
79128         * m4/fcntl-safer.m4: New file.
79129
79130         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
79131         and object files for this module.
79132
79133 2005-08-24  Jim Meyering  <jim@meyering.net>
79134
79135         Sync from coreutils.
79136         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
79137
79138 2005-08-24  Jim Meyering  <jim@meyering.net>
79139
79140         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
79141         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
79142
79143 2005-08-24  Jim Meyering  <jim@meyering.net>
79144
79145         * modules/fcntl-safer: New module.
79146         * modules/fts (Depends-on): Add fcntl-safer.
79147         * MODULES.html.sh (File descriptor based Input/Output):
79148         Add fcntl-safer.
79149
79150 2005-08-24  Bruno Haible  <bruno@clisp.org>
79151
79152         Support for unit test modules.
79153         * modules/README: Mention tests modules.
79154         * modules/TEMPLATE-TESTS: New file.
79155         * gnulib-tool: New options --extract-tests-module, --with-tests and
79156         --tests-base (unused for the moment).
79157         (testsbase, inctests): New variables.
79158         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
79159         (func_verify_module): Exclude TEMPLATE-TESTS.
79160         (func_verify_nontests_module, func_verify_tests_module): New functions.
79161         (func_get_dependencies): Add implicit dependency for tests modules.
79162         (func_get_tests_module): New function.
79163         (func_modules_transitive_closure): When --with-tests was specified,
79164         include the unit tests as well, unless explicitly avoided.
79165         (func_emit_lib_Makefile_am): Ignore the tests modules here.
79166         (func_emit_tests_Makefile_am): New function.
79167         (func_create_testdir): When --with-tests was specified, emit a
79168         tests/ directory.
79169         * MODULES.html.sh (Future developments): Update.
79170
79171 2005-08-24  Bruno Haible  <bruno@clisp.org>
79172
79173         * modules/tls-tests: New file.
79174         * tests/test-tls.c: New file, from GNU gettext.
79175
79176 2005-08-24  Bruno Haible  <bruno@clisp.org>
79177
79178         * modules/lock-tests: New file.
79179         * tests/test-lock.c: New file, from GNU gettext.
79180
79181 2005-08-24  Bruno Haible  <bruno@clisp.org>
79182
79183         * lib/lock.h: Add multiple inclusion guard.
79184         * lib/tls.h: Add multiple inclusion guard.
79185
79186 2005-08-24  Bruno Haible  <bruno@clisp.org>
79187
79188         * gnulib-tool: Add support for the --aux-dir option to
79189         --create-testdir, --create-megatestdir, --test, --megatest.
79190         (func_create_testdir, func_create_megatestdir): Optionally emit a
79191         AC_CONFIG_AUX_DIR directive.
79192         (create-testdir, create-megatestdir, test, megatest): Provide a
79193         default value for $auxdir.
79194
79195 2005-08-24  Bruno Haible  <bruno@clisp.org>
79196
79197         * gnulib-tool (import): Use compound statement instead of subshell
79198         where possible.
79199
79200 2005-08-24  Bruno Haible  <bruno@clisp.org>
79201
79202         * gnulib-tool (import): Change --aux-dir default to "build-aux".
79203
79204 2005-08-24  Bruno Haible  <bruno@clisp.org>
79205
79206         * gnulib-tool (func_version): Update.
79207
79208 2005-08-24  Bruno Haible  <bruno@clisp.org>
79209
79210         * gnulib-tool (func_import, func_create_testdir,
79211         func_create_megatestdir): Quote all autoconf macro arguments.
79212
79213 2005-08-24  Bruno Haible  <bruno@clisp.org>
79214
79215         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
79216         option --force, because --force causes the aclocal.m4 of each
79217         subdirectory to be newer than the corresponding config.h.in.
79218
79219 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
79222         All contents moved to gl_REGEX.
79223         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
79224         assume that it does.
79225
79226 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79227
79228         * lib/regex.h (REG_NOSYS)
79229         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
79230         Define, since POSIX requires it as of 2001.
79231         (_REG_ENOSYS)
79232         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
79233         New private symbol, used to keep the enum signed in all cases.
79234         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
79235         Youngman in
79236         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
79237
79238         * lib/regex_internal.c (re_string_skip_chars, register_state):
79239         (calc_state_hash):
79240         Remove forward decls; no longer needed now that we use prototypes.
79241         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
79242         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
79243         (clean_state_log_if_needed): Likewise.
79244
79245 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * config/srclist.txt: Add glibc bugs 1231-1233.
79248
79249 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79250
79251         Fix problems reported by Sam Steingold in
79252         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
79253         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
79254         assumed that reg_errcode_t is a signed type, which is not
79255         necessarily true if _XOPEN_SOURCE is not defined.
79256         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
79257         since some compilers warn about it otherwise.
79258
79259 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79260
79261         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
79262         (init_word_char, create_initial_state, duplicate_node_closure):
79263         (fetch_token, peek_token_bracket, build_range_exp):
79264         (build_collating_symbol): Remove forward decls; no longer needed
79265         now that we use prototypes.
79266
79267         * lib/regcomp.c:
79268         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
79269         (re_compile_fastmap_iter, regcomp, regerror, regfree):
79270         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
79271         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
79272         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
79273         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
79274         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
79275         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
79276         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
79277         (build_range_exp, build_collating_symbol, parse_bracket_exp):
79278         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
79279         (build_charclass, build_charclass_op, fetch_number, create_tree):
79280         (create_token_tree, mark_opt_subexp, duplicate_tree):
79281         Use prototypes rather than old-style definitions.
79282
79283         * lib/regex_internal.c:
79284         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
79285         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
79286         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79287         (re_string_reconstruct, re_string_peek_byte_case):
79288         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
79289         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79290         (re_node_set_init_copy, re_node_set_add_intersect):
79291         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79292         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79293         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79294         (re_acquire_state, re_acquire_state_context, register_state):
79295         (create_ci_newstate, create_cd_newstate, free_state):
79296         Likewise.
79297         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
79298         re_search_2):
79299         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
79300         (re_search_internal, prune_impossible_nodes):
79301         (acquire_init_state_context, check_matching, static):
79302         (check_halt_node_context, check_halt_state_context, proceed_next_node):
79303         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
79304         (update_regs, sift_states_backward, build_sifted_states):
79305         (clean_state_log_if_needed, merge_state_array):
79306         (update_cur_sifted_state, add_epsilon_src_nodes):
79307         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
79308         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
79309         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
79310         (find_recover_state, check_subexp_matching_top, transit_state_mb):
79311         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
79312         (check_arrival, check_arrival_add_next_nodes):
79313         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79314         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79315         (check_node_accept_bytes, check_node_accept, extend_buffers):
79316         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
79317         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
79318         (sift_ctx_init):
79319         Likewise.
79320
79321         * lib/regex_internal.h:
79322         (re_string_allocate, re_string_construct, re_string_reconstruct):
79323         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
79324         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
79325         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
79326         (re_string_context_at, re_string_peek_byte_case):
79327         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
79328         is defined, since we now use prototypes always.
79329
79330         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
79331         C89 or better.  All uses removed.
79332
79333 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * config/srclist.txt: Add glibc bugs 1220-1227.
79336
79337 2005-08-20  Jim Meyering  <jim@meyering.net>
79338
79339         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
79340         of unused local, dfa.
79341
79342 2005-08-20  Bruno Haible  <bruno@clisp.org>
79343
79344         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
79345
79346 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
79349         (re_node_set_insert_last, re_dfa_add_node):
79350         Rename local variables to avoid GCC shadowing warnings.
79351
79352 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79353
79354         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
79355         [defined lint]: Suppress bogus uninitialized-variable warnings.
79356
79357         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
79358         and let the caller return REG_ESPACE if out of space.  This
79359         removes an uninitialied-variable warning with GCC 4.0.1, and also
79360         avoids taking the address of a local variable.  All callers
79361         changed.
79362
79363 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
79366         $LIBCSRC/posix/regexec.c.
79367         Add glibc bug 1217 for regcomp.c.
79368
79369 2005-08-19  Jim Meyering  <jim@meyering.net>
79370
79371         * lib/regexec.c (proceed_next_node): Redo local variables to
79372         avoid GCC shadowing warnings.
79373
79374 2005-08-18  Bruno Haible  <bruno@clisp.org>
79375
79376         * lib/strstr.c (strstr): Fix return value in multibyte case.
79377         * lib/strcasestr.c (strcasestr): Likewise.
79378
79379 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
79382
79383 2005-08-17  Jim Meyering  <jim@meyering.net>
79384
79385         Make the %s format (seconds since the epoch) work for a negative
79386         number and when used with a zero-padded field width, e.g. %015s.
79387
79388         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
79389         label so that it precedes the code to set `digits'.  Otherwise,
79390         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
79391         print `00-22'.  Now, it prints `-0022', as it should.
79392
79393 2005-08-17  Bruno Haible  <bruno@clisp.org>
79394
79395         * modules/strstr (Files): Add m4/mbrtowc.m4.
79396         (Depends-on): Add mbuiter.
79397
79398 2005-08-17  Bruno Haible  <bruno@clisp.org>
79399
79400         * modules/strcasestr: New file.
79401         * MODULES.html.sh (String handling, based on ANSI C 89): Add
79402         strcasestr.
79403
79404 2005-08-17  Bruno Haible  <bruno@clisp.org>
79405
79406         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
79407
79408 2005-08-17  Bruno Haible  <bruno@clisp.org>
79409
79410         * modules/mbuiter: New file.
79411         * MODULES.html.sh (Extended multibyte and wide character utilities):
79412         Add mbuiter.
79413
79414 2005-08-17  Bruno Haible  <bruno@clisp.org>
79415
79416         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
79417         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
79418
79419 2005-08-17  Bruno Haible  <bruno@clisp.org>
79420
79421         * m4/strcasestr.m4: New file.
79422
79423 2005-08-17  Bruno Haible  <bruno@clisp.org>
79424
79425         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
79426         * lib/strstr.c: Completely rewritten, with multibyte locale support.
79427
79428 2005-08-17  Bruno Haible  <bruno@clisp.org>
79429
79430         * lib/strcasestr.h: New file.
79431         * lib/strcasestr.c: New file.
79432
79433 2005-08-17  Bruno Haible  <bruno@clisp.org>
79434
79435         * lib/strcasecmp.c: Use mbuiter.h.
79436
79437 2005-08-17  Bruno Haible  <bruno@clisp.org>
79438
79439         * lib/mbuiter.h: New file.
79440
79441 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79442
79443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
79444         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
79445         and gl_GETOPT are both invoked via different paths (as happens
79446         with GNU tar CVS because it uses both argp and getopt), the former
79447         wins.
79448
79449 2005-08-16  Bruno Haible  <bruno@clisp.org>
79450
79451         * modules/tls: New file.
79452         * MODULES.html.sh (Multithreading): Add tls.
79453
79454 2005-08-16  Bruno Haible  <bruno@clisp.org>
79455
79456         * modules/strnlen1: New file.
79457         * MODULES.html.sh (String handling): Add strnlen1.
79458
79459 2005-08-16  Bruno Haible  <bruno@clisp.org>
79460
79461         * modules/strcase (Files): Add m4/mbrtowc.m4.
79462         (Depends-on): Add strnlen1, mbchar.
79463
79464 2005-08-16  Bruno Haible  <bruno@clisp.org>
79465
79466         * modules/mbiter: New file.
79467         * MODULES.html.sh (Extended multibyte and wide character utilities):
79468         Add mbiter.
79469
79470 2005-08-16  Bruno Haible  <bruno@clisp.org>
79471
79472         * modules/mbfile: New file.
79473         * MODULES.html.sh (Extended multibyte and wide character utilities):
79474         Add mbfile.
79475
79476 2005-08-16  Bruno Haible  <bruno@clisp.org>
79477
79478         * modules/mbchar: New file.
79479         * MODULES.html.sh (Extended multibyte and wide character utilities):
79480         New section.
79481
79482 2005-08-16  Bruno Haible  <bruno@clisp.org>
79483
79484         * m4/tls.m4: New file, from GNU gettext.
79485
79486 2005-08-16  Bruno Haible  <bruno@clisp.org>
79487
79488         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
79489         always.
79490         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
79491
79492 2005-08-16  Bruno Haible  <bruno@clisp.org>
79493
79494         * m4/mbiter.m4: New file.
79495
79496 2005-08-16  Bruno Haible  <bruno@clisp.org>
79497
79498         * m4/mbfile.m4: New file.
79499
79500 2005-08-16  Bruno Haible  <bruno@clisp.org>
79501
79502         * m4/mbchar.m4: New file.
79503
79504 2005-08-16  Bruno Haible  <bruno@clisp.org>
79505
79506         * lib/tls.h: New file, from GNU gettext.
79507         * lib/tls.c: New file, from GNU gettext.
79508
79509 2005-08-16  Bruno Haible  <bruno@clisp.org>
79510
79511         * lib/strnlen1.h: New file.
79512         * lib/strnlen1.c: New file.
79513
79514 2005-08-16  Bruno Haible  <bruno@clisp.org>
79515
79516         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
79517         (mbi_init): Update.
79518         (mbi_avail, mbi_advance): Let the iteration end before the terminating
79519         NUL byte, not after it.
79520
79521 2005-08-16  Bruno Haible  <bruno@clisp.org>
79522
79523         * lib/strcase.h (strcasecmp): Add note in comments.
79524         * lib/strncasecmp.c: Use code from strcasecmp.c.
79525         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
79526         (strcasecmp): Work correctly in multibyte locales.
79527
79528 2005-08-16  Bruno Haible  <bruno@clisp.org>
79529
79530         * lib/mbiter.h: New file.
79531
79532 2005-08-16  Bruno Haible  <bruno@clisp.org>
79533
79534         * lib/mbfile.h: New file.
79535
79536 2005-08-16  Bruno Haible  <bruno@clisp.org>
79537
79538         * lib/mbchar.h: New file.
79539         * lib/mbchar.c: New file.
79540
79541 2005-08-16  Bruno Haible  <bruno@clisp.org>
79542
79543         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
79544         the valid ones. Makes the comparison operations transitive:
79545         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
79546         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
79547
79548 2005-08-15  Simon Josefsson  <jas@extundo.com>
79549
79550         * modules/ssize_t (License): Change to 'unlimited'.
79551
79552         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
79553
79554 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
79557         Add comments for each pending glibc patch.
79558
79559 2005-08-15  Bruno Haible  <bruno@clisp.org>
79560
79561         * lib/regex.h (__restrict_arr): Don't define to __restrict if
79562         __cplusplus is defined.
79563
79564 2005-08-14  Jim Meyering  <jim@meyering.net>
79565
79566         Sync from coreutils.
79567
79568         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
79569         Use the hash-table-based cycle-detection code not just when
79570         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
79571         Reported by James Youngman in
79572         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
79573         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
79574         FTS_TIGHT_CYCLE_CHECK.
79575         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
79576         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
79577         once again.
79578         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
79579         * lib/fts.c (fd_safer): Remove decl.
79580         Include fcntl--.h rather than unistd-safer.h
79581         (fts_safe_changedir): Don't call fd_safer; no longer needed
79582         now that we include fcntl--.h.
79583
79584 2005-08-12  Simon Josefsson  <jas@extundo.com>
79585
79586         * modules/getndelim2: Use ssize_t module.
79587         * modules/getnline: Likewise.
79588         * modules/safe-read: Likewise.
79589         * modules/xreadlink: Likewise.
79590
79591         * modules/ssize_t: New file.
79592
79593 2005-08-12  Simon Josefsson  <jas@extundo.com>
79594
79595         * m4/readline.m4: Look for termcap, curses or ncurses if required.
79596
79597 2005-08-12  Simon Josefsson  <jas@extundo.com>
79598
79599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79600         ssize_t.
79601
79602 2005-08-12  Simon Josefsson  <jas@extundo.com>
79603
79604         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
79605         readline, getdelim and check_version.
79606         (Support for systems lacking ISO C 99: Sizes of integer types):
79607         Add size_max.
79608
79609 2005-08-12  Bruno Haible  <bruno@clisp.org>
79610
79611         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
79612
79613 2005-08-11  Simon Josefsson  <jas@extundo.com>
79614
79615         * modules/readline: New file.
79616
79617         * modules/strnlen (Files): Add strnlen.h.
79618
79619 2005-08-11  Simon Josefsson  <jas@extundo.com>
79620
79621         * m4/readline.m4: New file.
79622
79623 2005-08-11  Simon Josefsson  <jas@extundo.com>
79624
79625         * lib/readline.h, readline.c: New file.
79626
79627 2005-08-11  Simon Josefsson  <jas@extundo.com>
79628
79629         * doc/gnulib.texi (Initial import, Finishing touches): Mention
79630         gl_AVOID.
79631
79632 2005-08-11  Bruno Haible  <bruno@clisp.org>
79633
79634         * lib/strnlen.h (strnlen): Change parameter name to match comment.
79635
79636 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
79637
79638         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
79639
79640 2005-08-10  Simon Josefsson  <jas@extundo.com>
79641
79642         * tests/test-iconvme.c: New file.
79643
79644 2005-08-10  Simon Josefsson  <jas@extundo.com>
79645
79646         * m4/strnlen.m4: New file.
79647
79648         * m4/strndup.m4: Don't check for strnlen declaration, done in
79649         strnlen.m4.
79650
79651 2005-08-10  Simon Josefsson  <jas@extundo.com>
79652
79653         * lib/strndup.c: Use strnlen.h.
79654
79655         * lib/strnlen.h: New file.
79656
79657 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79658
79659         * README: Typos.
79660
79661 2005-08-02  Simon Josefsson  <jas@extundo.com>
79662
79663         * modules/readline: New file.
79664
79665 2005-08-02  Simon Josefsson  <jas@extundo.com>
79666
79667         * modules/getdelim: New file.
79668
79669         * modules/getline: Rewrite, don't use getndelim2.
79670
79671 2005-08-02  Simon Josefsson  <jas@extundo.com>
79672
79673         * m4/getline.m4: Separate out getdelim stuff into separate module.
79674
79675         * m4/getdelim.m4: New file.
79676
79677 2005-08-02  Simon Josefsson  <jas@extundo.com>
79678
79679         * lib/getline.h, getline.c: Rewrite.
79680
79681         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
79682
79683 2005-07-31  Bruno Haible  <bruno@clisp.org>
79684
79685         * lib/lock.h (gl_lock_initializer): New macro.
79686         (gl_lock_define_initialized): Use it.
79687         (gl_rwlock_initializer): New macro.
79688         (gl_rwlock_define_initialized): Use it.
79689         (gl_recursive_lock_initializer): New macro.
79690         (gl_recursive_lock_define_initialized): Use it.
79691
79692 2005-07-30  Karl Berry  <karl@gnu.org>
79693
79694         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
79695         Report from Ben Pfaff, regarding getopt.
79696
79697 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
79700         normal way.
79701         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
79702         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
79703         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
79704         (gl_GETOPT): Use the new macros.  Most of the implementation
79705         is moved to the new macros.  This is for programs like Emacs
79706         that don't want all the functionality of gl_GETOPT.
79707
79708 2005-07-26  Bruno Haible  <bruno@clisp.org>
79709
79710         * m4/lock.m4: Update from GNU gettext.
79711
79712 2005-07-26  Bruno Haible  <bruno@clisp.org>
79713
79714         * lib/lock.h: Update from GNU gettext.
79715         * lib/lock.c: Update from GNU gettext.
79716
79717 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
79718
79719         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
79720         obsolescent AC_TRY_RUN.  Include the default includes files, for
79721         'exit'.
79722
79723 2005-07-24  Bruno Haible  <bruno@clisp.org>
79724
79725         * modules/visibility: New file.
79726         * MODULES.html.sh (Misc): Add visibility.
79727
79728 2005-07-24  Bruno Haible  <bruno@clisp.org>
79729
79730         * m4/visibility.m4: New file.
79731
79732 2005-07-24  Bruno Haible  <bruno@clisp.org>
79733
79734         * doc/visibility.texi: New file.
79735
79736 2005-07-22  Bruno Haible  <bruno@clisp.org>
79737
79738         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
79739         $(ALLOCA_H), redundant through BUILT_SOURCES.
79740         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
79741         redundant through BUILT_SOURCES.
79742         * modules/byteswap (Makefile.am): Remove explicit dependency on
79743         $(BYTESWAP_H), redundant through BUILT_SOURCES.
79744         * modules/fnmatch (Makefile.am): Remove explicit dependency on
79745         $(FNMATCH_H), redundant through BUILT_SOURCES.
79746         * modules/getopt (Makefile.am): Remove explicit dependency on
79747         $(GETOPT_H), redundant through BUILT_SOURCES.
79748         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
79749         redundant through BUILT_SOURCES.
79750         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
79751         redundant through BUILT_SOURCES.
79752         * modules/stdbool (Makefile.am): Remove explicit dependency on
79753         $(STDBOOL_H), redundant through BUILT_SOURCES.
79754         * modules/stdint (Makefile.am): Remove explicit dependency on
79755         $(STDINT_H), redundant through BUILT_SOURCES.
79756         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
79757         Remove explicit dependency on $(SYSEXITS_H).
79758         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
79759
79760 2005-07-18  Simon Josefsson  <jas@extundo.com>
79761
79762         * lib/check-version.c (check_version): Accept identical versions too.
79763
79764 2005-07-18  Bruno Haible  <bruno@clisp.org>
79765
79766         * modules/lock: New file.
79767         * MODULES.html.sh (Multithreading): New section.
79768
79769 2005-07-18  Bruno Haible  <bruno@clisp.org>
79770
79771         * m4/lock.m4: New file, from GNU gettext.
79772
79773 2005-07-18  Bruno Haible  <bruno@clisp.org>
79774
79775         * lib/lock.h: New file, from GNU gettext.
79776         * lib/lock.c: New file, from GNU gettext.
79777
79778 2005-07-18  Bruno Haible  <bruno@clisp.org>
79779
79780         * lib/lock.h (gl_once_t): New type.
79781         (gl_once_define, gl_once): New macros.
79782         * lib/lock.c (fresh_once): New variable.
79783         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
79784         functions.
79785
79786 2005-07-16  Simon Josefsson  <jas@extundo.com>
79787
79788         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
79789         workaround, suggested by Bruno.
79790
79791 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * modules/xalloc (Depends-on): Add xalloc-die.
79794         * modules/xvasprintf (Depends-on): Add xalloc-die.
79795
79796 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
79799         with a minor change.
79800
79801 2005-07-15  Bruno Haible  <bruno@clisp.org>
79802
79803         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
79804         When using lib/poll.c, define poll as rpl_poll.
79805
79806 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79807
79808         * modules/argp (Depends-on): Remove unlocked-io.
79809
79810 2005-07-14  Derek Price  <derek@ximbiot.com>
79811
79812         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79813         for glob symlink bug.
79814
79815 2005-07-14  Bruno Haible  <bruno@clisp.org>
79816
79817         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79818         Instead, test for *_unlocked function declarations directly.
79819
79820 2005-07-11  Simon Josefsson  <jas@extundo.com>
79821
79822         * modules/size_max: New file.
79823
79824         * modules/xsize: Depend on size_max module for size_max.m4.
79825
79826 2005-07-11  Simon Josefsson  <jas@extundo.com>
79827
79828         * lib/size_max.h: New file.
79829
79830 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79833         copyright symbol and the year.
79834         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79835         (version_etc_va): Use parameterized copyright notice.
79836         Reword to conform to the current GNU coding standards.
79837
79838 2005-07-11  Karl Berry  <karl@gnu.org>
79839
79840         * doc/gnulib.texi (Quoting): new node.
79841         (Initial import): more info, from Patrice.
79842
79843 2005-07-11  Bruno Haible  <bruno@clisp.org>
79844
79845         * gnulib-tool (func_usage): Document option --avoid.
79846         (Command line options): Handle --avoid.
79847         (func_acceptable): New function.
79848         (func_modules_transitive_closure): Use it.
79849
79850 2005-07-11  Bruno Haible  <bruno@clisp.org>
79851
79852         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79853         Reported by Jim Meyering.
79854
79855 2005-07-10  Bruno Haible  <bruno@clisp.org>
79856
79857         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79858         Needed when size_t is smaller than 'unsigned int'.
79859         Reported by Paul Eggert.
79860
79861 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79862
79863         * modules/argp (Depends-on): Add unlocked-io
79864
79865 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79866
79867         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79868         block of defines.
79869
79870 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79871
79872         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79873         fix now.
79874
79875 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79876         and Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79879         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79880
79881 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * modules/regex (Files): Add lib/regex_internal.c,
79884         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79885         (Depends-on): Add extensions.
79886         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79887
79888 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79891         pathconf.
79892         * m4/same.m4 (gl_SAME): Likewise.
79893         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79894
79895         * m4/regex.m4: Adjust to new libc regex implementation.
79896         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79897         all the .c and .h parts of (the new) regex.
79898         Quote the m4 stuff better.
79899         Check for RE_ICASE bug of old gnulib.
79900         Check for REG_STARTEND of recent libc.
79901         Rename local variables from jm_* to gl_*.
79902         Quote operand of "test -f".
79903         Say "recent enough" version of libc, not "version 2".
79904         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79905         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79906         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79907         Remove check for btowc, isascii.
79908         Require AM_LANGINFO_CODESET.
79909
79910 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79911
79912         * lib/regex.c, regex.h: Sync from libc.
79913         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79914         * lib/regexec.c:
79915         New files, synced from libc, except that regex_internal.h
79916         currently has a small porting fix.
79917
79918 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79919
79920         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79921         regex_internal.c, regexec.c.
79922         Add regex_internal.h too, but as a comment, since the libc version
79923         is currently broken in gnulib mode.
79924
79925 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79926
79927         Support programs like Emacs that use gnulib but not gettext.
79928         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79929         * modules/gettext-h: New file.
79930         * modules/gettext (Files): Remove lib/gettext.h.
79931         (Depends-on): Add gettext-h.
79932         (Makefile.am): Remove lib_SOURCES.
79933         * modules/argmatch, modules/c-stack, modules/closeout:
79934         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79935         * modules/execute, modules/file-type, modules/getaddrinfo:
79936         * modules/getopt, modules/human, modules/javacomp:
79937         * modules/javaexec, modules/mkdir-p, modules/obstack:
79938         * modules/openat, modules/pagealign_alloc, modules/pipe:
79939         * modules/quotearg, modules/regex, modules/rpmatch:
79940         * modules/unicodeio, modules/userspec, modules/version-etc:
79941         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79942         * modules/xsetenv:
79943         Depend on gettext-h, not gettext.
79944
79945 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         * gnulib-tool (func_import): Add support for 'public domain' license.
79948         * modules/alloca, modules/atexit, modules/memmove:
79949         Now public domain, not GPL.
79950         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79951         * modules/realloc, modules/strerror, modules/strtod:
79952         Now LGPL, not GPL.
79953
79954 2005-07-05  Bruno Haible  <bruno@clisp.org>
79955
79956         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79957         autoconf CVS. Needed for mingw.
79958
79959 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         Remove the dependency of the strftime module on the tzset module.
79962         * modules/strftime (Depends-on): Remove dependency on tzset.
79963
79964 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         Remove the dependency of the strftime module on the tzset module.
79967         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79968         gl_FUNC_TZSET_CLOBBER.
79969
79970 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         Remove the dependency of the strftime module on the tzset module.
79973         * lib/strftime.c (my_strftime)
79974         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79975         Copy the input structure, to work around some of the bug with
79976         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79977         Solaris releases, you should also use the tzset module, but we won't
79978         require it as a dependency any more since we don't want LGPLed code
79979         to depend on GPLed code.
79980
79981 2005-07-02  Jim Meyering  <jim@meyering.net>
79982
79983         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79984         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79985         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79986         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79987
79988 2005-07-02  Jim Meyering  <jim@meyering.net>
79989
79990         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79991
79992 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79995         declares only 'struct timespec;' (!).
79996
79997 2005-07-01  Jim Meyering  <jim@meyering.net>
79998
79999         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
80000         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
80001         * lib/save-cwd.c, tempname.c:
80002         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80003         and don't include <sys/file.h>).
80004
80005 2005-06-29  Jim Meyering  <jim@meyering.net>
80006
80007         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
80008         type name.  Use the variable name instead.
80009         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
80010         Likewise.
80011
80012 2005-06-28  Simon Josefsson  <jas@extundo.com>
80013
80014         * modules/check-version (Files): Add check-version.m4.
80015
80016 2005-06-28  Simon Josefsson  <jas@extundo.com>
80017
80018         * m4/check-version.m4: New file, suggested by Jim Meyering
80019         <jim@meyering.net>.
80020
80021 2005-06-28  Simon Josefsson  <jas@extundo.com>
80022
80023         * lib/check-version.h, lib/check-version.c: New files.
80024
80025 2005-06-28  Simon Josefsson  <jas@extundo.com>
80026
80027         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
80028         collision with global variable.  Better indentation.  Don't
80029         increment buffer pointer beyond buffer end.  Based on comments
80030         from Paul Eggert <eggert@cs.ucla.edu>.
80031
80032         * lib/base64.h: Indent.
80033
80034 2005-06-28  Simon Josefsson  <jas@extundo.com>
80035
80036         * doc/gnulib.texi (Library version handling): New section.
80037
80038 2005-06-28  Jim Meyering  <jim@meyering.net>
80039
80040         * check-module (find_included_lib_files): Hard-code another
80041         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
80042         but modules/fts-lgpl (correctly) does not list those files.
80043
80044         * modules/canonicalize (Files): Add lib/pathmax.h.
80045
80046 2005-06-25  Simon Josefsson  <jas@extundo.com>
80047
80048         * modules/check-version: New file.
80049
80050 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
80053         initializer of struct addrinfo, as an indication that we don't
80054         care how many members the structure has.
80055
80056 2005-06-24  Derek Price  <derek@ximbiot.com>
80057         and Bruno Haible  <bruno@clisp.org>
80058
80059         Remove stat module & update lstat.
80060         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
80061         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80062         * m4/stat.m4: Remove this file.
80063
80064 2005-06-24  Derek Price  <derek@ximbiot.com>
80065         and Bruno Haible  <bruno@clisp.org>
80066
80067         Remove stat module & update lstat.
80068         * lib/stat.c: Remove this file...
80069         (slash_aware_lstat): ...moving this content and its support...
80070         * lib/lstat.c (rpl_lstat): ...into here.
80071         * lib/lstat.h: New file.
80072
80073 2005-06-24  Derek Price  <derek@ximbiot.com>
80074         and Bruno Haible  <bruno@clisp.org>
80075
80076         Remove stat module & update lstat.
80077         * config/srclist.txt (libc sources): Remove stat.
80078
80079 2005-06-24  Derek Price  <derek@ximbiot.com>
80080         and Bruno Haible  <bruno@clisp.org>
80081
80082         Remove stat module & update lstat.
80083         * MODULES.html.sh (stat): Remove.
80084         * MODULES.html: Regenerated.
80085         * modules/lstat (Description): Correct function name.
80086         (Files): Add "lstat.h".
80087         (Depends-on): Remove stat, add xalloc, stat-macros.
80088         * modules/stat: Remove this file.
80089         (Include): Add "lstat.h", remove <sys/stat.h>.
80090
80091 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
80094         (ranged_convert): Don't save conversion in a temporary struct.
80095         This causes a warning with GCC 4.0.0, and anyway in the typical
80096         case it's not worth the extra 100 bytes or so of code.
80097         (ranged_convert, __mktime_internal): When calling a function via a
80098         pointer P, use P () rather than (*P) (), as we now assume C89 or
80099         better.
80100
80101 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80102
80103         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
80104         "who -r" failed to give output.  Problem reported by Tim Waugh.
80105
80106         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
80107         (xcalloc): Use it to avoid needless tests.
80108         Problem reported by Jim Meyering.
80109
80110 2005-06-20  Derek Price  <derek@ximbiot.com>
80111
80112         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
80113         unnecessary for Autoconfs > 2.59c.
80114
80115 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80116
80117         * lib/argp.h (__option_is_short): Check upper limit of
80118         __key. Isprint() requires its argument to have the value
80119         of an unsigned char or EOF.
80120
80121 2005-06-16  Jim Meyering  <jim@meyering.net>
80122
80123         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
80124         when either N or S is zero.
80125
80126 2005-06-16  Derek Price  <derek@ximbiot.com>
80127
80128         * m4/bison.m4: Declare YACC & YFLAGS precious.
80129
80130 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
80133         multibyte string or pattern, fall back on unibyte matching.
80134         Problem reported by James Youngman.
80135
80136 2005-06-08  Bruno Haible  <bruno@clisp.org>
80137
80138         * modules/csharpcomp: New file.
80139         * MODULES.html.sh (C#): Add csharpcomp.
80140
80141 2005-06-08  Bruno Haible  <bruno@clisp.org>
80142
80143         * m4/csharpcomp.m4: New file, from GNU gettext.
80144
80145 2005-06-08  Bruno Haible  <bruno@clisp.org>
80146
80147         * lib/csharpcomp.h: New file, from GNU gettext.
80148         * lib/csharpcomp.c: New file, from GNU gettext.
80149         * lib/csharpcomp.sh.in: New file, from GNU gettext.
80150
80151 2005-06-08  Bruno Haible  <bruno@clisp.org>
80152
80153         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
80154         warning on mingw.
80155
80156 2005-06-07  Derek Price  <derek@ximbiot.com>
80157
80158         Sync from CVS.
80159         * lib/glob_.h: Indent nested #ifdef.
80160
80161 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         Sync from coreutils.
80164         Use "file name" when talking about file names, instead of "filename"
80165         or "path", as per the GNU coding standards.
80166         * lib/mkdir-p.c: Renamed from makepath.c.
80167         (make_dir_parents): Renamed from make_path.  All callers changed.
80168         * lib/mkdir-p.h: Likewise.  All includers changed.
80169         * lib/filenamecat.c: Renamed from path-concat.c.
80170         (file_name_concat): Renamed from path_concat.  All callers changed.
80171         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
80172         * lib/filenamecat.h: Likewise.  All includers changed.
80173         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
80174         in comments or local variable names.
80175         * lib/basename.c: Likewise.
80176         * lib/canonicalize.c, canonicalize.h: Likewise.
80177         * lib/dirname.c, dirname.h: Likewise.
80178         * lib/euidaccess.c: Likewise.
80179         * lib/exclude.c: Likewise
80180         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
80181         * lib/fsusage.c, fsuage.h: Likewise.
80182         * lib/fts.c, fts_.h: Likewise.
80183         * lib/getcwd.c: Likewise.
80184         * lib/getloadavg.c: Likewise.
80185         * lib/mkstemp.c: Likewise.
80186         * lib/mountlist.c, mountlist.h: Likewise.
80187         * lib/openat.c, openat.h: Likewise.
80188         * lib/readlink-stub.c: Likewise.
80189         * lib/readutmp.c, readutmp.h: Likewise.
80190         * lib/rename.c: Likewise.
80191         * lib/rmdir.c: Likewise.
80192         * lib/same.c: Likewise.
80193         * lib/savedir.c: Likewise.
80194         * lib/stripslash.c: Likewise.
80195         * lib/tempname.c: Likewise.
80196         * lib/xreadlink.c: Likewise.
80197         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
80198         All uses changed.
80199         * lib/exclude.h: Likewise.
80200
80201         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
80202         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80203         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
80204         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80205         * lib/pathmax.h: Include <limits.h> unconditionally, since other
80206         files have been getting away with it for years (MORE/BSD 4.3
80207         is extinct now).
80208         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
80209         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80210
80211         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
80212         Define to 256, not 255, as per modern POSIX.
80213
80214 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80215
80216         Sync from coreutils.
80217         Use "file name" when talking about file names, instead of "filename"
80218         or "path", as per the GNU coding standards.
80219         * MODULES.html.sh: mkdir-p renamed from makepath.
80220         filenamecat renamed from path-concat.
80221         * modules/filenamecat: Renamed from modules/path-concat.
80222         (Files): filenamecat.h and filenamecat.c renamed from
80223         path-concat.h and path-concat.c.
80224         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
80225         (Include): filenamecat.h, not path-concat.h.
80226         * modules/mkdir-p: Renamed from modules/makepath.
80227         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
80228         makepath.c.
80229         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
80230         (Include): mkdir-p.h, not makepath.h.
80231
80232 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         Sync from coreutils.
80235         * m4/mkdir-p.m4: Renamed from makepath.m4.
80236         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
80237         Rename files from makepath.c to mkdir-p.c, and from
80238         makepath.h to mkdir-p.h.
80239         * m4/filenamecat.m4: Renamed from path-concat.m4.
80240         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
80241         Rename files from path-concat.c to filenamecat.c,
80242         and from path-concat.h to filenamecat.h.
80243         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
80244         "file name" in local variables or comments.
80245         * m4/rename.m4: Likewise.
80246
80247 2005-06-01  Bruno Haible  <bruno@clisp.org>
80248
80249         * modules/csharpexec: New file.
80250         * MODULES.html.sh (C#): New section.
80251
80252 2005-06-01  Bruno Haible  <bruno@clisp.org>
80253
80254         * m4/csharp.m4: New file, from GNU gettext.
80255         * m4/csharpexec.m4: New file, from GNU gettext.
80256
80257 2005-06-01  Bruno Haible  <bruno@clisp.org>
80258
80259         * lib/csharpexec.h: New file, from GNU gettext.
80260         * lib/csharpexec.c: New file, from GNU gettext.
80261         * lib/csharpexec.sh.in: New file, from GNU gettext.
80262
80263 2005-05-31  Derek Price  <derek@ximbiot.com>
80264             Paul Eggert  <eggert@cs.ucla.edu>
80265
80266         Sync from cvs.
80267         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
80268
80269 2005-05-31  Derek Price  <derek@ximbiot.com>
80270             Paul Eggert  <eggert@cs.ucla.edu>
80271
80272         Sync from cvs.
80273         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
80274
80275 2005-05-29  Derek Price  <derek@ximbiot.com>
80276
80277         * config/srclist.txt (glob_.h, glob.c): Add these files.
80278
80279 2005-05-29  Derek Price  <derek@ximbiot.com>
80280
80281         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
80282         * modules/glob: New file.
80283         * modules/getlogin_r: Add link to POSIX spec in description.
80284
80285 2005-05-29  Derek Price  <derek@ximbiot.com>
80286             Paul Eggert  <eggert@cs.ucla.edu>
80287
80288         * m4/glob.m4: New file.
80289
80290 2005-05-29  Derek Price  <derek@ximbiot.com>
80291             Paul Eggert  <eggert@cs.ucla.edu>
80292
80293         * lib/glob_.h, lib/glob.c: New files.
80294
80295 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * modules/fts (Files): Remove m4/inttypes-pri.m4.
80298         * modules/fts-lgpl (Depends-on): Remove gettext.
80299
80300 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80301
80302         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
80303         and don't require gt_INTTYPES_PRI.
80304
80305 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
80308
80309         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
80310         the configuration hassle isn't worth it.
80311         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
80312         (LONGEST_MODIFIER, PRIuMAX): Remove.
80313
80314 2005-05-27  Bruno Haible  <bruno@clisp.org>
80315
80316         * lib/getlogin_r.h: Remove second include of <stddef.h>.
80317
80318 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
80321         _POSIX_PTHREAD_SEMANTICS for Solaris.
80322
80323 2005-05-25  Derek Price  <derek@ximbiot.com>
80324
80325         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
80326
80327 2005-05-25  Derek Price  <derek@ximbiot.com>
80328             Paul Eggert  <eggert@cs.ucla.edu>
80329
80330         * modules/getlogin_r, m4/getlogin_r.m4: New files.
80331         * lib/getlogin_r.c, getlogin_r.h: New files.
80332
80333 2005-05-25  Bruno Haible  <bruno@clisp.org>
80334             Derek Price  <derek@ximbiot.com>
80335
80336         * lib/getlogin_r.h: Simplify API documentation.
80337
80338 2005-05-23  Derek Price  <derek@ximbiot.com>
80339
80340         * modules/minmax (Files): Add m4/minmax.m4.
80341         (configure.ac): Add gl_MINMAX.
80342
80343 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
80346         so that unistd-safer.h (GPL'ed code) need not be included.
80347
80348 2005-05-22  Bruno Haible  <bruno@clisp.org>
80349
80350         * m4/minmax.m4: New file.
80351         Based on a patch by Derek Price <derek@ximbiot.com>.
80352
80353 2005-05-22  Bruno Haible  <bruno@clisp.org>
80354
80355         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
80356         (INT64_MIN): Fix definition.
80357         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
80358
80359         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
80360         NEED_SIGNED_INT_TYPES.
80361
80362         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
80363         HAVE_SYSTEM_INTTYPES.
80364
80365 2005-05-22  Bruno Haible  <bruno@clisp.org>
80366
80367         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
80368         Also include <sys/param.h> if it defines MIN, MAX.
80369         Based on a patch by Derek Price <derek@ximbiot.com>.
80370
80371 2005-05-21  Jim Meyering  <jim@meyering.net>
80372
80373         * modules/fts (Files): Add m4/inttypes-pri.m4.
80374         (Depends-on): Add lstat and remove gettext.  Alphabetize.
80375
80376 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80377
80378         New fts module.
80379         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
80380         (setup_dir, free_dir): New functions.
80381         (enter_dir, leave_dir): Define trivial
80382         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
80383         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
80384         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
80385         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
80386         Move to fts-cycle.c.
80387         (fts_open): Use setup_dir.
80388         (fts_close): Use free_dir.
80389         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
80390         This adds a label and some gotos, but the alternatives were messier.
80391         Check for memory allocation failure when entering a dir.
80392         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
80393         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
80394         (FTS): New member fts_cycle, that is a union that contains the
80395         old active_dir_ht and cycle_state.  All uses changed to mention
80396         fts_cycle.ht and fts_cycle.state.
80397         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
80398         fts.c, with the following changes:
80399         (setup_dir, free_dir): New functions.
80400         (enter_dir): Now returns bool.  Return true if successful, false
80401         if memory exhausted.  All callers changed.
80402         Do not bother partly cleaning up on
80403         memory allocation failure; that is free_dir's job.
80404         However, free ad if hash_insert fails, to avoid memory leak.
80405         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
80406         fts->fts_options to see which union member to use.
80407
80408 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80409
80410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
80411         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
80412
80413 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
80416
80417 2005-05-20  Jim Meyering  <jim@meyering.net>
80418
80419         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
80420         Now a macro, to pacify GCC.
80421
80422 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80423
80424         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
80425         of -1.
80426
80427 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80428
80429         * lib/chown.c (rpl_chown): Return -1 on failure.
80430
80431 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
80434         Don't check for stddef.h.
80435         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
80436         don't use its results.
80437         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
80438         since we include them unconditionally.  Don't require
80439         AM_STDBOOL_H, since stdbool is a prerequisite.
80440         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
80441         since we assume C89 or better.
80442         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
80443         as we don't use their results.
80444         Don't check for fchdir, memmove, memset, strrchr, as we use
80445         them unconditionally.
80446         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
80447         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
80448
80449 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
80452         Include <stddef.h> unconditionally, since we assume C89 now.
80453         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
80454         * lib/fts.c: Include fts_.h first, to check interface.
80455         Do not include intprops.h; no longer needed.
80456         Include cycle-check.h and hash.h, since fts_.h no longer does.
80457         Remove unnecessary casts of closedir to void.
80458         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
80459         decide whether to decrement nlinks.
80460         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
80461         (FTS): Use struct hash_table * instead of Hash_table, so that
80462         we no longer need to include hash.h here.
80463
80464 2005-05-18  Jim Meyering  <jim@meyering.net>
80465
80466         * modules/dirfd (License): Change to LGPL.  Most of the code
80467         is already in the public domain.
80468
80469 2005-05-18  Jim Meyering  <jim@meyering.net>
80470
80471         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
80472         Reported by Yoann Vandoorselaere.
80473
80474 2005-05-17  Jim Meyering  <jim@meyering.net>
80475
80476         * m4/fts.m4: New file, from coreutils.
80477
80478 2005-05-17  Jim Meyering  <jim@meyering.net>
80479
80480         * lib/fts.c, lib/fts_.h: New files, from coreutils.
80481
80482 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         Sync from coreutils.
80485         * m4/unlinkdir.m4: New file.
80486
80487 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80488
80489         Sync from coreutils.
80490         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
80491         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
80492         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
80493         White space changes only.
80494         * lib/makepath.c (make_path): Port to hosts where leading "//" is
80495         special.
80496         * lib/yesno.c: Include getline.h, not ctype.h.
80497         (yesno): Don't remove leading white space; POSIX doesn't allow it.
80498         Use getline to remove arbitrary restriction on response length.
80499
80500 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * config/srclist-update: Spell out "Street" in FSF postal
80503         mail address; this is the style the FSF seems to prefer.
80504
80505         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
80506         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
80507         this updates FSF postal mail address.
80508
80509         Sync from coreutils.
80510         * modules/unlinkdir: New file.
80511         * modules/yesno (Depends-on): Add getline.
80512         * MODULES.html.sh (File system functions): Add unlinkdir.
80513
80514 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80515
80516         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
80517         lib/strsep.h:
80518         Change the initial comment to refer to GPL, not LGPL.
80519         gnulib-tool will change it to LGPL as needed.
80520
80521         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
80522         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
80523         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
80524         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
80525         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
80526         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
80527         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
80528         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
80529         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
80530         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
80531         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
80532         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
80533         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
80534         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
80535         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
80536         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
80537         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
80538         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
80539         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
80540         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
80541         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
80542         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
80543         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
80544         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
80545         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
80546         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
80547         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
80548         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
80549         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
80550         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
80551         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
80552         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
80553         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
80554         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
80555         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
80556         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
80557         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
80558         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
80559         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
80560         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
80561         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
80562         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
80563         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
80564         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
80565         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
80566         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
80567         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
80568         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
80569         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
80570         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
80571         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80572         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
80573         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
80574         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
80575         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
80576         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
80577         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
80578         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
80579         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
80580         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
80581         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
80582         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
80583         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
80584         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
80585         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
80586         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
80587         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
80588         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
80589         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
80590         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
80591         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
80592         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
80593         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
80594         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
80595         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
80596         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
80597         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
80598         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
80599         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
80600         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
80601         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
80602         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
80603         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
80604         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
80605         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
80606         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
80607         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
80608         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
80609         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
80610         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
80611         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
80612         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
80613         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
80614         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
80615         lib/yesno.c, lib/yesno.h:
80616         Update FSF postal mail address.
80617
80618 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80619
80620         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
80621         tests/test-memmem.c, tests/test-stpncpy.c:
80622         Update FSF postal mail address.
80623
80624 2005-05-13  Bruno Haible  <bruno@clisp.org>
80625
80626         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
80627         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
80628         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
80629         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
80630         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
80631         Add support for 64-bit integers in the MSVC compiler.
80632
80633 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80634
80635         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
80636
80637 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
80638
80639         * gnulib-tool (func_import): Sort and uniquify recommended includes.
80640
80641 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
80642
80643         * doc/getdate.texi (General date syntax): Don't say that date
80644         date --iso-8601=ns generates acceptable dates; it doesn't yet.
80645         Problem reported by Nic Ferrier.
80646
80647 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80648
80649         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
80650         specified in ai_socktype. Fix invalid ai_protocol
80651         check. ai_protocol is usually set to 0 or depending on
80652         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
80653         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
80654         ai_socktype / ai_protocol in the returned addrinfo structure.
80655
80656 2005-05-10  Simon Josefsson  <jas@extundo.com>
80657
80658         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
80659         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80660
80661 2005-05-10  Karl Berry  <karl@gnu.org>
80662
80663         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
80664         (from http://www.gnu.org/licenses).
80665         * doc/COPYING.LIB: also rename to COPYING.LESSER.
80666         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
80667         fdl.texi suffices.
80668
80669 2005-05-10  Karl Berry  <karl@gnu.org>
80670
80671         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
80672         (COPYING.DOC): remove.
80673
80674         * config/srclist-update: new FSF address.
80675
80676 2005-05-10  Derek Price  <derek@ximbiot.com>
80677
80678         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
80679         possible.
80680
80681 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80682             Bruno Haible  <bruno@clisp.org>
80683
80684         * modules/inet_ntop: New file.
80685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80686         inet_ntop.
80687
80688 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80689             Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/inet_ntop.m4: New file.
80692
80693 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80694             Bruno Haible  <bruno@clisp.org>
80695
80696         * lib/inet_ntop.h: New file.
80697         * lib/inet_ntop.c: New file, from glibc with modifications.
80698
80699 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * modules/time_r (License): Change to LGPL.
80702         * modules/extensions (License): Change to LGPL.  Actually,
80703         the license is more permissive than that, but currently gnulib-tool
80704         doesn't know how to handle more-permissive licenses.
80705
80706         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
80707         Problem reported by Dave Love.
80708
80709 2005-05-08  Jim Meyering  <jim@meyering.net>
80710
80711         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
80712         blank.
80713
80714 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * modules/argmatch (Depends-on): Add stdbool.
80717         * modules/backupfile (Depends-on): Likewise.
80718         * modules/chdir-long (Depends-on): Likewise.
80719         * modules/closeout (Depends-on): Likewise.
80720         * modules/cycle-check (Depends-on): Likewise.
80721         * modules/dirname (Depends-on): Likewise.
80722         * modules/fnmatch (Depends-on): Likewise.
80723         * modules/fsusage (Depends-on): Likewise.
80724         * modules/fwriteerror (Depends-on): Likewise.
80725         * modules/getcwd (Depends-on): Likewise.
80726         * modules/getloadavg (Depends-on): Likewise.
80727         * modules/hard-locale (Depends-on): Likewise.
80728         * modules/makepath (Depends-on): Likewise.
80729         * modules/mountlist (Depends-on): Likewise.
80730         * modules/nanosleep (Depends-on): Likewise.
80731         * modules/posixtm (Depends-on): Likewise.
80732         * modules/quotearg (Depends-on): Likewise.
80733         * modules/readtokens (Depends-on): Likewise.
80734         * modules/readtokens0 (Depends-on): Likewise.
80735         * modules/readutmp (Depends-on): Likewise.
80736         * modules/save-cwd (Depends-on): Likewise.
80737         * modules/strftime (Depends-on): Likewise.
80738         * modules/userspec (Depends-on): Likewise.
80739         * modules/utimecmp (Depends-on): Likewise.
80740         * modules/xgetcwd (Depends-on): Likewise.
80741         * modules/xnanosleep (Depends-on): Likewise.
80742         * modules/xstrtod (Depends-on): Likewise.
80743         * modules/yesno (Depends-on): Likewise.
80744
80745 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
80748         needless checks.
80749
80750 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         Merge from coreutils.  Among other things,
80753         add bulletproofing for cases where stdin, stdout, or stderr are closed.
80754         * lib/fd-safer.c: New file.
80755         * lib/fcntl-safer.h, open-safer.c: Remove.
80756         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
80757         * lib/dup-safer.c: Include unistd-safer.h first.
80758         Don't include errno.h.
80759         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
80760         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
80761         * lib/file-type.c: Rely on file-type.h change.
80762         * lib/getloadavg.c: Include unistd-safer.h.
80763         (getloadavg): Use safer open.
80764         * lib/getusershell.c: Include "stdio-safer.h".
80765         (getusershell): Use safer fopen.
80766         * lib/long-options.c (long_options): Use NULL rather than 0.
80767         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
80768         'free'.
80769         * lib/modechange.c: Likewise.
80770         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
80771         (MODE_DONE): New constant.
80772         (struct mode_change): Remove 'next' member.
80773         (make_node_op_equals): New function; like the old one of the
80774         same name, except it allocates an array.
80775         (mode_compile, mode_create_from_ref): Use it.
80776         (mode_compile): Allocate result as an array, not a linked list.
80777         Parse octal string ourself, so that we catch mistakes like "+0".
80778         (mode_adjust): Arg is an array, not a linked list.
80779         * lib/modechange.c: Include stat-macros.h, xalloc.h.
80780         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
80781         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
80782         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
80783         Remove.  This is now stat-macros.h's job.
80784         (talloc): Remove.  All callers replaced by xalloc, so that
80785         our invokers don't have to worry about reporting memory failures.
80786         (make_node_op_equals): Remove.
80787         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80788         New constants.
80789         (struct mode_change): Moved here from modechange.h.
80790         (mode_append_entry): Remove.
80791         (mode_compile): Remove MASKED_OPS arg, since it encouraged
80792         apps to have incorrect behavior.  Use simpler algorithm for head
80793         and tail.  Don't futz with umask; that's now the job of mode_adjust.
80794         Detect more invalid usages rather than having somewhat-random behavior.
80795         Don't insert an "a=" action, as that leads to incorrect behavior.
80796         (mode_compile, mode_create_from_ref): Return NULL on error instead
80797         of an enum, since now there's only one way to have an error.  All
80798         callers changed.
80799         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
80800         at the correct time.  Simplify calculation of "+u" and its ilk.
80801         Don't mishandle "+X".
80802         (mode_free): Remove "register" and localize decls.
80803         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80804         (struct mode_change): Move to modechange.c; callers don't
80805         need to see this stuff.
80806         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80807         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80808         (mode_change, mode_adjust): Reflect the new signatures noted above.
80809         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80810         that might redefine system include files.
80811         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80812         (my_usleep): Use NULL rather than (void *) 0.
80813         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80814         Use siginterrupt to specify that system calls should be interrupted.
80815         (rpl_nanosleep): Move initialization of suspended closer to call of
80816         my_usleep.
80817         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80818         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80819         (desirable_utmp_entry): New function.
80820         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80821         using x2nrealloc, to simplify logic.
80822         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80823         size calculation.  Do not assume utmp file is a regular file.
80824         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80825         (READ_UTMP_CHECK_PIDS): New constant.
80826         * lib/save-cwd.c: Include unistd-safer.h.
80827         (save_cwd): Use fd_safer.
80828         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80829         [!_LIBC] Include "stat-macros.h" instead.
80830         * lib/unistd-safer.h (fd_safer): New decl.
80831
80832 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80833
80834         * modules/getloadavg (Depends-on): Add unistd-safer.
80835         * modules/getusershell (Depends-on): Add stdio-safer.
80836         * modules/lstat (Depends-on): Remove xalloc.
80837         * modules/mkstemp (Depends-on): Add stat-macros.
80838         * modules/modechange (Depends-on): Remove xstrtol.
80839         Add stat-macros, xalloc.
80840         * modules/save-cwd (Depends-on): Add unistd-safer.
80841         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80842         * modules/unistd-safer (Files): Add lib/fd-safer.c
80843         (Makefile.am): Remove lib_SOURCES.
80844
80845         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80846         Remove fcntl-safer; unistd-safer supersedes it.
80847
80848 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80851         AC_HEADER_STAT.
80852         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80853         (gl_PREREQ_CHOWN): Remove.
80854         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80855         it.  Don't require AC_HEADER_STAT.
80856         (gl_PREREQ_LSTAT): Remove.
80857         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80858         Don't require AC_HEADER_STAT.
80859         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80860         (gl_PREREQ_RMDIR): Remove.
80861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80862         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80863         the stat-macros module a prerequisite.
80864         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80865         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80866         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80867         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80868         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80869         variable names.
80870         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80871         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80872         variable prefixes.
80873         * m4/fcntl-safer.m4: Remove.
80874         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80875         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80876         Invoke gl_PREREQ_FD_SAFER.
80877         (gl_PREREQ_FD_SAFER): New macro.
80878         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80879         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80880         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80881         Remove duplicate call to AC_LIBOBJ(readutmp).
80882         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80883
80884         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80885         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80886
80887 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         * MODULES.html.sh (Misc): Add byteswap.
80890
80891 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80892
80893         * modules/getcwd (Depends-on): Add extensions.
80894         * modules/openat (Depends-on): Likewise.
80895
80896 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80897
80898         * modules/byteswap: New file.
80899
80900 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80901
80902         * m4/byteswap.m4: New file.
80903
80904 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80905
80906         * lib/byteswap_.h: New file.
80907
80908 2005-04-25  Karl Berry  <karl@gnu.org>
80909
80910         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80911
80912 2005-04-25  Albert Chin  <china@thewrittenword.com>
80913
80914         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80915         Toolkit C bug.
80916
80917 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80918
80919         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80920         (func_ln_if_changed): Remove forcibly for no error message
80921         in case file does not exist.
80922
80923 2005-04-19  Simon Josefsson  <jas@extundo.com>
80924
80925         * gnulib-tool (Options): Make --symlink mean --symbolic.
80926
80927 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80928
80929         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80930
80931 2005-04-16  Simon Josefsson  <jas@extundo.com>
80932
80933         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80934
80935 2005-04-15  Simon Josefsson  <jas@extundo.com>
80936
80937         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80938
80939 2005-04-15  Simon Josefsson  <jas@extundo.com>
80940
80941         * gnulib-tool: Rename --symlink to --symbolic.
80942
80943 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80944
80945         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80946         symbolic links to files instead of copying/moving.  Add --aux-dir,
80947         specifying directory relative --dir where auxiliary build tools
80948         are placed.
80949
80950 2005-04-14  Bruno Haible  <bruno@clisp.org>
80951
80952         * modules/allocsa (License): Change to LGPL.
80953         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80954
80955 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80956
80957         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80958         that "UTC +1 second" continues to work.  Problem reported
80959         by Dmitry V. Levin.
80960         (relunit_snumber): New rule.
80961         (relunit): Use it.
80962
80963 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80964
80965         * lib/getdate.y (universal_time_zone_table): New constant.
80966         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80967         universal_time_zone_table.
80968         (lookup_zone): Prefer universal_time_zone_table to
80969         local_time_zone_table, so that "GMT" time stamps are allowed in
80970         London during the summer.  Problem reported by Ian Abbott.
80971
80972 2005-04-12  Jim Meyering  <jim@meyering.net>
80973
80974         * lib/human.c (humblock): Set *options even when returning due to
80975         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80976         warning from gcc-4.
80977
80978 2005-04-09  Jim Meyering  <jim@meyering.net>
80979
80980         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80981         -Wuninitialized: initialize tm0.tm_year.
80982
80983 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80984
80985         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80986         count, since there's no maximum.  All uses changed.
80987         Add member dsts_seen.
80988         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80989         not being INT_MAX.
80990         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80991         Use pc_rels_seen to decide whther a date is absolute.
80992
80993         * lib/getdate.y (number): Don't overwrite year.
80994         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80995         check.
80996
80997 2005-04-02  Simon Josefsson  <jas@extundo.com>
80998
80999         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
81000         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
81001
81002 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
81003
81004         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
81005         where no absolute path name can be longer than PATH_MAX.
81006
81007 2005-03-27  Jim Meyering  <jim@meyering.net>
81008
81009         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
81010
81011 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
81012
81013         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
81014         "one's complement" -> "ones' complement" in comment, as per Knuth.
81015         "value of type" -> "type or expression" in comment.
81016         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
81017
81018 2005-03-26  Jim Meyering  <jim@meyering.net>
81019
81020         Comment nits.
81021         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
81022         Correct typos: s/or/of/.
81023
81024 2005-03-26  Jim Meyering  <jim@meyering.net>
81025
81026         * modules/check-include-files: Move to ../ and rename to...
81027         * check-module: ...this.
81028
81029 2005-03-25  Jim Meyering  <jim@meyering.net>
81030
81031         * modules/xvasprintf (Files): Add xalloc.h.
81032
81033 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81034
81035         * modules/gettext (Files): config/config.rpath ->
81036         build-aux/config.rpath
81037         * modules/iconv (Files): Likewise.
81038         Problem reported by Oskar Liljeblad.
81039
81040 2005-03-23  Jim Meyering  <jim@meyering.net>
81041
81042         * modules/check-include-files: New script to check for
81043         missing dependencies, multiple includes, etc.
81044
81045         * modules/c-strtold (Depends-on): Add xalloc.
81046         * modules/c-strtod (Depends-on): Add xalloc.
81047         * modules/hash (Depends-on): Add xalloc.
81048         (Files): Remove lib/xalloc.h.
81049
81050         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
81051         * modules/userspec (Files): Add lib/inttostr.h.
81052
81053 2005-03-23  Jim Meyering  <jim@meyering.net>
81054
81055         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
81056
81057 2005-03-22  Jim Meyering  <jim@meyering.net>
81058
81059         * modules/stat-macros: New module.
81060         * modules/canonicalize, modules/euidaccess, modules/file-type,
81061         * modules/filemode, modules/lchown, modules/makepath,
81062         * modules/rmdir, modules/stat: Depend on new stat-macros module
81063         rather than listing lib/stat-macros.h manually.
81064         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
81065
81066 2005-03-22  Jim Meyering  <jim@meyering.net>
81067
81068         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
81069
81070 2005-03-22  Bruno Haible  <bruno@clisp.org>
81071
81072         * config/srclist.txt: Replace target directory 'config' with
81073         'build-aux'.
81074         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
81075         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
81076         ../build-aux/.
81077
81078 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
81079
81080         * modules/chdir-long (Depends-on): Add mempcpy.
81081
81082         * modules/acl, modules/backupfile, modules/c-strtod,
81083         modules/c-strtold, modules/canon-host, modules/canonicalize,
81084         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
81085         modules/exclude, modules/exitfail, modules/file-type,
81086         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
81087         modules/getdate, modules/getline, modules/getpagesize,
81088         modules/getpass, modules/getugroups, modules/group-member,
81089         modules/hard-locale, modules/hash, modules/human, modules/idcache,
81090         modules/inttostr, modules/long-options, modules/makepath,
81091         modules/md5, modules/memcasecmp, modules/memcoll,
81092         modules/modechange, modules/mountlist, modules/path-concat,
81093         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
81094         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
81095         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
81096         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
81097         modules/strftime, modules/strndup, modules/strverscmp,
81098         modules/timespec, modules/unlocked-io, modules/userspec,
81099         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
81100         modules/yesno:
81101         Remove lib_SOURCES line from Makefile.am section, as this is now
81102         done automatically by the corresponding Autoconf macro.
81103
81104 2005-03-21  Jim Meyering  <jim@meyering.net>
81105
81106         Changes imported from coreutils.
81107
81108         * lib/cycle-check.c: Don't include xalloc.h.
81109
81110         * lib/path-concat.c: Don't include assert.h.
81111         (path_concat): Remove assertion that would have triggered
81112         for ABASE starting with more than one slash.
81113         Reported by Andreas Schwab.
81114
81115         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
81116         properly when ABASE is an absolute file name.
81117         Correct the description of this function.
81118         Include <assert.h>.
81119         Add an assertion and a test driver.
81120         This fixes a bug introduced on 2004-07-02.
81121         Andreas Schwab reported the resulting failure of cp --parents:
81122         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
81123
81124 2005-03-21  Jim Meyering  <jim@meyering.net>
81125
81126         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
81127         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
81128
81129 2005-03-21  Jim Meyering  <jim@meyering.net>
81130         and  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
81133         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
81134         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
81135         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
81136         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
81137         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
81138         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
81139         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
81140         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
81141         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
81142         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
81143         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
81144         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
81145         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
81146         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
81147         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
81148         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
81149         for these modules.
81150
81151 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
81152
81153         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
81154         (which shouldn't happen), generate nothing instead of returning 0
81155         immediately, so that nstrftime (NULL, ...) doesn't return 0.
81156
81157 2005-03-16  Bruno Haible  <bruno@clisp.org>
81158
81159         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
81160         HAVE_LONGLONG_64BIT.
81161
81162 2005-03-16  Bruno Haible  <bruno@clisp.org>
81163
81164         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
81165         HAVE_LONGLONG_64BIT.
81166
81167 2005-03-16  Bruno Haible  <bruno@clisp.org>
81168
81169         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
81170         HAVE_LONGLONG_64BIT.
81171
81172 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         * lib/strftime.c (my_strftime): Prepend space to format so that we can
81175         reliably distinguish strftime failure from empty output on POSIX
81176         hosts.
81177
81178 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81179
81180         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
81181         (iconv_string): Don't guess a size-zero buffer, as that might cause
81182         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
81183         result would be 'too large', where 'too large' is (heuristically)
81184         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
81185         overflow concerns.  This will prevent some unwanted malloc failures
81186         when the inputs are very large.
81187
81188 2005-03-15  Karl Berry  <karl@gnu.org>
81189
81190         * config/srclist.txt (config.rpath): from gettext.
81191         * config/config.rpath: update.
81192
81193 2005-03-15  Bruno Haible  <bruno@clisp.org>
81194
81195         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
81196         to 'negate'.
81197
81198         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
81199         variable.
81200
81201         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
81202         results.
81203
81204 2005-03-14  Simon Josefsson  <jas@extundo.com>
81205
81206         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
81207         <fx@gnu.org>.
81208
81209 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
81210
81211         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
81212         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
81213         intprops.h.
81214         * lib/strtol.c: Likewise.
81215
81216 2005-03-14  Jim Meyering  <jim@meyering.net>
81217
81218         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
81219         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
81220         to be nonzero so that we (and caller) can detect the difference
81221         between a valid zero-length expansion and an error return, even
81222         when the underlying strftime fails before writing anything into
81223         that location.
81224
81225 2005-03-14  Bruno Haible  <bruno@clisp.org>
81226
81227         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
81228         Update from GNU gettext 0.14.3.
81229
81230 2005-03-10  Jim Meyering  <jim@meyering.net>
81231
81232         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
81233
81234 2005-03-10  Jim Meyering  <jim@meyering.net>
81235
81236         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
81237         so that this module works on systems without fchdir.
81238
81239 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81240
81241         Factor int-properties macros into a single file, except for
81242         glibc-related files.
81243         * lib/intprops.h: New file.
81244         * lib/getloadavg.c: Include it instead of limits.h.
81245         (INT_STRLEN_BOUND): Remove.
81246         * lib/human.c: Include intprops.h.
81247         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
81248         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
81249         302/1000.
81250         * lib/inttostr.h: Include intprops.h instead of limits.h.
81251         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
81252         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
81253         for consistency with intprops.h.
81254         (time_t_is_integer, twos_complement_arithmetic): Use them.
81255         * lib/sig2str.h: Include <signal.h>, intprops.h.
81256         (INT_STRLEN_BOUND): Remove.
81257         * lib/strftime.c (TYPE_SIGNED): Remove.
81258         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
81259         * lib/strtol.c: Adjust comments to match intprops.h.
81260         * lib/userspec.c: Include intprops.h.
81261         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
81262         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
81263         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
81264         instead of rolling our own expressions.
81265         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
81266
81267         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
81268         instead of int.
81269         (my_strftime): Do not mishandle years close to INT_MAX, by doing
81270         the right thing even if adding 1900 would overflow.  Similarly
81271         for tm_mon + 1 and tm_yday + 1.
81272         Make %Y always equivalent to %C%y, and similarly for %G and %g.
81273         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
81274         (DO_SIGNED_NUMBER): New macro.
81275         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
81276
81277 2005-03-07  Bruno Haible  <bruno@clisp.org>
81278
81279         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
81280
81281 2005-03-07  Bruno Haible  <bruno@clisp.org>
81282
81283         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
81284
81285 2005-03-04  Derek R. Price  <derek@ximbiot.com>
81286
81287         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
81288         (func_import): Only replace files via --import when they have actually
81289         changed.
81290
81291 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81292
81293         * m4/mmap-anon.m4: New file.
81294         * m4/pagealign_alloc.m4: New file.
81295
81296 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81297             Bruno Haible  <bruno@clisp.org>
81298
81299         * modules/pagealign_alloc: New file.
81300         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
81301
81302 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81303             Bruno Haible  <bruno@clisp.org>
81304
81305         * lib/pagealign_alloc.h: New file.
81306         * lib/pagealign_alloc.c: New file.
81307
81308 2005-03-03  Bruno Haible  <bruno@clisp.org>
81309
81310         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
81311         Use an all-permissive copyright notice, recommended by RMS.
81312
81313 2005-03-02  Bruno Haible  <bruno@clisp.org>
81314
81315         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
81316         of AIX, the replacement has to be done only after <string.h> is
81317         included, therefore not in config.h. stpncpy.h does the replacement,
81318         and stpncpy.c uses it.
81319
81320 2005-03-02  Bruno Haible  <bruno@clisp.org>
81321
81322         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
81323         stpncpy.c uses it.
81324
81325 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81326
81327         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
81328         The workaround isn't strictly needed for POSIX conformance, and
81329         it's too much of a pain to configure and maintain.  We'll ask
81330         people to fix their kernels instead.
81331         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
81332         (NANOSLEEP_BUG_WORKAROUND): Remove.
81333         (xnanosleep): Remove the workaround.
81334
81335 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81336
81337         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
81338         Reported by Derek Price.
81339         (Include): Add "timespec.h".
81340
81341         * modules/xnanosleep (Depends-on): Remove gethrxtime.
81342
81343 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
81346         to detect nanosleep bug.
81347
81348 2005-03-01  Bruno Haible  <bruno@clisp.org>
81349
81350         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
81351
81352 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81353
81354         * modules/gethrxtime: New file.
81355         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
81356         (Depends-on): Add gethrxtime.
81357         (configure.ac): Add gl_XNANOSLEEP.
81358         (Makefile.am): Remove lib_SOURCES line.
81359
81360 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
81363         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
81364
81365 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
81368         * lib/timespec.h (gettime): Return void, since it always
81369         succeeds now.  All uses changed.
81370         * lib/gettime.c (gettime): Likewise.
81371         [HAVE_NANOTIME]: Prefer nanotime.
81372         Assume gettimeofday succeeds, as POSIX requires.
81373         Assime time () succeeds, since other code already does.
81374         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
81375         (timespec_subtract): Remove.
81376         (NANOSLEEP_BUG_WORKAROUND): New constant.
81377         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
81378         things considerably.  Use it only on GNU/Linux hosts, since the
81379         workaround shouldn't be needed elsewhere.
81380
81381 2005-02-24  Bruno Haible  <bruno@clisp.org>
81382
81383         * modules/gettext (Files): Add m4/glibc2.m4.
81384
81385 2005-02-24  Bruno Haible  <bruno@clisp.org>
81386
81387         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
81388         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
81389         * m4/progtest.m4:
81390         Update from GNU gettext 0.14.2.
81391         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
81392
81393 2005-02-24  Bruno Haible  <bruno@clisp.org>
81394
81395         * lib/localcharset.c: Update from GNU gettext 0.14.2.
81396         * lib/config.charset: Update from GNU gettext 0.14.2.
81397
81398 2005-02-24  Bruno Haible  <bruno@clisp.org>
81399
81400         * lib/gettext.h: Update from GNU gettext 0.14.2.
81401
81402 2005-02-23  Simon Josefsson  <jas@extundo.com>
81403
81404         * m4/iconvme.m4: New file.
81405
81406 2005-02-23  Jim Meyering  <jim@meyering.net>
81407
81408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
81409         change.
81410         Thanks to Bruno Haible for catching it.
81411
81412 2005-02-22  Simon Josefsson  <jas@extundo.com>
81413
81414         * modules/iconvme: New file.
81415
81416         * MODULES.html.sh: Add iconvme.
81417
81418 2005-02-22  Simon Josefsson  <jas@extundo.com>
81419
81420         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
81421
81422 2005-02-22  Simon Josefsson  <jas@extundo.com>
81423
81424         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
81425
81426 2005-02-22  Jim Meyering  <jim@meyering.net>
81427
81428         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
81429         s/ifndef/ifdef/.
81430
81431 2005-02-20  Neil Conway  <neilc@samurai.com>
81432
81433         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
81434         returned by OSX/Darwin if the specified buffer is not large
81435         enough for the hostname.
81436
81437 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81438
81439         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
81440         pass it to _help, otherwise the latter coredumps trying to
81441         dereference state.root_argp.
81442
81443 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * modules/chdir-long (Depends-on): Add memrchr.
81446         * modules/memrchr (Files): Add lib/memrchr.h.
81447         (Include): "memrchr.h".
81448
81449 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81450
81451         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
81452
81453 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         * lib/memrchr.h: New file.
81456         * lib/chdir-long.c: Include it.
81457         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
81458         Don't bother including stddef.h.
81459
81460 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
81461
81462         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
81463         inclusion.
81464         Include <sys/types.h>, for dev_t.
81465         (ME_DUMMY, ME_REMOTE): Move from here....
81466         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
81467         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
81468         Dmitry V. Levin.
81469         Include mountlist.h first, to test the interface.
81470
81471 2005-01-29  Bruno Haible  <bruno@clisp.org>
81472
81473         * lib/progname.c (program_name): Initialize.
81474         Needed when linking statically on MacOS X.
81475
81476 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81477
81478         Sync from coreutils.
81479         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
81480         (Depends-on): Add c-strtod.
81481         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
81482
81483 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81484
81485         Sync from coreutils.
81486         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
81487
81488         Remove files that are specific to coreutils.
81489         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
81490
81491 2005-01-28  Bruno Haible  <bruno@clisp.org>
81492
81493         * modules/javacomp: New file.
81494         * MODULES.html.sh (Java): Add javacomp.
81495
81496 2005-01-28  Bruno Haible  <bruno@clisp.org>
81497
81498         * m4/javacomp.m4: New file, from GNU gettext.
81499
81500 2005-01-28  Bruno Haible  <bruno@clisp.org>
81501
81502         * lib/javacomp.sh.in: New file, from GNU gettext.
81503         * lib/javacomp.h: New file, from GNU gettext.
81504         * lib/javacomp.c: New file, from GNU gettext.
81505
81506 2005-01-26  Simon Josefsson  <jas@extundo.com>
81507
81508         * lib/gai_strerror.c: Use GPL in header.
81509
81510 2005-01-26  Bruno Haible  <bruno@clisp.org>
81511
81512         * modules/javaexec: New file.
81513         * MODULES.html.sh (Java): Add javaexec.
81514
81515 2005-01-26  Bruno Haible  <bruno@clisp.org>
81516
81517         * m4/javaexec.m4: New file, from GNU gettext.
81518
81519 2005-01-26  Bruno Haible  <bruno@clisp.org>
81520
81521         * lib/javaexec.sh.in: New file, from GNU gettext.
81522         * lib/javaexec.h: New file, from GNU gettext.
81523         * lib/javaexec.c: New file, from GNU gettext.
81524
81525 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81526
81527         * modules/lchown (Depends-on): Remove lchown.h
81528
81529 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81530
81531         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
81532         must be defined if the header file was not found, in order
81533         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
81534
81535 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81536
81537         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
81538         initializers for struct pentry_state.
81539         (__argp_error): Check return value of __asprintf
81540         (__argp_failure): Translate error message
81541
81542         * lib/argp-parse.c: Removed braces around the expansion of N_()
81543
81544 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81545
81546         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
81547         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
81548         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
81549         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
81550         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
81551         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
81552         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
81553         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
81554         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
81555         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
81556         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
81557         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
81558         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
81559         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
81560         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
81561         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
81562         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
81563         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
81564         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
81565         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
81566         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
81567         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
81568         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
81569         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
81570         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
81571         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
81572         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
81573         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
81574         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
81575         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
81576         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
81577         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
81578         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
81579         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
81580         xstrtol.m4, xstrtoumax.m4, yesno.m4:
81581         Use an all-permissive copyright notice, recommended by RMS.
81582
81583 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
81584
81585         * modules/chdir-long (Depends-on): Remove mempcpy.
81586
81587 2005-01-21  Jim Meyering  <jim@meyering.net>
81588
81589         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
81590         same value as for Solaris 9.
81591
81592         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
81593         component length.  This included changing the parameter to be
81594         of type `char *' rather than `char const *'.
81595         * lib/chdir-long.h (chdir_long): Update prototype.
81596
81597         * lib/openat.c (fdopendir, fstatat): New functions.
81598         * lib/openat.h: Include headers required for use of DIR and struct
81599         stat.
81600         [AT_SYMLINK_NOFOLLOW]: Define.
81601         (fdopendir, fstatat): Add prototypes.
81602
81603 2005-01-21  Bruno Haible  <bruno@clisp.org>
81604
81605         * modules/classpath: New file.
81606         * MODULES.html.sh (Java): Add classpath.
81607
81608 2005-01-21  Bruno Haible  <bruno@clisp.org>
81609
81610         * lib/classpath.h: New file, from GNU gettext.
81611         * lib/classpath.c: New file, from GNU gettext.
81612
81613 2005-01-20  Simon Josefsson  <jas@extundo.com>
81614
81615         * modules/version-etc-fsf: New file.
81616
81617 2005-01-20  Simon Josefsson  <jas@extundo.com>
81618
81619         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
81620         * lib/version-etc.c: Remove version_etc_copyright.
81621         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
81622         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
81623
81624 2005-01-20  Simon Josefsson  <jas@extundo.com>
81625
81626         * lib/base64.h (isbase64): Add.
81627
81628         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
81629         using a unsigned prototype, don't inline.
81630         (base64_decode): Use it.
81631
81632 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81633
81634         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
81635         it.
81636
81637 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         * lib/save-cwd.c (save_cwd): Remove code to support the case
81640         where fchdir is missing or flaky.
81641
81642 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81643
81644         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
81645
81646 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
81647
81648         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
81649         AC_LIBSOURCES now does this.
81650         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
81651         with new ullong_max module.
81652
81653 2005-01-19  Bruno Haible  <bruno@clisp.org>
81654
81655         * modules/sh-quote: New file.
81656         * MODULES.html.sh (Executing programs): Add sh-quote.
81657
81658 2005-01-19  Bruno Haible  <bruno@clisp.org>
81659
81660         * lib/sh-quote.h: New file, from GNU gettext.
81661         * lib/sh-quote.c: New file, from GNU gettext.
81662
81663 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         Merge from coreutils.
81666         * m4/ullong_max.m4: New file.
81667         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
81668         (gl_MACROS): Assume localeconv exists.
81669
81670 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81671
81672         Merge changes from coreutils, as described below in several
81673         changelogs dated today.
81674
81675         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
81676         (O_DIRECTORY): Remove; not needed here, since "." must be
81677         a directory.  All uses removed.
81678         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
81679         universal on Suns, and we also need to test for IRIX.
81680         Revamp code to use 'if' rather than '#if'.
81681         Avoid unnecessary comparison of cwd->desc to 0.
81682
81683         * lib/utimens.c (futimens): Robustify the previous patch, by checking
81684         for known valid error numbers rather than observed invalid ones.
81685
81686 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81687
81688         * modules/ullong_max: New file.
81689
81690         * modules/chdir-long, modules/openat: New files.
81691         * modules/save-cwd (Depends-on): Depend on chdir-long.
81692         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
81693
81694 2005-01-18  Jim Meyering  <jim@meyering.net>
81695
81696         Merge from coreutils.
81697         * m4/chdir-long.m4, m4/openat.m4: New files.
81698         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
81699         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
81700         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
81701         is sane and DOES follow symlinks.  Besides, testing 20 different
81702         systems found no broken chown implementations.
81703         Prompted by a change in rsync's copy of this macro.
81704         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
81705
81706         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
81707
81708         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
81709         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
81710         NULL-means-set-to-current-time semantics.
81711         Remove temporary file immediately, rather than waiting
81712         for configure's at-exit trap code to do it.
81713
81714 2005-01-18  Jim Meyering  <jim@meyering.net>
81715
81716         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81717
81718         * lib/utimens.c (futimens): Account for the fact that futimes
81719         can also fail with errno == ENOSYS or errno == ENOENT.
81720         Patch from Dmitry V. Levin.
81721
81722         Change the name of the robust chdir function from chdir to chdir_long.
81723         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
81724         (restore_cwd): Use chdir_long, not chdir.
81725         * lib/chdir-long.c: Renamed from chdir.c.
81726         * lib/chdir-long.h: Renamed from chdir.h.
81727         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
81728         Hurd.
81729
81730 2005-01-18  Bruno Haible  <bruno@clisp.org>
81731
81732         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
81733         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
81734         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
81735         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
81736         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
81737         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
81738         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
81739         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
81740         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
81741         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
81742         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
81743         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
81744         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
81745         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
81746         Use an all-permissive copyright notice, recommended by RMS.
81747
81748 2005-01-18  Bob Proulx  <bob@proulx.com>
81749
81750         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
81751         simplify offsetof() macro construct to avoid compile failure with
81752         native HP-UX 11.0 ANSI C compiler.
81753
81754 2005-01-17  Bruno Haible  <bruno@clisp.org>
81755
81756         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
81757         redundant because stpncpy.m4 takes care of it.
81758
81759 2005-01-17  Bruno Haible  <bruno@clisp.org>
81760
81761         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
81762
81763 2005-01-17  Bruno Haible  <bruno@clisp.org>
81764
81765         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
81766         used.
81767
81768 2005-01-17  Bruno Haible  <bruno@clisp.org>
81769
81770         * lib/fwriteerror.h (fwriteerror): Change specification to include
81771         fclose.
81772         * lib/fwriteerror.c: Include <stdbool.h>.
81773         (fwriteerror): At the end, close the file stream. Record whether
81774         stdout was already closed.
81775
81776 2005-01-17  Bruno Haible  <bruno@clisp.org>
81777
81778         * lib/execute.c (environ): Declare if needed.
81779         * lib/pipe.c (environ): Likewise.
81780         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
81781
81782 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81783
81784         * modules/argp: Depend on vsnprintf
81785
81786 2005-01-10  Jim Meyering  <jim@meyering.net>
81787
81788         * modules/closeout (Depends-on): Add atexit.
81789
81790 2005-01-06  Bruno Haible  <bruno@clisp.org>
81791
81792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
81793
81794 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81795
81796         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
81797         definitions to be after all include files, to avoid collisions.
81798         Problem reported by Bob Proulx.
81799
81800 2005-01-04  Jim Meyering  <jim@meyering.net>
81801
81802         Changes imported from coreutils.
81803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
81804         as the mkstemp template, use a temporary directory and an
81805         8.3-friendly template to avoid trouble on systems like DJGPP.
81806         Reported by Juan M. Guerrero via Stepan Kasal.
81807         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81808         close. Remove the temporary directory right away, rather than waiting
81809         for configure's at-exit trap code to do it.
81810         Suggestion from Stepan Kasal.
81811
81812 2005-01-01  Simon Josefsson  <jas@extundo.com>
81813
81814         * gnulib-tool: Print #include directives when --import'ing.
81815
81816 2004-12-28  Simon Josefsson  <jas@extundo.com>
81817
81818         * tests/test-base64.c: Include required header files.  Remove
81819         unused variables.
81820
81821 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         * modules/error (Depends-on): Remove gettext.
81824
81825 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81826
81827         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81828         not needed.  This removes a dependency on the gettext module.
81829         [defined _LIBC]: Do not include <libintl.h>; not needed.
81830
81831 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81834         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81835
81836 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81837
81838         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81839         HAVE_DECL_STRTOLD.
81840
81841 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * modules/getdate (Depends-on): Remove alloca-opt.
81844
81845 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81848
81849 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81850
81851         * lib/argp-parse.c: Include <stddef.h>.
81852         (alignof, alignto): New macros.
81853         (parser_init): Don't assume that void * is aligned sufficiently
81854         for struct option.
81855
81856         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81857         need to extend the stack.
81858         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81859         large.
81860
81861 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81862
81863         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81864
81865 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81868         (2004-10-24) change.  Apparently this was a false alarm.
81869
81870         * modules/getdate: Depend on alloca-opt, not alloca.
81871
81872 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81875         Remove now-obsolete comment about AIX.
81876         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81877         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81878         (YYMAXDEPTH): New macro.
81879
81880 2004-12-18  Simon Josefsson  <jas@extundo.com>
81881
81882         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81883
81884 2004-12-18  Bruno Haible  <bruno@clisp.org>
81885
81886         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81887
81888 2004-12-18  Bruno Haible  <bruno@clisp.org>
81889
81890         * lib/fatal-signal.c (fatal_signals): Make non-const.
81891         (init_fatal_signals): New function.
81892         (uninstall_handlers, install_handlers): Ignore signals that were set to
81893         SIG_IGN.
81894         (at_fatal_signal): Call init_fatal_signals.
81895         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81896         SIG_IGN.
81897         Reported by Paul Eggert.
81898
81899 2004-12-18  Bruno Haible  <bruno@clisp.org>
81900
81901         * doc/alloca.texi: New file.
81902         * doc/alloca-opt.texi: New file.
81903
81904 2004-12-17  Jim Meyering  <jim@meyering.net>
81905
81906         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81907         Otherwise, install-sh could exit with improper exit status when
81908         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81909
81910 2004-12-16  Simon Josefsson  <jas@extundo.com>
81911
81912         * tests/test-base64.c: Add license.
81913
81914 2004-12-15  Stepan Kasal  <address@hidden>
81915
81916         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81917
81918 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81919
81920         * modules/getcwd (Files): Add m4/d-ino.m4.
81921         Suggested by Mark D. Baushke.
81922
81923 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * lib/getdate.y (textint): New member "negative".
81926         (time_zone_hhmm): New function.
81927         Expect 14 shift-reduce conflicts, not 13.
81928         (o_colon_minutes): New rule.
81929         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81930         (yylex): Set the "negative" member of signed numbers.
81931
81932 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81933
81934         * doc/getdate.texi (Time of day items, Time zone items):
81935         Describe new formats +00:00, UTC+00:00.
81936
81937 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81938
81939         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81940         spurious "-l"s.  Problem reported by Stepan Kasal.
81941
81942 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81945         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81946
81947 2004-12-04  Simon Josefsson  <jas@extundo.com>
81948
81949         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81950         Vandoorselaere <yoann@prelude-ids.org>.
81951
81952 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81953
81954         Changes imported from coreutils.
81955         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81956         exist.
81957         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81958
81959 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         Changes imported from coreutils.
81962         * lib/hard-locale.c: Assume <locale.h> exists.
81963         Include "strdup.h".
81964         (GLIBC_VERSION): New macro.
81965         (hard_locale): Assume setlocale exists.
81966         Rewrite to avoid #ifdef.
81967         Use strdup rather than malloc + strcpy.
81968         * lib/human.c: Assume <locale.h> exists.
81969         (human_readable): Assume localeconv exists.
81970
81971 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * modules/hard-locale (Depends-on): Add strdup.
81974
81975 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81976
81977         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81978         convert T2, not T.  (Imported from libc.)
81979
81980 2004-11-30  Simon Josefsson  <jas@extundo.com>
81981
81982         * modules/restrict (License): Change to LGPL.
81983
81984 2004-11-30  Simon Josefsson  <jas@extundo.com>
81985
81986         * m4/restrict.m4: Add copyright and copying conditions.
81987
81988 2004-11-30  Simon Josefsson  <jas@extundo.com>
81989
81990         * m4/base64.m4: New file.
81991
81992 2004-11-30  Simon Josefsson  <jas@extundo.com>
81993
81994         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81995         base64.
81996
81997         * tests/test-base64.c: New file.
81998
81999         * modules/base64: New file.
82000
82001 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82002
82003         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
82004         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
82005
82006         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
82007
82008 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82009
82010         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
82011         (__getcwd.c): Don't restore errno; glibc doesn't.
82012         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
82013         first, falling back to our code only if its results look suspicious.
82014         Ensure that the resulting buffer is only as large as necessary.
82015
82016         * lib/readutmp.c: Include readutmp.h first.
82017         Include <errno.h>, since readutmp.h no longer does that.
82018         * lib/readutmp.h: Don't include <errno.h>,
82019         <sys/param.h>, <time.h>; not needed to establish interface.
82020         (errno): Remove decl.
82021         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
82022         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
82023         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
82024
82025 2004-11-28  Simon Josefsson  <jas@extundo.com>
82026
82027         * lib/base64.h, base64.c: New file.
82028
82029 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
82032
82033 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
82036         (Depends-on): Remove pathmax, same.  Add mempcpy.
82037         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
82038         (Makefile.am): Append getcwd.h to lib_SOURCES.
82039         (Include): Add getcwd.h.
82040         (Maintainer): Change from Jim Meyering to "all, glibc",
82041         since getdate now uses intended-for-glibc code.
82042         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
82043         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
82044
82045 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
82048         HP's ANSI C compiler.
82049         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
82050         Declaring int functions causes warnings on some modern systems and
82051         shouldn't be needed to compile on ancient ones.
82052         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
82053         defined.
82054
82055         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
82056         with the following changes.
82057         (__set_errno): Parenthesize properly.
82058         Include <stdbool.h>.
82059         (MIN, MAX, MATCHING_INO): New macros.
82060         (__getcwd): Define with prototype, not K&R form.
82061         Use heuristics to allocate default buffer on stack if possible.
82062         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
82063         behavior, and to avoid the PATH_MAX limit when computing
82064         ../../../../...
82065         Use MATCHING_INO to compare inode number to file.
82066         Check for arithmetic overflow in size calculations.
82067         Fix bug in reallocation of dot array that caused getcwd to fail
82068         on directories nested deeper than 75.
82069         Be more careful about saving errno on error.
82070         Do not use realloc; use only free+malloc, as this is a bit
82071         more flexible and avoids a needless copy operation.
82072         Do not inspect st_dev and st_ino for symbolic links; POSIX
82073         doesn't specify the latter.
82074         Check for closedir errors.
82075         Avoid needless casts.
82076         Use "#ifdef weak_alias" around weak_alias, to be like other
82077         glibc code.
82078         The following changes to getcwd.c have effect only when used in
82079         gnulib; they have no effect inside glibc proper.
82080         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
82081         as alloca isn't used.
82082         (alloca, __alloca): Likewise.
82083         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
82084         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82085         unconditionally, as gnulib assumes C89 or better.
82086         Do not include <sys/param.h>.
82087         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
82088         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
82089         better.
82090         (NULL) [!defined NULL]: Remove; we assume C89 or better.
82091         Include <dirent.h> in a way that is compatible with modern Autoconf.
82092         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
82093         New macros, if not already defined.
82094         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
82095         Use "_LIBC", not "defined _LIBC", for consistency.
82096         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
82097         a mempcpy module.
82098         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
82099         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
82100         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
82101         credit only to Jim Meyering and adjust the copyright dates.
82102         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
82103         <stdlib.h>, <unistd.h>, "pathmax.h".
82104         Instead, include "xgetcwd.h" (first) and "getcwd.h".
82105         (INITIAL_BUFFER_SIZE): Remove.
82106         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
82107
82108 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82109
82110         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
82111         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
82112         Use the _ONCE methods, for efficiency.
82113         Check for fcntl.h.  In test program, include <errno.h>
82114         and <fcntl.h> if available.  Remove old K&R cruft from
82115         test program.  Check for common errors in GNU/Linux,
82116         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
82117         don't do AC_LIBOBJ, as that's getcwd.m4's job.
82118         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
82119         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
82120         name accordingly.
82121         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
82122         accommodate new getcwd.c.
82123         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
82124         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
82125         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
82126         that's all we need now.
82127
82128 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82129
82130         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
82131         argp-parse.c depends on getopt internals, that means we should
82132         always use our getopt, to be on the safe side.
82133         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
82134         order not to spoil the result of an eventual previous invocation
82135         of gl_GETOPT_SUBSTITUTE.
82136
82137 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82138
82139         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
82140         redefinition warnings. To avoid them, include the defines
82141         in `#if !defined __need_getopt ... #endif'. The only place
82142         where __getopt_argv_const is used is in definitions
82143         of getopt_long and getopt_long_only below, which are as well
82144         protected by `#ifndef __need_getopt'.
82145         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
82146         __need_getopt after including <stdio.h> and <unistd.h> These
82147         headers might have defined it.
82148
82149 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82150
82151         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
82152
82153 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82154
82155         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
82156         (futimens): New function, which uses futimes if available.
82157         (futimens, utimens): Support timespec==NULL, with same semantics
82158         as utime and utimens.
82159         * lib/utimens.h (futimens): New decl.
82160
82161 2004-11-23  Jim Meyering  <jim@meyering.net>
82162
82163         * lib/getopt_.h: Remove trailing blanks.
82164
82165 2004-11-23  Jim Meyering  <jim@meyering.net>
82166
82167         * lib/__fpending.c: Add comment.
82168
82169 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
82170
82171         * modules/canonicalize (Depends-on): Add xreadlink.
82172         Problem reported by James Youngman.
82173
82174 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
82175
82176         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
82177         New macros.
82178         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
82179         optopt): Use them instead of invoking ## directly; otherwise, the
82180         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
82181
82182 2004-11-19  Bruno Haible  <bruno@clisp.org>
82183
82184         * lib/strtok_r.c: Move comments from here...
82185         * lib/strtok_r.h: ... to here.
82186
82187 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82188
82189         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
82190         implementations that mishandle size_t overflow.
82191
82192 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82193
82194         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
82195         might fail.  Problem reported by Yoann Vandoorselaere.
82196         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
82197         implementations that mishandle size_t overflow.
82198
82199 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82200
82201         * modules/canon-host (Depends-on): Add strdup.
82202
82203 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82204
82205         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
82206
82207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82208
82209         * lib/canon-host.c: Include "strdup.h".
82210         (canon_host): Use getaddrinfo if available, so that IPv6 works.
82211         Use strdup instead of malloc/strcpy to duplicate strings.
82212
82213         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
82214         (human_space_before_unit): New constant.
82215         * lib/human.c (human_readable): Support it.
82216
82217         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
82218         (xgetcwd): Set errno correctly when failing.
82219         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
82220         the failure is actually due to a PATH_MAX problem.
82221
82222         Further getopt changes to make it more likely that glibc will
82223         buy the changes back.
82224         * lib/getopt.c (POSIXLY_CORRECT): New constant.
82225         (getopt): Use it, so to preserve glibc semantic
82226         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
82227         when compiling for libc.
82228         * lib/getopt_.h (__getopt_argv_const): Bring it back.
82229         (getopt_long, getopt_long_only): Use it.
82230
82231         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82232         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
82233         (getopt): Argv is now char * const *, as per standard.
82234         (_getopt_internal_r, _getopt_internal): Argv is now char **,
82235         not char *__getopt_argv_const *.
82236         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82237         _getopt_long_only_r): Likewise.
82238         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
82239         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82240         _getopt_long_r, _getopt_long_only_r): Likewise.
82241         * lib/getopt_.h (__getopt_argv_const): Remove.
82242         (getopt): Argv is now char * const *, as per standard.
82243
82244         * lib/getdate.y (tORDINAL): New token.
82245         (day, relunit): Allow it for relative times.
82246         (relative_time_table): Use tORDINAL for ordinals.
82247
82248 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82249
82250         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
82251         Document that "second" isn't allowed as an ordinal number.
82252
82253 2004-11-16  Jim Meyering  <jim@meyering.net>
82254
82255         * modules/closeout (Depends-on): Add fpending.
82256
82257 2004-11-15  Jim Meyering  <jim@meyering.net>
82258
82259         * lib/closeout.c: Include "__fpending.h" once again.
82260         Include <stdbool.h>.
82261         (close_stdout): Don't fail just because stdout was closed initially,
82262         since some programs don't write to stdout in the normal course of
82263         operation (other than --version and --help), and we don't want this
82264         function to make e.g. `touch file >&-' fail.
82265         But do fail if it was closed and someone has tried to write to it.
82266         E.g., `printf foo >&-' must fail.
82267
82268 2004-11-13  Jim Meyering  <jim@meyering.net>
82269
82270         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
82271
82272 2004-11-12  Simon Josefsson  <jas@extundo.com>
82273
82274         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
82275         small doc fix is still pending.
82276
82277 2004-11-11  Simon Josefsson  <jas@extundo.com>
82278
82279         * modules/strtok_r: New file.
82280
82281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82282         strtok_r.
82283
82284 2004-11-11  Simon Josefsson  <jas@extundo.com>
82285
82286         * m4/strtok_r.m4: New file.
82287
82288         * m4/getopt.m4: Replace opterr.
82289
82290 2004-11-11  Simon Josefsson  <jas@extundo.com>
82291
82292         * lib/strtok_r.h, strtok_r.c: New file.
82293
82294 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82295
82296         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
82297         of replacing opterr, getopt, etc.  This should handle the
82298         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
82299
82300 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
82303         we can stop lying to compilers about the constness of argv when we
82304         are compiled outside glibc.
82305         (getopt, getopt_long, getopt_long_only): Use it.
82306         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82307         _getopt_internal, getopt): Likewise.
82308         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82309         _getopt_long_only_r): Likewise.
82310         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82311         _getopt_long_r, _getopt_long_only_r): Likewise.
82312
82313         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
82314         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
82315         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
82316         the other external symbols.
82317         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
82318         declaration, since the above renaming now works around collisions.
82319
82320 2004-11-11  Jim Meyering  <jim@meyering.net>
82321
82322         * lib/linebreak.c: Remove trailing blanks.
82323         * lib/alloca_.h: Likewise.
82324         * lib/acosl.c: Likewise.
82325         * lib/euidaccess.c: Likewise.
82326         * lib/allocsa.h: Likewise.
82327
82328 2004-11-10  Simon Josefsson  <jas@extundo.com>
82329
82330         * m4/getaddrinfo.m4: New file.
82331
82332 2004-11-10  Simon Josefsson  <jas@extundo.com>
82333
82334         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
82335
82336 2004-11-10  Simon Josefsson  <jas@extundo.com>
82337
82338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82339         getaddrinfo.
82340
82341         * modules/getaddrinfo: New file.
82342
82343 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
82346
82347 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82348
82349         * lib/mktime.c (SHR): New macro, which is a portable
82350         substitute for >> that should work even on Crays.
82351         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
82352         Problem reported by Mark D. Baushke in
82353         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
82354         * lib/getdate.y (SHR): Likewise.
82355         (tm_diff): Use it.
82356         * lib/strftime.c (SHR): Likewise.
82357         (tm_diff): Use it.
82358         * lib/quotearg.c (struct quoting_options): Use unsigned int for
82359         quote_these_too, so that right shifts are well defined.  All uses
82360         changed.
82361
82362 2004-11-10  Jim Meyering  <jim@meyering.net>
82363
82364         Ensure that no close failure goes unreported.
82365         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
82366         return early when it seems there's nothing to flush.
82367         Don't include __fpending.h.
82368
82369 2004-11-10  Jim Meyering  <jim@meyering.net>
82370
82371         * modules/closeout (Depends-on): Remove fpending.
82372
82373 2004-11-10  Jim Meyering  <jim@meyering.net>
82374
82375         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
82376
82377 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82378
82379         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
82380         gl_FUNC_STRFTIME.
82381         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
82382         and AC_REQUIRE when possible, to avoid duplicate checks.
82383         Check for <wchar.h>.
82384
82385 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82386
82387         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
82388
82389 2004-11-09  Bruno Haible  <bruno@clisp.org>
82390
82391         * m4/sockpfaf.m4: New file.
82392
82393 2004-11-05  Bruno Haible  <bruno@clisp.org>
82394
82395         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
82396         Reported by Mark D. Baushke <mdb@cvshome.org>.
82397
82398 2004-11-04  Bruno Haible  <bruno@clisp.org>
82399
82400         2004-09-11  Bruno Haible  <bruno@clisp.org>
82401                 * allocsa.valgrind: New file.
82402         2004-02-06  Bruno Haible  <bruno@clisp.org>
82403                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
82404                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
82405                 Reported by Christopher Seip <chris.seip@hp.com>.
82406
82407 2004-11-04  Bruno Haible  <bruno@clisp.org>
82408
82409         * modules/allocsa (Files): Add lib/allocsa.valgrind.
82410         (Makefile.am): Distribute it.
82411
82412 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
82413
82414         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
82415         with errno == ERANGE if the buffer is too small.
82416         Problem reported by Mark D. Baushke.
82417
82418 2004-11-03  Albert Chin  <china@thewrittenword.com>
82419             Paul Eggert  <eggert@cs.ucla.edu>
82420
82421         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
82422         equivalent, substitute $ac_type for equivalent type rather than
82423         blindly using uint32_t *always* which won't work if uint32_t is not
82424         available.  Define _UINT32_T to work around typedef of uint32_t if
82425         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
82426         2.5.1.
82427
82428 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82429
82430         * m4/jm-macros.m4: Sync from coreutils.
82431         (gl_MACROS): Check for mbrlen, for pathchk.
82432         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
82433
82434 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82435
82436         * lib/xreadlink.c (MAXSIZE): New macro.
82437         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
82438         size does not exceed MAXSIZE.  Avoid cast.
82439         As suggested by Mark D. Baushke in
82440         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
82441         if readlink fails with buffer size just under MAXSIZE, try again
82442         with MAXSIZE.
82443
82444 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82445
82446         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
82447
82448 2004-11-02  Derek R. Price  <derek@ximbiot.com>
82449         and  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
82452         (get_date): Overparenthesize to avoid GCC warning.
82453
82454 2004-11-02  Bruno Haible  <bruno@clisp.org>
82455
82456         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
82457         returns void.
82458
82459 2004-11-02  Bruno Haible  <bruno@clisp.org>
82460
82461         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
82462         function returns void.
82463
82464 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82465
82466         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
82467         fflush_unlocked, flockfile, funlockfile, funlockfile,
82468         fputs_unlocked, putc_unlocked.
82469
82470 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82471
82472         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82473         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
82474         already declared.
82475
82476 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82477
82478         * modules/getdate (Files): Add doc/getdate.texi.
82479         (Depends-on): Add setenv, xalloc.
82480
82481 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         * lib/getdate.y: Add support for TZ="foo" within a date string.
82484         Fix some bugs near time_t boundaries.  Reject dates with
82485         out-of-range components, e.g., "Sept 31".
82486         Include <stdlib.h>, "setenv.h", "xalloc.h".
82487         (ISDIGIT_LOCALE): Remove; unused.
82488         Note that the TZ and time functions used here are not reentrant.
82489         (mktime_ok, get_tz): New functions.
82490         (TZBUFSIZE): New constant.
82491         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
82492         This requires that we sometimes generate our own TZ="XXX..." setting.
82493
82494 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * doc/getdate.texi: New file, from coreutils with modifications for
82497         the new TZ parsing.
82498
82499 2004-10-27  Derek R. Price  <derek@ximbiot.com>
82500
82501         * lib/mktime.c (not_equal_tm): Remove redundant check.
82502
82503 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         * modules/regex (lib_SOURCES): Add regex.c.
82506         Reported by James Youngman in
82507         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
82508
82509 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82510
82511         * lib/getdate.y: Use Bison 1.875 features, and some minor
82512         code cleanups.  This change does not affect semantics.
82513         Don't include <stdlib.h>; no longer needed.
82514         Don't include unlocked-io.h; only the "#if TEST" code uses
82515         stdio, and performance isn't crucial there.
82516         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
82517         Bison 1.875 features as described below.
82518         All uses of "PC." replaced by "pc->".
82519         (YYSTYPE): Add a forward declaration.
82520         (yylex, yyerror): Use full prototypes in forward decls.
82521         Use "%pure-parser" rather than obsolescent "%pure_parser".
82522         Use %parse-param and %lex-param instead of obsolescent
82523         YYPARSE_PARAM and YYLEX_PARAM.
82524         (meridian_table, month_and_day_table, time_units_table,
82525         relative_time_table, time_zone_table, military_table,
82526         lookup_zone, lookup_word, get_date):
82527         Use NULL instead of 0 where appropriate.
82528         (to_hour): Avoid abort (), to avoid a dependency on
82529         stdlib.h.
82530         (yyerror, yylex): Now accepts parser_control * arg.
82531         (main) [TEST]: Use '\0' rather than 0 for char.
82532
82533 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82534
82535         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
82536
82537 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82538
82539         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
82540         It's now the caller's responsibility to handle the case where
82541         !HAVE_GETPAGESIZE && !defined getpagesize.
82542
82543         * lib/mktime.c (leapyear): Arg is long int, not int.
82544
82545 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
82546
82547         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
82548
82549 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
82552         missing.  Problem reported by James Youngman.
82553
82554 2004-10-16  Simon Josefsson  <jas@extundo.com>
82555
82556         * gnulib-tool: Fix comments.  Fix parse problem.
82557         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
82558
82559 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
82560
82561         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
82562         implementation of getopt_long.  Problem reported by Alexander Taler in:
82563         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
82564
82565 2004-10-15  Bruno Haible  <bruno@clisp.org>
82566
82567         * gnulib-tool: Untabify. Initialize supplied_libname.
82568         (func_usage): More homogenous output.
82569         (func_modules_transitive_closure, func_modules_to_filelist,
82570         func_emit_lib_Makefile_am): New functions.
82571         (func_import): New function, extracted from big case statement. Use
82572         func_get_license, func_modules_transitive_closure,
82573         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
82574         opt_lgpl. Don't use test -a, as it's not portable.
82575         (func_create_testdir): Use func_modules_transitive_closure,
82576         func_modules_to_filelist, func_emit_lib_Makefile_am.
82577
82578 2004-10-15  Bruno Haible  <bruno@clisp.org>
82579
82580         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
82581
82582 2004-10-15  Bruno Haible  <bruno@clisp.org>
82583
82584         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
82585         the portions belonging to each module.
82586         Suggested by Derek Robert Price <derek@ximbiot.com>.
82587
82588 2004-10-12  Simon Josefsson  <jas@extundo.com>
82589
82590         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82591         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
82592         to real functions.
82593
82594 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82595
82596         * modules/vsnprintf: New file.
82597
82598 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82599
82600         * m4/vsnprintf.m4: New file.
82601
82602 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82603
82604         * lib/vsnprintf.h: New file.
82605         * lib/vsnprintf.c: New file.
82606
82607 2004-10-11  Bruno Haible  <bruno@clisp.org>
82608
82609         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
82610         vsnprintf.
82611
82612 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82613
82614         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
82615
82616 2004-10-07  Bruno Haible  <bruno@clisp.org>
82617
82618         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
82619         fits into the provided buffer.
82620
82621 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82622
82623         * lib/diacrit.c, diacrit.h: Add GPL notice.
82624
82625         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
82626         notice.
82627         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
82628         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
82629         This avoids a potential constant-folding bug.
82630
82631 2004-10-05  Bruno Haible  <bruno@clisp.org>
82632
82633         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
82634         for the declaration of strsep.
82635
82636 2004-10-05  Bruno Haible  <bruno@clisp.org>
82637
82638         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
82639
82640 2004-10-04  Simon Josefsson  <jas@extundo.com>
82641
82642         * modules/memmem: New file.
82643         * tests/test-memmem.c: New file.
82644         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
82645
82646 2004-10-04  Simon Josefsson  <jas@extundo.com>
82647
82648         * m4/memmem.m4: New file.
82649
82650 2004-10-04  Simon Josefsson  <jas@extundo.com>
82651
82652         * lib/memmem.h: New file.
82653         * lib/memmem.c: New file, taken from glibc.
82654
82655 2004-10-04  Simon Josefsson  <jas@extundo.com>
82656
82657         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
82658         '#ifdef USE_UNLOCKED_IO'.
82659
82660 2004-10-04  Simon Josefsson  <jas@extundo.com>
82661
82662         * config/srclist.txt: Add memmem from glibc.
82663
82664 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
82667
82668         * modules/argmatch, modules/argp, modules/closeout, modules/error,
82669         modules/exclude, modules/getdate, modules/getline,
82670         modules/getndelim2, modules/getpass, modules/getpass-gnu,
82671         modules/getusershell, modules/linebuffer, modules/md5,
82672         modules/mountlist, modules/posixtm, modules/readtokens,
82673         modules/readutmp, modules/regex, modules/sha1,
82674         modules/version-etc, modules/yesno:
82675         Remove dependency on unlocked-io.
82676
82677 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82678
82679         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
82680
82681         * m4/unlocked-io.m4: Add copyright notice.
82682         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
82683
82684 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82685
82686         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
82687         * lib/xmalloc.c (xmemdup): Likewise.
82688         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
82689         XFREE): Remove these long-obsolescent macros.
82690         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
82691         * lib/xstrdup.c: Remove.
82692
82693         * lib/regex.c (re_comp): Cast gettext return value to char *,
82694         Problem reported by Martin Neitzel via Mark D. Baushke.
82695
82696 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82697
82698         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
82699         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
82700         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
82701         regex.c, sha1.c, version-etc.c, yesno.c:
82702         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
82703         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
82704         the includer's responsibility.
82705
82706         Sync from coreutils.
82707
82708         * lib/modechange.c (mode_compile): Don't decrement a pointer that
82709         points to the start of a string, as the C Standard says the
82710         resulting behavior is undefined.
82711
82712         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
82713         simple -> simple_backups, numbered_existing ->
82714         numbered_existing_backups, numbered -> numbered_backups
82715         to avoid shadowing problems.  All uses changed.
82716         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
82717         * lib/backupfile.c (check_extension, numbered_backup):
82718         Rename locals to avoid shadowing 'basename'.
82719         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
82720         once.
82721
82722         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
82723         * lib/.cvsignore: Add getopt.h.
82724
82725 2004-10-04  Bruno Haible  <bruno@clisp.org>
82726
82727         * modules/README: New file.
82728         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
82729         not a module.
82730
82731 2004-10-02  Jim Meyering  <jim@meyering.net>
82732
82733         * lib/dirfd.h, getpagesize.h: Add copyright notice.
82734
82735 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82736
82737         * modules/strsep: New file.
82738
82739 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82740
82741         * m4/strsep.m4: New file.
82742
82743 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82744
82745         * lib/strsep.h: New file.
82746         * lib/strsep.c: New file.
82747
82748 2004-10-01  Simon Josefsson  <jas@extundo.com>
82749
82750         * lib/snprintf.c (snprintf): Handle size==0.
82751
82752 2004-10-01  Simon Josefsson  <jas@extundo.com>
82753             Bruno Haible  <bruno@clisp.org>
82754
82755         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
82756         (snprintf): Declare 'args'.
82757
82758 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * lib/snprintf.c: Remove comments as to why each header is needed.
82761
82762 2004-10-01  Bruno Haible  <bruno@clisp.org>
82763
82764         * MODULES.html.sh: Add strsep.
82765
82766 2004-09-30  Simon Josefsson  <jas@extundo.com>
82767
82768         * modules/snprintf: New file.
82769
82770 2004-09-30  Simon Josefsson  <jas@extundo.com>
82771
82772         * m4/snprintf.m4: New file.
82773
82774 2004-09-30  Simon Josefsson  <jas@extundo.com>
82775
82776         * lib/snprintf.h, lib/snprintf.c: New files.
82777
82778 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82779
82780         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
82781         (hol_entry_help): Never translate an empty string.
82782         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
82783         * lib/argp.h (OPTION_NO_TRANS): New option.
82784
82785 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82786
82787         * modules/argp (Maintainer): Replace Simon Josefsson
82788         by Sergey Poznyakoff.
82789
82790 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82791
82792         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
82793         changes merged back into glibc.
82794
82795 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
82798
82799 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82800
82801         * lib/xvasprintf.c: Include xalloc.h.
82802         (xvasprintf): Use xalloc_die, not xmalloc_die.
82803
82804 2004-09-29  Bruno Haible  <bruno@clisp.org>
82805
82806         * modules/alloca-opt: New file, derived from modules/alloca.
82807         * modules/allocsa: Depend on alloca-opt instead of alloca.
82808         * modules/setenv: Likewise.
82809         * modules/vasnprintf: Likewise.
82810         * MODULES.html.sh: Add alloca-opt.
82811
82812 2004-09-28  Simon Josefsson  <jas@extundo.com>
82813
82814         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82815         LGPL, and to replace license template from GPL to LGPL.
82816
82817 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82818
82819         * modules/dummy: Change license to LGPL.
82820
82821 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82822
82823         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82824
82825 2004-09-24  Simon Josefsson  <jas@extundo.com>
82826
82827         * modules/minmax (License): Change from GPL to LGPL.
82828
82829 2004-09-23  Simon Josefsson  <jas@extundo.com>
82830
82831         * gnulib-tool (--import): Typo.
82832
82833 2004-09-23  Simon Josefsson  <jas@extundo.com>
82834
82835         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82836
82837 2004-09-22  Bruno Haible  <bruno@clisp.org>
82838
82839         * modules/*: Add 'License' field.
82840         * gnulib-tool: Accept --extract-license option.
82841         (func_get_license): New function.
82842
82843 2004-09-21  Bruno Haible  <bruno@clisp.org>
82844
82845         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82846         Reported by Simon Josefsson.
82847
82848 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82849
82850         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82851         gl_AC_TYPE_LONG_LONG.
82852
82853 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82854
82855         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82856
82857 2004-09-18  Simon Josefsson  <jas@extundo.com>
82858         and  Paul Eggert  <eggert@cs.ucla.edu>
82859
82860         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82861         calls with autoreconf.  Define GL_LIB.
82862
82863 2004-09-14  Karl Berry  <karl@gnu.org>
82864
82865         * config/srclist.txt: unsync setenv.c, sigh.
82866
82867 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82868
82869         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82870         Problem reported by Bruno Haible in:
82871         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82872
82873 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * config/srclist.txt: Comment out argp-pvh.c.
82876
82877 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82878
82879         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82880         in case some system header has #define'd it.  Problem reported by
82881         Soeren D. Schulze in
82882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82883
82884 2004-09-09  Karl Berry  <karl@gnu.org>
82885
82886         * regex.[ch]: delete from the root.  These were supposed to be
82887                 synced with emacs cvs, but this has not happened for about
82888                 a year, and anyway nothing else uses emacs regex.[ch].
82889                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82890                 lib/regex[.ch] is untouched.
82891
82892 2004-09-09  Bruno Haible  <bruno@clisp.org>
82893
82894         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82895
82896 2004-09-09  Bruno Haible  <bruno@clisp.org>
82897
82898         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82899         modifications.
82900         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82901
82902 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82903
82904         * modules/xvasprintf: New file.
82905         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82906
82907 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82908
82909         * lib/xvasprintf.h: New file.
82910         * lib/xvasprintf.c: New file.
82911         * lib/xasprintf.c: New file.
82912
82913 2004-09-08  Bruno Haible  <bruno@clisp.org>
82914
82915         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82916
82917 2004-09-08  Bruno Haible  <bruno@clisp.org>
82918
82919         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82920         length is > INT_MAX.
82921         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82922         more.
82923
82924 2004-09-08  Bruno Haible  <bruno@clisp.org>
82925
82926         * lib/stdint_.h: New file, taken from GNU clisp.
82927
82928 2004-09-08  Bruno Haible  <bruno@clisp.org>
82929             Oskar Liljeblad  <oskar@osk.mine.nu>
82930
82931         * modules/stdint: New file.
82932         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82933
82934 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82935
82936         Import from coreutils.
82937         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82938         strings on unbounded length.  alloca's performance benefits aren't
82939         that important here.
82940         (V_STRDUP): Remove.
82941         (parse_with_separator): New function, with most of the internals
82942         of the old parse_user_spec.  Allow user to omit both user and group,
82943         for compatibility with FreeBSD.
82944         Clone only the user name, not the entire spec.
82945         Do not set *uid, *gid unless entirely successful.
82946         Avoid memory leak in some failing cases.
82947         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82948         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82949         (parse_user_spec): Rewrite to use parse_with_separator.
82950
82951 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82952
82953         * modules/userspec: Don't depend on alloca.
82954
82955 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82958
82959 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82960
82961         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82962         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82963         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82964
82965 2004-08-16  Simon Josefsson  <jas@extundo.com>
82966
82967         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82968         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82969         Add --dry-run for --import.
82970         Let user provided command line parameters override configure.ac
82971         settings.
82972
82973 2004-08-12  Simon Josefsson  <jas@extundo.com>
82974
82975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82976         as discussed with Paul Eggert in threads rooted at
82977         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82978         and
82979         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82980         Before, the test was empty, and relied on ELIDE_CODE in source
82981         code.)
82982         (gl_PREREQ_GETOPT): New macro.
82983         (gl_GETOPT): Use them.
82984
82985 2004-08-12  Simon Josefsson  <jas@extundo.com>
82986
82987         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82988         * lib/getopt_.h: Renamed from getopt.h.
82989
82990 2004-08-12  Simon Josefsson  <jas@extundo.com>
82991
82992         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82993         Change default library name from libfoo to libgnu.
82994         Now, if you have a configure.ac that says:
82995                 gl_SOURCE_BASE(gl)
82996                 gl_M4_BASE(gl/m4)
82997                 gl_MODULES(error getopt etcetera)
82998                 gl_INIT
82999         you can import all you need by running:
83000                 ../gnulib/gnulib-tool --import
83001
83002         * modules/getopt (Files): Rename getopt.h to getopt_.h.
83003         (Makefile.am): Rewrite, use logic from argz.
83004         (Include): Use <getopt.h> instead of "getopt.h".
83005
83006 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83007
83008         * modules/argp (Files): Add m4/unlocked-io.m4.
83009         (Depends-on): Add extensions.
83010
83011 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83012
83013         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
83014         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
83015         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
83016         Check for program_invocation_name, program_invocation_short_name,
83017         flockfile, funlockfile, features.h, _getopt_long_only_r.
83018
83019 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
83022         its complicated substitute.
83023         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
83024         and program_invocation_name.
83025         (__argp_basename) [!_LIBC]: Remove; the only use was
83026         replaced by its body.
83027         (__argp_short_program_name): Change condition from
83028         !defined __argp_short_program_name to
83029         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
83030         to match argp-namefrob.h.
83031         (__argp_failure): Don't assume strerror_r returns char *.
83032         * lib/argp-parse.c (N_): Define unconditionally.
83033         (argp_default_options): Fill out initializers with 0 to avoid
83034         gcc warnings.
83035
83036 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
83039         getopt1.c.
83040
83041 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83042
83043         Merge from coreutils.
83044
83045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
83046
83047         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
83048         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
83049
83050 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83051
83052         Merge from coreutils.
83053
83054         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
83055         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
83056         for Reliant Unix 5.43.
83057
83058         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
83059         (union fooround): Use uintmax_t, not long int.
83060         The rest is a merge from libc:
83061         [defined _LIBC]: Include <shlib-compat.h>.
83062         (_obstack) [defined _LIBC]: Remove after 2.3.4.
83063
83064         * lib/settime.c (settime): Recode to avoid warning with
83065         Sun Forte C 6U2.
83066
83067         * lib/strverscmp.c: Convert to UTF-8.
83068
83069 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83070
83071         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83072         m4/uintmax_t.m4.
83073
83074 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83075
83076         * modules/xalloc-die: New file.
83077         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
83078
83079         * modules/md5 (Files): Add m4/uint32_t.m4.
83080         * modules/sha1: Renamed from modules/sha.
83081         (Files):
83082         Rename lib/sha.h to lib/sha1.h.
83083         Rename lib/sha.c to lib/sha1.c.
83084         Rename m4/sha.m4 to m4/sha1.m4.
83085         (lib_SOURCES): Likewise.
83086         (configure.ac): Rename gl_SHA to gl_SHA1.
83087         (Include): sha.h -> sha1.h.
83088
83089 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
83092         * m4/sha1.m4: Renamed from sha.m4.
83093         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
83094
83095 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83096
83097         * lib/obstack.h (obstack_empty_p):
83098         Don't assume that chunk->contents is suitably aligned.
83099         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
83100         Likewise. Problem reported by Benno in
83101         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
83102
83103         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
83104         readable.  This could be improved further but it'd take some work.
83105
83106 2004-08-08  Simon Josefsson  <jas@extundo.com>
83107
83108         * modules/xgethostname (Depends-on): Remove exit and error (not
83109         used).
83110
83111         * modules/getpass-gnu: Add getpass.h.
83112         (Depends-on): Add stdbool.
83113         * modules/getpass: Add getpass.h.
83114
83115 2004-08-08  Simon Josefsson  <jas@extundo.com>
83116
83117         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
83118         Check getpass declaration.
83119
83120 2004-08-08  Simon Josefsson  <jas@extundo.com>
83121
83122         * lib/xgethostname.c: Don't include error.h (not used).
83123
83124         * lib/getpass.h: Add.
83125         * lib/getpass.c: Include getpass.h first.
83126
83127 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
83128
83129         * lib/xalloc-die.c: New file.
83130         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
83131         All uses removed.
83132         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
83133         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
83134         xalloc-die.c.
83135         (_, N_, xalloc_die): Move to xalloc-die.c.
83136         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
83137         so that we needn't mess with xalloc_msg_memory_exhausted.
83138
83139         * lib/sha1.h: Renamed from sha.h.
83140         (SHA1_H): Renamed from _SHA_H.
83141         (sha1_ctx): Renamed from sha_ctx.
83142         (sha1_init_ctx): Renamed from sha_init_ctx.
83143         (sha1_process_block): Renamed from sha_process_block.
83144         (sha1_process_bytes): Renamed from sha_process_bytes.
83145         (sha1_finish_ctx): Renamed from sha_finish_ctx.
83146         (sha1_read_ctx): Renamed from sha_read_ctx.
83147         (sha1_stream): Renamed from sha_stream.
83148         (sha1_buffer): Renamed from sha_buffer.
83149         * lib/sha1.c: Likewise; renamed from sha.c.
83150         Do not include <sys/types.h>.
83151         Include <stddef.h> rather than <stdlib.h>.
83152
83153 2004-08-08  Bruno Haible  <bruno@clisp.org>
83154
83155         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
83156         FILESYSTEM_PREFIX_LEN.
83157         * lib/progreloc.c: Likewise.
83158         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
83159
83160 2004-08-06  Simon Josefsson  <jas@extundo.com>
83161
83162         * modules/progname (Depends-on): Don't depend on stdbool.
83163
83164 2004-08-06  Simon Josefsson  <jas@extundo.com>
83165
83166         * modules/getsubopt: New file.
83167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83168         getsubopt.
83169
83170 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         More merge from coreutils.
83173
83174         * m4/utimens.m4, m4/utimecmp.m4: New files.
83175         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
83176         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
83177         prereq.m4, sha.m4: Import changes from coreutils.
83178
83179 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83180
83181         More merge from coreutils.
83182         * modules/raise, modules/readtokens0, modules/utimens:
83183         * modules/utimecmp, module/xnanosleep: New files.
83184         * modules/strftime: Add lib/strftime.h.
83185         Change include from <time.h> to "strftime.h".
83186         * modules/yesno: Add lib/yesno.h.
83187         * modules/backupfile: Remove lib/addext.c.
83188         * modules/euidaccess: Add stat-macros.h.
83189         * modules/canonicalize, modules/euidaccess,
83190         modules/filemode, modules/lchown, modules/makepath,
83191         modules/rmdir, modules/stat: Likewise.
83192
83193 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         Merge from tar.
83196         * lib/argp-help.c (make_hol, hol_append): Don't assume that
83197         SIZE_MAX is a valid preprocessor constant.
83198         (__argp_basename): Change from "#ifndef _LIBC"
83199         to "#ifndef __argp_short_program_name", so that
83200         we don't compile these functions for tar.
83201
83202         More merges from coreutils.
83203         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
83204         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
83205         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
83206         * lib/addext.c: Remove; no longer needed.
83207         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
83208         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
83209         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
83210         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
83211         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
83212         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
83213         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
83214         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
83215         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
83216         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83217         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
83218         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
83219         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
83220         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
83221         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
83222         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
83223         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
83224         Import changes from coreutils.
83225
83226 2004-08-05  Simon Josefsson  <jas@extundo.com>
83227
83228         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
83229
83230 2004-08-05  Simon Josefsson  <jas@extundo.com>
83231
83232         * m4/getsubopt.m4: New file.
83233
83234 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         Merge from coreutils.
83237
83238         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
83239         * m4/getcwd-path-max.m4: New files.
83240
83241         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
83242         FILESYSTEM_PREFIX_LEN ->
83243         FILE_SYSTEM_PREFIX_LEN.
83244         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
83245         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
83246         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
83247         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
83248
83249         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
83250         prerequisite modules now handle the DOS stuff.
83251         Don't check for unistd.h.
83252
83253 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83254
83255         Merge from coreutils.
83256
83257         * lib/.gdb-history: Remove; this doesn't belong here.
83258
83259         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
83260         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
83261         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
83262         * lib/getcwd.c: New files.
83263
83264         * lib/dirname.h: Include <stdbool.h>.
83265         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
83266         for consistency with POSIX terminology.  All uses changed.
83267         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
83268         (strip_trailing_slashes): Use bool for booleans.
83269         * lib/stripslash.c (strip_trailing_slashes): Likewise.
83270
83271         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
83272         sometimes returns a positive errno value even when it succeeds.
83273         (print_errno_message) [!LIBC]: Fall back on strerror if
83274         __strerror_r fails.
83275
83276         * lib/path-concat.c (mempcpy): Don't define if a system header defines
83277         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
83278         (longest_relative_suffix): New function.
83279         (path_concat): Use it.  Assume first argument is not NULL.
83280         Port to DOS.  Omit redundant separators.
83281         Report an error instead of returning NULL.
83282         Use mempcpy instead of memcpy.
83283         (xpath_concat): Remove: not declared or used.
83284
83285         * lib/same.h: Include <stdbool.h>
83286         (same_name): Return bool, not int.
83287         * lib/same.c (same_name): Likewise.
83288         (errno): Don't declare; we assume C89 or better now.
83289
83290         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
83291         if not already defined.
83292
83293         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
83294         * lib/dup-safer.c (errno): Likewise.
83295
83296 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83297
83298         Merge from coreutils.
83299         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
83300         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
83301         * modules/path-concat: Don't depend on strdup.
83302
83303 2004-08-03  Simon Josefsson  <jas@extundo.com>
83304
83305         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
83306         * lib/progname.h: Don't include stdbool.h.
83307
83308 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83309
83310         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
83311         * MODULES.html.sh (func_all_modules): Remove fatal.
83312
83313 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83314
83315         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
83316
83317 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83318
83319         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
83320         working.
83321
83322 2004-08-02  Simon Josefsson  <jas@extundo.com>
83323
83324         * lib/getsubopt.h: New file, with comments from Bruno Haible.
83325         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
83326         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
83327
83328 2004-08-01  Simon Josefsson  <jas@extundo.com>
83329
83330         * lib/xgetdomainname.c: Include stdlib.h, for free().
83331
83332 2004-07-19  Bruno Haible  <bruno@clisp.org>
83333
83334         * MODULES.html.sh (func_all_modules): Add dummy.
83335
83336 2004-07-16  Simon Josefsson  <jas@extundo.com>
83337
83338         * modules/dummy: New file.
83339
83340 2004-07-16  Simon Josefsson  <jas@extundo.com>
83341
83342         * lib/dummy.c: New file.
83343
83344 2004-07-16  Bruno Haible  <bruno@clisp.org>
83345
83346         * lib/backupfile.h: Add extern "C" for C++.
83347         * lib/closeout.h: Likewise.
83348         * lib/copy-file.h: Likewise.
83349         * lib/findprog.h: Likewise.
83350         * lib/full-write.h: Likewise.
83351         * lib/pathname.h: Likewise.
83352         * lib/progname.h: Likewise.
83353         * lib/stpcpy.h: Likewise.
83354         * lib/stpncpy.h: Likewise.
83355         * lib/strcase.h: Likewise.
83356         * lib/strstr.h: Likewise.
83357         * lib/xalloc.h: Likewise.
83358
83359         * lib/mbswidth.h: Add extern "C" for C++.
83360         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
83361
83362 2004-07-13  Robert Millan  <robertmh@gnu.org>
83363
83364         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
83365
83366 2004-07-09  Simon Josefsson  <jas@extundo.com>
83367
83368         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
83369         failed without this.)
83370
83371 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         * modules/chown (Files): Add lib/fchown-stub.c, since
83374         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
83375
83376 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * lib/fchown-stub.c: New file.
83379
83380 2004-06-24  Jim Meyering  <jim@meyering.net>
83381
83382         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
83383
83384 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83385
83386         * modules/argz: Omit "#include".
83387
83388         * MODULES.html.sh (func_all_modules): Add calloc, to match
83389         2004-06-01 addition of calloc module.
83390
83391 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83392
83393         * m4/argz.m4: New file, which is autoupdated from libtool.
83394
83395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
83398         libtool.
83399
83400 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83401
83402         * config/srclist-update: Don't insist on "USA." before the
83403         close-comment, as libtool omits the period and puts the */ on a
83404         separate line.
83405         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
83406         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
83407
83408 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
83409
83410         * modules/argz: New file.
83411         * MODULES.html.sh (func_all_modules): Add argz.
83412
83413 2004-06-12  Jim Meyering  <jim@meyering.net>
83414         and  Paul Eggert  <eggert@cs.ucla.edu>
83415
83416         * modules/hash (Files): Add lib/xalloc.h.
83417         * modules/pipe (Depends-on): Add wait-process.
83418         * modules/stat (Depends-on): Add xalloc.
83419         * modules/userspec (Files): Add lib/userspec.h.
83420         * modules/xstrto
83421
83422         Upgrade from gettext-0.13.
83423         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
83424         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
83425         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
83426
83427 2004-06-10  Jim Meyering  <jim@meyering.net>
83428
83429         * lib/calloc.c: New file.
83430
83431 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * lib/getdate.y (yylex): Allow space between sign and number.
83434         Problem reported by Dan Jacobson.
83435
83436 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83437
83438         Merge from coreutils CVS.
83439
83440         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
83441         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
83442         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
83443         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
83444         xstrtol.m4: Fix copyright date and/or serial number.
83445
83446         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
83447         See if we need an fchown replacement.
83448         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
83449         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
83450         and use the replacement function if we detect either defect.
83451
83452         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
83453         gl_UTIMECMP.
83454
83455 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83456         and  Jim Meyering  <jim@meyering.net>
83457
83458         Merge from coreutils CVS.
83459
83460         * lib/stat-macros.h: New file, with contents from file-type.h
83461         and coreutils' system.h.
83462         * lib/file-type.c: Include "stat-macros.h".
83463         * lib/file-type.h (file_type): Move all macro definitions to new file,
83464         stat-macros.h.
83465
83466         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
83467         Wrap old code with this conditional.
83468         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
83469         function that does not dereference symlinks.
83470         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
83471
83472         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
83473         dependency problems.
83474         (xreadlink): Accept new arg SIZE, for efficiency.
83475         All decls and uses changed.
83476         * lib/xreadlink.h: Include <stddef.h>, for size_t.
83477
83478         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
83479         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
83480
83481         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
83482         sysexits.h.
83483
83484 2004-06-01  Jim Meyering  <jim@meyering.net>
83485
83486         * m4/calloc.m4: New file.
83487
83488 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
83489
83490         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
83491         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
83492         Also, fix a typo in a diagnostic.
83493
83494 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83495
83496         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
83497         or AC_FUNC_REALLOC.
83498
83499 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83500
83501         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
83502         macros to be defined.
83503         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
83504         the allocator returns NULL because the requested size is zero.
83505
83506 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83507
83508         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
83509         var.  Add comment explaining why libc still defines it.  This
83510         merges the following patch from glibc:
83511         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
83512
83513 2004-05-20  Andreas Schwab  <schwab@suse.de>
83514
83515         * m4/free.m4: Replace free if it not known to work, not the other
83516         way round.
83517
83518 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83519
83520         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
83521         present in glibc since revision 1.1 of this file.
83522         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
83523         obstack_alignment_mask, obstack_alloc, obstack_base,
83524         obstack_blank, obstack_blank_fast, obstack_chunk_size,
83525         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
83526         obstack_grow0, obstack_init, obstack_int_grow,
83527         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
83528         obstack_next_free, obstack_object_size, obstack_ptr_grow,
83529         obstack_ptr_grow_fast, obstack_room): Remove declarations of
83530         nonexistent functions.
83531
83532 2004-05-18  Karl Berry  <karl@gnu.org>
83533
83534         * config/srclist.txt: break link for vasnprintf.c.
83535
83536 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83537
83538         Port obstack to the AS/400, where pointers are 16 bytes wide and
83539         you cannot cast an integer to a valid pointer.  This patch is
83540         currently waiting to be integrated into glibc; see
83541         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
83542
83543         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
83544         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
83545         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
83546         (struct obstack): temp member is now a union of a pointer and
83547         an integer, instead of an integer.  All integer uses changed.
83548         This does not affect the physical layout of struct obstack,
83549         except on hosts (like the AS/400) where the size or alignment of
83550         void * is greater than that of ptrdiff_t.
83551         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
83552         __STDC__)]: Store temporary in pointer member of union, not
83553         integer member.
83554         * lib/obstack.c: Include <stddef.h>, for offsetof.
83555         (struct fooalign): Remove; it doesn't need a name.
83556         (union fooround): Change double to long double, and add void *.
83557         (DEFAULT_ALIGNMENT): Use offsetof to compute.
83558         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
83559         not a macro.  Hence the values are always int; so remove all
83560         casts-to-int in uses.
83561
83562 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83563
83564         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
83565         we can get this patch merged into glibc.
83566
83567 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83568             Paul Eggert  <eggert@cs.ucla.edu>
83569
83570         * m4/argp: Depend on alloca.
83571
83572 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83573             Paul Eggert  <eggert@cs.ucla.edu>
83574
83575         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
83576         freecoding.
83577
83578 2004-05-17  Bruno Haible  <bruno@clisp.org>
83579
83580         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
83581         precision that consists of a '.' followed by an empty digit string.
83582         Patch by Tor Lillqvist <tml@iki.fi>.
83583
83584 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83585
83586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
83587         for backward compatibility with older code.  We need our own
83588         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
83589         it under some other name, and our alloca.h will define it.
83590
83591 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83592             Derek Price  <derek@ximbiot.com>
83593
83594         * lib/alloca.c: Include <alloca.h>, to get our interface.
83595         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
83596         include <alloca.h> first.  Use C89 prototype for alloca; this
83597         requires including <stddef.h> for size_t.  Use extern "C" if C++.
83598         Use #elif for simplicity, since we can assume C89 now.
83599         Don't try to source the system alloca.h since it will not be found
83600         and to prevent recursively including its replacement.
83601         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
83602         * lib/regex.c: Likewise.
83603
83604 2004-05-16  Derek Price  <derek@ximbiot.com>
83605             Paul Eggert  <eggert@cs.ucla.edu>
83606
83607         getline cleanup.  This changes the getndelim2 API: both order of
83608         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
83609         no delimiter).
83610
83611         * lib/getline.c: Don't include stddef.h or stdio.h, since our
83612         interface does that.
83613         (getline): Always use getdelim, so that we don't have two
83614         copies of this code.
83615         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
83616         if available.
83617         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
83618         (GETNDELIM2_MAXIMUM): New macro.
83619         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
83620         instead of the old practice of delim2==0.  All callers changed.
83621         Return -1 on overflow, instead of returning junk.
83622         Do not set *linesize unless allocation succeeds.
83623         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
83624         that we include sys/types.h.
83625         * lib/getnline.h: Likewise.
83626         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
83627         (getndelim2): Reorder arguments.
83628         * lib/getnline.c (getnline, getndelim):
83629         Don't discard the NMAX argument.
83630         (getnline): Invoke getndelim, to avoid code duplication.
83631         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
83632         of (size_t) -1 by callers of the getnline family.
83633
83634 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
83637         Check for gettimeofday.
83638         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
83639         Check for settimeofday, stime.
83640
83641 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         * lib/nanosleep.c (suspended): Change its type from int to
83644         sig_atomic_t volatile.
83645         (first_call): Make it private to rpl_nanosleep, and have it
83646         be zero initially as that's a bit faster.
83647         (my_usleep): Round up fractional times instead of truncating them,
83648         as this is the usual meaning for 'sleep'.
83649
83650         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
83651         doesn't work.
83652         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
83653         (ENOSYS): Define if not defined.
83654         (settime): Fall back on stime if it exists and settimeofday fails.
83655         But don't bother with fallbacks if a method fails with errno == EPERM.
83656
83657 2004-05-11  Jim Meyering  <jim@meyering.net>
83658
83659         Prior to this change, the save_cwd caller required read access to the
83660         current directory on most systems (ones with the fchdir function).
83661
83662         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
83663         fails, try write-only, and finally, resort to using xgetcwd.
83664
83665 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83666
83667         * lib/obstack.c, obstack.h: Import changes from libc.
83668
83669 2004-04-28  Bruno Haible  <bruno@clisp.org>
83670
83671         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
83672         also implicitly appends .exe to executables.
83673         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
83674         accepts Windows pathnames.
83675         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83676         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83677         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83678         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83679         Reported by Derek Robert Price <derek@ximbiot.com>.
83680
83681 2004-04-21  Karl Berry  <karl@gnu.org>
83682
83683         * config/srclist.txt (localcharset.c): break sync.
83684
83685 2004-04-20  Paul Eggert  <eggert@twinsun.com>
83686
83687         * m4/host-os.m4: Add a copyright notice.
83688
83689 2004-04-20  Jim Meyering  <jim@meyering.net>
83690
83691         Change UTILS_ to gl_ in AC_DEFINE'd names.
83692         Change utils_- and jm_-prefixed variables, too.
83693         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
83694         UTILS_FUNC_MKDIR_TRAILING_SLASH.
83695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
83696
83697         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
83698         Don't emit trailing blanks.
83699         Also rename jm_-prefixed variables to have gl_ prefix.
83700
83701         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
83702         Also rename jm_-prefixed variables to have gl_ prefix.
83703
83704         * m4/jm-macros.m4: Reflect the renamings.
83705         * m4/prereq.m4: Likewise.
83706
83707 2004-04-20  Jim Meyering  <jim@meyering.net>
83708
83709         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
83710         memory.
83711
83712 2004-04-20  Jim Meyering  <jim@meyering.net>
83713             Bruno Haible  <bruno@clisp.org>
83714
83715         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
83716         memory when realloc fails.
83717
83718 2004-04-19  Jim Meyering  <jim@meyering.net>
83719
83720         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
83721         now that readutmp.c may call `free (0)'.
83722
83723 2004-04-19  Bruno Haible  <bruno@clisp.org>
83724
83725         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
83726         * m4/inttypes_h.m4: Likewise.
83727         * m4/stdint_h.m4: Likewise.
83728         * m4/intmax_t.m4: Likewise.
83729         * m4/uintmax_t.m4: Likewise.
83730
83731 2004-04-18  Jim Meyering  <jim@meyering.net>
83732
83733         * m4/prereq.m4: Don't forbid jm_ prefix.
83734
83735         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
83736         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
83737         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
83738         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
83739         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
83740         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
83741         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
83742         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
83743         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
83744         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
83745         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
83746         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
83747         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
83748         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
83749         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
83750         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
83751         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
83752         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
83753         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
83754
83755 2004-04-18  Jim Meyering  <jim@meyering.net>
83756
83757         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
83758         failure, don't leak memory and do call END_UTMP_ENT.
83759
83760 2004-04-16  Jim Meyering  <jim@meyering.net>
83761
83762         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
83763         coreutils' stat program.
83764         (gl_PREREQ): Don't require jm_PREREQ_STAT.
83765
83766 2004-04-11  Paul Eggert  <eggert@twinsun.com>
83767
83768         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
83769         C89.
83770         (CHAR_BIT): Remove, since we assume C89.
83771         Include <stdint.h> if available, as per current Autoconf CVS advice.
83772
83773 2004-03-31  Jim Meyering  <jim@meyering.net>
83774
83775         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
83776         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
83777         * m4/xalloc.m4: Likewise.
83778
83779 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83780
83781         Merge from coreutils.
83782
83783         * m4/inttostr.m4: New file.
83784         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
83785         Require AM_STDBOOL_H and gl_TIMESPEC instead.
83786         Require gl_CLOCK_TIME.
83787         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
83788
83789 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83790
83791         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
83792         not bool, to be more consistent with Unix conventions.
83793         Suggested by Bruno Haible.
83794
83795         Merge from coreutils.
83796
83797         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
83798         * lib/umaxtostr.c: New files.
83799
83800         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
83801         the usual <time.h> dance.
83802         (get_date): Change signature to support fractional time stamps.
83803         All callers changed.
83804         * lib/getdate.y: Include "getdate.h" first, as we can now
83805         assume C89 and don't need to worry about 'const'.
83806         Similarly, include "unlocked-io.h" near start, not in middle.
83807         Include <limits.h>.
83808         (textint.value): Use long int rather than int.
83809         (textint.digits): Use size_t rather than int.
83810         (BILLION, LOG10_BILLION): New constants.
83811         (parser_control): New member rel_ns.  Members day_ordinal,
83812         time_zone, month, day, hour, minutes, rel_year, rel_month,
83813         rel_day, rel_hour, rel_minutes, rel_seconds
83814         are now long int, not int.  Member seconds is now struct timespec,
83815         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83816         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83817         not int.
83818         (%union.intval): Now long int, not int.
83819         New member timespec.
83820         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83821         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83822         (spec): Now is a timespec or an item list.
83823         (timespec, items): New nonterminals.
83824         (time, rel, relunit, number, get_date):
83825         Add support for fractional seconds.
83826         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83827         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83828         (to_hour): First arg is now long int, not int.
83829         (to_year): Returns long int, not int.
83830         Don't treat year -70 like 70.
83831         (tm_diff): Returns long int, not int.
83832         (lookup_word): Use bool instead of int when appropriate.
83833         (yylex): Use size_t for count, not int.
83834         Detect overflow when parsing large integer constants.
83835         Add support for fractions.
83836         (get_date): Make pointers 'const' if possible.
83837         Use more-portable code to detect integer overflow.
83838         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83839         Don't use ctime; it's not reliable if the year has >4 digits.
83840
83841         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83842         This is for compatibility with BSD.
83843
83844         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83845         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83846         From coreutils' system.h.
83847
83848         * lib/userspec.c: Don't include "posixver.h".
83849         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83850         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83851         compatible extension.  Simplify code by removing a boolean int
83852         that was always nonzero if a string was nonnull.
83853
83854 2004-03-30  Jim Meyering  <jim@meyering.net>
83855
83856         Merge from coreutils.
83857
83858         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83859         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83860         on some systems one must include <grp.h> before it.
83861         Reported by Christian Krackowizer.
83862
83863 2004-03-30  Jim Meyering  <jim@meyering.net>
83864
83865         Merge from coreutils.
83866
83867         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83868
83869         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83870         an empty input stream.
83871
83872         * lib/readtokens.c: Include <stdbool.h>.
83873         (readtoken): Use `size_t' rather than int/long.
83874         All callers adjusted.
83875         Use `bool' rather than `int' where appropriate.
83876         Use memset rather than an explicit loop.
83877         Use x2nrealloc rather than xrealloc.
83878         Allow the use of `\0' as a delimiter.
83879         (readtokens): Likewise.
83880         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83881
83882 2004-03-30  Jim Meyering  <jim@meyering.net>
83883
83884         * m4/realloc.m4: Remove file, since now it does no more than
83885         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83886         the `configure.ac' section of module/realloc.
83887         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83888
83889 2004-03-30  Bruno Haible  <bruno@clisp.org>
83890
83891         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83892         nonnull.
83893
83894 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83895
83896         Merge changes to getloadavg.c from coreutils and Emacs.
83897
83898         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83899         Define to an expression, not to the empty string.
83900         Include cloexec.h and xalloc.h.
83901         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83902         Use set_cloexec_flag rather than rolling our own.
83903         * lib/cloexec.c, lib/cloexec.h: New files.
83904
83905 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83906
83907         * m4/cloexec.m4: New file.
83908
83909 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83910
83911         * lib/getopt.h: Sync with libc CVS.
83912
83913 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83914             Bruno Haible  <bruno@clisp.org>
83915
83916         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83917         mbswidth.
83918
83919 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83920             Bruno Haible  <bruno@clisp.org>
83921
83922         * lib/mbswidth.h: Include <wchar.h> only if
83923         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83924         <wchar.h>.
83925         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83926
83927 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83928
83929         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83930         Sync with libc CVS.
83931         * lib/getopt_int.h: New file, also synced from libc.
83932
83933 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83934
83935         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83936         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83937         Bring back getopt.c, getopt.h, getopt1.c.
83938
83939 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83940
83941         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83942         All uses changed.  Check for sa_sigaction member; this fixes
83943         a bug first reported by Jason Andrade in
83944         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83945
83946 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83947
83948         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83949         '#if' expressions.  Unlike the code it replaces, it does not
83950         depend on (defined _SC_PAGESIZE).  However, it does depend on
83951         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83952         first reported by Jason Andrade in
83953         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83954
83955 2004-02-25  Simon Josefsson  <jas@extundo.com>
83956
83957         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83958
83959 2004-02-25  Simon Josefsson  <jas@extundo.com>
83960
83961         * lib/strdup.h: New file.
83962         * lib/strdup.c: Include it.
83963         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83964         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83965
83966 2004-02-23  Karl Berry  <karl@gnu.org>
83967
83968         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83969         (from fencepost.gnu.org:/gd/gnuorg).
83970
83971 2004-02-23  Karl Berry  <karl@gnu.org>
83972
83973         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83974         * config/srclist.txt: add maintain/standards documents.
83975
83976 2004-02-18  Bruno Haible  <bruno@clisp.org>
83977
83978         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83979         Reported by Derek Robert Price <derek@ximbiot.com>.
83980
83981 2004-02-16  Karl Berry  <karl@gnu.org>
83982
83983         * config/mkinstalldirs, install-sh: update from automake.
83984
83985 2004-02-06  Karl Berry  <karl@gnu.org>
83986
83987         * m4/po.m4: update from gettext 0.14.1.
83988
83989 2004-02-06  Karl Berry  <karl@gnu.org>
83990
83991         * lib/config.charset: update from gettext 0.14.1.
83992
83993 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83994
83995         Add comments and code, prompted by suggestions from Bruno Haible
83996         for sh-quote.
83997         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83998         describing the enum quoting_style values.
83999         * lib/quotearg.c (quotearg_alloc): New function.
84000         (quotearg_buffer_restyled): Treat lone { and } as special.
84001         Treat = as special.  Work around bug with older shells
84002         that "see" a '\' that is really the 2nd byte of a multibyte char.
84003         Quote empty string with shell_quoting_style.
84004
84005 2004-02-03  Bruno Haible  <bruno@clisp.org>
84006
84007         * m4/pipe.m4: New file, from GNU gettext.
84008
84009 2004-02-03  Bruno Haible  <bruno@clisp.org>
84010
84011         * lib/pipe.h: New file, from GNU gettext.
84012         * lib/pipe.c: New file, from GNU gettext.
84013
84014 2004-01-27  Bruno Haible  <bruno@clisp.org>
84015
84016         * m4/execute.m4: New file, from GNU gettext.
84017
84018 2004-01-27  Bruno Haible  <bruno@clisp.org>
84019
84020         * lib/execute.h: New file, from GNU gettext.
84021         * lib/execute.c: New file, from GNU gettext.
84022         * lib/w32spawn.h: New file, from GNU gettext.
84023
84024 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84025
84026         Merge from diffutils.
84027
84028         * lib/file-type.c (file_type): Add typed memory objects.
84029         * lib/file-type.h (S_TYPEISTMO): New macro.
84030
84031         * lib/c-stack.h (c_stack_action): Remove argv argument.
84032         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
84033         (die): Don't calculate message unless segv_action returns.
84034         (get_stack_location, min_address_from_argv, max_address_from_argv,
84035         volatile stack_base, volatile_stack_size): Remove.
84036         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
84037         that every segmentation violation is a stack overflow.  (Ouch!)
84038         See Debian bug 136249 (still outstanding) for more info about why
84039         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
84040
84041 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84042
84043         Exit-status fix from coreutils.
84044
84045         Use exit_failure consistently in place of EXIT_FAILURE,
84046         so that program exit statuses are consistent on failure.
84047
84048         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
84049         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
84050         * lib/argmatch.h: Comment fix to match the above.
84051         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
84052         Now a macro referring to exit_failure, instead of a separate
84053         variable.  Include "exitfail.h" to get it.
84054         * lib/xstrtol.h: Include "exitfail.h".
84055         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
84056
84057         * lib/long-options.c (parse_long_options): Use prototype
84058         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
84059         for clarity.
84060
84061 2004-01-21  Jim Meyering  <jim@meyering.net>
84062
84063         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
84064         so as not to conflict with a different-sized __mktime_internal
84065         function in GNU libc.
84066         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
84067         Problem building statically-linked `ls' reported by Michael Brunnbauer.
84068
84069 2004-01-20  Karl Berry  <karl@gnu.org>
84070
84071         * config/config.guess: update from config.
84072
84073         * config/srclistvars.sh: GNUWWWLICENSES for karl.
84074
84075 2004-01-20  Bruno Haible  <bruno@clisp.org>
84076
84077         Safer stack allocation.
84078         * lib/setenv.c: Include allocsa.h.
84079         (alloca): Remove fallback definition.
84080         (freea): Remove macro.
84081         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
84082         instead of freea.
84083
84084 2004-01-20  Bruno Haible  <bruno@clisp.org>
84085
84086         * m4/eealloc.m4: New file, from GNU gettext.
84087
84088 2004-01-20  Bruno Haible  <bruno@clisp.org>
84089
84090         * m4/allocsa.m4: New file, from GNU gettext.
84091
84092 2004-01-20  Bruno Haible  <bruno@clisp.org>
84093
84094         * lib/xallocsa.h: New file, from GNU gettext.
84095         * lib/xallocsa.c: New file, from GNU gettext.
84096
84097 2004-01-20  Bruno Haible  <bruno@clisp.org>
84098
84099         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
84100
84101 2004-01-20  Bruno Haible  <bruno@clisp.org>
84102
84103         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
84104         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
84105         specially.
84106
84107 2004-01-20  Bruno Haible  <bruno@clisp.org>
84108
84109         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
84110         patch.
84111
84112 2004-01-20  Bruno Haible  <bruno@clisp.org>
84113
84114         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
84115
84116 2004-01-20  Bruno Haible  <bruno@clisp.org>
84117
84118         * lib/eealloc.h: New file.
84119
84120 2004-01-20  Bruno Haible  <bruno@clisp.org>
84121
84122         * lib/binary-io.h: Avoid warnings on Cygwin.
84123
84124 2004-01-20  Bruno Haible  <bruno@clisp.org>
84125
84126         * lib/allocsa.h: New file, from GNU gettext.
84127         * lib/allocsa.c: New file, from GNU gettext.
84128
84129 2004-01-18  Karl Berry  <karl@gnu.org>
84130
84131         * doc/gpl.texi, doc/lgpl.texi: new files.
84132
84133 2004-01-18  Karl Berry  <karl@gnu.org>
84134
84135         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
84136         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
84137
84138 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84139
84140         Merge from coreutils.
84141
84142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
84143         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
84144         (gl_DEFAULT_POSIX2_VERSION): Move
84145         the documentation from 'configure' into 'config.hin',
84146         so that 'configure --help' isn't burdened by it and
84147         we don't have to worry about its formatting there.
84148         Reword the documentation so that it's more succinct
84149         and can be run together into a single paragraph.
84150         * m4/same.m4 (gl_SAME): Check for pathconf.
84151
84152 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84153
84154         Merge from coreutils.
84155
84156         * lib/posixver.c: Include posixver.h.
84157
84158         * lib/same.c: Include <stdbool.h>, <limits.h>.
84159         (_POSIX_NAME_MAX): Define if not defined.
84160         (MIN): New macro.
84161         (same_name): If file names are silently truncated, report
84162         that the file names are the same if they are the same after
84163         the silent truncation.
84164
84165         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
84166         conversion function.
84167         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
84168         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
84169         longer needed.
84170
84171 2004-01-15  Jim Meyering  <jim@meyering.net>
84172
84173         Merge from coreutils.
84174
84175         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
84176         if no library is required.
84177         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
84178         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
84179         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
84180         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
84181         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
84182         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
84183         value, $ac_cv_search_crypt, if it's "none required".
84184         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
84185         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
84186         not gl_FUNC_GETLOADAVG.
84187         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
84188         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
84189
84190 2004-01-15  Jim Meyering  <jim@meyering.net>
84191
84192         Merge from coreutils.
84193
84194         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
84195         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
84196         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
84197
84198         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
84199         optional configure-time default.
84200
84201         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84202
84203         * lib/xreadlink.c (xreadlink): Correct outdated comment.
84204
84205 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
84206
84207         Merge from coreutils.
84208
84209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
84210         value, $ac_cv_search_nanosleep, if it's "none required".
84211
84212 2004-01-14  Paul Eggert  <eggert@twinsun.com>
84213
84214         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
84215         with like-named macro in fnmatch.c.
84216         (EXT): Use an internal constant instead.
84217
84218         Merge fnmatch patches from glibc.
84219         * lib/fnmatch.c (mbsinit): Remove define.
84220         Add libc_hidden_ver (__fnmatch, fnmatch).
84221         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
84222         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
84223
84224 2004-01-14  Karl Berry  <karl@gnu.org>
84225
84226         * config/install-sh: update from automake.
84227
84228 2004-01-13  Karl Berry  <karl@gnu.org>
84229
84230         * config/install-sh: update from automake.
84231
84232 2004-01-09  Karl Berry  <karl@gnu.org>
84233
84234         * config/install-sh: update from automake.
84235
84236 2004-01-05  Karl Berry  <karl@gnu.org>
84237
84238         * config/config.{sub,guess}: update from config.
84239
84240 2003-12-31  Karl Berry  <karl@gnu.org>
84241
84242         * config/depcomp: update from automake.
84243
84244 2003-12-14  Karl Berry  <karl@gnu.org>
84245
84246         * lib/config.charset: update from gettext-runtime.
84247
84248 2003-12-03  Paul Eggert  <eggert@twinsun.com>
84249
84250         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
84251         Bug reported by Alfred M. Szmidt.
84252
84253 2003-12-03  Bruno Haible  <bruno@clisp.org>
84254
84255         * m4/gettext.m4: Upgrade from gettext-0.13.
84256         * m4/po.m4: Upgrade from gettext-0.13.
84257         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
84258         * m4/intmax.m4: New file, from gettext-0.13.
84259         * m4/printf-posix.m4: New file, from gettext-0.13.
84260
84261 2003-11-29  Karl Berry  <karl@gnu.org>
84262
84263         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
84264
84265 2003-11-25  Paul Eggert  <eggert@twinsun.com>
84266             Bruno Haible  <bruno@clisp.org>
84267
84268         * lib/printf-parse.h: Don't include sys/types.h.
84269         (ARG_NONE): New macro.
84270         (char_directive): Change type of *arg_index fields to size_t.
84271         * lib/printf-parse.c: Don't include sys/types.h.
84272         (SSIZE_MAX): Remove macro.
84273         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
84274         Remove unnecessary overflow check.
84275         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
84276         fields.
84277
84278 2003-11-25  Bruno Haible  <bruno@clisp.org>
84279
84280         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
84281
84282 2003-11-25  Bruno Haible  <bruno@clisp.org>
84283
84284         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
84285         gt_TYPE_SSIZE_T.
84286
84287 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84288
84289         * modules/alloca: Remove dependency on xalloc.
84290
84291 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84292
84293         * lib/alloca.c: Remove dependency on xalloc module.
84294         (xalloc_die): Remove.
84295         (memory_full) [!defined emacs]: New macro.
84296         [!defined emacs]: Don't include xalloc.h.
84297         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
84298         address arithmetic overflows.  Change datatypes a bit to avoid
84299         unnecessary casts.
84300
84301 2003-11-22  Jim Meyering  <jim@meyering.net>
84302
84303         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
84304         s/size/size_t/.
84305
84306 2003-11-21  Karl Berry  <karl@gnu.org>
84307
84308         * config/config.{sub,guess}: update from config.
84309
84310 2003-11-18  Karl Berry  <karl@gnu.org>
84311
84312         * config/config.{sub,guess}: update from config.
84313
84314         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
84315
84316 2003-11-17  Paul Eggert  <eggert@twinsun.com>
84317
84318         * README: Mention that S+T cannot overflow if S is the size of
84319         an existing object and T is sufficiently small.
84320
84321 2003-11-17  Jim Meyering  <jim@meyering.net>
84322
84323         On systems without utime and without a utimes function capable of
84324         dealing with a NULL struct utimbuf* argument, this utime replacement
84325         could -- in unusual circumstances -- leak a file descriptor.
84326         * lib/utime.c: Include <unistd.h> and <errno.h>.
84327         (utime_null): Be sure to close `fd' and to preserve errno.
84328         Reported by Geoff Collyer via Arnold Robbins.
84329
84330 2003-11-17  Bruno Haible  <bruno@clisp.org>
84331
84332         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
84333         (Depends-on): Add xsize.
84334
84335 2003-11-17  Bruno Haible  <bruno@clisp.org>
84336
84337         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
84338
84339 2003-11-17  Bruno Haible  <bruno@clisp.org>
84340
84341         * lib/vasnprintf.c (alloca): Remove fallback definition.
84342         (freea): Remove definition.
84343         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
84344         Reported by Paul Eggert.
84345
84346 2003-11-16  Paul Eggert  <eggert@twinsun.com>
84347             Bruno Haible  <bruno@clisp.org>
84348
84349         Protect against address arithmetic overflow.
84350         * lib/printf-args.h: Include stddef.h.
84351         (arguments): Change type of field 'count' to size_t.
84352         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
84353         'unsigned int' where appropriate.
84354         * lib/printf-parse.h: Include sys/types.h.
84355         (char_directive): Change type of *arg_index fields to ssize_t.
84356         (char_directives): Change type of fields 'count', max_*_length to
84357         size_t.
84358         * lib/printf-parse.c: Include sys/types.h and xsize.h.
84359         (SSIZE_MAX): Define fallback value.
84360         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
84361         instead of 'int' where appropriate. Check a_allocated, d_allocated
84362         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
84363         * lib/vasnprintf.c: Include xsize.h.
84364         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
84365         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
84366         overflow. Avoid wraparound when converting a width or precision from
84367         decimal to binary.
84368
84369 2003-11-16  Bruno Haible  <bruno@clisp.org>
84370
84371         Update from GNU gettext.
84372         * lib/printf-parse.c: Generalize to it can be compiled for wide
84373         strings.
84374         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
84375         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
84376         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
84377         SNPRINTF): New macros.
84378         Don't include <alloca.h> if the file is used inside libintl.
84379         (local_wcslen): New function, for Solaris 2.5.1.
84380         (VASNPRINTF): Use it instead of wcslen.
84381
84382 2003-11-16  Bruno Haible  <bruno@clisp.org>
84383
84384         * lib/xsize.h (xmax): New function.
84385         (xsum, xsum3, xsum4): Declare as "pure" functions.
84386
84387 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84388
84389         * modules/xalloc (Files): Undo latest change, since xalloc.h
84390         no longer needs SIZE_MAX or PTRDIFF_MAX.
84391
84392 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84393
84394         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
84395         gl_PTRDIFF_MAX.
84396
84397 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84398
84399         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
84400         "return", to pacify some unknown compiler.  Problem reported
84401         by Joerg Schilling.
84402
84403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84404
84405         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
84406         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
84407         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
84408         heuristic is just as accurate as far as we know, and it removes a
84409         dependency on size_max.m4 and ptrdiff_max.m4.
84410
84411 2003-11-11  Bruno Haible  <bruno@clisp.org>
84412
84413         * modules/xsize (Files): Add m4/size_max.m4.
84414         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
84415
84416 2003-11-11  Bruno Haible  <bruno@clisp.org>
84417
84418         * m4/size_max.m4: New file.
84419         * m4/ptrdiff_max.m4: New file.
84420         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
84421         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
84422         (gl_XALLOC): Invoke it.
84423
84424 2003-11-11  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
84427         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
84428         defined.
84429
84430 2003-11-10  Paul Eggert  <eggert@twinsun.com>
84431
84432         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
84433         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
84434         rejected some allocations of exactly SIZE_MAX - 2 bytes.
84435         From Bruno Haible.
84436         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
84437         not (size_t) -1, since it's defined here.
84438
84439 2003-11-09  Karl Berry  <karl@gnu.org>
84440
84441         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
84442
84443 2003-11-06  Paul Eggert  <eggert@twinsun.com>
84444
84445         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
84446         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
84447         Reject sizes of exactly SIZE_MAX bytes.
84448         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
84449         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
84450
84451 2003-11-05  Bruno Haible  <bruno@clisp.org>
84452
84453         * lib/xsize.h: Include limits.h, to avoid a possible collision with
84454         SIZE_MAX defined in <limits.h> on Solaris.
84455
84456 2003-11-04  Jim Meyering  <jim@meyering.net>
84457
84458         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
84459         variable names, rather than @VAR@.
84460         * modules/poll: Likewise.
84461
84462 2003-11-04  Bruno Haible  <bruno@clisp.org>
84463
84464         * modules/xsize: New file.
84465         * modules/linebreak: Depend on xsize.
84466         * MODULES.html.sh (func_all_modules): Add xsize.
84467
84468 2003-11-04  Bruno Haible  <bruno@clisp.org>
84469
84470         * m4/xsize.m4: New file.
84471
84472 2003-11-04  Bruno Haible  <bruno@clisp.org>
84473
84474         * lib/xsize.h: New file.
84475         * lib/linebreak.c: Include xsize.h.
84476         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
84477         argument for overflow.
84478         Suggested by Paul Eggert.
84479
84480 2003-11-03  Karl Berry  <karl@gnu.org>
84481
84482         * config/config.{guess,sub}: update from config.
84483
84484 2003-11-03  Jim Meyering  <jim@meyering.net>
84485
84486         * modules/userspec (lib_SOURCES): Add userspec.h.
84487         (Include): Add "userspec.h".
84488         Improve description.
84489
84490 2003-11-03  Jim Meyering  <jim@meyering.net>
84491
84492         * lib/userspec.c: Include "userspec.h".
84493         * lib/userspec.h: New file.
84494
84495 2003-11-03  Bruno Haible  <bruno@clisp.org>
84496
84497         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
84498
84499 2003-11-03  Bruno Haible  <bruno@clisp.org>
84500
84501         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
84502         available, to avoid (extremely rare) race condition.
84503         Suggested by Paul Eggert.
84504
84505 2003-11-02  Karl Berry  <karl@gnu.org>
84506
84507         * config/srclist.txt (vasprintf.c): sync broken, sigh.
84508
84509 2003-10-31  Paul Eggert  <eggert@twinsun.com>
84510
84511         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
84512         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
84513         (read_filesystem_list): Set and use me_type_malloced.
84514         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
84515         whatever the type happens to be), for brevity and consistency.
84516         Check for size calculation overflow on Alphas running OSF/1.
84517
84518 2003-10-31  Jim Meyering  <jim@meyering.net>
84519
84520         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
84521
84522         * lib/linebuffer.c: Include <string.h> for declaration of memset.
84523
84524 2003-10-30  Paul Eggert  <eggert@twinsun.com>
84525             Bruno Haible  <bruno@clisp.org>
84526
84527         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
84528         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
84529
84530 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84531
84532         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
84533         netbsd*-gnu*.  Suggested by Robert Millan.
84534
84535 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84536
84537         * modules/group-member: Depend on stdbool.
84538
84539 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84540
84541         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
84542
84543 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84544
84545         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
84546         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
84547         after the 'gnu' in these cases.  This fixes some bugs in the
84548         previous change, and is based on suggestions by Robert Millan.
84549
84550 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84551
84552         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
84553         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
84554         no longer needed.
84555         * lib/quotearg.c (quotearg_n_options): Use it.
84556         * lib/group-member.c: Include <stdbool.h>.
84557         (free_group_info): Arg is now const *; don't free arg.
84558         (get_group_info): Now returns bool and accepts struct group_info *,
84559         rather than returning a malloc'ed struct group_info *.
84560         All uses changed.  Check for overflow in internal size calculation.
84561
84562         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
84563         rather than xmalloc/xrealloc.
84564         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
84565         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
84566         conformance bug: the old code used a pointer after freeing the
84567         storage that it addressed.
84568         * lib/hash.c (hash_initialize): Simplify the code by using
84569         xalloc_oversized rather than doing it by hand.
84570         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
84571         the buffer preserved.  Use free and xmalloc instead.
84572         * lib/quotearg.c (quotearg_n_options): Likewise.
84573         Use a simpler test for size overflow.  Don't use xalloc_oversized
84574         because unsigned int might be wider than size_t (!); this suggests
84575         that we should switch from unsigned int to size_t for slot numbers.
84576
84577 2003-10-28  Paul Eggert  <eggert@twinsun.com>
84578
84579         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
84580         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
84581         NetBSD kernels.  Requested by Richard Stallman.
84582
84583 2003-10-27  Paul Eggert  <eggert@twinsun.com>
84584
84585         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
84586         to allocate the returned structure.  Do not allocate a subarray,
84587         as x2nrealloc will do that.
84588         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
84589         instead of xnrealloc.
84590         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
84591
84592 2003-10-27  Bruno Haible  <bruno@clisp.org>
84593
84594         * lib/stdbool_.h: Better support for BeOS.
84595
84596 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84597
84598         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
84599         now uses inline.
84600
84601 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84602
84603         * lib/xalloc.h (xalloc_oversized): New static inline function, for
84604         callers that want to do their own size-overflow checking.  Include
84605         <stdbool.h>, since xalloc_oversized returns bool.
84606         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
84607         to use xalloc_oversized.
84608
84609         Add two functions x2realloc, x2nrealloc, for programs that grow
84610         arrays dynamically by doubling their sizes.
84611         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
84612         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
84613         New functions.
84614
84615         Port to C99 semantics for 'inline' of external functions.
84616         Bug reported by Bruno Haible.
84617         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
84618         with the old contents of xnmalloc.
84619         (xnmalloc, xmalloc): Use it.
84620         (xnrealloc_inline): New static inline function,
84621         with the old contents of xnrealloc.
84622         (xnrealloc, xrealloc): Use it.
84623
84624         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
84625         that.
84626
84627 2003-10-26  Karl Berry  <karl@gnu.org>
84628
84629         * config/srclist.txt (COPYING.DOC): no longer available from
84630         /gd/gnuorg; don't know where the ultimate source is.
84631
84632 2003-10-25  Paul Eggert  <eggert@twinsun.com>
84633
84634         Fix several address-calculation bugs in the hash modules,
84635         plus some minor code cleanup.
84636
84637         * lib/hash.h: Include <stdbool.h>, for bool.
84638         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
84639         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
84640         hash_get_n_entries, hash_get_max_bucket_length,
84641         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
84642         hash_rehash): Use size_t rather than unsigned.
84643         * lib/hash.c (struct hash_table, hash_get_n_buckets,
84644         hash_get_n_buckets_used, hash_get_n_entries,
84645         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
84646         hash_get_entries, hash_do_for_each, hash_string, is_prime,
84647         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
84648         Likewise.
84649         (SIZE_MAX): Define if not defined.
84650         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
84651         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
84652         hash_print):
84653         Use const * when possible.
84654         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
84655         (check_tuning): Fix bug: if tuning parameters were very close to
84656         0 or 1, rounding errors could have caused subscript violations.
84657         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
84658         (hash_initialize): Add 'fail:' label
84659         to free table and return NULL, and use it to simplify code.
84660         Use calloc rather than clearing the storage ourself.
84661         (hash_initialize, hash_rehash): Check for arithmetic overflow in
84662         buffer size calculations.
84663         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
84664         Include <stddef.h>, for size_t.
84665         * lib/hash-pjw.c (hash_pjw): Likewise.
84666         Switch to method described by Bruno Haible.
84667         Include <limits.h>, for CHAR_BIT.
84668         (SIZE_BITS): New macro.
84669
84670 2003-10-23  Paul Eggert  <eggert@twinsun.com>
84671
84672         * m4/getline.m4 (AM_FUNC_GETLINE):
84673         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
84674         hosts.  Problem reported by Derek Robert Price in
84675         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
84676         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
84677         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
84678
84679 2003-10-21  Paul Eggert  <eggert@twinsun.com>
84680
84681         * lib/getndelim2.c (getndelim2): When size calculation overflows,
84682         ceiling the allocation at NMAX bytes rather than silently
84683         discarding input bytes before NMAX is reached.  This makes
84684         a difference only if NMAX exceeds SIZE_MAX / 2.
84685
84686         * lib/obstack.c: Merge from glibc.
84687         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
84688         Add libc_hidden_def (_obstack_newchunk).
84689         (_obstack_free) [! defined _LIBC]: Remove.
84690         [defined _LIBC]: Make a strong alias from obstack_free, rather than
84691         a clone of the function body.
84692         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
84693         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
84694
84695         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
84696         glibc.
84697         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
84698         arg to memcpy.
84699
84700         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
84701         (obstack_ptr_grow_fast, obstack_int_grow_fast):
84702         Don't use lvalue casts, as GCC plans to remove support for them
84703         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
84704         was also present in the non-GCC version, indicating that this
84705         code had always been buggy and had never been widely used.
84706         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
84707         Use the fast variant of each macro, rather than copying the
84708         definiens of the fast variant; that way, we'll be more likely to
84709         catch future bugs in the fast variants.
84710
84711 2003-10-20  Bruno Haible  <bruno@clisp.org>
84712
84713         * modules/wait-process: New file.
84714         * MODULES.html.sh (func_all_modules): Add wait-process.
84715
84716 2003-10-20  Bruno Haible  <bruno@clisp.org>
84717
84718         * m4/wait-process.m4: New file.
84719
84720 2003-10-20  Bruno Haible  <bruno@clisp.org>
84721
84722         * lib/wait-process.h: New file, from GNU gettext.
84723         * lib/wait-process.c: New file, from GNU gettext.
84724
84725 2003-10-19  Jim Meyering  <jim@meyering.net>
84726
84727         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
84728         HPUX 10.20.
84729
84730 2003-10-18  Karl Berry  <karl@gnu.org>
84731
84732         * config/config.guess: update from config.
84733
84734 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84735
84736         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
84737         (getgroups): First arg is int, not size_t.
84738         Don't let 'free' mangle errno.
84739
84740 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84741
84742         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
84743
84744 2003-10-16  Karl Berry  <karl@gnu.org>
84745
84746         * config/config.{guess,sub}: update from config.
84747
84748 2003-10-16  Jim Meyering  <jim@meyering.net>
84749
84750         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
84751         memcpy.
84752
84753 2003-10-15  Paul Eggert  <eggert@twinsun.com>
84754
84755         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
84756         (SIZE_MAX): Remove.
84757         (new_exclude, add_exclude_file): Initial size no longer needs to
84758         be a power of 2.
84759         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
84760         our own address arithmetic overflow checking.
84761
84762         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
84763         (fnmatch): Do not alloca more than 2000 wide characters;
84764         instead, use malloc for large buffers.
84765         Check for address arithmetic overflow, and return -1
84766         with errno set to ENOMEM in that case.
84767         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
84768         (NEW_PATTERN): Do not alloca more than 8000 bytes;
84769         instead, return -1.  Check for address arithmetic overflow.
84770
84771 2003-10-14  Paul Eggert  <eggert@twinsun.com>
84772
84773         Handle invalid suffixes and overflow independently, so that
84774         callers can treat them independently as needed.  Fix some bugs in
84775         suffix handling, e.g., "100k@" was not diagnosed as an invalid
84776         suffix for a human-readable blocksize.  The major caller-visible
84777         change is the addition of a new
84778         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
84779         that both overflow and suffix chars were found.
84780
84781         * lib/human.c (humblock): Don't check separately for invalid suffix
84782         char; that is xstrtoumax's job (now that its bug is fixed).
84783         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
84784         INTMAX_MAX]: New macros.
84785         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
84786         TYPE_MAXIMUM): New macros.
84787         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
84788         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
84789         if overflow occurs, as it's what __strtol does and it's more useful
84790         in practice.
84791         (__xstrtol): If __strtol reports some error other than ERANGE,
84792         reflect it to the caller as LONGINT_INVALID.  If it reports
84793         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
84794         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
84795         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
84796         value.
84797         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
84798         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
84799         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
84800         [defined UINTMAX_MAX]: New macros.
84801
84802 2003-10-14  Bruno Haible  <bruno@clisp.org>
84803
84804         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
84805
84806 2003-10-14  Bruno Haible  <bruno@clisp.org>
84807
84808         * m4/sig_atomic_t: New file, from GNU gettext.
84809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84810
84811 2003-10-14  Bruno Haible  <bruno@clisp.org>
84812
84813         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84814         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84815         Also use volatile where needed.
84816
84817 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84818
84819         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84820         Change maintainer from Bruno Haible to 'all'.
84821
84822 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84823
84824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84825
84826 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84827
84828         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84829         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84830         and define in terms of the other primitives.
84831         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84832         (SIZE_MAX): Define if not already defined.
84833         (array_size_overflow): New function.
84834         (xalloc_die): Abort instead of exiting if 'error' returns.
84835         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84836         (xmalloc, xrealloc): Use them.
84837         (xcalloc): Check for address arithmetic overflow.
84838         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84839         a bit faster than strcpy.
84840
84841 2003-10-10  Simon Josefsson  <jas@extundo.com>
84842
84843         * modules/argp (Depends-on): Add restrict and strcase.
84844
84845 2003-10-10  Simon Josefsson  <jas@extundo.com>
84846
84847         * m4/argp.m4: Add AC_C_INLINE.
84848
84849 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84850
84851         Merge getpass from libc, plus a few fixes.
84852
84853         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84854         Include <stdbool.h>.
84855         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84856         __fsetlocking to empty.
84857         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84858         do include <bits/libc-lock.h>.
84859         Do not include <fcntl.h>; not needed.
84860         [_LIBC]: Include <wchar.h>.
84861         (NOTCANCEL_MODE): New macro.
84862         (flockfile, funlockfile) [_LIBC]: New macros.
84863         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84864         [!_LIBC]: New macros.
84865         (call_fclose): New function.
84866         (getpass): Use it.  Save tty stream separately; this simplifies the
84867         code and makes it more reliable if stdin happens to equal stdout.
84868         Invoke __fsetlocking on tty.
84869         Handle thread cancellation if needed.
84870         Namespace cleanup (use __tcgetattr, __getline).
84871         Use bool for Booleans.
84872         [USE_IN_LIBIO]: Handle wide streams.
84873         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84874         stream might go where.
84875
84876         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84877         doesn't have to include <stdio.h> before us.
84878         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84879         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84880         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84881         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84882         if not declared, so that we can use getpass.c code from libc without
84883         rewriting it.
84884         (flockfile, ftrylockfile, funlockfile): New macros.
84885
84886 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84887
84888         * modules/getpass: Depend on stdbool.
84889
84890 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84891
84892         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84893
84894 2003-10-07  Karl Berry  <karl@gnu.org>
84895
84896         * config/config.{guess,sub}: update from config.
84897
84898 2003-10-06  Jim Meyering  <jim@meyering.net>
84899             Bruno Haible  <bruno@clisp.org>
84900
84901         This lets translators provide better translations for the
84902         "Written by ..." part of --version output.
84903         * lib/version-etc.h: Include stdarg.h.
84904         (version_etc_copyright): Declare as readonly.
84905         (version_etc): Make this function variadic with a NULL-terminated list
84906         of author name strings.
84907         (version_etc_va): New declaration.
84908         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84909         (version_etc_copyright): Declare as readonly.
84910         (version_etc_va): New function. Provide a different translatable string
84911         for each possible number of authors < 10. Abbreviate when there are 10
84912         authors or more.
84913         (version_etc): Make this function variadic. Call version_etc_va.
84914         Suggestion from Gary V. Vaughan.
84915
84916         * lib/long-options.h (parse_long_options): Change prototype: the
84917         authors string is moved to the end and becomes variadic.
84918         * lib/long-options.c: Include stdarg.h.
84919         (parse_long_options): Make this function variadic, too.
84920         Call version_etc_va, not version_etc.
84921
84922 2003-10-06  Bruno Haible  <bruno@clisp.org>
84923
84924         * modules/version-etc-2: Remove file.
84925         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84926
84927 2003-10-06  Bruno Haible  <bruno@clisp.org>
84928
84929         * modules/fatal-signal: New file.
84930         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84931
84932 2003-10-06  Bruno Haible  <bruno@clisp.org>
84933
84934         * m4/fatal-signal.m4: New file.
84935         * m4/signalblocking.m4: New file, from GNU gettext.
84936
84937 2003-10-06  Bruno Haible  <bruno@clisp.org>
84938
84939         * lib/version-etc-2.h: Remove file.
84940         * lib/version-etc-2.c: Remove file.
84941
84942 2003-10-06  Bruno Haible  <bruno@clisp.org>
84943
84944         * lib/fatal-signal.h: New file, from GNU gettext.
84945         * lib/fatal-signal.c: New file, from GNU gettext.
84946
84947 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84948
84949         * README: Rework advice for preventing empty .o files.
84950         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84951         not <sys/types.h>.
84952
84953 2003-10-04  Karl Berry  <karl@gnu.org>
84954
84955         * lib/argp*: update from libc.
84956
84957 2003-10-04  Karl Berry  <karl@gnu.org>
84958
84959         * config/config.{guess,sub}: update from config.
84960
84961 2003-10-02  Bruno Haible  <bruno@clisp.org>
84962
84963         * modules/lchown (Include): Add lchown.h.
84964         * modules/time_r (Include): Use "..." syntax.
84965         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84966
84967 2003-10-01  Simon Josefsson  <jas@extundo.com>
84968
84969         * MODULES.html.sh (func_all_modules): Move gethostname from section
84970         'based on' to section 'lacking' POSIX:2001.
84971
84972 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84973
84974         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84975         to output mode on the same stream.
84976
84977 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84978
84979         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84980         Fix arg typo in previous patch.
84981
84982 2003-09-28  Jim Meyering  <jim@meyering.net>
84983
84984         * lib/error.c: Correct cpp indentation.
84985
84986 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84987
84988         * modules/free: New file.
84989
84990 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84991
84992         * m4/free.m4: New file.
84993
84994 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84995
84996         * lib/minmax.h (MIN, MAX)
84997         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84998         Omit the special code that used __typeof__, since we worry that
84999         it could be more trouble than it's worth.  See:
85000         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
85001         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
85002
85003         * lib/free.c: New file.
85004
85005 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
85006
85007         Trivial fixes to Makefile.am parts of module listings.
85008         * modules/strstr: Append strstr.h to lib_SOURCES.
85009         * modules/strcase: Likewise, for strcase.h.
85010
85011 2003-09-27  Karl Berry  <karl@gnu.org>
85012
85013         * config/mkinstalldirs: update from automake.
85014
85015 2003-09-26  Paul Eggert  <eggert@twinsun.com>
85016
85017         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
85018         (error_tail): Do not loop, reallocating temporary buffer, since
85019         the output cannot contain more wide characters than the input
85020         contains bytes, the size must be big enough already.  This avoids
85021         one potential size overflow calculation.  Check for size overflow
85022         when calculating temporary buffer size.  Free temporary buffer
85023         when done, if it was allocated with malloc; this plugs a memory
85024         leak.  Remove casts from void * to pointers, that are no longer
85025         needed now that we're assuming C89 or better.
85026
85027         Merge error changes from glibc.
85028
85029         * lib/error.c, error.h: Update copyright notice header to match glibc.
85030         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
85031         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
85032         Disable cancellation while printing error.
85033         * lib/error.h: Prepend __ to parameter names.
85034
85035 2003-09-26  Jim Meyering  <jim@meyering.net>
85036
85037         * lib/error.c (error_tail): Move some declarations
85038         into inner scope where the local variables are used.
85039
85040 2003-09-26  Bruno Haible  <bruno@clisp.org>
85041
85042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
85043         stpncpy().
85044         Don't define stpncpy through config.h; it's now done through stpncpy.h.
85045
85046 2003-09-26  Bruno Haible  <bruno@clisp.org>
85047
85048         * lib/stpncpy.h (gnu_stpncpy): New declaration.
85049         (stpncpy): Define as alias for gnu_stpncpy.
85050         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
85051
85052 2003-09-25  Simon Josefsson  <jas@extundo.com>
85053
85054         * lib/xgetdomainname.h: New file.
85055         * lib/xgetdomainname.c: New file.
85056
85057 2003-09-25  Simon Josefsson  <jas@extundo.com>
85058             Bruno Haible  <bruno@clisp.org>
85059
85060         * modules/getdomainname: New file.
85061         * modules/xgetdomainname: New file.
85062         * MODULES.html.sh (func_all_modules): Add getdomainname,
85063         xgetdomainname.
85064
85065 2003-09-25  Simon Josefsson  <jas@extundo.com>
85066             Bruno Haible  <bruno@clisp.org>
85067
85068         * m4/getdomainname.m4: New file.
85069
85070 2003-09-25  Simon Josefsson  <jas@extundo.com>
85071             Bruno Haible  <bruno@clisp.org>
85072
85073         * lib/getdomainname.h: New file.
85074         * lib/getdomainname.c: New file.
85075
85076 2003-09-25  Karl Berry  <karl@gnu.org>
85077
85078         * lib/argp-fmtstream.c, argp-help.c: update from libc.
85079
85080 2003-09-25  Karl Berry  <karl@gnu.org>
85081
85082         * config/install-sh: update from automake.
85083
85084 2003-09-25  Bruno Haible  <bruno@clisp.org>
85085
85086         * modules/version-etc-2: New file, from modules/version-etc with
85087         modifications.
85088         * MODULES.html.sh (func_all_modules): Add version-etc-2.
85089
85090 2003-09-25  Bruno Haible  <bruno@clisp.org>
85091
85092         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
85093         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
85094
85095 2003-09-24  Simon Josefsson  <jas@extundo.com>
85096
85097         * modules/xgethostname: Add xgethostname.h.
85098
85099 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85100
85101         * lib/linebuffer.c (freebuffer): Don't free the argument, just
85102         the buffer associated with the argument.  Bug reported by
85103         Simon Josefsson.
85104
85105 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85106
85107         * README: Document assumptions that 'int' is at least 32 bits
85108         wide, that integer arithmetic is 2's complement without overflow,
85109         that there are no holes in integer values, that adding sizes of
85110         two nonoverlapping objects can't overflow, and that all-bits-zero
85111         yields scalar zero.  Fix spelling and capitalization typos.
85112
85113 2003-09-19  Karl Berry  <karl@gnu.org>
85114
85115         * lib/argp.h: update from libc.
85116
85117 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85118
85119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
85120         to avoid spurious warnings like "AC_RUN_IFELSE was called before
85121         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
85122
85123 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85124
85125         * gnulib-tool: Use "test -h", not "test -L", for portability
85126         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
85127         (tags_regexp): Remove, since \| doesn't conform to POSIX.
85128         (sed_extract_prog): Issue s commands one-by-one, rather than
85129         using \| in one s command.
85130
85131 2003-09-16  Paul Eggert  <eggert@twinsun.com>
85132
85133         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
85134         input error, instead of returning NULL the next time we are called
85135         (and therefore losing track of errno).
85136
85137 2003-09-16  Bruno Haible  <bruno@clisp.org>
85138
85139         * gnulib-tool (func_create_testdir): Warn about duplicated
85140         dependencies.
85141
85142 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85143
85144         * modules/argmatch, modules/fatal, modules/obstack,
85145         modules/xalloc, modules/xgethostname: Sort dependencies by
85146         importance, not alphabetically.
85147
85148 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85149
85150         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
85151         fails, so that the caller gets the proper errno.
85152
85153         * lib/readutmp.c (read_utmp): Likewise.
85154         Check for fstat error.  Close stream and free storage
85155         when failing.
85156
85157 2003-09-14  Karl Berry  <karl@gnu.org>
85158
85159         * config/srclist.txt (strdup.c): disable for c89 changes.
85160
85161 2003-09-14  Jim Meyering  <jim@meyering.net>
85162
85163         * lib/getloadavg.c: Correct cpp indentation.
85164         * lib/strdup.c: Likewise.
85165         * lib/vasnprintf.c: Likewise.
85166
85167 2003-09-14  Bruno Haible  <bruno@clisp.org>
85168
85169         * modules/fwriteerror: New file.
85170         * MODULES.html.sh (func_all_modules): Add fwriteerror.
85171
85172 2003-09-14  Bruno Haible  <bruno@clisp.org>
85173
85174         * lib/fwriteerror.h: New file.
85175         * lib/fwriteerror.c: New file.
85176
85177 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85178
85179         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
85180         modules/xgethostname, modules/xalloc: Depend on exit.
85181
85182 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85183
85184         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
85185
85186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
85187         and AC_MINIX, too, so that their extensions are available.
85188
85189         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
85190         This macro has been superseded by gl_BACKUPFILE.
85191
85192         More patches to assume C89 or better.
85193
85194         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
85195
85196         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
85197         unconditionally.
85198         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
85199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
85200         Include <string.h>, <stdlib.h> unconditionally.
85201         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
85202         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
85203         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
85204         headers or for string.h.
85205         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
85206         or strtoul.
85207
85208         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
85209         headers.
85210         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
85211         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85212         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
85213         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
85214         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85215         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
85216         memcpy, memset.
85217         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
85218         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
85219         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
85220         strtol.
85221         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
85222         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
85223         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
85224         strtoul.
85225
85226 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85227
85228         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
85229         * lib/obstack.c [!defined _LIBC]: Likewise.
85230         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
85231         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
85232         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
85233
85234         More changes to assume C89 or better.
85235
85236         * lib/error.c (error_tail): Assume vprintf.
85237
85238         * lib/argmatch.c (getenv): Remove decl.
85239         * lib/progreloc.c (get_full_program_name): Define via prototype.
85240         * lib/setenv.c (clearenv): Likewise.
85241         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
85242         needed.
85243         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
85244         (malloc, memcpy): Remove decls.
85245         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
85246         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
85247         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
85248         (memcpy): Remove macro.
85249         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
85250         (__P): Remove.  All uses removed.
85251         (PTR): Remove.  All uses changed to void *.
85252         (CHAR_BIT, NULL): Remove.
85253         (spaces, zeros, memset_space, memset_zero)
85254         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
85255         Remove.
85256         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
85257         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
85258         Define with prototype.
85259         Remove now-unnecessary prototype decl.
85260         (extra_args_spec): Assume ANSI C.  All uses changed.
85261         (extra_args_spec_iso): Remove.
85262         (my_strftime, emacs_strftimeu): Define via prototype.
85263         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
85264         unconditionally.
85265         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
85266         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
85267         (strtoul, strtol): Remove decls.
85268         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
85269         LONG_MAX): Remove.
85270         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
85271         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
85272         (LOCALE_PARAM_PROTO): New macro.
85273         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
85274         (INTERNAL (strtol), strtol): Define with a prototype.
85275         (PARAMS): Remove.  All uses removed.
85276         * lib/tempname.c: Include <string.h> unconditionally.
85277         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
85278         * lib/xgethostname.c (main): Define with a prototype.
85279         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
85280         Include <stdlib.h> unconditionally.
85281         (calloc, malloc, realloc, free): Remove decls.
85282         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
85283         Include <stdlib.h> unconditionally.  Sort include file names.
85284         (strtod): Remove.
85285         (xstrtod): Define with a prototype.
85286         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
85287         (strtol, strtoul): Remove decls.
85288
85289 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85290
85291         More patches to assume C89 or better.
85292         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
85293         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
85294         string.h, memchr, STDC_HEADERS.
85295
85296 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85297
85298         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
85299         Include <stdlib.h>, <string.h> unconditionally.
85300         Remove now-unnecessary cast to char *.
85301         * lib/strnlen.c: Include <string.h> unconditionally.
85302         * lib/yesno.c (yesno): Define with a prototype.
85303
85304 2003-09-11  Bruno Haible  <bruno@clisp.org>
85305
85306         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
85307
85308 2003-09-10  Jim Meyering  <jim@meyering.net>
85309
85310         * lib/error.c: Correct indentation of cpp directives.
85311
85312 2003-09-10  Bruno Haible  <bruno@clisp.org>
85313
85314         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
85315         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
85316         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
85317         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
85318         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
85319         <stdlib.h> and <string.h> checks.
85320         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
85321         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
85322
85323 2003-09-10  Bruno Haible  <bruno@clisp.org>
85324
85325         * lib/strcspn.c: Include <string.h> unconditionally.
85326         * lib/strpbrk.c: Include <string.h> unconditionally.
85327         * lib/strstr.c: Include <string.h> unconditionally.
85328         * lib/unicodeio.c: Include <string.h> unconditionally.
85329         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
85330         * lib/unsetenv.c: Likewise.
85331         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
85332         * lib/yesno.c: Include <stdlib.h> unconditionally.
85333         (rpmatch): Add prototype.
85334
85335 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85336
85337         More patches to assume C89 or better.
85338         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
85339         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
85340         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
85341         or for string.h.
85342         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
85343         stdlib.h.
85344         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
85345         C headers.
85346         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
85347         string.h.
85348         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
85349         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
85350         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
85351         or for string.h.
85352         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
85353         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
85354         C headers.
85355         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
85356         memcpy.
85357         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
85358         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
85359         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
85360         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
85361         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
85362         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
85363         string.h, free.
85364         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
85365         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
85366         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
85367         C headers, or for string.h.
85368         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
85369         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
85370         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
85371         headers, memory.h, stdlib.h, string.h, strings.h.
85372         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
85373         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
85374         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
85375         strchr.
85376         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
85377         headers, memory.h, string.h.
85378         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
85379         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
85380         free.
85381         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
85382         headers.
85383         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
85384         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
85385         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
85386         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
85387         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
85388
85389 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85390
85391         More K&R removal.
85392
85393         * lib/acosl.c (main): Use a prototype.
85394         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
85395         tanl.c: Likewise.
85396
85397         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
85398
85399         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
85400         (getopt, etopt_long, getopt_long_only, _getopt_internal)
85401         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
85402         with a prototype.
85403         * lib/getopt.c (const): Remove macro.
85404         Include <string.h> unconditionally.
85405         (my_index): Remove; all uses changed to strchr.
85406         (strlen): Remove decl.
85407         (exchange): Remove forward decl; no longer needed.
85408         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
85409         Define with prototype.
85410         * lib/getopt1.c (const): Remove macro.
85411         (getopt_long, getopt_long_only, main): Define with prototype.
85412
85413         * lib/getugroups.c: Include <string.h> unconditionally.
85414
85415         * lib/getusershell.c: Include <stdlib.h> unconditionally.
85416         (getusershell, setusershell, endusershell, readname, main):
85417         Define with prototypes.
85418
85419         * lib/group-member.c: Include group-member.h first.
85420         Include <stdlib.h> unconditionally.
85421
85422         * lib/hard-locale.c: Include hard-locale.h first.
85423         Include <stdlib.h>, <string.h> unconditionally.
85424
85425         * lib/hash.c (free, malloc): Remove decls.
85426         Include <stdlib.h> unconditionally.
85427
85428         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
85429         (getenv): Do not declare.
85430
85431         * lib/idcache.c: Include <string.h> unconditionally.
85432
85433         * lib/long-options.c: Include long-options.h first, to test interface.
85434         Include <stdlib.h> unconditionally.
85435
85436         * lib/makepath.c: Include makepath.h first, to test interface.
85437         Include <stdlib.h> and <string.h> unconditionally.
85438
85439         * lib/linebuffer.c: Include <stdlib.h>.
85440         (free): Remove decl.
85441
85442         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
85443         stddef.h. rpl_malloc returns void *, not char *.
85444         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
85445         prototype.
85446
85447         * lib/md5.h: Include <limits.h> unconditionally.
85448         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
85449         (__P): Remove; all uses removed.
85450         * lib/md5.c: Include "md5.h" first.
85451         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
85452         md5_buffer, md5_process_bytes, md5_process_block):
85453         Define with prototypes.
85454         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
85455         * lib/sha.c: Include "sha.h" first.
85456         Include <stdlib.h>, <string.h> unconditionally.
85457
85458         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
85459         * lib/memcmp.c (__ptr_t): Likewise.
85460         * lib/memrchr.c (__ptr_t): Likewise.
85461         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
85462         Include <string.h> unconditionally.
85463         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
85464         * lib/memchr.c: Include <stdlib.h> unconditionally.
85465         * lib/memchr.c (LONG_MAX): Remove.
85466         * lib/memrchr.c (LONG_MAX): Likewise.
85467         * lib/memchr.c (__memchr): Define via a prototype.
85468         * lib/memrchr.c (__memrchr): Likewise.
85469         * lib/memcmp.c (__P): Remove, and remove all uses.
85470         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
85471         Remove forward decls; no longer needed.
85472         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
85473         Use types required by C89 in prototype.
85474
85475         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
85476         * lib/savedir.c: Likewise.
85477         * lib/mkdir.c (free): Remove decl.
85478         * lib/rmdir.c (rmdir): Define with a prototype.
85479         * lib/savedir.c: Include savedir.h first, to test interface.
85480
85481         * lib/mktime.c (STDC_HEADERS): Remove.
85482         Include <stdlib.h>, <string.h> unconditionally.
85483
85484         * lib/modechange.c: Include <stdlib.h> unconditionally.
85485         (malloc): Remove decl.
85486
85487         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
85488         (free): Remove decl.
85489
85490         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
85491         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
85492         (This type really should be intptr_t, but that's a C99ism.)
85493         (_obstack_memcpy): Remove: all uses changed to memcpy.
85494         Include <string.h> unconditionally.
85495         (struct obstack): Assume __STDC__ for types of members
85496         chunkfun, freefun, extra_arg.
85497         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
85498         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
85499         obstack_begin, obstack_specify_allocation,
85500         obstack_specify_allocation_with_arg, obstack_chunkfun,
85501         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
85502         Remove unprototyped decls and the macros that use them.
85503         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
85504         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
85505         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
85506         (defined __STDC__ && __STDC__)]:
85507         Remove nonprototyped code.
85508         Include <stdlib.h> unconditionally.
85509         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
85510         _obstack_allocated_p, _obstack_free, obstack_free,
85511         _obstack_memory_used, print_and_abort):
85512         Define using prototypes.
85513         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
85514         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
85515         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
85516         obstack_next_free, obstack_object_size, obstack_room) [0]:
85517         Remove unused, unprototyped code.
85518
85519         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
85520
85521         * lib/physmem.c (physmem_total, physmem_available, main): Define
85522         with prototypes.
85523
85524         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
85525         (main): Define with a prototype.
85526
85527         * lib/posixver.c (getenv): Remove decl.
85528
85529         * lib/putenv.c (malloc): Returns void *, not char *.
85530         Include <string.h> unconditionally.
85531         (strchr, memcpy, NULL): Do not define.
85532
85533         * lib/readtokens.c: Include readtokens.h first, to test interface.
85534         Include <stdlib.h>, <string.h> unconditionally.
85535         (init_tokenbuffer): Define with a prototype.
85536
85537         * lib/regex.c (PARAMS): Remove.  All uses removed.
85538         All uses of _RE_ARGS removed, too.
85539         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85540         unconditionally.
85541         (bzero): Assume memset exists.
85542         (memcmp, memcpy, NULL): Remove.
85543         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
85544         char, or assignments to local vars of type signed char.
85545         (init_syntax_once, PREFIX(extract_number_and_incr),
85546         PREFIX(print_partial_compiled_pattern),
85547         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
85548         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
85549         PREFIX(regex_grow_registers), PREFIX(regex_compile),
85550         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
85551         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
85552         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
85553         wcs_compile_range, byte_compile_range, truncate_wchar,
85554         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
85555         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
85556         count_mbs_length, wcs_re_match_2_internal,
85557         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
85558         PREFIX(alt_match_null_string_p),
85559         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
85560         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
85561         regfree, PREFIX(extract_number)): Define with prototype.  Remove
85562         now-unnecessary declaration, if any.
85563         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
85564         regcomp, regexec):
85565         Remove now-unnecessary casts among pointer types.
85566         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
85567
85568         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
85569         (free): Remove decl.
85570
85571         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
85572
85573         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
85574         (free): Remove decl.
85575
85576         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
85577         * lib/xgetcwd.c: Likewise.
85578
85579         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
85580         (free): Remove decl.
85581
85582         * lib/strchrnul.c (strchrnul): Define with a prototype.
85583         Fix bug: c_in was not converted to char before searching.
85584
85585         The following changes are not K&R related:
85586
85587         * lib/group-member.h: Include <sys/types.h>, so that this file is
85588         self-contained.
85589         * lib/makepath.h: Likewise.
85590
85591         * lib/getusershell.c (readname, default_index, line_size, readname):
85592         Use size_t, not int, for sizes.
85593         (readname): If the size overflows, report an error instead of
85594         looping forever.
85595
85596 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85597
85598         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
85599         libc.
85600
85601 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85602
85603         * README: New section: portability guidelines.
85604
85605 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85606
85607         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
85608         C89 spec.
85609
85610 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85611
85612         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
85613
85614 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85615
85616         Assume C89 or better; remove K&R cruft.
85617         A few of these changes were first proposed by Derek Robert Price
85618         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
85619
85620         * lib/addext.c: Include <string.h> unconditionally.
85621         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
85622         Don't declare getenv or malloc.
85623
85624         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
85625         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
85626         (NULL): Remove.
85627         (find_stack_direction, alloca): Use prototypes.
85628
85629         * lib/atexit.c (atexit): Define using a prototype.
85630
85631         * lib/basename.c, dirname.c, stripslash.c:
85632         Include <string.h> unconditionally.
85633
85634         * lib/bcopy.c: Include <stddef.h>.
85635         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
85636
85637         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
85638
85639         * lib/error.h (error, error_at_line, error_print_progname)
85640         [! (defined (__STDC__) && __STDC__)]: Remove decls.
85641         * lib/error.c: Include error.h first, to check interface.
85642         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85643         (VA_START): Remove; all uses changeed to va_start.
85644         (exit, strerror): Remove decls.
85645         (error_print_progname): Prototype uncondionally.
85646         Don't include <errno.h>; no longer needed.
85647         (private_strerror): Remove.
85648         (error_tail): Always define.
85649         (error, error_at_line): Assume C89 or better; always use prototypes.
85650         * lib/fatal.c: Include "fatal.h" first, to test interface.
85651         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85652         (VA_START): Remove; all uses changed to va_start.
85653         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
85654         this case.
85655         (exit): Remove decl.
85656         (fatal): Prototype unconditionally.  Assume va_start works.
85657         Abort at end, to pacify gcc.
85658
85659         * lib/euidaccess.c (main): Define with a prototype.
85660
85661         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
85662
85663         * lib/exitfail.c: Include <stdlib.h> unconditionally.
85664
85665         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
85666         prototypes.
85667         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
85668         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
85669         (getenv): Remove decl.
85670         (fnmatch): Define using a prototype.
85671         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
85672         (FCT): Define using a prototype.
85673
85674         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
85675
85676         * lib/gethostname.c: Include <stddef.h>.
85677         (gethostname): Define with prototype.  Length is size_t, not int.
85678
85679 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85680
85681         Assume C89 or better; remove K&R cruft.
85682         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
85683         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
85684         string.h, getenv, malloc.
85685         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
85686         headers.
85687         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
85688         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
85689         do not check for strerror.
85690         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
85691         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
85692         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
85693         do not check for doprnt or vprintf.
85694         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
85695         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
85696
85697 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85698
85699         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
85700         getversion.c should have been removed then, but was accidentally
85701         preserved.
85702
85703         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
85704         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
85705
85706 2003-09-08  Karl Berry  <karl@gnu.org>
85707
85708         * config/config.sub, config.guess, srclistvars.sh: update from savannah
85709                 config, forget about prep.
85710
85711         * config/depcomp, missing: update from automake.
85712
85713 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85714
85715         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
85716         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85717
85718 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85719
85720         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
85721         copy_tm_result.  Bug reported by Simon Josefsson in
85722         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85723
85724 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85725
85726         * m4/time_r.m4: New file.
85727         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
85728         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
85729         is. Check for timegm declaration.
85730         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
85731         Do not check for gmtime_r.
85732         Replace mktime if __mktime_internal does not exist and if mktime
85733         hasn't been replaced already.
85734
85735 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85736
85737         * lib/time_r.c, lib/time_r.h: New files.
85738
85739         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
85740         __localtime_r.
85741         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
85742         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
85743
85744         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
85745         __gmtime_r.
85746         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
85747         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
85748         Include <time_r.h>.
85749
85750         * lib/timegm.c: Switch to glibc implementation, with the following
85751         changes:
85752         [defined HAVE_CONFIG_H]: Include <config.h>.
85753         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
85754         (__mktime_internal) [!defined _LIBC]: New decl.
85755         (__gmtime_r) [!defined _LIBC]: New macro and function.
85756         (timegm): Use a prototype, since gnulib assumes C89.
85757         Do not bother declaring tmp to be const, as it's not really usefu.
85758         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
85759         (timegm): Declare only if HAVE_DECL_TIMEGM.
85760
85761 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85762
85763         * MODULES.html.sh (func_all_modules): Add time_r.
85764         * modules/time_r: New file.
85765         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
85766         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
85767
85768 2003-09-03  Paul Eggert  <eggert@twinsun.com>
85769
85770         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
85771         Bug reported by Lute Kamstra in
85772         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
85773
85774         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
85775         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
85776         course with correspondingly smaller numbers for tomorrow and
85777         yesterday.  From Tadayoshi Funaba.  Originally installed into
85778         sh-utils on 1999-08-07, but the patch got lost (I guess during the
85779         coreutils merge?).
85780
85781 2003-08-31  Simon Josefsson  <jas@extundo.com>
85782
85783         * modules/timegm: New file.
85784         * MODULES.html.sh (func_all_modules): Add timegm.
85785
85786 2003-08-31  Simon Josefsson  <jas@extundo.com>
85787
85788         * m4/timegm.m4: New file.
85789
85790 2003-08-31  Simon Josefsson  <jas@extundo.com>
85791
85792         * lib/timegm.h: New file.
85793         * lib/timegm.c: New file.  Based on
85794         wget-1.8.2/src/http.c:mktime_from_utc.
85795
85796 2003-08-31  Karl Berry  <karl@gnu.org>
85797
85798         * lib/argp.h: update from libc.
85799
85800 2003-08-28  Bruno Haible  <bruno@clisp.org>
85801
85802         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
85803         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
85804         followed by '#define fnmatch fnmatch_posix' gives an error.
85805
85806 2003-08-28  Bruno Haible  <bruno@clisp.org>
85807
85808         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85809         warning on QNX, which defines O_BINARY to 000000.
85810
85811 2003-08-27  Jim Meyering  <jim@meyering.net>
85812
85813         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85814         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85815         would fail after 32.  Reported by Danny Levinson.  Details here:
85816         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85817
85818 2003-08-24  Bruno Haible  <bruno@clisp.org>
85819
85820         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85821         MSVC7 <stdio.h> is included later.
85822
85823 2003-08-22  Simon Josefsson  <jas@extundo.com>
85824
85825         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85826
85827 2003-08-20  Karl Berry  <karl@gnu.org>
85828
85829         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85830
85831 2003-08-20  Bruno Haible  <bruno@clisp.org>
85832
85833         * modules/progname: New file.
85834         * MODULES.html.sh (func_all_modules): Add progname.
85835
85836 2003-08-20  Bruno Haible  <bruno@clisp.org>
85837
85838         * lib/progname.h: New file, from GNU gettext.
85839         * lib/progname.c: New file, from GNU gettext.
85840         * lib/progreloc.c: New file, from GNU gettext.
85841
85842 2003-08-19  Jim Meyering  <jim@meyering.net>
85843
85844         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85845         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85846
85847 2003-08-19  Bruno Haible  <bruno@clisp.org>
85848
85849         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85850         more.
85851
85852 2003-08-19  Bruno Haible  <bruno@clisp.org>
85853
85854         * lib/xstrdup.c: Assume <string.h> exists.
85855
85856 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85857
85858         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85859         in makefile rules.
85860
85861 2003-08-18  Jim Meyering  <jim@meyering.net>
85862
85863         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85864         * m4/lib-ld.m4: Likewise.
85865
85866 2003-08-18  Jim Meyering  <jim@meyering.net>
85867
85868         * lib/setenv.h: Indent nested cpp directive.
85869         * lib/vasnprintf.c: Remove trailing blanks.
85870
85871 2003-08-17  Simon Josefsson  <jas@extundo.com>
85872
85873         * modules/xstrndup: New file.
85874         * MODULES.html.sh (func_all_modules): Add xstrndup.
85875
85876 2003-08-17  Simon Josefsson  <jas@extundo.com>
85877
85878         * modules/argp: Fix autoconf macro name. Add more dependencies.
85879
85880 2003-08-17  Simon Josefsson  <jas@extundo.com>
85881
85882         * m4/xstrndup.m4: New file.
85883
85884 2003-08-17  Simon Josefsson  <jas@extundo.com>
85885
85886         * m4/argp.m4: New file.
85887
85888 2003-08-17  Simon Josefsson  <jas@extundo.com>
85889             Bruno Haible  <bruno@clisp.org>
85890
85891         * lib/xstrndup.h: New file.
85892         * lib/xstrndup.c: New file.
85893
85894 2003-08-17  Bruno Haible  <bruno@clisp.org>
85895
85896         * modules/strndup (Files, Include): Add lib/strndup.h.
85897
85898 2003-08-17  Bruno Haible  <bruno@clisp.org>
85899
85900         * modules/euidaccess (Files): Add lib/euidaccess.h.
85901
85902 2003-08-17  Bruno Haible  <bruno@clisp.org>
85903
85904         * lib/strndup.h: New file.
85905
85906 2003-08-17  Bruno Haible  <bruno@clisp.org>
85907
85908         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85909         like AC_GNU_SOURCE.
85910         * modules/extensions (configure.ac): Comment out the invocation of
85911         gl_USE_SYSTEM_EXTENSIONS.
85912
85913 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85914
85915         Merges from coreutils, etc.
85916         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85917         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85918         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85919         fixing a typo.
85920         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85921         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85922
85923 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85924
85925         Document merge from coreutils.
85926         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85927         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85928         * modules/utime: Add m4/utimes-null.m4.
85929
85930 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85931
85932         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85933         space, undoing this 2003-08-12 change:
85934         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85935
85936 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85937
85938         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85939         strtoul.c from libc, undoing this 2003-08-12 change:
85940         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85941
85942 2003-08-16  Jim Meyering  <jim@meyering.net>
85943
85944         Merges from coreutils.
85945         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85946         prefix.  Adjust cache variables similarly.  Create 500 rather than
85947         just 300 files, to exercise bug on Darwin6.5, too.
85948         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85949         $missing_dir.
85950         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85951         AM_SYS_POSIX_TERMIOS.
85952         Reported by mkc@mathdogs.com.
85953         Also change use of $am_cv_sys_posix_termios
85954         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85955         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85956         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85957         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85958         in /proc/mounts until it finds one with matching device number.  This
85959         is unnecessary when the FILE argument *is* a mount point.  No stat call
85960         is necessary in that case.  So, disable the statvfs-testing code on
85961         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85962         as RedHat bug# 84846.
85963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85964         to 1MB, so as not to render systems with no stack size limit (e.g.,
85965         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85966         Include <unistd.h>.  On some systems,
85967         it is required for the definition of _SC_PAGESIZE.
85968
85969 2003-08-16  Jim Meyering  <jim@meyering.net>
85970
85971         Merge from coreutils.
85972         * lib/xstrtoimax.c: #else #if -> #elif.
85973         * lib/xstrtoumax.c: Likewise.
85974
85975 2003-08-16  Jim Meyering  <jim@meyering.net>
85976
85977         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85978         * m4/utimes.m4: Removed.
85979         * m4/utimes-null.m4: Renamed from utimes.m4.
85980
85981         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85982         to 1MB, so as not to render systems with no stack size limit (e.g.,
85983         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85984         Include <unistd.h>.  On some systems,
85985         it is required for the definition of _SC_PAGESIZE.
85986
85987 2003-08-16  Jim Meyering  <jim@meyering.net>
85988         and Paul Eggert  <eggert@cs.ucla.edu>
85989
85990         Merges from coreutils, etc.
85991
85992         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85993         using the latest version from cvs.  This avoids problems with #line
85994         directives using a vendor (Sun) compiler.
85995         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85996         Don't set GETGROUPS_LIB here; now it's
85997         done via getgroups.m4's wrapper function.
85998         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85999         rather than just in sh-util/configure.in, so that the
86000         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
86001         same.
86002         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
86003         AC_FUNC_GETLOADAVG where to find getloadavg.c.
86004         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
86005         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
86006         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
86007         Remove code that is now done by the newly-required macros.
86008         Append $(EXEEXT) to DF_PROG.
86009         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
86010         Do not invoke or require the following here,
86011         since prereq.m4 or some gnulib .m4 now does this for us:
86012         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
86013         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
86014         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
86015         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
86016         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
86017         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
86018         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
86019         AC_FUNC_OBSTACK.
86020         Do not replace the following functions, as this is now the job
86021         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
86022         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
86023         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
86024         atexit getpass, strdup, getpagesize.
86025         Replace 'raise'.
86026         Do not check for the following functions, as this is now the job
86027         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
86028         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
86029         setregid.
86030         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
86031         Check for sys/sysctl.h.
86032         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
86033         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
86034         of checking for ssize_t ourselves.
86035
86036         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
86037         Require every macro that gnulib/modules/* suggests for us.
86038         (jm_PREREQ_ADDEXT): New macro.
86039         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
86040         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
86041
86042         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
86043         (gl_PHYSMEM): Use it.
86044         Also check for `table' function.
86045         Check for new headers and functions.
86046         Add check for sys/sysmp.h.
86047         With suggestions from Kaveh Ghazi.
86048         Ignore headers that are present but cannot be compiled.  This
86049         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
86050         C 5.4.
86051
86052 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86053
86054         Document merge from coreutils.
86055         * modules/userspec: Depend on posixver.
86056         * modules/strftime: Depend on tzset.
86057
86058 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86059
86060         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
86061         rather than tab, after '#' in shell-script copyright notices.
86062         Suggested by Bruno Haible.
86063
86064 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86065
86066         * config/srclist-update: Use three spaces, rather than tab, after '#'
86067         in shell-script copyright notices.  Suggested by Bruno Haible.
86068         Remove unnecessary parenthesization in regular expression.
86069
86070 2003-08-15  Jim Meyering  <jim@meyering.net>
86071
86072         Merge from coreutils.
86073         * lib/xgethostname.c: Include <stdlib.h>.
86074         (xghostname): Don't exit for anything other than memory-related
86075         failure; just return NULL.
86076         * lib/userspec.c: Include "posixver.h".
86077         (parse_user_spec): Accept `.' as a separator only
86078         in pre-POSIX-200112 mode.
86079         * lib/strtoimax.c: Use #elif rather than #else #if.
86080         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
86081         Remove function, now that we can rely on a working tzset function.
86082         [!_LIBC]: Ensure that the required autoconf test has been run.
86083         [!defined _NL_CURRENT && HAVE_STRFTIME]:
86084         Use underlying_strftime for %r.
86085         * lib/sha.c: Merge in some clean-up and optimization changes from
86086         glibc.
86087         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
86088         Ensure that it is a multiple of 64.
86089         Rearrange loop exit tests so as to avoid performing an
86090         additional fread after encountering an error or EOF.
86091         * lib/realloc.c: Update copyright date.
86092
86093 2003-08-15  Jim Meyering  <jim@meyering.net>
86094         and Paul Eggert  <eggert@twinsun.com>
86095
86096         Merge from coreutils.
86097         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
86098         member but strut utmpx does not.  Needed for AIX 4.3.3.
86099         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
86100
86101 2003-08-15  Jim Meyering  <jim@meyering.net>
86102         and Paul Eggert  <eggert@cs.ucla.edu>
86103
86104         Merges from coreutils, etc.
86105         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
86106         Require gl_FUNC_TZSET_CLOBBER.
86107         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
86108         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
86109         members.
86110
86111 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86112
86113         Help the merge from coreutils.
86114         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
86115         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
86116         * m4/tzset.m4: Use it too.
86117
86118 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86119
86120         * modules/tzset: New file.
86121
86122 2003-08-14  Jim Meyering  <jim@meyering.net>
86123
86124         Merges from coreutils.
86125         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
86126         variable names, rather than @FNMATCH_H@.
86127         * modules/alloca: Likewise for $(ALLOCA_H).
86128
86129         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
86130         the three copies of the literal target, `fnmatch.h'.
86131         * modules/alloca (alloca.h): Likewise.
86132
86133 2003-08-14  Jim Meyering  <jim@meyering.net>
86134
86135         Merge from coreutils.
86136         * m4/tzset.m4: New file.
86137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
86138         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
86139         otherwise, AIX 5.1 systems would end up using the latter.
86140         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
86141         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
86142         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
86143         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
86144
86145 2003-08-14  Jim Meyering  <jim@meyering.net>
86146
86147         Merge from coreutils.
86148         * lib/obstack.h: Whitespace changes.
86149         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
86150         and xcalloc return values.
86151         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
86152         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
86153         hang on OSF/1 5.1 for DIR on both local and remote file systems.
86154         Reported by (and fix confirmed by) Nelson H. F. Beebe.
86155         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86156         error from mntctl.
86157         Use mntctl's return value to drive the entry-processing loop, since
86158         we can't rely on the value of the vmt_length member in the last
86159         entry.  On some systems doing so could result in exhausting
86160         virtual memory.  Based in part on a patch from Mike Jetzer.
86161
86162 2003-08-14  Jim Meyering  <jim@meyering.net>
86163         and Paul Eggert  <eggert@twinsun.com>
86164
86165         Merges from coreutils, plus other fixes.
86166         * lib/physmem.c: Merge in portability changes from gcc/libiberty
86167         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
86168         for credits and details.  Thanks to Kaveh Ghazi for helping
86169         to keep these files in sync.
86170         (ARRAY_SIZE): Define it.
86171         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
86172         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
86173         (memcasecmp): Don't assume size_t fits in unsigned int.
86174         Remove casts and duplicate code.
86175         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
86176         (memcpy): Remove definition.
86177         Merge in some clean-up and optimization changes from glibc.
86178         [BLOCKSIZE]: Move definition to top of file.
86179         Ensure that it is a multiple of 64.
86180         Rearrange loop exit tests so as to avoid performing an
86181         additional fread after encountering an error or EOF.
86182         * lib/md5.h (md5_uintptr): Define.
86183         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
86184         return to the initial working directory.  Preserve errno
86185         for caller.
86186         * lib/idcache.c: Include "xalloc.h".
86187         (xmalloc, xrealloc): Remove decls.
86188         (getuser): Remove casts no longer required in C89.
86189         * lib/human.c: Include stdio.h, for sprintf.
86190         * lib/group-member.c: Include "xalloc.h".
86191         (xmalloc, xrealloc): Remove decls.
86192         (get_group_info): Remove casts no longer required in C89.
86193         * lib/getusershell.c (readname): Remove casts no longer required in
86194         C89.
86195         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
86196         * lib/getline.c: Whitespace fix, from coreutils.
86197
86198 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86199
86200         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
86201         Check for isascii.
86202
86203         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86204         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86205         Undo previous (whitespace-only) change.
86206
86207 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86208
86209         * lib/exclude.c: Include <ctype.h>
86210         (IN_CTYPE_DOMAIN): New macro.
86211         (is_space): New fn.
86212         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
86213         and empty lines.
86214
86215         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
86216         Undo previous (whitespace-only) change.
86217
86218 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86219
86220         * config/srclist-update: Change update back to the old behavior,
86221         leaving whitespace alone.  Use one 'sed' command rather than a
86222         pipeline.
86223         (fixlicense): Now a variable, not a function.
86224         (remove_trailing_blanks): Remove.
86225         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
86226         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
86227         Undo previous (whitespace-only) change.
86228
86229 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86230
86231         Merge from coreutils.
86232         * modules/euidaccess: Add lib_SOURCES, include for new
86233         file euidaccess.h
86234
86235 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86236
86237         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86238         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86239         Normalize leading white space and remove trailing white space.
86240
86241         Merge from coreutils
86242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
86243
86244         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
86245         0.12.1.  These files are now being upgraded automatically by
86246         ../config/srclist-update.
86247
86248 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86249
86250         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
86251         Normalize leading white space and remove trailing white space.
86252         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
86253         notice, as per ../config/srclist-update.
86254
86255         Merge from coreutils.
86256         * lib/euidaccess.h: New file.
86257         * lib/euidaccess.c: Include it.
86258         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
86259         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
86260         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
86261
86262 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86263
86264         * config/srclist-update: Add copyright notice.
86265         (remove_id_lines, remove_trailing_blanks): New constants.
86266         (fixfile): Use them to normalize spacing a bit in copied files.
86267         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
86268         Normalize leading white space and remove trailing white space.
86269
86270         * config/texinfo.tex: Sync with texinfo.
86271
86272         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
86273         strtoul.c from libc, to merge coreutils whitespace changes.
86274
86275         * config/srclist.txt: Get the following m4 files from gettext:
86276         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
86277         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
86278         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
86279         wint_t.m4.
86280
86281 2003-08-12  Karl Berry  <karl@gnu.org>
86282
86283         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
86284         been made.
86285
86286 2003-08-11  Paul Eggert  <eggert@twinsun.com>
86287
86288         * modules/gnu-source, m4/gnu-source.m4:
86289         Remove; we're assuming Autoconf 2.54 or later now.
86290         Suggested by Bruno Haible.
86291         * MODULES.html.sh (func_all_modules): Remove gnu-source.
86292
86293 2003-08-11  Bruno Haible  <bruno@clisp.org>
86294
86295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
86296
86297 2003-08-11  Bruno Haible  <bruno@clisp.org>
86298
86299         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
86300         (vasnprintf): Use it instead of wcslen.
86301
86302 2003-08-11  Bruno Haible  <bruno@clisp.org>
86303
86304         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
86305         value to ensure that _Bool promotes to int. Use #define for _Bool when
86306         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
86307
86308 2003-08-10  Karl Berry  <karl@gnu.org>
86309
86310         * lib/regex.h: update from libc (whitespace fix).
86311
86312 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86313
86314         Merge some files from coreutils.  These changes were
86315         originally made by Jim Meyering.
86316         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
86317         many older Unixes require this.
86318         * lib/alloca.c (alloca): Remove cast to argument of free;
86319         no longer needed in C89.
86320         * lib/alloca_.h, regex.h: Fix white space to match
86321         what GNU indent does.
86322
86323 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86324
86325         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
86326         apparently Emacs's Unicode mode got confused before my 2003-08-05
86327         checkin.
86328
86329 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86330
86331         * m4/extensions.m4: New file.
86332         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
86333         Require gl_USE_SYSTEM_EXTENSIONS.
86334         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
86335         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
86336
86337 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86338
86339         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
86340         * modules/extensions, modules/gnu-source: New files.
86341         * modules/timespec, modules/unlocked-io: Depend on extensions.
86342
86343 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86344
86345         * modules/restrict: New file.
86346         * MODULES.html.sh (func_all_modules): Add restrict.
86347         * modules/regex: Depend on restrict.
86348
86349 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86350
86351         * m4/restrict.m4: New file.
86352         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
86353
86354 2003-08-07  Bruno Haible  <bruno@clisp.org>
86355
86356         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
86357         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
86358
86359 2003-08-07  Bruno Haible  <bruno@clisp.org>
86360
86361         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
86362         makes the module 'getndelim2' compatible with the module 'getline'.
86363
86364 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86365
86366         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
86367         byte with "\201" to avoid glitches when editing that source file
86368         with multi-gnome-terminal.
86369
86370 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86371
86372         * lib/bumpalloc.h: Remove.
86373
86374 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86375
86376         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
86377         * modules/bumpalloc: Remove.
86378
86379 2003-08-04  Paul Eggert  <eggert@twinsun.com>
86380
86381         * lib/getloadavg.c: Change copyright notice and spacing to conform to
86382         GNU coding style.
86383
86384         Merge from coreutils.
86385         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
86386         1. From glibc.
86387         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
86388         from Karl Berry, implemented by Jim Meyering.
86389         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
86390         from Dmitry V. Levin.
86391         Remove anachronistic cast of xrealloc.
86392         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
86393         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
86394         type. Otherwise, it wouldn't compile with at least /bin/cc on
86395         ymp-cray-unicos9.0.2.X.
86396         Combine two mostly-identical uses of alloca into one.
86397         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
86398
86399 2003-08-04  Dave Love  <d.love@dl.ac.uk>
86400
86401         [From Emacs.]
86402
86403         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
86404         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
86405         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
86406         obsolete NLIST_NAME_UNION.
86407         [__GNU__]: Undef BSD and FSCALE.
86408         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
86409
86410 2003-08-03  Paul Eggert  <eggert@twinsun.com>
86411
86412         * lib/stdbool_.h (_Bool): Make it signed char, instead of
86413         an enum type, so that it's guaranteed to promote to int.  See:
86414         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
86415
86416 2003-08-03  Karl Berry  <karl@gnu.org>
86417
86418         * config/depcomp: update from automake.
86419
86420 2003-07-31  Paul Eggert  <eggert@twinsun.com>
86421
86422         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
86423         (strerror): Don't assume that a printable int fits in 14 bytes.
86424
86425 2003-07-31  Bruno Haible  <bruno@clisp.org>
86426
86427         * modules/getpass-gnu: New file.
86428         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
86429
86430 2003-07-31  Bruno Haible  <bruno@clisp.org>
86431
86432         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
86433
86434 2003-07-24  Karl Berry  <karl@gnu.org>
86435
86436         * config/missing: update from automake.
86437
86438 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
86439             Bruno Haible  <bruno@clisp.org>
86440
86441         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
86442         * lib/getline.c (getline, getdelim): Likewise.
86443         Remove _GNU_SOURCE define; now it's defined in config.h through
86444         m4/getline.m4.
86445
86446 2003-07-23  Karl Berry  <karl@gnu.org>
86447
86448         * config/config.sub: update from prep.
86449
86450 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86451
86452         * modules/xalloc (Depends-on): Add exitfail.
86453         * modules/xmemcoll: Likewise.
86454
86455 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86456
86457         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
86458         over-parenthesization in macros.
86459
86460         Sync with coreutils.
86461
86462         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
86463         required by C99.
86464
86465         Use `exit_failure' for xalloc and xmemcoll instead of their own
86466         private exit-failure variables.
86467         * lib/xalloc.h (xalloc_exit_failure): Remove.
86468         * lib/xmalloc.c: Likewise.  Include exitfail.h.
86469         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
86470         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
86471         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
86472         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
86473
86474 2003-07-20  Jim Meyering  <jim@meyering.net>
86475
86476         * modules/closeout (Depends-on): Add exitfail.
86477         Suggestion from Bruno Haible.
86478
86479 2003-07-19  Karl Berry  <karl@gnu.org>
86480
86481         * config/config.sub: update from prep.
86482
86483 2003-07-18  Paul Eggert  <eggert@twinsun.com>
86484
86485         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
86486         Remove.
86487         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
86488         to test that it can stand by itself.  Include "exitfail.h".
86489         Clients should set exit_failure instead.
86490         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
86491
86492 2003-07-18  Bruno Haible  <bruno@clisp.org>
86493
86494         * modules/getndelim2: New file.
86495         * modules/getline: Share files with module getndelim2.
86496         * modules/getnline: Depend on getndelim2 instead of sharing files with
86497         it. Add getnline.c to lib_SOURCES.
86498         * MODULES.html.sh (func_all_modules): Add getndelim2.
86499
86500 2003-07-18  Bruno Haible  <bruno@clisp.org>
86501
86502         * m4/getndelim2.m4: New file.
86503         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
86504         invoke gl_PREREQ_GETNDELIM2.
86505         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
86506         gl_PREREQ_GETNDELIM2.
86507         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
86508         gl_GETNDELIM2.
86509
86510 2003-07-18  Bruno Haible  <bruno@clisp.org>
86511
86512         * lib/getndelim2.h: New file.
86513         * lib/getndelim2.c: Make into a module of its own. Include config.h,
86514         getndelim2.h.
86515         (getndelim2): Make non-static. Change return type to ssize_t.
86516         * lib/getline.h: Change argument names.
86517         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
86518         * lib/getnline.c: Include getndelim2.h.
86519
86520 2003-07-18  Andreas Schwab  <schwab@suse.de>
86521
86522         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
86523
86524 2003-07-17  Karl Berry  <karl@gnu.org>
86525
86526         * config/config.sub: update from prep.
86527
86528 2003-07-17  Bruno Haible  <bruno@clisp.org>
86529
86530         * modules/getnline: New file.
86531         * modules/getline: Add lib/getndelim2.c to source file list.
86532         * MODULES.html.sh (func_all_modules): Add getnline.
86533
86534 2003-07-17  Bruno Haible  <bruno@clisp.org>
86535
86536         * m4/getnline.m4: New file.
86537
86538 2003-07-17  Bruno Haible  <bruno@clisp.org>
86539
86540         * m4/Makefile.am.in: Remove file.
86541         * m4/Makefile.am: Remove file.
86542         * m4/Makefile.in: Remove file.
86543
86544 2003-07-17  Bruno Haible  <bruno@clisp.org>
86545
86546         * lib/getnline.h: New file.
86547         * lib/getnline.c: New file.
86548         * lib/getndelim2.c: New file, extracted from getline.c.
86549         (getndelim2): Renamed from getdelim2, with added nmax argument.
86550         * lib/getline.c: Include getndelim2.c.
86551         (getdelim2): Moved out to getndelim2.c.
86552         (getline, getdelim): Update.
86553
86554 2003-07-17  Bruno Haible  <bruno@clisp.org>
86555
86556         * lib/Makefile.am: Remove file.
86557         * lib/Makefile.in: Remove file.
86558
86559 2003-07-17  Bruno Haible  <bruno@clisp.org>
86560
86561         * configure.in: Remove file.
86562         * Makefile.in: Remove file.
86563
86564 2003-07-17  Bruno Haible  <bruno@clisp.org>
86565
86566         * MODULES.html.sh: Put the </BODY> right before </HTML>.
86567
86568 2003-07-16  Karl Berry  <karl@gnu.org>
86569
86570         * config/srclist-update: was running fixlicense twice, which caused
86571                 texinfo.tex to be nullified for some reason.  Simplify,
86572                 $gplsrc is no longer needed as far as I can see?
86573
86574 2003-07-16  Jim Meyering  <jim@meyering.net>
86575
86576         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
86577
86578 2003-07-15  Paul Eggert  <eggert@twinsun.com>
86579
86580         * config/srclist.txt: Get the following files from gettext-runtime/intl
86581         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
86582         ref-del.sin.  From Bruno Haible.
86583         * config/srclist-update (fixfile): Change grep pattern again, since the
86584         previous fix didn't work (there was another trailing $).  Use
86585         '[$]' to escape the $s.
86586
86587 2003-07-15  Karl Berry  <karl@gnu.org>
86588
86589         * lib/vasnprintf.c: update from gettext.
86590
86591 2003-07-15  Karl Berry  <karl@gnu.org>
86592
86593         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
86594         gets expanded when surrounded by '$'.
86595
86596 2003-07-15  Jim Meyering  <jim@meyering.net>
86597
86598         * modules/save-cwd: Don't depend on error.  From Derek Price.
86599
86600 2003-07-15  Jim Meyering  <jim@meyering.net>
86601
86602         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
86603
86604 2003-07-14  Simon Josefsson  <jas@extundo.com>
86605
86606         * modules/mempcpy: New file.
86607         * MODULES.html.sh (func_all_modules): Add mempcpy.
86608
86609 2003-07-14  Simon Josefsson  <jas@extundo.com>
86610
86611         * m4/mempcpy.m4: New file.
86612
86613 2003-07-14  Simon Josefsson  <jas@extundo.com>
86614
86615         * lib/mempcpy.h: New file.
86616         * lib/mempcpy.c: New file.
86617
86618 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86619
86620         * modules/getdate, modules/posixtm: Depend on mktime.
86621
86622 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86623
86624         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
86625         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
86626         unicodeio.c, unicodeio.h, unlocked-io.h:
86627         Switch from LGPL to GPL.
86628
86629 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86630
86631         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
86632         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
86633         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
86634         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
86635         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
86636         updated automatically by ../config/srclist-update.  This changes
86637         their license from LPGL to GPL.
86638
86639 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86640
86641         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
86642         assumed to refer to the root of the most recent stable gettext version.
86643         * config/srclistvars.sh: Add defaults for eggert.
86644         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
86645         Match "This program" as well as "The program".  This is needed
86646         for gettext.
86647
86648 2003-07-14  Jim Meyering  <jim@meyering.net>
86649
86650         Don't emit diagnostics.  Let callers do that.
86651         * lib/save-cwd.c: Don't include "error.h".
86652         (save_cwd): Don't call error.  Ensure that errno is valid
86653         when returning nonzero.
86654
86655         * lib/save-cwd.h (restore_cwd): Update prototype.
86656         * lib/save-cwd.c (restore_cwd): Remove two parameters.
86657         Simplify.  Don't call error upon failure.  Let callers do that.
86658         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
86659         when auditing is enabled.  But don't bother updating the #if.
86660
86661 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
86662
86663         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
86664         it breaks C++ compilation.
86665         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
86666
86667 2003-07-10  Simon Josefsson  <jas@extundo.com>
86668
86669         * modules/strchrnul (Makefile.am): Add strchrnul.h.
86670
86671 2003-07-10  Jim Meyering  <jim@meyering.net>
86672
86673         * m4/clock_time.m4: Remove trailing blank.
86674         * m4/intmax_t.m4: Likewise.
86675
86676 2003-07-10  Jim Meyering  <jim@meyering.net>
86677
86678         * lib/vasnprintf.c: Remove trailing blanks.
86679         Make cpp indentation consistent.
86680
86681 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86682
86683         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
86684         posixver.c, strftime.c, strnlen.c, strverscmp.c:
86685         Switch from LGPL to GPL.
86686
86687 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86688
86689         * config/srclist.txt: Sort sublists.  Add
86690         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
86691         that differ from gnulib for one reason or another; we'd like this list
86692         to be smaller but for now let's document what we have.
86693
86694 2003-07-08  Paul Eggert  <eggert@twinsun.com>
86695
86696         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
86697         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
86698         and sweeter "eval x=$x".
86699         * config/srclist.txt: Get lib/argp* from glibc.
86700
86701 2003-07-07  Paul Eggert  <eggert@twinsun.com>
86702
86703         * lib/mktime.c: Fix some boundary cases and remove need for floating
86704         point.
86705
86706         Issue a compile-time diagnostic if time_t is floating point, or if
86707         two's complement arithmetic is not in effect, or if arithmetic
86708         right shift does not propagate the sign.  These assumptions were
86709         all in the original code but they weren't checked.
86710
86711         (TIME_T_MIDPOINT, verify): New macros.
86712         (__isleap): Remove; it has integer overflow problems.
86713         (leapyear): New function, without those problems.
86714         (ydhms_tm_diff): Remove; splitting into two parts.
86715         (ydhms_diff): New function, containing the arithmetic part of
86716         the old ydhms_tm_diff function.  Issue a compile-time
86717         diagnostic if we are not using C99 integer division.
86718         Avoid casts when possible.
86719         (guess_time_tm): New function, containing the checking part of
86720         the old ydhms_tm_diff function.  Return the new value, rather than
86721         the difference between it and the old.  Accept a new argument T
86722         so that *T specifies the old value.  Check for overflow in the result.
86723
86724         (__mktime_internal): Use a time_t offset, not a long int offset.
86725         This undoes the 2003-06-04 change, which is no longer needed now
86726         that we have better overflow checking.
86727         (localtime_offset): Likewise.
86728
86729         (__mktime_internal): Avoid harmful overflow on hosts where time_t
86730         and long are 64-bit but int is only 32-bit.
86731         (ydhms_diff): Use long int to store year1 and yday1.
86732         Issue a compile-time diagnostic if long int is not wide enough.
86733
86734         (__mktime_internal): Use long int to store adjusted year and yday.
86735         Use plain C rather than preprocessor commands, if that doesn't
86736         affect efficiency.
86737         Check for overflow (and try to repair) after each probe
86738         rather than checking only at the very end.  This avoids some bugs
86739         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
86740         does not equal GMT offset at maximum time).
86741         Use integer to check for overflow rather than floating point; this
86742         is more portable to non-IEEE hosts, and is a tad faster.
86743         When we detect that we are oscillating between two values,
86744         don't check whether tm_isdst has the requested value, since
86745         we already know the answer.  When tm_isdst has the wrong value,
86746         use a different heuristic to find the right one, based on the
86747         extreme values actually observed in practice in tz2003a,
86748         rather than the (overly optimistic) "previous 3 calendar quarters".
86749
86750         (not_equal_tm, print_tm, check_result): Use "const T" rather than
86751         "T const" to accommodate glibc style.
86752         (check_result): Use less-confusing report format.  "long" -> "long int.
86753         (main): Likewise.
86754         Don't loop if the iteration overflows time_t.
86755         Allow a negative step in the iteration.
86756
86757 2003-07-06  Karl Berry  <karl@gnu.org>
86758
86759         * config/depcomp: update from automake.
86760         * config/config.sub: update from prep.
86761
86762 2003-07-03  Karl Berry  <karl@gnu.org>
86763
86764         * config/config.guess: update from prep.
86765
86766 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86767
86768         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
86769         xreadlink.c now includes it unconditionally.
86770
86771 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86772
86773         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
86774         having it depend on HAVE_SYS_TYPES_H.
86775
86776 2003-07-01  Bruno Haible  <bruno@clisp.org>
86777
86778         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
86779         <sys/types.h> should be sufficient.
86780         Reported by Paul Eggert.
86781
86782 2003-06-26  Karl Berry  <karl@gnu.org>
86783
86784         * config/depcomp: update from automake.
86785
86786 2003-06-26  Bruno Haible  <bruno@clisp.org>
86787
86788         * modules/human: Depend on module stdbool.
86789
86790 2003-06-25  Bruno Haible  <bruno@clisp.org>
86791
86792         * modules/readlink: New file.
86793         * modules/xreadlink: Depend on it.
86794         * MODULES.html.sh (func_all_modules): Add readlink.
86795
86796 2003-06-25  Bruno Haible  <bruno@clisp.org>
86797
86798         * m4/readlink.m4: New file.
86799
86800 2003-06-25  Bruno Haible  <bruno@clisp.org>
86801
86802         * lib/readlink.c: New file.
86803
86804 2003-06-22  Karl Berry  <karl@gnu.org>
86805
86806         * config/srclist.txt: update mkinstalldirs from automake.
86807         * config/mkinstalldirs: update.
86808
86809 2003-06-22  Bruno Haible  <bruno@clisp.org>
86810
86811         Portability to mingw32.
86812         * m4/ssize_t.m4: New file, from GNU gettext.
86813         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86814         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86815
86816 2003-06-22  Bruno Haible  <bruno@clisp.org>
86817
86818         * modules/safe-read: Add m4/ssize_t.m4.
86819         * modules/xreadlink: Add m4/ssize_t.m4.
86820
86821 2003-06-20  Bruno Haible  <bruno@clisp.org>
86822
86823         Assume C89, so PARAMS isn't needed.
86824         * lib/unicodeio.h (PARAMS): Remove.
86825         * lib/unicodeio.c: Don't use PARAMS.
86826
86827 2003-06-18  Karl Berry  <karl@gnu.org>
86828
86829         * config/config.{guess,sub}: update from prep.
86830
86831 2003-06-18  Jim Meyering  <jim@meyering.net>
86832
86833         Merge changes from coreutils.
86834         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86835         Remove explicit declarations of xmalloc and realloc.
86836         Include xalloc.h.
86837         (read_utmp): Remove anachronistic cast of xmalloc.
86838
86839 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86840
86841         Assume C89, so PARAMS isn't needed.
86842         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86843         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86844         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86845         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86846         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86847         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86848         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86849         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86850         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86851         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86852         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86853         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86854         no longer needed. Anyway, config.h should always be included before any
86855         other file.
86856
86857 2003-06-11  Simon Josefsson  <jas@extundo.com>
86858
86859         * modules/sysexits: New file.
86860         * MODULES.html.sh (func_all_modules): Add sysexits.
86861
86862 2003-06-11  Simon Josefsson  <jas@extundo.com>
86863
86864         * lib/sysexit_.h: New file.
86865
86866 2003-06-11  Derek Price  <derek@ximbiot.com>
86867
86868         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86869         necessary.
86870
86871 2003-06-11  Bruno Haible  <bruno@clisp.org>
86872
86873         * m4/sysexits.m4: New file.
86874
86875 2003-06-10  Simon Josefsson  <jas@extundo.com>
86876
86877         * lib/argp.h: New file, from glibc.
86878         * lib/argp-ba.c: New file, from glibc.
86879         * lib/argp-eexst.c: New file, from glibc.
86880         * lib/argp-fmtstream.c: New file, from glibc.
86881         * lib/argp-fmtstream.h: New file, from glibc.
86882         * lib/argp-fs-xinl.c: New file, from glibc.
86883         * lib/argp-help.c: New file, from glibc.
86884         * lib/argp-namefrob.h: New file, from glibc.
86885         * lib/argp-parse.c: New file, from glibc.
86886         * lib/argp-pv.c: New file, from glibc.
86887         * lib/argp-pvh.c: New file, from glibc.
86888         * lib/argp-xinl.c: New file, from glibc.
86889
86890 2003-06-10  Simon Josefsson  <jas@extundo.com>
86891
86892         * modules/strchrnul: New file.
86893
86894 2003-06-10  Simon Josefsson  <jas@extundo.com>
86895
86896         * modules/argp: New file.
86897
86898 2003-06-10  Simon Josefsson  <jas@extundo.com>
86899
86900         * m4/strchrnul.m4: New file.
86901
86902 2003-06-10  Simon Josefsson  <jas@extundo.com>
86903
86904         * lib/strchrnul.h: New file.
86905         * lib/strchrnul.c: New file.
86906
86907 2003-06-10  Bruno Haible  <bruno@clisp.org>
86908
86909         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86910
86911 2003-06-07  Karl Berry  <karl@gnu.org>
86912
86913         * config/config.{guess,sub}: update from prep.
86914
86915 2003-06-07  Jim Meyering  <jim@meyering.net>
86916
86917         * modules/strtod: Use $(...) notation, not @...@ for
86918         AC_REPLACE'd variables.
86919         * modules/localcharset: Likewise.
86920
86921 2003-06-07  Jim Meyering  <jim@meyering.net>
86922
86923         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86924         in place of my name in the copyright comment.
86925         Remove definition and uses of __P.
86926
86927         From coreutils.
86928         * lib/stat.c: Don't declare xmalloc explicitly.
86929         Instead, include "xalloc.h".
86930         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86931         xrealloc, and xcalloc return values.
86932         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86933         Improve comment.
86934         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86935
86936 2003-06-07  Bruno Haible  <bruno@clisp.org>
86937
86938         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86939         avoid AC_CONFIG_LINKS.
86940         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86941         fnmatch.h, to avoid AC_CONFIG_LINKS.
86942         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86943
86944 2003-06-07  Bruno Haible  <bruno@clisp.org>
86945
86946         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86947         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86948         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86949         directory.
86950         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86951         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86952         directory.
86953
86954 2003-06-06  Jim Meyering  <jim@meyering.net>
86955
86956         Merge from coreutils.
86957         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86958         Consolidate declarations and initializations of *_base* locals.
86959
86960         Merge from coreutils.
86961         This avoids a core dump on systems without GNU putenv,
86962         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86963         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86964         (unsetenv): New static function, from GNU libc.
86965         (rpl_putenv): Use it.
86966
86967         * lib/modechange.c: Remove trailing blanks.
86968
86969         Merge from coreutils.
86970         * lib/fsusage.c: Remove declaration of statfs.
86971         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86972
86973         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86974
86975 2003-06-06  Jim Meyering  <jim@meyering.net>
86976
86977         * lib/stdbool_.h: Renamed from stdbool.h.in.
86978
86979 2003-06-06  Jim Meyering  <jim@meyering.net>
86980             Bruno Haible  <bruno@clisp.org>
86981
86982         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86983         Adjust Makefile.am snippet not to redirect directly to target.
86984         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86985
86986 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86987
86988         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86989         mismatch, look in future quarters as well as past.  This fixes a
86990         bug when processing fall-backwards gaps immediately after a long
86991         period of daylight-saving time.
86992
86993         * lib/mktime.c: Assume freestanding C89 or better.
86994         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86995         (__P): Remove; not used.
86996         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86997         (mktime, not_equal_tm, print_tm, check_result,
86998         main): Use prototypes.  Use const * where appropriate.
86999         (main): Fix typo in testing code that uncovered by above changes.
87000         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
87001
87002 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87003
87004         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
87005         locale.h, localeconv.  This merges changes from coreutils.
87006
87007         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
87008         It can be removed after the next Autoconf is released.
87009         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
87010         needed.
87011
87012 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87013
87014         * lib/mktime.c: Fix Debian bug 177940
87015         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
87016         (localtime_offset): Now long int, not time_t, because we want it
87017         to be guaranteed to be signed.  All uses changed.
87018         (__mktime_internal): If overflow would occur when adding offset,
87019         don't add it.
87020
87021         Merge 'human' changes from coreutils.  Rewrite to support
87022         locale-specific notations like thousands separators.
87023         * lib/human.c: Simplify authorship notice.
87024         Include human.h immediately after config.h.
87025         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
87026         <limits.h>: Do not include, since human.h does.
87027         (SIZE_MAX, UINTMAX_MAX): New macros.
87028         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
87029         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
87030         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
87031         (power_letter): Renamed from suffixes.
87032         (generate_suffix_backwards): Remove.
87033         (adjust_value): Now takes int style (because of human.h changes)
87034         and long double value (for greater precision on some platforms).
87035         (group_number): New function.
87036         (human_readable): Use it.  Use integer options, not enum.
87037         Put the options before the sizes in the arg list.
87038         Support all the new options.
87039         The old human_readable function has been removed;
87040         use inttostr.h instead.
87041         (human_readable, default_block_size, humblock):
87042         Use uintmax_t, not int, for block sizes.
87043         (human_readable_inexact, block_size_types): Remove.
87044         (block_size_opts): New constant.
87045         (human_options): Renamed from human_block_size, with new signature
87046         that allows block sizes up to UINTMAX_MAX.  All callers changed.
87047         * lib/human.h: Add copyright and authorship notice.
87048         Include <limits.h> and <stdbool.h> unconditionally.
87049         (PARAMS): Remove.  All uses removed.
87050         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
87051         (enum human_inexact_style): Remove tag; now a nameless enum.
87052         (human_floor, human_ceiling, human_round_to_even): Now have
87053         values 2, 0, 1 rather than -1, 1, 0.
87054         (human_group_digits, human_suppress_point_zero, human_autoscale,
87055         human_base_1024, human_SI, human_B): New constants.
87056         (human_readable_inexact, human_block_size): Remove.
87057         (human_readable): Size args are now uintmax_t, not int.
87058         (human_options): New decl.
87059
87060         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
87061         unnecessary now that we assume C89 or better.  This change
87062         imported from coreutils.
87063
87064         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87065         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
87066         in the 2003-05-30 sync from glibc.
87067
87068         .h files should stand alone, but we shouldn't include <sys/types.h>
87069         if we can get away with just <stddef.h>.
87070
87071         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
87072         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
87073         rather than <sys/types.h>, as we merely need size_t.
87074         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
87075         to get size_t.
87076         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
87077         Include <stdio.h>, to get FILE.
87078         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
87079         memcasecmp.h has included <stddef.h> and all we need is size_t.
87080         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
87081         our interface, instead of including <sys/types.h>
87082
87083 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87084
87085         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
87086         now, as glibc mktime is buggy on non-glibc systems.
87087
87088 2003-06-03  Karl Berry  <karl@gnu.org>
87089
87090         * config/config.sub: update from prep.
87091
87092 2003-06-02  Paul Eggert  <eggert@twinsun.com>
87093
87094         [from coreutils]
87095         Fix some minor time-related bugs with POSIX time arguments.
87096         Some valid time stamps were being rejected (notably -1, and
87097         time stamps before 1900 on 64-bit hosts).  And some invalid
87098         time stamps were being accepted, e.g. September 31.
87099
87100         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
87101         that we can return (time_t) -1 successfully.
87102         * lib/posixtm.c: Likewise.
87103         [HAVE_STDBOOL_H]: Include <stdbool.h>.
87104         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
87105         (t): Remove static var.
87106         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
87107         of static var.  All uses changed.
87108         (year): Do not reject years before 1900; they can occur with
87109         64-bit time_t.
87110         (posix_time_parse): Do not check for out-of-range components;
87111         that is now the caller's responsibility, since our checks were
87112         only approximations.
87113         (posixtime): Use mktime to check for out-of-range components,
87114         since it knows them exactly.
87115         If mktime returns (time_t) -1, check whether an error actually occurred
87116         by invoking localtime on -1.
87117         (main) [TEST_POSIXTIME]: Check for input data errors, and report
87118         posixtime failures better.
87119         Improve the test data (in comments only).
87120
87121 2003-06-02  Karl Berry  <karl@gnu.org>
87122
87123         * config/mkinstalldirs (version): new variable.
87124         (--version): new option.
87125         (usage): improve message.
87126
87127 2003-05-30  Karl Berry  <karl@gnu.org>
87128
87129         * lib/mktime.c: update from libc.
87130
87131 2003-05-30  Bruno Haible  <bruno@clisp.org>
87132
87133         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
87134         * config/config.rpath: Upgrade to gettext-0.12.1.
87135
87136 2003-05-30  Bruno Haible  <bruno@clisp.org>
87137
87138         * m4/gettext.m4: Upgrade to gettext-0.12.1.
87139         * m4/nls.m4: New file, from gettext-0.12.1.
87140         * m4/po.m4: New file, from gettext-0.12.1.
87141         * m4/progtest.m4: Upgrade to gettext-0.12.1.
87142
87143 2003-05-30  Bruno Haible  <bruno@clisp.org>
87144
87145         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
87146         * lib/localcharset.h: Likewise.
87147         * lib/localcharset.c: Likewise.
87148
87149 2003-05-29  Karl Berry  <karl@gnu.org>
87150
87151         * config/config.rpath: update from gettext.
87152
87153 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87154
87155         Assume the headers required for C89 freestanding compilers.
87156         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
87157         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
87158         * m4/human.m4 (gl_HUMAN): Likewise.
87159         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
87160         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
87161         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87162         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
87163         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87164         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
87165
87166 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87167
87168         Assume the headers required for C89 freestanding compilers.
87169         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
87170         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
87171         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
87172         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
87173         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
87174         define, since <limits.h> is guaranteed to do that.
87175         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
87176         * lib/exclude.c: Include <stdbool.h> unconditionally.
87177         * lib/tempname.c: Include <stddef.h> unconditionally.
87178         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
87179         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
87180         <stddef.h> does that.
87181         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
87182         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
87183         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
87184         needed.
87185         * lib/xstrtol.c: Likewise.
87186         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
87187         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
87188
87189         * lib/addext.c (addext): Use assignment rather than cast, to avoid
87190         warnings on some platforms.
87191
87192         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87193         arbitrarily.
87194
87195 2003-05-26  Jim Meyering  <jim@meyering.net>
87196
87197         Merge in a change from coreutils:
87198         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
87199         that is guaranteed to be `no'.  Use `no_such_member' to indicate
87200         that condition, rather than `-1' which is slightly misleading.
87201         Change the name of the cache variable to have the gl_ prefix.
87202         Prompted by a patch from Richard Dawe for DJGPP.
87203
87204 2003-05-24  Karl Berry  <karl@gnu.org>
87205
87206         * config/config.guess: update from prep.
87207
87208 2003-05-22  Karl Berry  <karl@gnu.org>
87209
87210         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
87211
87212 2003-05-20  Karl Berry  <karl@gnu.org>
87213
87214         * config/config.guess: update from prep.
87215
87216 2003-05-18  Karl Berry  <karl@gnu.org>
87217
87218         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
87219         might actually be set by the user.
87220
87221         * config/depcomp, install-sh, mdate-sh: update from automake.
87222
87223 2003-05-17  Bruno Haible  <bruno@clisp.org>
87224
87225         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
87226         invalid expansion for AC_EGREP_CPP.
87227         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
87228         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
87229         Suggested by Akim Demaille <akim@epita.fr> in
87230         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
87231
87232 2003-05-12  Jim Meyering  <jim@meyering.net>
87233
87234         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
87235         the space-padded-by-default conversion specifiers, %e, %k, %l.
87236
87237 2003-05-12  Bruno Haible  <bruno@clisp.org>
87238
87239         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
87240         the string is longer than 4 KB.
87241
87242 2003-05-11  Karl Berry  <karl@gnu.org>
87243
87244         * config/config.{guess,sub}: update from prep.
87245
87246 2003-05-09  Bruno Haible  <bruno@clisp.org>
87247
87248         * modules/error: Add m4/strerror_r.m4 to file list.
87249
87250 2003-05-03  Bruno Haible  <bruno@clisp.org>
87251
87252         Upgrade to Unicode-4.0.
87253         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
87254         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
87255         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
87256         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
87257         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
87258         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
87259         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
87260         Change width of U+E0100..U+E01EF from 1 to 0.
87261
87262 2003-04-25  Jim Meyering  <jim@meyering.net>
87263
87264         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
87265         of type size_t, not int.
87266
87267 2003-04-25  Bruno Haible  <bruno@clisp.org>
87268
87269         * lib/copy-file.c: Include <stddef.h>, for size_t.
87270
87271 2003-04-21  Paul Eggert  <eggert@twinsun.com>
87272
87273         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
87274         code which expansion is under static control.  Patch imported from
87275         Akim Demaille's patch to Bison; see
87276         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
87277
87278 2003-04-14  Bruno Haible  <bruno@clisp.org>
87279
87280         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
87281
87282 2003-04-11  Jim Meyering  <jim@meyering.net>
87283
87284         Merge changes from Coreutils.
87285
87286         2003-03-22  Jim Meyering  <jim@meyering.net>
87287
87288         * lib/strftime.c (widen): Cast alloca return value to proper type.
87289
87290         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
87291
87292         From GNU libc.
87293         * lib/strftime.c (my_strftime): Handle very large width
87294         specifications for numeric values correctly.  Improve checks for
87295         overflow.
87296
87297         2003-01-19  Jim Meyering  <jim@meyering.net>
87298
87299         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
87300         definitions.
87301         (nl_get_alt_digit) [! defined my_strftime]: Define.
87302         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
87303         _nl_get_alt_digit and _nl_get_walt_digit.
87304
87305         * lib/strftime.c (my_strftime): Merge in locale-related changes from
87306         libc. These changes have no effect outside of _LIBC.
87307
87308 2003-04-10  Bruno Haible  <bruno@clisp.org>
87309
87310         * modules/findprog: New file.
87311         * MODULES.html.sh (func_all_modules): Add it.
87312
87313 2003-04-10  Bruno Haible  <bruno@clisp.org>
87314
87315         * m4/findprog.m4: New file.
87316         * m4/eaccess.m4: New file.
87317
87318 2003-04-10  Bruno Haible  <bruno@clisp.org>
87319
87320         * lib/findprog.h: New file, from GNU gettext.
87321         * lib/findprog.c: New file, from GNU gettext.
87322
87323 2003-04-05  Jim Meyering  <jim@meyering.net>
87324
87325         Merge changes from Coreutils.
87326
87327         * lib/exclude.h (PARAMS): Remove definition and uses.
87328         * lib/exclude.c: Remove uses of `PARAMS'.
87329
87330         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
87331         Add test-cases for DOS filenames. Declare program_name.
87332         (main): Set up program_name.  Patch by Rich Dawe.
87333
87334         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87335         error from mntctl.
87336         Use mntctl's return value to drive the entry-processing loop, since
87337         we can't rely on the value of the vmt_length member in the last
87338         entry.  On some systems doing so could result in exhausting
87339         virtual memory.  Based in part on a patch from Mike Jetzer.
87340
87341 2003-04-04  Bruno Haible  <bruno@clisp.org>
87342
87343         * modules/linebreak: New file.
87344         * MODULES.html.sh (func_all_modules): Add it.
87345
87346 2003-04-04  Bruno Haible  <bruno@clisp.org>
87347
87348         * m4/linebreak.m4: New file.
87349
87350 2003-04-04  Bruno Haible  <bruno@clisp.org>
87351
87352         * lib/linebreak.h: New file, from GNU gettext.
87353         * lib/linebreak.c: New file, from GNU gettext with slight
87354         modifications.
87355         * lib/lbrkprop.h: New file, from GNU gettext.
87356
87357 2003-04-03  Bruno Haible  <bruno@clisp.org>
87358
87359         * modules/utf8-ucs4: New file.
87360         * modules/utf16-ucs4: New file.
87361         * modules/ucs4-utf8: New file.
87362         * modules/ucs4-utf16: New file.
87363         * MODULES.html.sh (func_all_modules): Add them.
87364
87365 2003-04-03  Bruno Haible  <bruno@clisp.org>
87366
87367         * m4/utf-ucs4.m4: New file.
87368         * m4/ucs4-utf.m4: New file.
87369
87370 2003-04-03  Bruno Haible  <bruno@clisp.org>
87371
87372         * lib/utf8-ucs4.h: New file, from GNU gettext.
87373         * lib/utf16-ucs4.h: New file, from GNU gettext.
87374         * lib/ucs4-utf8.h: New file, from GNU gettext.
87375         * lib/ucs4-utf16.h: New file, from GNU gettext.
87376
87377 2003-04-02  Bruno Haible  <bruno@clisp.org>
87378
87379         * modules/binary-io: New file.
87380         * MODULES.html.sh (func_all_modules): Add it.
87381
87382 2003-04-02  Bruno Haible  <bruno@clisp.org>
87383
87384         * lib/binary-io.h: New file, from GNU gettext.
87385
87386 2003-04-01  Bruno Haible  <bruno@clisp.org>
87387
87388         * modules/pathname: New file.
87389         * MODULES.html.sh (func_all_modules): Add it.
87390
87391 2003-04-01  Bruno Haible  <bruno@clisp.org>
87392
87393         * lib/pathname.h: New file, from GNU gettext.
87394         * lib/concatpath.c: New file, from GNU gettext.
87395
87396 2003-03-30  Bruno Haible  <bruno@clisp.org>
87397
87398         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
87399
87400 2003-03-30  Bruno Haible  <bruno@clisp.org>
87401
87402         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
87403         function chown() doesn't exist.
87404
87405 2003-03-28  Bruno Haible  <bruno@clisp.org>
87406
87407         * modules/copy-file: New file.
87408         * MODULES.html.sh (func_all_modules): Add it.
87409
87410 2003-03-28  Bruno Haible  <bruno@clisp.org>
87411
87412         * m4/copy-file.m4: New file.
87413
87414 2003-03-28  Bruno Haible  <bruno@clisp.org>
87415
87416         * lib/copy-file.h: New file, from GNU gettext.
87417         * lib/copy-file.c: New file, from GNU gettext.
87418
87419 2003-03-18  Jim Meyering  <jim@meyering.net>
87420
87421         * lib/quote.c (quote_n): Fix typo in comment.
87422
87423 2003-03-18  Bruno Haible  <bruno@clisp.org>
87424
87425         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
87426         checking.
87427         * m4/onceonly_2_57.m4: Likewise.
87428
87429 2003-03-17  Bruno Haible  <bruno@clisp.org>
87430
87431         * m4/onceonly.m4: Require autoconf 2.54 or newer.
87432         (m4_quote): Remove macro.
87433         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
87434
87435 2003-03-14  Jim Meyering  <jim@meyering.net>
87436
87437         Merge changes from Coreutils.
87438         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
87439         to be const, in order to avoid warnings.
87440         (obstack_room): Likewise.
87441         (obstack_empty_p): Likewise.
87442
87443 2003-03-14  Bruno Haible  <bruno@clisp.org>
87444
87445         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
87446         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
87447
87448 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87449
87450         Merge changes from Bison.
87451         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
87452         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
87453         when compiling Bison 1.875's `bitset bset = obstack_alloc
87454         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
87455         * lib/hash.c: Include <stdbool.h> unconditionally.
87456
87457 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87458
87459         * m4/onceonly.m4 (m4_quote): New macro.
87460         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
87461         Quote AC_FOREACH variable-expansions properly.
87462
87463 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87464
87465         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
87466
87467 2003-03-09  Paul Eggert  <eggert@twinsun.com>
87468
87469         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
87470         Reported by Bruce Becker; see:
87471         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
87472
87473 2003-03-03  Paul Eggert  <eggert@twinsun.com>
87474             Bruno Haible  <bruno@clisp.org>
87475
87476         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
87477         Reported by John Hughes, see
87478         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
87479
87480 2003-02-20  Bruno Haible  <bruno@clisp.org>
87481
87482         * MODULES.html.sh (func_all_modules): Add poll.
87483
87484 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87485
87486         * modules/poll: New file.
87487
87488 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87489
87490         * lib/poll_.h: New file.
87491         * lib/poll.c: New file.
87492
87493 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87494
87495         * m4/poll.m4: New file.
87496
87497 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87498
87499         * modules/mathl: New file.
87500
87501 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87502
87503         * lib/mathl.h: New file.
87504         * lib/acosl.c: New file.
87505         * lib/asinl.c: New file.
87506         * lib/atanl.c: New file.
87507         * lib/ceill.c: New file.
87508         * lib/cosl.c: New file.
87509         * lib/expl.c: New file.
87510         * lib/floorl.c: New file.
87511         * lib/frexpl.c: New file.
87512         * lib/ldexpl.c: New file.
87513         * lib/logl.c: New file.
87514         * lib/sincosl.c: New file.
87515         * lib/sinl.c: New file.
87516         * lib/sqrtl.c: New file.
87517         * lib/tanl.c: New file.
87518         * lib/trigl.c: New file.
87519         * lib/trigl.h: New file.
87520
87521 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87522
87523         * m4/mathl.m4: New file.
87524
87525 2003-02-18  Bruno Haible  <bruno@clisp.org>
87526
87527         * MODULES.html.sh (func_all_modules): Add mathl.
87528
87529 2003-02-17  Bruno Haible  <bruno@clisp.org>
87530
87531         * modules/mkdtemp: New module.
87532         * MODULES.html.sh (func_all_modules): Add it.
87533
87534 2003-02-17  Bruno Haible  <bruno@clisp.org>
87535
87536         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
87537
87538 2003-02-17  Bruno Haible  <bruno@clisp.org>
87539
87540         * lib/mkdtemp.h: New file, from GNU gettext.
87541         * lib/mkdtemp.c: New file, from GNU gettext.
87542
87543 2003-02-02  Jim Meyering  <jim@meyering.net>
87544
87545         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
87546         e.g. glibc-2.2.93.
87547
87548 2003-01-31  Bruno Haible  <bruno@clisp.org>
87549
87550         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
87551         'rpl_rename'.
87552         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
87553         'rpl_strnlen'.
87554         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
87555         'rpl_strtod'.
87556         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
87557         'rpl_utime'.
87558
87559 2003-01-31  Bruno Haible  <bruno@clisp.org>
87560
87561         * lib/rename.c: #undef rename before defining rpl_rename.
87562         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
87563
87564 2003-01-30  Bruno Haible  <bruno@clisp.org>
87565
87566         * modules/vasnprintf, modules/vasprintf: New modules.
87567         * MODULES.html.sh (func_all_modules): Add them.
87568
87569 2003-01-30  Bruno Haible  <bruno@clisp.org>
87570
87571         * m4/signed.m4: New file, from GNU gettext.
87572         * m4/longdouble.m4: New file, from GNU gettext.
87573         * m4/wchar_t.m4: New file, from GNU gettext.
87574         * m4/wint_t.m4: New file, from GNU gettext.
87575         * m4/vasnprintf.m4: New file.
87576         * m4/vasprintf.m4: New file.
87577
87578 2003-01-30  Bruno Haible  <bruno@clisp.org>
87579
87580         * lib/printf-args.h: New file, from GNU gettext.
87581         * lib/printf-args.c: New file, from GNU gettext.
87582         * lib/printf-parse.h: New file, from GNU gettext.
87583         * lib/printf-parse.c: New file, from GNU gettext.
87584         * lib/vasnprintf.h: New file, from GNU gettext.
87585         * lib/vasnprintf.c: New file, from GNU gettext.
87586         * lib/asnprintf.c: New file, from GNU gettext.
87587         * lib/vasprintf.h: New file, from GNU gettext with modifications.
87588         * lib/vasprintf.c: New file, from GNU gettext.
87589         * lib/asprintf.c: New file, from GNU gettext.
87590
87591 2003-01-29  Bruno Haible  <bruno@clisp.org>
87592
87593         * modules/stpncpy: New module.
87594         * MODULES.html.sh (func_all_modules): Add it.
87595
87596 2003-01-29  Bruno Haible  <bruno@clisp.org>
87597
87598         * m4/stpncpy.m4: New file.
87599
87600 2003-01-29  Bruno Haible  <bruno@clisp.org>
87601
87602         * lib/stpncpy.h: New file, from GNU gettext with modifications.
87603         * lib/stpncpy.c: New file, from GNU gettext with modifications.
87604
87605 2003-01-28  Bruno Haible  <bruno@clisp.org>
87606
87607         * modules/c-ctype: New module.
87608         * MODULES.html.sh (func_all_modules): Add it.
87609
87610 2003-01-28  Bruno Haible  <bruno@clisp.org>
87611
87612         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
87613         Paul Eggert.
87614         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
87615         Paul Eggert.
87616
87617 2003-01-27  Bruno Haible  <bruno@clisp.org>
87618
87619         * modules/xsetenv: New module.
87620         * MODULES.html.sh (func_all_modules): Add it.
87621
87622 2003-01-27  Bruno Haible  <bruno@clisp.org>
87623
87624         * lib/xsetenv.h: New file, from GNU gettext.
87625         * lib/xsetenv.c: New file, from GNU gettext.
87626
87627 2003-01-23  Jim Meyering  <jim@meyering.net>
87628
87629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
87630         from working on systems without dirfd (at least Irix and OSF1/Tru64).
87631
87632 2003-01-23  Bruno Haible  <bruno@clisp.org>
87633
87634         * modules/minmax: New module.
87635         * MODULES.html.sh (func_all_modules): Add it.
87636
87637 2003-01-23  Bruno Haible  <bruno@clisp.org>
87638
87639         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
87640         Eggert.
87641
87642 2003-01-22  Bruno Haible  <bruno@clisp.org>
87643
87644         * modules/exit: New module.
87645         * MODULES.html.sh (func_all_modules): Add it.
87646
87647 2003-01-22  Bruno Haible  <bruno@clisp.org>
87648
87649         * lib/exit.h: New file, from GNU gettext.
87650
87651 2003-01-19  Bruno Haible  <bruno@clisp.org>
87652
87653         * gnulib-tool: Recognize option --extract-maintainer.
87654         (func_get_maintainer): New function.
87655         * modules/*: Add Maintainer entry.
87656
87657 2003-01-16  Jim Meyering  <jim@meyering.net>
87658
87659         * m4/regex.m4: The `regex' struct is both input and output.
87660         Initialize it before each use.  Patch by Tim Waugh.
87661
87662 2003-01-16  Bruno Haible  <bruno@clisp.org>
87663
87664         * MODULES.html.sh: Add a table of contents. Add the module name as
87665         leftmost column. Add hyperlinks.
87666
87667 2003-01-15  Bruno Haible  <bruno@clisp.org>
87668
87669         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
87670
87671 2003-01-15  Bruno Haible  <bruno@clisp.org>
87672
87673         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
87674         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
87675         suffix.
87676
87677 2003-01-15  Bruno Haible  <bruno@clisp.org>
87678
87679         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
87680
87681 2003-01-15  Bruno Haible  <bruno@clisp.org>
87682
87683         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
87684         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
87685
87686 2003-01-14  Jim Meyering  <jim@meyering.net>
87687
87688         * lib/same.c (same_name): Tweak a comment.
87689
87690 2003-01-14  Bruno Haible  <bruno@clisp.org>
87691
87692         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
87693         when a string comparison is sufficient.
87694
87695 2003-01-14  Bruno Haible  <bruno@clisp.org>
87696
87697         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
87698         'unsigned int'.
87699
87700 2003-01-14  Bruno Haible  <bruno@clisp.org>
87701
87702         * lib/hash-pjw.c: Add comment about low quality of this function.
87703
87704 2003-01-13  Bruno Haible  <bruno@clisp.org>
87705
87706         * modules/stpcpy: Distribute lib/stpcpy.h.
87707         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
87708
87709 2003-01-13  Bruno Haible  <bruno@clisp.org>
87710
87711         * modules/*: Add a description.
87712         * modules/strpbrk: Fix Makefile.am snippet.
87713         * modules/strtoimax: Fix dependencies.
87714         * modules/strtoumax: Likewise.
87715
87716 2003-01-13  Bruno Haible  <bruno@clisp.org>
87717
87718         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
87719         * modules/alloca (Makefile.am): All object files depend on alloca.h.
87720         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
87721
87722 2003-01-13  Bruno Haible  <bruno@clisp.org>
87723
87724         * gnulib-tool (func_create_testdir): Store config/* files in the main
87725         directory.
87726         * config.rpath: Move to ...
87727         * config/config.rpath: ... here.
87728         * modules/gettext: Contains config/config.rpath, not config.rpath.
87729         * modules/iconv: Likewise.
87730
87731 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87732
87733         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87734         to avoid collisions with libcurses and libreadline.
87735
87736         * m4/getstr.m4: Remove.
87737         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
87738
87739 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87740
87741         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87742         to avoid collisions with libcurses and libreadline.
87743
87744         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
87745         * lib/getstr.h, getstr.c: Remove.
87746         * lib/getline.c: Include "getline.h", to check interface.
87747         Move body of old getstr.c here: this defines MIN_CHUNK and
87748         declares getdelim2, which is renamed from getstr.
87749         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
87750
87751         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
87752         All uses changed.
87753         * lib/linebuffer.h: Likewise.
87754         (readline): Remove backward-compatibility macro.
87755
87756 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87757
87758         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87759         to avoid collisions with libcurses and libreadline.
87760         * getstr: Remove.
87761         * MODULES.html.sh: Remove getstr.
87762         * modules/getline: Depend on unlocked-io, not getstr.
87763
87764 2003-01-12  Jim Meyering  <jim@meyering.net>
87765
87766         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
87767
87768 2003-01-10  Bruno Haible  <bruno@clisp.org>
87769
87770         * modules/alloca: Change Makefile.am requirements. Simplify Include
87771         requirements. Add lib/alloca_.h to file list.
87772
87773 2003-01-10  Bruno Haible  <bruno@clisp.org>
87774
87775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
87776
87777 2003-01-10  Bruno Haible  <bruno@clisp.org>
87778
87779         * lib/alloca_.h: New file.
87780         * lib/getdate.y: Unconditionally include alloca.h.
87781         * lib/makepath.c: Likewise.
87782         * lib/setenv.c: Likewise.
87783         * lib/userspec.c: Likewise.
87784
87785 2003-01-09  Karl Berry  <karl@gnu.org>
87786
87787         * MODULES.html.sh: include `dirname $0` in PATH, to find
87788         gnulib-tool.
87789
87790 2003-01-09  Bruno Haible  <bruno@clisp.org>
87791
87792         * modules/stdbool: Change configure.ac, Makefile.am requirements.
87793         Simplify Include requirements. Add lib/stdbool.h.in to file list.
87794
87795 2003-01-09  Bruno Haible  <bruno@clisp.org>
87796
87797         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
87798
87799 2003-01-09  Bruno Haible  <bruno@clisp.org>
87800
87801         * lib/stdbool.h.in: New file.
87802
87803 2003-01-09  Bruno Haible  <bruno@clisp.org>
87804
87805         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87806         * MODULES.html.sh: Likewise.
87807
87808 2003-01-08  Jim Meyering  <jim@meyering.net>
87809
87810         * lib/full-write.c: Undefine and define-away `const' after inclusion
87811         of errno.h, not before.  Suggestion from Bruno Haible.
87812
87813 2003-01-08  Bruno Haible  <bruno@clisp.org>
87814
87815         * modules/full-read: Depend on full-write.
87816
87817 2003-01-08  Bruno Haible  <bruno@clisp.org>
87818
87819         * lib/safe-read.c: Include specification header first, to ensure its
87820         selfcontainedness.
87821         * lib/full-write.c: Likewise.
87822
87823 2003-01-07  Jim Meyering  <jim@meyering.net>
87824
87825         * lib/full-write.c: Rework so that it may serve to define full_read,
87826         too.
87827         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87828
87829 2003-01-07  Bruno Haible  <bruno@clisp.org>
87830
87831         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87832         <inttypes.h>.
87833         * lib/xstrtol.h: Likewise.
87834         * lib/xstrtoimax.c: Likewise.
87835         * lib/xstrtoumax.c: Likewise.
87836         * lib/human.h: Likewise.
87837
87838         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87839         on systems that have <inttypes.h> but not <stdint.h>.
87840
87841 2003-01-07  Bruno Haible  <bruno@clisp.org>
87842
87843         * MODULES.html.sh: Add copyright notice.
87844         (missed_files): Omit CVS directory entries.
87845         (func_module): Make it work with sed-3.02.
87846         * MODULES.txt: Remove file.
87847
87848 2003-01-06  Jim Meyering  <jim@meyering.net>
87849
87850         * lib/version-etc.c: Update year in translatable copyright string.
87851
87852 2003-01-03  Karl Berry  <karl@gnu.org>
87853
87854         * config/config.{guess,sub}: update from prep.
87855
87856 2003-01-02  Karl Berry  <karl@gnu.org>
87857
87858         * doc/COPYING.DOC: belatedly updated to 1.2.
87859
87860 2003-01-01  Karl Berry  <karl@gnu.org>
87861
87862         * gnulib-tool (func_verify_module): report module name $module in
87863         error message, not $1.
87864         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87865         be created, only if it doesn't exist.
87866         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87867
87868 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87869
87870         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87871
87872 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87873
87874         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87875         memcmp if strcoll doesn't work.
87876
87877 2002-12-31  Bruno Haible  <bruno@clisp.org>
87878
87879         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87880         nonempty.
87881
87882 2002-12-31  Bruno Haible  <bruno@clisp.org>
87883
87884         * lib/memcoll.c (STRCOLL): New macro.
87885         (memcoll): Use it.
87886
87887 2002-12-31  Bruno Haible  <bruno@clisp.org>
87888
87889         * lib/localcharset.h: New file.
87890         * lib/localcharset.c: Include it.
87891         * lib/unicodeio.c: Likewise.
87892
87893 2002-12-31  Bruno Haible  <bruno@clisp.org>
87894
87895         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87896         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87897
87898 2002-12-31  Bruno Haible  <bruno@clisp.org>
87899
87900         * lib/getline.h: Include <stddef.h>, for size_t.
87901
87902         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87903         * lib/unicodeio.c: Don't include <stddef.h>.
87904
87905 2002-12-31  Bruno Haible  <bruno@clisp.org>
87906
87907         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87908         HAVE_TM_ZONE.
87909
87910 2002-12-24  Karl Berry  <karl@gnu.org>
87911
87912         * config/config.guess: update from prep.
87913
87914 2002-12-24  Bruno Haible  <bruno@clisp.org>
87915
87916         General infrasructure.
87917         * m4/README: Rewritten.
87918         * m4/onceonly.m4: New file.
87919         * m4/onceonly_2_57.m4: New file.
87920
87921         Module atexit.
87922         * m4/atexit.m4: New file.
87923
87924         Module strtod.
87925         * m4/strtod.m4: New file.
87926
87927         Module strtol.
87928         * m4/strtol.m4: New file.
87929
87930         Module strtoul.
87931         * m4/strtoul.m4: New file.
87932
87933         Module memchr.
87934         * m4/memchr.m4: New file.
87935
87936         Module memcmp.
87937         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87938         (jm_FUNC_MEMCMP): Invoke it.
87939
87940         Module memcpy.
87941         * m4/memcpy.m4: New file.
87942
87943         Module memmove.
87944         * m4/memmove.m4: New file.
87945
87946         Module memset.
87947         * m4/memset.m4: New file.
87948
87949         Module strcspn.
87950         * m4/strcspn.m4: New file.
87951
87952         Module strpbrk.
87953         * m4/strpbrk.m4: New file.
87954
87955         Module strstr.
87956         * m4/strstr.m4: New file.
87957
87958         Module strerror.
87959         * m4/strerror.m4: New file.
87960
87961         Module mktime.
87962         * m4/mktime.m4: Renamed from jm-mktime.m4.
87963         (gl_PREREQ_MKTIME): New macro.
87964         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87965
87966         Module malloc.
87967         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87968         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87969         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87970
87971         Module realloc.
87972         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87973         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87974         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87975
87976         Module strftime.
87977         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87978         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87979         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87980         gl_TM_GMTOFF.
87981         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87982
87983         Module xalloc.
87984         * m4/xalloc.m4: New file.
87985
87986         Module alloca.
87987         * m4/alloca.m4: New file.
87988
87989         Module putenv.
87990         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87991         (jm_FUNC_PUTENV): Invoke it.
87992
87993         Module setenv.
87994         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87995         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87996         when invoked twice.
87997         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87998         gt_FUNC_SETENV.
87999
88000         Module memrchr.
88001         * m4/memrchr.m4: New file.
88002
88003         Module stpcpy.
88004         * m4/stpcpy.m4: New file.
88005
88006         Module strcase.
88007         * m4/strcase.m4: New file.
88008
88009         Module strdup.
88010         * m4/strdup.m4: New file.
88011
88012         Module strnlen.
88013         * m4/strnlen.m4: New file.
88014
88015         Module strndup.
88016         * m4/strndup.m4: New file.
88017
88018         Module xstrtod.
88019         * m4/xstrtod.m4: New file.
88020
88021         Module xstrtol.
88022         * m4/xstrtol.m4: New file.
88023
88024         Module getdate.
88025         * m4/getdate.m4: New file.
88026
88027         Module unlocked-io.
88028         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
88029         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
88030         * m4/jm-glibc-io.m4n: Remove file.
88031
88032         Module long-options.
88033         * m4/long-options.m4: New file.
88034
88035         Module md5.
88036         * m4/md5.m4: New file.
88037
88038         Module sha.
88039         * m4/sha.m4: New file.
88040
88041         Module getstr.
88042         * m4/getstr.m4: New file.
88043
88044         Module getline.
88045         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
88046         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
88047         <sys/types.h>, for size_t. Use the function name gnu_getline, not
88048         simply getline. Infoke gl_PREREQ_GETLINE.
88049
88050         Module obstack.
88051         * m4/obstack.m4: New file.
88052
88053         Module hash.
88054         * m4/hash.m4: New file.
88055
88056         Module readtokens.
88057         * m4/readtokens.m4: New file.
88058
88059         Module strverscmp.
88060         * m4/strverscmp.m4: New file.
88061
88062         Module stdbool.
88063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
88064         OSF/1.
88065
88066         Module strtoll.
88067         * m4/strtoll.m4: New file.
88068
88069         Module strtoull.
88070         * m4/strtoull.m4: New file.
88071
88072         Module strtoimax.
88073         * m4/strtoimax.m4: New file.
88074
88075         Module strtoumax.
88076         * m4/strtoumax.m4: New file.
88077
88078         Module xstrtoimax.
88079         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
88080         jm_AC_PREREQ_XSTRTOIMAX.
88081         Moved the strtol prerequisites to strtol.m4.
88082         Moved the strtoll prerequisites to strtoll.m4.
88083         Moved the strtoimax prerequisites to strtoimax.m4.
88084
88085         Module xstrtoumax.
88086         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
88087         jm_AC_PREREQ_XSTRTOUMAX.
88088         Moved the strtoul prerequisites to strtoul.m4.
88089         Moved the strtoull prerequisites to strtoull.m4.
88090         Moved the strtoumax prerequisites to strtoumax.m4.
88091
88092         Module chown.
88093         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
88094         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
88095
88096         Module dup2.
88097         * m4/dup2.m4: New file.
88098
88099         Module ftruncate.
88100         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
88101         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
88102
88103         Module getgroups.
88104         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
88105         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
88106
88107         Module gettimeofday.
88108         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
88109         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
88110         gl_PREREQ_GETTIMEOFDAY.
88111
88112         Module mkdir.
88113         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
88114         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
88115
88116         Module mkstemp.
88117         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
88118         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
88119         jm_AC_TYPE_UINTMAX_T.
88120         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
88121
88122         Module stat.
88123         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
88124         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
88125
88126         Module lstat.
88127         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
88128         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
88129
88130         Module timespec.
88131         * m4/timespec.m4 (gl_TIMESPEC): New macro.
88132         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
88133         * m4/st_mtim.m4: Indentation.
88134
88135         Module nanosleep.
88136         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
88137         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
88138         gl_PREREQ_NANOSLEEP.
88139
88140         Module regex.
88141         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
88142         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
88143         (gl_REGEX): New macro.
88144
88145         Module rename.
88146         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
88147         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
88148
88149         Module rmdir.
88150         * m4/rmdir.m4: New file.
88151
88152         Module utime.
88153         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
88154         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
88155         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
88156
88157         Module dirname.
88158         * m4/dirname.m4: New file.
88159
88160         Module getopt.
88161         * m4/getopt.m4: New file.
88162
88163         Module unistd-safer.
88164         * m4/unistd-safer.m4: New file.
88165
88166         Module fnmatch.
88167         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
88168         declaration.
88169         (gl_PREREQ_FNMATCH_EXTRA): New macro.
88170         (gl_FUNC_FNMATCH_POSIX): New macro.
88171         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
88172         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
88173         simply fnmatch.
88174
88175         Module exclude.
88176         * m4/exclude.m4: New file.
88177
88178         Module human.
88179         * m4/human.m4: New file.
88180
88181         Module acl.
88182         * m4/acl.m4: Nop.
88183
88184         Module backupfile.
88185         * m4/backupfile.m4: New file.
88186         * m4/d-ino.m4: Indentation.
88187
88188         Module fsusage.
88189         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
88190         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
88191         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
88192
88193         Module dirfd.
88194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
88195         requirements.
88196
88197         Module euidaccess.
88198         * m4/euidaccess.m4: New file.
88199
88200         Module file-type.
88201         * m4/file-type.m4: New file.
88202
88203         Module fileblocks.
88204         * m4/fileblocks.m4: New file.
88205
88206         Module filemode.
88207         * m4/filemode.m4: New file.
88208
88209         Module isdir.
88210         * m4/isdir.m4: New file.
88211
88212         Module lchown.
88213         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
88214         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
88215
88216         Module makepath.
88217         * m4/makepath.m4: New file.
88218
88219         Module modechange.
88220         * m4/modechange.m4: New file.
88221
88222         Module mountlist.
88223         * m4/mountlist.m4: New file.
88224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
88225         Indentation.
88226
88227         Module path-concat.
88228         * m4/path-concat.m4: New file.
88229
88230         Module pathmax.
88231         * m4/pathmax.m4: New file.
88232
88233         Module same.
88234         * m4/same.m4: New file.
88235
88236         Module save-cwd.
88237         * m4/save-cwd.m4: New file.
88238
88239         Module savedir.
88240         * m4/savedir.m4: New file.
88241
88242         Module xgetcwd.
88243         * m4/xgetcwd.m4: New file.
88244         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
88245
88246         Module xreadlink.
88247         * m4/xreadlink.m4: New file.
88248
88249         Module safe-read.
88250         * m4/safe-read.m4: New file.
88251
88252         Module safe-write.
88253         * m4/safe-write.m4: New file.
88254
88255         Module closeout.
88256         * m4/closeout.m4: New file.
88257
88258         Module stdio-safer.
88259         * m4/stdio-safer.m4: New file.
88260
88261         Module getpass.
88262         * m4/getpass.m4: New file.
88263
88264         Module getugroups.
88265         * m4/getugroups.m4: New file.
88266
88267         Module group-member.
88268         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
88269         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
88270
88271         Module idcache.
88272         * m4/idcache.m4: New file.
88273
88274         Module userspec.
88275         * m4/userspec.m4: New file.
88276
88277         Module gettime.
88278         * m4/clock_time.m4: New file.
88279         * m4/gettime.m4: New file.
88280
88281         Module settime.
88282         * m4/settime.m4: New file.
88283
88284         Module posixtm.
88285         * m4/posixtm.m4: New file.
88286
88287         Module gethostname.
88288         * m4/gethostname.m4: New file.
88289
88290         Module canon-host.
88291         * m4/canon-host.m4: New file.
88292
88293         Module gettext.
88294         * m4/codeset.m4: New file, from gettext-0.11.5.
88295         * m4/gettext.m4: New file, from gettext-0.11.5.
88296         * m4/glibc21.m4: New file, from gettext-0.11.5.
88297         * m4/iconv.m4: New file, from gettext-0.11.5.
88298         * m4/intdiv0.m4: New file, from gettext-0.11.5.
88299         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
88300         * m4/inttypes.m4: New file, from gettext-0.11.5.
88301         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
88302         * m4/isc-posix.m4: New file, from gettext-0.11.5.
88303         * m4/lcmessage.m4: New file, from gettext-0.11.5.
88304         * m4/lib-ld.m4: New file, from gettext-0.11.5.
88305         * m4/lib-link.m4: New file, from gettext-0.11.5.
88306         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
88307         * m4/progtest.m4: New file, from gettext-0.11.5.
88308         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
88309         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
88310         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
88311
88312         Module localcharset.
88313         * m4/localcharset.m4: New file.
88314
88315         Module hard-locale.
88316         * m4/hard-locale.m4: New file.
88317
88318         Module mbswidth.
88319         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
88320         onceonly macros.
88321         * m4/mbrtowc.m4: Add comment.
88322
88323         Module memcasecmp.
88324         * m4/memcasecmp.m4: New file.
88325
88326         Module memcoll.
88327         * m4/memcoll.m4: New file.
88328
88329         Module unicodeio.
88330         * m4/unicodeio.m4: New file.
88331
88332         Module rpmatch.
88333         * m4/rpmatch.m4: New file.
88334
88335         Module yesno.
88336         * m4/yesno.m4: New file.
88337
88338         Module exitfail.
88339         * m4/exitfail.m4: New file.
88340
88341         Module c-stack.
88342         * m4/c-stack.m4 (gl_C_STACK): New macro.
88343         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
88344
88345         Module error.
88346         * m4/error.m4 (gl_ERROR): New macro.
88347         (jm_PREREQ_ERROR): Use onceonly macros.
88348
88349         Module fatal.
88350         * m4/fatal.m4: New file.
88351
88352         Module getloadavg.
88353         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
88354         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
88355
88356         Module getpagesize.
88357         * m4/getpagesize.m4: New file.
88358
88359         Module getusershell.
88360         * m4/getusershell.m4: New file.
88361
88362         Module physmem.
88363         * m4/physmem.m4: New file.
88364
88365         Module posixver.
88366         * m4/posixver.m4: New file.
88367
88368         Module quotearg.
88369         * m4/quotearg.m4: New file.
88370
88371         Module quote.
88372         * m4/quote.m4: New file.
88373
88374         Module readutmp.
88375         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
88376
88377         Module sig2str.
88378         * m4/sig2str.m4: New file.
88379
88380         Other.
88381         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
88382         ulonglong.m4.
88383         * m4/intmax_t.m4: New file.
88384         * m4/d-type.m4: Indentation.
88385         * m4/jm-macros.m4: Update.
88386         * m4/prereq.m4 (jm_PREREQ): Update.
88387         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
88388         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
88389         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
88390         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
88391         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
88392         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
88393         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
88394         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
88395         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
88396         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
88397         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
88398         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
88399         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
88400         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
88401         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
88402         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
88403         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
88404         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
88405         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
88406
88407 2002-12-24  Bruno Haible  <bruno@clisp.org>
88408
88409         * MODULES.txt: Update according to m4/ changes.
88410
88411         Module gettext.
88412         * config.rpath: New file, from gettext-0.11.5.
88413
88414         * modules/*: New module descriptions.
88415         * gnulib-tool: New file.
88416         * MODULES.html.sh: New file.
88417
88418 2002-12-21  Karl Berry  <karl@gnu.org>
88419
88420         * doc/fdl.texi: update to version 1.2.
88421
88422 2002-12-19  Karl Berry  <karl@gnu.org>
88423
88424         * config/config.guess: update from prep.
88425
88426 2002-12-18  Bruno Haible  <bruno@clisp.org>
88427
88428         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
88429         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
88430
88431 2002-12-17  Bruno Haible  <bruno@clisp.org>
88432
88433         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
88434         stdlib.h, string.h.
88435
88436 2002-12-17  Bruno Haible  <bruno@clisp.org>
88437
88438         * lib/canon-host.c (strdup): Remove unused declaration.
88439
88440         * lib/fsusage.c: Include full_read.h.
88441         (get_fs_usage): Use full_read instead of safe_read.
88442
88443         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
88444
88445 2002-12-12  Karl Berry  <karl@gnu.org>
88446
88447         * config/config.guess: update from prep.
88448
88449 2002-12-11  Bruno Haible  <bruno@clisp.org>
88450
88451         * m4/setenv.m4: New file, from gettext-0.11.5.
88452
88453 2002-12-11  Bruno Haible  <bruno@clisp.org>
88454
88455         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
88456         not unsetenv().
88457         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
88458         modifications:
88459
88460         2002-12-11  Bruno Haible  <bruno@clisp.org>
88461
88462                 * setenv.c (alloca): Fall back to malloc.
88463                 (freea): New macro.
88464                 (setenv): Use freea() to free memory allocated with alloca().
88465
88466         2002-11-13  Bruno Haible  <bruno@clisp.org>
88467
88468                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
88469                 function declarations.
88470                 * unsetenv.c (unsetenv): Likewise.
88471
88472         2002-03-04  Bruno Haible  <bruno@clisp.org>
88473
88474                 Portability to AIX 4.3.3.
88475                 * unsetenv.c: New file, extracted from setenv.c.
88476                 * setenv.c: Move the unsetenv() function to unsetenv.c.
88477
88478         2001-12-20  Bruno Haible  <bruno@clisp.org>
88479
88480                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
88481                 use malloc instead. For SunOS 4.
88482
88483         2001-12-11  Bruno Haible  <bruno@clisp.org>
88484
88485                 * setenv.c: Declare alloca.
88486                 (compar_fn_t): New typedef.
88487                 (KNOWN_VALUE, STORE_VALUE): Use it.
88488
88489         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
88490         setenv.h.
88491
88492 2002-12-10  Paul Eggert  <eggert@twinsun.com>
88493
88494         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
88495         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
88496         Choose values that are less likely to collide with system fnmatch
88497         options.
88498         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
88499         defined (e.g., a pure POSIX system).
88500         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
88501         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
88502
88503 2002-12-06  Paul Eggert  <eggert@twinsun.com>
88504
88505         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
88506         a pain in practice to deal with generated m4 files.  This change
88507         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
88508
88509         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
88510         and jm-glibc-io.m4, as they are no longer a special case.
88511         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
88512         kludge and the auto-generation stuff.  Check only whether the
88513         functions are declared, not whether they exist, since older hosts
88514         that don't declare the functions can't use the optimization anyway.
88515
88516 2002-12-06  Jim Meyering  <jim@meyering.net>
88517
88518         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
88519
88520         Merge in changes from libc's misc/error.c, in preparation
88521         for the merge of gnulib's changes back into libc.
88522
88523         * lib/error.c (_): Define only if not already defined.
88524         Move definition to follow all #include directives.
88525         Include unlocked-io.h only if !_LIBC.
88526         [_LIBC]: Include <libio/libioP.h>.
88527         [USE_IN_LIBIO]: Include <libio/iolibio.h>
88528         (fflush): Tweak definition to use INTUSE.
88529         (putc): Define.
88530
88531 2002-12-05  Paul Eggert  <eggert@twinsun.com>
88532
88533         * lib/alloca.c [defined emacs]: Include "lisp.h".
88534         (xalloc_die) [defined emacs]: New macro.
88535         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
88536         [! defined emacs]: Include <xalloc.h>.
88537         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
88538         (pointer): Typedef to POINTER_TYPE *.
88539         (malloc): Remove decl; we now always use xmalloc.
88540         (alloca): Use old-style definition, since Emacs needs this.
88541         Check for arithmetic overflow when computing combined size.
88542
88543 2002-12-04  Paul Eggert  <eggert@twinsun.com>
88544
88545         Do not generate unlocked-io.h automatically, since it's easier to
88546         maintain it by hand.
88547
88548         * lib/unlocked-io.h: New file, from GNU diffutils,
88549         but with proper copyright notice and attribution.
88550         * lib/gen-uio: Remove.
88551         * lib/Makefile.am: Add copyright notice.
88552         (libfetish_a_SOURCES): Add unlocked-io.h.
88553         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
88554         (DISTCLEANFILES, io_functions): Remove macros.
88555         (EXTRA_DIST): Remove gen_uio.
88556         (unlocked-io.h): Remove rule.
88557
88558 2002-12-04  Jim Meyering  <jim@meyering.net>
88559
88560         Reflect the fact that stat.c and lstat.c are no longer generated.
88561         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
88562         (DISTCLEANFILES): Likewise.
88563         (EXTRA_DIST): Likewise.
88564         (all_local): Don't depend on stat.c or lstat.c.
88565         (stat.c, lstat.c): Remove rules.
88566         (EXTRA_DIST): Remove xstat.in.
88567
88568         * lib/xstat.in: Remove file.  Contents moved into stat.c.
88569         * lib/stat.c: New file.  Contents mostly from xstat.in.
88570         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
88571         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
88572
88573         * lib/safe-read.c: Rework so that it may serve to define safe_write,
88574         too.
88575         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
88576
88577 2002-12-03  Jim Meyering  <jim@meyering.net>
88578
88579         * lib/safe-read.c, safe-write.c: Change variable names and comments,
88580         but not semantics, to minimize the differences between these two files.
88581         (safe_read): Change comment to mention SAFE_READ_ERROR.
88582
88583         * lib/safe-read.c (IS_EINTR): Define.
88584         (safe_read): Use IS_EINTR in place of in-function cpp directives.
88585
88586 2002-12-02  Jim Meyering  <jim@meyering.net>
88587
88588         * lib/safe-read.c (EINTR): Define.
88589         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88590         (INT_MAX): Provide fallback.
88591         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
88592
88593         * lib/safe-read.h (SAFE_READ_ERROR): Define.
88594
88595 2002-12-02  Bruno Haible  <bruno@clisp.org>
88596
88597         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
88598         Define, taken from safe-read.c.
88599         (INT_MAX): Provide fallback.
88600         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
88601         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
88602
88603         * lib/safe-read.c (EINTR): Remove definition.
88604         (safe_read): Don't use EINTR if it is absent.
88605
88606 2002-12-01  Jim Meyering  <jim@meyering.net>
88607
88608         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
88609         zero.
88610         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
88611
88612 2002-11-27  Paul Eggert  <eggert@twinsun.com>
88613
88614         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
88615         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
88616         with `if (! (value < limit)) abort ();', for readability.
88617
88618 2002-11-26  Karl Berry  <karl@gnu.org>
88619
88620         * lib/strdup.c: copy from libc again, with jim's ok.
88621         * lib/.cppi-disable: re-add strdup.c
88622
88623 2002-11-25  Karl Berry  <karl@gnu.org>
88624
88625         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
88626         instead of "strtol.c".
88627
88628 2002-11-25  Karl Berry  <karl@gnu.org>
88629
88630         * config/install-sh: update from automake for variable quoting, $0 in
88631         error msgs, etc.
88632
88633         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
88634         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
88635         entry.
88636
88637 2002-11-25  Jim Meyering  <jim@meyering.net>
88638
88639         * lib/mktime.c: Sync from libc, now that it has the latest fix.
88640
88641 2002-11-24  Karl Berry  <karl@gnu.org>
88642
88643         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
88644         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
88645
88646 2002-11-24  Jim Meyering  <jim@meyering.net>
88647
88648         Update from coreutils:
88649
88650         * lib/mktime.c: Merge in changes from libc.
88651
88652         Avoid a link-time failure on some Linux systems.
88653         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
88654         (otherwise).
88655         (__mon_yday): Declare with the STATIC attribute.
88656         (__mktime_internal): Likewise.
88657         Based on a report from Greg Schafer.
88658
88659 2002-11-23  Jim Meyering  <jim@meyering.net>
88660
88661         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
88662         Use `unsigned', not `int', as type of index.
88663
88664         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
88665
88666         * lib/fsusage.c: Remove unneeded parentheses around operands of
88667         `defined'.
88668
88669 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88670
88671         * lib/quotearg.h: Allow multiple inclusion by surrounding with
88672         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
88673         so that we can be included first.
88674         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
88675         * lib/quotearg.c: Include quotearg.h immediately after config.h.
88676         No need to include stddef.h or sys/types.h any more.
88677         Surround local include files with "", not "<>".
88678         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
88679         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
88680         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
88681         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
88682         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
88683         (ISPRINT): Remove; no longer needed now that we assume C89.
88684
88685         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
88686         Preserve errno.
88687
88688         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
88689         quotearg_char): Use SIZE_MAX rather than
88690         (size_t) -1 when we are talking about "infinity".
88691
88692         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
88693
88694 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88695
88696         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
88697         hint that one should use `if (! x) abort ();' rather than `assert
88698         (x);', and anyway it's one less thing to worry about configuring.
88699         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
88700         hash_rehash, hash_insert): Use abort rather than assert.
88701
88702 2002-11-22  Bruno Haible  <bruno@clisp.org>
88703
88704         * lib/safe-read.h: Assume C89. Add comments.
88705         (safe_read): Change return type to size_t.
88706         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
88707         byte counts > SSIZE_MAX correctly.
88708         * lib/safe-write.h: New file.
88709         * lib/safe-write.c: New file.
88710         * lib/full-read.h: New file.
88711         * lib/full-read.c: New file.
88712         * lib/full-write.h: Assume C89. Add comments.
88713         * lib/full-write.c: Include safe-write.h.
88714         (full_write): Rewritten to use safe_write.
88715         Suggested by Jim Meyering and Paul Eggert.
88716
88717 2002-11-21  Jim Meyering  <jim@meyering.net>
88718
88719         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
88720
88721         Merge in changes from the coreutils.
88722
88723         2002-09-25  Paul Eggert  <eggert@twinsun.com>
88724         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
88725         <stdint.h>.
88726         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
88727         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
88728         int.  Work more efficiently if X is the same width as uintmax_t.
88729         Do not compare X to -1, to avoid bogus compiler warning.
88730         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
88731         Don't assume that f_frsize and f_bsize are the same type.
88732
88733         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
88734         warning on FreeBSD.
88735
88736         * lib/makepath.c (make_path): Restore umask *before* creating the final
88737         component.
88738         (make_path): Minor reformatting.
88739
88740         * lib/xmalloc.c: Adjust to work with new autoconf macros,
88741         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
88742         HAVE_MALLOC/HAVE_REALLOC.
88743
88744         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
88745         dummy ones.  At least on GNU/Linux systems, `auto' means something
88746         else.
88747         From Michael Stone.
88748
88749 2002-11-21  Bruno Haible  <bruno@clisp.org>
88750
88751         Remove case insensitive option matching.
88752         * lib/argmatch.h (argcasematch): Remove declaration.
88753         (ARGCASEMATCH): Remove macro.
88754         (__xargmatch_internal): Remove case_sensitive argument.
88755         (XARGMATCH): Update.
88756         (XARGCASEMATCH): Remove macro.
88757         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
88758         case_sensitive argument.
88759         (argcasematch): Remove function.
88760         (__xargmatch_internal): Remove case_sensitive argument.
88761         (main): Use XARGMATCH instead of XARGCASEMATCH.
88762
88763         * lib/xmalloc.c: Change compile-time error message. Add comment about
88764         required autoconf version.
88765
88766 2002-11-20  Paul Eggert  <eggert@twinsun.com>
88767
88768         Merge argmatch cleanups from Bison.  Assume C89.
88769
88770         * lib/argmatch.c: Include config.h here, not in argmatch.h.
88771         Include stdlib.h, for EXIT_FAILURE.
88772         Always include <string.h>, since we assume C89.
88773         (EXIT_FAILURE): Remove pre-C89 bug workaround.
88774         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
88775         Include <stddef.h> instead, since it's all we need for size_t.
88776         (PARAMS): Remove.  All uses removed.
88777         (ARRAY_CARDINALITY): Do not bother to #undef.
88778         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
88779         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88780         Remove unnecessary parentheses.
88781         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88782         Insert necessary parentheses.
88783         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
88784         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
88785
88786 2002-11-19  Bruno Haible  <bruno@clisp.org>
88787
88788         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
88789         * lib/mbswidth.h: Include <stddef.h>, for size_t.
88790
88791         * lib/mbswidth.h (PARAMS): Remove macro.
88792         (mbswidth, mbsnwidth): Use ANSI C function declarations.
88793         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
88794
88795         * lib/gcd.h (PARAMS): Remove macro.
88796         (gcd): Use ANSI C function declarations.
88797         * lib/gcd.c (gcd): Likewise.
88798
88799 2002-11-15  Bruno Haible  <bruno@clisp.org>
88800
88801         * lib/strcspn.c: Include <stddef.h>.
88802         (strcspn): Use ANSI C function declaration. Change return type to
88803         size_t. Use NULL.
88804         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
88805         (strpbrk): Use NULL.
88806         * lib/strpbrk.h (PARAMS): Remove macro.
88807         (strpbrk): Use ANSI C function declaration.
88808         * lib/strstr.c: Don't include <sys/types.h>.
88809         * lib/strstr.h (PARAMS): Remove macro.
88810         (strstr): Use ANSI C function declarations.
88811
88812 2002-11-14  Karl Berry  <karl@gnu.org>
88813
88814         * config/mkinstalldirs: `do' on separate line, instead of
88815         `for var; do'.
88816
88817 2002-11-06  Bruno Haible  <bruno@clisp.org>
88818
88819         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88820         * lib/gcd.c (gcd): Likewise.
88821
88822 2002-11-05  Bruno Haible  <bruno@clisp.org>
88823
88824         * lib/gcd.h: New file, from gettext-0.11.5.
88825         * lib/gcd.c: New file, from gettext-0.11.5.
88826
88827 2002-11-05  Bruno Haible  <bruno@clisp.org>
88828
88829         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88830         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88831         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88832         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88833
88834         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88835         <libintl.h>.
88836         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88837         <libintl.h>.
88838
88839         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88840         * lib/human.c: Include gettext.h instead of <libintl.h>.
88841         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88842         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88843         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88844         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88845         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88846         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88847         (textdomain): Remove definition.
88848         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88849
88850         * lib/long-options.c: Remove include of <libintl.h> and definition of
88851         _.
88852         * lib/same.c: Remove include of <libintl.h> and definition of _.
88853
88854 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88855
88856         * lib/config.charset: A few additions for Solaris.
88857
88858 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88859
88860         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88861         * lib/localcharset.c (locale_charset): Declare as extern "C".
88862
88863 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88864
88865         * lib/config.charset: msdos in uk_UA uses CP1125.
88866
88867 2002-11-04  Bruno Haible  <bruno@clisp.org>
88868
88869         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88870         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88871         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88872         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88873         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88874
88875 2002-11-04  Bruno Haible  <bruno@clisp.org>
88876
88877         * lib/localcharset.c (locale_charset): Don't return an empty string.
88878
88879 2002-11-04  Bruno Haible  <bruno@clisp.org>
88880
88881         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88882         aliases.
88883
88884 2002-11-04  Bruno Haible  <bruno@clisp.org>
88885
88886         * lib/config.charset: Update for newest glibc. Add canonical names
88887         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88888
88889 2002-11-04  Bruno Haible  <bruno@clisp.org>
88890
88891         * lib/config.charset: Add support for NetBSD.
88892
88893 2002-11-04  Bruno Haible  <bruno@clisp.org>
88894
88895         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88896
88897 2002-11-01  Bruno Haible  <bruno@clisp.org>
88898
88899         * configure.in: Add AC_CONFIG_AUX_DIR call.
88900         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88901         test/Makefile.
88902         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88903
88904 2002-09-28  Karl Berry  <karl@gnu.org>
88905
88906         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88907         installed automake until the next release, since changes have been
88908         made.
88909
88910 2002-09-25  Karl Berry  <karl@gnu.org>
88911
88912         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88913         * lib/getopt*: copy from libc/posix.
88914         * lib/gettext.h: copy from gettext.
88915         * lib/.cppi-disable: add strdup.c, gettext.h.
88916
88917 2002-09-25  Karl Berry  <karl@gnu.org>
88918
88919         * config/srclist.txt: enable gettext.h check.
88920         * config/config.{guess,sub}: update from prep.
88921         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88922                 from automake 1.6.3.
88923         See srclist*.
88924
88925 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88926
88927         * regex.c (PATFETCH): Remove the translating fetch.
88928         (PATFETCH_RAW): Rename to PATFETCH.
88929         (set_image_of_range): New fun.
88930         (SET_RANGE_TABLE_WORK_AREA): Use it.
88931         (regex_compile): Don't translate the pattern chars so eagerly.
88932         Only do it when inserting an `exactn' bytecode or when handling
88933         a char-range.
88934         (mutually_exclusive_p): Avoid empty statement.
88935
88936 2002-07-06  Jim Meyering  <meyering@lucent.com>
88937
88938         * m4/README: Don't mention Makefile.am.in.
88939         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88940
88941 2002-07-01  Jim Meyering  <meyering@lucent.com>
88942
88943         * lib/c-stack.c: Include sys/time.h.
88944         From Volker Borchert.
88945
88946 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88947
88948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88949
88950 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88951
88952         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88953         New macro.  Use it uniformly instead of
88954         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88955         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88956         reported by Vin Shelton.
88957
88958 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88959
88960         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88961         Do not assume SA_SIGINFO behavior.
88962         Bug reported by Jim Meyering on NetBSD 1.5.2.
88963
88964 2002-06-22  Jim Meyering  <meyering@lucent.com>
88965
88966         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88968
88969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88970         now that configure.ac uses AC_GNU_SOURCE.
88971         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88972         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88973
88974         Update to latest tools.  Suggestions from Paul Eggert.
88975         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88976         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88977         * m4/fnmatch.m4: Likewise.
88978         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88979         to AC_HEADER_STDBOOL
88980
88981 2002-06-22  Jim Meyering  <meyering@lucent.com>
88982
88983         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88984         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88985
88986 2002-06-22  Jim Meyering  <meyering@lucent.com>
88987
88988         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88989
88990         * lib/exitfail.c, exitfail.h: Likewise.
88991         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88992
88993         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88994         of fnmatch.h.
88995         (EXTRA_DIST): Add fnmatch_loop.c.
88996         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88997
88998         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88999         * lib/fnmatch.c: Update from diffutils-2.8.2.
89000         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
89001         * lib/fnmatch.h: Remove file.
89002
89003 2002-06-21  Jim Meyering  <meyering@lucent.com>
89004
89005         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
89006         * m4/mbrtowc.m4: Likewise.
89007
89008         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
89009         * m4/mbswidth.m4: Reflect name change:
89010         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
89011         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89012
89013         * m4/lib-link.m4: Update from gettext-0.11.2.
89014         * m4/gettext.m4: Likewise.
89015
89016         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
89017         From Alfred M. Szmidt.
89018
89019 2002-06-18  Paul Eggert  <eggert@twinsun.com>
89020
89021         * lib/file-type.h: Report an error if neither S_ISREG nor
89022         S_IFREG is defined, instead of using a test specific to glibc
89023         2.2.  This should be safe, since POSIX requires S_ISREG and
89024         Unix Version 7 had S_IFREG.  We don't need to check for
89025         <sys/types.h> since we don't use any symbols that it defines.
89026
89027 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
89028
89029         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
89030         $@-t, so that each temporary file name is unique and valid in the first
89031         8 characters, for operation under DOS.
89032
89033 2002-06-15  Paul Eggert  <eggert@twinsun.com>
89034
89035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
89036
89037 2002-06-15  Jim Meyering  <meyering@lucent.com>
89038
89039         Work even with DJGPP 2.03, which lacks support for symlinks.
89040         From Richard Dawe.
89041         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
89042         is defined.
89043         * lib/lchown.c (S_ISLNK): Likewise.
89044
89045 2002-06-15  Jim Meyering  <meyering@lucent.com>
89046
89047         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
89048         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
89049         have been included before this file.
89050
89051 2002-06-14  Jim Meyering  <meyering@lucent.com>
89052
89053         * lib/file-type.h: Use the version from diffutils-2.8.2.
89054         * lib/file-type.c: Likewise.
89055
89056 2002-06-07  Jim Meyering  <meyering@lucent.com>
89057
89058         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
89059         They're needed at least for NetBSD 1.5.2.
89060         ($statxfs_includes): Include those same headers.
89061         ($statxfs_includes): Include sys/vfs.h if available.
89062         ($statxfs_includes): Likewise for sys/statvfs.h.
89063         Check for the following members in both structs statfs and statvfs:
89064         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
89065
89066 2002-06-01  Jim Meyering  <meyering@lucent.com>
89067
89068         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
89069         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
89070
89071 2002-05-28  Jim Meyering  <meyering@lucent.com>
89072
89073         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
89074         Reported by Volker Borchert.
89075
89076 2002-05-27  Jim Meyering  <meyering@lucent.com>
89077
89078         Fix a problem seen only on nonconforming systems whereby ls.c's
89079         use of localtime, and then of gettimeofday would cause trouble:
89080         the localtime call used to initialize rpl_gettimeofday's save
89081         mechanism would clobber ls's current local time information so
89082         that in any long listing the first file would always be listed
89083         with date 1970-01-01.  Analysis by Volker Borchert.
89084
89085         * lib/gettimeofday.c (localtime): Undefine.
89086         (rpl_localtime): New function.
89087
89088 2002-05-27  Jim Meyering  <meyering@lucent.com>
89089
89090         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
89091         localtime.
89092
89093         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
89094         use the replacement function; it wouldn't resolve at link time.
89095         Reported by Volker Borchert.
89096
89097 2002-05-22  Jim Meyering  <meyering@lucent.com>
89098
89099         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
89100         file-type.h.
89101         * lib/file-type.h: New file.
89102         * lib/file-type.c (file_type): New file/function.  Extracted from
89103         diffutils.
89104
89105 2002-04-30  Jim Meyering  <meyering@lucent.com>
89106
89107         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
89108
89109 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89110
89111         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
89112
89113 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89114
89115         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
89116         Do not check for alloca.h (no longer used) or stdbool.h (was never
89117         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
89118
89119 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89120
89121         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
89122
89123 2002-04-29  Jim Meyering  <meyering@lucent.com>
89124
89125         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
89126         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
89127         Use AC_FUNC_STRNLEN here instead.
89128
89129         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
89130         With autoconf-2.53a, it's part of AC_PROG_CC.
89131
89132 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89133
89134         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
89135         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
89136
89137 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89138
89139         * lib/sig2str.h, lib/sig2str.c: New files.
89140         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
89141
89142 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89143
89144         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
89145         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
89146         of 127, since 64 is the largest conceivable number for ancient
89147         nonstandard hosts.
89148         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
89149
89150 2002-04-28  Jim Meyering  <meyering@lucent.com>
89151
89152         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
89153
89154 2002-04-24  Jim Meyering  <meyering@lucent.com>
89155
89156         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
89157         (jm_PREREQ): Use it.
89158
89159         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
89160         mach/mach.h fcntl.h.
89161         Check for this function: setlocale.
89162
89163 2002-04-24  Jim Meyering  <meyering@lucent.com>
89164
89165         * lib/gettext.h: New file, from Gettext.
89166         * lib/Makefile.am (INCLUDES): Remove -I../intl.
89167         (libfetish_a_SOURCES): Add gettext.h.
89168
89169 2002-04-16  Jim Meyering  <meyering@lucent.com>
89170
89171         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
89172         ut_pid, ut_id, ut_exit.
89173
89174 2002-04-16  Jim Meyering  <meyering@lucent.com>
89175
89176         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
89177         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
89178         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
89179
89180 2002-04-12  Jim Meyering  <meyering@lucent.com>
89181
89182         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
89183         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
89184         existence of the getmntinfo function.  Needed for Darwin 5.3.
89185
89186         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
89187         This is necessary at least on Darwin 5.3.
89188
89189         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
89190         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
89191         strnlen.o in the library, and that makes some versions of ranlib
89192         object.
89193
89194 2002-04-12  Jim Meyering  <meyering@lucent.com>
89195
89196         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
89197
89198 2002-04-09  Jim Meyering  <meyering@lucent.com>
89199
89200         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
89201         to be more precise.  Rather than saying we're checking whether the
89202         function `works', say what we're testing.
89203         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
89204         Reported by Bruno Haible.
89205
89206 2002-03-10  Jim Meyering  <meyering@lucent.com>
89207
89208         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
89209         Suggestion from Santiago Vila.
89210
89211 2002-03-08  Jim Meyering  <meyering@lucent.com>
89212
89213         * lib/rename.c: Mention that this wrapper is needed also on
89214         mips-dec-ultrix4.4 systems.
89215
89216 2002-03-02  Jim Meyering  <meyering@lucent.com>
89217
89218         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
89219         not HAVE_CLOCK_SETTIME.
89220
89221 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89222
89223         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
89224         Check for clock_settime.
89225
89226 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89227
89228         * lib/nanosleep.h: Rename to....
89229         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
89230
89231         * lib/gettime.c: New file.
89232         * lib/settime.c: New file.
89233         * lib/stime.c: Remove.
89234
89235         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
89236         timespec.h.  Remove nanosleep.h.
89237
89238 2002-02-25  Paul Eggert  <eggert@twinsun.com>
89239
89240         * m4/acl.m4: New file.
89241         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
89242         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
89243
89244 2002-02-25  Paul Eggert  <eggert@twinsun.com>
89245
89246         * lib/acl.c, lib/acl.h: New files.
89247         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
89248
89249 2002-02-24  Jim Meyering  <meyering@lucent.com>
89250
89251         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
89252         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
89253         cause trouble.  Reported by Nelson Beebe.
89254
89255 2002-02-23  Paul Eggert  <eggert@twinsun.com>
89256
89257         * lib/path-concat.c (xpath_concat): Reorder code to pacify
89258         compilers that don't know that xalloc_die never returns.
89259
89260 2002-02-20  Jim Meyering  <meyering@lucent.com>
89261
89262         * lib/getdate.c: Regenerate using bison-1.33.
89263
89264 2002-02-17  Jim Meyering  <meyering@lucent.com>
89265
89266         * config/config.guess (main): Don't use `head -1'; it's no longer
89267         portable. Use `sed 1q' instead.
89268
89269 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
89270
89271         * m4/codeset.m4: Upgrade to gettext-0.11.
89272         * m4/gettext.m4: Upgrade to gettext-0.11.
89273         * m4/glibc21.m4: Upgrade to gettext-0.11.
89274         * m4/iconv.m4: Upgrade to gettext-0.11.
89275         * m4/isc-posix.m4: Upgrade to gettext-0.11.
89276         * m4/lcmessage.m4: Upgrade to gettext-0.11.
89277         * m4/lib-ld.m4: New file, from gettext-0.11.
89278         * m4/lib-link.m4: New file, from gettext-0.11.
89279         * m4/lib-prefix.m4: New file, from gettext-0.11.
89280         * m4/progtest.m4: Upgrade to gettext-0.11.
89281
89282 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89283
89284         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
89285         (jm_PREREQ): Use it.
89286
89287 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89288
89289         * lib/posixver.c, lib/posixver.h: New files.
89290         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89291
89292 2002-02-02  Paul Eggert  <eggert@twinsun.com>
89293             Bruno Haible  <bruno@clisp.org>
89294
89295         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
89296         (fwrite_success_callback): New declaration.
89297         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
89298         print_unicode_char. Call failure callback instead of error.
89299         (fwrite_success_callback): New function.
89300         (exit_failure_callback): New function.
89301         (fallback_failure_callback): New function.
89302         (print_unicode_char): Call unicode_to_mb.
89303
89304 2002-01-26  Jim Meyering  <meyering@lucent.com>
89305
89306         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
89307         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
89308
89309 2002-01-26  Jim Meyering  <meyering@lucent.com>
89310
89311         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
89312
89313 2002-01-22  Paul Eggert  <eggert@twinsun.com>
89314
89315         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
89316
89317 2002-01-22  Jim Meyering  <meyering@lucent.com>
89318
89319         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
89320         Otherwise, some versions of automake would omit the rule that makes
89321         Makefile from Makefile.in.
89322
89323 2002-01-21  Paul Eggert  <eggert@twinsun.com>
89324
89325         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
89326         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89327         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
89328         (memcoll): Set errno to zero if there is no error.
89329
89330         * lib/quotearg.c (quotearg_buffer_restyled):
89331         Fix bug with quoting buffers containing NUL when backslashing escapes.
89332         This bug was exposed by the other changes in this patch.
89333         (quotearg_n_options): New arg ARGSIZE.
89334         All callers changed.
89335         (quoting_options_from_style): New function.
89336         (quotearg_n_style): Use it.
89337         (quotearg_n_style_mem): New function.
89338
89339         * lib/quotearg.h (quotearg_n_style_mem): New function.
89340
89341 2002-01-19  Jim Meyering  <meyering@lucent.com>
89342
89343         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
89344         Remove useless quotes: DF_PROG="df".
89345         * m4/strnlen.m4: New file.
89346
89347 2002-01-16  Paul Eggert  <eggert@twinsun.com>
89348
89349         * lib/backupfile.c (ISDIGIT): Comment fix.
89350         * lib/getdate.y (ISDIGIT): Likewise.
89351         * lib/posixtm.c (ISDIGIT, year): Likewise.
89352         * lib/strverscmp.c (ISDIGIT): Likewise.
89353         * lib/userspec.c (ISDIGIT): Likewise.
89354
89355 2002-01-16  Jim Meyering  <meyering@lucent.com>
89356
89357         * lib/getdate.y: Add three semicolons, each just before a closing
89358         brace. Bison (as of version 1.31) no longer papers over that mistake.
89359
89360 2002-01-05  Jim Meyering  <meyering@lucent.com>
89361
89362         * lib/version-etc.c (version_etc_copyright): Update copyright year.
89363
89364 2001-12-19  Paul Eggert  <eggert@twinsun.com>
89365
89366         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
89367         not silently exit merely because the output buffer happens to
89368         have nothing pending.
89369
89370 2001-12-18  Paul Eggert  <eggert@twinsun.com>
89371
89372         See the big note in ../ChangeLog.
89373         * lib/human.c (suffixes): Prefer K to k for 1024.
89374         (generate_suffix_backwards): New function.
89375         (human_readable_inexact): Use it.
89376         * lib/xstrtol.c (__xstrtol): If there is no number but there
89377         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
89378         Accept 'K' as well as 'k'.
89379
89380 2001-12-15  Jim Meyering  <meyering@lucent.com>
89381
89382         * lib/regex.h (__restrict_arr): Update from libc.
89383
89384         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
89385         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
89386         (STREQ): Define.
89387
89388 2001-12-14  Jim Meyering  <meyering@lucent.com>
89389
89390         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
89391         Suggestion from Bruno Haible.
89392
89393 2001-12-10  Jim Meyering  <meyering@lucent.com>
89394
89395         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
89396         xrealloc, Instead, include "xalloc.h".
89397         (initbuffer): Don't cast xmalloc return value to char*.
89398         (readline): Reword comment.
89399         Don't cast xrealloc return value to char*
89400         Return NULL, not 0.
89401
89402 2001-12-09  Jim Meyering  <meyering@lucent.com>
89403
89404         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
89405         about `signed and unsigned type in conditional expression'.
89406         * lib/posixtm.c (posix_time_parse): Likewise.
89407
89408         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
89409
89410         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
89411         to avoid a pedantic warning.
89412
89413         * lib/getstr.c: Don't include assert.h.
89414         (getstr): Remove warning-evoking assertions.
89415         Return -1 if offset parameter is out of bounds.
89416         Change the type of a local from int to size_t.
89417
89418         * lib/strftime.c (my_strftime_localtime_r): Include this function
89419         definition in the `#if ! HAVE_TM_GMTOFF' block.
89420
89421         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
89422         Include xalloc.h instead.
89423
89424 2001-12-02  Jim Meyering  <meyering@lucent.com>
89425
89426         * lib/tempname.c: Don't declare getenv, thus reverting the change of
89427         2001-11-18.  It's no longer necessary, now that stdlib.h is always
89428         included.
89429
89430         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
89431         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
89432
89433 2001-11-30  Akim Demaille  <akim@epita.fr>
89434
89435         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
89436         before being defined.
89437
89438 2001-11-27  Paul Eggert  <eggert@twinsun.com>
89439
89440         * lib/quotearg.h (quotearg_n, quotearg_n_style):
89441         First arg is int, not unsigned.
89442         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
89443         (SIZE_MAX, UINT_MAX): New macros.
89444         (quotearg_n_options): Abort if N is negative.
89445         Avoid overflow check on hosts where size_t is 64 bits and int
89446         is 32 bits, as overflow is impossible there.
89447         Fix off-by-one typo that caused unnecessary reallocation.
89448
89449 2001-11-27  Jim Meyering  <meyering@lucent.com>
89450
89451         * lib/tempname.c: Merge with version from libc.
89452         * lib/regex.c: Likewise.
89453
89454         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
89455         systems for which STDC_HEADERS is 0, it was not included, resulting in
89456         a warning about an integer-to-pointer conversion problem with getenv.
89457         Reported by Volker Borchert.
89458
89459 2001-11-26  Jim Meyering  <meyering@lucent.com>
89460
89461         * lib/gtod.h: Remove file.
89462         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
89463         * lib/gettimeofday.c: Don't include gtod.h.
89464         (GTOD_init): Remove function.
89465         (rpl_gettimeofday): Do its job here instead, rather than aborting.
89466         Suggestion from Volker Borchert.
89467
89468 2001-11-23  Jim Meyering  <meyering@lucent.com>
89469
89470         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
89471         it.
89472         * lib/hash.c (struct hash_table): Define it here instead.
89473
89474 2001-11-22  Jim Meyering  <meyering@lucent.com>
89475
89476         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
89477
89478 2001-11-20  Jim Meyering  <meyering@lucent.com>
89479
89480         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
89481         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
89482
89483 2001-11-19  Jim Meyering  <meyering@lucent.com>
89484
89485         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
89486         directory.  Use "conftestXXXXXX" as the template.
89487         Suggestion from Paul Eggert.
89488
89489         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
89490         immediately, so the test doesn't mistakenly hit the max-open-files
89491         limit.
89492
89493 2001-11-18  Paul Eggert  <eggert@twinsun.com>
89494
89495         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
89496         (TEMPORARIES): New macro.
89497         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
89498         removes an artificial limitation (e.g. HP-UX 10.20, where
89499         TMP_MAX is 17576).
89500
89501 2001-11-18  Jim Meyering  <meyering@lucent.com>
89502
89503         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
89504
89505 2001-11-18  Jim Meyering  <meyering@lucent.com>
89506
89507         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
89508         on SunOS 4.
89509
89510         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
89511         files will be created before anything else.
89512
89513 2001-11-17  Paul Eggert  <eggert@twinsun.com>
89514
89515         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
89516         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
89517
89518 2001-11-17  Jim Meyering  <meyering@lucent.com>
89519
89520         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
89521         Prompted by a report from Bob Proulx.
89522
89523         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
89524         Instead, require UTILS_FUNC_MKSTEMP.
89525
89526 2001-11-17  Jim Meyering  <meyering@lucent.com>
89527
89528         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
89529         Now, that's done as part of AC_FUNC_STRTOD.
89530
89531 2001-11-17  Jim Meyering  <meyering@lucent.com>
89532
89533         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
89534         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
89535         rather than group writable.  Patch by Juan F. Codagnone.
89536
89537         * lib/readtokens.c: Remove explicit declarations of xmalloc and
89538         xrealloc, Instead, include "xalloc.h".
89539
89540         * lib/mountlist.c: Include unlocked-io.h after all system headers.
89541         Remove explicit declarations of xmalloc, xrealloc,
89542         and xstrdup.  Instead, include "xalloc.h".
89543
89544         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
89545         unlocked-io.h.
89546         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
89547         Likewise.
89548         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
89549
89550         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
89551         Reported by Padraig Brady.
89552
89553         * lib/mkstemp.c: #undef mkstemp.
89554         Include config.h.
89555         (rpl_mkstemp): Rename from mkstemp.
89556         Protoize.
89557
89558 2001-11-16  Jim Meyering  <meyering@lucent.com>
89559
89560         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
89561         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
89562         determine the amount of total physical memory, use pstat_getstatic.
89563         HPUX-11 doesn't define _SC_PHYS_PAGES.
89564         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
89565         If sysconf couldn't be used to determine the amount of available
89566         physical memory, use both pstat_getstatic and pstat_getdynamic.
89567         Based on a patch from Bob Proulx.
89568
89569 2001-11-10  Jim Meyering  <meyering@lucent.com>
89570
89571         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
89572         (jm_PREREQ): Use it.
89573
89574 2001-11-09  Jim Meyering  <meyering@lucent.com>
89575
89576         * m4/jm-macros.m4: Require autoconf-2.52f.
89577         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
89578         Use these AC_-prefixed names, not the AM_-prefixed ones.
89579
89580         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
89581
89582 2001-11-05  Jim Meyering  <meyering@lucent.com>
89583
89584         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
89585
89586 2001-11-04  Jim Meyering  <meyering@lucent.com>
89587
89588         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
89589         $DEFS.
89590
89591 2001-11-03  Jim Meyering  <meyering@lucent.com>
89592
89593         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
89594         of AC_DEFUN.
89595
89596         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
89597         know the name of the variable in the macro definition.
89598
89599 2001-11-03  Jim Meyering  <meyering@lucent.com>
89600
89601         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
89602         in argmatch_to_argument call.
89603
89604         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
89605         argument.
89606
89607         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
89608         e.g., a fault due to an attempt to free a NULL pointer.
89609
89610 2001-11-01  Jim Meyering  <meyering@lucent.com>
89611
89612         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
89613         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
89614
89615 2001-11-01  Jim Meyering  <meyering@lucent.com>
89616
89617         * lib/dirfd.c, lib/dirfd.h: New files.
89618         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
89619
89620         * lib/hash.c (hash_print) [TESTING]: Clean up.
89621
89622 2001-10-22  Paul Eggert  <eggert@twinsun.com>
89623
89624         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
89625         to avoid a warning if -Wall.
89626
89627 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
89628
89629         * README: New file
89630         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
89631         (per RMS's instructions, this is now the canonical source)
89632         * lgpl/, gpl/: New directories.
89633
89634 2001-10-21  Paul Eggert  <eggert@twinsun.com>
89635
89636         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
89637
89638 2001-10-21  Jim Meyering  <meyering@lucent.com>
89639
89640         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
89641         this code would end up calling gettext even in packages built
89642         with --disable-nls.
89643         * lib/getopt.c (_): Likewise.
89644         * lib/regex.c (_): Likewise.
89645
89646 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89647
89648         * m4/error.m4 (jm_PREREQ_ERROR):
89649         Do not invoke AC_CHECK_FUNCS with strerror_r, as
89650         AC_FUNC_STRERROR_R does that.
89651         Check for strerror declaration.
89652
89653         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
89654         are supposed to have them these days.
89655         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
89656         Merge changes from latest Autoconf CVS.
89657         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
89658         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
89659         POSIX decided to standardize on the int flavor of strerror_r.
89660
89661 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89662
89663         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
89664         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
89665         Use strerror_r that is only a macro, even if it is not a function.
89666         (strerror): Check for HAVE_DECL_STRERROR before declaring.
89667         (private_strerror): Use prototypes, not old-style function definition.
89668         (print_errno_message): New function.
89669         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
89670         char*-flavored one.
89671         (error_tail, error, error_at_line): Use it.
89672
89673 2001-10-11  Jim Meyering  <meyering@lucent.com>
89674
89675         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
89676         and quote_n (1, ... to avoid clobbering a buffer.
89677
89678 2001-10-05  Jim Meyering  <meyering@lucent.com>
89679
89680         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
89681         hash-pjw.h.
89682         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
89683         * lib/hash-pjw.h: New file.
89684
89685 2001-09-30  Jim Meyering  <meyering@lucent.com>
89686
89687         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
89688         `struct fsstat' has the `f_fstypename' member.
89689         Use that to define FS_TYPE, which is now used to make
89690         the getfsstat link test tighter.
89691
89692 2001-09-30  Jim Meyering  <meyering@lucent.com>
89693
89694         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
89695         Include <sys/ucred.h>, for Apple Darwin.
89696         Include sys/mount.h and sys/fs_types.h only if available.
89697         (FS_TYPE): Define.
89698         (read_filesystem_list): Use FS_TYPE.
89699
89700 2001-09-29  Paul Eggert  <eggert@twinsun.com>
89701
89702         * lib/exclude.c (excluded_filename): 0 -> false, since it's
89703         a boolean context.
89704
89705 2001-09-29  Jim Meyering  <meyering@lucent.com>
89706
89707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89708         [one-argument getmntent function]): Include stdio.h before mntent.h.
89709         SunOS 4.1.x needs it for the declaration of `FILE'.
89710         Patch by Volker Borchert.
89711
89712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89713         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
89714         sys/fs_types.h, and make the link-test for getfsstat guard #include
89715         directives with appropriate #if HAVE_*_H tests so that we can
89716         detect getfsstat on Apple Darwin1.3.7 systems.
89717         Reported by Nelson Beebe.
89718         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
89719
89720 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89721
89722         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89723         #defines strtoimax.  Also treat the other strto* functions
89724         like strtoimax.
89725
89726         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89727         Check for strtoul and strtoumax,
89728         as those declarations are made even in the signed case.
89729         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
89730         Likewise, for strtol and strtoimax.
89731
89732 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89733
89734         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89735         #defines strtoimax.  Also treat the other strto* functions
89736         like strtoimax.
89737
89738         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
89739         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
89740         (strtoimax, strtoumax): Do not declare if already defined as a macro.
89741
89742 2001-09-26  Jim Meyering  <meyering@lucent.com>
89743
89744         Most macros in unlocked-io.h had the wrong number of arguments.
89745         * lib/gen-uio: New script.
89746         (USE_UNLOCKED_IO): Define to 1 if not already defined.
89747         * lib/unlocked-io.hin: Remove file.
89748         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
89749         rather than trying to embed it here.
89750         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
89751         Reported by Padraig Brady.
89752
89753 2001-09-25  Volker Borchert  <bt@teknon.de>
89754
89755         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
89756         `result'.
89757
89758 2001-09-24  Jim Meyering  <meyering@lucent.com>
89759
89760         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
89761
89762 2001-09-23  Jim Meyering  <meyering@lucent.com>
89763
89764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
89765         instead of the mere test for existence of mntent.h.  The latter
89766         would get a false-positive on AIX 3.4 systems.
89767         In the outer getmntent if-block, don't die if neither of the getmntent
89768         tests succeeds.  Instead, just fall through and continue with the
89769         remaining tests.
89770
89771 2001-09-23  Jim Meyering  <meyering@lucent.com>
89772
89773         * lib/mountlist.c: Remove useless parentheses in #if directives.
89774         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
89775         the deprecated MOUNTED symbol is no longer defined in mntent.h.
89776
89777 2001-09-22  Jim Meyering  <meyering@lucent.com>
89778
89779         * m4/gettext.m4: New file.  From gettext.
89780         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
89781         * m4/progtest.m4: Likewise
89782         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
89783         * m4/glibc21.m4: Likewise.
89784
89785         * m4/libintl.m4: Remove.  No longer used.
89786
89787 2001-09-22  Jim Meyering  <meyering@lucent.com>
89788
89789         * lib/localcharset.c: Update from latest gettext.
89790         * lib/config.charset: Likewise.
89791
89792 2001-09-20  Jim Meyering  <meyering@lucent.com>
89793
89794         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
89795         strtoimax.
89796         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
89797         strtoumax.
89798
89799 2001-09-20  Jim Meyering  <meyering@lucent.com>
89800
89801         * lib/xstrtol.c (strtoimax): Guard declaration with
89802         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
89803         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
89804         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
89805         (strtoumax): Likewise, for completeness (it wasn't necessary).
89806
89807 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89808
89809         * lib/strtoimax.c (HAVE_LONG_LONG):
89810         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89811         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89812         to work around bug in IBM C compiler.
89813
89814 2001-09-17  Jim Meyering  <meyering@lucent.com>
89815
89816         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89817         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89818         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89819         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89820         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89821         whenever the right hand side need not be expanded by the shell.
89822
89823 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89824
89825         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89826         library.  It's not correct, as some older glibcs are buggy.
89827         fnmatch wasn't fixed until glibc 2.2.
89828
89829         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89830         special shell magic here.
89831
89832 2001-09-16  Jim Meyering  <meyering@lucent.com>
89833
89834         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89835         * m4/jm-macros.m4: Require it.
89836
89837 2001-09-16  Jim Meyering  <meyering@lucent.com>
89838
89839         * lib/mkdir.c: New file.
89840
89841 2001-09-15  Jim Meyering  <meyering@lucent.com>
89842
89843         * m4/jm-macros.m4: Check for help2man.
89844
89845 2001-09-11  Jim Meyering  <meyering@lucent.com>
89846
89847         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89848         The body, by Paul Eggert, was moved here from configure.in.
89849         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89850
89851 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89852
89853         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89854         (jm_PREREQ): Use it.
89855
89856 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89857
89858         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89859         Use ssize_t, not int, to store result of readlink.
89860         Check for ssize_t overflow as well as size_t overflow,
89861         as POSIX says the result of readlink is implementation-defined
89862         when ssize_t overflows.
89863         Remove unnecessary cast to char*.
89864         Use free+malloc instead of realloc, as the storage doesn't need
89865         to be preserved and it's clearer and can be more efficient that way.
89866         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89867         * lib/xreadlink.h (xreadlink): Update prototype.
89868
89869 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89870
89871         * lib/xgetcwd.c: Revert some of the previous change; intead,
89872         fix the HAVE_GETCWD_NULL code to behave more like the
89873         !HAVE_GETCWD_NULL code used to.
89874
89875         Include "xalloc.h".
89876         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89877         invoke xalloc_die.
89878
89879 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89880
89881         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89882         sys/param.h, as pathmax.h includes them.
89883
89884 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89885
89886         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89887         (jm_PREREQ_XGETCWD): New macro.
89888
89889         * m4/getcwd.m4: New file.
89890
89891 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89892
89893         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89894         like the HAVE_GETCWD_NULL code.
89895         Include pathmax.h if not HAVE_GETCWD.
89896         Do not include xalloc.h.
89897         (INITIAL_BUFFER_SIZE): New symbol.
89898         Do not use xmalloc / xrealloc, since the caller is responsible for
89899         handling errors.  Preserve errno around `free' during failure.
89900         Do not overrun buffer when using getwd.
89901
89902 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89903
89904         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89905         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89906         getcwd (NULL, 0).
89907
89908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89909
89910         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89911         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89912         spotted by Jim Meyering.
89913
89914 2001-09-03  Jim Meyering  <meyering@lucent.com>
89915
89916         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89917         failure.
89918
89919 2001-09-02  Jim Meyering  <meyering@lucent.com>
89920
89921         * lib/error.c: Update from GNU libc.
89922
89923 2001-09-01  Jim Meyering  <meyering@lucent.com>
89924
89925         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89926         Used by df.
89927
89928 2001-09-01  Jim Meyering  <meyering@lucent.com>
89929
89930         * lib/xreadlink.c: New file.
89931         * lib/xreadlink.h: New file.
89932         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89933         xreadlink.h.
89934
89935         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89936         doesn't conflict with sparc Solaris 7's definition in
89937         /usr/include/sys/int_types.h.
89938
89939         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89940         files.
89941         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89942         and strncasecmp as r-values.  Unixware didn't have declarations.
89943
89944 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89945
89946         * lib/xstrtol.h: Add copyright notice.
89947         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89948         LONGINT_INVALID_SUFFIX_CHAR.
89949
89950 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89951
89952         * lib/xstrtol.c (strtoimax): New decl.
89953
89954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89955
89956         * lib/xgetcwd.c: Don't include pathmax.h.
89957         Include stdlib.h and unistd.h if available.
89958         Include xalloc.h.
89959         (xmalloc, xstrdup, free): Remove decls.
89960         (xgetcwd): Don't assume sizes fit in unsigned.
89961         Check for overflow when computing sizes.
89962         Simplify reallocation code.
89963
89964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89965
89966         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89967         a directory's st_size can have an arbitrary value, so the old
89968         usage could waste an arbitrary amount of memory.  All uses
89969         changed.
89970         * lib/savedir.h: Update prototype.
89971
89972 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89973
89974         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89975
89976         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89977         old strtoimax.c.
89978
89979         Also, make the following further changes to make this file's
89980         configuration more similar to that of strtol.c:
89981         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89982         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89983         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89984         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89985         changed to signed values.
89986
89987         And make the following changes as well:
89988         Fix copyright notice, as 1999 was missing.
89989         (verify): New macro.
89990         (strtoimax): Check sizes at compile-time, not run-time.
89991         Prefer strtol to strtoll if both work.
89992         (main): Remove; it was not that useful and was a pain to maintain.
89993
89994         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89995
89996 2001-08-31  Jim Meyering  <meyering@lucent.com>
89997
89998         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89999         Use an initial, malloc'd, buffer of length 128 rather than
90000         a statically allocated one of length 1024.
90001
90002 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90003
90004         Simplify code, partly by assuming autoconf 2.52 semantics.
90005
90006         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
90007
90008         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
90009         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
90010         All uses removed.
90011         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
90012         Move AC_REQUIRE to next-to-top level, to avoid confusion.
90013         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
90014         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
90015         jm_AC_HEADER_INTTYPES_H.
90016         * m4/jm-macros.m4 (jm_MACROS): Likewise.
90017
90018         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
90019
90020         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90021         Quote first arg of AC_DEFUN.
90022         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
90023         since they are needed to parse the include file even if we need
90024         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
90025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
90026         but with opposite signedness.
90027
90028 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90029
90030         Merge 'exclude' changes from tar 1.13.22.
90031         This fixes one or two unlikely storage allocation overflow bugs,
90032         but doesn't change user-visible behavior otherwise.
90033
90034 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90035
90036         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
90037         (jm_PREREQ_EXCLUDE): New macro.
90038
90039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90040
90041         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
90042         tm to be declared.
90043
90044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90045
90046         * lib/hash.c: Remove '2001' from copyright notice.
90047
90048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90049
90050         * lib/full-write.h: New file.
90051         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
90052         * lib/full-write.c: Correct credits, as cccp.c no longer
90053         exists and anyway it was so heavily changed from the old cccp
90054         code as to be unrecognizable.  Include full-write.h.
90055         (full_write): Return size_t, with short writes meaning failure.
90056         All callers changed.  This fixes a bug with large buffers
90057         on 64-bit hosts.
90058         * lib/utime.c: Include full-write.h.
90059
90060 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90061
90062         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
90063         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
90064         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
90065         Include if available.
90066         (<xalloc.h>): Include
90067         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
90068         (verify): New macro.  Use it to verify that EXCLUDE macros do not
90069         collide with FNM macros.
90070         (struct patopts): New struct.
90071         (struct exclude): Use it, as exclude patterns now come with options.
90072         (new_exclude): Support above changes.
90073         (new_exclude, add_exclude_file):
90074         Initial size must now be a power of two to simplify overflow checking.
90075         (free_exclude, fnmatch_no_wildcards): New function.
90076         (excluded_filename): No longer requires options arg, as the options
90077         are determined by add_exclude.  Now returns bool, not int.
90078         (excluded_filename, add_exclude):
90079         Add support for the fancy new exclusion options.
90080         (add_exclude, add_exclude_file): Now takes int options arg.
90081         Check for arithmetic overflow when computing sizes.
90082         (add_exclude_file): xrealloc might modify errno, so don't
90083         realloc until after errno might be used.
90084
90085         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
90086         New macros.
90087         (free_exclude): New decl.
90088         (add_exclude, add_exclude_file): Now takes int options arg.
90089         (excluded_filename): No longer requires options arg, as the options
90090         are determined by add_exclude.  Now returns bool, not int.
90091
90092 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90093
90094         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
90095
90096 2001-08-27  Jim Meyering  <meyering@lucent.com>
90097
90098         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
90099
90100         * lib/version-etc.c (N_): Remove definition.
90101         Revert most of last change.
90102         Instead, simply don't mark the `Copyright...' string for translation.
90103         Based on advice from Paul Eggert.
90104
90105         * lib/strtoxmax.c: Tweak comment.
90106
90107 2001-08-26  Jim Meyering  <meyering@lucent.com>
90108
90109         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
90110
90111         * m4/xstrtoimax.m4: New file.
90112         * m4/xstrtoumax.m4: Add comments explaining why we
90113         AC_REPLACE_FUNCS(strtol).
90114
90115 2001-08-26  Jim Meyering  <meyering@lucent.com>
90116
90117         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
90118         of copyright with `%s' so translators don't get an untranslated
90119         message in 2002.
90120         (COPYRIGHT_YEAR): Define.
90121         (version_etc): Use fprintf rather than fputs.
90122         Suggestion from Ulrich Drepper.
90123
90124         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
90125
90126         * lib/strtoll.c: New file, from GNU libc.
90127         * lib/xstrtoimax.c: New file.
90128
90129         * lib/xstrtol.h: Add xstrtoimax.
90130         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
90131         * lib/strtoimax.c: New file.  Likewise, but first define
90132         STRTOUXMAX_SIGNED.
90133
90134         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
90135         ...
90136         * lib/strtoxmax.c: ... then renamed to this.
90137
90138 2001-08-18  Paul Eggert  <eggert@twinsun.com>
90139
90140         * m4/inttypes.m4: Add AC_PREREQ(2.13).
90141         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
90142         (jm_AC_TYPE_INTMAX_T): New macro.
90143         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
90144
90145         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
90146
90147         * m4/longlong.m4: Renamed from ulonglong.m4.
90148         * m4/inttypes.m4: Renamed from inttypes_h.m4.
90149         * m4/uintmax_t.m4: Removed.
90150
90151 2001-08-13  Paul Eggert  <eggert@twinsun.com>
90152
90153         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
90154         Port to Solaris 8, where 'sed' requires a space after the 'r'
90155         command, and where sh dislikes "$/".  Clean up the spacing a bit.
90156         Redirect output to $tmp just once.
90157
90158 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
90159
90160         * lib/addext.c (<errno.h>): Include.
90161         (errno): Declare if not defined.
90162         (addext): Work correctly when pathconf returns -1 and leaves
90163         errno alone because there is no limit.  Also, work even if
90164         pathconf returns a value greater than SIZE_MAX.
90165
90166 2001-08-12  Jim Meyering  <meyering@lucent.com>
90167
90168         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
90169         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
90170         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
90171         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
90172         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
90173         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
90174         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
90175         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
90176         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
90177         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
90178         utime.m4, utimes.m4, xstrtoumax.m4:
90179         Quote the first argument in each use of AC_DEFUN.
90180
90181 2001-08-12  Jim Meyering  <meyering@lucent.com>
90182
90183         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
90184         Simply `return getcwd (NULL, 0);'.
90185         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
90186         Use 1300 as initial value for length, not PATH_MAX.
90187
90188         * lib/pathmax.h: Clean up cpp syntax.
90189
90190 2001-08-12  Jim Meyering  <meyering@lucent.com>
90191
90192         * lib/gettimeofday.c: New file.
90193         * lib/gtod.h: New file.
90194         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
90195
90196 2001-08-05  Jim Meyering  <meyering@lucent.com>
90197
90198         * m4/jm-macros.m4: Require autoconf-2.52.
90199
90200 2001-08-04  Jim Meyering  <meyering@lucent.com>
90201
90202         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
90203         stmt, to get in sync with glibc.
90204
90205 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90206
90207         The following changes are from gettext 0.10.39 as maintained by
90208         Bruno Haible.
90209
90210         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
90211         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
90212         with inverted sense.  All uses changed.
90213
90214         * lib/mbswidth.c: Don't include <limits.h>.
90215         Include <stdlib.h> and <string.h> unconditionally.
90216         (iswcntrl, mbsinit, ISCNTRL): New macros.
90217         (mbsnwidth): Use K&R style function declarations.
90218         Don't bother checking for MB_LEN_MAX == 1, since the compiler
90219         can optimize it when MB_CUR_MAX == 1.
90220         The width of control characters is zero, not 1.
90221
90222 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90223
90224         The following changes are from gettext 0.10.39 as maintained by
90225         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
90226
90227         * m4/codeset.m4: Upgrade to serial AM1.
90228         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
90229         all uses changed.  Quote first arg of AC_DEFUN.
90230         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
90231
90232         * m4/iconv.m4: Upgrade to serial AM2.
90233         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
90234         Add --with-libconv-prefix.
90235         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
90236         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
90237         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
90238         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
90239         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
90240
90241         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
90242         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
90243         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
90244         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
90245         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
90246         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
90247         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
90248         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
90249         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
90250
90251         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
90252         string.h any more.
90253
90254         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
90255         not the default value.
90256
90257         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
90258         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
90259         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
90260         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
90261         Also check for iswcntrl, used for wcwidth fallback.
90262         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
90263         to Autoconf 2.13.
90264
90265 2001-08-03  Jim Meyering  <meyering@lucent.com>
90266
90267         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
90268         as it was in the original.  Reported by Paul Eggert.
90269
90270 2001-07-16  Jim Meyering  <meyering@lucent.com>
90271
90272         * m4/gettimeofday.m4: New file.
90273         Prompted by a report from Bernhard Baehr.
90274
90275 2001-07-15  Jim Meyering  <meyering@lucent.com>
90276
90277         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
90278         stuff. Now it's in ../Makefile.cfg.
90279
90280 2001-07-15  Jim Meyering  <meyering@lucent.com>
90281
90282         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
90283         (BUILT_SOURCES): Add unlocked-io.h.
90284         (io_functions): Define.
90285         (unlocked-io.h): New rule.
90286         (DISTCLEANFILES): Add unlocked-io.h.
90287         (all-local): Depend on unlocked-io.h, to ensure it is created.
90288
90289         * lib/unlocked-io.hin: New file
90290
90291         * lib/regex.c: Update from glibc.
90292
90293 2001-07-05  Jim Meyering  <meyering@lucent.com>
90294
90295         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
90296         recommendation.
90297         (libfetish_a_SOURCES): Put all .h files here instead.
90298         Remove a thus-exposed (better checks in automake) duplicate and
90299         two unnecessary .h files.
90300
90301 2001-07-04  Jim Meyering  <meyering@lucent.com>
90302
90303         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
90304         that generates jm-glibc-io.m4 so that it doesn't trigger any make
90305         distcheck failure.
90306
90307 2001-07-02  Jim Meyering  <meyering@lucent.com>
90308
90309         The following changes were prompted by suggestions from Bruno Haible.
90310
90311         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
90312         is now generated.
90313         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
90314         definition of EXTRA_DIST.
90315         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
90316         ensure that the generated file is created/updated whenever the list
90317         of $(unlocked_functions) is changed.
90318         (jm-glibc-io.m4): New rule.
90319         (unlocked-io.h): New rule -- currently unused.
90320
90321 2001-06-24  Jim Meyering  <meyering@lucent.com>
90322
90323         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
90324         unmatched right bracket, rather than kludging it with an extra,
90325         falsely-matching quote in a comment.  Patch by Akim Demaille.
90326
90327 2001-06-11  Jim Meyering  <meyering@lucent.com>
90328
90329         * lib/regex.c: Update from GNU libc.
90330
90331 2001-05-27  Jim Meyering  <meyering@lucent.com>
90332
90333         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
90334         Check for ut_type in struct utmp.
90335
90336 2001-05-27  Jim Meyering  <meyering@lucent.com>
90337
90338         * lib/readutmp.h (UT_TYPE): Define.
90339
90340 2001-05-24  Jim Meyering  <meyering@lucent.com>
90341
90342         * lib/argmatch.c: Include "quote.h".
90343         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
90344         quote function.  Reported by Göran Uddeborg.
90345
90346 2001-05-22  Jim Meyering  <meyering@lucent.com>
90347
90348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
90349         now that we use the package-supplied version unconditionally.
90350         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
90351
90352 2001-05-21  Jim Meyering  <meyering@lucent.com>
90353
90354         * m4/regex.m4: Change a couple backticks to single quotes to avoid
90355         shell syntax errors.
90356
90357 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90358
90359         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
90360
90361 2001-05-20  Paul Eggert  <eggert@twinsun.com>
90362
90363         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
90364         Don't bother to check library strftime, since
90365         we'll be using our own my_strftime function anyway.
90366         Define my_strftime instead of strftime.
90367
90368 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
90369
90370         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
90371         which is not yet declared.
90372
90373 2001-05-15  Jim Meyering  <meyering@lucent.com>
90374
90375         * m4/regex.m4: Use proper quoting so brackets appear in the test
90376         program.
90377         Reported by, and with help from, Bruno Haible.
90378
90379 2001-05-13  Jim Meyering  <meyering@lucent.com>
90380
90381         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
90382         undefined.
90383
90384 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90385
90386         dirname code cleanup.  base_name now behaves more compatibly
90387         with POSIX basename when given file names that have trailing
90388         slashes, and similarly for dir_name.  Add new primitives
90389         base_len and dir_len.  Put the directory-name-related decls
90390         into dirname.h.
90391
90392         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
90393         * lib/backupfile.c (base_name): Likewise.
90394         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
90395         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
90396         * lib/makepath.c (strip_trailing_slashes): Likewise.
90397         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
90398         ISSLASH): Likewise.
90399         * lib/rename.c (strip_trailing_slashes): Likewise.
90400         * lib/same.c (base_name): Likewise.
90401         * lib/stripslash.c (ISSLASH): Likewise.
90402
90403         * lib/addext.c: Include <dirname.h> after size_t is defined.
90404         * lib/backupfile.c: Likewise.
90405
90406         * lib/addext.c (addext): Use base_len to trim redundant
90407         trailing slashes instead of doing it ourselves.
90408         But do not trim the last slash if it is not redundant.
90409
90410         * lib/backupfile.c (find_backup_file_name,
90411         max_backup_version): Use base_len instead of rolling it ourselves.
90412         Handle the case of "" and (on DOS) "C:" correctly.
90413
90414         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
90415         needed. Include <string.h>, <dirname.h>.
90416         (base_name): Allow file names ending in slashes, other than names
90417         that are all slashes.  In this case, return the basename followed
90418         by the slashes.  This is more general, and can be used in places
90419         where the original base_name purposely had an assertion failure.
90420         (base_len): New function.
90421
90422         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
90423         Do not include <assert.h>; no longer needed.
90424         Include xalloc.h.
90425         (memrchr): Remove decl.
90426         (dir_name_r): Remove.
90427         (dir_len): Renamed from dirlen.  All callers changed.
90428         Rewrite in terms of base_name, for simplicity and consistency.
90429         (dir_name): Never return NULL.  All callers changed.
90430         Do not include <stdlib.h> in test program; no longer needed.
90431         return 0; is fine for test program.
90432
90433         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
90434         New macros.
90435         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
90436
90437         * lib/path-concat.c (path_concat): Use base_len to compute
90438         base length, not strlen; this means we cannot rely on memcpy
90439         to null-terminate.
90440
90441         * lib/same.c (STREQ): Remove.
90442         (same_name): Handle the case where the basename ends in trailing '/'.
90443
90444         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
90445         a slash was stripped.  Do not strip the last slash after a
90446         file system prefix.
90447
90448 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90449
90450         * lib/Makefile.am (libfetish_a_SOURCES):
90451         Add strftime.c, since we now compile it on all hosts.
90452
90453         * lib/strftime.c (my_strftime):
90454         Define to nstrftime if emacs, but only if my_strftime is not defined.
90455         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
90456         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
90457         Add one more extra argument: a nanoseconds value.
90458         All uses changed.
90459         (ns): New macro.
90460         (my_strftime function): Add %N format.
90461         (emacs_strftimeu): Renamed from emacs_strftime,
90462         with extra ut argument.
90463
90464 2001-05-09  Paul Eggert  <eggert@twinsun.com>
90465
90466         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
90467
90468 2001-04-21  Jim Meyering  <meyering@lucent.com>
90469
90470         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
90471         doesn't interfere.
90472
90473 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90474
90475         * m4/ftruncate.m4: Check for chsize.
90476         Link with ftruncate.o unconditionally if ftruncate is missing.
90477         This was required when cross-compiling to i586-mingw32msvc.
90478
90479 2001-04-08  Jim Meyering  <meyering@lucent.com>
90480
90481         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
90482         recomputed; that's necessary when the offset spans a DST transition.
90483         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
90484
90485 2001-04-02  Jim Meyering  <meyering@lucent.com>
90486
90487         * lib/regex.h, regex.c: Update from GNU libc.
90488
90489 2001-03-24  Jim Meyering  <meyering@lucent.com>
90490
90491         * m4/jm-macros.m4: Require autoconf-2.49d.
90492
90493 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
90494
90495         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
90496
90497 2001-03-19  Paul Eggert  <eggert@twinsun.com>
90498
90499         * lib/version-etc.c (version_etc_copyright): Update to 2001.
90500
90501 2001-03-17  Jim Meyering  <meyering@lucent.com>
90502
90503         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
90504         now that the version in autoconf is equivalent.
90505         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
90506
90507         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
90508         Suggestion from Akim Demaille.
90509
90510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
90511         (jm_PREREQ_TEMPNAME): New function.
90512
90513 2001-03-16  Paul Eggert  <eggert@twinsun.com>
90514
90515         * lib/tempname.c (uint64_t): Define to uintmax_t if
90516         not defined, and if UINT64_MAX is not defined.
90517         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
90518         Reported by John David Anglin.
90519
90520 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
90521
90522         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
90523         resolve alias if codeset is empty.
90524         * lib/config.charset (BeOS): Use wildcard syntax.
90525
90526 2001-03-13  Jim Meyering  <meyering@lucent.com>
90527
90528         * lib/path-concat.c (path_concat)
90529         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
90530         concatenating e.g., `C:' and `foo'.
90531         From Bruno Haible.
90532
90533 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90534
90535         * lib/localcharset.c (locale_charset): Don't use
90536         setlocale(LC_CTYPE,NULL). Don't return NULL.
90537         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
90538
90539 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90540
90541         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
90542         support for DOS/DJGPP.
90543
90544 2001-03-01  Paul Eggert  <eggert@twinsun.com>
90545
90546         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
90547         lacks mkstemp.  Compile our own tempname.c if we compile our own
90548         mkstemp.c, as mkstemp relies on tempname.
90549
90550 2001-03-01  Jim Meyering  <meyering@lucent.com>
90551
90552         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
90553         AH_VERBATIM really does output its argument verbatim.
90554
90555 2001-02-28  Paul Eggert  <eggert@twinsun.com>
90556
90557         * lib/Makefile.am (libfetish_a_SOURCES):
90558         Add dup-safer.c, fopen-safer.c.
90559         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
90560
90561         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
90562         * lib/unistd-safer.h: New files.
90563
90564 2001-02-25  Paul Eggert  <eggert@twinsun.com>
90565
90566         The mkstemp replacement is taken from glibc 2.2.2, with some
90567         portability fixes for use outside glibc, as follows:
90568
90569         * lib/tempname.c (struct_stat64): New macro.
90570         (direxists, __gen_tempname): Use it.
90571         This avoids a portability problem with Solaris 8.
90572
90573         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
90574         (<stddef.h>, <stdint.h>, <string.h>):
90575         Include only if STDC_HEADERS || _LIBC.
90576         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
90577         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
90578         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
90579         (__set_errno): Define this macro if <errno.h> doesn't.
90580         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
90581         Define these macros if <stdio.h> doesn't.
90582         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
90583         Define these macros if <sys/stat.h>
90584         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
90585         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
90586         __xstat64): Define if not _LIBC.
90587         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
90588         (__gen_tempname): Invoke gettimeofday only if
90589         HAVE_GETTIMEOFDAY || _LIBC;
90590         otherwise, fall back on plain "time".
90591         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
90592
90593         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
90594
90595         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
90596
90597 2001-02-18  Paul Eggert  <eggert@twinsun.com>
90598
90599         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
90600
90601 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90602
90603         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
90604         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
90605         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
90606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90607
90608 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90609
90610         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
90611         Remove workaround macros for hosts that have mbrtowc but not
90612         mbstate_t, as we now insist on proper declarations for both
90613         before using mbrtowc.
90614
90615 2001-02-17  Jim Meyering  <meyering@lucent.com>
90616
90617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
90618         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
90619         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
90620         UnixWare 7.1.1.
90621
90622         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
90623         rather than AC_CACHE_VAL.
90624
90625 2001-02-17  Jim Meyering  <meyering@lucent.com>
90626
90627         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90628         around included file name.
90629
90630         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
90631
90632         * lib/strftime.c: Update from GNU libc (the only changes were to
90633         comments).
90634
90635 2001-02-17  Jim Meyering  <meyering@lucent.com>
90636
90637         * lib/regex.c: Update from libc.
90638
90639 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
90640
90641         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
90642         clash.
90643
90644 2001-02-16  Paul Eggert  <eggert@twinsun.com>
90645
90646         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
90647         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
90648         Reported by Mark Hounschell via Paul Eggert.
90649
90650 2001-02-07  Jim Meyering  <meyering@lucent.com>
90651
90652         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
90653
90654 2001-02-05  Jim Meyering  <meyering@lucent.com>
90655
90656         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
90657         it includes the patch required for `large file' support with at least
90658         HP-UX's 10.20 /bin/cc.
90659
90660 2001-02-03  Jim Meyering  <meyering@lucent.com>
90661
90662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
90663         AS_IF, now that it works once again (mysteriously).
90664         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90665
90666 2001-01-30  Jim Meyering  <meyering@lucent.com>
90667
90668         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
90669         * m4/chown.m4: Rename conftestchown to conftest.chown.
90670         * m4/rename.m4: s/conftestdir/conftest.d1/ and
90671         s/conftestdir2/conftest.d2/.
90672         * m4/utimes.m4: s/conftestdata/conftest.data/
90673         Inspired by Pavel Roskin's change in autoconf.
90674
90675 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
90676
90677         * lib/config.charset: Update for FreeBSD 4.2.
90678
90679 2001-01-27  Jim Meyering  <meyering@lucent.com>
90680
90681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
90682         a use of AS_IF.
90683         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90684
90685 2001-01-26  Jim Meyering  <meyering@lucent.com>
90686
90687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
90688         quotearg.c includes it.
90689
90690 2001-01-26  Jim Meyering  <meyering@lucent.com>
90691
90692         * lib/quotearg.c: Include stddef.h.
90693         * lib/quote.c: Include stddef.h.
90694         Reported by Axel Kittenberger.
90695
90696         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
90697         line in double quotes so that it evokes a better diagnostic.
90698         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
90699         Reported by Axel Kittenberger.
90700
90701 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
90702
90703         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
90704         as if it was a `charset'.
90705
90706 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90707
90708         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
90709         has const.
90710
90711 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90712
90713         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
90714         to avoid a warning.  Add back 'const' to inptr.
90715
90716 2001-01-20  Jim Meyering  <meyering@lucent.com>
90717
90718         Be sure that headers are checked before used in code compiled
90719         for the type checks.
90720         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
90721         In place of that, invoke jm_CHECK_ALL_TYPES.
90722         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
90723         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
90724         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
90725         The check for ssize_t was mistakenly run before the test for unistd.h.
90726
90727         The configure-time check for stdbool.h was missing.
90728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
90729         (jm_PREREQ_HASH): New function.
90730
90731 2001-01-17  Jim Meyering  <meyering@lucent.com>
90732
90733         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
90734         for autoconf-2.49c.
90735         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
90736
90737 2001-01-16  Jim Meyering  <meyering@lucent.com>
90738
90739         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
90740         From Bruno Haible.
90741
90742 2001-01-14  Jim Meyering  <meyering@lucent.com>
90743
90744         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
90745         foo and bar.  Create conftestdir/ in the script, not in the C code.
90746         Remove directories in the script, not in the C code.
90747         Remove conftestdir{,2} before trying to create the directory.
90748         Make the entire configure script fail if the mkdir fails.
90749
90750 2001-01-14  Jim Meyering  <meyering@lucent.com>
90751
90752         * lib/rename.c: New file.  From Volker Borchert.
90753         Include stdlib.h, string.h or strings.h, and xalloc.h.
90754         Use strip_trailing_slashes rather than open-coding it.
90755
90756 2001-01-03  Paul Eggert  <eggert@twinsun.com>
90757
90758         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
90759
90760 2001-01-03  Jim Meyering  <meyering@lucent.com>
90761
90762         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
90763         of local `inptr' to avoid warning with some system declarations of
90764         iconv.
90765
90766 2001-01-02  Volker Borchert  <bt@teknon.de>
90767
90768         * m4/rename.m4: New file.
90769         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
90770
90771 2001-01-01  Jim Meyering  <meyering@lucent.com>
90772
90773         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
90774         even on systems with utmpx.h.  It's necessary for the declaration of
90775         utmp's ut_user member.  Reported by Andreas Jaeger.
90776
90777         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
90778         available. They are required for the declarations of getgrgid and
90779         getpwuid resp.
90780         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
90781         Reported by Andreas Jaeger.
90782
90783 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
90784
90785         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
90786         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
90787         so `make install' also works in VPATH builds.
90788
90789 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
90790
90791         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
90792         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
90793         can be used in subdirectories.
90794
90795 2000-12-29  Paul Eggert  <eggert@twinsun.com>
90796
90797         * lib/modechange.c: Do not assume that mode_t uses the
90798         traditional octal encoding.  E.g. "chmod 1 FOO" should set
90799         the other-execute bit of FOO even if S_IXOTH != 1.
90800
90801         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
90802         WOTH, XOTH, ALLM): New macros.
90803         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
90804          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
90805         Use them.
90806         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90807         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90808         (mode_compile):
90809         No need to use uintmax_t; unsigned long is long enough.
90810         Don't bother to get suffix since we don't use it.
90811
90812 2000-12-26  Jim Meyering  <meyering@lucent.com>
90813
90814         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90815         better with autoheader.
90816
90817 2000-12-24  Jim Meyering  <meyering@lucent.com>
90818
90819         * lib/hash.c (is_prime): Return explicit boolean values.
90820         (hash_get_first): Return NULL to appease Irix5.6's 89.
90821         Reported by Nelson Beebe.
90822
90823 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90824
90825         * lib/localcharset.c (locale_charset): Add support for Win32.
90826
90827 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90828
90829         * lib/physmem.h, lib/physmem.c: New files.
90830
90831         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90832         (noinst_HEADERS): Add physmem.h.
90833
90834         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90835         't' for compatibility with Solaris 8 sort.
90836
90837 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90838
90839         * lib/config.charset: Add support for BeOS.
90840
90841 2000-12-17  Jim Meyering  <meyering@lucent.com>
90842
90843         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90844         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90845
90846 2000-12-16  Jim Meyering  <meyering@lucent.com>
90847
90848         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90849         N and M) would have treated it like `chown N:N FILE'.
90850
90851         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90852
90853 2000-12-16  Jim Meyering  <meyering@lucent.com>
90854
90855         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90856         SHELLS_FILE to a file name that's useful on djgpp systems.
90857         Include stdlib.h.
90858         (ADDITIONAL_DEFAULT_SHELLS): Define.
90859         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90860         Based mostly on a patch from Prashant TR.
90861
90862 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90863
90864         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90865         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90866         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90867
90868 2000-12-08  Andreas Schwab  <schwab@suse.de>
90869
90870         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90871         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90872
90873 2000-12-07  Jim Meyering  <meyering@lucent.com>
90874
90875         * lib/stripslash.c (ISSLASH): Define.
90876         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90877         `/'.
90878         From Prashant TR.
90879
90880         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90881         (dir_name_r): Declare this function as static.
90882         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90883         manifest itself on a name containing a mix of slashes and
90884         backslashes.
90885         Make this function work with names starting with a DOS-style
90886         drive letter and colon prefix.
90887         (dir_name): Append `.' if necessary.
90888         Based mostly on patches from Prashant TR and Eli Zaretskii.
90889
90890         * lib/dirname.h (dir_name_r): Remove prototype.
90891
90892 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90893
90894         * m4/off_t-format.m4: Remove this file.
90895         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90896
90897 2000-12-06  Jim Meyering  <meyering@lucent.com>
90898
90899         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90900         replacement strtoull, we may well need the replacement strtoul, too.
90901         Check for declarations of strtoul and strtoull.
90902         Check for strtol.  Mainly as a cue to cause automake to include
90903         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90904         Check for limits.h -- strtol.c needs it.
90905
90906 2000-12-05  Jim Meyering  <meyering@lucent.com>
90907
90908         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90909
90910 2000-12-04  Jim Meyering  <meyering@lucent.com>
90911
90912         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90913         Also include memory.h, stdlib.h, unistd.h if appropriate.
90914         Reported by Andreas Jaeger (conflicting declaration of malloc).
90915
90916 2000-12-02  Jim Meyering  <meyering@lucent.com>
90917
90918         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90919         * m4/jm-macros.m4 (jm_MACROS): require it.
90920
90921 2000-12-02  Jim Meyering  <meyering@lucent.com>
90922
90923         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90924
90925 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90926
90927         * lib/memrchr.c: Include <config.h> before any system include file.
90928
90929 2000-11-30  Jim Meyering  <meyering@lucent.com>
90930
90931         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90932
90933 2000-11-30  Jim Meyering  <meyering@lucent.com>
90934
90935         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90936
90937 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90938
90939         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90940
90941 2000-11-26  Jim Meyering  <meyering@lucent.com>
90942
90943         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90944
90945 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90946
90947         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90948         size of (size_t) -1; it's not portable.
90949
90950 2000-11-17  Jim Meyering  <meyering@lucent.com>
90951
90952         * lib/strstr.c: Update from GNU libc.
90953
90954 2000-11-17  Akim Demaille  <akim@epita.fr>
90955
90956         * lib/obstack.h: Formatting changes.
90957         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90958         prevent type checking.
90959         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90960         cast the value to (void *): assigning a `foo *' to a `void *'
90961         variable is valid.
90962         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90963
90964 2000-11-16  Jim Meyering  <meyering@lucent.com>
90965
90966         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90967
90968 2000-11-11  Jim Meyering  <meyering@lucent.com>
90969
90970         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90971
90972 2000-11-10  Jim Meyering  <meyering@lucent.com>
90973
90974         * lib/obstack.h: Update from GNU libc.
90975         * lib/obstack.c: Likewise.
90976
90977 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90978
90979         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90980
90981 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90982
90983         * lib/getusershell.c (setusershell): Use rewind rather than
90984         fseek/fseeko, to avoid configuration hassles with fseeko.
90985         Don't bother opening SHELLS_FILE if shellstream is NULL;
90986         it's not necessary.
90987
90988 2000-11-05  Jim Meyering  <meyering@lucent.com>
90989
90990         * lib/makepath.h (make_dir): Declare.
90991         * lib/makepath.c (make_dir): Remove `static' attribute.
90992         Tweak a comment.
90993
90994 2000-11-04  Jim Meyering  <meyering@lucent.com>
90995
90996         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90997
90998 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90999
91000         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
91001         last one in a bucket, advance to the next bucket.
91002
91003 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
91004
91005         * lib/fnmatch.c: Do not comment out all the code if we are using
91006         the GNU C library, because in some cases we are replacing buggy
91007         code in the GNU C library itself.
91008
91009 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
91010
91011         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
91012         (regex_compile): Catch bogus \(\1\).
91013
91014 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91015
91016         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
91017         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
91018         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
91019
91020 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91021
91022         * lib/error.h, getline.h, modechange.h:
91023         Remove "2000" from Copyright line, as the file hasn't been
91024         changed this year other than in the copyright notice.
91025
91026         * lib/xalloc.h: Add "2000" to Copyright line, as this file
91027         was changed this year.
91028
91029 2000-10-29  Jim Meyering  <meyering@lucent.com>
91030
91031         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
91032         renaming.
91033         * m4/ls-mntd-fs.m4: Likewise
91034
91035 2000-10-29  Jim Meyering  <meyering@lucent.com>
91036
91037         * lib/xstat.in: Fix grammar in comment.
91038
91039 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
91040
91041         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
91042         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
91043         doesn't define __restrict_arr.
91044
91045 2000-10-28  Jim Meyering  <meyering@lucent.com>
91046
91047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
91048         (jm_PREREQ_MEMCHR): New function.
91049
91050 2000-10-28  Jim Meyering  <meyering@lucent.com>
91051
91052         * lib/memchr.c: Update from libc.
91053         Adjust for portability:
91054         [HAVE_STDLIB_H]: Include stdlib.h.
91055         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
91056         Undef __memchr, too.
91057         [!weak_alias]: Define __memchr to memchr.
91058
91059         * lib/regex.c: Update from libc.
91060         * lib/regex.h: Likewise.
91061         * lib/getopt1.c: Likewise.
91062         * lib/memcmp.c: Likewise.
91063
91064         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
91065         Avoid using fseek, when possible -- it's broken by design.
91066         Patch by Ulrich Drepper.
91067
91068 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
91069
91070         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
91071         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
91072         Giving in to popular pressure to shut up the compiler with casts.
91073
91074 2000-10-26  Jim Meyering  <meyering@lucent.com>
91075
91076         * lib/strftime.c: Update from libc.
91077
91078 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
91079
91080         * regex.c: More `unsigned char' -> `re_char' changes.
91081         Also change several `int' into `re_wchar_t'.
91082         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
91083         (PUSH_FAILURE_POINTER): Don't cast any more.
91084         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
91085         We want GCC to complain, since this piece of code makes
91086         re_match non-reentrant, which *should* be fixed.
91087         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
91088         (EXTEND_BUFFER): Use RETALLOC.
91089         (SET_LIST_BIT): Don't cast.
91090         (re_wchar_t): New type.
91091         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
91092         that those two functions will always properly return.
91093         (IMMEDIATE_QUIT_CHECK): Cast to void.
91094         (analyse_first): Use recursion rather than an explicit stack.
91095         (re_compile_fastmap): Can't fail anymore.
91096         (re_search_2): Don't check re_compile_fastmap for failure.
91097         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
91098         Now also sets the new value (passed in a new argument).
91099         (re_match_2_internal): Use it.
91100         Also, use a new var `reg' of type size_t when looping through regs
91101         rather than reuse the inappropriate `mcnt'.
91102
91103 2000-10-25  Jim Meyering  <meyering@lucent.com>
91104
91105         * lib/obstack.c: Update from libc.
91106
91107 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
91108
91109         * regex.c (regex_compile): Change the way of handling a range from
91110         a char less than 256 to a char not less than 256.
91111
91112 2000-10-24  Andrew Innes  <andrewi@gnu.org>
91113
91114         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
91115         NT-Emacs only.
91116         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
91117         so that re_search functions only quit when callers expect them to.
91118
91119 2000-10-23  Jim Meyering  <meyering@lucent.com>
91120
91121         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
91122         wrong.  That set_locale call must not have any side effects.
91123         From Paul Eggert.
91124
91125 2000-10-22  Jim Meyering  <meyering@lucent.com>
91126
91127         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
91128         [CYCLIC]: Remove now-unused definition.
91129
91130         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
91131         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
91132         Suggestion from Ulrich Drepper.
91133
91134 2000-10-21  Jim Meyering  <meyering@lucent.com>
91135
91136         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
91137         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
91138         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
91139
91140 2000-10-21  Jim Meyering  <meyering@lucent.com>
91141
91142         * lib/dirname.c (memrchr): Declare if necessary.
91143         (dir_name): Remove the restriction that there be no
91144         trailing slashes.  Now, this code skips past them, effectively
91145         ignoring them.
91146         [TEST_DIRNAME] (main): New unit tests.
91147
91148         * lib/memrchr.c: New file from GNU libc.
91149         Undef __memrchr, too.
91150         [!weak_alias]: Define __memrchr to memrchr.
91151         Guard weak_alias use with `#ifdef weak_alias'.
91152
91153 2000-10-21  Jim Meyering  <meyering@lucent.com>
91154
91155         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
91156         (dir_name): Use dir_name_r.
91157         * lib/dirname.h (dir_name_r): Declare it.
91158
91159 2000-10-17  Jim Meyering  <meyering@lucent.com>
91160
91161         * lib/quote.h (PARAMS): Define and use.
91162         Reported by Akim Demaille.
91163
91164         * lib/getopt.c: Update from libc.
91165
91166 2000-10-16  Jim Meyering  <meyering@lucent.com>
91167
91168         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
91169         setlocale.
91170         From Jan Fedak.
91171
91172 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
91173
91174         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
91175
91176 2000-09-25  Jim Meyering  <meyering@lucent.com>
91177
91178         * lib/md5.h (rol): Define (from GnuPG).
91179
91180         * lib/sha.c: Give credit (GnuPG) where due.
91181         (M): Use rol rather than open-coding it.
91182         Add a FIXME comment.
91183
91184 2000-09-21  Jim Meyering  <meyering@lucent.com>
91185
91186         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
91187         Reported by Michael Stone.
91188
91189 2000-09-20  Jim Meyering  <meyering@lucent.com>
91190
91191         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
91192         (noinst_HEADERS): Add sha.h.
91193         Based on code from Scott G. Miller and from GnuPG.
91194
91195 2000-09-18  Jim Meyering  <meyering@lucent.com>
91196
91197         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
91198         LIBS. Otherwise, everyone ends up linking with -lelf for some
91199         configurations.
91200         Reported by Mike Stone.
91201
91202 2000-09-15  Jim Meyering  <meyering@lucent.com>
91203
91204         * lib/regex.c: Update from libc.
91205
91206 2000-09-10  Jim Meyering  <meyering@lucent.com>
91207
91208         * lib/getopt.c (_getopt_internal): Update from glibc.
91209
91210 2000-09-09  Jim Meyering  <meyering@lucent.com>
91211
91212         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
91213         think it should be used as a general replacement for isascii.
91214         * lib/fnmatch.c: Likewise.
91215         * lib/mbswidth.c: Likewise
91216         * lib/regex.c: Likewise.
91217
91218         Don't use atoi.
91219         * lib/userspec.c: Include sys/param.h and limits.h.
91220         Include xstrtol.h.
91221         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91222         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
91223         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
91224         UID, GID.  Check range.
91225
91226 2000-09-06  Jim Meyering  <meyering@lucent.com>
91227
91228         * lib/getopt.c (_getopt_internal): Update from glibc.
91229
91230 2000-08-30  Jim Meyering  <meyering@lucent.com>
91231
91232         * lib/strftime.c: Merge in changes from GNU libc.
91233
91234 2000-08-26  Jim Meyering  <meyering@lucent.com>
91235
91236         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
91237         * m4/fpending.m4: New file.
91238
91239 2000-08-26  Jim Meyering  <meyering@lucent.com>
91240
91241         * lib/closeout.c: Include "__fpending.h".
91242         (close_stdout_status): Return right away if there's nothing to flush.
91243
91244         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
91245         * lib/__fpending.c: New file.
91246         * lib/__fpending.h: New file.
91247
91248 2000-08-20  Jim Meyering  <meyering@lucent.com>
91249
91250         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
91251         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
91252         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
91253
91254 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
91255
91256         Improve fileutils installation on systems where running
91257         programs (like install) can't be unlinked.
91258         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
91259         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
91260
91261 2000-08-07  Paul Eggert  <eggert@twinsun.com>
91262
91263         Standardize on "memory exhausted" instead of "Memory exhausted"
91264         or "virtual memory exhausted".
91265         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
91266         "virtual memory exhausted".
91267         * lib/same.c (same_name): Invoke xalloc_die instead of printing
91268         our own message.
91269         * lib/userspec.c (parse_user_spec): Likewise.
91270         * lib/bumpalloc.h: comment fix
91271         * lib/same.c, userspec.c: Include xalloc.h.
91272
91273         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
91274         not char *const and pointing to a constant array.
91275         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
91276         (xrealloc): Comment fix.
91277
91278         * lib/userspec.c (parse_user_spec):
91279         Don't translate a message until just before returning,
91280         to avoid unnecessary translation.
91281
91282 2000-08-07  Jim Meyering  <meyering@lucent.com>
91283
91284         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
91285         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
91286         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
91287         getgroups.c, gethostname.c, getopt.h, group-member.c,
91288         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
91289         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
91290         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
91291         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
91292         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
91293         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
91294         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
91295         yesno.c: Back out Copyright date changes for each file with no change
91296         this year.  This eases coordination with other programs using the same
91297         source code modules.  From Paul Eggert.
91298
91299 2000-08-06  Paul Eggert  <eggert@twinsun.com>
91300
91301         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
91302         not char, for compatibility with glibc 2.1.3 strftime.c.
91303
91304 2000-08-03  Greg McGary  <greg@mcgary.org>
91305
91306         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
91307         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
91308         (EXTEND_BUFFER): Use them.
91309
91310 2000-08-01  Jim Meyering  <meyering@lucent.com>
91311
91312         * lib/dirname.c (ISSLASH): Define.
91313         (BACKSLASH_IS_PATH_SEPARATOR): Define.
91314         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
91315         both `\' and `/' may be use as path separators.
91316         Based on a patch from Prashant TR.
91317
91318 2000-07-31  Paul Eggert  <eggert@twinsun.com>
91319
91320         * lib/quotearg.c (quotearg_n_options): Don't make the initial
91321         slot vector a constant, since it might get modified.
91322
91323 2000-07-31  Jim Meyering  <meyering@lucent.com>
91324
91325         * lib/xmalloc.c: Use `virtual memory exhausted', not
91326         `Memory exhausted'.
91327         * lib/obstack.c (print_and_abort): Likewise.
91328
91329 2000-07-30  Paul Eggert  <eggert@twinsun.com>
91330
91331         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
91332         buffer, so that the caller can always quote one small
91333         component of a "memory exhausted" message in slot 0.
91334         From a suggestion by Jim Meyering.
91335
91336 2000-07-30  Jim Meyering  <meyering@lucent.com>
91337
91338         * lib/makepath.c (make_path): Quote the other instance, too.
91339
91340         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
91341         (STATIC_BUF_SIZE): Define.
91342         (quotearg_n_options): Use only statically allocated storage when
91343         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
91344         than STATIC_BUF_SIZE.
91345
91346 2000-07-29  Jim Meyering  <meyering@lucent.com>
91347
91348         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
91349         * lib/dirname.c (dir_name): Likewise.
91350
91351         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
91352         `/'.
91353
91354         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
91355         (dir_name): Assert that there are no trailing slashes.
91356
91357 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
91358
91359         * lib/mbswidth.h (mbswidth): Add a flags argument.
91360         (mbswidth): New declaration.
91361         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
91362         * lib/mbswidth.c (mbswidth): Add a flags argument.
91363         (mbsnwidth): New function.
91364
91365 2000-07-24  Jim Meyering  <meyering@lucent.com>
91366
91367         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
91368
91369 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91370
91371         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
91372
91373 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91374
91375         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
91376         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
91377         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
91378         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
91379         invoke multibyte primitives.
91380
91381 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91382
91383         * lib/quotearg.c:
91384         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
91385         so that mbstate_t is always defined.
91386
91387         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
91388         be 1 in at least one GCC installation, and this configuration
91389         error is likely to be common.  Ignoring MB_LEN_MAX hurts
91390         performance on hosts that have mbrtowc but have only unibyte
91391         locales, but I assume these hosts are rare.
91392
91393 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91394
91395         * lib/mbswidth.c (_XOPEN_SOURCE):
91396         Don't define; this causes problems on Solaris 7.
91397         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
91398
91399 2000-07-23  Jim Meyering  <meyering@lucent.com>
91400
91401         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
91402         too: getgrgid, getpwuid, getuid.
91403
91404 2000-07-23  Jim Meyering  <meyering@lucent.com>
91405
91406         * lib/basename.c (base_name): Add an assertion.
91407
91408 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
91409
91410         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
91411         shadow its mbsinit function.
91412
91413 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91414
91415         * lib/mbswidth.h: New file.
91416         * lib/mbswidth.c: New file.
91417         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
91418         (noinst_HEADERS): Add mbswidth.h.
91419
91420 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91421
91422         * lib/config.charset: Add support for FreeBSD. Improve support for
91423         HP-UX and IRIX 6.
91424
91425 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
91426
91427         * m4/mbswidth.m4: New file.
91428         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
91429
91430 2000-07-15  Jim Meyering  <meyering@lucent.com>
91431
91432         * lib/makepath.c: Include quote.h.
91433         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
91434         corresponding argument in a `quote (...)' call.
91435         Give better diagnostics.
91436
91437         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
91438         (noinst_HEADERS): Add quote.h.
91439
91440         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
91441         from tar's src/misc.c.
91442         * lib/quote.h: New file.  Prototypes for same.
91443
91444 2000-07-14  Paul Eggert  <eggert@twinsun.com>
91445
91446         From a suggestion by Bruno Haible.
91447         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
91448         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
91449         to decide whether to define the BeOS workaround macro;
91450         this adjusts to the change to AC_MBSTATE_T.
91451
91452 2000-07-14  Jim Meyering  <meyering@lucent.com>
91453
91454         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
91455         jm_AC_TYPE_UINTMAX_T.
91456
91457 2000-07-13  Paul Eggert  <eggert@twinsun.com>
91458
91459         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
91460
91461         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
91462         quotearg_buffer_restyled): Add support for
91463         clocale_quoting_style.  Undo previous change to
91464         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
91465         and "{RIGHT QUOTATION MARK}" msgids.
91466
91467 2000-07-10  Paul Eggert  <eggert@twinsun.com>
91468
91469         From a suggestion by Bruno Haible.
91470         * m4/mbstate_t.m4 (AC_MBSTATE_T):
91471         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
91472         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
91473         and mbstate_t, to a single-part test that simply defines mbstate_t.
91474         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
91475         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
91476
91477 2000-07-10  Jim Meyering  <meyering@lucent.com>
91478
91479         * m4/strerror_r.m4: Mirror the correction made in autoconf.
91480
91481         * m4/gnu-source.m4: Output to confdefs.h directly.
91482         Suggestion from Akim Demaille.
91483
91484 2000-07-09  Paul Eggert  <eggert@twinsun.com>
91485
91486         The old behavior of quoting `like this' doesn't look good with
91487         newer, ISO-style fonts.  See:
91488         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
91489
91490         Instead, quote "like this" by default.  Let the translator
91491         tailor the locale-specific quoting behavior by providing
91492         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
91493
91494         * lib/quotearg.c (N_): New macro.
91495         (gettext_default): New function.
91496         (quotearg_buffer_restyled): Use
91497         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
91498         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
91499
91500 2000-07-09  Jim Meyering  <meyering@lucent.com>
91501
91502         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
91503         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
91504
91505         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
91506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
91507
91508 2000-07-09  Jim Meyering  <meyering@lucent.com>
91509
91510         * lib/Most files: Update copyright dates to include 2000.
91511
91512 2000-07-08  Jim Meyering  <meyering@lucent.com>
91513
91514         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
91515         if not defined.
91516         (xgethostname): Remove now-unnecessary #ifdef.
91517         Move declaration of `err' into loop where it's used.
91518
91519 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91520         and Bruno Haible  <haible@clisp.cons.org>
91521
91522         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
91523         only if the test for an object-type mbstate_t fails.  This
91524         prevents us from mistakenly reporting that mbstate_t is a
91525         system object type after we "#define mbstate_t int" to work
91526         around its lack.
91527
91528 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91529         and Bruno Haible  <haible@clisp.cons.org>
91530
91531         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
91532
91533 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91534
91535         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
91536         to strerror_r.
91537         Include <ctype.h> for use of isalpha.
91538
91539 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91540
91541         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
91542         by allocating a larger buffer. Test the gethostname return value for
91543         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
91544         returns an error and ENAMETOOLONG isn't defined.
91545
91546 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91547
91548         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
91549         dimension.
91550
91551 2000-07-04  Jim Meyering  <meyering@lucent.com>
91552
91553         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
91554         of the deprecated AC_CHECKING.
91555
91556 2000-07-04  Jim Meyering  <meyering@lucent.com>
91557
91558         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
91559         Reported by Bruno Haible.
91560
91561 2000-07-04  Jim Meyering  <meyering@lucent.com>
91562
91563         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
91564         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
91565         lacks mbrtowc.
91566
91567 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91568
91569         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
91570         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
91571
91572 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91573         and Bruno Haible  <haible@clisp.cons.org>
91574
91575         * lib/quotearg.c (mbrtowc):
91576         Assign to *pwc, and return 1 only if result is nonzero.
91577         (iswprint): Use ISPRINT when substituting our own mbrtowc.
91578
91579 2000-07-03  Jim Meyering  <meyering@lucent.com>
91580
91581         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
91582
91583 2000-07-03  Jim Meyering  <meyering@lucent.com>
91584
91585         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
91586         This is necessary to get a definition of e.g., UTMP_FILE on
91587         HP-UX 10.20.
91588         From Bob Proulx.
91589
91590 2000-07-02  Jim Meyering  <meyering@lucent.com>
91591
91592         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
91593
91594         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
91595         AC_LIBOBJ(function_name).
91596         * m4/chown.m4: Likewise.
91597         * m4/fnmatch.m4: Likewise.
91598         * m4/ftruncate.m4: Likewise.
91599         * m4/getgroups.m4: Likewise.
91600         * m4/getline.m4: Likewise.
91601         * m4/group-member.m4: Likewise.
91602         * m4/jm-macros.m4: Likewise.
91603         * m4/lstat.m4: Likewise.
91604         * m4/malloc.m4: Likewise.
91605         * m4/memcmp.m4: Likewise.
91606         * m4/nanosleep.m4: Likewise.
91607         * m4/putenv.m4: Likewise.
91608         * m4/realloc.m4: Likewise.
91609         * m4/regex.m4: Likewise.
91610         * m4/stat.m4: Likewise.
91611         * m4/strftime.m4: Likewise.
91612
91613 2000-07-02  Jim Meyering  <meyering@lucent.com>
91614
91615         * lib/quotearg.c (mbstate_t): Don't define here.
91616
91617 2000-07-02  Jim Meyering  <meyering@lucent.com>
91618
91619         * lib/nanosleep.c (SIGCONT): Define if not already defined.
91620
91621 2000-07-01  Jim Meyering  <meyering@lucent.com>
91622
91623         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
91624
91625 2000-07-01  Jim Meyering  <meyering@lucent.com>
91626
91627         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
91628         problem.
91629
91630 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91631
91632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
91633         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
91634
91635 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91636
91637         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
91638         per change in ../m4/ls-mntd-fs.m4.
91639         (read_filesystem_list): Ignore symbolic links.
91640
91641 2000-06-29  Jim Meyering  <meyering@lucent.com>
91642
91643         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
91644         for declaration of strcmp.
91645
91646         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
91647
91648         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
91649         Avoid warning by casting result to `char *' to remove `const'.
91650
91651 2000-06-28  Jim Meyering  <meyering@lucent.com>
91652
91653         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
91654         included by quotearg.c, for which we perform this test.  From
91655         Bruno Haible.
91656
91657 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91658
91659         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
91660         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
91661         <utmpx.h> exists, put readutmp.o into LIBOBJS.
91662
91663 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91664
91665         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
91666
91667 2000-06-26  Paul Eggert  <eggert@twinsun.com>
91668
91669         savedir now sets errno on failure and invokes xmalloc to get memory.
91670         Fix a couple of other minor bugs while we're at it.
91671
91672         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
91673         (NAMLEN): Remove macro.
91674         (malloc, realloc): Remove decls.
91675         (stpcpy): Likewise.
91676         ("xalloc.h"): Include.
91677         (NAME_SIZE_DEFAULT): New macro.
91678         (savedir): Use xmalloc / xrealloc to allocate memory.
91679         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
91680         Skip "" directory entries.
91681         Use strlen to calculate directory entry length, since the old method
91682         is rarely used these days and isn't worth supporting.
91683         Don't use a pointer after freeing it.
91684         Check for integer overflow when calculating allocation size.
91685         Use memcpy to copy entries, instead of stpcpy.
91686         Set errno properly when returning NULL.
91687         Check for readdir error.
91688
91689 2000-06-26  Jim Meyering  <meyering@lucent.com>
91690
91691         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
91692
91693 2000-06-25  Jim Meyering  <meyering@lucent.com>
91694
91695         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
91696         Linux header bug when _XOPEN_SOURCE is defined to 500.
91697
91698 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91699
91700         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
91701         deficiency.
91702
91703 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91704
91705         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
91706         Include xalloc.h.
91707         Don't include <stdlib.h>.  Don't declare malloc, realloc.
91708
91709 2000-06-24  Jim Meyering  <meyering@lucent.com>
91710
91711         * m4/strerror_r.m4: Revive this file -- to try out an experimental
91712         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
91713         for which strerror does return char*, but which lacks a conveniently
91714         accessible declaration of the function.  If the compile-test says
91715         strerror_r doesn't work, then resort to a `run'-test that works on
91716         BeOS and segfaults on DEC Unix.
91717
91718 2000-06-24  Jim Meyering  <meyering@lucent.com>
91719
91720         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
91721
91722 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91723
91724         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
91725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
91726
91727 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91728
91729         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
91730         (mbrtowc, mbstate_t): Define substitutes if
91731         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
91732         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
91733         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
91734
91735 2000-06-23  Jim Meyering  <meyering@lucent.com>
91736
91737         * m4/afs.m4: Add missing AC_MSG_RESULT.
91738         Reported by Bruno Haible.
91739
91740         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
91741         Suggestion from Bruno Haible.
91742
91743 2000-06-23  Jim Meyering  <meyering@lucent.com>
91744
91745         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
91746
91747 2000-06-21  Jim Meyering  <meyering@lucent.com>
91748
91749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
91750
91751 2000-06-21  Jim Meyering  <meyering@lucent.com>
91752
91753         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
91754         (noinst_HEADERS): Add getstr.h.
91755
91756         * lib/getline.c (getstr): Move into a separate file.
91757         * lib/getstr.c (getstr): New file, extracted from getline.c, with
91758         the following changes: new parameter, delim2; both delim[12]
91759         parameters have type `int', not `char'.  The latter would lose
91760         with 8-bit delimiters.
91761         * lib/getstr.h: New file.
91762
91763 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91764
91765         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
91766         than 1024, return a memory chunk of least possible size, instead
91767         of size PATH_MAX + 2. In the loop, increment the size proportionally.
91768         Use free/xmalloc instead of xrealloc to avoid copying for very long
91769         paths.
91770
91771 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91772
91773         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
91774         the empty string.
91775
91776 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91777
91778         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
91779         address, not strdup.  Include <stdlib.h> and don't declare free().
91780
91781 2000-06-19  Jim Meyering  <meyering@lucent.com>
91782
91783         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
91784
91785 2000-06-18  Jim Meyering  <meyering@lucent.com>
91786
91787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
91788
91789         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
91790         `checking whether...' message to be consistent with that of the
91791         lstat test.
91792
91793 2000-06-18  Jim Meyering  <meyering@lucent.com>
91794
91795         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
91796         Besides, these days every porting target provides a mkdir function.
91797
91798         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
91799         needed. (this snippet comes from src/system.h).
91800
91801 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
91802
91803         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
91804
91805 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91806
91807         * lib/human.c (adjust_value): New function.
91808         (human_readable_inexact): Apply rounding style even when
91809         printing approximate values.
91810
91811 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91812
91813         * lib/human.c (human_readable_inexact): Allow an input block
91814         size that is not a multiple of the output block size, and vice versa.
91815         Reported by Piergiorgio Sartor.
91816
91817 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91818
91819         * lib/getdate.y (get_date): Apply relative times after time
91820         zone indicator, not before.  Reported by Todd A. Jacobs.
91821
91822 2000-06-13  Jim Meyering  <meyering@lucent.com>
91823
91824         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91825
91826         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91827
91828 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91829
91830         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91831
91832 2000-06-12  Jim Meyering  <meyering@lucent.com>
91833
91834         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91835         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91836         optional argument.
91837         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91838         the optional argument, `lib'.
91839
91840 2000-06-08  Jim Meyering  <meyering@lucent.com>
91841
91842         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91843
91844 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91845
91846         Rewrite largefile configuration so that we don't need to run
91847         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91848         AC_CANONICAL_HOST in configure.in -- jmm]
91849
91850         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91851         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91852         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91853         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91854         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91855         All uses changed.
91856         Instead of inspecting the output of getconf, try to compile the
91857         test program without and with the macro definition.
91858         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91859         for getconf.  Instead, check for the needed flags by compiling
91860         test programs.
91861
91862 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91863
91864         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91865
91866 2000-06-04  Jim Meyering  <meyering@lucent.com>
91867
91868         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91869         SunOS 4.1.4 for which gid_t is an unsigned type.
91870
91871 2000-06-03  Jim Meyering  <meyering@lucent.com>
91872
91873         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91874         now that autoconf requires that.
91875
91876         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91877         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91878         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91879
91880 2000-06-03  Jim Meyering  <meyering@lucent.com>
91881
91882         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91883
91884 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91885
91886         * m4/glibc21.m4: New file.
91887         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91888
91889 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91890
91891         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91892         newer, don't install charset.alias.
91893         * lib/config.charset: Change the Linux/glibc rules so they become empty
91894         on glibc-2.1 or newer.
91895
91896 2000-06-02  Jim Meyering  <meyering@lucent.com>
91897
91898         * lib/mountlist.c: Back out last change.  Instead, do this...
91899         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91900         me_dummy member using the same `ignore'-testing code.
91901         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91902         fs_type strings.
91903         From Mark D. Roth.
91904
91905 2000-05-29  Jim Meyering  <meyering@lucent.com>
91906
91907         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91908         mounts with the `ignore' attribute.  Based on a patch from
91909         Mark D. Roth.
91910
91911 2000-05-28  Jim Meyering  <meyering@lucent.com>
91912
91913         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91914         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91915         * m4/stat.m4: Likewise.
91916         * m4/lstat.m4: Likewise.
91917         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91918
91919         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91920         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91921
91922 2000-05-26  Jim Meyering  <meyering@lucent.com>
91923
91924         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91925
91926 2000-05-24  Jim Meyering  <meyering@lucent.com>
91927
91928         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91929         autoconf requires that.
91930         * m4/lib-check.m4: Likewise.
91931         * m4/jm-macros.m4: Likewise.
91932         * m4/strftime.m4: Likewise.
91933
91934         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91935         AC_CHECK_DECLS, now that autoconf requires that.
91936
91937 2000-05-22  Jim Meyering  <meyering@lucent.com>
91938
91939         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91940         * m4/lstat.m4: Likewise.
91941
91942 2000-05-22  Jim Meyering  <meyering@lucent.com>
91943
91944         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91945
91946 2000-05-20  Jim Meyering  <meyering@lucent.com>
91947
91948         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91949         (jm_PREREQ): Use it.
91950
91951 2000-05-18  Jim Meyering  <meyering@lucent.com>
91952
91953         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91954         back, too, since it may have been modified by allocate_entry.
91955         (hash_delete): Rewrite to use neither the assignment operator
91956         nor the comma operator in an if-expression.
91957
91958 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91959
91960         * lib/closeout.c:
91961         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91962         Remove; no longer needed.
91963         "quotearg.h": Add include.
91964         (file_name): Do not bother to explicitly initialize to NULL; it's less
91965         efficient on some hosts.
91966         (close_stdout_status): Remove test as to whether stdout was already
91967         closed; it breaks for the case "echo x | sort >&-".
91968         Quote file name colons.
91969         Do not assume that _("write error") lacks format strings.
91970
91971 2000-05-15  Jim Meyering  <meyering@lucent.com>
91972
91973         * lib/version-etc.c (version_etc_copyright): Update the copyright
91974         string used in all --version output.
91975
91976 2000-05-14  Jim Meyering  <meyering@lucent.com>
91977
91978         * lib/closeout.c (close_stdout_set_file_name): New function.
91979         (close_stdout_status): Use new file-scoped global.
91980         Return right away if fstat says the stdout file descriptor is invalid.
91981         * lib/closeout.h (close_stdout_set_file_name): Declare.
91982
91983 2000-05-10  Jim Meyering  <meyering@lucent.com>
91984
91985         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91986         (close_stdout_set_status): New function.
91987         * lib/closeout.h (close_stdout_set_status): Declare.
91988
91989 2000-05-09  Jim Meyering  <meyering@lucent.com>
91990
91991         * m4/gettext.m4: Rename this...
91992         * m4/libintl.m4: ...to this.
91993
91994 2000-05-08  Jim Meyering  <meyering@lucent.com>
91995
91996         * lib/long-options.c: Don't include closeout.h.
91997         (parse_long_options): Don't call close_stdout for --version.
91998
91999 2000-05-06  Paul Eggert  <eggert@twinsun.com>
92000
92001         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
92002         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
92003         2.1.3 bug.  This avoids a clash when files like regex.c define
92004         _GNU_SOURCE.
92005
92006 2000-05-06  Jim Meyering  <meyering@lucent.com>
92007
92008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
92009         (AC_REPLACE_FUNCS): Add strnlen.
92010
92011         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
92012         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
92013
92014         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
92015         AC_SEARCH_LIBS call for nanosleep.
92016         (LIB_NANOSLEEP): Set and AC_SUBST.
92017
92018 2000-05-06  Jim Meyering  <meyering@lucent.com>
92019
92020         * lib/strnlen.c: Undefine __strnlen and strnlen.
92021         [!weak_alias]: Define __strnlen to strnlen.
92022
92023         * lib/atexit.c: New file, from libiberty.
92024
92025 2000-05-06  Jim Meyering  <meyering@lucent.com>
92026
92027         * lib/closeout.c (close_stdout_status): Also check for errors on the
92028         stderr stream.
92029
92030 2000-05-05  Jim Meyering  <meyering@lucent.com>
92031
92032         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
92033         AC_SEARCH_LIBS call for clock_gettime.
92034         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
92035
92036         * m4/search-libs.m4: Update from autoconf.
92037
92038         su doesn't work on Solaris 2.6.
92039         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
92040         <shadow.h>.  Reported by Dragos Harabor.
92041
92042 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
92043
92044         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
92045         memcpy instead of xmalloc, xrealloc, path_concat.
92046         (locale_charset): Treat empty environment variables as absent.
92047         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
92048
92049 2000-05-04  Jim Meyering  <meyering@lucent.com>
92050
92051         * lib/getopt.c: Update from glibc.
92052         * lib/obstack.c: Likewise.
92053         * lib/obstack.h: Likewise.
92054         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
92055         file
92056
92057         * lib/regex.h: Likewise.
92058         * lib/strndup.c: Likewise.
92059         * lib/strnlen.c: New file, from glibc.
92060
92061 2000-05-03  Jim Meyering  <meyering@lucent.com>
92062
92063         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
92064
92065 2000-05-02  Paul Eggert  <eggert@twinsun.com>
92066
92067         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
92068         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
92069         compile-time test, rather than inspecting host and OS, to
92070         decide whether to define _LARGEFILE_SOURCE.
92071
92072 2000-05-01  Jim Meyering  <meyering@lucent.com>
92073
92074         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
92075
92076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
92077         Based on a patch from Bruno Haible.
92078
92079 2000-05-01  Jim Meyering  <meyering@lucent.com>
92080
92081         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
92082
92083 2000-04-29  Jim Meyering  <meyering@lucent.com>
92084
92085         * lib/path-concat.c: Declare strdup only if it's not defined.
92086         * lib/canon-host.c: Likewise.
92087
92088 2000-04-28  Jim Meyering  <meyering@lucent.com>
92089
92090         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
92091         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
92092         is included first, then limits.h is included by locale.h by libintl.h.
92093         From John David Anglin.
92094
92095 2000-04-25  Jim Meyering  <meyering@lucent.com>
92096
92097         * lib/makepath.c (S_IRWXUGO): Define.
92098         (make_path): Always perform explicit chmod if MODE specifies any
92099         of the `special' permission bits.  Prompted by a bug report against
92100         install from Mate Wierdl and Joost van Baal.
92101
92102 2000-04-18  Jim Meyering  <meyering@lucent.com>
92103
92104         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
92105         (jm_PREREQ): Use it.
92106
92107 2000-04-18  Jim Meyering  <meyering@lucent.com>
92108
92109         * lib/README: New file.
92110
92111         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
92112         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
92113
92114 2000-04-17  Jim Meyering  <meyering@lucent.com>
92115
92116         Get it right :-)
92117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
92118         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
92119         Suggestion from Akim Demaille.
92120
92121 2000-04-17  Jim Meyering  <meyering@lucent.com>
92122
92123         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
92124         the definition of it to rpl_strftime also defined-away the system's
92125         declaration.
92126
92127 2000-04-15  Jim Meyering  <meyering@lucent.com>
92128
92129         Use `C' to denote so-called `contiguous' files, the same way
92130         that tar does.
92131         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
92132         (ftypelet): Use S_ISCTG.
92133         From Michael Deutschmann.
92134
92135 2000-04-14  Jim Meyering  <meyering@lucent.com>
92136
92137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
92138         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
92139         clobbered.
92140
92141 2000-04-14  Jim Meyering  <meyering@lucent.com>
92142
92143         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
92144
92145 2000-04-13  Jim Meyering  <meyering@lucent.com>
92146
92147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
92148         AH_VERBATIM to insert required #ifndef into config.h.in.
92149         Suggestion from Akim Demaille.
92150
92151 2000-04-12  Jim Meyering  <meyering@lucent.com>
92152
92153         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
92154         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
92155         Christian Krackowizer.
92156
92157         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
92158         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
92159         (AC_SYS_LARGEFILE): Require.
92160         (AM_C_PROTOTYPES): Require.
92161
92162 2000-04-08  Jim Meyering  <meyering@lucent.com>
92163
92164         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
92165         names don't conflict.  Reported by Eli Zaretskii.
92166
92167 2000-04-07  Jim Meyering  <meyering@lucent.com>
92168
92169         * lib/putenv.c: Move inclusion of errno.h so it follows that of
92170         sys/types.h, to work around system header problems on AIX 3.2.5.
92171         From Bruno Haible.
92172
92173 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
92174
92175         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
92176         bug.  Deal with the different error behavior of Irix iconv.
92177
92178 2000-04-05  Paul Eggert  <eggert@twinsun.com>
92179
92180         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
92181         IRIX if the installer said otherwise.
92182
92183 2000-04-05  Jim Meyering  <meyering@lucent.com>
92184
92185         Portability tweaks required for ultrix4.3.
92186         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
92187         (jm_CHECK_DECLS): Add getutent to the list of functions.
92188         (_jm_DECL_HEADERS): Add utmpx.h.
92189         From John David Anglin.
92190
92191         * m4/strftime.m4: Back out the 2000-04-02 change.
92192         Instead of that change, simply undefine putenv in the test program.
92193
92194 2000-04-05  Jim Meyering  <meyering@lucent.com>
92195
92196         Portability tweaks required for ultrix4.3.
92197         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
92198         getutent.
92199         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
92200         * lib/canon-host.c: Declare strdup.
92201         * lib/path-concat.c: Likewise.
92202         From John David Anglin.
92203
92204 2000-04-04  Jim Meyering  <meyering@lucent.com>
92205
92206         Be more DOS 8.3-friendly.
92207         * lib/ref-add.sin: Renamed from ref-add.sed.in.
92208         * lib/ref-del.sin: Renamed from ref-del.sed.in.
92209         * lib/Makefile.am: Reflect renaming.
92210         Reported by Eli Zaretskii.
92211
92212         Use a temporary file name that won't clash with `charset.alias'
92213         in the DOS 8.3 name space.
92214         * lib/Makefile.am (charset_tmp): Define.
92215         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
92216         (uninstall-local): Likewise.
92217         Reported by Eli Zaretskii.
92218
92219 2000-04-03  Jim Meyering  <meyering@lucent.com>
92220
92221         * m4/gettext.m4: Fix typo in comment.
92222
92223         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
92224         textutils/configure.in).  Suggestion from Paul Eggert.
92225         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
92226
92227 2000-04-02  Paul Eggert  <eggert@twinsun.com>
92228
92229         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
92230         variable in the shell rather than using putenv, which isn't
92231         portable.  This avoids the configure-time inter-test dependency
92232         on the potentially-renamed putenv function.
92233
92234 2000-03-30  Paul Eggert  <eggert@twinsun.com>
92235
92236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
92237         before checking struct stat.st_blksize, so that
92238         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
92239
92240 2000-03-29  Paul Eggert  <eggert@twinsun.com>
92241
92242         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
92243         since strftime.c uses HAVE_STRFTIME to decide whether to use
92244         the underlying strftime.
92245
92246 2000-03-29  Paul Eggert  <eggert@twinsun.com>
92247
92248         * lib/time/strftime.c (my_strftime): Make sure we call the system
92249         strftime, not ourselves, when invoking the underlying strftime.
92250
92251 2000-03-24  Jim Meyering  <meyering@lucent.com>
92252
92253         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
92254         (charset_alias): Define.
92255         (install-exec-local): Factor out common code.
92256         (uninstall-local): Split lines longer than 80.
92257         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
92258         (SUFFIXES): Define.
92259         (.sed.in.sed): New rule.  Don't redirect directly to $@.
92260         (CLEANFILES): Add ref-add.sed and ref-del.sed.
92261
92262 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
92263
92264         * lib/config.charset: Output a line containing "Packages using this
92265         file".
92266         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
92267         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
92268         ref-del.sed): New rules.
92269
92270 2000-03-17  Jim Meyering  <meyering@lucent.com>
92271
92272         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
92273         Otherwise, include <strings.h>
92274
92275 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
92276
92277         * lib/unicodeio.c (utf8_wctomb): New function.
92278         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
92279         format instead of in UCS-4 with platform dependent endianness.
92280
92281 2000-03-10  Jim Meyering  <meyering@lucent.com>
92282
92283         * m4/lib-check.m4: Look for getspnam in -lgen, too.
92284         From Marco Franzen.
92285
92286 2000-03-07  Paul Eggert  <eggert@twinsun.com>
92287
92288         * lib/savedir.c (savedir): Work even if directory size is
92289         negative; this can happen with some screwy NFS configurations.
92290
92291 2000-03-06  Jim Meyering  <meyering@lucent.com>
92292
92293         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
92294         if it's NULL (because we ran out of memory).  From Bruno Haible.
92295
92296 2000-03-05  Jim Meyering  <meyering@lucent.com>
92297
92298         * lib/localcharset.c ("path-concat.h"): Include.
92299         (get_charset_aliases): Use path_concat instead of ANSI string
92300         concatenation.
92301
92302         * lib/unicodeio.h (PARAMS): Define.
92303         Use it to guard prototype.
92304
92305 2000-03-04  Jim Meyering  <meyering@lucent.com>
92306
92307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
92308         for lib/localcharset.c.
92309
92310 2000-03-04  Jim Meyering  <meyering@lucent.com>
92311
92312         * lib/Makefile.am (install-exec-local): Create $(libdir) before
92313         installing into it.
92314         (uninstall-local): Uncomment this rule so `make distcheck' works
92315         once again.
92316
92317         * lib/unicodeio.c (<errno.h>): Include it.
92318         (errno): Declare if not defined.
92319
92320         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
92321
92322         * lib/config.charset: New version, incorporating remarks from a linux
92323         i18n mailing list.  From Bruno Haible.
92324
92325 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
92326
92327         * m4/codeset.m4: New file.
92328         * m4/iconv.m4: New file.
92329         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
92330
92331 2000-03-03  Jim Meyering  <meyering@lucent.com>
92332
92333         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
92334
92335 2000-03-02  Jim Meyering  <meyering@lucent.com>
92336
92337         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
92338         the messages come out on separate lines.
92339
92340         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
92341         rather than jm_CHECK_DECLARATIONS.
92342         * m4/decl.m4: Remove now-unused file.
92343
92344         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
92345         geteuid.
92346
92347 2000-03-02  Jim Meyering  <meyering@lucent.com>
92348
92349         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
92350
92351 2000-03-01  Jim Meyering  <meyering@lucent.com>
92352
92353         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
92354         * lib/unicodeio.c: Likewise.
92355
92356 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
92357
92358         * lib/config.charset: New file.
92359         * lib/localcharset.c: New file.
92360         * lib/unicodeio.h, lib/unicodeio.c: New files.
92361         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
92362         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
92363         (noinst_HEADERS): Add unicodeio.h.
92364         (all-local, install-exec-local, charset.alias): New targets.
92365
92366 2000-02-28  Paul Eggert  <eggert@twinsun.com>
92367
92368         * lib/quotearg.c (ALERT_CHAR): New macro.
92369         (quotearg_buffer_restyled): Use it.
92370
92371 2000-02-27  Jim Meyering  <meyering@lucent.com>
92372
92373         * m4/check-decl.m4: Add getenv to the list.
92374
92375 2000-02-27  Jim Meyering  <meyering@lucent.com>
92376
92377         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
92378         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
92379
92380         * lib/backupfile.c: Guard inclusion of stdlib.h with
92381         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
92382         Declare malloc if needed.
92383
92384         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
92385         `#ifndef HAVE_DECL..'
92386         now that autoconf always defines the HAVE_DECL_ symbols.
92387         * lib/human.c: Likewise.
92388         * lib/same.c: Likewise.
92389         * lib/strtoumax.c: Likewise.
92390
92391         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
92392         declaration check was not run.
92393         * lib/hash.c: Likewise.
92394         * lib/human.c: Likewise.
92395         * lib/same.c: Likewise.
92396         * lib/strtoumax.c: Likewise.
92397
92398         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
92399         `.', then first look up the entire `.'-containing string as a login
92400         name.
92401
92402 2000-02-23  Jim Meyering  <meyering@lucent.com>
92403
92404         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
92405         in place of my hack.
92406
92407 2000-02-18  Paul Eggert  <eggert@twinsun.com>
92408
92409         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
92410         (textint): New typedef.
92411         (parser_control): Member year changed from int to textint.
92412         All uses changed.
92413         (YYSTYPE): Removed; replaced by %union with int and textint members.
92414         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
92415         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
92416         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
92417         (tSNUMBER, tUNUMBER): Now of type <textintval>.
92418         (date, number, to_year): Use width of number in digits, not its value,
92419         to determine whether it's a 2-digit year, or a 2-digit time.
92420         (yylex): Store number of digits of numeric tokens.
92421         Reported by John Kendall.
92422
92423         (parser_control): Changed from struct parser_control to typedef (for
92424         consistency).  All uses changed.
92425
92426         (tID): Removed; not used.
92427         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
92428
92429 2000-02-14  Paul Eggert  <eggert@twinsun.com>
92430
92431         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
92432         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
92433
92434 2000-02-12  Jim Meyering  <meyering@lucent.com>
92435
92436         * lib/userspec.c (ISDIGIT): Define it.
92437         (isdigit): Remove definition.
92438         (is_number): Use ISDIGIT, not isdigit.
92439         <libintl.h>: Include.
92440         (_ and N_): Define.
92441         (parse_user_spec): Mark translatable strings.
92442
92443 2000-02-10  Jim Meyering  <meyering@lucent.com>
92444
92445         With these changes, nanosleep.[ch] are finally enough like the other
92446         lib/* replacement files to compile on a few more losing systems.
92447
92448         * lib/nanosleep.h: Don't include config.h.
92449         Remove prototype from declaration of nanosleep.
92450         (PARAMS): Remove now-unneeded definition.
92451         * lib/nanosleep.c: #undef nanosleep.
92452         (rpl_nanosleep): Rename from nanosleep.
92453
92454 2000-02-10  Jim Meyering  <meyering@lucent.com>
92455
92456         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
92457         gnu_nanosleep to rpl_nanosleep.
92458
92459 2000-02-09  Jim Meyering  <meyering@lucent.com>
92460
92461         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
92462         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
92463
92464 2000-02-08  Akim Demaille  <akim@epita.fr>
92465
92466         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
92467         `[' and `]' and remove uses of `changequote'.
92468         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
92469         (AC_SYS_LARGEFILE): Likewise.
92470         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
92471         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
92472         of changequote.
92473         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
92474         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
92475         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
92476         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
92477
92478 2000-02-05  Jim Meyering  <meyering@lucent.com>
92479
92480         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
92481         Remove explicit use of AC_HEADER_TIME.  It is required by
92482         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
92483         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
92484         in autoconf whereby the expansion of the latter ended up preceding
92485         the expansion of its prerequisite, AC_HEADER_TIME.
92486         Reported by Volker Borchert.
92487
92488 2000-02-03  Jim Meyering  <meyering@lucent.com>
92489
92490         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
92491
92492 2000-02-03  Jim Meyering  <meyering@lucent.com>
92493
92494         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
92495         rather than with `#if HAVE_UTMPNAME'.
92496
92497 2000-02-02  Jim Meyering  <meyering@lucent.com>
92498
92499         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
92500         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
92501         Reported by Eli Zaretskii.
92502
92503 2000-02-01  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
92506
92507 2000-01-31  Jim Meyering  <meyering@lucent.com>
92508
92509         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
92510         functions.  Add the time.h and sys/time.h headers along with the
92511         AC_REQUIRE'ment of AC_HEADER_TIME.
92512
92513 2000-01-31  Jim Meyering  <meyering@lucent.com>
92514
92515         * lib/nanosleep.h (nanosleep): Guard declaration with
92516         `#if ! HAVE_DECL_NANOSLEEP'.
92517         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
92518         the declaration in that vendor's sys/timers.h.
92519         Reported by Christian Krackowizer.
92520
92521         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
92522         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
92523         (ISPRINT): Likewise.
92524         Reported by Tom Tromey.
92525
92526 2000-01-30  Jim Meyering  <meyering@lucent.com>
92527
92528         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
92529
92530         * m4/prereq.m4 (utmp_includes): Define.
92531         Check for ut_user and ut_name members in both struct utmpx
92532         and struct utmp.
92533
92534 2000-01-30  Jim Meyering  <meyering@lucent.com>
92535
92536         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
92537         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
92538         header files where only utmpx.ut_user is declared.
92539
92540         * lib/readutmp.h (UT_USER): Define.
92541
92542 2000-01-29  Jim Meyering  <meyering@lucent.com>
92543
92544         * m4/lib-check.m4: New file containing library-related checks from
92545         fileutils and sh-utils (textutils had none).
92546
92547 2000-01-28  Jim Meyering  <meyering@lucent.com>
92548
92549         * m4/perl.m4: Change format of warning message to look more like that
92550         from the missing script.  Suggestion from François Pinard.
92551
92552 2000-01-25  Jim Meyering  <meyering@lucent.com>
92553
92554         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
92555         well as time.h in the compile check.
92556         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
92557         Fix typo in cross-compiling case: s/yes/no/.
92558
92559 2000-01-23  Jim Meyering  <meyering@lucent.com>
92560
92561         * m4/jm-macros.m4: Move df-related tests here from
92562         fileutils/configure.in
92563
92564         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
92565         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
92566
92567         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
92568         s/space/ac_fsusage_space/.
92569         (jm_FILE_SYSTEM_USAGE): Take two parameters.
92570
92571         * m4/ftruncate.m4: New file (derived from part of
92572         fileutils/configure.in).
92573         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
92574         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
92575
92576         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
92577         AC_SUBST these here, rather than just in sh-util/configure.in, so
92578         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
92579         all the same.
92580         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
92581         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
92582         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
92583         (AC_SUBST(POW_LIBM)): Likewise.
92584         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
92585
92586 2000-01-23  Jim Meyering  <meyering@lucent.com>
92587
92588         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
92589         obstack.c.
92590
92591 2000-01-22  Jim Meyering  <meyering@lucent.com>
92592
92593         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
92594
92595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
92596
92597         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
92598         configure.in
92599         (AC_CHECK_HEADERS): Likewise for sh-utils.
92600         (AC_CHECK_HEADERS): Likewise for textutils.
92601         Merge the three lists of headers.
92602
92603         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
92604         from fileutils' configure.in.
92605
92606         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
92607         code. Moved tests into their own function (_jm_DECL_HEADERS) in
92608         check-decl.m4.
92609
92610         * m4/check-decl.m4: Use #if rather than #ifdef.
92611         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
92612         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
92613         (_jm_DECL_HEADERS): Define new function.
92614         (jm_CHECK_DECLARATIONS): Require it.
92615
92616 2000-01-22  Jim Meyering  <meyering@lucent.com>
92617
92618         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
92619         [! HAVE_DECL_STRTOULL]: Declare strtoull.
92620         Required for some AIX systems.  Reported by Christian Krackowizer.
92621         [TESTING] (main): New function.
92622
92623         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
92624         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
92625         letters.
92626
92627         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
92628         iswprint.
92629
92630         * lib/strverscmp.c (ISDIGIT): Define.
92631         (strverscmp): Use ISDIGIT, not isdigit.
92632
92633 2000-01-19  Jim Meyering  <meyering@lucent.com>
92634
92635         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
92636         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
92637         defines `struct timespec' in <sys/time.h>
92638
92639         * m4/c-bs-a.m4: Remove uses of changequote altogether.
92640         Thanks to Akim for explaining.
92641
92642 2000-01-17  Paul Eggert  <eggert@twinsun.com>
92643
92644         * lib/nanosleep.c (nanosleep):
92645         Don't use SA_INTERRUPT to decide whether to call sigaction, as
92646         POSIX.1 doesn't require SA_INTERRUPT and some systems
92647         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
92648         it's been part of POSIX.1 since day 1 (in 1988).
92649
92650 2000-01-17  Jim Meyering  <meyering@lucent.com>
92651
92652         * lib/interlock: Remove unused file.  Reported by François Pinard.
92653
92654 2000-01-16  Paul Eggert  <eggert@twinsun.com>
92655
92656         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
92657         alert, backslash, formfeed, and vertical tab unnecessarily in
92658         shell quoting style.
92659
92660 2000-01-16  Jim Meyering  <meyering@lucent.com>
92661
92662         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
92663         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
92664         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
92665         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
92666
92667 2000-01-16  Jim Meyering  <meyering@lucent.com>
92668
92669         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
92670         because the latter didn't work.
92671
92672 2000-01-15  Jim Meyering  <meyering@lucent.com>
92673
92674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
92675         (AC_REPLACE_FUNCS): Add memcpy and memset.
92676         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
92677         Add strpbrk.
92678         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
92679
92680 2000-01-12  Jim Meyering  <meyering@lucent.com>
92681
92682         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
92683         (jm_PREREQ): Use it.
92684         (jm_PREREQ_READUTMP): New macro.
92685         (jm_PREREQ): Use it.
92686
92687 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92688
92689         Quote multibyte characters correctly.
92690         * m4/c-bs-a.m4: New file.
92691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
92692         (jm_PREREQ): Use it.
92693
92694 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92695
92696         * m4/uintmax_t.m4: Port to autoconf 2.13.
92697
92698 2000-01-08  Jim Meyering  <meyering@ascend.com>
92699
92700         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
92701         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
92702
92703 2000-01-04  Jim Meyering  <meyering@ascend.com>
92704
92705         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
92706         jm_STRUCT_DIRENT_D_TYPE.
92707         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
92708         jm_STRUCT_DIRENT_D_INO.
92709         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
92710         jm_STRUCT_UTIMBUF.
92711         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
92712         renamings.
92713         * m4/utime.m4: Likewise.
92714
92715         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
92716         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
92717
92718 2000-01-03  Paul Eggert  <eggert@twinsun.com>
92719
92720         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
92721         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
92722
92723 2000-01-02  Jim Meyering  <meyering@ascend.com>
92724
92725         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
92726         remember if this is necessary.
92727
92728 1999-12-26  Jim Meyering  <meyering@ascend.com>
92729
92730         * m4/jm-macros.m4: Use it here.
92731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
92732
92733 1999-12-23  Jim Meyering  <meyering@ascend.com>
92734
92735         * m4/jm-macros.m4: Check for clock_gettime (moved from
92736         fileutils/configure.in)
92737         Check for gettimeofday.
92738
92739 1999-12-20  Jim Meyering  <meyering@ascend.com>
92740
92741         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
92742         autoconf-2.14a-1999-12-20.
92743
92744 1999-12-19  Jim Meyering  <meyering@ascend.com>
92745
92746         * m4/lstat-slash.m4: New file.
92747         * m4/jm-macros.m4: Use the new macro:
92748         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92749
92750 1999-12-07  Jim Meyering  <meyering@ascend.com>
92751
92752         * m4/perl.m4: Require that File::Compare be available, too.
92753         Too many systems seem to lack it.
92754
92755         * m4/strftime.m4: Add checks for most of the cpp macros tested in
92756         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
92757
92758 1999-11-18  Paul Eggert  <eggert@twinsun.com>
92759
92760         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
92761         problem with the QNX 4.25 shell, which doesn't propagate exit
92762         status of failed commands inside shell assignments.
92763
92764 1999-11-17  Jim Meyering  <meyering@ascend.com>
92765
92766         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
92767
92768 1999-11-07  Jim Meyering  <meyering@ascend.com>
92769
92770         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
92771
92772 1999-11-06  Jim Meyering  <meyering@ascend.com>
92773
92774         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
92775         * m4/jm-macros.m4 (jm_MACROS): Use it here.
92776
92777 1999-11-05  Jim Meyering  <meyering@ascend.com>
92778
92779         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
92780         configure.in of textutils, fileutils, and sh-utils into this one
92781         (shared between those packages) file.
92782         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
92783         AC_STRUCT_ST_BLKSIZE.
92784
92785 1999-11-03  Jim Meyering  <meyering@ascend.com>
92786
92787         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
92788         of AC_CHECK_TYPE checks includes unistd.h.
92789         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
92790         Suggestion from Akim Demaille.
92791
92792 1999-10-30  Jim Meyering  <meyering@ascend.com>
92793
92794         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
92795         m4-quoted string.
92796         * m4/ls-mntd-fs.m4: Likewise.
92797         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
92798         * m4/jm-winsz1.m4: Likewise.
92799
92800         * m4/const.m4: Remove file, since the fix made it into the experimental
92801         version of autoconf.
92802         * m4/mktime.m4: Likewise.
92803
92804         * m4/check-type.m4: Remove file, now that the latest version of
92805         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92806
92807         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92808         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92809         AC_CHECK_TYPE.
92810
92811 1999-10-04  Jim Meyering  <meyering@ascend.com>
92812
92813         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92814
92815 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92816
92817         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92818         2.95.1 bug with HP-UX 10.20.
92819
92820 1999-09-17  Jim Meyering  <meyering@ascend.com>
92821
92822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92823         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92824         due to missing strdup (against sh-utils-2.0).
92825
92826 1999-08-29  Jim Meyering  <meyering@ascend.com>
92827
92828         * m4/jm-macros.m4: Require jm_BISON.
92829         * m4/bison.m4: New file.
92830
92831 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92832
92833         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92834         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92835
92836 1999-08-05  Jim Meyering  <meyering@ascend.com>
92837
92838         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92839         to avoid conflicts with `conftest' on 8+3 filesystems.
92840         Suggestion from Eli Zaretskii.
92841
92842 1999-08-04  Jim Meyering  <meyering@ascend.com>
92843
92844         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92845         fileutils and sh-utils (textutils's getline test was inadequate).
92846         (AM_FUNC_GETLINE): Run this test.
92847         (AC_CHECK_FUNCS): Check for getdelim.
92848         Reported by Bob Proulx.
92849
92850 1999-08-02  Jim Meyering  <meyering@ascend.com>
92851
92852         * m4/jm-macros.m4: Add a comment.
92853
92854 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92855
92856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92857         <inttypes.h> defines strtoumax as a macro (and not as a
92858         function).
92859
92860 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92861
92862         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92863         that we can shift, multiply and divide unsigned long long
92864         values; Ultrix cc can't do it.
92865
92866 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92867
92868         * m4/mktime.m4: New file, which is a preview of what should appear
92869         in the next public autoconf release.
92870
92871 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92872
92873         * m4/lfs.m4: Remove this file.
92874         * m4/largefile.m4: New file.  It contains the old contents of
92875         lfs.m4, except that all names with prefix AC_LFS have been
92876         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92877         compatible with future autoconf versions.  Also, some minor m4
92878         quoting problems have been fixed.
92879
92880 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92881
92882         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92883         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92884         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92885         and simplify the shell code.
92886
92887 1999-08-01  Jim Meyering  <meyering@ascend.com>
92888
92889         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92890         m4.
92891
92892 1999-07-20  Jim Meyering  <meyering@ascend.com>
92893
92894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92895
92896 1999-07-15  Jim Meyering  <meyering@ascend.com>
92897
92898         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92899
92900 1999-05-22  Jim Meyering  <meyering@ascend.com>
92901
92902         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92903
92904 1999-05-20  Jim Meyering  <meyering@ascend.com>
92905
92906         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92907         Add a colon after each `then' in case $4 is empty.
92908
92909 1999-05-16  Jim Meyering  <meyering@ascend.com>
92910
92911         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92912
92913 1999-05-10  Jim Meyering  <meyering@ascend.com>
92914
92915         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92916
92917         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92918         AC_FUNC_MKTIME.
92919
92920 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92921
92922         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92923
92924 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92925
92926         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92927         not CPPFLAGS, so that linking works correctly in IRIX.
92928
92929 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92930
92931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92932
92933 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92934
92935         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92936         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92938         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92939         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92940
92941         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92942
92943 1999-04-20  Jim Meyering  <meyering@ascend.com>
92944
92945         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92946         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92947         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92948
92949 1999-04-18  Jim Meyering  <meyering@ascend.com>
92950
92951         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92952         * m4/jm-macros.m4: Use it.
92953
92954 1999-04-06  Jim Meyering  <meyering@ascend.com>
92955
92956         * m4/strftime.m4: Remove test for %f.
92957
92958 1999-03-29  Jim Meyering  <meyering@ascend.com>
92959
92960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92961         superset of the AC_TYPE_* checks in the textutils, fileutils,
92962         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92963         AC_TYPE_PID_T.
92964
92965 1999-03-28  Jim Meyering  <meyering@ascend.com>
92966
92967         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92968         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92969         replaced e.g., in the *.sh files of the sh-utils.
92970
92971 1999-03-20  Jim Meyering  <meyering@ascend.com>
92972
92973         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92974         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92975         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92976
92977 1999-03-19  Jim Meyering  <meyering@ascend.com>
92978
92979         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92980
92981 1999-03-12  Jim Meyering  <meyering@ascend.com>
92982
92983         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92984
92985 1999-03-07  Jim Meyering  <meyering@ascend.com>
92986
92987         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92988         declared.
92989
92990 1999-02-17  Jim Meyering  <meyering@ascend.com>
92991
92992         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92993         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92994
92995 1999-02-07  Jim Meyering  <meyering@ascend.com>
92996
92997         * m4/group-member.m4: New file -- extracted from sh-utils'
92998         configure.in.
92999
93000         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
93001         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
93002
93003 1999-02-06  Jim Meyering  <meyering@ascend.com>
93004
93005         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
93006         * m4/fnmatch.m4: Likewise.
93007         * m4/getgroups.m4: Likewise.
93008         * m4/lstat.m4: Likewise.
93009         * m4/malloc.m4: Likewise.
93010         * m4/putenv.m4: Likewise.
93011         * m4/realloc.m4: Likewise.
93012         * m4/regex.m4: Likewise.
93013         * m4/stat.m4: Likewise.
93014         * m4/strftime.m4: Likewise.
93015         Suggestion from Alain Magloire.
93016
93017         * m4/chown.m4: Use `.$ac_objext', not `.o'.
93018         * m4/fnmatch.m4: Likewise.
93019         * m4/getgroups.m4: Likewise.
93020         * m4/getline.m4: Likewise.
93021         * m4/lstat.m4: Likewise.
93022         * m4/malloc.m4: Likewise.
93023         * m4/memcmp.m4: Likewise.
93024         * m4/putenv.m4: Likewise.
93025         * m4/realloc.m4: Likewise.
93026         * m4/regex.m4: Likewise.
93027         * m4/stat.m4: Likewise.
93028         * m4/strftime.m4: Likewise.
93029         Suggestion from Alain Magloire.
93030
93031         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
93032         an argument.
93033
93034         * m4/regex.m4: Add a run-time Test for proper operation of
93035         re_compile_pattern.
93036
93037 1999-01-31  Jim Meyering  <meyering@ascend.com>
93038
93039         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
93040
93041 1999-01-30  Jim Meyering  <meyering@ascend.com>
93042
93043         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
93044
93045         * m4/jm-mktime.m4: Make this a wrapper around the official
93046         AM_FUNC_MKTIME rather than my private copy, now that the official one
93047         is up to date.
93048         * m4/mktime.m4: Remove file.
93049
93050         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
93051         * m4/uptime.m4: Likewise.
93052         * m4/uintmax_t.m4: Likewise.
93053
93054 1999-01-28  Jim Meyering  <meyering@ascend.com>
93055
93056         * m4/jm-macros.m4: Use jm_AFS.
93057         * m4/afs.m4: New file (from fileutils' configure.in).
93058
93059         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
93060         * m4/chown.m4: Likewise.
93061         * m4/d-ino.m4: Likewise.
93062         * m4/d-type.m4: Likewise.
93063         * m4/fnmatch.m4: Likewise.
93064         * m4/getgroups.m4: Likewise.
93065         * m4/gettext.m4: Likewise.
93066         * m4/jm-mktime.m4: Likewise.
93067         * m4/jm-winsz2.m4: Likewise.
93068         * m4/lcmessage.m4: Likewise.
93069         * m4/ls-mntd-fs.m4: Likewise.
93070         * m4/malloc.m4: Likewise.
93071         * m4/memcmp.m4: Likewise.
93072         * m4/putenv.m4: Likewise.
93073         * m4/realloc.m4: Likewise.
93074         * m4/st_mtim.m4: Likewise.
93075         * m4/strftime.m4: Likewise.
93076
93077 1999-01-16  Jim Meyering  <meyering@ascend.com>
93078
93079         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
93080         (ARGMATCH_DIE_DECL): Define.
93081
93082 1999-01-12  Jim Meyering  <meyering@ascend.com>
93083
93084         * m4/Makefile.am.in: Rewrite to avoid using fmt.
93085         Reported by Lars Hecking.
93086
93087 1999-01-10  Jim Meyering  <meyering@ascend.com>
93088
93089         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
93090         gross kludge.
93091         * m4/inttypes_h.m4: Likewise.
93092         * m4/lstat.m4: Likewise.
93093         * m4/malloc.m4: Likewise.
93094         * m4/readdir.m4: Likewise.
93095         * m4/realloc.m4: Likewise.
93096         * m4/st_dm_mode.m4: Likewise.
93097         * m4/stat.m4: Likewise.
93098         * m4/utimbuf.m4: Likewise.
93099         * m4/utimes.m4: Likewise.
93100
93101         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
93102         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
93103         comments in config.h.in are meaningful.
93104
93105         * m4/jm-macros.m4: Require autoconf-2.13 here.
93106
93107         * m4/regex.m4: By default, don't use the included regex.c on systems
93108         with glibc 2.  Suggestion from Uli Drepper.
93109
93110 1999-01-02  Jim Meyering  <meyering@ascend.com>
93111
93112         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
93113
93114 1998-12-18  Jim Meyering  <meyering@ascend.com>
93115
93116         * m4/Makefile.am.in (Makefile.am): Simplify rule.
93117         Based on a suggestion from Lars Hecking.
93118
93119 1998-11-16  Paul Eggert  <eggert@twinsun.com>
93120
93121         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
93122
93123 1998-11-16  Jim Meyering  <meyering@ascend.com>
93124
93125         * m4/lfs.m4: Double-quote the `uname...` expression.
93126
93127 1998-11-14  Jim Meyering  <meyering@ascend.com>
93128
93129         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
93130         * m4/stat.m4: Likewise.
93131
93132 1998-11-03  Jim Meyering  <meyering@ascend.com>
93133
93134         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
93135         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
93136
93137 1998-10-18  Jim Meyering  <meyering@ascend.com>
93138
93139         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
93140
93141 1998-10-17  Jim Meyering  <meyering@ascend.com>
93142
93143         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
93144         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
93145         calls for those previously hard-coded headers.  Instead, take a new
93146         parameter.
93147         (jm_CHECK_DECLARATIONS): Reflect interface change.
93148         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
93149         (jm_CHECK_DECL_LOCALTIME_R): New macro.
93150
93151         * m4/mktime.m4: Test for spring-forward gap before long-running test.
93152
93153 1998-10-14  Jim Meyering  <meyering@ascend.com>
93154
93155         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
93156         instead of "TZ=America/Vancouver".  From Paul Eggert.
93157
93158 1998-10-11  Jim Meyering  <meyering@ascend.com>
93159
93160         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
93161         This adds a test for a recently added compatibility fix for mktime.c.
93162         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
93163
93164 1998-09-27  Jim Meyering  <meyering@ascend.com>
93165
93166         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
93167
93168         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
93169         ../configure.in, including a change from Gordon Matzigkeit to allow
93170         cross-compiling for the Hurd.
93171
93172         * m4/glibc.m4: New file/macro to test for the GNU C Library
93173         versions 1 and 2.  From Gordon Matzigkeit.
93174         Indent.
93175
93176 1998-09-21  Jim Meyering  <meyering@ascend.com>
93177
93178         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
93179
93180 1998-08-18  Paul Eggert  <eggert@twinsun.com>
93181
93182         Port nanosecond-resolution times to UnixWare 2.1.2 and
93183         pedantic Solaris 2.6.
93184
93185         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
93186         AC_STRUCT_ST_MTIM.
93187         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
93188         Generate name of ns member, instead of just 1 or undef.
93189         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
93190
93191 1998-08-15  Jim Meyering  <meyering@ascend.com>
93192
93193         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
93194         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
93195         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
93196         instead of jm_TYPE_SSIZE_T.
93197
93198 1998-08-12  Jim Meyering  <meyering@ascend.com>
93199
93200         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
93201
93202 1998-08-02  Jim Meyering  <meyering@ascend.com>
93203
93204         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
93205         in acconfig.h manually.
93206
93207 1998-07-31  Paul Eggert  <eggert@twinsun.com>
93208
93209         * m4/st_mtim.m4: New file.
93210
93211 1998-07-28  Jim Meyering  <meyering@ascend.com>
93212
93213         * m4/utimes.m4: Undef stat.
93214
93215 1998-07-25  Jim Meyering  <meyering@ascend.com>
93216
93217         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
93218         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
93219
93220 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
93221
93222         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
93223         uid and gid actually remain unchanged.
93224
93225 1998-07-07  Jim Meyering  <meyering@ascend.com>
93226
93227         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
93228
93229 1998-07-04  Jim Meyering  <meyering@ascend.com>
93230
93231         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
93232         to prove that this macro can be used in packages without regex.c.
93233
93234 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
93235
93236         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
93237         is to be used.
93238
93239 1998-07-03  Jim Meyering  <meyering@ascend.com>
93240
93241         * m4/gettext.m4: Add -lintl if it's found to be necessary.
93242
93243         * m4/gettext.m4: New file -- from gettext-0.10.35.
93244         * m4/lcmessage.m4: Likewise.
93245         * m4/progtest.m4: Likewise.
93246
93247         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
93248         * m4/jm-macros.m4: Require the new macro.
93249
93250 1998-06-29  Jim Meyering  <meyering@ascend.com>
93251
93252         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
93253         for the definition of NGROUPS (used in a system header included
93254         by sys/mount.h).
93255
93256 1998-06-28  Jim Meyering  <meyering@ascend.com>
93257
93258         * m4/ls-mntd-fs.m4: New file.
93259         * m4/fstypename.m4: New file.
93260
93261         * m4/jm-macros.m4: Require the new macro.
93262         * m4/jm-glibc-io.m4: New file.
93263
93264 1998-05-19  Jim Meyering  <meyering@ascend.com>
93265
93266         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
93267         * m4/lchown.m4: New file.
93268
93269         * m4/Makefile.am.in: New file.
93270         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
93271
93272 1998-05-14  Jim Meyering  <meyering@ascend.com>
93273
93274         * m4/Makefile.am (EXTRA_DIST): Add them.
93275         * m4/jm-macros.m4: New file.
93276         * m4/utimbuf.m4: New file.
93277
93278 1998-05-12  Jim Meyering  <meyering@ascend.com>
93279
93280         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
93281
93282 1998-05-11  Jim Meyering  <meyering@ascend.com>
93283
93284         * m4/isc-posix.m4: New file.
93285
93286 1998-05-10  Jim Meyering  <meyering@ascend.com>
93287
93288         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
93289
93290 1998-05-09  Jim Meyering  <meyering@ascend.com>
93291
93292         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
93293         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
93294         with automake.
93295
93296         * m4/ssize_t.m4: New file.
93297         * m4/mktime.m4: Remove file -- the new automake has this now.
93298
93299 1998-04-26  Jim Meyering  <meyering@ascend.com>
93300
93301         * m4/assert.m4: New file.
93302         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
93303
93304 1998-04-05  Jim Meyering  <meyering@ascend.com>
93305
93306         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
93307         (jm_PREREQ): Use it here.
93308
93309 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
93310
93311         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
93312         in acconfig.h.
93313
93314 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
93315
93316         * m4/prereq.m4: New file.
93317         * m4/error.m4: New file.
93318         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
93319
93320 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
93321
93322         * m4/getline.m4: Don't set am_cv_func_working_getline before the
93323         cache-check for the same variable -- that defeated the purpose of
93324         the test; the test program was never run.  This was a problem only
93325         on systems with losing getline functions -- HP-UX 10.20 is one.
93326         Reported by Bjorn Helgaas.
93327
93328 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
93329
93330         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
93331
93332 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
93333
93334         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
93335
93336         * m4/const.m4: New file.  Use an initializer in this declaration
93337         typedef int charset[2]; const charset x;
93338         Reported by Bob Glickstein.
93339
93340 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
93341
93342         * m4/chown.m4: Fix reversed types on -1 args to chown.
93343         From Kaveh Ghazi.
93344
93345 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
93346
93347         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
93348         Add lseek and memchr.
93349
93350         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
93351         T.E.Dickey <dickey@clark.net> said that some older preprocessors
93352         have a 20-character limit on names.
93353
93354 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
93355
93356         * m4/inttypes_h.m4: New file.
93357         * m4/uintmax_t.m4: New file.
93358         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
93359
93360
93361         -----
93362
93363         Local Variables:
93364         coding: utf-8
93365         End:
93366
93367         Copyright (C) 1997-2012 Free Software Foundation, Inc.
93368
93369         Copying and distribution of this file, with or without
93370         modification, are permitted provided the copyright notice
93371         and this notice are preserved.