634e107ff29c262c6daa4a090f0de58f232572f9
[gnulib.git] / ChangeLog
1 2012-03-13  Bruno Haible  <bruno@clisp.org>
2
3         Avoid compilation errors with MSVC option -fp:strict.
4         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5         * lib/cbrtf.c: Likewise.
6         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7
8 2012-03-12  Bruno Haible  <bruno@clisp.org>
9
10         uninorm: Don't crash in out-of-memory conditions.
11         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
12         gracefully.
13         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
14         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
15
16 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
17
18         quote: fix syntax-check
19         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
20         also exports quote_quoting_options.
21
22 2012-03-12  Simon Josefsson  <simon@josefsson.org>
23
24         Collapse list of copyright years to ranges.  See
25         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
26         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
27         build-aux/csharpexec.sh.in, build-aux/gnupload,
28         build-aux/install-reloc, build-aux/javacomp.sh.in,
29         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
30         build-aux/move-if-change, build-aux/reloc-ldflags,
31         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
32
33 2012-03-11  Bruno Haible  <bruno@clisp.org>
34
35         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36         * m4/log2f-ieee.m4: New file.
37         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
38         whether log2f works with a minus zero argument. Replace it if not.
39         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40         (Depends-on): Add log2-ieee.
41         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
42         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
43
44         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
45         * m4/log2-ieee.m4: New file.
46         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
47         whether log2 works with a minus zero argument. Replace it if not.
48         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
49         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
50         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
51
52         Tests for module 'log2l-ieee'.
53         * modules/log2l-ieee-tests: New file.
54         * tests/test-log2l-ieee.c: New file.
55
56         New module 'log2l-ieee'.
57         * modules/log2l-ieee: New file.
58
59         Tests for module 'log2-ieee'.
60         * modules/log2-ieee-tests: New file.
61         * tests/test-log2-ieee.c: New file.
62
63         New module 'log2-ieee'.
64         * modules/log2-ieee: New file.
65
66         Tests for module 'log2f-ieee'.
67         * modules/log2f-ieee-tests: New file.
68         * tests/test-log2f-ieee.c: New file.
69         * tests/test-log2-ieee.h: New file.
70
71         New module 'log2f-ieee'.
72         * modules/log2f-ieee: New file.
73
74 2012-03-11  Bruno Haible  <bruno@clisp.org>
75
76         Tests for module 'log2l'.
77         * modules/log2l-tests: New file.
78         * tests/test-log2l.c: New file.
79
80         New module 'log2l'.
81         * lib/math.in.h (log2l): New declaration.
82         * lib/log2l.c: New file.
83         * m4/log2l.m4: New file.
84         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
85         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
86         REPLACE_LOG2L.
87         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
88         REPLACE_LOG2L.
89         * modules/log2l: New file.
90         * tests/test-math-c++.cc: Check the declaration of log2l.
91         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
92         and OSF/1 problems.
93
94 2012-03-11  Bruno Haible  <bruno@clisp.org>
95
96         Tests for module 'log2f'.
97         * modules/log2f-tests: New file.
98         * tests/test-log2f.c: New file.
99
100         New module 'log2f'.
101         * lib/math.in.h (log2f): New declaration.
102         * lib/log2f.c: New file.
103         * m4/log2f.m4: New file.
104         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
106         REPLACE_LOG2F.
107         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
108         REPLACE_LOG2F.
109         * modules/log2f: New file.
110         * tests/test-math-c++.cc: Check the declaration of log2f.
111         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
112         and OSF/1 and Cygwin problems.
113
114 2012-03-11  Bruno Haible  <bruno@clisp.org>
115
116         Tests for module 'log2'.
117         * modules/log2-tests: New file.
118         * tests/test-log2.c: New file.
119         * tests/test-log2.h: New file.
120
121         New module 'log2'.
122         * lib/math.in.h (log2): New declaration.
123         * lib/log2.c: New file.
124         * m4/log2.m4: New file.
125         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
127         REPLACE_LOG2.
128         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
129         REPLACE_LOG2.
130         * modules/log2: New file.
131         * tests/test-math-c++.cc: Check the declaration of log2.
132         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
133         and OSF/1 and Cygwin problems.
134
135 2012-03-11  Bruno Haible  <bruno@clisp.org>
136
137         exp2* tests: More tests.
138         * tests/test-exp2.h (test_function): Test all integral arguments that
139         don't need to overflow or denormalized numbers.
140         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
141         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
142         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
143
144 2012-03-10  Bruno Haible  <bruno@clisp.org>
145
146         log1pl-ieee: Work around test failure on AIX 7.1.
147         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
148
149         log1pl-ieee: Work around test failure on IRIX 6.5.
150         * m4/log1pl-ieee.m4: New file.
151         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
152         test whether log1pl works with a minus zero argument. Replace it if
153         not.
154         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
156         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
157         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
158         (Depends-on): Update conditions.
159         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
160         m4/signbit.m4.
161         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
162         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
163
164         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
165         * m4/log1pf-ieee.m4: New file.
166         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
167         test whether log1pf works with a minus zero argument. Replace it if
168         not.
169         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
170         m4/signbit.m4.
171         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
172         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
173
174         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
175         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
176         (configure.ac): Require gl_FUNC_LOG1PF.
177
178         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
179         * m4/log1p-ieee.m4: New file.
180         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
181         whether log1p works with a minus zero argument. Replace it if not.
182         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
184         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
185         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
186         (Depends-on): Update conditions.
187         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
188         m4/signbit.m4.
189         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
190         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
191
192         Tests for module 'log1pl-ieee'.
193         * modules/log1pl-ieee-tests: New file.
194         * tests/test-log1pl-ieee.c: New file.
195
196         New module 'log1pl-ieee'.
197         * modules/log1pl-ieee: New file.
198
199         Tests for module 'log1p-ieee'.
200         * modules/log1p-ieee-tests: New file.
201         * tests/test-log1p-ieee.c: New file.
202
203         New module 'log1p-ieee'.
204         * modules/log1p-ieee: New file.
205
206         Tests for module 'log1pf-ieee'.
207         * modules/log1pf-ieee-tests: New file.
208         * tests/test-log1pf-ieee.c: New file.
209         * tests/test-log1p-ieee.h: New file.
210
211         New module 'log1pf-ieee'.
212         * modules/log1pf-ieee: New file.
213
214 2012-03-10  Bruno Haible  <bruno@clisp.org>
215
216         Tests for module 'log1pl'.
217         * modules/log1pl-tests: New file.
218         * tests/test-log1pl.c: New file.
219
220         New module 'log1pl'.
221         * lib/math.in.h (log1pl): New declaration.
222         * lib/log1pl.c: New file.
223         * m4/log1pl.m4: New file.
224         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
226         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
227         * modules/log1pl: New file.
228         * tests/test-math-c++.cc: Check the declaration of log1pl.
229         * doc/posix-functions/log1pl.texi: Mention the new module.
230
231 2012-03-10  Bruno Haible  <bruno@clisp.org>
232
233         Tests for module 'log1pf'.
234         * modules/log1pf-tests: New file.
235         * tests/test-log1pf.c: New file.
236
237         New module 'log1pf'.
238         * lib/math.in.h (log1pf): New declaration.
239         * lib/log1pf.c: New file.
240         * m4/log1pf.m4: New file.
241         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
243         REPLACE_LOG1PF.
244         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
245         REPLACE_LOG1PF.
246         * modules/log1pf: New file.
247         * tests/test-math-c++.cc: Check the declaration of log1pf.
248         * doc/posix-functions/log1pf.texi: Mention the new module.
249
250 2012-03-10  Bruno Haible  <bruno@clisp.org>
251
252         log1p tests: More tests.
253         * tests/test-log1p.h: New file.
254         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
255         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
256         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
257         (main): Invoke test_function.
258
259         log1p: Provide replacement for Minix and MSVC.
260         * lib/math.in.h (log1p): New declaration.
261         * lib/log1p.c: New file.
262         * m4/log1p.m4: New file.
263         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
265         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
266         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
267         (Depends-on): Add math, isnand, log, round.
268         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
269         HAVE_LOG1P is 0.
270         * tests/test-math-c++.cc: Check the declaration of log1p.
271         * doc/posix-functions/log1p.texi: Mention the replacement.
272
273 2012-03-10  Bruno Haible  <bruno@clisp.org>
274
275         math tests: Small simplification.
276         * tests/test-exp.h (test_function): Use the same err_bound for
277         'double' on platforms with sizeof (long double) == sizeof (double)
278         than on platforms with sizeof (long double) > sizeof (double).
279         * tests/test-exp2.h (test_function): Likewise.
280         * tests/test-expm1.h (test_function): Likewise.
281         * tests/test-log.h (test_function): Likewise.
282
283 2012-03-10  Bruno Haible  <bruno@clisp.org>
284
285         Fix some comments.
286         * lib/expl.c: Fix an ambiguous comment.
287         * lib/expm1.c: Likewise.
288         * lib/expm1l.c: Likewise.
289         * lib/exp2.c: Likewise.
290         * lib/exp2l.c: Likewise.
291
292 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
293
294         regex: allow inclusion of <regex.h> before <limits.h>
295         Without this patch, portable programs had to include <limits.h> before
296         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
297         I ran into this problem with a test version of GNU grep on Solaris 8.
298         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
299         This is done conditionally so that this change can be merged
300         back to glibc.
301         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
302         using the included regex.
303
304         fts: depend on fdopendir
305         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
306         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
307         problem was introduced when fdopendir was split out.
308
309 2012-03-10  Bruno Haible  <bruno@clisp.org>
310
311         Remove unused variables.
312         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
313         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
314
315 2012-03-10  Bruno Haible  <bruno@clisp.org>
316
317         isnanf-nolibm: Fix last commit.
318         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
319
320         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
321         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
322
323 2012-03-10  Bruno Haible  <bruno@clisp.org>
324
325         logf-ieee: Work around test failure on NetBSD 5.1.
326         * m4/logf-ieee.m4: New file.
327         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
328         whether logf works with a negative argument. Replace it if not.
329         * lib/logf.c (logf): For negative arguments, return NaN.
330         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
331         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
332         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
333
334         logf-ieee: Work around test failure on Solaris 9.
335         * modules/logf-ieee (Depends-on): Add log-ieee.
336         (configure.ac): Require gl_FUNC_LOGF.
337
338         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
339         * m4/log-ieee.m4: New file.
340         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
341         log works with a negative argument. Replace it if not.
342         * lib/log.c (log): For negative arguments, return NaN.
343         * modules/log-ieee (Files): Add m4/log-ieee.m4.
344         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
345         * doc/posix-functions/log.texi: Mention the log-ieee module.
346
347         Tests for module 'logl-ieee'.
348         * modules/logl-ieee-tests: New file.
349         * tests/test-logl-ieee.c: New file.
350
351         New module 'logl-ieee'.
352         * modules/logl-ieee: New file.
353
354         Tests for module 'log-ieee'.
355         * modules/log-ieee-tests: New file.
356         * tests/test-log-ieee.c: New file.
357
358         New module 'log-ieee'.
359         * modules/log-ieee: New file.
360
361         Tests for module 'logf-ieee'.
362         * modules/logf-ieee-tests: New file.
363         * tests/test-logf-ieee.c: New file.
364         * tests/test-log-ieee.h: New file.
365
366         New module 'logf-ieee'.
367         * modules/logf-ieee: New file.
368
369 2012-03-10  Bruno Haible  <bruno@clisp.org>
370
371         log: Fix bug introduced on 2012-03-09.
372         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
373
374 2012-03-10  Pádraig Brady  <P@draigBrady.com>
375
376         timer-time: link explicitly with pthreads on glibc
377         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
378         to support static linking, when newer glibc is
379         detected, as that contains pthread emulation of
380         POSIX timer functions where required.
381         * modules/timer-time: Depend on threadlib to
382         pull in the appropriate library to link.
383
384 2012-03-10  Bruno Haible  <bruno@clisp.org>
385
386         log* tests: More tests.
387         * tests/test-log.h: New file.
388         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
389         (main): Invoke test_function.
390         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
391         (main): Invoke test_function.
392         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
393         (main): Invoke test_function.
394         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
395         tests/randomd.c.
396         (Makefile.am): Add randomd.c to test_log_SOURCES.
397         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
398         tests/randomf.c.
399         (Makefile.am): Add randomf.c to test_logf_SOURCES.
400         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
401         tests/randoml.c.
402         (Depends-on): Add 'float'.
403         (Makefile.am): Add randoml.c to test_logl_SOURCES.
404
405 2012-03-09  Bruno Haible  <bruno@clisp.org>
406
407         logl: Work around OSF/1 5.1 bug.
408         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
409         * lib/logl.c (logl): If logf exists, use it and provide just the
410         workaround.
411         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
412         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
414         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
415         * modules/logl (configure.ac): Consider REPLACE_LOGL.
416         (Depends-on): Update conditions.
417         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
418
419 2012-03-09  Bruno Haible  <bruno@clisp.org>
420
421         logf: Work around OSF/1 5.1 bug.
422         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
423         * lib/logf.c (logf): If logf exists, use it and provide just the
424         workaround.
425         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
426         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
428         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
429         * modules/logf (configure.ac): Consider REPLACE_LOGF.
430         (Depends-on): Update conditions.
431         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
432
433 2012-03-09  Bruno Haible  <bruno@clisp.org>
434
435         log: Work around OSF/1 5.1 bug.
436         * lib/math.in.h (log): New declaration.
437         * lib/log.c: New file.
438         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
439         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
440         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
442         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
443         * modules/log (Files): Add lib/log.c.
444         (Depends-on): Add math.
445         (configure.ac): If REPLACE_LOG is 1, compile an override.
446         * tests/test-math-c++.cc: Check the declaration of log.
447         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
448
449 2012-03-09  Jim Meyering  <meyering@redhat.com>
450
451         readtokens.c: adjust wording in a comment
452         * lib/readtokens.c: Insert omitted "that" in a comment.
453
454 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
455
456         modechange: add notations +40, 00440, etc.
457         * lib/modechange.c (mode_compile): Support new notations
458         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
459
460 2012-03-08  Bruno Haible  <bruno@clisp.org>
461
462         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
463         * m4/exp2l-ieee.m4: New file.
464         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
465         test whether exp2l works with a NaN argument and with a negative
466         infinity argument. Replace it if not.
467         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
469         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
470         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
471         (Depends-on): Update conditions.
472         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
473         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
474         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
475
476         Tests for module 'exp2l-ieee'.
477         * modules/exp2l-ieee-tests: New file.
478         * tests/test-exp2l-ieee.c: New file.
479
480         New module 'exp2l-ieee'.
481         * modules/exp2l-ieee: New file.
482
483         Tests for module 'exp2-ieee'.
484         * modules/exp2-ieee-tests: New file.
485         * tests/test-exp2-ieee.c: New file.
486
487         New module 'exp2-ieee'.
488         * modules/exp2-ieee: New file.
489
490         Tests for module 'exp2f-ieee'.
491         * modules/exp2f-ieee-tests: New file.
492         * tests/test-exp2f-ieee.c: New file.
493         * tests/test-exp2-ieee.h: New file.
494
495         New module 'exp2f-ieee'.
496         * modules/exp2f-ieee: New file.
497
498 2012-03-08  Bruno Haible  <bruno@clisp.org>
499
500         Tests for module 'exp2l'.
501         * modules/exp2l-tests: New file.
502         * tests/test-exp2l.c: New file.
503
504         New module 'exp2l'.
505         * lib/math.in.h (exp2l): New declaration.
506         * lib/exp2l.c: New file.
507         * lib/expl-table.c: New file, extracted from lib/expl.c.
508         * lib/expl.c (gl_expl_table): New declaration.
509         (expl): Remove expl_table. Update reference.
510         * m4/exp2l.m4: New file.
511         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
513         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
514         * modules/exp2l: New file.
515         * modules/expl (Files): Add lib/expl-table.c.
516         (configure.ac): Compile also expl-table.c.
517         * tests/test-math-c++.cc: Check the declaration of exp2l.
518         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
519         problem.
520
521 2012-03-08  Bruno Haible  <bruno@clisp.org>
522
523         Tests for module 'exp2f'.
524         * modules/exp2f-tests: New file.
525         * tests/test-exp2f.c: New file.
526
527         New module 'exp2f'.
528         * lib/math.in.h (exp2f): New declaration.
529         * lib/exp2f.c: New file.
530         * m4/exp2f.m4: New file.
531         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
533         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
534         * modules/exp2f: New file.
535         * tests/test-math-c++.cc: Check the declaration of exp2f.
536         * doc/posix-functions/exp2f.texi: Mention the new module and the
537         IRIX problem.
538
539 2012-03-08  Bruno Haible  <bruno@clisp.org>
540
541         Tests for module 'exp2'.
542         * modules/exp2-tests: New file.
543         * tests/test-exp2.c: New file.
544         * tests/test-exp2.h: New file.
545
546         New module 'exp2'.
547         * lib/math.in.h (exp2): New declaration.
548         * lib/exp2.c: New file.
549         * m4/exp2.m4: New file.
550         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
552         REPLACE_EXP2.
553         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
554         REPLACE_EXP2.
555         * modules/exp2: New file.
556         * tests/test-math-c++.cc: Check the declaration of exp2.
557         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
558         and OpenBSD problems.
559
560 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
561
562         savedir: fix comment typo
563         * lib/savedir.c (savedirstream): Fix typo in comment.
564
565 2012-03-08  Bruno Haible  <bruno@clisp.org>
566
567         test-readtokens.c: use const; remove unwarranted cast
568         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
569
570 2012-03-08  Bruno Haible  <bruno@clisp.org>
571
572         fmal: Avoid compilation error on AIX.
573         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
574         AIX 5.2..7.1.
575
576 2012-03-08  Bruno Haible  <bruno@clisp.org>
577
578         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
579         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
580         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
581         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
582         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
583         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
584         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
585
586 2012-03-08  Bruno Haible  <bruno@clisp.org>
587
588         remainderf: Override buggy system function on IRIX 6.5.
589         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
590         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
591         when it exists.
592         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
593
594 2012-03-08  Jim Meyering  <meyering@redhat.com>
595
596         test-readtokens.c: avoid const-related compilation warnings
597         * tests/test-readtokens.c: Avoid const-related compilation warnings.
598
599 2012-03-07  Jim Meyering  <meyering@redhat.com>
600             Bruno Haible  <bruno@clisp.org>
601
602         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
603         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
604         tests/randomd.c.
605         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
606         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
607         tests/randoml.c.
608         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
609
610 2012-03-07  Bruno Haible  <bruno@clisp.org>
611
612         expm1l: Avoid compilation error on AIX.
613         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
614         AIX 5.2..7.1.
615
616 2012-03-07  Bruno Haible  <bruno@clisp.org>
617
618         expm1l: Don't override undeclared system function on IRIX 6.5.
619         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
620         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
621         it exists. Set HAVE_DECL_EXPM1L.
622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
623         HAVE_EXPM1L.
624         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
625         HAVE_EXPM1L.
626         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
627
628 2012-03-07  Bruno Haible  <bruno@clisp.org>
629
630         remainderl: Don't override undeclared system function on IRIX 6.5.
631         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
632         HAVE_REMAINDERL.
633         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
634         declared when it exists. Set HAVE_DECL_REMAINDERL.
635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
636         not HAVE_REMAINDERL.
637         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
638         HAVE_REMAINDERL.
639         * doc/posix-functions/remainderl.texi: Mention missing declaration
640         problem.
641
642 2012-03-07  Bruno Haible  <bruno@clisp.org>
643
644         rintf: Don't override undeclared system function on IRIX 6.5.
645         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
646         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
647         exists. Set HAVE_DECL_RINTF.
648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
649         HAVE_RINTF.
650         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
651         HAVE_RINTF.
652         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
653
654 2012-03-07  Bruno Haible  <bruno@clisp.org>
655
656         roundl: Avoid compilation error on AIX.
657         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
658         AIX 5.2..7.1.
659
660 2012-03-07  Bruno Haible  <bruno@clisp.org>
661
662         roundl: Don't override undeclared system function on IRIX 6.5.
663         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
664         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
665         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
666         * modules/roundl (configure.ac): For replacement code, test
667         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
668         (Depends-on): Update conditions.
669         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
670
671 2012-03-07  Bruno Haible  <bruno@clisp.org>
672
673         roundf: Don't override undeclared system function on IRIX 6.5.
674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
675         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
676         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
677         * modules/roundf (configure.ac): For replacement code, test
678         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
679         (Depends-on): Update conditions.
680         * modules/roundf-ieee (Depends-on): Update conditions.
681         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
682
683 2012-03-07  Bruno Haible  <bruno@clisp.org>
684
685         round: Don't override undeclared system function on IRIX 6.5.
686         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
687         argument.
688         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
689         also when it is not declared. Set HAVE_ROUND. For replacement code,
690         test HAVE_ROUND, not HAVE_DECL_ROUND.
691         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
692         not HAVE_DECL_ROUND.
693         (Depends-on): Update conditions.
694         * modules/round-ieee (Depends-on): Update conditions.
695         * doc/posix-functions/round.texi: Mention the IRIX problem.
696
697 2012-03-07  Bruno Haible  <bruno@clisp.org>
698
699         copysignf: Don't override undeclared system function on IRIX 6.5.
700         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
701         HAVE_COPYSIGNF.
702         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
703         declared when it exists. Set HAVE_DECL_COPYSIGNF.
704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
705         not HAVE_COPYSIGNF.
706         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
707         HAVE_COPYSIGNF.
708         * doc/posix-functions/copysignf.texi: Mention missing declaration
709         problem.
710
711 2012-03-07  Jim Meyering  <meyering@redhat.com>
712
713         readtokens: add tests
714         * modules/readtokens-tests: New file.
715         * tests/test-readtokens.c: New file.
716
717 2012-03-07  Jim Meyering  <meyering@redhat.com>
718
719         quotearg: the module must now include quote.h
720         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
721         So must the module.
722         * modules/quotearg (Files): Add quote.h.
723
724 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
725
726         readtokens: avoid core dumps with unusual calling patterns
727         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
728         * lib/readtokens.c: Include limits.h.
729         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
730         (readtoken): Don't cache the delimiters; the cache code was buggy
731         if !delim && saved_delim, or if the new n_delim differs from the old.
732         Also, it wasn't thread-safe.
733
734 2012-03-07  Bruno Haible  <bruno@clisp.org>
735
736         quote: Adhere to common module description layout.
737         * modules/quote (Makefile.am): Add back empty section.
738
739 2012-03-06  Akim Demaille  <demaille@gostai.com>
740
741         quote: fuse into quotearg
742         This patch is made for the benefit of Bison.
743         quote does not leave the choice of the quoting style to the user.
744         quoting_style provides poor customizability, yet quoting_options,
745         which is very rich, is hidden inside quotearg.c.  So in order to
746         allow quote customization, move its implementation to quotearg.c.
747         * lib/quote.c: Remove.
748         * modules/quote: Adjust.
749         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
750         warning: provide all the members of literal structs.
751         (quote_quoting_options): New.
752         (quote, quote_n): Import implementation from quote.c.
753         * lib/quote.h: Import the comments from quote.c.
754         (quote_quoting_options): New.
755
756 2012-03-06  Bruno Haible  <bruno@clisp.org>
757
758         Tests for module 'expm1l-ieee'.
759         * modules/expm1l-ieee-tests: New file.
760         * tests/test-expm1l-ieee.c: New file.
761
762         New module 'expm1l-ieee'.
763         * modules/expm1l-ieee: New file.
764
765         Tests for module 'expm1f-ieee'.
766         * modules/expm1f-ieee-tests: New file.
767         * tests/test-expm1f-ieee.c: New file.
768
769         New module 'expm1f-ieee'.
770         * modules/expm1f-ieee: New file.
771
772         Tests for module 'expm1-ieee'.
773         * modules/expm1-ieee-tests: New file.
774         * tests/test-expm1-ieee.c: New file.
775         * tests/test-expm1-ieee.h: New file.
776
777         New module 'expm1-ieee'.
778         * modules/expm1-ieee: New file.
779         * m4/expm1-ieee.m4: New file.
780         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
781         whether expm1 works with a minus zero argument. Replace it if not.
782         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
784         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
785         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
786         (Depends-on): Update conditions.
787         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
788         AIX problem.
789
790 2012-03-06  Bruno Haible  <bruno@clisp.org>
791
792         Work around expm1f bug on IRIX 6.5.
793         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
794         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
795         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
796         not work.
797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
798         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
799         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
800         (Depends-on): Update conditions.
801         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
802
803 2012-03-06  Bruno Haible  <bruno@clisp.org>
804
805         Tests for module 'expm1l'.
806         * modules/expm1l-tests: New file.
807         * tests/test-expm1l.c: New file.
808
809         New module 'expm1l'.
810         * lib/math.in.h (expm1l): New declaration.
811         * lib/expm1l.c: New file.
812         * m4/expm1l.m4: New file.
813         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
815         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
816         * modules/expm1l: New file.
817         * tests/test-math-c++.cc: Check the declaration of expm1l.
818         * doc/posix-functions/expm1l.texi: Mention the new module.
819
820 2012-03-06  Bruno Haible  <bruno@clisp.org>
821
822         Tests for module 'expm1f'.
823         * modules/expm1f-tests: New file.
824         * tests/test-expm1f.c: New file.
825
826         New module 'expm1f'.
827         * lib/math.in.h (expm1f): New declaration.
828         * lib/expm1f.c: New file.
829         * m4/expm1f.m4: New file.
830         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
832         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
833         * modules/expm1f: New file.
834         * tests/test-math-c++.cc: Check the declaration of expm1f.
835         * doc/posix-functions/expm1f.texi: Mention the new module.
836
837 2012-03-06  Bruno Haible  <bruno@clisp.org>
838
839         Tests for module 'expm1'.
840         * modules/expm1-tests: New file.
841         * tests/test-expm1.c: New file.
842         * tests/test-expm1.h: New file.
843
844         New module 'expm1'.
845         * lib/math.in.h (expm1): New declaration.
846         * lib/expm1.c: New file.
847         * m4/expm1.m4: New file.
848         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
850         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
851         * modules/expm1: New file.
852         * tests/test-math-c++.cc: Check the declaration of expm1.
853         * doc/posix-functions/expm1.texi: Mention the new module.
854
855 2012-03-06  Bruno Haible  <bruno@clisp.org>
856
857         math: Ensure declarations of math functions.
858         * modules/acosf (Depends-on): Add 'extensions'.
859         * modules/asinf (Depends-on): Likewise.
860         * modules/atan2f (Depends-on): Likewise.
861         * modules/atanf (Depends-on): Likewise.
862         * modules/cbrt (Depends-on): Likewise.
863         * modules/cbrtf (Depends-on): Likewise.
864         * modules/cbrtl (Depends-on): Likewise.
865         * modules/copysignf (Depends-on): Likewise.
866         * modules/copysignl (Depends-on): Likewise.
867         * modules/cosf (Depends-on): Likewise.
868         * modules/coshf (Depends-on): Likewise.
869         * modules/expf (Depends-on): Likewise.
870         * modules/fabsf (Depends-on): Likewise.
871         * modules/fabsl (Depends-on): Likewise.
872         * modules/fmaf (Depends-on): Likewise.
873         * modules/fmal (Depends-on): Likewise.
874         * modules/fmodf (Depends-on): Likewise.
875         * modules/fmodl (Depends-on): Likewise.
876         * modules/frexpf (Depends-on): Likewise.
877         * modules/frexpl (Depends-on): Likewise.
878         * modules/hypot (Depends-on): Likewise.
879         * modules/hypotf (Depends-on): Likewise.
880         * modules/hypotl (Depends-on): Likewise.
881         * modules/ldexpf (Depends-on): Likewise.
882         * modules/ldexpl (Depends-on): Likewise.
883         * modules/log10f (Depends-on): Likewise.
884         * modules/log10l (Depends-on): Likewise.
885         * modules/log1p (Depends-on): Likewise.
886         * modules/logb (Depends-on): Likewise.
887         * modules/logf (Depends-on): Likewise.
888         * modules/modff (Depends-on): Likewise.
889         * modules/modfl (Depends-on): Likewise.
890         * modules/powf (Depends-on): Likewise.
891         * modules/remainderf (Depends-on): Likewise.
892         * modules/remainderl (Depends-on): Likewise.
893         * modules/rintf (Depends-on): Likewise.
894         * modules/rintl (Depends-on): Likewise.
895         * modules/sinf (Depends-on): Likewise.
896         * modules/sinhf (Depends-on): Likewise.
897         * modules/sqrtf (Depends-on): Likewise.
898         * modules/tanf (Depends-on): Likewise.
899         * modules/tanhf (Depends-on): Likewise.
900         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
901         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
902         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
903         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
904         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
905         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
906         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
907         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
908         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
909         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
910         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
911         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
912         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
913         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
914         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
915         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
916         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
917         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
918         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
919         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
920         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
921         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
922         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
923         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
924         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
925         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
926         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
927         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
928         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
929         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
930         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
931         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
932         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
933         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
934         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
935         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
936         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
937         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
938         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
939         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
940         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
941
942 2012-03-06  Bruno Haible  <bruno@clisp.org>
943
944         math: Update module names in warnings.
945         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
946         tanl): Use specific module name in warn-on-use warning.
947
948 2012-03-06  Bruno Haible  <bruno@clisp.org>
949
950         expl: Simplify computation.
951         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
952
953 2012-03-05  Bruno Haible  <bruno@clisp.org>
954
955         exp* tests: More tests.
956         * tests/test-exp.h: New file.
957         * tests/test-exp.c: Include <float.h> and test-exp.h.
958         (main): Invoke test_function.
959         * tests/test-expf.c: Include <float.h> and test-exp.h.
960         (main): Invoke test_function.
961         * tests/test-expl.c: Include <float.h> and test-exp.h.
962         (main): Invoke test_function.
963         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
964         (Makefile.am): Add randomd.c to test_exp_SOURCES.
965         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
966         (Makefile.am): Add randomf.c to test_expf_SOURCES.
967         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
968         (Depends-on): Add 'float'.
969         (Makefile.am): Add randoml.c to test_expl_SOURCES.
970
971         expl: Fix precision of computed result.
972         * lib/expl.c: Completely rewritten.
973         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
974         (Maintainer): Add me.
975         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
976
977 2012-03-05  Bruno Haible  <bruno@clisp.org>
978
979         cbrt* tests: More tests.
980         * tests/test-cbrt.h: New file.
981         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
982         (main): Invoke test_function.
983         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
984         (main): Invoke test_function.
985         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
986         (main): Invoke test_function.
987         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
988         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
989         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
990         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
991         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
992         (Depends-on): Add 'float'.
993         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
994
995 2012-03-05  Bruno Haible  <bruno@clisp.org>
996
997         hypot* tests: More tests.
998         * tests/test-hypot.h: New file, partially extracted from
999         tests/test-hypotl.c.
1000         * tests/test-hypot.c: Include test-hypot.h.
1001         (main): Invoke test_function.
1002         * tests/test-hypotf.c: Include test-hypot.h.
1003         (main): Invoke test_function.
1004         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1005         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1006         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1007         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1008         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1009         tests/randomf.c.
1010         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1011         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1012         tests/randoml.c.
1013         (Depends-on): Add 'fpucw', 'float'.
1014         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1015
1016 2012-03-05  Bruno Haible  <bruno@clisp.org>
1017
1018         fpucw: Doc about FreeBSD.
1019         * lib/fpucw.h: Mention FreeBSD in comments.
1020
1021 2012-03-04  Bruno Haible  <bruno@clisp.org>
1022
1023         sqrt* tests: More tests.
1024         * tests/test-sqrt.h: New file.
1025         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1026         (main): Invoke test_function.
1027         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1028         (main): Invoke test_function.
1029         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1030         (main): Invoke test_function.
1031         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1032         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1033         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1034         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1035         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1036         (Depends-on): Add 'float'.
1037         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1038
1039 2012-03-04  Bruno Haible  <bruno@clisp.org>
1040
1041         remainder* tests: More tests.
1042         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1043         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1044         (main): Invoke test_function.
1045         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1046         (main): Invoke test_function.
1047         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1048         (main): Invoke test_function.
1049         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1050         tests/randomd.c.
1051         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1052         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1053         tests/randomf.c.
1054         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1055         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1056         tests/randoml.c.
1057         (Depends-on): Add 'float'.
1058         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1059
1060 2012-03-04  Bruno Haible  <bruno@clisp.org>
1061
1062         remainder, remainderf, remainderl: Fix computation for large quotients.
1063         * lib/remainder.c: Completely rewritten.
1064         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1065         USE_FLOAT.
1066         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1067         USE_LONG_DOUBLE.
1068         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1069         isnand, isinf. Remove round, fma.
1070         * modules/remainderf (Files): Add lib/remainder.c.
1071         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1072         Remove roundf, fmaf.
1073         * modules/remainderl (Files): Add lib/remainder.c.
1074         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1075         isinf. Remove roundl, fmal.
1076         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1077         REMAINDER_LIBM.
1078         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1079         REMAINDERF_LIBM.
1080         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1081         REMAINDERL_LIBM.
1082
1083 2012-03-04  Bruno Haible  <bruno@clisp.org>
1084
1085         fmod* tests: More tests.
1086         * tests/test-fmod.h (my_ldexp): New function.
1087         (test_function): Reduce amount of random numbers to test. Add tests
1088         of very large quotients x / y.
1089         * tests/test-fmod.c (MAX_EXP): New macro.
1090         * tests/test-fmodf.c (MAX_EXP): Likewise.
1091         * tests/test-fmodl.c (MAX_EXP): Likewise.
1092
1093 2012-03-04  Bruno Haible  <bruno@clisp.org>
1094
1095         fmod, fmodl: Fix computation for large quotients x / y.
1096         * lib/fmod.c: Completely rewritten.
1097         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1098         USE_LONG_DOUBLE.
1099         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1100         isnand. Remove fma.
1101         * modules/fmodl (Files): Add lib/fmod.c.
1102         (Depends-on): Add float, isfinite, signbit, fabsl,
1103         frexpl, ldexpl, isnanl. Remove fma.
1104         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1105         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1106
1107 2012-03-03  Bruno Haible  <bruno@clisp.org>
1108
1109         fmod* tests: More tests.
1110         * tests/test-fmod.h: New file.
1111         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1112         (main): Invoke test_function.
1113         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1114         (main): Invoke test_function.
1115         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1116         (main): Invoke test_function.
1117         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1118         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1119         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1120         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1121         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1122         (Depends-on): Add 'float'.
1123         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1124
1125 2012-03-03  Bruno Haible  <bruno@clisp.org>
1126
1127         rint* tests: More tests.
1128         * tests/test-rint.h: New file, partially extracted from
1129         tests/test-rintl.c.
1130         * tests/test-rint.c: Include test-rint.h.
1131         (main): Invoke test_function.
1132         * tests/test-rintf.c: Include test-rint.h.
1133         (main): Invoke test_function.
1134         * tests/test-rintl.c: Include test-rint.h.
1135         (main): Invoke test_function.
1136         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1137         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1138         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1139         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1140         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1141         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1142
1143 2012-03-03  Bruno Haible  <bruno@clisp.org>
1144
1145         modf* tests: More tests.
1146         * tests/test-modf.h: New file.
1147         * tests/test-modf.c: Include <float.h> and test-modf.h.
1148         (main): Invoke test_function.
1149         * tests/test-modff.c: Include <float.h> and test-modf.h.
1150         (main): Invoke test_function.
1151         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1152         (main): Invoke test_function.
1153         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1154         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1155         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1156         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1157         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1158         (Depends-on): Add 'float'.
1159         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1160
1161 2012-03-03  Bruno Haible  <bruno@clisp.org>
1162
1163         fabs* tests: More tests.
1164         * tests/test-fabs.h: New file, partially extracted from
1165         tests/test-fabsl.c.
1166         * tests/test-fabs.c (RANDOM): New macro.
1167         * tests/test-fabsf.c (RANDOM): New macro.
1168         * tests/test-fabsl.c (RANDOM): New macro.
1169         * modules/fabs-tests (Files): Add tests/randomd.c.
1170         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1171         * modules/fabsf-tests (Files): Add tests/randomf.c.
1172         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1173         * modules/fabsl-tests (Files): Add tests/randoml.c.
1174         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1175
1176 2012-03-03  Bruno Haible  <bruno@clisp.org>
1177
1178         ldexp* tests: More tests.
1179         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1180         * tests/test-ldexp.c (RANDOM): New macro.
1181         * tests/test-ldexpf.c (RANDOM): New macro.
1182         * tests/test-ldexpl.c (RANDOM): New macro.
1183         * modules/ldexp-tests (Files): Add tests/randomd.c.
1184         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1185         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1186         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1187         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1188         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1189
1190 2012-03-03  Bruno Haible  <bruno@clisp.org>
1191
1192         frexp* tests: More tests.
1193         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1194         * tests/test-frexp.c (RANDOM): New macro.
1195         * tests/test-frexpf.c (RANDOM): New macro.
1196         * tests/test-frexpl.c (RANDOM): New macro.
1197         * modules/frexp-tests (Files): Add tests/randomd.c.
1198         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1199         * modules/frexpf-tests (Files): Add tests/randomf.c.
1200         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1201         * modules/frexpl-tests (Files): Add tests/randoml.c.
1202         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1203
1204 2012-03-03  Bruno Haible  <bruno@clisp.org>
1205
1206         Support for pseudo-random numbers in tests.
1207         * tests/randomf.c: New file.
1208         * tests/randomd.c: New file.
1209         * tests/randoml.c: New file.
1210         * tests/macros.h (randomf, randomd, randoml): New declarations.
1211
1212 2012-03-03  Bruno Haible  <bruno@clisp.org>
1213
1214         frexp* tests: Refactor.
1215         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1216         * tests/test-frexp.c: Include and use it.
1217         * tests/test-frexpf.c: Likewise.
1218         * tests/test-frexpl.c: Likewise.
1219         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1220         * modules/frexpf-tests (Files): Likewise.
1221         * modules/frexpl-tests (Files): Likewise.
1222
1223 2012-03-02  Jim Meyering  <meyering@redhat.com>
1224
1225         maint: don't specify XZ_OPT=-9ev in dist-related rule
1226         Using xz's -9 option is warranted only if you have a very large
1227         tarball (see xz's documentation for the sizes vs. presets), and
1228         requires 64MiB of memory at decompression time.
1229         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1230         Automake's default of just "-e" is fine.  Override on a
1231         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1232
1233 2012-03-01  Eric Blake  <eblake@redhat.com>
1234
1235         maint.mk: allow announcement for non-gnulib project
1236         * maint.mk (announcement): Skip gnulib version if not used.
1237
1238 2012-03-01  Jim Meyering  <meyering@redhat.com>
1239
1240         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1241         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1242         envvar settings cannot interfere.  Otherwise, setting envvars like
1243         prohibit=foo require=bar, etc. would cause spurious test failures.
1244
1245 2012-03-01  Eric Blake  <eblake@redhat.com>
1246
1247         maint.mk: add per-line exclusions to prohibitions
1248         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1249         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1250         (sc_const_long_option): Use it.
1251
1252 2012-03-01  Bruno Haible  <bruno@clisp.org>
1253
1254         Tests for module 'expl-ieee'.
1255         * modules/expl-ieee-tests: New file.
1256         * tests/test-expl-ieee.c: New file.
1257
1258         New module 'expl-ieee'.
1259         * modules/expl-ieee: New file.
1260
1261         Tests for module 'exp-ieee'.
1262         * modules/exp-ieee-tests: New file.
1263         * tests/test-exp-ieee.c: New file.
1264
1265         New module 'exp-ieee'.
1266         * modules/exp-ieee: New file.
1267
1268         Tests for module 'expf-ieee'.
1269         * modules/expf-ieee-tests: New file.
1270         * tests/test-expf-ieee.c: New file.
1271         * tests/test-exp-ieee.h: New file.
1272
1273         New module 'expf-ieee'.
1274         * modules/expf-ieee: New file.
1275
1276 2012-02-29  Bruno Haible  <bruno@clisp.org>
1277
1278         cbrtl-ieee: Work around test failure on IRIX 6.5.
1279         * m4/cbrtl-ieee.m4: New file.
1280         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1281         test whether cbrtl works with a minus zero argument. Replace it if not.
1282         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1284         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1285         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1286         (Depends-on): Update conditions.
1287         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1288         m4/signbit.m4.
1289         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1290         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1291         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1292
1293         Tests for module 'cbrtl-ieee'.
1294         * modules/cbrtl-ieee-tests: New file.
1295         * tests/test-cbrtl-ieee.c: New file.
1296
1297         New module 'cbrtl-ieee'.
1298         * modules/cbrtl-ieee: New file.
1299
1300         Tests for module 'cbrt-ieee'.
1301         * modules/cbrt-ieee-tests: New file.
1302         * tests/test-cbrt-ieee.c: New file.
1303
1304         New module 'cbrt-ieee'.
1305         * modules/cbrt-ieee: New file.
1306
1307         Tests for module 'cbrtf-ieee'.
1308         * modules/cbrtf-ieee-tests: New file.
1309         * tests/test-cbrtf-ieee.c: New file.
1310         * tests/test-cbrt-ieee.h: New file.
1311
1312         New module 'cbrtf-ieee'.
1313         * modules/cbrtf-ieee: New file.
1314
1315 2012-02-29  Bruno Haible  <bruno@clisp.org>
1316
1317         cbrtf: Work around bug in IRIX 6.5 system function.
1318         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1319         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1320         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1321         work.
1322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1323         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1324         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1325         (Depends-on): Update conditions.
1326         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1327
1328 2012-02-29  Bruno Haible  <bruno@clisp.org>
1329
1330         Tests for module 'cbrtl'.
1331         * modules/cbrtl-tests: New file.
1332         * tests/test-cbrtl.c: New file.
1333
1334         New module 'cbrtl'.
1335         * lib/math.in.h (cbrtl): New declaration.
1336         * lib/cbrtl.c: New file.
1337         * m4/cbrtl.m4: New file.
1338         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1340         HAVE_DECL_CBRTL.
1341         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1342         HAVE_DECL_CBRTL.
1343         * modules/cbrtl: New file.
1344         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1345         * doc/posix-functions/cbrtl.texi: Mention the new module.
1346
1347 2012-02-29  Bruno Haible  <bruno@clisp.org>
1348
1349         Tests for module 'cbrtf'.
1350         * modules/cbrtf-tests: New file.
1351         * tests/test-cbrtf.c: New file.
1352
1353         New module 'cbrtf'.
1354         * lib/math.in.h (cbrtf): New declaration.
1355         * lib/cbrtf.c: New file.
1356         * m4/cbrtf.m4: New file.
1357         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1359         HAVE_DECL_CBRTF.
1360         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1361         HAVE_DECL_CBRTF.
1362         * modules/cbrtf: New file.
1363         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1364         * doc/posix-functions/cbrtf.texi: Mention the new module.
1365
1366 2012-02-29  Bruno Haible  <bruno@clisp.org>
1367
1368         cbrt: Provide replacement on MSVC and Minix.
1369         * lib/math.in.h (cbrt): New declaration.
1370         * lib/cbrt.c: New file.
1371         * m4/cbrt.m4: New file.
1372         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1374         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1375         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1376         (Depends-on): Add dependencies.
1377         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1378         * tests/test-math-c++.cc: Check the declaration of cbrt.
1379         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1380         replacement.
1381
1382 2012-02-29  Bruno Haible  <bruno@clisp.org>
1383
1384         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1385         * m4/hypotl-ieee.m4: New file.
1386         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1387         test whether hypotl works with mixed NaN and Infinity arguments.
1388         Replace it if not.
1389         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1391         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1392         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1393         (Depends-on): Update conditions.
1394         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1395         (Depends-on): Add hypot-ieee.
1396         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1397         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1398
1399         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1400         * m4/hypotf-ieee.m4: New file.
1401         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1402         test whether hypotf works with mixed NaN and Infinity arguments.
1403         Replace it if not.
1404         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1405         (Depends-on): Add hypot-ieee.
1406         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1407         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1408
1409         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1410         * lib/math.in.h (hypot): New declaration.
1411         * lib/hypot.c: New file.
1412         * m4/hypot-ieee.m4: New file.
1413         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1414         whether hypot works with mixed NaN and Infinity arguments. Replace it
1415         if not.
1416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1417         REPLACE_HYPOT.
1418         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1419         * modules/hypot (Files): Add lib/hypot.c.
1420         (Depends-on): Add dependencies.
1421         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1422         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1423         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1424         * tests/test-math-c++.cc: Check the declaration of hypot.
1425         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1426
1427         Tests for module 'hypotl-ieee'.
1428         * modules/hypotl-ieee-tests: New file.
1429         * tests/test-hypotl-ieee.c: New file.
1430
1431         New module 'hypotl-ieee'.
1432         * modules/hypotl-ieee: New file.
1433
1434         Tests for module 'hypot-ieee'.
1435         * modules/hypot-ieee-tests: New file.
1436         * tests/test-hypot-ieee.c: New file.
1437
1438         New module 'hypot-ieee'.
1439         * modules/hypot-ieee: New file.
1440
1441         Tests for module 'hypotf-ieee'.
1442         * modules/hypotf-ieee-tests: New file.
1443         * tests/test-hypotf-ieee.c: New file.
1444         * tests/test-hypot-ieee.h: New file.
1445
1446         New module 'hypotf-ieee'.
1447         * modules/hypotf-ieee: New file.
1448
1449 2012-02-29  Bruno Haible  <bruno@clisp.org>
1450
1451         Remove unused variables.
1452         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1453         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1454         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1455         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1456
1457 2012-02-29  Eric Blake  <eblake@redhat.com>
1458
1459         termios: fix pid_t always, not just for tcgetsid
1460         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1461         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1462         just when building tcgetsid.
1463
1464 2012-02-29  Bruno Haible  <bruno@clisp.org>
1465
1466         Tests for module 'hypotl'.
1467         * modules/hypotl-tests: New file.
1468         * tests/test-hypotl.c: New file.
1469
1470         New module 'hypotl'.
1471         * lib/math.in.h (hypotl): New declaration.
1472         * lib/hypotl.c: New file.
1473         * m4/hypotl.m4: New file.
1474         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1476         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1477         * modules/hypotl: New file.
1478         * tests/test-math-c++.cc: Check the hypotl declaration.
1479         * doc/posix-functions/hypotl.texi: Mention the new module.
1480
1481 2012-02-29  Eric Blake  <eblake@redhat.com>
1482
1483         tcgetsid: fix cygwin header bug
1484         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1485
1486         docs: update cygwin progress
1487         * doc/posix-functions/llround.texi (llround): Added in cygwin
1488         1.7.8.
1489         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1490         * doc/glibc-functions/program_invocation_name.texi
1491         (program_invocation_name): Likewise.
1492         * doc/glibc-functions/program_invocation_short_name.texi
1493         (program_invocation_short_name): Likewise.
1494         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1495         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1496         Likewise.
1497         * doc/posix-functions/pthread_spin_destroy.texi
1498         (pthread_spin_destroy): Added in cygwin 1.7.10.
1499         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1500         Likewise.
1501         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1502         Likewise.
1503         * doc/posix-functions/pthread_spin_trylock.texi
1504         (pthread_spin_trylock): Likewise.
1505         * doc/posix-functions/pthread_spin_unlock.texi
1506         (pthread_spin_unlock): Likewise.
1507         * doc/posix-functions/pthread_setschedprio.texi
1508         (pthread_setschedprio): Likewise.
1509         * doc/posix-functions/pthread_attr_getstack.texi
1510         (pthread_attr_getstack): Likewise.
1511         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1512         (pthread_attr_getstackaddr): Likewise.
1513         * doc/glibc-functions/pthread_getattr_np.texi
1514         (pthread_getattr_np): Likewise.
1515         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1516         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1517         * doc/posix-functions/clock_settime.texi (clock_settime):
1518         Likewise.
1519         * doc/posix-functions/pthread_attr_getguardsize.texi
1520         (pthread_attr_getguardsize): Likewise.
1521         * doc/posix-functions/pthread_attr_setguardsize.texi
1522         (pthread_attr_setguardsize): Likewise.
1523         * doc/posix-functions/pthread_attr_setstack.texi
1524         (pthread_attr_setstack): Likewise.
1525         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1526         (pthread_attr_setstackaddr): Likewise.
1527         * doc/posix-functions/clock_getcpuclockid.texi
1528         (clock_getcpuclockid): Likewise.
1529         * doc/posix-functions/pthread_getcpuclockid.texi
1530         (pthread_getcpuclockid): Likewise.
1531         * doc/glibc-functions/error.texi (error): Likewise.
1532         * doc/glibc-functions/error_at_line.texi (error_at_line):
1533         Likewise.
1534         * doc/glibc-functions/error_message_count.texi
1535         (error_message_count): Likewise.
1536         * doc/glibc-functions/error_one_per_line.texi
1537         (error_one_per_line): Likewise.
1538         * doc/glibc-functions/error_print_progname.texi
1539         (error_print_progname): Likewise.
1540         * doc/posix-functions/pthread_condattr_getclock.texi
1541         (pthread_condattr_getclock): Likewise.
1542         * doc/posix-functions/pthread_condattr_setclock.texi
1543         (pthread_condattr_setclock): Likewise.
1544         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1545         Likewise.
1546         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1547         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1548         * doc/glibc-functions/get_current_dir_name.texi
1549         (get_current_dir_name): Likewise.
1550         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1551         Likewise.
1552         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1553         wrong return type.
1554         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1555         1.7.11.
1556
1557 2012-02-29  Bruno Haible  <bruno@clisp.org>
1558
1559         Tests for module 'hypotf'.
1560         * modules/hypotf-tests: New file.
1561         * tests/test-hypotf.c: New file.
1562
1563         New module 'hypotf'.
1564         * lib/math.in.h (hypotf): New declaration.
1565         * lib/hypotf.c: New file.
1566         * m4/hypotf.m4: New file.
1567         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1569         REPLACE_HYPOTF.
1570         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1571         REPLACE_HYPOTF.
1572         * modules/hypotf: New file.
1573         * tests/test-math-c++.cc: Check the hypotf declaration.
1574         * doc/posix-functions/hypotf.texi: Mention the new module.
1575
1576         hypot: Prepare for hypotf module.
1577         * m4/hypot.m4: New file.
1578         * modules/hypot (Files): Add m4/hypot.m4.
1579         (configure.ac): Invoke gl_FUNC_HYPOT.
1580
1581 2012-02-29  Bruno Haible  <bruno@clisp.org>
1582
1583         hypot tests: More tests.
1584         * tests/test-hypot.c: Include <float.h>.
1585         (main): Add tests about overflow and underflow.
1586
1587 2012-02-29  Bruno Haible  <bruno@clisp.org>
1588
1589         math code: Add comments.
1590         * lib/acosl.c: Add comment about related glibc source files.
1591         * lib/asinl.c: Likewise.
1592         * lib/atanl.c: Likewise.
1593         * lib/expl.c: Likewise.
1594         * lib/logl.c: Likewise.
1595         * lib/sincosl.c: Likewise.
1596         * lib/sinl.c: Likewise.
1597         * lib/tanl.c: Likewise.
1598         * lib/trigl.c: Likewise.
1599         * lib/cosl.c: Likewise. Fix comments.
1600
1601 2012-02-28  Bruno Haible  <bruno@clisp.org>
1602
1603         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1604         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1605         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1606         HUGE_VALL are defined.
1607         (numeric_equald): Renamed from numeric_equal.
1608         (numeric_equalf, numeric_equall): New functions.
1609         (main): Check also HUGE_VALF, HUGE_VALL.
1610         * modules/math-tests (Files): Add tests/macros.h.
1611         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1612         HUGE_VALL.
1613
1614 2012-02-28  Bruno Haible  <bruno@clisp.org>
1615
1616         doc: Move ISO C11 feature notes into POSIX chapters.
1617         * doc/posix-functions/aligned_alloc.texi: Renamed from
1618         doc/glibc-functions/aligned_alloc.texi.
1619         * doc/posix-functions/quick_exit.texi: Renamed from
1620         doc/glibc-functions/quick_exit.texi.
1621         * doc/posix-headers/uchar.texi: Renamed from
1622         doc/glibc-headers/uchar.texi.
1623         * doc/posix-functions/c16rtomb.texi: Renamed from
1624         doc/glibc-functions/c16rtomb.texi.
1625         * doc/posix-functions/c32rtomb.texi: Renamed from
1626         doc/glibc-functions/c32rtomb.texi.
1627         * doc/posix-functions/mbrtoc16.texi: Renamed from
1628         doc/glibc-functions/mbrtoc16.texi.
1629         * doc/posix-functions/mbrtoc32.texi: Renamed from
1630         doc/glibc-functions/mbrtoc32.texi.
1631         * doc/gnulib.texi: Update.
1632         (Glibc uchar.h): Remove section.
1633         Suggested by Eric Blake.
1634
1635 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1636
1637         stdnoreturn: port to MSVC better
1638         MSVC standard headers use __declspec(noreturn), so #define noreturn
1639         to empty on that platform.  Reported by Bruno Haible in
1640         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1641         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1642         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1643
1644 2012-02-28  Bruno Haible  <bruno@clisp.org>
1645
1646         doc: Mention new glibc headers and functions.
1647         * doc/glibc-headers/uchar.texi: New file.
1648         * doc/glibc-functions/aligned_alloc.texi: New file.
1649         * doc/glibc-functions/c16rtomb.texi: New file.
1650         * doc/glibc-functions/c32rtomb.texi: New file.
1651         * doc/glibc-functions/clock_adjtime.texi: New file.
1652         * doc/glibc-functions/fanotify_init.texi: New file.
1653         * doc/glibc-functions/fanotify_mark.texi: New file.
1654         * doc/glibc-functions/inet6_opt_append.texi: New file.
1655         * doc/glibc-functions/inet6_opt_find.texi: New file.
1656         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1657         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1658         * doc/glibc-functions/inet6_opt_init.texi: New file.
1659         * doc/glibc-functions/inet6_opt_next.texi: New file.
1660         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1661         * doc/glibc-functions/inet6_rth_add.texi: New file.
1662         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1663         * doc/glibc-functions/inet6_rth_init.texi: New file.
1664         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1665         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1666         * doc/glibc-functions/inet6_rth_space.texi: New file.
1667         * doc/glibc-functions/login.texi: New file.
1668         * doc/glibc-functions/mbrtoc16.texi: New file.
1669         * doc/glibc-functions/mbrtoc32.texi: New file.
1670         * doc/glibc-functions/name_to_handle_at.texi: New file.
1671         * doc/glibc-functions/ntp_gettimex.texi: New file.
1672         * doc/glibc-functions/open_by_handle_at.texi: New file.
1673         * doc/glibc-functions/prlimit.texi: New file.
1674         * doc/glibc-functions/process_vm_readv.texi: New file.
1675         * doc/glibc-functions/process_vm_writev.texi: New file.
1676         * doc/glibc-functions/recvmmsg.texi: New file.
1677         * doc/glibc-functions/scandirat.texi: New file.
1678         * doc/glibc-functions/sendmmsg.texi: New file.
1679         * doc/glibc-functions/setns.texi: New file.
1680         * doc/glibc-functions/timespec_get.texi: New file.
1681         * doc/gnulib.texi: Include them.
1682         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1683         sections.
1684         Reported by Eric Blake.
1685
1686 2012-02-28  Bruno Haible  <bruno@clisp.org>
1687
1688         Avoid compilation errors with MSVC option -fp:strict.
1689         * lib/floor.c: Use MSVC specific pragma fenv_access.
1690         * lib/ceil.c: Likewise.
1691         * lib/trunc.c: Likewise.
1692         * lib/round.c: Likewise.
1693         * lib/rint.c: Likewise.
1694         * lib/fma.c: Likewise.
1695         * lib/integer_length.c: Likewise.
1696         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1697         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1698         * tests/test-floor2.c: Likewise.
1699         * tests/test-floorf2.c: Likewise.
1700         * tests/test-ceil2.c: Likewise.
1701         * tests/test-ceilf2.c: Likewise.
1702         * tests/test-trunc2.c: Likewise.
1703         * tests/test-truncf2.c: Likewise.
1704         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1705
1706 2012-02-27  Bruno Haible  <bruno@clisp.org>
1707
1708         Tests for module 'sqrtl-ieee'.
1709         * modules/sqrtl-ieee-tests: New file.
1710         * tests/test-sqrtl-ieee.c: New file.
1711
1712         New module 'sqrtl-ieee'.
1713         * modules/sqrtl-ieee: New file.
1714
1715         Tests for module 'sqrt-ieee'.
1716         * modules/sqrt-ieee-tests: New file.
1717         * tests/test-sqrt-ieee.c: New file.
1718
1719         New module 'sqrt-ieee'.
1720         * modules/sqrt-ieee: New file.
1721
1722         Tests for module 'sqrtf-ieee'.
1723         * modules/sqrtf-ieee-tests: New file.
1724         * tests/test-sqrtf-ieee.c: New file.
1725         * tests/test-sqrt-ieee.h: New file.
1726
1727         New module 'sqrtf-ieee'.
1728         * modules/sqrtf-ieee: New file.
1729
1730 2012-02-27  Bruno Haible  <bruno@clisp.org>
1731
1732         remainderl-ieee: Work around test failure on OSF/1.
1733         * m4/remainderl-ieee.m4: New file.
1734         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1735         present, test whether remainderl works with a zero second argument.
1736         Replace it if not.
1737         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1739         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1740         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1741         (Depends-on): Update conditions.
1742         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1743         (Depends-on): Add remainder-ieee.
1744         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1745         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1746         module.
1747
1748         remainderf-ieee: Work around test failure on OSF/1.
1749         * m4/remainderf-ieee.m4: New file.
1750         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1751         present, test whether remainderf works with a zero second argument.
1752         Replace it if not.
1753         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1755         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1756         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1757         (Depends-on): Update conditions.
1758         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1759         (Depends-on): Add remainder-ieee.
1760         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1761         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1762         module.
1763
1764         remainder-ieee: Work around test failure on OSF/1.
1765         * m4/remainder-ieee.m4: New file.
1766         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1767         present, test whether remainder works with a zero second argument.
1768         Replace it if not.
1769         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1771         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1772         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1773         (Depends-on): Update dependencies.
1774         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1775         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1776         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1777
1778         Tests for module 'remainderl-ieee'.
1779         * modules/remainderl-ieee-tests: New file.
1780         * tests/test-remainderl-ieee.c: New file.
1781
1782         New module 'remainderl-ieee'.
1783         * modules/remainderl-ieee: New file.
1784
1785         Tests for module 'remainder-ieee'.
1786         * modules/remainder-ieee-tests: New file.
1787         * tests/test-remainder-ieee.c: New file.
1788
1789         New module 'remainder-ieee'.
1790         * modules/remainder-ieee: New file.
1791
1792         Tests for module 'remainderf-ieee'.
1793         * modules/remainderf-ieee-tests: New file.
1794         * tests/test-remainderf-ieee.c: New file.
1795         * tests/test-remainder-ieee.h: New file.
1796
1797         New module 'remainderf-ieee'.
1798         * modules/remainderf-ieee: New file.
1799
1800 2012-02-27  Bruno Haible  <bruno@clisp.org>
1801
1802         modff, modfl: Fix configure syntax error.
1803         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1804         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1805
1806 2012-02-27  Bruno Haible  <bruno@clisp.org>
1807
1808         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1809         * m4/fmodl-ieee.m4: New file.
1810         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1811         whether fmodl works with zero arguments. Replace it if not.
1812         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1813         (Depends-on): Add fmod-ieee.
1814         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1815         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1816
1817         fmodf-ieee: Work around test failure on OSF/1.
1818         * m4/fmodf-ieee.m4: New file.
1819         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1820         whether fmodf works with zero arguments. Replace it if not.
1821         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1823         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1824         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1825         (Depends-on): Update dependencies.
1826         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1827         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1828         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1829
1830         fmodf-ieee: Work around test failure on MSVC 9.
1831         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1832         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1833
1834         fmod-ieee: Work around test failures on OSF/1, mingw.
1835         * m4/fmod-ieee.m4: New file.
1836         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1837         whether fmod works with zero arguments. Replace it if not.
1838         * lib/math.in.h (fmod): New declaration.
1839         * lib/fmod.c: New file.
1840         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1842         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1843         * modules/fmod (Files): Add lib/fmod.c.
1844         (Depends-on): Add math, isinf, trunc, fma.
1845         (configure.ac): Arrange to compile lib/fmod.c if needed.
1846         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
1847         m4/signbit.m4.
1848         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
1849         * tests/test-math-c++.cc: Check the declaration of fmod.
1850         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
1851
1852         fmodl-ieee: Fix test failures.
1853         * lib/fmodl.c (fmodl): Treat Inf specially.
1854         * modules/fmodl (Depends-on): Add isinf.
1855
1856         Tests for module 'fmodl-ieee'.
1857         * modules/fmodl-ieee-tests: New file.
1858         * tests/test-fmodl-ieee.c: New file.
1859
1860         New module 'fmodl-ieee'.
1861         * modules/fmodl-ieee: New file.
1862
1863         Tests for module 'fmod-ieee'.
1864         * modules/fmod-ieee-tests: New file.
1865         * tests/test-fmod-ieee.c: New file.
1866
1867         New module 'fmod-ieee'.
1868         * modules/fmod-ieee: New file.
1869
1870         Tests for module 'fmodf-ieee'.
1871         * modules/fmodf-ieee-tests: New file.
1872         * tests/test-fmodf-ieee.c: New file.
1873         * tests/test-fmod-ieee.h: New file.
1874
1875         New module 'fmodf-ieee'.
1876         * modules/fmodf-ieee: New file.
1877
1878 2012-02-27  Bruno Haible  <bruno@clisp.org>
1879
1880         Tests for module 'rintl-ieee'.
1881         * modules/rintl-ieee-tests: New file.
1882         * tests/test-rintl-ieee.c: New file.
1883
1884         New module 'rintl-ieee'.
1885         * modules/rintl-ieee: New file.
1886
1887         Tests for module 'rint-ieee'.
1888         * modules/rint-ieee-tests: New file.
1889         * tests/test-rint-ieee.c: New file.
1890
1891         New module 'rint-ieee'.
1892         * modules/rint-ieee: New file.
1893
1894         Tests for module 'rintf-ieee'.
1895         * modules/rintf-ieee-tests: New file.
1896         * tests/test-rintf-ieee.c: New file.
1897         * tests/test-rint-ieee.h: New file.
1898
1899         New module 'rintf-ieee'.
1900         * modules/rintf-ieee: New file.
1901
1902 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1903
1904         regex: re_search etc. should return -2 when memory exhausted
1905         This bug was uncovered when testing 'grep'.  Without the fix,
1906         re_search and friends return -1 when memory is exhausted, but -1
1907         means no match, and this causes grep to falsely report no-match
1908         instead of memory-exhaustion.  See
1909         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
1910         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
1911         trouble; this can occur if re_search_internal ran out of memory.
1912
1913 2012-02-26  Bruno Haible  <bruno@clisp.org>
1914
1915         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
1916         * m4/modfl-ieee.m4: New file.
1917         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
1918         whether modfl works with Inf. Replace it if not.
1919         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
1920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
1921         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
1922         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
1923         (Depends-on): Update dependencies.
1924         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
1925         m4/signbit.m4.
1926         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
1927         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
1928
1929         modfl-ieee: Fix dependencies.
1930         * modules/modfl-ieee (Depends-on): Add modf-ieee.
1931
1932         modfl-ieee: Fix test failures.
1933         * lib/modfl.c (modfl): Treat NaN and Inf specially.
1934         * modules/modfl (Depends-on): Add isfinite, isinf.
1935
1936         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
1937         * m4/modff-ieee.m4: New file.
1938         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
1939         whether modff works with NaN and Inf. Replace it if not.
1940         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
1941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
1942         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
1943         * modules/modff (configure.ac): Consider REPLACE_MODFF.
1944         (Depends-on): Update dependencies.
1945         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
1946         m4/signbit.m4.
1947         (Depends-on): Add modf-ieee.
1948         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
1949         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
1950
1951         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
1952         * m4/modf-ieee.m4: New file.
1953         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
1954         whether modf works with NaN and Inf. Replace it if not.
1955         * lib/math.in.h (modf): New declaration.
1956         * lib/modf.c: New file.
1957         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
1958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
1959         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
1960         * modules/modf (Files): Add lib/modf.c.
1961         (Depends-on): Add math, isfinite, trunc, isinf.
1962         (configure.ac): Addrange to compile lib/modf.c if needed.
1963         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
1964         m4/signbit.m4.
1965         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
1966         * tests/test-math-c++.cc: Check the declaration of modf.
1967         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
1968
1969         Tests for module 'modfl-ieee'.
1970         * modules/modfl-ieee-tests: New file.
1971         * tests/test-modfl-ieee.c: New file.
1972
1973         New module 'modfl-ieee'.
1974         * modules/modfl-ieee: New file.
1975
1976         Tests for module 'modf-ieee'.
1977         * modules/modf-ieee-tests: New file.
1978         * tests/test-modf-ieee.c: New file.
1979
1980         New module 'modf-ieee'.
1981         * modules/modf-ieee: New file.
1982
1983         Tests for module 'modff-ieee'.
1984         * modules/modff-ieee-tests: New file.
1985         * tests/test-modff-ieee.c: New file.
1986         * tests/test-modf-ieee.h: New file.
1987
1988         New module 'modff-ieee'.
1989         * modules/modff-ieee: New file.
1990
1991 2012-02-26  Bruno Haible  <bruno@clisp.org>
1992
1993         Tests for module 'fabsl-ieee'.
1994         * modules/fabsl-ieee-tests: New file.
1995         * tests/test-fabsl-ieee.c: New file.
1996
1997         New module 'fabsl-ieee'.
1998         * modules/fabsl-ieee: New file.
1999
2000         Tests for module 'fabs-ieee'.
2001         * modules/fabs-ieee-tests: New file.
2002         * tests/test-fabs-ieee.c: New file.
2003
2004         New module 'fabs-ieee'.
2005         * modules/fabs-ieee: New file.
2006
2007         Tests for module 'fabsf-ieee'.
2008         * modules/fabsf-ieee-tests: New file.
2009         * tests/test-fabsf-ieee.c: New file.
2010         * tests/test-fabs-ieee.h: New file.
2011
2012         New module 'fabsf-ieee'.
2013         * modules/fabsf-ieee: New file.
2014
2015 2012-02-26  Bruno Haible  <bruno@clisp.org>
2016
2017         Tests for module 'fmal-ieee'.
2018         * modules/fmal-ieee-tests: New file.
2019         * tests/test-fmal-ieee.c: New file.
2020
2021         New module 'fmal-ieee'.
2022         * modules/fmal-ieee: New file.
2023
2024         Tests for module 'fma-ieee'.
2025         * modules/fma-ieee-tests: New file.
2026         * tests/test-fma-ieee.c: New file.
2027
2028         New module 'fma-ieee'.
2029         * modules/fma-ieee: New file.
2030
2031         Tests for module 'fmaf-ieee'.
2032         * modules/fmaf-ieee-tests: New file.
2033         * tests/test-fmaf-ieee.c: New file.
2034         * tests/test-fma-ieee.h: New file.
2035
2036         New module 'fmaf-ieee'.
2037         * modules/fmaf-ieee: New file.
2038
2039 2012-02-26  Bruno Haible  <bruno@clisp.org>
2040
2041         Tests for module 'ldexpl-ieee'.
2042         * modules/ldexpl-ieee-tests: New file.
2043         * tests/test-ldexpl-ieee.c: New file.
2044
2045         New module 'ldexpl-ieee'.
2046         * modules/ldexpl-ieee: New file.
2047
2048         Tests for module 'ldexp-ieee'.
2049         * modules/ldexp-ieee-tests: New file.
2050         * tests/test-ldexp-ieee.c: New file.
2051
2052         New module 'ldexp-ieee'.
2053         * modules/ldexp-ieee: New file.
2054
2055         Tests for module 'ldexpf-ieee'.
2056         * modules/ldexpf-ieee-tests: New file.
2057         * tests/test-ldexpf-ieee.c: New file.
2058         * tests/test-ldexp-ieee.h: New file.
2059
2060         New module 'ldexpf-ieee'.
2061         * modules/ldexpf-ieee: New file.
2062
2063 2012-02-26  Bruno Haible  <bruno@clisp.org>
2064
2065         Refactor frexp*-ieee tests.
2066         * tests/test-frexp-ieee.h: New file.
2067         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2068         (main): Just call test_function.
2069         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2070         (main): Just call test_function.
2071         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2072         (main): Just call test_function.
2073         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2074         * modules/frexp-ieee-tests (Files): Likewise.
2075         * modules/frexpl-ieee-tests (Files): Likewise.
2076
2077         Tests for module 'frexpl-ieee'.
2078         * modules/frexpl-ieee-tests: New file.
2079         * tests/test-frexpl-ieee.c: New file.
2080
2081         New module 'frexpl-ieee'.
2082         * modules/frexpl-ieee: New file.
2083
2084         Tests for module 'frexp-ieee'.
2085         * modules/frexp-ieee-tests: New file.
2086         * tests/test-frexp-ieee.c: New file.
2087
2088         New module 'frexp-ieee'.
2089         * modules/frexp-ieee: New file.
2090
2091         Tests for module 'frexpf-ieee'.
2092         * modules/frexpf-ieee-tests: New file.
2093         * tests/test-frexpf-ieee.c: New file.
2094
2095         New module 'frexpf-ieee'.
2096         * modules/frexpf-ieee: New file.
2097
2098 2012-02-26  Bruno Haible  <bruno@clisp.org>
2099
2100         roundl-ieee tests: More tests.
2101         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2102         (main): Add tests for [MX] shaded specification in POSIX.
2103         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2104         (Depends-on): Add isnanl-nolibm.
2105
2106         round-ieee tests: More tests.
2107         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2108         (main): Add tests for [MX] shaded specification in POSIX.
2109         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2110         (Depends-on): Add isnand-nolibm.
2111
2112         roundf-ieee tests: More tests.
2113         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2114         (main): Add tests for [MX] shaded specification in POSIX.
2115         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2116         (Depends-on): Add isnanf-nolibm.
2117
2118         truncl-ieee tests: More tests.
2119         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2120         (main): Add tests for [MX] shaded specification in POSIX.
2121         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2122         (Depends-on): Add isnanl-nolibm.
2123
2124         trunc-ieee tests: More tests.
2125         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2126         (main): Add tests for [MX] shaded specification in POSIX.
2127         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2128         (Depends-on): Add isnand-nolibm.
2129
2130         truncf-ieee tests: More tests.
2131         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2132         (main): Add tests for [MX] shaded specification in POSIX.
2133         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2134         (Depends-on): Add isnanf-nolibm.
2135
2136         ceill-ieee tests: More tests.
2137         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2138         (main): Add tests for [MX] shaded specification in POSIX.
2139         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2140         (Depends-on): Add isnanl-nolibm.
2141
2142         ceil-ieee tests: More tests.
2143         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2144         (main): Add tests for [MX] shaded specification in POSIX.
2145         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2146         (Depends-on): Add isnand-nolibm.
2147
2148         ceilf-ieee tests: More tests.
2149         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2150         (main): Add tests for [MX] shaded specification in POSIX.
2151         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2152         (Depends-on): Add isnanf-nolibm.
2153
2154         floorl-ieee tests: More tests.
2155         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2156         (main): Add tests for [MX] shaded specification in POSIX.
2157         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2158         (Depends-on): Add isnanl-nolibm.
2159
2160         floor-ieee tests: More tests.
2161         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2162         (main): Add tests for [MX] shaded specification in POSIX.
2163         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2164         (Depends-on): Add isnand-nolibm.
2165
2166         floorf-ieee tests: More tests.
2167         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2168         (main): Add tests for [MX] shaded specification in POSIX.
2169         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2170         (Depends-on): Add isnanf-nolibm.
2171
2172 2012-02-26  Bruno Haible  <bruno@clisp.org>
2173
2174         fpieee: More comments.
2175         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2176
2177 2012-02-25  Bruno Haible  <bruno@clisp.org>
2178
2179         Tests for module 'log10l'.
2180         * modules/log10l-tests: New file.
2181         * tests/test-log10l.c: New file.
2182         * tests/test-math-c++.cc: Check the declaration of log10l.
2183
2184         New module 'log10l'.
2185         * lib/math.in.h (log10l): New declaration.
2186         * lib/log10l.c: New file.
2187         * m4/log10l.m4: New file.
2188         * modules/log10l: New file.
2189         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2191         HAVE_DECL_LOG10L.
2192         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2193         HAVE_DECL_LOG10L.
2194         * doc/posix-functions/log10l.texi: Mention the new module.
2195
2196 2012-02-25  Bruno Haible  <bruno@clisp.org>
2197
2198         fmodl, remainder*: Avoid wrong results due to rounding errors.
2199         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2200         expected bounds.
2201         * lib/remainderf.c (remainderf): Likewise.
2202         * lib/remainder.c (remainder): Likewise.
2203         * lib/remainderl.c (remainderl): Likewise.
2204
2205 2012-02-25  Bruno Haible  <bruno@clisp.org>
2206
2207         Tests for module 'remainderl'.
2208         * modules/remainderl-tests: New file.
2209         * tests/test-remainderl.c: New file.
2210         * tests/test-math-c++.cc: Check the declaration of remainderl.
2211
2212         New module 'remainderl'.
2213         * lib/math.in.h (remainderl): New declaration.
2214         * lib/remainderl.c: New file.
2215         * m4/remainderl.m4: New file.
2216         * modules/remainderl: New file.
2217         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2219         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2220         HAVE_REMAINDERL.
2221         * doc/posix-functions/remainderl.texi: Mention the new module.
2222
2223 2012-02-25  Bruno Haible  <bruno@clisp.org>
2224
2225         Tests for module 'remainderf'.
2226         * modules/remainderf-tests: New file.
2227         * tests/test-remainderf.c: New file.
2228         * tests/test-math-c++.cc: Check the declaration of remainderf.
2229
2230         New module 'remainderf'.
2231         * lib/math.in.h (remainderf): New declaration.
2232         * lib/remainderf.c: New file.
2233         * m4/remainderf.m4: New file.
2234         * modules/remainderf: New file.
2235         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2237         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2238         HAVE_REMAINDERF.
2239         * doc/posix-functions/remainderf.texi: Mention the new module.
2240
2241 2012-02-25  Bruno Haible  <bruno@clisp.org>
2242
2243         remainder: Support for MSVC.
2244         * lib/math.in.h (remainder): New declaration.
2245         * lib/remainder.c: New file.
2246         * m4/remainder.m4: New file.
2247         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2248         (Depends-on): Add math, round, fma.
2249         (configure.ac): Use results of gl_FUNC_REMAINDER.
2250         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2252         HAVE_DECL_REMAINDER.
2253         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2254         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2255         * tests/test-math-c++.cc: Check the declaration of remainder.
2256         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2257         problems are fixed.
2258
2259 2012-02-25  Bruno Haible  <bruno@clisp.org>
2260
2261         Tests for module 'fmodl'.
2262         * modules/fmodl-tests: New file.
2263         * tests/test-fmodl.c: New file.
2264         * tests/test-math-c++.cc: Check the declaration of fmodl.
2265
2266         New module 'fmodl'.
2267         * lib/math.in.h (fmodl): New declaration.
2268         * lib/fmodl.c: New file.
2269         * m4/fmodl.m4: New file.
2270         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2272         REPLACE_FMODL.
2273         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2274         REPLACE_FMODL.
2275         * modules/fmodl: New file.
2276         * doc/posix-functions/fmodl.texi: Mention the new module.
2277
2278 2012-02-25  Bruno Haible  <bruno@clisp.org>
2279
2280         Tests for module 'modfl'.
2281         * modules/modfl-tests: New file.
2282         * tests/test-modfl.c: New file.
2283         * tests/test-math-c++.cc: Check the declaration of modfl.
2284
2285         New module 'modfl'.
2286         * lib/math.in.h (modfl): New declaration.
2287         * lib/modfl.c: New file.
2288         * m4/modfl.m4: New file.
2289         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2291         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2292         * modules/modfl: New file.
2293         * doc/posix-functions/modfl.texi: Mention the new module.
2294
2295 2012-02-25  Bruno Haible  <bruno@clisp.org>
2296
2297         Tests for module 'fabsl'.
2298         * modules/fabsl-tests: New file.
2299         * tests/test-fabsl.c: New file.
2300         * tests/test-math-c++.cc: Check the declaration of fabsl.
2301
2302         New module 'fabsl'.
2303         * lib/math.in.h (fabsl): New declaration.
2304         * lib/fabsl.c: New file.
2305         * m4/fabsl.m4: New file.
2306         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2308         REPLACE_FABSL.
2309         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2310         REPLACE_FABSL.
2311         * modules/fabsl: New file.
2312         * doc/posix-functions/fabsl.texi: Mention the new module.
2313
2314 2012-02-25  Bruno Haible  <bruno@clisp.org>
2315
2316         fabs tests: More tests.
2317         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2318         (zero): New variable.
2319         (main): Add tests for signed zero.
2320         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2321
2322         fabsf tests: More tests.
2323         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2324         (zero): New variable.
2325         (main): Add tests for signed zero.
2326         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2327
2328 2012-02-24  Bruno Haible  <bruno@clisp.org>
2329
2330         atanl: Provide function definition on MSVC.
2331         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2332         function pointer.
2333         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2334
2335 2012-02-24  Bruno Haible  <bruno@clisp.org>
2336
2337         acosl: Provide function definition on MSVC.
2338         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2339         function pointer.
2340         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2341
2342 2012-02-24  Bruno Haible  <bruno@clisp.org>
2343
2344         asinl: Provide function definition on MSVC.
2345         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2346         function pointer.
2347         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2348
2349 2012-02-24  Bruno Haible  <bruno@clisp.org>
2350
2351         tanl: Provide function definition on MSVC.
2352         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2353         function pointer.
2354         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2355
2356 2012-02-24  Bruno Haible  <bruno@clisp.org>
2357
2358         cosl: Provide function definition on MSVC.
2359         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2360         function pointer.
2361         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2362
2363 2012-02-24  Bruno Haible  <bruno@clisp.org>
2364
2365         sinl: Provide function definition on MSVC.
2366         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2367         function pointer.
2368         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2369
2370 2012-02-24  Bruno Haible  <bruno@clisp.org>
2371
2372         logl: Provide function definition on MSVC.
2373         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2374         function pointer.
2375         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2376
2377 2012-02-24  Bruno Haible  <bruno@clisp.org>
2378
2379         expl: Provide function definition on MSVC.
2380         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2381         function pointer.
2382         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2383
2384 2012-02-24  Bruno Haible  <bruno@clisp.org>
2385
2386         sqrtl: Provide function definition on MSVC.
2387         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2388         a function pointer.
2389         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2390
2391 2012-02-24  Bruno Haible  <bruno@clisp.org>
2392
2393         ceill: Provide function definition on MSVC.
2394         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2395         used as a function pointer.
2396         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2397
2398 2012-02-24  Bruno Haible  <bruno@clisp.org>
2399
2400         floorl: Provide function definition on MSVC.
2401         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2402         used as a function pointer.
2403         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2404
2405 2012-02-24  Bruno Haible  <bruno@clisp.org>
2406
2407         ceilf: Provide function definition on MSVC.
2408         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2409         used as a function pointer.
2410         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2411
2412 2012-02-24  Bruno Haible  <bruno@clisp.org>
2413
2414         floorf: Provide function definition on MSVC.
2415         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2416         used as a function pointer.
2417         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2418
2419 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2420
2421         stdnoreturn: new module
2422         This implements a replacement for C11's <stdnoreturn.h>.
2423         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2424         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2425         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2426         * tests/test-stdnoreturn.c: New files.
2427
2428 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2429
2430         regex: fix false multibyte matches in some regular expressions
2431         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2432         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2433         * lib/regex_internal.c (re_string_skip_chars):
2434         Fix miscomputation of remain_len that may cause incomplete
2435         multi-byte character and false match.
2436
2437 2012-02-24  Jim Meyering  <meyering@redhat.com>
2438
2439         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2440         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2441         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2442         Remove now-unnecessary str''cmp obfuscation.
2443         Suggested by Akim Demaille.
2444
2445 2012-02-24  Bruno Haible  <bruno@clisp.org>
2446
2447         streq: Rename macro.
2448         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2449         * NEWS: Mention the change.
2450         * lib/mbrtowc.c (mbrtowc): Update.
2451         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2452         * lib/wcwidth.c (wcwidth): Update.
2453         Suggested by Akim Demaille and Jim Meyering.
2454
2455 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2456
2457         regex: fix typo in definition of MIN
2458         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2459         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2460
2461 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2462             Bruno Haible  <bruno@clisp.org>
2463
2464         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2465         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2466         entries into a stack-allocated buffer directly.
2467         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2468
2469 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2470             Bruno Haible  <bruno@clisp.org>
2471
2472         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2473
2474          - There were several instances of this pattern:
2475
2476              for (;;) {
2477                n = acl (f, GETACLCNT, 0, NULL);
2478                [ allocate an array A of size N ]
2479                if (acl (f, GETACL, n, a) == n)
2480                  break;
2481              }
2482
2483            This loop might never terminate if some other process is constantly
2484            manipulating the file's ACL.  The loop should be rewritten to
2485            terminate.
2486
2487          - The acl (... GETACLNT ...) call is merely an optimization; its value
2488            is merely a hint as to how big to make the array.  A better
2489            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2490            and just guess a reasonably-big size, growing the size and trying
2491            again if it's not large enough.  This guarantees termination, and
2492            saves a system call.
2493
2494         * lib/acl-internal.h: Include <limits.h>.
2495         (MIN, SIZE_MAX): New macros.
2496         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2497         a stack-allocated buffer, and use malloc if it does not fit. Don't
2498         use GETACLCNT.
2499         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2500
2501 2012-02-19  Bruno Haible  <bruno@clisp.org>
2502
2503         acl: Fix endless loop on Solaris with vxfs.
2504         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2505         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2506         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2507         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2508         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2509         Reported by Bill Jones in
2510         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2511
2512 2012-02-19  Bruno Haible  <bruno@clisp.org>
2513
2514         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2515         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2516         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2517         that this function returns 0 in some more cases.
2518
2519 2012-02-19  Bruno Haible  <bruno@clisp.org>
2520
2521         acl: Update doc references.
2522         * doc/acl-resources.txt: Update links to Solaris documentation.
2523
2524 2012-02-19  Bruno Haible  <bruno@clisp.org>
2525
2526         Fix test failure in many locales on Solaris 11.
2527         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2528         'tr' arguments.
2529         * tests/test-pipe-filter-ii1.c (main): Likewise.
2530         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2531         expressions in the C locale.
2532         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2533         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2534
2535 2012-02-19  Bruno Haible  <bruno@clisp.org>
2536
2537         gnulib-tool: Improve usage message.
2538         * gnulib-tool (func_usage): Move doc of --help and --version to the
2539         section "Operation modes".
2540
2541 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2542
2543         README-release: make it easier to execute commands
2544         * top/README-release: break commands out on to separate lines.
2545
2546 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2547
2548         GNUmakefile: simplify detection of unconfigured trees
2549         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2550         whether the tree make is being run from is already configured or
2551         not.  Related simplifications.
2552
2553 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2554
2555         * gnulib-tool (func_usage): Document --help and --version.
2556
2557 2012-02-11  Jim Meyering  <meyering@redhat.com>
2558
2559         bootstrap: don't exit 0 upon gnulib-tool failure
2560         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2561         its exit status, not 0.
2562
2563 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2564
2565         README-release: various improvements
2566         * top/README-release: Give a command to push changes for the
2567         release.  Add "distcheck" to list of other pre-release checks.
2568         Fix instance of "make stable" which should be "make TYPE".
2569
2570 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2571
2572         maint: replace FSF snail-mail addresses with URLs
2573         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2574         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2575         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2576         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2577         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2578         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2579         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2580         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2581         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2582         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2583         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2584         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2585         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2586         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2587         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2588         * lib/glthread/thread.c, lib/glthread/thread.h:
2589         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2590         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2591         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2592         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2593         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2594         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2595         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2596         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2597         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2598         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2599         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2600         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2601         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2602         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2603         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2604         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2605         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2606         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2607         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2608         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2609         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2610         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2611         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2612         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2613         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2614         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2615         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2616         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2617         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2618         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2619         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2620         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2621         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2622         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2623         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2624         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2625         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2626         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2627         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2628         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2629         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2630         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2631         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2632         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2633         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2634         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2635         * tests/test-poll.c, tests/test-quotearg-simple.c:
2636         * tests/test-quotearg.c, tests/test-quotearg.h:
2637         * tests/test-round-ieee.c, tests/test-round1.c:
2638         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2639         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2640         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2641         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2642         * tests/test-strerror.c, tests/test-strerror_r.c:
2643         * tests/test-strsignal.c, tests/test-strverscmp.c:
2644         * tests/test-xmemdup0.c:
2645         Replace FSF snail mail addresses with URLs, as per GNU coding
2646         standards.  See glibc bug
2647         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2648
2649 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2650
2651         README-release: capitalize a word and split a line
2652         * top/README-release: Fix punctuation and spacing.
2653
2654 2012-02-08  Akim Demaille  <demaille@gostai.com>
2655
2656         fatal-signal: use C prototypes (with explicit void).
2657         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2658         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2659
2660 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         regex: spelling fix
2663         * lib/regexec.c: spelling fix
2664
2665         regex: rely on stdint.h for SIZE_MAX
2666         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2667
2668 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2669
2670         regex: merge glibc changes
2671
2672         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2673         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2674         (init_word_char): Work even if bitset words are not exactly 32 or
2675         64 bits wide.  Don't assume there are no padding bits.
2676         * lib/regex.c [_LIBC]: Do not include <config.h>.
2677         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2678         and -Wtype-limits.
2679         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2680         needless disagreement with glibc.  All uses changed.  Define it to
2681         1 only if _GNU_SOURCE, to match glibc.
2682         (_REG_RM_NAME): Remove; no longer needed, since the names in
2683         question are now all protected by __USE_GNU.
2684         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2685         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2686         * lib/regex_internal.h (MIN): New macro.
2687
2688         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2689         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2690
2691         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2692         * lib/regex_internal.c (re_string_fetch_byte_case):
2693         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2694         is miscompiled, and it turns out it is because of an incorrect
2695         attribute on re_string_fetch_byte_case.  Unlike
2696         re_string_peek_byte_case, this one is really not pure, it modifies
2697         memory (increments pstr->cur_idx), and with the pure attribute GCC
2698         assumed it doesn't and it cached the presumed value of
2699         regexp->cur_idx in a variable across the
2700          for (;; ++i)
2701            {
2702              if (i >= BRACKET_NAME_BUF_SIZE)
2703                return REG_EBRACK;
2704              if (token->type == OP_OPEN_CHAR_CLASS)
2705                ch = re_string_fetch_byte_case (regexp);
2706              else
2707                ch = re_string_fetch_byte (regexp);
2708              if (re_string_eoi(regexp))
2709                return REG_EBRACK;
2710              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2711                break;
2712              elem->opr.name[i] = ch;
2713            }
2714
2715         2011-11-29 Andreas Schwab <schwab@redhat.com>
2716         * lib/regcomp.c (build_equiv_class):
2717         Fix access after end of search string in regex matcher.
2718
2719         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2720         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2721
2722         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2723         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2724
2725         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2726         * lib/regcomp.c (parse_branch, parse_sub_exp):
2727         More regex memory leak fixes and tests.
2728         (parse_sub_exp, parse_bracket_exp):
2729         Fix memory leak for some invalid regular expressions.
2730
2731         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2732         * lib/regex_internal.c, lib/regexec.c:
2733         Fix unnecessary overallocation due to incomplete character.  When
2734         incomplete characters are found at the end of a string the code
2735         ran amok and allocated lots of memory.  Stricter limits are now in
2736         place.
2737
2738         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2739         * lib/regex.h: Update documentation.
2740
2741         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2742         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2743
2744         2010-05-05 Andreas Schwab <schwab@redhat.com>
2745         * lib/regexec.c (find_collation_sequence_value):
2746         Fix lookup of collation sequence value during regexp matching.
2747
2748         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2749         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2750
2751         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2752         * lib/regex.h: Cleanup namespace.
2753
2754         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2755         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2756
2757         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2758         * lib/regex_internal.h: Prevent some declarations and definitions
2759         to be seen when used in tests.
2760
2761         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2762         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2763         __libc_lock_* macros if not _LIBC.
2764         (struct re_dfa_t): Add lock.
2765
2766 2012-02-07  Eric Blake  <eblake@redhat.com>
2767
2768         maint.mk: also prohibit lower-case @var@
2769         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2770         lower case, like @top_srcdir@.
2771
2772 2012-02-04  Eric Blake  <eblake@redhat.com>
2773
2774         canonicalize: avoid uninitialized memory use
2775         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2776         random '/' left in dest.
2777         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2778
2779 2012-02-04  Bruno Haible  <bruno@clisp.org>
2780
2781         isatty: Fix test failure of ptsname_r on native Windows.
2782         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2783         and don't set errno.
2784         (isatty): Test first whether fd is valid. Set errno when returning 0.
2785
2786 2012-02-04  Bruno Haible  <bruno@clisp.org>
2787
2788         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2789         * tests/test-spawn-pipe-main.c: Include progname.h.
2790         (main): Invoke set_program_name.
2791         * modules/spawn-pipe-tests (Depends-on): Add progname.
2792
2793         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2794         * tests/test-nonblocking-socket-main.c: Include progname.h.
2795         (main): Invoke set_program_name.
2796         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2797
2798         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2799         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2800         (main): Invoke set_program_name.
2801         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2802
2803 2012-02-04  Eric Blake  <eblake@redhat.com>
2804
2805         canonicalize-lgpl: fix // handling
2806         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2807
2808         canonicalize: fix // handling
2809         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2810         /// to //, since only // is special.
2811
2812 2012-02-04  Bruno Haible  <bruno@clisp.org>
2813
2814         ioctl: Fix test failure on native Windows.
2815         * lib/ioctl.c: Include msvc-nothrow.h.
2816         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2817
2818 2012-02-04  Bruno Haible  <bruno@clisp.org>
2819
2820         fsync: Avoid test failure on native Windows.
2821         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2822         read-only.
2823
2824 2012-02-04  Bruno Haible  <bruno@clisp.org>
2825
2826         sys_select: Avoid syntax error on OpenBSD 5.0.
2827         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2828         currently being included, just include the system's <sys/select.h>.
2829
2830 2012-02-04  Bruno Haible  <bruno@clisp.org>
2831
2832         sys_select: Avoid syntax error on OpenBSD 5.0.
2833         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2834         <sys/select.h>, not before.
2835         Reported by Jiri B <jirib@devio.us>.
2836
2837 2012-02-04  Bruno Haible  <bruno@clisp.org>
2838
2839         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2840         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2841         global variables.
2842         * tests/test-get-rusage-data.c (main): Likewise.
2843         Reported by Jim Meyering.
2844
2845 2012-02-04  Bruno Haible  <bruno@clisp.org>
2846
2847         stdioext: Fix last commit.
2848         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
2849
2850 2012-02-03  Bruno Haible  <bruno@clisp.org>
2851
2852         stdioext: Add tentative support for Plan9.
2853         * lib/stdio-impl.h: Include <errno.h>.
2854         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
2855         * lib/freadable.c (freadable): Likewise.
2856         * lib/fwritable.c (fwritable): Likewise.
2857         * lib/fbufmode.c (fbufmode): Likewise.
2858         * lib/freading.c (freading): Likewise.
2859         * lib/fwriting.c (fwriting): Likewise.
2860         * lib/freadptr.c (freadptr): Likewise.
2861         * lib/freadseek.c (freadptrinc): Likewise.
2862         * lib/freadahead.c (freadahead): Likewise.
2863         * lib/fpurge.c (fpurge): Likewise.
2864         * lib/fseeko.c (rpl_fseeko): Likewise.
2865         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
2866         Reported by Jens Staal <staal1978@gmail.com>.
2867
2868 2012-02-02  Jim Meyering  <meyering@redhat.com>
2869
2870         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
2871         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
2872         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
2873         not even to try to add the attribute.  Instead, add a pragma to suppress
2874         the suggestion/warning.
2875
2876 2012-01-31  Karl Berry  <karl@gnu.org>
2877
2878         setstate doc: typo.
2879         * doc/posix-functions/setstate.texi (setstate): { not (.
2880
2881 2012-01-31  Bruno Haible  <bruno@clisp.org>
2882
2883         popen: Make more robust on Windows.
2884         * lib/popen.c: On native Windows, use the _popen based code even if
2885         HAVE_POPEN is set.
2886         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
2887         environment variable on native Windows.
2888
2889 2012-01-30  Bruno Haible  <bruno@clisp.org>
2890
2891         pclose: Fix typo.
2892         * lib/stdio.in.h (pclose): Fix typo in warning message.
2893
2894 2012-01-30  Bruno Haible  <bruno@clisp.org>
2895
2896         doc about getlogin_r, setstate.
2897         * doc/posix-functions/getlogin_r.texi: List the incompatible
2898         declaration problem under "not fixed by gnulib".
2899         * doc/posix-functions/setstate.texi: Mention incompatible declaration
2900         problem on Solaris 11 and other platforms.
2901
2902 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
2903             Bruno Haible  <bruno@clisp.org>
2904
2905         poll tests: Make test more robust.
2906         * tests/test-poll.c: Include macros.h.
2907         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
2908         return value of various I/O operations.
2909         * modules/poll-tests (Files): Add tests/macros.h.
2910
2911 2012-01-30  Bruno Haible  <bruno@clisp.org>
2912
2913         sys_stat: Fix support for mingw64 and MSVC.
2914         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
2915         header files already do it.
2916         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
2917         stat itself.
2918         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2919
2920 2012-01-30  Bruno Haible  <bruno@clisp.org>
2921
2922         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
2923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
2924         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
2925
2926 2012-01-29  Bruno Haible  <bruno@clisp.org>
2927
2928         quotearg: Fix test failure on MacOS X 10.5.
2929         * tests/test-quotearg-simple.c: Include localcharset.h.
2930         (main): If the locale encoding is not ASCII, bypass the tests of
2931         locale_quoting_style and clocale_quoting_style.
2932         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
2933
2934 2012-01-29  Jim Meyering  <meyering@redhat.com>
2935
2936         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
2937         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
2938         detect uses of canonicalize_file_name.
2939
2940 2012-01-28  Bruno Haible  <bruno@clisp.org>
2941
2942         test-framework-sh: Fix test failure with AIX 7.1 diff.
2943         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
2944         in column 1, like 'diff -c' does.
2945         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
2946         whether 'diff -u' is used. Instead, test whether the output contains
2947         some '@' character.
2948
2949 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2950
2951         strtoimax: eliminate need for stdint.h, inttypes.h checks
2952         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
2953         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
2954         the prerequisites for a recently-introduced strtoimax test.
2955         I guess this might cause strtoimax to be replaced when not
2956         strictly necessary on older hosts, but this shouldn't introduce
2957         any bugs and it should make Emacs 'configure' faster on typical
2958         modern hosts.  Problem discovered when importing the latest gnulib
2959         to an Emacs test version.
2960         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
2961
2962 2012-01-28  Bruno Haible  <bruno@clisp.org>
2963
2964         sys_time: Override 'struct timeval' on some native Windows platforms.
2965         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
2966         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
2967         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
2968         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
2969         needs to be overridden.
2970         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
2971         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
2972         * tests/test-sys_select.c: Check that the tv_sec member has the same
2973         size as a 'time_t'.
2974         * tests/test-sys_time.c: Likewise.
2975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
2976         is set, set also REPLACE_GETTIMEOFDAY.
2977         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
2978         convert the resulting 'struct timeval' before returning.
2979         * lib/select.c: Include <sys/time.h>.
2980         (select, timeval): Undefine at the right place.
2981         * modules/select (Depends-on): Add sys_time.
2982         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
2983         some Windows platforms.
2984         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2985
2986 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2987
2988         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
2989         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
2990         an integer.
2991         * lib/fcntl.c (dupfd): Likewise.
2992         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
2993
2994 2012-01-28  Bruno Haible  <bruno@clisp.org>
2995
2996         fcntl: Avoid compilation error on native Windows.
2997         * modules/fcntl (Depends-on): Add 'close'.
2998
2999 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3000
3001         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3002         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3003         pointer to an integer.
3004         * lib/poll.c (IsConsoleHandle): Likewise.
3005         * lib/isatty.c (IsConsoleHandle): Likewise.
3006
3007 2012-01-28  Jim Meyering  <meyering@redhat.com>
3008
3009         doc: clarify README-release
3010         * top/README-release: Clarify: you should make a point to have
3011         the latest stable versions of build tools in your PATH, and the
3012         reference to buildreq is solely for its list of tool names, not
3013         for its minimal-functional version numbers.
3014         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3015
3016         maint.mk: use more readable (yet functionally equivalent) quoting
3017         It is common to quote a single quote in a single quoted string like
3018         this:  '...'\''...'.  Unless you know the idiom, that looks like
3019         gibberish, so prefer to double-quote the string when possible.
3020         Then you can use a more readable, lone single quote: "...'..."
3021         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3022         "don't" is more readable than the equivalent 'don'\''t'.
3023         (sc_cast_of_x_alloc_return_value): Likewise.
3024         (sc_cast_of_alloca_return_value): Likewise.
3025         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3026         rather than '\'':'\''.
3027
3028 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3029
3030         stdalign: relax _Alignof and tighten _Alignas test
3031         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3032         as it was too strict: alignof must divide offsetof, but it need
3033         not equal offsetof.  Inspired by Joseph S. Myers's comment
3034         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3035         Conversely, tighten the _Alignas test a bit, as the resulting
3036         alignment must be exactly 8.
3037
3038 2012-01-27  Bruno Haible  <bruno@clisp.org>
3039
3040         stdalign: Document the last change.
3041         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3042
3043 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3044
3045         stdalign: check that alignof and offsetof are consistent
3046         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3047         Problem reported for gnulib by Richard W.M. Jones in
3048         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3049
3050 2012-01-27  Jim Meyering  <meyering@redhat.com>
3051
3052         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3053         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3054         convert a sequence with gaps to the minimal containing range.
3055         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3056         * tests/test-update-copyright.sh: Test for this.
3057         The FSF confirmed it is ok to do this, assuming there is at
3058         least one significant change per year in the affected range:
3059         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3060
3061 2012-01-26  Bruno Haible  <bruno@clisp.org>
3062
3063         pipe2: refine doc about thread-safety
3064         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3065         multithread-safety problem.
3066         * doc/glibc-functions/accept4.texi: Likewise.
3067
3068 2012-01-26  Bruno Haible  <bruno@clisp.org>
3069
3070         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3071         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3072         In the test program, include <fcntl.h>, for O_RDONLY.
3073
3074 2012-01-26  Eric Blake  <eblake@redhat.com>
3075
3076         pipe2: document lack of thread-safety in replacement
3077         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3078         issue in replacement.
3079         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3080         Based on a report by Eric Wong.
3081
3082 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3083             Bruno Haible  <bruno@clisp.org>
3084
3085         malloca: Avoid warnings on x86_64 mingw64.
3086         * lib/malloca.c: Include <stdint.h>.
3087         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3088         * modules/malloca (Depends-on): Add stdint.
3089         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3090
3091 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3092
3093         obstack: remove __STDC__ conditionals
3094         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3095         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3096         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3097         m4/include_next.m4 as the only gnulib-maintained places that still
3098         refer to __STDC__.
3099
3100 2012-01-24  Bruno Haible  <bruno@clisp.org>
3101
3102         havelib: Modern quoting.
3103         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3104         the recent change to the GNU coding standards.
3105
3106 2012-01-24  Bruno Haible  <bruno@clisp.org>
3107
3108         stdint: Improve support for Android.
3109         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3110         Reported by Simon Josefsson <simon@josefsson.org>.
3111
3112 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3113
3114         doc: omit trailing empty lines from INSTALL etc.
3115         * doc/Makefile (INSTALL): Omit trailing empty lines.
3116         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3117         omit trailing empty lines.  This simplifies the build procedure.
3118
3119 2012-01-23  Jim Meyering  <meyering@redhat.com>
3120
3121         tests: avoid spurious warnings about gl_sockets_startup
3122         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3123         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3124         reporting a "statement with no effect".
3125         * tests/test-accept.c (main): Mark as "(void)".
3126         * tests/test-accept4.c (main): Likewise.
3127         * tests/test-bind.c (main): Likewise.
3128         * tests/test-connect.c (main): Likewise.
3129         * tests/test-getpeername.c (main): Likewise.
3130         * tests/test-getsockname.c (main): Likewise.
3131         * tests/test-getsockopt.c (main): Likewise.
3132         * tests/test-listen.c (main): Likewise.
3133         * tests/test-recv.c (main): Likewise.
3134         * tests/test-recvfrom.c (main): Likewise.
3135         * tests/test-send.c (main): Likewise.
3136         * tests/test-sendto.c (main): Likewise.
3137         * tests/test-setsockopt.c (main): Likewise.
3138         * tests/test-shutdown.c (main): Likewise.
3139
3140 2012-01-21  Bruno Haible  <bruno@clisp.org>
3141
3142         locale-fr.m4: Fix for Android.
3143         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3144         failure of the test program on Bionic libc.
3145
3146 2012-01-21  Jim Meyering  <meyering@redhat.com>
3147
3148         bootstrap: fail when bootstrap_post_import_hook fails
3149         Otherwise, it's far too easy to miss diagnostics emitted
3150         between gnulib-tool's output and that of running configure.
3151         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3152
3153 2012-01-17  Jim Meyering  <meyering@redhat.com>
3154
3155         maint: enable sc_trailing_blank
3156         * build-aux/pmccabe.css: Remove trailing blanks.
3157         * doc/acl-cygwin.txt: Likewise.
3158         * doc/gnu-oids.texi: Likewise
3159         * cfg.mk: Enable sc_trailing_blank.
3160         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3161
3162 2012-01-17  Jim Meyering  <meyering@redhat.com>
3163
3164         maint: enable sc_prohibit_openat_without_use
3165         * cfg.mk: Enable sc_prohibit_openat_without_use.
3166         Exempt lib/selinux-at.c.
3167
3168 2012-01-17  Jim Meyering  <meyering@redhat.com>
3169
3170         maint: enable sc_prohibit_cloexec_without_use
3171         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3172         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3173
3174 2012-01-17  Jim Meyering  <meyering@redhat.com>
3175
3176         maint: enable sc_prohibit_intprops_without_use
3177         * cfg.mk: Enable sc_prohibit_intprops_without_use
3178         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3179
3180 2012-01-17  Jim Meyering  <meyering@redhat.com>
3181
3182         maint: enable sc_prohibit_hash_pjw_without_use
3183         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3184         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3185         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3186         following " (".
3187
3188 2012-01-17  Jim Meyering  <meyering@redhat.com>
3189
3190         maint: enable double-word-prohibiting rule
3191         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3192         Exempt three files.
3193
3194 2012-01-17  Jim Meyering  <meyering@redhat.com>
3195
3196         maint: remove empty lines at EOF, but excluding modules/*
3197         Apply syntax rules at home as well as abroad.  Most changes
3198         were induced by running this:
3199           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3200             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3201             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3202         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3203         Exempt modules/* and two binary files.
3204         Also exempt doc/INSTALL*, per request from Bruno Haible.
3205         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3206         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3207         * doc/Copyright/request-assign.future: Likewise.
3208         * doc/Copyright/request-disclaim.changes: Likewise.
3209         * doc/INSTALL: Likewise.
3210         * doc/INSTALL.ISO: Likewise.
3211         * doc/INSTALL.UTF-8: Likewise.
3212         * doc/acl-cygwin.txt: Likewise.
3213         * doc/acl-resources.txt: Likewise.
3214         * doc/fdl-1.2.texi: Likewise.
3215         * doc/fdl-1.3.texi: Likewise.
3216         * doc/fdl.texi: Likewise.
3217         * lib/argp-pin.c: Likewise.
3218         * lib/round.c: Likewise.
3219         * lib/unicase/u16-totitle.c: Likewise.
3220         * lib/unictype/block_test.c: Likewise.
3221         * lib/uninorm/canonical-decomposition.c: Likewise.
3222         * m4/README: Likewise.
3223         * m4/relocatable-lib.m4: Likewise.
3224         * tests/test-isnand-nolibm.c: Likewise.
3225         * tests/test-isnand.c: Likewise.
3226         * tests/uninorm/NormalizationTest.txt: Likewise.
3227
3228 2012-01-17  Jim Meyering  <meyering@redhat.com>
3229
3230         maint: add framework to run syntax-check rules against gnulib sources
3231         * cfg.mk: New file, to disable all currently-failing tests.
3232         We'll enable them one by one, as they are made to pass.
3233         * Makefile (sc_maint): New rule.
3234
3235 2012-01-21  Bruno Haible  <bruno@clisp.org>
3236
3237         stdint: Add support for Android.
3238         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3239         include the system's <stdint.h>.
3240         Reported by Simon Josefsson <simon@josefsson.org>.
3241
3242 2012-01-19  Jim Meyering  <meyering@redhat.com>
3243
3244         bootstrap: add bootstrap_post_import_hook
3245         Bison does still need something like the gnulib_mk_hook whose
3246         invocation I had to remove along with slurp in commit 767ccd40.
3247         Technically, we could get along without it, but doing so would
3248         have required living with a warning and a mandatory post-bootstrap
3249         automake rerun.
3250         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3251         (bootstrap_post_import_hook): New function.
3252         Invoke it after gnulib-tool --import and before autoreconf.
3253
3254 2012-01-18  Jim Meyering  <meyering@redhat.com>
3255
3256         gitlog-to-changelog: don't use "no_"-prefixed variable name
3257         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3258         to enable both --cluster and --no-cluster.  Change variable name,
3259         s/\$no_cluster/$cluster/, and reverse usage to match.
3260
3261         gitlog-to-changelog: use "||", not "or" in expressions
3262         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3263         expressions.
3264
3265 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3266
3267         gitlog-to-changelog: new option --no-cluster
3268         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3269         clustering of adjacent commit messages.
3270
3271 2012-01-17  Jim Meyering  <meyering@redhat.com>
3272
3273         maint: spell file systems with two words, not one
3274         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3275         two words, not one.
3276
3277 2012-01-16  Jim Meyering  <meyering@redhat.com>
3278
3279         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3280         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3281
3282 2012-01-16  Eric Blake  <eblake@redhat.com>
3283
3284         bootstrap: cater to autoconf 2.59
3285         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3286         is not available.
3287
3288         bootstrap: properly check for libtool
3289         * build-aux/bootstrap (libtoolize): Also run libtool when older
3290         usage is detected.
3291
3292 2012-01-15  Bruno Haible  <bruno@clisp.org>
3293
3294         Improve support for MSVC 9.
3295         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3296         clashes on MSVC.
3297         * lib/fcntl.in.h: Likewise.
3298         * lib/stdlib.in.h: Likewise.
3299         * lib/sys_stat.in.h: Likewise.
3300
3301 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3302
3303         gnupload: we hold the master copy of this script now
3304         For motivation and more information, see:
3305         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3306         * build-aux/gnupload: Make it clear in the heading comments that the
3307         master copy of this file is maintained by gnulib.  Since we are at
3308         it, bump its copyright year and ...
3309         ($scriptversion): ... the date in its version.
3310         ($usage): Patches and bug reports should be sent to the gnulib list,
3311         not the automake one.
3312         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3313         anymore.
3314
3315 2012-01-15  Bruno Haible  <bruno@clisp.org>
3316
3317         Fix module 'random'.
3318         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3319         initstate, setstate are declared.
3320
3321 2012-01-14  Bruno Haible  <bruno@clisp.org>
3322
3323         Tests for module 'random'.
3324         * modules/random-tests: New file.
3325         * tests/test-random.c: New file, based on tests/test-random_r.c.
3326
3327         New module 'random'.
3328         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3329         declarations.
3330         * lib/random.c: New file, based on glibc/stdlib/random.c.
3331         * m4/random.m4: New file.
3332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3333         HAVE_RANDOM.
3334         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3335         * modules/random: New file.
3336         * config/srclist.txt: Add an entry for random.c.
3337         * doc/posix-functions/random.texi: Mention the 'random' module.
3338         * doc/posix-functions/initstate.texi: Likewise.
3339         * doc/posix-functions/setstate.texi: Likewise.
3340         * doc/posix-functions/srandom.texi: Likewise.
3341
3342 2012-01-12  Bruno Haible  <bruno@clisp.org>
3343
3344         random_r: Use common idioms.
3345         * lib/random_r.c: Include <stdlib.h> first.
3346
3347         random_r: Override incompatible API on AIX, OSF/1.
3348         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3349         Override the system function if REPLACE_RANDOM_R is 1.
3350         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3351         and OSF/1, set REPLACE_RANDOM_R.
3352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3353         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3354         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3355         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3356         * doc/glibc-functions/random_r.texi: Likewise.
3357         * doc/glibc-functions/setstate_r.texi: Likewise.
3358
3359         random_r: Support for MSVC 9.
3360         * lib/random_r.c: Include stdint.h, not inttypes.h.
3361
3362 2012-01-12  Eric Blake  <eblake@redhat.com>
3363
3364         inet_ntop: guard extra work by IF_LINT
3365         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3366         better code generation when not checking for warnings.
3367         Suggested by Paul Eggert and Jim Meyering.
3368
3369         strptime: fix regression on mingw
3370         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3371         Fix regression.  Reported by Bruno Haible.
3372
3373 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3374             Bruno Haible  <bruno@clisp.org>
3375
3376         copy-file: add error-code-returning variant.
3377         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3378         (qcopy_file_preserving): New declaration.
3379         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3380         copy_file_preserving. Change return type to 'int'. Don't emit an error
3381         message here.
3382         (copy_file_preserving): New function.
3383         * tests/test-copy-file.c: Include <stdlib.h>.
3384         (main): Test qcopy_file_preserving if the environment variable
3385         NO_STDERR_OUTPUT is set.
3386         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3387         with NO_STDERR_OUTPUT
3388         * tests/test-copy-file-2.sh: Likewise.
3389
3390 2012-01-10  Bruno Haible  <bruno@clisp.org>
3391
3392         copy-file: Use 'quote' module consistently.
3393         * lib/copy-file.c (copy_file_preserving): Use quote().
3394
3395         copy-file: Refactor.
3396         * lib/copy-file.c: Include quote.h.
3397         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3398         message here.
3399         * modules/copy-file (Depends-on): Add quote.
3400
3401         acl: Export qcopy_acl.
3402         * lib/acl.h (qcopy_acl): New declaration.
3403         * lib/copy-acl.c (qcopy_acl): Make non-static.
3404
3405         acl: Rename a local variable.
3406         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3407
3408         acl: Align return values of copy_acl and qcopy_acl.
3409         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3410         maybe < -1.
3411
3412 2012-01-11  Eric Blake  <eblake@redhat.com>
3413
3414         strptime: silence gcc warnings
3415         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3416         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3417         Reported by Daniel P. Berrange.
3418
3419         inet_ntop: silence gcc warning
3420         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3421         Reported by Daniel P. Berrange.
3422
3423 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3424
3425         getloadavg test: skip the test on GNU/Linux without /proc mounted
3426         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3427         file.  When /proc is not mounted, it always fails with ENOENT.
3428         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3429         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3430
3431 2012-01-10  Bruno Haible  <bruno@clisp.org>
3432
3433         regex: Avoid link error on MSVC 9.
3434         * modules/regex (Depends-on): Add wctype.
3435
3436 2012-01-10  Bruno Haible  <bruno@clisp.org>
3437
3438         doc: Mention --with-tests option.
3439         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3440         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3441         --with-tests.
3442         Reported by Reuben Thomas.
3443
3444 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3445
3446         users.txt: order package names lexicographically.
3447         * users.txt: Order package names lexicographically.
3448
3449 2012-01-10  Jim Meyering  <meyering@redhat.com>
3450
3451         maint.mk: fix description in comment
3452         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3453
3454         ignore-value: remove deprecated ignore_ptr function
3455         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3456         * NEWS: Note this.
3457
3458 2012-01-09  Jim Meyering  <meyering@redhat.com>
3459
3460         test-init.sh: avoid a subshell
3461         * tests/test-init.sh: Remove protective subshell.
3462         Suggested by Bernhard Voelker.  While a subshell is normally
3463         required to protect against older shells (Solaris, FreeBSD) that
3464         warn about a missing program before performing redirection, the
3465         shell-selection tests performed by init.sh probably exclude any
3466         offending shell.
3467
3468 2012-01-08  Bruno Haible  <bruno@clisp.org>
3469
3470         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3471         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3472         variable.
3473
3474 2012-01-08  Bruno Haible  <bruno@clisp.org>
3475
3476         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3477         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3478         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3479         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3480         macro.
3481         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3482         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3483         * lib/spawn_faction_addopen.c: Add workaround implementation if
3484         HAVE_WORKING_POSIX_SPAWN.
3485         * modules/spawn (Makefile): Substitute
3486         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3487         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3488         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3489         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3490         (Depends-on): Update conditions.
3491         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3492         the Solaris 11 bug.
3493
3494 2012-01-08  Bruno Haible  <bruno@clisp.org>
3495
3496         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3497         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3498         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3499         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3500         macro.
3501         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3502         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3503         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3504         HAVE_WORKING_POSIX_SPAWN.
3505         * modules/spawn (Makefile): Substitute
3506         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3507         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3508         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3510         (Depends-on): Update conditions.
3511         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3512         the Solaris 11 bug.
3513
3514 2012-01-08  Bruno Haible  <bruno@clisp.org>
3515
3516         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3517         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3518         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3519         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3520         HAVE_WORKING_POSIX_SPAWN.
3521         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3522         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3523         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3524         * lib/spawn_faction_addclose.c: Add workaround implementation if
3525         HAVE_WORKING_POSIX_SPAWN.
3526         * modules/spawn (Makefile): Substitute
3527         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3528         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3529         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3530         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3531         (Depends-on): Update conditions.
3532         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3533         the Solaris 11 bug.
3534
3535 2012-01-08  Bruno Haible  <bruno@clisp.org>
3536
3537         doc: Update for Solaris 11 2011-11.
3538         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3539         * m4/printf.m4: Update comments.
3540
3541 2012-01-08  Bruno Haible  <bruno@clisp.org>
3542
3543         mktime: Avoid compilation error on Solaris 11.
3544         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3545
3546 2012-01-08  Bruno Haible  <bruno@clisp.org>
3547
3548         doc: Small fix.
3549         * doc/posix-headers/nl_types.texi: Correct platforms list.
3550
3551 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3552
3553         Add lgpl-3.0 module.
3554         * MODULES.html.sh (Support for building documentation): Add
3555         lgpl-3.0.
3556         * modules/lgpl-3.0: New file.
3557
3558 2012-01-08  Jim Meyering  <meyering@redhat.com>
3559
3560         select.c: indent with spaces, not TABs
3561         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3562
3563 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3564
3565         quotearg: do not use grave accent for left quote
3566         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3567         locale_quoting_style.
3568         (quotearg_buffer_restyled): Fix example.
3569         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3570
3571 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3572
3573         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3574         Most programs do not have translation catalogs for English and much
3575         less separate catalogs for British and American English.  Drop the
3576         suggestion to translators about these two, and provide it
3577         automatically for Unicode locales.  Like most programs, even those
3578         using American English, we use single quotation marks.  This conflicts
3579         with the American typographic convention, but works better when you
3580         cite the entire error message within double quotes.  It also tries not
3581         to clash with established practice and with what non-gnulib programs
3582         will usually do.
3583         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3584         using an UTF-8 or GB-18030 locale.  The list of other locales with
3585         quotes was provided by Bruno Haible.
3586         (quotearg_buffer_restyled): Adjust instructions to translators.
3587         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3588         text, since this would be wrong when using Unicode.
3589         * modules/quotearg: Depend on c-strcaseeq.
3590
3591 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3592
3593         quotearg: fix Wikipedia link
3594         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3595
3596 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3597
3598         Fix for mingw with MSVC9.
3599         * m4/ld-version-script.m4: Check that compiler rejects version
3600         scripts with syntax errors.  Reported by Bruno Haible
3601         <bruno@clisp.org>.
3602
3603 2012-01-06  Bruno Haible  <bruno@clisp.org>
3604
3605         Talk about "native Windows API", not "Woe32".
3606         * lib/accept4.c: Update comments to mention native Windows.
3607         * lib/execute.c: Likewise.
3608         * lib/fatal-signal.c: Likewise.
3609         * lib/localcharset.c: Likewise.
3610         * lib/nanosleep.c: Likewise.
3611         * lib/nl_langinfo.c: Likewise.
3612         * lib/pclose.c: Likewise.
3613         * lib/pipe-filter-gi.c: Likewise.
3614         * lib/pipe-filter-ii.c: Likewise.
3615         * lib/pipe.c: Likewise.
3616         * lib/pipe2.c: Likewise.
3617         * lib/popen.c: Likewise.
3618         * lib/progreloc.c: Likewise.
3619         * lib/relocatable.c: Likewise.
3620         * lib/sigaction.c: Likewise.
3621         * lib/sigprocmask.c: Likewise.
3622         * lib/spawn-pipe.h: Likewise.
3623         * lib/spawn-pipe.c: Likewise.
3624         * lib/spawni.c: Likewise.
3625         * lib/stat-time.h: Likewise.
3626         * lib/w32spawn.h: Likewise.
3627         * tests/test-isatty.c: Likewise.
3628         * lib/config.charset: More comments.
3629         * doc/gnulib-intro.texi: Mention native Windows.
3630         * doc/posix-functions/_Exit_C99.texi: Likewise.
3631         * doc/posix-headers/fcntl.texi: Likewise.
3632
3633 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3634
3635         argp: Avoid crash if translator uses % characters in a translation.
3636         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3637         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3638
3639 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3640
3641         doc: C11 and C++11 are now official
3642         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3643         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3644         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3645         * modules/stdalign:
3646         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3647
3648 2012-01-06  Bruno Haible  <bruno@clisp.org>
3649
3650         uc-is-grapheme-break tests: Tweak.
3651         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3652         message.
3653
3654 2012-01-06  Bruno Haible  <bruno@clisp.org>
3655
3656         test-init.sh: correct the test for diff -u
3657         * tests/test-init.sh: Also redirect stdout to /dev/null.
3658
3659 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3660
3661         Use ', not `, for quoting output.
3662         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3663         (print_changelog_deltas, get_tool_versions, main program):
3664         * build-aux/git-version-gen:
3665         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3666         * build-aux/move-if-change (help):
3667         * build-aux/useless-if-before-free (usage, main program):
3668         * check-module (parse_module_file, usage)
3669         (find_included_lib_files, check_module):
3670         * lib/argmatch.c (main) [TEST]:
3671         * lib/argp-help.c (_help):
3672         * lib/getopt1.c (main) [TEST]:
3673         * lib/git-merge-changelog.c (usage):
3674         * lib/xstrtol-error.c (xstrtol_error):
3675         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3676         * m4/argz.m4 (gl_FUNC_ARGZ):
3677         * m4/bison.m4 (gl_BISON):
3678         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3679         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3680         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3681         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3682         * m4/gc-random.m4 (gl_GC_RANDOM):
3683         * m4/intl.m4 (gt_CHECK_DECL):
3684         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3685         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3686         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3687         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3688         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3689         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3690         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3691         * tests/test-dirname.c (main):
3692         * tests/test-getpass.c (main):
3693         * tests/test-iconvme.c (main):
3694         * tests/test-parse-datetime.c (LOG):
3695         * tests/test-xstrtoimax.sh:
3696         * tests/test-xstrtol.sh:
3697         * tests/test-xstrtoll.sh:
3698         * tests/test-xstrtoumax.sh:
3699         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3700         * top/GNUmakefile (abort-due-to-no-makefile):
3701         Quote 'like this', not `like this', as per the recent change to
3702         the GNU coding standards.
3703
3704 2012-01-05  Bruno Haible  <bruno@clisp.org>
3705
3706         strtoimax: Don't force a replacement on systems where intmax_t is int.
3707         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3708         'intmax_t' is not larger than 'int'.
3709         Reported by Pádraig Brady <P@draigBrady.com>.
3710
3711 2012-01-05  Bruno Haible  <bruno@clisp.org>
3712
3713         doc: Mention NetBSD bugs.
3714         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3715         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3716
3717 2012-01-05  Bruno Haible  <bruno@clisp.org>
3718
3719         strtoumax tests: Enhance tests.
3720         * tests/test-strtoumax.c (main): Add tests for large values.
3721
3722 2012-01-05  Bruno Haible  <bruno@clisp.org>
3723
3724         strtoimax: Work around AIX 5.1 bug.
3725         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3726         definition.
3727         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3728         Set HAVE_STRTOIMAX.
3729         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3730         REPLACE_STRTOIMAX.
3731         * modules/inttypes-incomplete (Makefile.am): Substitute
3732         REPLACE_STRTOIMAX.
3733         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3734         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3735         (Depends-on): Update conditions.
3736         * tests/test-strtoimax.c (main): Add tests for large values.
3737         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3738
3739 2012-01-05  Bruno Haible  <bruno@clisp.org>
3740
3741         inttypes: Modernize.
3742         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3743         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3744         (Makefile.am): Update inttypes.h rule.
3745
3746 2012-01-05  Jim Meyering  <meyering@redhat.com>
3747
3748         init.sh: don't waste a subshell just to redirect stderr
3749         * tests/init.sh: In testing for diff -u and diff -c, use a
3750         stderr-redirecting exec inside `...` rather than a subshell.
3751
3752         test-init.sh: avoid failure on HP-UX 11.00
3753         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3754         resolves to diff -c or cmp.  Reported by Bruno Haible.
3755
3756 2012-01-05  Bruno Haible  <bruno@clisp.org>
3757
3758         Tests for module 'strtoull'.
3759         * modules/strtoull-tests: New file.
3760         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3761
3762 2012-01-05  Bruno Haible  <bruno@clisp.org>
3763
3764         Tests for module 'strtoll'.
3765         * modules/strtoll-tests: New file.
3766         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3767
3768 2012-01-05  Bruno Haible  <bruno@clisp.org>
3769
3770         Tests for module 'strtoul'.
3771         * modules/strtoul-tests: New file.
3772         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3773
3774 2012-01-05  Bruno Haible  <bruno@clisp.org>
3775
3776         Tests for module 'strtol'.
3777         * modules/strtol-tests: New file.
3778         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3779
3780 2012-01-04  Jim Meyering  <meyering@redhat.com>
3781
3782         test-init.sh: accommodate Solaris 5.10's different diff -u output
3783         * tests/test-init.sh: Also exempt @@ lines from the comparison
3784         of diff output, since Solaris 5.10 and GNU diff formats differ.
3785         Reported by Stefano Lattarini.
3786
3787 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3788
3789         test-posixtm: don't assume signed integer wraparound
3790         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3791         after signed integer overflow.  Inspired by (though it may not
3792         fix) Bruno Haible's bug report in
3793         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3794
3795         Spell out "Windows 9x" and "Windows XP".
3796         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3797         "Windows 9x" and "WinXP" with "Windows XP".
3798
3799 2012-01-04  Jim Meyering  <meyering@redhat.com>
3800
3801         test-vc-list-files-cvs.sh: remove obsolete comment
3802         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3803         double exit.  Now that's all encapsulated via skip_ and Exit.
3804
3805 2012-01-04  Bruno Haible  <bruno@clisp.org>
3806
3807         Talk about "native Windows API", not "Win32".
3808         * lib/classpath.c: Update comments to mention native Windows.
3809         * lib/csharpexec.c: Likewise.
3810         * lib/dup2.c: Likewise.
3811         * lib/error.c: Likewise.
3812         * lib/fcntl.c: Likewise.
3813         * lib/filename.h: Likewise.
3814         * lib/findprog.c: Likewise.
3815         * lib/get-rusage-as.c: Likewise.
3816         * lib/get-rusage-data.c: Likewise.
3817         * lib/getpagesize.c: Likewise.
3818         * lib/javaexec.c: Likewise.
3819         * lib/msvc-inval.c: Likewise.
3820         * lib/msvc-nothrow.c: Likewise.
3821         * lib/nanosleep.c: Likewise.
3822         * lib/nonblocking.c: Likewise.
3823         * lib/printf-parse.c: Likewise.
3824         * lib/setlocale.c: Likewise.
3825         * lib/sigaction.c: Likewise.
3826         * lib/strerror_r.c: Likewise.
3827         * lib/tmpdir.c: Likewise.
3828         * lib/vasnprintf.c: Likewise.
3829         * lib/w32spawn.h: Likewise.
3830         * lib/waitpid.c: Likewise.
3831         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3832         * m4/locale-ar.m4: Likewise.
3833         * m4/locale-fr.m4: Likewise.
3834         * m4/locale-ja.m4: Likewise.
3835         * m4/locale-tr.m4: Likewise.
3836         * m4/locale-zh.m4: Likewise.
3837         * m4/printf.m4: Likewise.
3838         * tests/test-cloexec.c: Likewise.
3839         * tests/test-copy-acl.sh: Likewise.
3840         * tests/test-copy-file.sh: Likewise.
3841         * tests/test-file-has-acl.sh: Likewise.
3842         * tests/test-set-mode-acl.sh: Likewise.
3843         * tests/test-dup-safer.c: Likewise.
3844         * tests/test-dup2.c: Likewise.
3845         * tests/test-dup3.c: Likewise.
3846         * tests/test-fcntl.c: Likewise.
3847         * tests/test-nonblocking-pipe.h: Likewise.
3848         * tests/test-nonblocking-socket.h: Likewise.
3849         * tests/test-pipe.c: Likewise.
3850         * tests/test-pipe2.c: Likewise.
3851         * tests/test-spawn-pipe-child.c: Likewise.
3852         * doc/acl-resources.txt: Likewise.
3853         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3854         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
3855         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
3856         * lib/localcharset.c: Update comments to mention native Windows.
3857         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3858         * lib/localename.c: Likewise.
3859         * lib/progreloc.c: Likewise.
3860         * lib/relocatable.c: Likewise.
3861         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3862         (windows_compute_revents): Renamed from win32_compute_revents.
3863         (windows_compute_revents_socket): Renamed from
3864         win32_compute_revents_socket.
3865         * lib/select.c: Update comments to mention native Windows.
3866         (windows_poll_handle): Renamed from win32_poll_handle.
3867         * m4/threadlib.m4: Update comments to mention native Windows.
3868         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
3869         --enable-threads=windows instead of --enable-threads=win32. Set
3870         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
3871         * lib/glthread/lock.h: Update comments to mention native Windows.
3872         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
3873         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
3874         USE_WIN32_THREADS.
3875         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
3876         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
3877         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
3878         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
3879         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
3880         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
3881         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
3882         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
3883         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
3884         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
3885         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
3886         * tests/test-tls.c: Likewise.
3887         Rationale:
3888         Microsoft renamed the "Win32 API" to "Windows API", as it is available
3889         on both 32-bit and 64-bit Windows systems.
3890         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
3891         line of distinction is between "native Windows" on one side and Unix/
3892         POSIX systems on the other side. More details in
3893         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
3894         Suggested by Paul Eggert.
3895
3896 2012-01-03  Bruno Haible  <bruno@clisp.org>
3897
3898         isatty: Support for MSVC 9.
3899         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
3900         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
3901         (_isatty_nothrow): New function.
3902         (isatty): Use it instead of _isatty.
3903         (IsConsoleHandle): Add comment, from Paolo Bonzini.
3904         * lib/poll.c (IsConsoleHandle): Likewise.
3905         * lib/select.c (IsConsoleHandle): Likewise.
3906         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
3907         (gl_PREREQ_ISATTY): New macro.
3908         * modules/isatty (Depends-on): Add msvc-inval.
3909         (configure.ac): Invoke gl_PREREQ_ISATTY.
3910
3911 2012-01-03  Jim Meyering  <meyering@redhat.com>
3912
3913         maint.mk: remove temporary transition aid from over 1.5 years ago
3914         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
3915         purpose was to aid in the transition (avoiding silent malfunction)
3916         from that old name to the new _sc_search_regexp.  This shim was
3917         added by commit 219c504b.
3918
3919         init.sh: do not try to accommodate compare arguments starting with "-"
3920         * tests/init.sh (compare_dev_null_): Do not try to accommodate
3921         compare arguments that start with "-".  Besides, we do not worry
3922         about this when invoking diff or cmp; why start now with sed?
3923         Using "--" to separate options from argument would trigger sed
3924         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
3925         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
3926
3927 2012-01-02  Bruno Haible  <bruno@clisp.org>
3928
3929         Enhance tests for module 'isatty'.
3930         * modules/isatty-tests (Depends-on): Add pipe-posix.
3931         * tests/test-isatty.c: Include <fcntl.h>.
3932         (DEV_NULL): New macro.
3933         (main): Test the resut of isatty() also on regular files, pipes, and
3934         /dev/null.
3935
3936         New module 'isatty'.
3937         * lib/unistd.in.h (isatty): New declaration.
3938         * lib/isatty.c: New file, based on an idea of
3939         Bastien Roucariès <roucaries.bastien@gmail.com>.
3940         * m4/isatty.m4: New file.
3941         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
3942         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
3943         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
3944         REPLACE_ISATTY.
3945         * modules/isatty: New file.
3946         * doc/posix-functions/isatty.texi: Mention the new module.
3947         Suggested by Paolo Bonzini.
3948
3949 2012-01-02  Bruno Haible  <bruno@clisp.org>
3950
3951         canonicalize: Tweak 2011-12-29 commit.
3952         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
3953         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
3954
3955 2012-01-02  Jim Meyering  <meyering@redhat.com>
3956
3957         gitlog-to-changelog: describe input syntax in --help output
3958         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
3959
3960         gitlog-to-changelog: fix typo in --help: show backslash before email @
3961         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
3962         in sources, but not in actual output.
3963
3964 2011-12-30  Jim Meyering  <meyering@redhat.com>
3965
3966         gitlog-to-changelog: don't malfunction when name contains %-directive
3967         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
3968         in a name string cause trouble.  E.g., with a user name of "%s",
3969         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
3970
3971 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
3972
3973         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
3974         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
3975         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
3976         the "  (tiny change)" notation that is appended to the standard
3977         ChangeLog "date  name  email" header line.
3978
3979 2012-01-01  Jim Meyering  <meyering@redhat.com>
3980
3981         test-framework-sh: init.sh: fix "make dist" failure
3982         When using gnulib-tool's --with-tests option and any module that
3983         depends on test-framework-sh, "make dist" would fail due to the
3984         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
3985         in the gltests directory, and not in the gllib/ directory.
3986         One way to work around that is to move the EXTRA_DIST += init.sh
3987         from the primary module to the -tests one:
3988         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
3989         * modules/test-framework-sh (Makefile.am): ...not here.
3990         Reported by Tom G. Christensen in
3991         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
3992
3993         version-etc: update copyright year reported by --version
3994         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
3995
3996 2011-12-31  Pádraig Brady  <P@draigBrady.com>
3997
3998         canonicalize: only stat() if required
3999         * lib/canonicalize.c (canonicalize_filename_mode):
4000         Avoid calling l?stat() when both CAN_MISSING,
4001         and CAN_NOLINKS are set, as we neither need
4002         to resolve symlinks or test component existence.
4003
4004 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4005
4006         doc: cover st_ino issues once; add OpenVMS etc.
4007         * doc/posix-functions/stat.texi (stat):
4008         * doc/posix-functions/lstat.texi (lstat):
4009         * doc/posix-functions/fstatat.texi (fstatat):
4010         * doc/posix-functions/fstat.texi (fstat):
4011         Move general 'struct stat' stuff to sys_stat.texi,
4012         leaving behind a pointer.
4013         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4014         Merge duplicate info about 'struct stat' problems into here.
4015         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4016         and suggest partial workarounds.
4017
4018         same-inode: port to OpenVMS
4019         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4020         three st_ino values.
4021
4022 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4023
4024         canonicalize: fix references to stat() and lstat()
4025         * lib/canonicalize.c (canonicalize_filename_mode):
4026         Ensure references always resolve to a replacement
4027         function if required (even via a macro).
4028
4029 2011-12-30  Jim Meyering  <meyering@redhat.com>
4030
4031         gitlog-to-changelog: remove a little duplication
4032         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4033         rather than twice.
4034
4035 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4036
4037         canonicalize: add support for not resolving symlinks
4038         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4039         indicate we don't want to follow symlinks.  Also
4040         provide CAN_MODE_MASK to aid setting these existing
4041         mutually exclusive values.
4042         * lib/canonicalize.c (canonicalize_filename_mode):
4043         Extract the flags from can_mode parameter, which
4044         are currently just used to select between stat()
4045         and lstat().  Also ensure that mutually exclusive
4046         values are flagged immediately as invalid.
4047         * tests/test-canonicalize.c: Verify symlinks are
4048         not followed, and that invalid flag combinations
4049         are diagnosed.
4050
4051 2011-12-25  Jim Meyering  <meyering@redhat.com>
4052
4053         gitlog-to-changelog: do not clump multi-paragraph entries
4054         Identical header lines (date,name,email+coauthors) are suppressed,
4055         thus putting all entries with those same characteristics under
4056         a single header.  However, when a log entry consists of two or
4057         more paragraphs, it may not be clear where it starts and ends.
4058         This change makes it so that such an entry is always separated
4059         from others by a header line, even when that header would
4060         otherwise be suppressed.
4061         * build-aux/gitlog-to-changelog: Implement the above.
4062         Inspired by a related request from Stefano Lattarini in
4063         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4064
4065 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4066
4067         announce-gen: fix `cmd' typo in diagnostic
4068         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4069         diagnostic: a missing '$' meant that the command was not output.
4070
4071 2011-12-23  Jim Meyering  <meyering@redhat.com>
4072
4073         test-framework-sh: distribute init.sh
4074         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4075         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4076         fail due to the lack of init.sh.
4077
4078         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4079         * modules/atexit-tests: Rather than listing tests/init.sh,
4080         now that there's a module for it, simply depend on that new module.
4081         * modules/closein-tests: Likewise.
4082         * modules/exclude-tests: Likewise.
4083         * modules/getcwd-tests: Likewise.
4084         * modules/perror-tests: Likewise.
4085         * modules/pread-tests: Likewise.
4086         * modules/pwrite-tests: Likewise.
4087         * modules/vc-list-files-tests: Likewise.
4088         * modules/verify-tests: Likewise.
4089         * modules/xalloc-die-tests: Likewise.
4090         * modules/xstrtoimax-tests: Likewise.
4091         * modules/xstrtol-tests: Likewise.
4092         * modules/xstrtoll-tests: Likewise.
4093         * modules/xstrtoumax-tests: Likewise.
4094         * modules/yesno-tests: Likewise.
4095
4096 2011-12-22  Jim Meyering  <meyering@redhat.com>
4097
4098         test-framework-sh: add minimal tests of init.sh's compare function
4099         * modules/test-framework-sh-tests: New file.
4100         * tests/test-init.sh: New file.
4101
4102         test-framework-sh: new module
4103         * modules/test-framework-sh: New file.
4104         * MODULES.html.sh (Support for maintaining and releasing projects):
4105         List it.
4106
4107         init.sh: do not emit simulated diff output to stderr
4108         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4109
4110 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4111
4112         .gitignore: ignore gnulib.dvi and regex.info
4113         * doc/.gitignore:add gnulib.dvi and regex.info
4114
4115 2011-12-22  Jim Meyering  <meyering@redhat.com>
4116
4117         init.sh: correct previous change
4118         * tests/init.sh (compare): My previous change was wrong.
4119         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4120
4121         init.sh: avoid unwarranted test failure when using "set -e"
4122         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4123         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4124         a use like "compare exp out" would get evoke an unconditional failure.
4125
4126 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4127
4128         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4129         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4130         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4131         autoreconf that did not.
4132         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4133         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4134
4135 2011-12-17  Jim Meyering  <meyering@redhat.com>
4136
4137         bootstrap: remove some now-unneeded code
4138         This script arose back when gnulib-tool was young.
4139         Since then, it has seen improvements that render much of this
4140         script unnecessary.  In particular, it can now make symlinks
4141         to the files it uses.  Also, I no longer see as much value in
4142         marking files as read-only via comments.
4143         If you relied on the symlink-creation feature of the preceding
4144         version of this script, you can get most of that functionality
4145         by adding the --symlink option to the definition of
4146         gnulib_tool_option_extras in your bootstrap.conf file.
4147         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4148         Run autopoint and libtoolize *before* gnulib-tool.
4149         After it, run an abbreviated autoreconf, rather than a loop around
4150         all tools.
4151         (slirp, bt_mark_as_generated): Remove functions.
4152
4153 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4154
4155         ftoastr: fix typo
4156         * lib/ftoastr.h: Fix misspelling in comment.
4157
4158 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4159
4160         * top/README-release: fix punctuation.
4161
4162 2011-12-17  Jim Meyering  <meyering@redhat.com>
4163
4164         bootstrap: correct the recent buildreq change
4165         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4166         had no effect.
4167         * build-aux/bootstrap (buildreq): Bracket each search term with
4168         "*...*", so that the shell "case" statement works as intended.
4169         Add comments.
4170
4171 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4172
4173         build: let bootstrap resort to wget when downloading .po files
4174         * build-aux/bootstrap (download_po_files): Fallback to wget when
4175         downloading the .po files via rsync fails.  This is necessary to
4176         bootstrap from behind a strict firewall.
4177
4178 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4179
4180         stdint: don't assume C++11 when compiling with g++
4181         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4183         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4184         work also in C++ before C++11, as that improperly inhibits
4185         generating a substitute stdint.h for that case.
4186
4187 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4188
4189         alloca: protect comment from gnulib-tool
4190         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4191         that gnulib-tool doesn't think it's a license, and munge it to
4192         say "GCC version 3".
4193
4194 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4195
4196         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4197         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4198         $(abs_top_builddir) instead of $(top_builddir).
4199
4200 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4201
4202         strftime-tests: also test nanoseconds
4203         * tests/test-strftime.c (T): Add a test of %N.
4204
4205 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4206
4207         inttypes, stdint: add C++11 support
4208         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4209         when including inttypes.h and stdint.h.  Support this change to
4210         the standard.
4211         * doc/posix-headers/inttypes.texi (inttypes.h):
4212         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4213         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4214         Define if not defined already, for the benefit of pre-C++11 hosts.
4215         Define the standard format macros (e.g., PRId8) always.
4216         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4217         Likewise, if __cpluspus.  Define the standard constant and limit
4218         macros (e.g., INT8_C, INT8_MAX) always.
4219         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4220         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4221         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4222         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4223         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4224         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4225         Likewise.
4226
4227 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4228
4229         nonblocking tests: Fix test failure on Linux/PPC.
4230         Suggested by Prerna Saxena in
4231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4232         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4233         Set to 1100000.
4234
4235 2011-12-12  Jim Meyering  <meyering@redhat.com>
4236
4237         argmatch: don't hard-code `' when listing valid option arguments
4238         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4239         use the quote function to add quotes.  Use fputs rather than
4240         fprintf for the format string with no format directive.
4241
4242 2011-12-07  Eric Blake  <eblake@redhat.com>
4243
4244         bootstrap: detect tools required by gnulib-tool
4245         * build-aux/bootstrap (buildreq): Provide minimum implicit
4246         dependencies.
4247         * DEPENDENCIES: Mention patch as a prereq.
4248
4249 2011-12-04  Bruno Haible  <bruno@clisp.org>
4250
4251         sethostname: Port to Windows platforms.
4252         * lib/sethostname.c: Provide an alternate implementation for Windows
4253         platforms.
4254         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4255         (main): Skip the test if sethostname() fails with EPERM. On Windows
4256         platforms, don't check the result of gethostname().
4257
4258 2011-12-04  Bruno Haible  <bruno@clisp.org>
4259             Jim Meyering  <meyering@redhat.com>
4260
4261         tests: Avoid spurious error message on platforms without mktemp program.
4262         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4263
4264 2011-12-04  Bruno Haible  <bruno@clisp.org>
4265
4266         sethostname: Fix documentation.
4267         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4268         "not fixed" section.
4269
4270 2011-12-03  Bruno Haible  <bruno@clisp.org>
4271
4272         gnulib-tool: Verify that the License field is present and non-empty.
4273         * gnulib-tool (func_get_license_raw): New function, extracted from
4274         func_get_license.
4275         (func_get_license): Use it. Warn if the module is not a test module and
4276         has no license.
4277         Suggested by Jim Meyering.
4278
4279 2011-12-03  Bruno Haible  <bruno@clisp.org>
4280
4281         sethostname tests: Fix link error on mingw.
4282         * tests/test-sethostname1.c: New file, extracted from
4283         tests/test-sethostname.c.
4284         * tests/test-sethostname2.c: New file, extracted from
4285         tests/test-sethostname.c.
4286         * tests/test-sethostname.c: Remove file.
4287         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4288         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4289         (Depends-on): Add gethostname.
4290         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4291         Link the latter with $(GETHOSTNAME_LIB).
4292
4293         sethostname tests: Fix compilation error on mingw.
4294         * tests/test-sethostname.c: Don't include <sys/types.h>.
4295         (geteuid): Use a dummy value without uid_t.
4296         * modules/sethostname-tests (Depends-on): Remove sys_types.
4297
4298         sethostname tests: Avoid a gcc warning.
4299         * tests/test-sethostname.c (main): Remove an unused variable.
4300
4301         Tweak last commit.
4302         * modules/sethostname-tests (Files): Sort by decreasing importance.
4303         (configure.ac): Check for geteuid.
4304         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4305         the test when there's nothing to test. Drop an unnecessary cast.
4306         Improve an error message. Verify that the final sethostname() call
4307         succeeds.
4308
4309 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4310
4311         Add a test suite for the sethostname module.
4312         * modules/sethostname-tests: New file.  A test program
4313         for the sethostname module.
4314         * tests/test-sethostname.c: Likewise.
4315
4316 2011-12-03  Bruno Haible  <bruno@clisp.org>
4317
4318         Tweak last commit.
4319         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4320         Fix preprocessor directives indentation. Fix typos.
4321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4322         * modules/unistd (Makefile): Likewise.
4323
4324 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4325
4326         Integrate the sethostname module into unistd.
4327         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4328         into the unistd.h header.
4329         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4330         preprocessor directives.
4331         * modules/unistd: Setup the Makefile substitutions of the
4332         SETHOSTNAME preprocessor directives.
4333
4334 2011-12-03  Bruno Haible  <bruno@clisp.org>
4335
4336         Tweak last commit.
4337         * lib/sethostname.c: Don't include <string.h>.
4338         (sethostname): No need to copy the argument string to the stack. Don't
4339         call clearerr. Preserve errno when fprintf failed.
4340         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4341         Don't invoke AC_REPLACE_FUNCS.
4342         * modules/sethostname (Link): Remove empty section.
4343         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4344         failure problem.
4345
4346 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4347
4348         New module 'sethostname'.
4349         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4350         for systems that lack it.
4351         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4352         sethostname declaration and function.
4353         * modules/sethostname: New file.  Define the sethostname module.
4354
4355 2011-12-03  Bruno Haible  <bruno@clisp.org>
4356
4357         Tweak last commit.
4358         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4359
4360 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4361
4362         Split the HOST_NAME_MAX detection into a separate m4 macro.
4363         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4364         macro so it can be used by the pending sethostname module.
4365
4366 2011-12-03  Bruno Haible  <bruno@clisp.org>
4367
4368         Fix module descriptions syntax.
4369         * modules/argv-iter (License): Fix syntax.
4370         * modules/di-set (License): Likewise.
4371         * modules/ino-map (License): Likewise.
4372         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4373
4374 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4375
4376         stdalign: port to Clang 3.0
4377         Problem reported by Simon Josefsson in
4378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4379         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4380         which has <stdalign.h> but which does not define alignof.
4381         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4382
4383 2011-12-01  Eric Blake  <eblake@redhat.com>
4384
4385         mktempd: silence dd usage
4386         * build-aux/mktempd (rand_bytes): Silence dd.
4387
4388 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4389
4390         manywarnings: Don't mention gcc version in docstring.
4391         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4392         Jim Meyering <meyering@redhat.com>.
4393
4394 2011-11-30  Jim Meyering  <meyering@redhat.com>
4395
4396         hash: mark a few floating point constants with "f" suffix
4397         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4398         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4399         floating point constants with "f", since they're destined to be
4400         saved/used as "float"s.
4401
4402 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4403
4404         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4405         * tests/test-float.c (test_long_double): Correct and re-enable the
4406         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4407
4408 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4409
4410         Avoid subtracting two pointers that don't point into the same block.
4411         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4412         only pointers into the same memory block are subtracted. We cannot
4413         assume that sizeof (ptrdiff_t) == sizeof (void *).
4414
4415 2011-11-29  Eric Blake  <eblake@redhat.com>
4416
4417         maint.mk: add syntax check for use of compare from init.sh
4418         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4419         moved here from coreutils.
4420
4421         manywarnings: drop -Wunsuffixed-float-constants
4422         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4423         '1.0D', which is the only way to silence this warning for 'double'.
4424
4425 2011-11-29  Jim Meyering  <meyering@redhat.com>
4426
4427         hash: mark compute_bucket_size with the pure attribute
4428         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4429
4430         quotearg, propername: correct pragma guard expression
4431         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4432         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4433
4434 2011-11-28  Jim Meyering  <meyering@redhat.com>
4435
4436         propername: do not mark proper_name with the const attribute
4437         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4438         since it examines data pointed to by its parameter.
4439         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4440         the suggestion from -Wsuggest-attribute=const.
4441
4442         propername: mark one more function as const
4443         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4444
4445 2011-11-27  Jim Meyering  <meyering@redhat.com>
4446
4447         mark functions with const and pure attributes
4448
4449         Mark functions per suggestions from gcc-4.6 when using these options:
4450         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4451         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4452         Follow these guidelines: when possible, apply the attribute to
4453         an extern declaration, not to its definition.  Apply it to the
4454         definition only when the definition is static.
4455         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4456         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4457         * lib/base64.h (isbase64): Likewise.
4458         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4459         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4460         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4461         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4462         (c_tolower, c_toupper): Likewise.
4463         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4464         * lib/chdir-long.c (find_non_slash): Likewise.
4465         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4466         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4467         * lib/file-type.h (file_type): Likewise.
4468         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4469         * lib/filevercmp.c (verrevcmp): Likewise.
4470         * lib/freadahead.h (freadahead): Likewise.
4471         * lib/fts.c (fts_maxarglen): Likewise.
4472         * lib/hash-pjw.h (hash_pjw): Likewise.
4473         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4474         * lib/hash.c (is_prime, next_prime): Likewise.
4475         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4476         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4477         (hash_table_ok, hash_get_first, hash_string): Likewise.
4478         (compute_bucket_size): Likewise.
4479         * lib/i-ring.h (i_ring_empty): Likewise.
4480         * lib/isnan.c (isnanl): Likewise.
4481         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4482         * lib/memcasecmp.h (memcasecmp): Likewise.
4483         * lib/memchr2.h (memchr2): Likewise.
4484         * lib/memcmp2.h (memcmp2): Likewise.
4485         * lib/parse-datetime.y (lookup_zone): Likewise.
4486         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4487         [!WINDOWS_SOCKETS]: Likewise.
4488         * lib/strnlen1.h (strnlen1): Likewise.
4489         * lib/uniwidth.in.h (uc_width): Likewise.
4490         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4491         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4492         (quoting_options_from_style): Add a comment.
4493         * lib/propername.h (proper_name): Add a comment.
4494
4495 2011-11-27  Bruno Haible  <bruno@clisp.org>
4496
4497         Remove unused macros from !_LIBC code in glibc-borrowed files.
4498         * lib/fnmatch.c (STRCOLL): Remove macro.
4499         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4500         * lib/glob.c (__stat, __readdir64): Remove macros.
4501         * lib/tempname.c (__open64, __xstat64): Remove macros.
4502         Suggested by Paul Eggert.
4503
4504 2011-11-27  Bruno Haible  <bruno@clisp.org>
4505
4506         getcwd: Fix link error on MSVC 9.
4507         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4508
4509 2011-11-27  Bruno Haible  <bruno@clisp.org>
4510
4511         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4512         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4513         HAVE_OPENDIR is 0.
4514         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4515         HAVE_CLOSEDIR is 0.
4516         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4517         is 0.
4518         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4519
4520 2011-11-27  Bruno Haible  <bruno@clisp.org>
4521
4522         getcwd: Fix bug from 2011-08-17.
4523         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4524         platforms that need it.
4525         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4526         code of 4 to be a failure, not a success. This ensures that
4527         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4528
4529 2011-11-27  Bruno Haible  <bruno@clisp.org>
4530
4531         binary-io tests: Avoid test failure on mingw when libtool is used.
4532         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4533         Don't verify the size of t-bin-out1.tmp here.
4534         * tests/test-binary-io.sh: Verify it here.
4535         Reported by Simon Josefsson.
4536
4537 2011-11-26  Bruno Haible  <bruno@clisp.org>
4538
4539         Fix conflict between two instantiations of module 'unistd'.
4540         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4541         ${include_guard_prefix} also in the autoconf snippet.
4542         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4544         GNULIB_UNISTD_H_GETOPT.
4545         * modules/getopt-posix (configure.ac): Set the
4546         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4547         * modules/getopt-gnu (configure.ac): Likewise.
4548         * modules/unistd (Makefile.am): Change the substitution value of
4549         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4550         Reported by Simon Josefsson.
4551
4552 2011-11-25  Bruno Haible  <bruno@clisp.org>
4553
4554         pagealign_alloc: Doc and comments.
4555         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4556         module.
4557         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4558
4559 2011-11-25  Jim Meyering  <meyering@redhat.com>
4560
4561         test-update-copyright.sh: avoid false-positive failure
4562         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4563         around false positive failure on Cygwin/Windows.  The latter was
4564         matching erroneously-created files with names like
4565         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4566
4567 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4568
4569         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4570         * m4/valgrind-tests.m4: Check that the parameters that will be
4571         used works, not just a subset of them.  Reported by Bruno Haible
4572         <bruno@clisp.org>.
4573
4574 2011-11-24  Jim Meyering  <meyering@redhat.com>
4575
4576         test-stdalign.c: comment out long double tests
4577         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4578         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4579         error: '_Alignas' specifiers cannot reduce alignment of \
4580         'static_longdouble_alignas'.
4581
4582 2011-11-22  Jim Meyering  <meyering@redhat.com>
4583
4584         init.sh: make "compare /dev/null FILE" output more readable
4585         * tests/init.sh (compare_): Document the preferred order of arguments.
4586         (emit_diff_u_header_): New function.
4587         (compare_dev_null_): Emit a simulated diff, rather than just the
4588         contents of the unexpected file.  Suggestion from Bruno Haible.
4589
4590 2011-11-21  Jim Meyering  <meyering@redhat.com>
4591             Eric Blake  <eblake@redhat.com>
4592
4593         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4594         * tests/init.sh: Make our compare function slightly more portable.
4595         Reported by Bruno Haible in
4596         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4597
4598 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4599
4600         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4601         before using it, in code that ends up in config.h.
4602
4603 2011-11-20  Bruno Haible  <bruno@clisp.org>
4604
4605         getcwd: Work around getcwd bug on AIX 5..7.
4606         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4607         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4608         Use a different value for gl_cv_func_getcwd_path_max. Move the
4609         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4610         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4611         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4612         Define HAVE_MINIMALLY_WORKING_GETCWD.
4613         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4614         where it is not even minimally working, that is, on AIX.
4615         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4616         m4/getcwd-path-max.m4.
4617         (main): Update exit code computation.
4618         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4619         getcwd does not handle long file names.
4620
4621 2011-11-20  Bruno Haible  <bruno@clisp.org>
4622
4623         getcwd: Fix bug from 2009-09-10.
4624         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4625         like "no".
4626
4627 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4628
4629         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4630
4631 2011-11-20  Bruno Haible  <bruno@clisp.org>
4632
4633         fma tests: Avoid shadowing local variables.
4634         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4635         expected.
4636
4637 2011-11-20  Bruno Haible  <bruno@clisp.org>
4638
4639         copysignf tests: Fix.
4640         * tests/test-copysignf.c: Fix signature check.
4641
4642 2011-11-20  Bruno Haible  <bruno@clisp.org>
4643
4644         fma: Remove unused code.
4645         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4646         unused macros.
4647
4648 2011-11-20  Bruno Haible  <bruno@clisp.org>
4649
4650         sethostname: Fix doc about AIX.
4651         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4652         sethostname; it has it.
4653
4654         sethostname: Mention more portability problems.
4655         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4656         problem.
4657         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4658
4659 2011-11-19  Bruno Haible  <bruno@clisp.org>
4660
4661         Depend on module fcntl-h when AT_FDCWD is used.
4662         * modules/utimens (Depends-on): Add fcntl-h.
4663         * modules/areadlinkat (Depends-on): Likewise.
4664         * modules/areadlinkat-with-size (Depends-on): Likewise.
4665         * modules/faccessat (Depends-on): Likewise.
4666         * modules/fchmodat (Depends-on): Likewise.
4667         * modules/fchownat (Depends-on): Likewise.
4668         * modules/getcwd (Depends-on): Likewise.
4669         * modules/mkdirat (Depends-on): Likewise.
4670         * modules/mkfifoat (Depends-on): Likewise.
4671         * modules/readlinkat (Depends-on): Likewise.
4672         * modules/symlinkat (Depends-on): Likewise.
4673         * modules/dup2-tests (Depends-on): Likewise.
4674         * modules/fdutimensat-tests (Depends-on): Likewise.
4675         * modules/futimens-tests (Depends-on): Likewise.
4676
4677 2011-11-19  Bruno Haible  <bruno@clisp.org>
4678
4679         euidaccess: Update a comment.
4680         * lib/euidaccess.c: Update comment about platforms with faccessat.
4681
4682 2011-11-19  Bruno Haible  <bruno@clisp.org>
4683
4684         openat: Fix file list.
4685         * modules/openat (Files): Remove lib/at-func.c.
4686
4687 2011-11-19  Bruno Haible  <bruno@clisp.org>
4688
4689         fstatat: Simplify.
4690         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4691         gnulib should define rpl_fstatat, there is a
4692         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4693
4694 2011-11-19  Bruno Haible  <bruno@clisp.org>
4695
4696         Ensure 'inline' can be used in tests/test-utimens-common.h.
4697         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4698         * modules/futimens-tests (configure.ac): Likewise.
4699         * modules/utimens-tests (configure.ac): Likewise.
4700         * modules/utimensat-tests (configure.ac): Likewise.
4701
4702 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4703
4704         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4705         not hash_insert0.
4706         (hash_insert_if_absent): Doc fix.
4707
4708 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4709
4710         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4711
4712 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4713
4714         test-getcwd: disambiguate exit status
4715         * tests/test-getcwd.c (test_long_name): Return 0..7.
4716         (main): Exit with an unambiguous exit status.  The old
4717         code yielded a mysterious mixture of two failure codes.
4718
4719         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4720         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4721         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4722         rpl_fstatat or fstatat.  This should fix the other problem
4723         reported by Kai Habel in
4724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4725         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4727         and I reproduced it on a Solaris 8 host we still have in production.
4728
4729 2011-11-18  Jim Meyering  <meyering@redhat.com>
4730
4731         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4732         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4733         Add a sentence to the comment.
4734         (hash_insert0): New function that simply calls hash_insert_if_absent.
4735         * lib/hash.h (hash_insert_if_absent): Declare it.
4736         (hash_insert0): Add deprecation attribute.
4737         (_GL_ATTRIBUTE_DEPRECATED): Define.
4738         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4739         not hash_insert0.
4740         * NEWS: Mention it, even though it's not really an incompatible change.
4741
4742 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4743
4744         openat: avoid compilation failure due to lack of <errno.h> inclusion
4745         * lib/openat.c: Include <errno.h>.
4746
4747 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4748
4749         * modules/getcwd (Depends-on): Add fdopendir.
4750         This fixes one of the two problems reported by Kai Habel in
4751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4752
4753         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4754         stdalign problem reported by Ian Beckwith in
4755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4756         * modules/crypto/gc-arcfour (Depends-on):
4757         Depend conditionally on crypto/arcfour.
4758         * modules/crypto/gc-arctwo (Depends-on):
4759         Depend conditionally on crypto/arctwo.
4760         * modules/crypto/gc-des (Depends-on):
4761         Depend conditionally on crypto/des.
4762         * modules/crypto/gc-hmac-md5 (Depends-on):
4763         Depend conditionally on crypto/hmac-md5.
4764         * modules/crypto/gc-hmac-sha1 (Depends-on):
4765         Depend conditionally on crypto/hmac-sha1.
4766         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4767         * modules/crypto/gc-md4 (Depends-on):
4768         Depend conditionally on crypto/md4.
4769         * modules/crypto/gc-md5 (Depends-on):
4770         Depend conditionally on crypto/md5.
4771         * modules/crypto/gc-rijndael (Depends-on):
4772         Depend conditionally on crypto/rijndael.
4773         * modules/crypto/gc-sha1 (Depends-on):
4774         Depend conditionally on crypto/sha1.
4775         * modules/crypto/gc-arcfour:
4776         * modules/crypto/gc-arctwo:
4777         * modules/crypto/gc-des:
4778         * modules/crypto/gc-hmac-md5:
4779         * modules/crypto/gc-hmac-sha1:
4780         * modules/crypto/gc-md2:
4781         * modules/crypto/gc-md4:
4782         * modules/crypto/gc-md5:
4783         * modules/crypto/gc-rijndael:
4784         * modules/crypto/gc-sha1:
4785         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4786         now that the conditional dependencies do the work for us.
4787
4788 2011-11-17  Jim Meyering  <meyering@redhat.com>
4789
4790         tests: factor st_ctime-comparison out of two headers
4791         * tests/test-utimens-common.h (ctime_compare): Define.
4792         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4793         * tests/test-lutimens.h (test_lutimens): Likewise.
4794         * tests/test-utimens.h (test_utimens): Likewise.
4795
4796         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4797         Invoke the test program via an init.sh-using wrapper.
4798         * tests/test-getcwd.sh: New file.
4799         * modules/getcwd-tests (Files): Add it.
4800         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4801
4802 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4803
4804         gitlog-to-changelog: support multi-author commits.
4805         The FSF cares about keeping track of all authors of patches to its
4806         projects, but Git doesn't provide obvious support for multi-author
4807         changesets. Consensus seems to be forming around the use of extra
4808         Signed-off-by inspired lines in the log message formatted as
4809         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4810         multi-author commits between version control systems.
4811         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4812         log message and output in standard ChangeLog multi-author format.
4813         Reported by Peter Rosin <peda@lysator.liu.se>
4814
4815 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4816             Bruno Haible  <bruno@clisp.org>
4817
4818         Fix some modules' file list.
4819         * modules/fstatat (Files): Add m4/lstat.m4.
4820         * modules/openat (Files): Likewise.
4821         * modules/unlinkat (Files): Likewise.
4822
4823 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4824
4825         maint.mk: fix tight-scope.mk generation in VPATH builds.
4826         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4827         reference with $(srcdir) so that the file is found correctly even
4828         when running `make syntax-check' in a VPATH build.
4829
4830 2011-11-13  Bruno Haible  <bruno@clisp.org>
4831             Jim Meyering  <meyering@redhat.com>
4832
4833         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4834         * tests/init.sh (compare): Remove "No differences encountered" or
4835         synonymous output from the 'diff' program.
4836
4837 2011-11-13  Bruno Haible  <bruno@clisp.org>
4838
4839         Makefile: Tweak indentation.
4840         * Makefile: Use tab as first character in every line that contains rule
4841         commands.
4842
4843 2011-11-13  Bruno Haible  <bruno@clisp.org>
4844
4845         Syntax check for copyright statements.
4846         * check-copyright: New file.
4847         * Makefile (sc_check_copyright): New rule.
4848
4849 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4850
4851         * build-aux/git-version-gen: Add --prefix to configure the tag
4852         match string.
4853
4854 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4855
4856         * build-aux/git-version-gen: Add --help and --version.
4857
4858 2011-11-12  Jim Meyering  <meyering@redhat.com>
4859
4860         revamp the other test-exclude?.sh scripts to use init.sh, too
4861         * tests/test-exclude1.sh: Use init.sh.
4862         * tests/test-exclude2.sh: Likewise.
4863         * tests/test-exclude3.sh: Likewise.
4864         * tests/test-exclude4.sh: Likewise.
4865         * tests/test-exclude5.sh: Likewise.
4866         * tests/test-exclude6.sh: Likewise.
4867         * tests/test-exclude7.sh: Likewise.
4868         * tests/test-exclude8.sh: Likewise.
4869         * modules/exclude-tests (Files): List init.sh.
4870
4871         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
4872         These shell scripts ignored failure of the binary test-exclude,
4873         so making the latter return 77 didn't cause them to be skipped.
4874         * tests/test-exclude5.sh: Exit with test-exclude's error status
4875         when that program fails.  Revamp to use init.sh.
4876         * tests/test-exclude2.sh: Likewise.
4877
4878         test-exclude: fix a typo
4879         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
4880
4881 2011-11-11  Bruno Haible  <bruno@clisp.org>
4882
4883         obstack: Fix compilation error on MSVC 9.
4884         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
4885
4886 2011-11-11  Jim Meyering  <meyering@redhat.com>
4887
4888         test-exclude: skip tests rather than failing on deficient systems
4889         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
4890         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
4891         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
4892         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
4893
4894 2011-11-10  Bruno Haible  <bruno@clisp.org>
4895
4896         ptsname_r test: Avoid gcc warning on glibc systems.
4897         * tests/test-ptsname_r.c (null_ptr): New function.
4898         (test_errors): Use it.
4899
4900 2011-11-10  Bruno Haible  <bruno@clisp.org>
4901
4902         ptsname_r: Avoid compilation error on OSF/1 5.1.
4903         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
4904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
4905         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
4906         function is not declared or incompatibly declared.
4907         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
4908         * modules/ptsname_r (Depends-on, configure.ac): Update.
4909         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
4910
4911 2011-11-10  Bruno Haible  <bruno@clisp.org>
4912
4913         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
4914         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
4915         When cross-compiling, guess yes on all platforms except AIX.
4916         Reported by Ludovic Courtès <ludo@gnu.org>.
4917
4918 2011-11-09  Bruno Haible  <bruno@clisp.org>
4919
4920         ptsname_r tests: Fix bugs.
4921         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
4922         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
4923
4924 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4925
4926         fstatat: work with cross-compilation
4927         Problem reported by Ludovic Courtès in
4928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
4929         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
4930         "cross-compiling" and assume the bug is present.  Replace
4931         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
4932         an inverted sense, to be more conservative about our assumptions.
4933         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
4934
4935 2011-11-09  Bruno Haible  <bruno@clisp.org>
4936
4937         Improve MODULES.html output.
4938         * modules/mkfifoat (Description): Use the word "function".
4939         * modules/readlinkat (Description): Likewise.
4940         * modules/symlinkat (Description): Likewise.
4941
4942 2011-11-09  Eric Blake  <eblake@redhat.com>
4943
4944         ptsname_r-tests: new test module
4945         * modules/ptsname_r-tests: New module.
4946         * tests/test-ptsname_r.c: New file.
4947
4948         ptsname_r: new module
4949         * modules/ptsname_r: New module.
4950         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
4951         * lib/ptsname.c (__ptsname_r): Split...
4952         * lib/ptsname_r.c: ...into new file.
4953         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4954         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
4955         * modules/stdlib (Makefile.am): Substitute witnesses.
4956         * lib/stdlib.in.h (ptsname_r): Declare it.
4957         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
4958         * MODULES.html.sh (Misc): Likewise.
4959         * modules/ptsname (Depends-on): Alter dependency.
4960         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
4961
4962 2011-11-09  Jim Meyering  <meyering@redhat.com>
4963
4964         announce-gen: be more concise when there's only one URL+tarball
4965         * build-aux/announce-gen (get_tool_versions): When you distribute
4966         only one type of tarball, combine the first two "Here are..."
4967         sections and make the key-checking grammar independent of
4968         how many tarballs there are.
4969
4970 2011-11-09  Eric Blake  <eblake@redhat.com>
4971
4972         openpty: provide a stub on mingw
4973         * lib/pty.in.h (includes): Provide forward declarations.
4974         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
4975
4976         raise: fix mingw handling of SIGPIPE
4977         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
4978
4979 2011-11-08  Bruno Haible  <bruno@clisp.org>
4980
4981         More conditional dependencies.
4982         * modules/faccessat (Depends-on): Add conditions.
4983         * modules/fchmodat (Depends-on): Likewise.
4984         * modules/fchownat (Depends-on): Likewise.
4985         * modules/fstatat (Depends-on): Likewise.
4986         * modules/mkfifoat (Depends-on): Likewise.
4987         * modules/readlinkat (Depends-on): Likewise.
4988         * modules/symlinkat (Depends-on): Likewise.
4989         * modules/unlinkat (Depends-on): Likewise.
4990         * modules/utimensat (Depends-on): Likewise.
4991         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
4992         * modules/linkat (Depends-on): Refine the conditions.
4993         * modules/renameat (Depends-on): Likewise.
4994
4995 2011-11-08  Bruno Haible  <bruno@clisp.org>
4996
4997         faccessat: Move AC_LIBOBJ invocation to module description.
4998         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
4999         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5000         invocation from here...
5001         * modules/faccessat (configure.ac): ... to here. Invoke
5002         gl_PREREQ_FACCESSAT.
5003
5004 2011-11-08  Bruno Haible  <bruno@clisp.org>
5005
5006         faccessat: Simplify autoconf macro.
5007         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5008         gl_FUNC_EUIDACCESS.
5009
5010 2011-11-08  Bruno Haible  <bruno@clisp.org>
5011
5012         renameat: Fix dependencies.
5013         * modules/renameat (Depends-on): Add stdbool.
5014
5015 2011-11-08  Bruno Haible  <bruno@clisp.org>
5016
5017         mkfifoat: Fix module description.
5018         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5019         not gl_UNISTD_MODULE_INDICATOR.
5020
5021 2011-11-08  Bruno Haible  <bruno@clisp.org>
5022
5023         fstatat: Remove unused dependency.
5024         * modules/fstatat (Depends-on): Remove fstat.
5025
5026 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5027
5028         GNUmakefile: behave when Makefile is missing.
5029         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5030
5031 2011-11-08  Bruno Haible  <bruno@clisp.org>
5032
5033         openat: Conditionalize dependencies.
5034         * lib/openat.c: Reduce the scope of some #includes.
5035         * modules/openat (Depends-on): Add conditions.
5036
5037 2011-11-07  Jim Meyering  <meyering@redhat.com>
5038
5039         maint.mk: extract GPG key ID without using a temporary file
5040         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5041         without using a temporary file.  Based on a suggestion from Werner Koch
5042         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5043
5044 2011-11-07  Eric Blake  <eblake@redhat.com>
5045
5046         grantpt: fix typo
5047         * lib/stdlib.in.h (grantpt): Check correct function.
5048
5049         maint.mk: silence new syntax check
5050         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5051
5052 2011-11-06  Bruno Haible  <bruno@clisp.org>
5053
5054         Doc about floating-point and math API.
5055         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5056         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5057
5058 2011-11-06  Bruno Haible  <bruno@clisp.org>
5059
5060         stdalign tests: Skip the test when compiled by Sun C.
5061         * tests/test-stdalign.c (main): Skip the test on Sun C.
5062
5063 2011-11-06  Bruno Haible  <bruno@clisp.org>
5064
5065         ansi-c++-opt: Complete the 2011-06-05 change.
5066         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5067         does not support namespaces, set the variable to "no", not to ":".
5068
5069 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5070
5071         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5072
5073 2011-11-06  Bruno Haible  <bruno@clisp.org>
5074
5075         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5076         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5077         (minus_zerol) [HP-UX]: New macro.
5078         (unary_minus) [HP-UX]: New function.
5079         (copysignl) [HP-UX]: Use unary_minus function.
5080
5081 2011-11-06  Bruno Haible  <bruno@clisp.org>
5082
5083         ldexp, ldexpf, ldexpl: Enhance tests.
5084         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5085         and tests/test-ldexpl.c.
5086         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5087         LDEXP, MIN_EXP, MAX_EXP): New macros.
5088         Include test-ldexp.h.
5089         (main): Just call test_function.
5090         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5091         infinity.h, nan.h.
5092         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5093         MAX_EXP): New macros.
5094         Include test-ldexp.h.
5095         (x, y): Remove variables.
5096         (main): Just call test_function.
5097         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5098         infinity.h, nan.h.
5099         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5100         MAX_EXP): New macros.
5101         Include test-ldexp.h.
5102         (x, y): Remove variables.
5103         (main): Just call test_function.
5104         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5105         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5106         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5107         (Depends-on): Add isnand-nolibm, signbit, float.
5108         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5109         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5110         (Depends-on): Add isnanf-nolibm, signbit, float.
5111
5112 2011-11-06  Bruno Haible  <bruno@clisp.org>
5113
5114         math tests: Cosmetics.
5115         * tests/test-math-c++.cc: Reorder declarations.
5116
5117 2011-11-05  Bruno Haible  <bruno@clisp.org>
5118
5119         fma*: Simplify test.
5120         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5121         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5122
5123         Tests for module 'fmal'.
5124         * modules/fmal-tests: New file.
5125         * tests/test-fmal1.c: New file.
5126         * tests/test-fmal2.c: New file.
5127
5128         New module 'fmal'.
5129         * lib/math.in.h (fmal): New declaration.
5130         * lib/fmal.c: New file.
5131         * m4/fmal.m4: New file.
5132         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5134         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5135         REPLACE_FMAL.
5136         * modules/fmal: New file.
5137         * doc/posix-functions/fmal.texi: Mention the new module and the various
5138         bugs.
5139
5140         Tests for module 'fmaf'.
5141         * modules/fmaf-tests: New file.
5142         * tests/test-fmaf1.c: New file.
5143         * tests/test-fmaf2.c: New file.
5144
5145         New module 'fmaf'.
5146         * lib/math.in.h (fmaf): New declaration.
5147         * lib/fmaf.c: New file.
5148         * m4/fmaf.m4: New file.
5149         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5151         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5152         REPLACE_FMAF.
5153         * modules/fmaf: New file.
5154         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5155         bugs.
5156
5157         Tests for module 'fma'.
5158         * modules/fma-tests: New file.
5159         * tests/test-fma1.c: New file.
5160         * tests/test-fma1.h: New file.
5161         * tests/test-fma2.c: New file.
5162         * tests/test-fma2.h: New file.
5163
5164         New module 'fma'.
5165         * lib/math.in.h (fma): New declaration.
5166         * lib/fma.c: New file.
5167         * m4/fma.m4: New file.
5168         * m4/fegetround.m4: New file.
5169         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5171         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5172         REPLACE_FMA.
5173         * modules/fma: New file.
5174         * doc/posix-functions/fma.texi: Mention the new module and the various
5175         bugs.
5176
5177         Extend gl_MATHFUNC.
5178         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5179         Support 'void' as argument type.
5180         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5181
5182 2011-11-05  Jim Meyering  <meyering@redhat.com>
5183
5184         maint.mk: also prohibit inclusion of dirent.h without use
5185         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5186
5187 2011-11-05  Bruno Haible  <bruno@clisp.org>
5188
5189         ldexpl tests: Avoid test failure on MSVC 9.
5190         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5191         value. Needed in order to enforce the conversion from a value greater
5192         than LDBL_MAX to Infinity.
5193
5194 2011-11-05  Bruno Haible  <bruno@clisp.org>
5195
5196         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5197         * modules/at-internal: New file, extracted from modules/openat.
5198         * modules/openat-h: New file.
5199         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5200         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5201         * modules/openat (Description): Add reference to POSIX function.
5202         (Files): Remove lib/openat.h, lib/openat-proc.c.
5203         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5204         intprops, unistd.
5205         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5206         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5207         gl_FCNTL_MODULE_INDICATOR.
5208         (Include): Remove unistd.h, openat.h.
5209         * modules/areadlinkat (Files): Add lib/at-func.c.
5210         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5211         openat-die, openat-h, save-cwd.
5212         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5213         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5214         openat-die, openat-h, save-cwd, unistd.
5215         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5216         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5217         openat-h, save-cwd. Remove fcntl-h, openat.
5218         * modules/fchmodat (Files): Remove lib/openat.h.
5219         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5220         openat, stdbool, unistd.
5221         * modules/fchownat (Files): Remove lib/openat.h.
5222         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5223         openat, stdbool, sys_stat.
5224         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5225         lib/openat-proc.c.
5226         (Depends-on): Add at-internal.
5227         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5228         * modules/fstatat (Files): Remove lib/openat.h.
5229         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5230         stdbool, unistd.
5231         * modules/fts (Depends-on): Add openat-h.
5232         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5233         openat.
5234         * modules/mkdirat (Files): Remove lib/openat.h.
5235         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5236         openat, stdbool, sys_stat.
5237         * modules/mkfifoat (Files): Add lib/at-func.c.
5238         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5239         openat-h, save-cwd. Remove fcntl-h, openat.
5240         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5241         * modules/readlinkat (Files): Add lib/at-func.c.
5242         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5243         openat-h, save-cwd. Remove fcntl-h, openat.
5244         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5245         openat.
5246         * modules/selinux-at (Files): Add lib/at-func.c.
5247         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5248         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5249         * modules/symlinkat (Files): Add lib/at-func.c.
5250         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5251         openat-h, save-cwd. Remove fcntl-h, openat.
5252         * modules/unlinkat (Files): Remove lib/openat.h.
5253         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5254         stdbool.
5255         * modules/utimensat (Files): Add lib/at-func.c.
5256         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5257         openat-die, openat-h, save-cwd.
5258         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5259         * modules/fdutimensat-tests (Depends-on): Add openat.
5260         * modules/fstatat-tests (Depends-on): Add openat-h.
5261         * modules/readlinkat-tests (Depends-on): Add openat.
5262         * modules/symlinkat-tests (Depends-on): Add openat.
5263
5264 2011-11-05  Bruno Haible  <bruno@clisp.org>
5265
5266         openat: Include <stdbool.h>.
5267         * lib/openat.c: Include <stdbool.h>.
5268
5269 2011-11-04  Bruno Haible  <bruno@clisp.org>
5270
5271         fchownat, renameat, unlinkat: Fix dependencies.
5272         * modules/fchownat (Depends-on): Add fstatat.
5273         * modules/renameat (Depends-on): Likewise.
5274         * modules/unlinkat (Depends-on): Likewise.
5275
5276 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5277
5278         openat: remove direct dependency on dirent
5279         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5280         and hasn't been needed ever since fdopendir was split into its own
5281         module on 2009-08-31.
5282         * modules/openat (Depends-on): Remove dirent.
5283
5284 2011-11-04  Bruno Haible  <bruno@clisp.org>
5285
5286         renameat: Optimize code size.
5287         * modules/renameat (configure.ac): Don't compile at-func2.c if
5288         REPLACE_RENAMEAT is 1.
5289
5290 2011-11-04  Bruno Haible  <bruno@clisp.org>
5291
5292         openat tests: Fix file list.
5293         * modules/openat-tests (Files): Add tests/test-open.h.
5294
5295 2011-11-04  Bruno Haible  <bruno@clisp.org>
5296
5297         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5298         * modules/fchmodat (Depends-on): Add openat-die.
5299         * modules/fchownat (Depends-on): Likewise.
5300         * modules/linkat (Depends-on): Likewise.
5301         * modules/renameat (Depends-on): Likewise.
5302         * modules/openat (Depends-on): Add dirent.
5303
5304 2011-11-04  Jim Meyering  <meyering@redhat.com>
5305
5306         at-func*.c: fix comments
5307         * lib/at-func2.c: Correct/improve first-line comment.
5308         * lib/at-func.c: Correct grammar in first-line comment.
5309
5310 2011-11-04  Bruno Haible  <bruno@clisp.org>
5311
5312         New module 'mkdirat', split off from module 'openat'.
5313         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5314         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5315         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5316         * modules/mkdirat: New file, extracted from modules/openat.
5317         * modules/openat (Files): Remove lib/mkdirat.c.
5318         (Depends-on): Remove mkdir.
5319         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5320         (Include): Remove <sys/stat.h>.
5321         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5322         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5323         tests/test-mkdir.h.
5324         (Depends-on): Remove ignore-value.
5325         (Makefile.am): Remove rules for test-mkdirat.
5326         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5327         of module 'openat'.
5328         * NEWS: Mention the change.
5329
5330 2011-11-04  Bruno Haible  <bruno@clisp.org>
5331
5332         closedir: Avoid warning on mingw.
5333         * lib/closedir.c: Include <unistd.h>.
5334
5335 2011-11-04  Bruno Haible  <bruno@clisp.org>
5336
5337         New module 'fstatat', split off from module 'openat'.
5338         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5339         defined.
5340         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5341         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5342         gl_FUNC_FSTATAT.
5343         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5344         * modules/fstatat: New file, extracted from modules/openat.
5345         * modules/openat (Files): Remove lib/fstatat.c.
5346         (Depends-on): Remove lstat.
5347         (configure.ac): Remove AC_LIBOBJ of fstatat.
5348         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5349         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5350         tests/test-lstat.h, tests/test-stat.h.
5351         (Depends-on): Remove getcwd-lgpl.
5352         (Makefile.am): Remove rules for test-fstatat.
5353         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5354         of module 'openat'.
5355         * NEWS: Mention the change.
5356         * modules/getcwd (Depends-on): Add fstatat.
5357         * modules/linkat (Depends-on): Likewise.
5358         * modules/mkfifoat-tests (Depends-on): Likewise.
5359         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5360
5361 2011-11-03  Bruno Haible  <bruno@clisp.org>
5362
5363         New module 'unlinkat', split off from module 'openat'.
5364         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5365         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5366         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5367         * modules/unlinkat: New file, extracted from modules/openat. Correct
5368         the dependency conditions.
5369         * modules/openat (Files): Remove lib/unlinkat.c.
5370         (Depends-on): Remove rmdir, unlink.
5371         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5372         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5373         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5374         tests/test-rmdir.h, tests/test-unlink.h.
5375         (Depends-on): Remove unlinkdir.
5376         (Makefile.am): Remove rules for test-unlinkat.
5377         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5378         of module 'openat'.
5379         * NEWS: Mention the change.
5380         * modules/linkat-tests (Depends-on): Add unlinkat.
5381         * modules/mkfifoat-tests (Depends-on): Likewise.
5382         * modules/readlinkat-tests (Depends-on): Likewise.
5383
5384 2011-11-02  Bruno Haible  <bruno@clisp.org>
5385
5386         New module 'fchmodat', split off from module 'openat'.
5387         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5388         defined.
5389         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5390         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5391         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5392         * modules/fchmodat: New file, extracted from modules/openat.
5393         * modules/openat (Files): Remove lib/fchmodat.c.
5394         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5395         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5396         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5397         (Makefile.am): Remove rules for test-fchmodat.
5398         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5399         of module 'openat'.
5400         * NEWS: Mention the change.
5401
5402 2011-11-02  Jim Meyering  <meyering@redhat.com>
5403
5404         putenv: indent #definition of "environ" to placate cppi
5405         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5406
5407         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5408         Git logs are often treated as immutable, because editing them
5409         changes the SHA1 checksums of all descendants.  Thus, errors in
5410         git logs tend to stay there forever.  However, when we generate
5411         a ChangeLog file -- typically for distribution -- from that git log,
5412         we can actually make corrections in the generated file.  The key
5413         lies in recording in machine-readable/applicable form the desired
5414         corrections.  See --help for description and an example.
5415         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5416         (usage): Describe it; alphabetize option descriptions.
5417         (main): Honor the new option, carefully.
5418
5419 2011-11-01  Jim Meyering  <meyering@redhat.com>
5420
5421         gitlog-to-changelog: avoid an infloop
5422         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5423         that ends up being empty.
5424
5425 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5428         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5429         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5430         contains (possibly-quoted) backslashes.  This should avoid
5431         all-too-common shell bugs if COMPLICATED contains backslashes in
5432         the "wrong" places.  Reported by David Evans in
5433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5434         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5435         because we want ASCII ranges.  Is there some reason we don't use
5436         the C locale everywhere in this script?
5437         (func_module, top level): Avoid unwanted pathname expansion when
5438         $repo_url_prefix or $repo_url_suffix_repl contain shell
5439         metacharacters like '?' and '*'.
5440
5441 2011-11-01  Bruno Haible  <bruno@clisp.org>
5442
5443         fchownat: Improve description.
5444         * modules/fchownat (Description): Add link to function.
5445
5446 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5447
5448         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5449         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5451         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5452
5453 2011-11-01  Bruno Haible  <bruno@clisp.org>
5454
5455         alignof: Avoid collision with stdalign module.
5456         * lib/alignof.h (alignof): Remove macro.
5457         * NEWS: Mention the change.
5458         Reported by Paul Eggert.
5459
5460 2011-11-01  Bruno Haible  <bruno@clisp.org>
5461
5462         New module 'fchownat', split off from module 'openat'.
5463         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5464         defined.
5465         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5466         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5467         invoke gl_FUNC_FCHOWNAT.
5468         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5469         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5470         * modules/fchownat: New file, extracted from modules/openat.
5471         * modules/openat (Files): Remove lib/fchownat.c.
5472         (Depends-on): Remove lchown.
5473         (configure.ac): Remove AC_LIBOBJ of fchownat.
5474         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5475         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5476         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5477         (Depends-on): Remove mgetgroups, usleep, stat-time.
5478         (configure.ac): Remove test for getegid.
5479         (Makefile.am): Remove rules for test-fchownat.
5480         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5481         of module 'openat'.
5482         * NEWS: Mention the change.
5483
5484 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5485
5486         stdalign: port better to MSVC and to Sun C 5.11
5487         This fixes some of the problems reported by Bruno Haible in
5488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5489         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5490         shortcomings of MSVC and of Sun C 5.11.
5491         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5492         around __declspec arg.
5493         * modules/stdalign-tests (Files): Add tests/macros.h.
5494         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5495         Include macros.h, for ASSERT.
5496         (DECLARE_ALIGNED): Remove.
5497         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5498         to catch bug), and to 1 if not (simplifies the rest of the code).
5499         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5500         (CHECK_AUTO): Remove.
5501         (CHECK_ALIGNED): Check only the alignment of the static vars,
5502         since auto var alignment isn't supported by Sun C 5.11.
5503         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5504         ASSERT failures are easier to diagnose.
5505
5506 2011-10-31  Bruno Haible  <bruno@clisp.org>
5507
5508         doc about some IRIX 5.3 problems.
5509         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5510         on IRIX 5.3.
5511         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5512         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5513         5.3.
5514         * doc/posix-functions/grantpt.texi: Likewise.
5515         * doc/posix-functions/unlockpt.texi: Likewise.
5516         * doc/posix-functions/lgamma.texi: Likewise.
5517         * doc/posix-functions/nextafter.texi: Likewise.
5518         * doc/posix-functions/remainder.texi: Likewise.
5519         * doc/posix-functions/select.texi: Mention misplaced declaration on
5520         IRIX 5.3.
5521         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5522
5523 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5524
5525         gitlog-to-changelog: fix git-log invocation.
5526         git-log mishandles date strings before 1970-01-01 UTC, and there is
5527         no use to specify --since=1970-01-01 by default anyway.
5528         * build-aux/gitlog-to-changelog: By default, when no --since option
5529         was given, do not specify explicit --since option to git-log.
5530
5531 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5532
5533         gitlog-to-changelog: new option --append-dot.
5534         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5535         first non-blank line of each commit message terminated with a dot.
5536
5537 2011-10-30  Bruno Haible  <bruno@clisp.org>
5538
5539         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5540         * lib/ffsl.h: Include <config.h>.
5541         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5542
5543 2011-10-30  Jim Meyering  <meyering@redhat.com>
5544
5545         GNUmakefile: reenable "make syntax-check" for most projects
5546         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5547         build-aux variable", "syntax-check" would do nothing but succeed with
5548         the "No version control files detected..." diagnostic (unless you
5549         happened to override _build-aux via cfg.mk).
5550         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5551         to precede inclusion of maint.mk.  Otherwise, these variables would
5552         be used undefined in any project that does not override the default.
5553
5554 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5555
5556         gitlog-to-changelog: treat a message with only blank lines as empty.
5557         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5558         trailing blank lines before the code that issues a warning about an
5559         empty commit message.
5560
5561 2011-10-30  Jim Meyering  <meyering@redhat.com>
5562
5563         test-parse-datetime.c: avoid new DST-related false positive test failure
5564         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5565         based on the time/date we'll convert, not the current time.
5566         Otherwise, the moment we cross a DST boundary like today's in
5567         Europe, (CEST to CET), that offset ends up being one hour off.
5568
5569 2011-10-27  Bruno Haible  <bruno@clisp.org>
5570
5571         fstat: Tweak documentation.
5572         * modules/fstat (Description): More precise description.
5573
5574 2011-10-27  Bruno Haible  <bruno@clisp.org>
5575
5576         Update documentation regarding 'largefile' module.
5577         * doc/posix-functions/fstat.texi: Tweak wording.
5578         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5579         problems with huge directories and/or small ino_t types.
5580         * doc/posix-functions/readdir.texi: Likewise.
5581         * doc/posix-functions/rewinddir.texi: Likewise.
5582
5583 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5584
5585         maint.mk: don't maintain a second build-aux variable.
5586         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5587         depends on GNUmakefile, which already maintains a cfg.mk
5588         overridable $(_build-aux) for projects with a non-standard
5589         build-aux directory location, although without the $(srcdir)
5590         prefix.  Use that variable consistently instead of introducing a
5591         second one.  Adjust all call sites.
5592
5593 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5594
5595         Add stdalign module and use it in other modules.
5596         This is based on a previous proposal by Bruno Haible
5597         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5598
5599         stdalign: new module
5600         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5601         * modules/stdalign: New files.
5602         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5603         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5604
5605         stdalign-tests: new module
5606         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5607
5608         argp: use stdalign
5609         * lib/argp-parse.c: Include <stdalign.h>.
5610         (alignof): Remove.
5611         * modules/argp (Depends-on): Add stdalign.
5612
5613         crypto libraries: use stdalign
5614         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5615         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5616         Do not include <stdlib.h> twice, in md4.c.
5617         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5618         because we are accessing a pointer's bit-pattern, not a size.
5619         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5620         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5621         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5622         * modules/crypto/sha512: Likewise.
5623
5624         sys_socket: use stdalign, not alignof
5625         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5626         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5627
5628 2011-10-27  Bruno Haible  <bruno@clisp.org>
5629
5630         raise test: Avoid a test failure on Linux/MIPS.
5631         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5632         because 99 is a valid signal on Linux/MIPS.
5633
5634 2011-10-27  Bruno Haible  <bruno@clisp.org>
5635
5636         nonblocking tests: Fix test failure on Linux/MIPS.
5637         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5638         Set to 270000.
5639
5640 2011-10-27  Bruno Haible  <bruno@clisp.org>
5641
5642         utimensat: Work around problem on Linux/hppa.
5643         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5644         values.
5645         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5646
5647 2011-10-25  Jim Meyering  <meyering@redhat.com>
5648
5649         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5650         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5651         after symbols like NULL, size_t, etc.
5652         Reported by Alfred M. Szmidt.
5653
5654         maint.mk: exempt ENODATA from a syntax-check rule
5655         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5656         from the sc_prohibit_always-defined_macros syntax-check rule.
5657         Add a comment.  See this for more details:
5658         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5659
5660 2011-10-23  Jim Meyering  <meyering@redhat.com>
5661
5662         fts: close parent dir FD before returning from post-traversal fts_read
5663         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5664         unlink A, even though an FD open on A remained.  This is suboptimal
5665         (holding a file descriptor open longer than needed), but otherwise not
5666         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5667         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5668         that represents a real problem: it causes the removal of A to fail
5669         with e.g., "rm: cannot remove `A': Device or resource busy"
5670
5671         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5672         directory file descriptors.  After completing the final, FTS_DP,
5673         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5674         cache, but then proceeded to add a new FD to it via the subsequent
5675         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5676         final file descriptor would be closed only via fts_close's call to
5677         fd_ring_clear.  Now, it is usually closed earlier, via the final
5678         FTS_DP-returning fts_read call.
5679         * lib/fts.c (restore_initial_cwd): New function, converted from
5680         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5681         Update callers.
5682         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5683         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5684
5685 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5686             Bruno Haible  <bruno@clisp.org>
5687             Jim Meyering  <jim@meyering.net>
5688
5689         readme-release: improve safety of release prep instructions.
5690         * README-release: Don't git pull all branches when only master
5691         is needed for the release process.
5692         Run make maintainer-clean before changing trees and merging.
5693         Don't try to run ./configure right after git pull in case files
5694         that influence the bootstrap process have changed, move the
5695         ./configure step to after running ./bootstrap.
5696         Don't bootstrap "one last time"... it's the first time!
5697
5698 2011-10-22  Bruno Haible  <bruno@clisp.org>
5699
5700         errno, strerror-override: Support for MSVC 10.
5701         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5702         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5703         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5704         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5705         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5706         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5707         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5708         Assign values compatible with MSVC 10.
5709         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5710         New macros.
5711         (GNULIB_defined_EWINSOCK): New macro.
5712         * lib/strerror-override.c (strerror_override): Update accordingly.
5713         * lib/strerror-override.h: Likewise.
5714         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5715         longer equal to the corresponding errno value.
5716         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5717
5718 2011-10-22  Bruno Haible  <bruno@clisp.org>
5719
5720         perror: Recognize when test program crashes.
5721         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5722         strerror, set gl_cv_func_perror_works to no.
5723         Reported by Daniel Richard G. <skunk@iskunk.org>.
5724
5725         perror: Fix indentation.
5726         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5727
5728 2011-10-22  Bruno Haible  <bruno@clisp.org>
5729
5730         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5731         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5732         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5733         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5734         functions, not as a macro.
5735         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5736         macros.
5737         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5738         absence of macro.
5739         Suggested by Eric Blake.
5740         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5741
5742 2011-10-21  Bruno Haible  <bruno@clisp.org>
5743
5744         relocatable-prog-wrapper: Don't leave object files behind.
5745         * build-aux/install-reloc: Re-synchronize list of .o files to be
5746         removed with list of compilation units.
5747
5748 2011-10-20  Bruno Haible  <bruno@clisp.org>
5749
5750         openpty, posix_openpt: Remove code duplication.
5751         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5752         * lib/openpty.c: Include <stdlib.h>.
5753         (openpty): Use posix_openpt on all platforms except IRIX.
5754         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5755
5756 2011-10-20  Bruno Haible  <bruno@clisp.org>
5757
5758         unlockpt: Detect invalid argument.
5759         * lib/unlockpt.c: Include <fcntl.h>.
5760         (unlockpt): Check whether fd is valid, using fcntl().
5761         * modules/unlockpt (Depends-on): Add fcntl-h.
5762
5763 2011-10-20  Bruno Haible  <bruno@clisp.org>
5764
5765         openpty: Avoid compilation error on AIX 6.1.
5766         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5767
5768 2011-10-20  Bruno Haible  <bruno@clisp.org>
5769
5770         posix_openpt: Support for OpenBSD.
5771         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5772         (posix_openpt) [OpenBSD]: New code.
5773         * lib/grantpt.c: Include <fcntl.h>.
5774         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5775         * modules/grantpt (Depends-on): Add fcntl-h.
5776
5777 2011-10-20  Bruno Haible  <bruno@clisp.org>
5778
5779         posix_openpt test: Coding style.
5780         * tests/test-posix_openpt.c: Use GNU coding style.
5781
5782 2011-10-20  Bruno Haible  <bruno@clisp.org>
5783
5784         grantpt: Support --avoid=pt_chown.
5785         * modules/grantpt (Files): Add lib/pty-private.h.
5786
5787 2011-10-20  Bruno Haible  <bruno@clisp.org>
5788
5789         posix_openpt: Fix autoconf macro.
5790         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5791         unneeded check for _getpty.
5792
5793 2011-10-20  Bruno Haible  <bruno@clisp.org>
5794
5795         openpty: Update comments.
5796         * lib/openpty.c: Add comments about Minix.
5797
5798 2011-10-19  Eric Blake  <eblake@redhat.com>
5799
5800         openpty: relax license
5801         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5802
5803         pt_chown: use configmake to simplify build
5804         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5805
5806         ptsname and others: relax license
5807         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5808         * modules/unlockpt (License): Likewise.
5809         * modules/pt_chown (License): Likewise.
5810         * modules/ptsname (License): Likewise.
5811         * modules/ttyname_r (License): Likewise.
5812
5813 2011-10-19  Jim Meyering  <meyering@redhat.com>
5814
5815         posix_openpt: remove spurious #endif
5816         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5817
5818 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5819
5820         maint.mk: Respect $(build_aux) in web-manual rule.
5821         * top/maint.mk (web-manual): Find gen-announce script in user's
5822         $(build_aux) directory instead of hard-coding 'build-aux'.
5823
5824 2011-10-19  Bruno Haible  <bruno@clisp.org>
5825
5826         posix_openpt: Fix compilation error.
5827         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5828         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5829         Mention the openpty module as an alternative.
5830
5831 2011-10-19  Bruno Haible  <bruno@clisp.org>
5832
5833         Support for old NeXTstep 3.3 frexp().
5834         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5835         execution time of the test to 5 seconds.
5836         Reported by Daniel Richard G. <skunk@iskunk.org>.
5837
5838 2011-10-19  Bruno Haible  <bruno@clisp.org>
5839
5840         Support for old NeXTstep 3.3 sed.
5841         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
5842         part, use /.../, not \|...|. Escape periods in the header file name.
5843         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5844         Reported by Daniel Richard G. <skunk@iskunk.org>.
5845
5846 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5847
5848         Support for old NeXTstep 3.3 gcc.
5849         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
5850         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
5851         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
5852         * lib/spawn.in.h (_Restrict_arr_): Likewise.
5853         * lib/regex.h (_Restrict_arr_): Likewise.
5854         * lib/regex_internal.h (re_token_t): Likewise.
5855         * lib/regexec.c (check_node_accept_bytes): Likewise.
5856         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
5857
5858 2011-10-18  Eric Blake  <eblake@redhat.com>
5859
5860         posix_openpt: new module
5861         * modules/posix_openpt: New module.
5862         * m4/posix_openpt.m4: New file.
5863         * lib/posix_openpt.c: Likewise.
5864         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5865         (gl_STDLIB_H_DEFAULTS): Set defaults.
5866         * modules/stdlib (Makefile.am): Substitute macros.
5867         * lib/stdlib.in.h (posix_openpt): Declare.
5868         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
5869         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
5870         * modules/posix_openpt-tests: New test module.
5871         * tests/test-posix_openpt.c: New test.
5872
5873 2011-10-15  Bruno Haible  <bruno@clisp.org>
5874
5875         xstrtoll: Fix compilation failure.
5876         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
5877         from lib/strtol.c.
5878         * doc/posix-headers/limits.texi: Mention missing numerical limits on
5879         some platforms.
5880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5881
5882 2011-10-15  Bruno Haible  <bruno@clisp.org>
5883
5884         vasnprintf: Optimize bit search operation.
5885         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
5886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
5887         gl_DOUBLE_EXPONENT_LOCATION.
5888         * modules/vasnprintf (Files): Add m4/exponentd.m4.
5889         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5890         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5891         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5892         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5893         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5894         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5895         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5896         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
5897
5898 2011-10-15  Bruno Haible  <bruno@clisp.org>
5899
5900         vasnprintf: Fix comments.
5901         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
5902
5903 2011-10-14  Bruno Haible  <bruno@clisp.org>
5904
5905         Tests for module 'integer_length_ll'.
5906         * modules/integer_length_ll-tests: New file.
5907         * tests/test-integer_length_ll.c: New file.
5908
5909         New module 'integer_length_ll'.
5910         * lib/integer_length_ll.c: New file.
5911         * modules/integer_length_ll: New file.
5912
5913 2011-10-14  Bruno Haible  <bruno@clisp.org>
5914
5915         Tests for module 'integer_length_l'.
5916         * modules/integer_length_l-tests: New file.
5917         * tests/test-integer_length_l.c: New file.
5918
5919         New module 'integer_length_l'.
5920         * lib/integer_length_l.c: New file.
5921         * modules/integer_length_l: New file.
5922
5923 2011-10-14  Bruno Haible  <bruno@clisp.org>
5924
5925         Tests for module 'integer_length'.
5926         * modules/integer_length-tests: New file.
5927         * tests/test-integer_length.c: New file.
5928
5929         New module 'integer_length'.
5930         * lib/integer_length.h: New file.
5931         * lib/integer_length.c: New file.
5932         * modules/integer_length: New file.
5933
5934 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5935
5936         popen: Fix dependency conditions.
5937         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
5938
5939 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5940
5941         perror: Fix autoconf test.
5942         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
5943         <stdlib.h> and <string.h>.
5944
5945 2011-10-14  Bruno Haible  <bruno@clisp.org>
5946
5947         ffsl: Optimize on 64-bit platforms.
5948         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
5949         unrolling.
5950
5951 2011-10-13  Bruno Haible  <bruno@clisp.org>
5952
5953         ffsl: Optimize on 32-bit platforms.
5954         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
5955         use ffs() without a loop.
5956
5957         ffsl, ffsll: Optimize for GCC.
5958         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
5959         * lib/ffsl.c (GCC_BUILTIN): New macro.
5960         * lib/ffsll.c (GCC_BUILTIN): Likewise.
5961
5962 2011-10-13  Bruno Haible  <bruno@clisp.org>
5963
5964         ffs, bcopy, memset: Support symbol renaming via config.h.
5965         * lib/ffs.c: Include <config.h>.
5966         * lib/bcopy.c: Likewise.
5967         * lib/memset.c: Likewise.
5968
5969 2011-10-10  Bruno Haible  <bruno@clisp.org>
5970
5971         atanl: Simplify for platforms where 'long double' == 'double'.
5972         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5973         alternative implementation.
5974         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5975         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5976         * modules/atanl (Depends-on): Add atan. Update conditions.
5977
5978 2011-10-10  Bruno Haible  <bruno@clisp.org>
5979
5980         acosl: Simplify for platforms where 'long double' == 'double'.
5981         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5982         alternative implementation.
5983         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5984         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5985         * modules/acosl (Depends-on): Add acos. Update conditions.
5986
5987 2011-10-10  Bruno Haible  <bruno@clisp.org>
5988
5989         asinl: Simplify for platforms where 'long double' == 'double'.
5990         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5991         alternative implementation.
5992         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5993         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5994         * modules/asinl (Depends-on): Add asin. Update conditions.
5995
5996 2011-10-10  Bruno Haible  <bruno@clisp.org>
5997
5998         tanl: Simplify for platforms where 'long double' == 'double'.
5999         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6000         implementation.
6001         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6002         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6003         * modules/tanl (Depends-on): Add tan. Update conditions.
6004         (configure.ac): Don't compile trigl.c if
6005         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6006
6007 2011-10-10  Bruno Haible  <bruno@clisp.org>
6008
6009         cosl: Simplify for platforms where 'long double' == 'double'.
6010         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6011         implementation.
6012         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6013         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6014         * modules/cosl (Depends-on): Add cos. Update conditions.
6015         (configure.ac): Don't compile sincosl.c and trigl.c if
6016         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6017
6018 2011-10-10  Bruno Haible  <bruno@clisp.org>
6019
6020         sinl: Simplify for platforms where 'long double' == 'double'.
6021         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6022         implementation.
6023         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6024         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6025         * modules/sinl (Depends-on): Add sin. Update conditions.
6026         (configure.ac): Don't compile sincosl.c and trigl.c if
6027         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6028
6029 2011-10-10  Bruno Haible  <bruno@clisp.org>
6030
6031         logl: Simplify for platforms where 'long double' == 'double'.
6032         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6033         implementation.
6034         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6035         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6036         * modules/logl (Depends-on): Add log. Update conditions.
6037
6038 2011-10-10  Bruno Haible  <bruno@clisp.org>
6039
6040         expl: Simplify for platforms where 'long double' == 'double'.
6041         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6042         implementation.
6043         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6044         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6045         * modules/expl (Depends-on): Add exp. Update conditions.
6046
6047 2011-10-10  Bruno Haible  <bruno@clisp.org>
6048
6049         sqrtl: Simplify for platforms where 'long double' == 'double'.
6050         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6051         alternative implementation.
6052         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6053         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6054         * modules/sqrtl (Depends-on): Update conditions.
6055
6056 2011-10-10  Bruno Haible  <bruno@clisp.org>
6057
6058         ldexpl: Simplify for platforms where 'long double' == 'double'.
6059         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6060         alternative implementation.
6061         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6062         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6063         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6064
6065 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6066
6067         ffsll: set correct witness
6068         * modules/ffsll (configure.ac): Fix typo.
6069
6070 2011-10-10  Bruno Haible  <bruno@clisp.org>
6071
6072         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6073         * lib/printf-frexpl.c: Include <config.h>.
6074         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6075         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6076         second time.
6077         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6078         gl_LONG_DOUBLE_VS_DOUBLE.
6079         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6080         conditions.
6081
6082 2011-10-10  Bruno Haible  <bruno@clisp.org>
6083
6084         frexpl: Simplify for platforms where 'long double' == 'double'.
6085         * lib/frexpl.c: Include <config.h>.
6086         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6087         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6088         time.
6089         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6090         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6091         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6092         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6093         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6094         conditions.
6095
6096 2011-10-10  Jim Meyering  <meyering@redhat.com>
6097
6098         test-renameat: don't leave behind a temporary file
6099         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6100           ERROR: files left in build directory after distclean:
6101           ./gltests/test-renameat.too
6102           make[1]: *** [distcleancheck] Error 1
6103         Reported by Tom G. Christensen.
6104
6105 2011-10-09  Bruno Haible  <bruno@clisp.org>
6106
6107         rint: Determine RINT_LIBM correctly on AIX 7.
6108         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6109         directly, not only through a function pointer. Also accept an optional
6110         4th argument with extra code.
6111         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6112         rintf() call by gcc when optimizing.
6113
6114         mathfunc.m4: Refactor.
6115         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6116         m4 variable.
6117
6118 2011-10-09  Bruno Haible  <bruno@clisp.org>
6119
6120         rintl: Simplify for platforms where 'long double' == 'double'.
6121         * lib/rintl.c: Include <config.h>.
6122         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6123         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6124         time.
6125         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6126         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6127         * modules/rintl (Depends-on): Add rint. Update conditions.
6128
6129 2011-10-09  Bruno Haible  <bruno@clisp.org>
6130
6131         roundl: Simplify for platforms where 'long double' == 'double'.
6132         * lib/roundl.c: Include <config.h>.
6133         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6134         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6135         time.
6136         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6137         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6138         * modules/roundl (Depends-on): Add round. Update conditions.
6139
6140 2011-10-09  Bruno Haible  <bruno@clisp.org>
6141
6142         truncl: Simplify for platforms where 'long double' == 'double'.
6143         * lib/truncl.c: Include <config.h>.
6144         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6145         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6146         time.
6147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6148         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6149         * modules/truncl (Depends-on): Add trunc. Update conditions.
6150
6151 2011-10-09  Bruno Haible  <bruno@clisp.org>
6152
6153         ceill: Simplify for platforms where 'long double' == 'double'.
6154         * lib/ceill.c: Include <config.h>.
6155         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6156         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6157         time.
6158         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6159         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6160         * modules/ceill (Depends-on): Add ceil. Update conditions.
6161
6162 2011-10-09  Bruno Haible  <bruno@clisp.org>
6163
6164         floorl: Simplify for platforms where 'long double' == 'double'.
6165         * lib/floorl.c: Include <config.h>.
6166         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6167         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6168         time.
6169         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6170         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6171         * modules/floorl (Depends-on): Add floor. Update conditions.
6172
6173 2011-10-09  Bruno Haible  <bruno@clisp.org>
6174
6175         rint: Fix ordering constraints.
6176         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6177         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6178         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6179
6180 2011-10-09  Bruno Haible  <bruno@clisp.org>
6181
6182         copysignl: Simplify for platforms where 'long double' == 'double'.
6183         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6184         alternative.
6185         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6186         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6187         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6188
6189 2011-10-09  Bruno Haible  <bruno@clisp.org>
6190
6191         Tests for module 'rintl'.
6192         * modules/rintl-tests: New file.
6193         * tests/test-rintl.c: New file.
6194
6195         New module 'rintl'.
6196         * lib/math.in.h (rintl): New declaration.
6197         * lib/rintl.c: New file.
6198         * m4/rintl.m4: New file.
6199         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6201         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6202         * modules/rintl: New file.
6203         * tests/test-math-c++.cc: Check the declaration of rintl.
6204         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6205         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6206         * doc/posix-functions/rintl.texi: Mention the new module.
6207
6208 2011-10-09  Bruno Haible  <bruno@clisp.org>
6209
6210         Tests for module 'rintf'.
6211         * modules/rintf-tests: New file.
6212         * tests/test-rintf.c: New file.
6213
6214         New module 'rintf'.
6215         * lib/math.in.h (rintf): New declaration.
6216         * lib/rintf.c: New file.
6217         * m4/rintf.m4: New file.
6218         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6220         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6221         * modules/rintf: New file.
6222         * tests/test-math-c++.cc: Check the declaration of rintf.
6223         * doc/posix-functions/rintf.texi: Mention the new module.
6224
6225 2011-10-09  Bruno Haible  <bruno@clisp.org>
6226
6227         rint: Support for MSVC.
6228         * lib/math.in.h (rint): New declaration.
6229         * lib/rint.c: New file.
6230         * m4/rint.m4: New file.
6231         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6233         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6234         * modules/rint (Description): Fix.
6235         (Files): Add lib/rint.c, m4/rint.m4.
6236         (Depends-on): Add math.
6237         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6238         gl_MATH_MODULE_INDICATOR.
6239         * tests/test-math-c++.cc: Check the declaration of rint.
6240         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6241         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6242         * doc/posix-functions/rint.texi: Mention the replacement provided by
6243         the module.
6244
6245         rint tests: More tests.
6246         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6247         minus-zero.h, infinity.h, nan.h.
6248         (main): Skip the test if the current rounding mode is not standard. Add
6249         tests for negative numbers, minus zero, infinity, NaN.
6250         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6251         tests/nan.h.
6252         (Depends-on): Add isnand-nolibm.
6253
6254 2011-10-09  Bruno Haible  <bruno@clisp.org>
6255
6256         Tests for module 'copysignl'.
6257         * modules/copysignl-tests: New file.
6258         * tests/test-copysignl.c: New file.
6259
6260         New module 'copysignl'.
6261         * lib/math.in.h (copysignl): New declaration.
6262         * lib/copysignl.c: New file.
6263         * m4/copysignl.m4: New file.
6264         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6266         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6267         HAVE_COPYSIGNL.
6268         * modules/copysignl: New file.
6269         * tests/test-math-c++.cc: Check the declaration of copysignl.
6270         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6271         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6272         * doc/posix-functions/copysignl.texi: Mention the new module.
6273
6274 2011-10-09  Bruno Haible  <bruno@clisp.org>
6275
6276         Tests for module 'copysignf'.
6277         * modules/copysignf-tests: New file.
6278         * tests/test-copysignf.c: New file.
6279
6280         New module 'copysignf'.
6281         * lib/math.in.h (copysignf): New declaration.
6282         * lib/copysignf.c: New file.
6283         * m4/copysignf.m4: New file.
6284         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6286         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6287         HAVE_COPYSIGNF.
6288         * modules/copysignf: New file.
6289         * tests/test-math-c++.cc: Check the declaration of copysignf.
6290         * doc/posix-functions/copysignf.texi: Mention the new module.
6291
6292 2011-10-09  Bruno Haible  <bruno@clisp.org>
6293
6294         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6295         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6296         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6297         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6298         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6299         gl_SIGNAL_H_DEFAULTS.
6300
6301 2011-10-09  Bruno Haible  <bruno@clisp.org>
6302
6303         poll: Make macro safer.
6304         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6305         ac_cv_header_poll_h is not set.
6306
6307 2011-10-09  Bruno Haible  <bruno@clisp.org>
6308
6309         copysign: Provide replacement.
6310         * lib/math.in.h (copysign): New declaration.
6311         * lib/copysign.c: New file.
6312         * m4/copysign.m4: New file.
6313         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6315         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6316         HAVE_COPYSIGN.
6317         * modules/copysign (Description): Clarify.
6318         (Files): Add lib/copysign.c, m4/copysign.m4.
6319         (Depends-on): Add math, signbit.
6320         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6321         gl_MATH_MODULE_INDICATOR.
6322         * tests/test-math-c++.cc: Check the declaration of copysign.
6323         * doc/posix-functions/copysign.texi: Mention the effects of the module
6324         on Minix and MSVC.
6325
6326 2011-10-09  Bruno Haible  <bruno@clisp.org>
6327
6328         isinf: Ensure macro on AIX 5.1.
6329         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6330         macro.
6331         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6332
6333 2011-10-09  Bruno Haible  <bruno@clisp.org>
6334
6335         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6336         * modules/snprintf-posix-tests (configure.ac): Require
6337         gl_LONG_DOUBLE_VS_DOUBLE.
6338         * modules/sprintf-posix-tests (configure.ac): Likewise.
6339         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6340         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6341         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6342         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6343         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6344         tests on platforms where 'long double' is the same as 'double'.
6345         * tests/test-sprintf-posix.h (test_function): Likewise.
6346         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6347         * tests/test-vasprintf-posix.c (test_function): Likewise.
6348
6349         *printf: Fix for platforms where 'long double' == 'double'.
6350         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6351         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6352         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6353         * modules/fprintf-posix (Files): Likewise.
6354         * modules/obstack-printf-posix (Files): Likewise.
6355         * modules/snprintf-posix (Files): Likewise.
6356         * modules/sprintf-posix (Files): Likewise.
6357         * modules/vasnprintf (Files): Likewise.
6358         * modules/vasnprintf-posix (Files): Likewise.
6359         * modules/vasprintf-posix (Files): Likewise.
6360         * modules/vdprintf-posix (Files): Likewise.
6361         * modules/vfprintf-posix (Files): Likewise.
6362         * modules/vsnprintf-posix (Files): Likewise.
6363         * modules/vsprintf-posix (Files): Likewise.
6364         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6365         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6366         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6367         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6368         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6369         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6370         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6371
6372         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6373         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6374         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6375         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6376         'long double'.
6377         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6378
6379         isinf: Fix for platforms where 'long double' == 'double'.
6380         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6381         Don't blindly assume 80-bit 'long double'.
6382
6383         isfinite: Fix for platforms where 'long double' == 'double'.
6384         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6385         Don't blindly assume 80-bit 'long double'.
6386
6387         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6388         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6389         * modules/isfinite-tests (configure.ac): Require
6390         gl_LONG_DOUBLE_VS_DOUBLE.
6391         * modules/isinf-tests (configure.ac): Likewise.
6392         * modules/isnan-tests (configure.ac): Likewise.
6393         * modules/isnanl-tests (configure.ac): Likewise.
6394         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6395         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6396         tests on platforms where 'long double' is the same as 'double'.
6397         * tests/test-isinf.c (test_isinfl): Likewise.
6398         * tests/test-isnan.c (test_long_double): Likewise.
6399         * tests/test-isnanl.h (main): Likewise.
6400
6401 2011-10-08  Bruno Haible  <bruno@clisp.org>
6402
6403         Tests for module 'tanhf'.
6404         * modules/tanhf-tests: New file.
6405         * tests/test-tanhf.c: New file.
6406
6407         New module 'tanhf'.
6408         * lib/math.in.h (tanhf): New declaration.
6409         * lib/tanhf.c: New file.
6410         * m4/tanhf.m4: New file.
6411         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6413         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6414         * modules/tanhf: New file.
6415         * tests/test-math-c++.cc: Check the declaration of tanhf.
6416         * doc/posix-functions/tanhf.texi: Mention the new module.
6417
6418         tanh: Use a .m4 file.
6419         * m4/tanh.m4: New file.
6420         * modules/tanh (Files): Add it.
6421         (configure.ac): Just invoke gl_FUNC_TANH.
6422
6423 2011-10-08  Bruno Haible  <bruno@clisp.org>
6424
6425         Tests for module 'coshf'.
6426         * modules/coshf-tests: New file.
6427         * tests/test-coshf.c: New file.
6428
6429         New module 'coshf'.
6430         * lib/math.in.h (coshf): New declaration.
6431         * lib/coshf.c: New file.
6432         * m4/coshf.m4: New file.
6433         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6435         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6436         * modules/coshf: New file.
6437         * tests/test-math-c++.cc: Check the declaration of coshf.
6438         * doc/posix-functions/coshf.texi: Mention the new module.
6439
6440         cosh: Use a .m4 file.
6441         * m4/cosh.m4: New file.
6442         * modules/cosh (Files): Add it.
6443         (configure.ac): Just invoke gl_FUNC_COSH.
6444
6445 2011-10-08  Bruno Haible  <bruno@clisp.org>
6446
6447         Tests for module 'sinhf'.
6448         * modules/sinhf-tests: New file.
6449         * tests/test-sinhf.c: New file.
6450
6451         New module 'sinhf'.
6452         * lib/math.in.h (sinhf): New declaration.
6453         * lib/sinhf.c: New file.
6454         * m4/sinhf.m4: New file.
6455         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6457         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6458         * modules/sinhf: New file.
6459         * tests/test-math-c++.cc: Check the declaration of sinhf.
6460         * doc/posix-functions/sinhf.texi: Mention the new module.
6461
6462         sinh: Use a .m4 file.
6463         * m4/sinh.m4: New file.
6464         * modules/sinh (Files): Add it.
6465         (configure.ac): Just invoke gl_FUNC_SINH.
6466
6467 2011-10-08  Bruno Haible  <bruno@clisp.org>
6468
6469         Tests for module 'atan2f'.
6470         * modules/atan2f-tests: New file.
6471         * tests/test-atan2f.c: New file.
6472
6473         New module 'atan2f'.
6474         * lib/math.in.h (atan2f): New declaration.
6475         * lib/atan2f.c: New file.
6476         * m4/atan2f.m4: New file.
6477         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6479         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6480         * modules/atan2f: New file.
6481         * tests/test-math-c++.cc: Check the declaration of atan2f.
6482         * doc/posix-functions/atan2f.texi: Mention the new module.
6483
6484         atan2: Use a .m4 file.
6485         * m4/atan2.m4: New file.
6486         * modules/atan2 (Files): Add it.
6487         (configure.ac): Just invoke gl_FUNC_ATAN2.
6488
6489 2011-10-08  Bruno Haible  <bruno@clisp.org>
6490
6491         Tests for module 'atanf'.
6492         * modules/atanf-tests: New file.
6493         * tests/test-atanf.c: New file.
6494
6495         New module 'atanf'.
6496         * lib/math.in.h (atanf): New declaration.
6497         * lib/atanf.c: New file.
6498         * m4/atanf.m4: New file.
6499         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6501         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6502         * modules/atanf: New file.
6503         * tests/test-math-c++.cc: Check the declaration of atanf.
6504         * doc/posix-functions/atanf.texi: Mention the new module.
6505
6506         atan: Use a .m4 file.
6507         * m4/atan.m4: New file.
6508         * modules/atan (Files): Add it.
6509         (configure.ac): Just invoke gl_FUNC_ATAN.
6510
6511 2011-10-08  Bruno Haible  <bruno@clisp.org>
6512
6513         Tests for module 'acosf'.
6514         * modules/acosf-tests: New file.
6515         * tests/test-acosf.c: New file.
6516
6517         New module 'acosf'.
6518         * lib/math.in.h (acosf): New declaration.
6519         * lib/acosf.c: New file.
6520         * m4/acosf.m4: New file.
6521         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6523         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6524         * modules/acosf: New file.
6525         * tests/test-math-c++.cc: Check the declaration of acosf.
6526         * doc/posix-functions/acosf.texi: Mention the new module.
6527
6528         acos: Use a .m4 file.
6529         * m4/acos.m4: New file.
6530         * modules/acos (Files): Add it.
6531         (configure.ac): Just invoke gl_FUNC_ACOS.
6532
6533 2011-10-08  Bruno Haible  <bruno@clisp.org>
6534
6535         Tests for module 'asinf'.
6536         * modules/asinf-tests: New file.
6537         * tests/test-asinf.c: New file.
6538
6539         New module 'asinf'.
6540         * lib/math.in.h (asinf): New declaration.
6541         * lib/asinf.c: New file.
6542         * m4/asinf.m4: New file.
6543         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6545         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6546         * modules/asinf: New file.
6547         * tests/test-math-c++.cc: Check the declaration of asinf.
6548         * doc/posix-functions/asinf.texi: Mention the new module.
6549
6550         asin: Use a .m4 file.
6551         * m4/asin.m4: New file.
6552         * modules/asin (Files): Add it.
6553         (configure.ac): Just invoke gl_FUNC_ASIN.
6554
6555 2011-10-08  Bruno Haible  <bruno@clisp.org>
6556
6557         Tests for module 'tanf'.
6558         * modules/tanf-tests: New file.
6559         * tests/test-tanf.c: New file.
6560
6561         New module 'tanf'.
6562         * lib/math.in.h (tanf): New declaration.
6563         * lib/tanf.c: New file.
6564         * m4/tanf.m4: New file.
6565         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6567         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6568         * modules/tanf: New file.
6569         * tests/test-math-c++.cc: Check the declaration of tanf.
6570         * doc/posix-functions/tanf.texi: Mention the new module.
6571
6572         tan: Use a .m4 file.
6573         * m4/tan.m4: New file.
6574         * modules/tan (Files): Add it.
6575         (configure.ac): Just invoke gl_FUNC_TAN.
6576
6577 2011-10-08  Bruno Haible  <bruno@clisp.org>
6578
6579         Tests for module 'cosf'.
6580         * modules/cosf-tests: New file.
6581         * tests/test-cosf.c: New file.
6582
6583         New module 'cosf'.
6584         * lib/math.in.h (cosf): New declaration.
6585         * lib/cosf.c: New file.
6586         * m4/cosf.m4: New file.
6587         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6589         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6590         * modules/cosf: New file.
6591         * tests/test-math-c++.cc: Check the declaration of cosf.
6592         * doc/posix-functions/cosf.texi: Mention the new module.
6593
6594         cos: Use a .m4 file.
6595         * m4/cos.m4: New file.
6596         * modules/cos (Files): Add it.
6597         (configure.ac): Just invoke gl_FUNC_COS.
6598
6599 2011-10-08  Bruno Haible  <bruno@clisp.org>
6600
6601         Tests for module 'sinf'.
6602         * modules/sinf-tests: New file.
6603         * tests/test-sinf.c: New file.
6604
6605         New module 'sinf'.
6606         * lib/math.in.h (sinf): New declaration.
6607         * lib/sinf.c: New file.
6608         * m4/sinf.m4: New file.
6609         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6611         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6612         * modules/sinf: New file.
6613         * tests/test-math-c++.cc: Check the declaration of sinf.
6614         * doc/posix-functions/sinf.texi: Mention the new module.
6615
6616         sin: Use a .m4 file.
6617         * m4/sin.m4: New file.
6618         * modules/sin (Files): Add it.
6619         (configure.ac): Just invoke gl_FUNC_SIN.
6620
6621 2011-10-08  Bruno Haible  <bruno@clisp.org>
6622
6623         Tests for module 'powf'.
6624         * modules/powf-tests: New file.
6625         * tests/test-powf.c: New file.
6626
6627         New module 'powf'.
6628         * lib/math.in.h (powf): New declaration.
6629         * lib/powf.c: New file.
6630         * m4/powf.m4: New file.
6631         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6633         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6634         * modules/powf: New file.
6635         * tests/test-math-c++.cc: Check the declaration of powf.
6636         * doc/posix-functions/powf.texi: Mention the new module.
6637
6638         pow: Use a .m4 file.
6639         * m4/pow.m4: New file.
6640         * modules/pow (Files): Add it.
6641         (configure.ac): Just invoke gl_FUNC_POW.
6642
6643 2011-10-08  Bruno Haible  <bruno@clisp.org>
6644
6645         Tests for module 'log10f'.
6646         * modules/log10f-tests: New file.
6647         * tests/test-log10f.c: New file.
6648
6649         New module 'log10f'.
6650         * lib/math.in.h (log10f): New declaration.
6651         * lib/log10f.c: New file.
6652         * m4/log10f.m4: New file.
6653         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6655         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6656         * modules/log10f: New file.
6657         * tests/test-math-c++.cc: Check the declaration of log10f.
6658         * doc/posix-functions/log10f.texi: Mention the new module.
6659
6660         log10: Use a .m4 file.
6661         * m4/log10.m4: New file.
6662         * modules/log10 (Files): Add it.
6663         (configure.ac): Just invoke gl_FUNC_LOG10.
6664
6665 2011-10-08  Bruno Haible  <bruno@clisp.org>
6666
6667         Tests for module 'logf'.
6668         * modules/logf-tests: New file.
6669         * tests/test-logf.c: New file.
6670
6671         New module 'logf'.
6672         * lib/math.in.h (logf): New declaration.
6673         * lib/logf.c: New file.
6674         * m4/logf.m4: New file.
6675         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6677         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6678         * modules/logf: New file.
6679         * tests/test-math-c++.cc: Check the declaration of logf.
6680         * doc/posix-functions/logf.texi: Mention the new module.
6681
6682         log: Use a .m4 file.
6683         * m4/log.m4: New file.
6684         * modules/log (Files): Add it.
6685         (configure.ac): Just invoke gl_FUNC_LOG.
6686
6687 2011-10-08  Bruno Haible  <bruno@clisp.org>
6688
6689         Tests for module 'expf'.
6690         * modules/expf-tests: New file.
6691         * tests/test-expf.c: New file.
6692
6693         New module 'expf'.
6694         * lib/math.in.h (expf): New declaration.
6695         * lib/expf.c: New file.
6696         * m4/expf.m4: New file.
6697         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6699         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6700         * modules/expf: New file.
6701         * tests/test-math-c++.cc: Check the declaration of expf.
6702         * doc/posix-functions/expf.texi: Mention the new module.
6703
6704         exp: Use a .m4 file.
6705         * m4/exp.m4: New file.
6706         * modules/exp (Files): Add it.
6707         (configure.ac): Just invoke gl_FUNC_EXP.
6708
6709 2011-10-08  Bruno Haible  <bruno@clisp.org>
6710
6711         Tests for module 'sqrtf'.
6712         * modules/sqrtf-tests: New file.
6713         * tests/test-sqrtf.c: New file.
6714
6715         New module 'sqrtf'.
6716         * lib/math.in.h (sqrtf): New declaration.
6717         * lib/sqrtf.c: New file.
6718         * m4/sqrtf.m4: New file.
6719         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6721         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6722         * modules/sqrtf: New file.
6723         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6724         * doc/posix-functions/sqrtf.texi: Mention the new module.
6725
6726 2011-10-08  Bruno Haible  <bruno@clisp.org>
6727
6728         Tests: Avoid link failures w.r.t. libintl.
6729         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6730         $(LIBINTL).
6731         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6732         $(LIBINTL).
6733         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6734         against $(LIBINTL).
6735         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6736         $(LIBINTL).
6737         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6738         $(LIBINTL).
6739         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6740
6741 2011-10-08  Bruno Haible  <bruno@clisp.org>
6742
6743         pow tests: Defeat compiler optimizations.
6744         * tests/test-pow.c (main): Assign arguments to x and y before use.
6745
6746 2011-10-08  Bruno Haible  <bruno@clisp.org>
6747
6748         gnulib-tool: Improve last commit.
6749         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6750         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6751         ignore dependencies that are not among the modules list.
6752
6753 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6754
6755         gnulib-tool: don't follow dependencies to avoided modules
6756         This fixes a bug that is related to the previous one.
6757         * gnulib-tool (func_modules_transitive_closure)
6758         (func_emit_autoconf_snippets):
6759         Check whether a dependency is acceptable before using it.
6760         (--extract-dependencies): Report an error if --avoid is also used,
6761         since this combination of options is not yet supported.
6762
6763         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6764         Problem reported by Peter Dyballa in
6765         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6766         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6767         when echoing "$condition".
6768
6769 2011-10-07  Bruno Haible  <bruno@clisp.org>
6770
6771         Fix documentation about math functions on MacOS X.
6772         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6773         MacOS X 10.5.
6774         * doc/posix-functions/fdim.texi: Likewise.
6775         * doc/posix-functions/feclearexcept.texi: Likewise.
6776         * doc/posix-functions/fegetenv.texi: Likewise.
6777         * doc/posix-functions/fegetround.texi: Likewise.
6778         * doc/posix-functions/feholdexcept.texi: Likewise.
6779         * doc/posix-functions/feraiseexcept.texi: Likewise.
6780         * doc/posix-functions/fesetenv.texi: Likewise.
6781         * doc/posix-functions/fesetround.texi: Likewise.
6782         * doc/posix-functions/fetestexcept.texi: Likewise.
6783         * doc/posix-functions/feupdateenv.texi: Likewise.
6784         * doc/posix-functions/fmax.texi: Likewise.
6785         * doc/posix-functions/fmin.texi: Likewise.
6786         * doc/posix-functions/log2.texi: Likewise.
6787         * doc/posix-functions/modff.texi: Likewise.
6788         * doc/posix-functions/nan.texi: Likewise.
6789         * doc/posix-functions/nanf.texi: Likewise.
6790         * doc/posix-functions/nextafterf.texi: Likewise.
6791         * doc/posix-functions/remquo.texi: Likewise.
6792
6793 2011-10-07  Bruno Haible  <bruno@clisp.org>
6794
6795         modff: Drop assumption about library that defines modff.
6796         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6797         AC_CHECK_FUNCS.
6798         * modules/modff (Files): Add m4/mathfunc.m4.
6799
6800 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6801
6802         raise tests: Avoid a GCC warning.
6803         * tests/test-raise.c (handler): Use _Noreturn.
6804
6805 2011-10-07  Bruno Haible  <bruno@clisp.org>
6806
6807         Tests for module 'ldexpf'.
6808         * modules/ldexpf-tests: New file.
6809         * tests/test-ldexpf.c: New file.
6810
6811         New module 'ldexpf'.
6812         * lib/math.in.h (ldexpf): New declaration.
6813         * lib/ldexpf.c: New file.
6814         * m4/ldexpf.m4: New file.
6815         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6817         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6818         * modules/ldexpf: New file.
6819         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6820         * doc/posix-functions/ldexpf.texi: Mention the new module.
6821
6822 2011-10-06  Bruno Haible  <bruno@clisp.org>
6823
6824         frexpf: Work around problems on IRIX and mingw.
6825         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6827         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6828         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6829         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6830         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6831         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6832
6833 2011-10-06  Bruno Haible  <bruno@clisp.org>
6834
6835         fabsf: Drop assumption about library that defines fabsf.
6836         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6837         AC_CHECK_FUNCS.
6838         * modules/fabsf (Files): Add m4/mathfunc.m4.
6839
6840 2011-10-06  Bruno Haible  <bruno@clisp.org>
6841
6842         frexpf: Drop assumption about library that defines frexpf.
6843         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
6844         'int *', 'float *', 'long double *', 'float', 'long double'.
6845         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
6846         AC_CHECK_FUNCS.
6847         * modules/frexpf (Files): Add m4/mathfunc.m4.
6848
6849         Tests for module 'frexpf'.
6850         * modules/frexpf-tests: New file.
6851         * tests/test-frexpf.c: New file.
6852
6853         New module 'frexpf'.
6854         * lib/math.in.h (frexpf): New declaration.
6855         * lib/frexpf.c: New file.
6856         * m4/frexpf.m4: New file.
6857         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
6858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
6859         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
6860         * modules/frexpf: New file.
6861         * tests/test-math-c++.cc: Check the declaration of frexpf.
6862         * doc/posix-functions/frexpf.texi: Mention the new module.
6863
6864 2011-10-06  Bruno Haible  <bruno@clisp.org>
6865
6866         math: Sort function declarations of math.in.h.
6867         * lib/math.in.h (frexp, logb): Move declarations.
6868
6869 2011-10-05  Bruno Haible  <bruno@clisp.org>
6870
6871         Tests for module 'modff'.
6872         * modules/modff-tests: New file.
6873         * tests/test-modff.c: New file.
6874
6875         New module 'modff'.
6876         * lib/math.in.h (modff): New declaration.
6877         * lib/modff.c: New file.
6878         * m4/modff.m4: New file.
6879         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
6880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
6881         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
6882         * modules/modff: New file.
6883         * tests/test-math-c++.cc: Check the declaration of modff.
6884         * doc/posix-functions/modff.texi: Mention the new module.
6885
6886         modf tests: Make test sharper.
6887         * tests/test-modf.c (main): Strengthen upper bound.
6888
6889         modf: Use a .m4 file.
6890         * m4/modf.m4: New file.
6891         * modules/modf (Files): Add it.
6892         (configure.ac): Just invoke gl_FUNC_MODF.
6893
6894 2011-10-05  Bruno Haible  <bruno@clisp.org>
6895
6896         Tests for module 'fmodf'.
6897         * modules/fmodf-tests: New file.
6898         * tests/test-fmodf.c: New file.
6899
6900         New module 'fmodf'.
6901         * lib/math.in.h (fmodf): New declaration.
6902         * lib/fmodf.c: New file.
6903         * m4/fmodf.m4: New file.
6904         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
6905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
6906         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
6907         * modules/fmodf: New file.
6908         * tests/test-math-c++.cc: Check the declaration of fmodf.
6909         * doc/posix-functions/fmodf.texi: Mention the new module.
6910
6911         fmod: Use a .m4 file.
6912         * m4/fmod.m4: New file.
6913         * modules/fmod (Files): Add it.
6914         (configure.ac): Just invoke gl_FUNC_FMOD.
6915
6916 2011-10-05  Bruno Haible  <bruno@clisp.org>
6917
6918         Tests for module 'fabsf'.
6919         * modules/fabsf-tests: New file.
6920         * tests/test-fabsf.c: New file.
6921
6922         New module 'fabsf'.
6923         * lib/math.in.h (fabsf): New declaration.
6924         * lib/fabsf.c: New file.
6925         * m4/fabsf.m4: New file.
6926         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
6927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
6928         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
6929         * modules/fabsf: New file.
6930         * tests/test-math-c++.cc: Check the declaration of fabsf.
6931         * doc/posix-functions/fabsf.texi: Mention the new module.
6932
6933         fabs: Use a .m4 file.
6934         * m4/fabs.m4: New file.
6935         * modules/fabs (Files): Add it.
6936         (configure.ac): Just invoke gl_FUNC_FABS.
6937
6938 2011-10-05  Jim Meyering  <meyering@redhat.com>
6939
6940         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
6941         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
6942         ls -lL regression introduced in coreutils-8.12, it does so at the
6943         cost of an additional stat call in the common case.  Besides, now
6944         that the kernel change that prompted commit 95f7c57f has been reverted
6945         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
6946         we have no use for commit 95f7c57f, "file-has-acl: use
6947         acl_extended_file_nofollow if available".
6948
6949 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
6950
6951         file-has-acl: revert unintended change in behavior of ls -L
6952         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
6953         derived from...
6954         (file_has_acl): ...code here.  Call it.
6955         This problem was introduced with 2011-07-22 commit 95f7c57f,
6956         "file-has-acl: use acl_extended_file_nofollow if available".
6957         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
6958
6959 2011-10-03  Bruno Haible  <bruno@clisp.org>
6960
6961         poll: Avoid link errors on MSVC.
6962         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
6963         * modules/poll (Depends-on): Add sockets.
6964         (Link): New section.
6965         * NEWS: Mention the change.
6966         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
6967         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
6968         $(LIB_POLL) instead of $(LIBSOCKET).
6969
6970 2011-10-03  Bruno Haible  <bruno@clisp.org>
6971
6972         sys_select tests: Fix link error on MSVC 9.
6973         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
6974         with $(LIB_SELECT) instead of $(LIBSOCKET).
6975
6976 2011-10-03  Bruno Haible  <bruno@clisp.org>
6977
6978         sys_select: Fix compilation error on mingw.
6979         * lib/sys_select.in.h: On native Windows, include <io.h>.
6980
6981 2011-10-03  Bruno Haible  <bruno@clisp.org>
6982
6983         wmemset: Support for MSVC.
6984         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
6985         whether wmemset() exists.
6986
6987 2011-10-03  Bruno Haible  <bruno@clisp.org>
6988
6989         wmemmove: Support for MSVC.
6990         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
6991         whether wmemmove() exists.
6992
6993 2011-10-03  Bruno Haible  <bruno@clisp.org>
6994
6995         wmemcpy: Support for MSVC.
6996         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
6997         whether wmemcpy() exists.
6998
6999 2011-10-03  Bruno Haible  <bruno@clisp.org>
7000
7001         wmemcmp: Support for MSVC.
7002         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7003         whether wmemcmp() exists.
7004
7005 2011-10-03  Bruno Haible  <bruno@clisp.org>
7006
7007         wmemchr: Support for MSVC.
7008         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7009         whether wmemchr() exists.
7010
7011 2011-10-03  Bruno Haible  <bruno@clisp.org>
7012
7013         glthread/*, strsignal: Support for MSVC.
7014         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7015         including <winsock.h> on MSVC 9.
7016         * lib/glthread/lock.h: Likewise.
7017         * lib/glthread/thread.h: Likewise.
7018         * lib/glthread/tls.h: Likewise.
7019         * lib/glthread/yield.h: Likewise.
7020         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7021         if HAVE_UNISTD_H is false.
7022         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7023
7024 2011-10-03  Bruno Haible  <bruno@clisp.org>
7025
7026         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7027         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7028         Set to 100000.
7029
7030 2011-10-03  Bruno Haible  <bruno@clisp.org>
7031
7032         acl: Fix specification.
7033         * lib/file-has-acl.c (file_has_acl): Fix specification.
7034
7035 2011-10-03  Bruno Haible  <bruno@clisp.org>
7036
7037         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7038         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7039         (compute_curr_prefix, shared_library_fullname,
7040         find_shared_library_fullname, get_shared_library_fullname, relocate):
7041         Use it together with PIC && INSTALLDIR.
7042         Reported by <jojelino@gmail.com>
7043         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7044
7045 2011-10-01  Jim Meyering  <meyering@redhat.com>
7046
7047         maint.mk: adjust a release-related rule not to require use of gzip
7048         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7049         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7050         projects that build only .tar.xz files.  Also fix an erroneous test.
7051
7052         test-linkat: don't leave behind a temporary file
7053         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7054         Otherwise, coreutils' "make distcheck" would fail with this:
7055           Only in /c/cu/tests/torture/coreutils/test/\
7056             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7057           make[2]: *** [my-distcheck] Error 1
7058
7059         float, math: add omitted file
7060         * lib/itold.c: Add file, required for yesterday's float change.
7061
7062 2011-10-01  Bruno Haible  <bruno@clisp.org>
7063
7064         isinf: Fix for OpenBSD/x86.
7065         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7066         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7067         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7068
7069 2011-10-01  Bruno Haible  <bruno@clisp.org>
7070
7071         isfinite: Fix syntax error in configure test.
7072         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7073
7074         isfinite: Fix typo.
7075         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7076         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7077
7078 2011-10-01  Bruno Haible  <bruno@clisp.org>
7079
7080         nonblocking tests: Fix test failure on Linux/IA-64.
7081         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7082         Set to 270000.
7083
7084 2011-10-01  Bruno Haible  <bruno@clisp.org>
7085
7086         mkfifoat tests: Fix a test failure on mingw.
7087         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7088         with error ENOSYS.
7089
7090 2011-09-30  Bruno Haible  <bruno@clisp.org>
7091
7092         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7093         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7094         'long double'. Set REPLACE_ITOLD.
7095         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7096         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7097         * lib/itold.c: New file.
7098         * modules/float (Files): Add lib/itold.c.
7099         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7100         (Makefile.am): Substitute REPLACE_ITOLD.
7101         * modules/math (Depends-on): Add float.
7102         (Makefile.am): Substitute REPLACE_ITOLD.
7103         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7104         * doc/posix-headers/math.texi: Likewise.
7105         * doc/posix-functions/logl.texi: Likewise.
7106
7107 2011-09-30  Bruno Haible  <bruno@clisp.org>
7108
7109         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7110         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7111         Set to 140000.
7112
7113 2011-09-30  Bruno Haible  <bruno@clisp.org>
7114
7115         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7116         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7117         invocation, say "right after AC_PROG_CC_STDC", not "right after
7118         AC_PROG_CC".
7119         Reported by Gary V. Vaughan <gary@gnu.org>.
7120
7121 2011-09-30  Bruno Haible  <bruno@clisp.org>
7122
7123         Centralize C99 requirement.
7124         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7125         * modules/stdarg (configure.ac-early): Invoke it instead of
7126         AC_PROG_CC_STDC.
7127         Reported by Gary V. Vaughan and Paul Eggert.
7128
7129 2011-09-29  Bruno Haible  <bruno@clisp.org>
7130
7131         float: Fix LDBL_MAX value on Linux/PowerPC.
7132         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7133         on Linux/PowerPC.
7134         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7135         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7136         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7137         platform.
7138         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7139
7140 2011-09-29  Bruno Haible  <bruno@clisp.org>
7141
7142         doc: Improve doc about gl_EARLY.
7143         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7144         AC_PROG_CC_STDC invocation.
7145         Reported by Gary V. Vaughan <gary@gnu.org>.
7146
7147 2011-09-28  Bruno Haible  <bruno@clisp.org>
7148
7149         fgetc, fputc, fread, fwrite tests: Fix link error.
7150         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7151         on non-MSVC platforms.
7152         * tests/test-fputc.c (main): Likewise.
7153         * tests/test-fread.c (main): Likewise.
7154         * tests/test-fwrite.c (main): Likewise.
7155         Reported by Jim Meyering.
7156
7157 2011-09-27  Bruno Haible  <bruno@clisp.org>
7158
7159         fputc, fwrite tests: Avoid test failure on MSVC.
7160         * tests/test-fgetc.c: Include msvc-inval.h.
7161         (main): Invoke gl_msvc_inval_ensure_handler.
7162         * tests/test-fputc.c: Include msvc-inval.h.
7163         (main): Invoke gl_msvc_inval_ensure_handler.
7164         * tests/test-fread.c: Include msvc-inval.h.
7165         (main): Invoke gl_msvc_inval_ensure_handler.
7166         * tests/test-fwrite.c: Include msvc-inval.h.
7167         (main): Invoke gl_msvc_inval_ensure_handler.
7168         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7169         * modules/fputc-tests (Depends-on): Likewise.
7170         * modules/fread-tests (Depends-on): Likewise.
7171         * modules/fwrite-tests (Depends-on): Likewise.
7172
7173 2011-09-27  Bruno Haible  <bruno@clisp.org>
7174
7175         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7176         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7177         (raise): Remove older, duplicated declaration.
7178         (_gl_raise_SIGPIPE): New declaration.
7179         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7180         (rpl_raise): Remove function.
7181         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7182         a gnulib-defined SIGPIPE here.
7183         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7184         'sigprocmask' has detected missing signal-blocking and the module
7185         'sigpipe' is enabled.
7186         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7187
7188 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7189
7190         base64-tests: avoid memory leak
7191         * tests/test-base64.c (main): Plug memory leak.
7192
7193         base32: new module
7194         * modules/base32: New module.
7195         * lib/base32.c: New file.
7196         * lib/base32.h: Likewise.
7197         * m4/base32.m4: Likewise.
7198         * modules/base32-tests: New test.
7199         * tests/test-base32.c: Likewise.
7200         * MODULES.html.sh (Misc): Mention it.
7201
7202 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7203
7204         gnulib: use more-standard license notice wording
7205         * gnulib-tool (func_emit_copyright_notice): When emitting a
7206         license notice into a file, use the standard wording as suggested
7207         by the current information for GNU maintainers, except say "file"
7208         rather than "program".  The new wording gives a license version
7209         number, which addresses an issue raised by Glenn Morris in
7210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7211         * m4/onceonly.m4: Use that same wording here, too.
7212
7213         dup2: minor simplification
7214         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7215         as lib/dup2.c no longer uses 'inline'.
7216
7217 2011-09-25  Bruno Haible  <bruno@clisp.org>
7218
7219         strings: Fix compilation error on MSVC.
7220         * lib/strings.in.h: Include <stddef.h> for size_t.
7221
7222 2011-09-25  Bruno Haible  <bruno@clisp.org>
7223
7224         fflush et al.: Document limitation on MSVC.
7225         * doc/posix-functions/fflush.texi: Document possible crash in handling
7226         mode other than DEFAULT_HANDLING.
7227         * doc/posix-functions/fgetc.texi: Likewise.
7228         * doc/posix-functions/fputc.texi: Likewise.
7229         * doc/posix-functions/fread.texi: Likewise.
7230         * doc/posix-functions/fwrite.texi: Likewise.
7231
7232 2011-09-25  Bruno Haible  <bruno@clisp.org>
7233
7234         msvc-inval: Allow three invalid parameter handling modes.
7235         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7236         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7237         macros.
7238         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7239         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7240         SANE_LIBRARY_HANDLING as a no-op.
7241         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7242         <stdlib.h>.
7243         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7244
7245 2011-09-25  Bruno Haible  <bruno@clisp.org>
7246
7247         msvc-inval: Make handler multithread-safe.
7248         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7249         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7250         declarations.
7251         (gl_msvc_inval_current): New declaration.
7252         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7253         Operate on the structure returned by gl_msvc_inval_current().
7254         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7255         Remove varaiables.
7256         (tls_index, tls_initialized): New variables.
7257         (not_per_thread): New variable.
7258         (gl_msvc_inval_current): New function.
7259         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7260         returned by gl_msvc_inval_current().
7261
7262 2011-09-25  Bruno Haible  <bruno@clisp.org>
7263
7264         msvc-inval: Install handler globally.
7265         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7266         !_MSC_VER.
7267         (gl_msvc_invalid_parameter_handler): Remove declaration.
7268         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7269         declarations.
7270         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7271         Install the handler globally, don't uninstall it.
7272         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7273         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7274         currently valid, call RaiseException instead.
7275         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7276         for !_MSC_VER.
7277
7278 2011-09-25  Bruno Haible  <bruno@clisp.org>
7279
7280         strerror_r-posix: Fix for MSVC 9.
7281         * lib/strerror_r.c (local_snprintf): New function.
7282         (snprintf): Define to local_snprintf, not to _snprintf.
7283
7284 2011-09-25  Bruno Haible  <bruno@clisp.org>
7285
7286         ftruncate: Support for MSVC 9.
7287         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7288         (chsize_nothrow): New function.
7289         (chsize): Redefine as a macro.
7290         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7291         * modules/ftruncate (Depends-on): Add msvc-inval.
7292
7293 2011-09-25  Bruno Haible  <bruno@clisp.org>
7294
7295         New module 'fstat'.
7296         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7297         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7298         * lib/fchdir.c (rpl_fstat): Remove function.
7299         * m4/fstat.m4: New file.
7300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7301         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7302         declared.
7303         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7304         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7305         * modules/fstat: New file.
7306         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7307         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7308         is set.
7309         * doc/posix-functions/fstat.texi: Mention the new module and the
7310         problem on MSVC.
7311         * NEWS: Mention the change.
7312         * modules/acl (Depends-on): Add fstat.
7313         * modules/chdir-safer (Depends-on): Likewise.
7314         * modules/chown (Depends-on): Likewise.
7315         * modules/copy-file (Depends-on): Likewise.
7316         * modules/fchdir (Depends-on): Likewise.
7317         * modules/fdopendir (Depends-on): Likewise.
7318         * modules/fopen (Depends-on): Likewise.
7319         * modules/fts (Depends-on): Likewise.
7320         * modules/getcwd (Depends-on): Likewise.
7321         * modules/isapipe (Depends-on): Likewise.
7322         * modules/linkat (Depends-on): Likewise.
7323         * modules/lseek (Depends-on): Likewise.
7324         * modules/mkdir-p (Depends-on): Likewise.
7325         * modules/open (Depends-on): Likewise.
7326         * modules/openat (Depends-on): Likewise.
7327         * modules/read-file (Depends-on): Likewise.
7328         * modules/renameat (Depends-on): Likewise.
7329         * modules/utimens (Depends-on): Likewise.
7330
7331 2011-09-25  Bruno Haible  <bruno@clisp.org>
7332
7333         linkat: Fix compilation on MSVC 9.
7334         * lib/linkat.c: Don't include <stdint.h>.
7335
7336 2011-09-25  Bruno Haible  <bruno@clisp.org>
7337
7338         fclose: Support for MSVC 9.
7339         * lib/fclose.c: Include msvc-inval.h.
7340         (fclose_nothrow): New function.
7341         (rpl_fclose): Use it.
7342         * modules/fclose (Depends-on): Add msvc-inval.
7343         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7344
7345 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7346
7347         dup2: minor simplifications
7348         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7349         that it's a performance win.
7350         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7351         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7352
7353 2011-09-24  Jim Meyering  <meyering@redhat.com>
7354
7355         test-futimens: avoid a warning from gcc -Wshadow
7356         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7357         to avoid a shadowing warning.
7358
7359 2011-09-24  Bruno Haible  <bruno@clisp.org>
7360
7361         fdopen: Support for MSVC 9.
7362         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7363         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7364         * lib/fdopen.c: Include msvc-inval.h.
7365         (fdopen_nothrow): New function.
7366         (rpl_fdopen): Use it.
7367         * modules/fdopen (Depends-on): Add msvc-inval.
7368         * modules/fclose-tests (Depends-on): Add fdopen.
7369         * modules/fflush-tests (Depends-on): Likewise.
7370         * modules/fgetc-tests (Depends-on): Likewise.
7371         * modules/fputc-tests (Depends-on): Likewise.
7372         * modules/fread-tests (Depends-on): Likewise.
7373         * modules/freopen-tests (Depends-on): Likewise.
7374         * modules/fseeko-tests (Depends-on): Likewise.
7375         * modules/ftello-tests (Depends-on): Likewise.
7376         * modules/fwrite-tests  (Depends-on): Likewise.
7377         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7378
7379 2011-09-24  Bruno Haible  <bruno@clisp.org>
7380
7381         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7382         * modules/fgetc-tests (Depends-on): Add unistd.
7383         * modules/fputc-tests (Depends-on): Likewise.
7384         * modules/fread-tests (Depends-on): Likewise.
7385         * modules/fwrite-tests (Depends-on): Likewise.
7386
7387 2011-09-24  Bruno Haible  <bruno@clisp.org>
7388
7389         dup: Simplify autoconf test.
7390         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7391         on gl_MSVC_INVAL's result.
7392
7393 2011-09-24  Bruno Haible  <bruno@clisp.org>
7394
7395         Tests for function fwrite().
7396         * modules/fwrite-tests: New file.
7397         * tests/test-fwrite.c: New file.
7398         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7399
7400         Tests for function fread().
7401         * modules/fread-tests: New file.
7402         * tests/test-fread.c: New file.
7403         * modules/stdio-tests (Depends-on): Add fread-tests.
7404
7405         Activate fputc tests.
7406         * modules/stdio-tests (Depends-on): Add fputc-tests.
7407
7408         Enhance fgetc, fputc tests.
7409         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7410         * tests/test-fputc.c (main): Likewise.
7411
7412 2011-09-24  Bruno Haible  <bruno@clisp.org>
7413
7414         write: Support for MSVC 9.
7415         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7416         is not 1.
7417         * lib/write.c (write_nothrow): New function.
7418         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7419         not 1. Use write_nothrow.
7420         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7421         invalid parameter handler.
7422         (gl_PREREQ_WRITE): New macro.
7423         * modules/write (Depends-on): Add msvc-inval.
7424         (configure.ac): Invoke gl_PREREQ_WRITE.
7425         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7426
7427 2011-09-24  Bruno Haible  <bruno@clisp.org>
7428
7429         read: Fix last commit.
7430         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7431
7432 2011-09-24  Bruno Haible  <bruno@clisp.org>
7433
7434         dup2: Fix last commit.
7435         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7436         (rpl_dup2): Disable fcntl workaround on native Windows.
7437
7438         sigprocmask: Make code safer.
7439         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7440         section that changes macro definitions for this compilation unit.
7441
7442 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7443
7444         dup2: clarify by coalescing Windows-specific material
7445         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7446         "msvc-nothrow.h"' to the Windows-specific section, so that the
7447         Emacs source need not contain these include files.
7448         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7449         Windows-specific fixes into this function rather than just the
7450         nothrow fix, as this shortens and clarifies the code.  Always
7451         define as a function, as that's a bit cleaner than having it be
7452         sometimes a function and sometimes a macro.
7453         (rpl_dup2): Move the Windows-specific stuff out of here and into
7454         ms_windows_dup2.  Don't protect the Haiku-related fix with
7455         "#if !defined __linux__", as the same code also works around
7456         a Linux kernel bug, and it doesn't add any system calls on any
7457         platform.  Add comment about FreeBSD 6.1.
7458
7459         sigprocmask: move #include directive
7460         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7461         Windows-specific section, so that the Emacs source need not
7462         contain msvc-inval.h.
7463
7464 2011-09-23  Bruno Haible  <bruno@clisp.org>
7465
7466         read: Support for MSVC 9.
7467         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7468         is not 1.
7469         * lib/read.c (read_nothrow): New function.
7470         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7471         read_nothrow.
7472         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7473         invalid parameter handler.
7474         (gl_PREREQ_READ): New macro.
7475         * modules/read (Depends-on): Add msvc-inval.
7476         (configure.ac): Invoke gl_PREREQ_READ.
7477         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7478
7479 2011-09-23  Bruno Haible  <bruno@clisp.org>
7480
7481         close: Support for MSVC 9.
7482         * lib/close.c: Include <errno.h>, msvc-inval.h.
7483         (close_nothrow): New function.
7484         (rpl_close): Use it.
7485         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7486         invalid parameter handler.
7487         * modules/close (Depends-on): Add msvc-inval.
7488         * modules/dup2-tests (Depends-on): Add close.
7489         * modules/dup3-tests (Depends-on): Likewise.
7490         * modules/fcntl-tests (Depends-on): Likewise.
7491         * modules/spawn-pipe-tests (Depends-on): Likewise.
7492         * modules/unistd-safer-tests (Depends-on): Likewise.
7493         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7494
7495 2011-09-23  Bruno Haible  <bruno@clisp.org>
7496
7497         New module 'dup'.
7498         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7499         Allow replacement.
7500         * lib/dup.c: New file.
7501         * lib/fchdir.c (rpl_dup): Remove function.
7502         * m4/dup.m4: New file.
7503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7504         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7505         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7506         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7507         * modules/dup: New file.
7508         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7509         'dup' module is in use.
7510         * modules/fdopendir (Depends-on): Add dup.
7511         * modules/fdutimensat-tests (Depends-on): Likewise.
7512         * modules/fts (Depends-on): Likewise.
7513         * modules/futimens-tests (Depends-on): Likewise.
7514         * modules/posix_spawnp-tests (Depends-on): Likewise.
7515         * modules/unistd-safer-tests (Depends-on): Likewise.
7516         * modules/utimens-tests (Depends-on): Likewise.
7517         * doc/posix-functions/dup.texi: Mention the new module and the problem
7518         on MSVC.
7519
7520 2011-09-23  Bruno Haible  <bruno@clisp.org>
7521
7522         getdtablesize: Support for MSVC 9.
7523         * lib/getdtablesize.c: Include msvc-inval.h.
7524         (_setmaxstdio_nothrow): New function.
7525         (_setmaxstdio): Redefine it.
7526         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7527         * modules/getdtablesize (Depends-on): Add msvc-inval.
7528         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7529
7530 2011-09-23  Bruno Haible  <bruno@clisp.org>
7531
7532         signal-h: Rename from signal.
7533         * modules/signal-h: Renamed from modules/signal.
7534         * modules/pthread_sigmask (Depends-on): Update.
7535         * modules/raise (Depends-on): Likewise.
7536         * modules/sigaction (Depends-on): Likewise.
7537         * modules/sigpipe (Depends-on): Likewise.
7538         * modules/sigprocmask (Depends-on): Likewise.
7539         * modules/sys_select (Depends-on): Likewise.
7540         * modules/signal-h-tests: Renamed from modules/signal-tests.
7541         (Files, Depends-on, Makefile.am): Update.
7542         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7543         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7544         (Files, Makefile.am): Update.
7545         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7546         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7547         * modules/signal: New placeholder file.
7548         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7549         * doc/posix-headers/signal.texi: Update.
7550         * NEWS: Mention the change.
7551
7552 2011-09-23  Bruno Haible  <bruno@clisp.org>
7553
7554         sigprocmask: Avoid crashes through signal() on MSVC 9.
7555         * lib/sigprocmask.c: Include msvc-inval.h.
7556         (signal_nothrow): New function.
7557         (signal): Redefine it.
7558         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7559         * modules/sigprocmask (Depends-on): Add msvc-inval.
7560         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7561
7562 2011-09-23  Bruno Haible  <bruno@clisp.org>
7563
7564         Tests for module 'raise'.
7565         * modules/raise-tests: New file.
7566         * tests/test-raise.c: New file.
7567
7568         raise: Support for MSVC.
7569         * lib/signal.in.h (raise): New declaration.
7570         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7571         for native Windows platforms.
7572         * m4/raise.m4: New file.
7573         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7574         HAVE_RAISE, REPLACE_RAISE.
7575         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7576         REPLACE_RAISE.
7577         * modules/raise (Status, Notice): Remove fields.
7578         (Files): Add m4/raise.m4.
7579         (Depends-on): Add signal, msvc-inval.
7580         (configure.ac): Use the common idioms.
7581         (Maintainer): Add me.
7582         * tests/test-signal-c++.cc: Check the signature of raise.
7583         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7584
7585 2011-09-23  Bruno Haible  <bruno@clisp.org>
7586
7587         pipe2: Fix compilation on pre-C99 compilers.
7588         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7589
7590 2011-09-23  Bruno Haible  <bruno@clisp.org>
7591
7592         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7593         * lib/msvc-nothrow.h: New file.
7594         * lib/msvc-nothrow.c: New file.
7595         * m4/msvc-nothrow.m4: New file.
7596         * modules/msvc-nothrow: New file.
7597         * lib/dup2.c: Include msvc-nothrow.h.
7598         (rpl_dup2): No need to protect _get_osfhandle call here.
7599         * lib/accept4.c: Include msvc-nothrow.h.
7600         * lib/error.c: Likewise.
7601         * lib/fcntl.c: Likewise.
7602         * lib/lseek.c: Likewise.
7603         * lib/nonblocking.c: Likewise.
7604         * lib/poll.c: Likewise.
7605         * lib/read.c: Likewise.
7606         * lib/select.c: Likewise.
7607         * lib/sockets.h: Likewise.
7608         * lib/sockets.c: Likewise.
7609         * lib/stdio-read.c: Likewise.
7610         * lib/stdio-write.c: Likewise.
7611         * lib/write.c: Likewise.
7612         * lib/w32sock.h: Likewise.
7613         * lib/w32spawn.h: Likewise.
7614         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7615         * lib/fsync.c: Likewise.
7616         * lib/isapipe.c: Likewise.
7617         * modules/dup2 (Depends-on): Add msvc-nothrow.
7618         * modules/accept4 (Depends-on): Likewise.
7619         * modules/error (Depends-on): Likewise.
7620         * modules/fcntl (Depends-on): Likewise.
7621         * modules/lseek (Depends-on): Likewise.
7622         * modules/nonblocking (Depends-on): Likewise.
7623         * modules/poll (Depends-on): Likewise.
7624         * modules/read (Depends-on): Likewise.
7625         * modules/select (Depends-on): Likewise.
7626         * modules/sockets (Depends-on): Likewise.
7627         * modules/sigpipe (Depends-on): Likewise.
7628         * modules/write (Depends-on): Likewise.
7629         * modules/accept (Depends-on): Likewise.
7630         * modules/bind (Depends-on): Likewise.
7631         * modules/connect (Depends-on): Likewise.
7632         * modules/gethostname (Depends-on): Likewise.
7633         * modules/getpeername (Depends-on): Likewise.
7634         * modules/getsockname (Depends-on): Likewise.
7635         * modules/getsockopt (Depends-on): Likewise.
7636         * modules/ioctl (Depends-on): Likewise.
7637         * modules/listen (Depends-on): Likewise.
7638         * modules/recv (Depends-on): Likewise.
7639         * modules/recvfrom (Depends-on): Likewise.
7640         * modules/send (Depends-on): Likewise.
7641         * modules/sendto (Depends-on): Likewise.
7642         * modules/setsockopt (Depends-on): Likewise.
7643         * modules/shutdown (Depends-on): Likewise.
7644         * modules/socket (Depends-on): Likewise.
7645         * modules/execute (Depends-on): Likewise.
7646         * modules/spawn-pipe (Depends-on): Likewise.
7647         * modules/flock (Depends-on): Likewise.
7648         * modules/fsync (Depends-on): Likewise.
7649         * modules/isapipe (Depends-on): Likewise.
7650         * tests/test-cloexec.c: Include msvc-nothrow.h.
7651         * tests/test-dup-safer.c: Likewise.
7652         * tests/test-dup2.c: Likewise.
7653         * tests/test-dup3.c: Likewise.
7654         * tests/test-fcntl.c: Likewise.
7655         * tests/test-pipe.c: Likewise.
7656         * tests/test-pipe2.c: Likewise.
7657         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7658         * modules/unistd-safer-tests (Depends-on): Likewise.
7659         * modules/dup2-tests (Depends-on): Likewise.
7660         * modules/dup3-tests (Depends-on): Likewise.
7661         * modules/fcntl-tests (Depends-on): Likewise.
7662         * modules/pipe-posix-tests (Depends-on): Likewise.
7663         * modules/pipe2-tests (Depends-on): Likewise.
7664
7665 2011-09-23  Bruno Haible  <bruno@clisp.org>
7666
7667         dup2: Make code more maintainable.
7668         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7669         (rpl_dup2): Use it.
7670         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7671         * modules/dup2 (configure.ac): Invoke it.
7672         Reported by Paul Eggert.
7673
7674 2011-09-23  Bruno Haible  <bruno@clisp.org>
7675
7676         msvc-inval: Fix compilation error.
7677         * lib/msvc-inval.h: Include <excpt.h>.
7678
7679 2011-09-23  Bruno Haible  <bruno@clisp.org>
7680
7681         mkdir: Tweak for MSVC 9.
7682         * lib/sys_stat.in.h: Update comments.
7683         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7684
7685         Tests for module 'chdir'.
7686         * modules/chdir-tests: New file.
7687         * tests/test-chdir.c: New file.
7688
7689         New module 'chdir'.
7690         * modules/chdir: New file.
7691         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7692         (chdir): New declaration.
7693         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7694         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7695         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7696         * tests/test-unistd-c++.cc: Check signature of chdir.
7697         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7698         * modules/chdir-long (Depends-on): Add chdir.
7699         * modules/fchdir (Depends-on): Likewise.
7700         * modules/rename (Depends-on): Likewise.
7701         * modules/savewd (Depends-on): Likewise.
7702
7703         rmdir: Support for mingw, MSVC 9.
7704         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7705         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7706
7707         getcwd: Tweak for MSVC 9.
7708         * lib/unistd.in.h: Update comments.
7709         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7710
7711 2011-09-22  Bruno Haible  <bruno@clisp.org>
7712
7713         strerror_r-posix: Avoid a link error on MSVC.
7714         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7715         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7716
7717 2011-09-22  Bruno Haible  <bruno@clisp.org>
7718
7719         select: Avoid link errors on MSVC.
7720         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7721         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7722         * modules/pselect (Link): Likewise.
7723         * NEWS: Mention the change.
7724         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7725         test-select-stdin against $(LIB_SELECT).
7726         * modules/pselect-tests (Makefile.am): Link test-pselect against
7727         $(LIB_SELECT).
7728
7729 2011-09-22  Bruno Haible  <bruno@clisp.org>
7730
7731         select: Avoid compilation error on MSVC.
7732         * lib/select.c: Don't include <stdbool.h>.
7733
7734 2011-09-21  Bruno Haible  <bruno@clisp.org>
7735
7736         Consolidate all uses of PATH_MAX in *.m4 files.
7737         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7738         macros.
7739         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7740         and gl_PATHMAX_SNIPPET.
7741         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7742         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7743         * modules/chdir-long (Files): Add m4/pathmax.m4.
7744         * modules/getcwd (Files): Likewise.
7745
7746 2011-09-21  Bruno Haible  <bruno@clisp.org>
7747
7748         ftruncate: Un-deprecate, concentrate on Win32 support.
7749         * modules/ftruncate (Status, Notice): Remove sections.
7750         (Depends-on): Add largefile.
7751         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7752         non-mingw platforms.
7753         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7754         include <io.h>.
7755         * modules/perror-tests (Depends-on): Add ftruncate.
7756         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7757         'ftruncate' module.
7758
7759 2011-09-21  Bruno Haible  <bruno@clisp.org>
7760
7761         Add dependencies to new dirent related modules.
7762         * modules/opendir (Depends-on): Add closedir.
7763         * modules/getcwd (Depends-on): Add opendir, closedir.
7764         * modules/dirent-safer-tests (Depends-on): Likewise.
7765         * modules/fdopendir-tests (Depends-on): Likewise.
7766         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7767         * modules/renameat-tests (Depends-on): Likewise.
7768
7769 2011-09-21  Bruno Haible  <bruno@clisp.org>
7770
7771         opendir: Avoid compilation error on mingw.
7772         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7773         * modules/opendir (Depends-on): Add unistd.
7774
7775 2011-09-21  Bruno Haible  <bruno@clisp.org>
7776
7777         ftruncate tests: Avoid a test failure on mingw.
7778         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7779
7780 2011-09-21  Bruno Haible  <bruno@clisp.org>
7781
7782         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7783         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7784         native Windows.
7785
7786 2011-09-21  Bruno Haible  <bruno@clisp.org>
7787
7788         New module 'fdopen'.
7789         * lib/stdio.in.h (fdopen): New declaration.
7790         * lib/fdopen.c: New file.
7791         * m4/fdopen.m4: New file.
7792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7793         REPLACE_FDOPEN.
7794         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7795         REPLACE_FDOPEN.
7796         * modules/fdopen: New file.
7797         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7798         * tests/test-stdio-c++.cc: Check signature of fdopen.
7799         * doc/posix-functions/fdopen.texi: Mention the new module.
7800
7801 2011-09-21  Bruno Haible  <bruno@clisp.org>
7802
7803         unlockpt tests: Avoid test failure on NetBSD 5.1.
7804         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7805         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7806
7807 2011-09-21  Bruno Haible  <bruno@clisp.org>
7808
7809         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7810         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7811         * tests/test-getlogin_r.c (main): Likewise.
7812
7813 2011-09-20  Bruno Haible  <bruno@clisp.org>
7814
7815         time tests: Don't require pid_t.
7816         * doc/posix-headers/time.texi: Revert last change.
7817         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7818         * tests/test-time.c: Comment out the check for pid_t.
7819
7820 2011-09-20  Bruno Haible  <bruno@clisp.org>
7821
7822         fsync tests: Avoid a test failure on mingw.
7823         * tests/test-fsync.c (main): Allow a failure with EIO.
7824
7825 2011-09-20  Bruno Haible  <bruno@clisp.org>
7826
7827         euidaccess: Update comments.
7828         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7829
7830 2011-09-20  Bruno Haible  <bruno@clisp.org>
7831
7832         Ensure EBADF returns for socket functions on mingw.
7833         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7834         descriptor is invalid.
7835         * lib/bind.c (rpl_bind): Likewise.
7836         * lib/connect.c (rpl_connect): Likewise.
7837         * lib/getpeername.c (rpl_getpeername): Likewise.
7838         * lib/getsockname.c (rpl_getsockname): Likewise.
7839         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7840         * lib/listen.c (rpl_listen): Likewise.
7841         * lib/recv.c (rpl_recv): Likewise.
7842         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7843         * lib/send.c (rpl_send): Likewise.
7844         * lib/sendto.c (rpl_sendto): Likewise.
7845         * lib/setsockopt.c (rpl_setsockopt): Likewise.
7846         * lib/shutdown.c (rpl_shutdown): Likewise.
7847
7848 2011-09-20  Bruno Haible  <bruno@clisp.org>
7849
7850         select tests: EBADF tests.
7851         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
7852         test_bad_fd): New functions.
7853         (test_function): Invoke also test_bad_fd.
7854
7855 2011-09-20  Bruno Haible  <bruno@clisp.org>
7856
7857         Tests for module 'posix_spawn_file_actions_addopen.
7858         * modules/posix_spawn_file_actions_addopen-tests: New file.
7859         * tests/test-posix_spawn_file_actions_addopen.c: New file.
7860
7861         Tests for module 'posix_spawn_file_actions_adddup2'.
7862         * modules/posix_spawn_file_actions_adddup2-tests: New file.
7863         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
7864
7865         Tests for module 'posix_spawn_file_actions_addclose'.
7866         * modules/posix_spawn_file_actions_addclose-tests: New file.
7867         * tests/test-posix_spawn_file_actions_addclose.c: New file.
7868
7869 2011-09-20  Bruno Haible  <bruno@clisp.org>
7870
7871         Tests for module 'unlockpt'.
7872         * modules/unlockpt-tests: New file.
7873         * tests/test-unlockpt.c: New file.
7874         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
7875
7876         Tests for module 'grantpt'.
7877         * modules/grantpt-tests: New file.
7878         * tests/test-grantpt.c: New file.
7879         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
7880
7881 2011-09-20  Bruno Haible  <bruno@clisp.org>
7882
7883         freopen tests: EBADF tests.
7884         * tests/test-freopen.c: Include errno.h, unistd.h.
7885         (main): Add tests for EBADF, commented out for the moment.
7886
7887         fclose tests: EBADF tests.
7888         * tests/test-fclose.c (main): Add tests for EBADF.
7889
7890         fflush tests: EBADF tests.
7891         * tests/test-fflush.c: Include errno.h, macros.h.
7892         (main): Add tests for EBADF.
7893
7894         ftello tests: EBADF tests.
7895         * tests/test-ftello4.sh: New file.
7896         * tests/test-ftello4.c: New file.
7897         * modules/ftello-tests (Files): Add them.
7898         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
7899
7900         fseeko tests: EBADF tests.
7901         * tests/test-fseeko4.sh: New file.
7902         * tests/test-fseeko4.c: New file.
7903         * modules/fseeko-tests (Files): Add them.
7904         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
7905
7906         Tests for function fputc().
7907         * modules/fputc-tests: New file.
7908         * tests/test-fputc.c: New file.
7909         * modules/stdio-tests (Depends-on): Add fputc-tests.
7910
7911         Tests for function fgetc().
7912         * modules/fgetc-tests: New file.
7913         * tests/test-fgetc.c: New file.
7914         * modules/stdio-tests (Depends-on): Add fgetc-tests.
7915
7916         Tests for function fdopen().
7917         * modules/fdopen-tests: New file.
7918         * tests/test-fdopen.c: New file.
7919         * modules/stdio-tests (Depends-on): Add fdopen-tests.
7920
7921         Tests for module 'vdprintf'.
7922         * modules/vdprintf-tests: New file.
7923         * tests/test-vdprintf.c: New file.
7924
7925         Tests for module 'dprintf'.
7926         * modules/dprintf-tests: New file.
7927         * tests/test-dprintf.c: New file.
7928
7929 2011-09-20  Bruno Haible  <bruno@clisp.org>
7930
7931         Tests for module 'ioctl'.
7932         * modules/ioctl-tests: New file.
7933         * tests/test-ioctl.c: New file.
7934
7935 2011-09-20  Bruno Haible  <bruno@clisp.org>
7936
7937         fcntl tests: EBADF tests.
7938         * tests/test-fcntl.c (main): Add more tests for EBADF.
7939
7940 2011-09-20  Bruno Haible  <bruno@clisp.org>
7941
7942         utimensat tests: EBADF tests.
7943         * tests/test-utimensat.c (main): Add tests for EBADF.
7944
7945         renameat tests: EBADF tests.
7946         * tests/test-renameat.c (main): Add tests for EBADF.
7947
7948         mkfifoat tests: EBADF tests.
7949         * tests/test-mkfifoat.c (main): Add tests for EBADF.
7950
7951         readlinkat tests: EBADF tests.
7952         * tests/test-readlinkat.c (main): Add tests for EBADF.
7953
7954         symlinkat tests: EBADF tests.
7955         * tests/test-symlinkat.c (main): Add tests for EBADF.
7956
7957         linkat tests: EBADF tests.
7958         * tests/test-linkat.c (main): Add tests for EBADF.
7959
7960         Tests for module 'faccessat'.
7961         * modules/faccessat-tests: New file.
7962         * tests/test-faccessat.c: New file.
7963
7964         fdopendir tests: EBADF tests.
7965         * tests/test-fdopendir.c (main): Add more tests for EBADF.
7966
7967         openat tests: EBADF tests.
7968         * tests/test-fchownat.c (main): Add tests for EBADF.
7969         * tests/test-fstatat.c (main): Likewise.
7970         * tests/test-mkdirat.c (main): Likewise.
7971         * tests/test-openat.c (main): Likewise.
7972         * tests/test-unlinkat.c (main): Likewise.
7973         * tests/test-fchmodat.c: New file.
7974         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
7975         (Makefile.am): Also run 'test-fchmodat'.
7976
7977 2011-09-20  Bruno Haible  <bruno@clisp.org>
7978
7979         utimens, futimens, fdutimensat tests: EBADF tests.
7980         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
7981
7982         Tests for function fstat().
7983         * modules/fstat-tests: New file.
7984         * tests/test-fstat.c: New file.
7985         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
7986
7987 2011-09-20  Bruno Haible  <bruno@clisp.org>
7988
7989         test-ttyname_r tests: EBADF tests.
7990         * tests/test-ttyname_r.c (main): Add tests for EBADF.
7991
7992         Tests for module 'isatty'.
7993         * modules/isatty-tests: New file.
7994         * tests/test-isatty.c: New file.
7995
7996         Tests for module 'write'.
7997         * modules/write-tests: New file.
7998         * tests/test-write.c: New file.
7999
8000         Tests for module 'read'.
8001         * modules/read-tests: New file.
8002         * tests/test-read.c: New file.
8003
8004         pwrite tests: EBADF tests.
8005         * tests/test-pwrite.c (main): Add tests for EBADF.
8006
8007         pread tests: EBADF tests.
8008         * tests/test-pread.c (main): Add tests for EBADF.
8009
8010         lseek tests: EBADF tests.
8011         * tests/test-lseek.c (main): Add more tests for EBADF.
8012
8013         Tests for module 'ftruncate'.
8014         * modules/ftruncate-tests: New file.
8015         * tests/test-ftruncate.sh: New file.
8016         * tests/test-ftruncate.c: New file.
8017
8018         fsync tests: EBADF tests.
8019         * tests/test-fsync.c (main): Add more tests for EBADF.
8020
8021         fdatasync tests: EBADF tests.
8022         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8023
8024         Tests for module 'fchown'.
8025         * modules/fchown-tests: New file.
8026         * tests/test-fchown.c: New file.
8027
8028         Tests for module 'fchmod'.
8029         * modules/fchmod-tests: New file.
8030         * tests/test-fchmod.c: New file.
8031
8032         fchdir tests: EBADF tests.
8033         * tests/test-fchdir.c (main): Add more tests for EBADF.
8034
8035         dup2 tests: EBADF tests.
8036         * tests/test-dup2.c (main): Add more tests for EBADF.
8037
8038         Tests for module 'dup'.
8039         * modules/dup-tests: New file.
8040         * tests/test-dup.c: New file.
8041
8042         Tests for module 'close'.
8043         * modules/close-tests: New file.
8044         * tests/test-close.c: New file.
8045
8046 2011-09-20  Bruno Haible  <bruno@clisp.org>
8047
8048         Tests for module 'shutdown'.
8049         * modules/shutdown-tests: New file.
8050         * tests/test-shutdown.c: New file.
8051
8052         Tests for module 'setsockopt'.
8053         * modules/setsockopt-tests: New file.
8054         * tests/test-setsockopt.c: New file.
8055
8056         Tests for module 'sendto'.
8057         * modules/sendto-tests: New file.
8058         * tests/test-sendto.c: New file.
8059
8060         Tests for module 'send'.
8061         * modules/send-tests: New file.
8062         * tests/test-send.c: New file.
8063
8064         Tests for module 'recvfrom'.
8065         * modules/recvfrom-tests: New file.
8066         * tests/test-recvfrom.c: New file.
8067
8068         Tests for module 'recv'.
8069         * modules/recv-tests: New file.
8070         * tests/test-recv.c: New file.
8071
8072         Tests for module 'listen'.
8073         * modules/listen-tests: New file.
8074         * tests/test-listen.c: New file.
8075
8076         Tests for module 'getsockopt'.
8077         * modules/getsockopt-tests: New file.
8078         * tests/test-getsockopt.c: New file.
8079
8080         Tests for module 'getsockname'.
8081         * modules/getsockname-tests: New file.
8082         * tests/test-getsockname.c: New file.
8083
8084         Tests for module 'getpeername'.
8085         * modules/getpeername-tests: New file.
8086         * tests/test-getpeername.c: New file.
8087
8088         Tests for module 'connect'.
8089         * modules/connect-tests: New file.
8090         * tests/test-connect.c: New file.
8091
8092         Tests for module 'bind'.
8093         * modules/bind-tests: New file.
8094         * tests/test-bind.c: New file.
8095
8096         accept4 tests: Fix for native Windows.
8097         * tests/test-accept4.c: Include sockets.h.
8098         (main): Invoke gl_sockets_startup.
8099         * modules/accept4-tests (Depends-on): Add sockets.
8100
8101         accept tests: Fix for native Windows.
8102         * tests/test-accept.c: Include sockets.h.
8103         (main): Invoke gl_sockets_startup.
8104         * modules/accept-tests (Depends-on): Add sockets.
8105
8106 2011-09-19  Bruno Haible  <bruno@clisp.org>
8107
8108         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8109         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8110         do...while(0).
8111         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8112         Suggested by Paul Eggert.
8113
8114 2011-09-19  Bruno Haible  <bruno@clisp.org>
8115
8116         sched: Ensure pid_t is defined.
8117         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8118         not define pid_t.
8119         * lib/sched.in.h: Include <sys/types.h>.
8120         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8122
8123 2011-09-19  Bruno Haible  <bruno@clisp.org>
8124
8125         msvc-inval: Ensure the entire expansion is a single statement.
8126         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8127         of braces.
8128
8129 2011-09-19  Jim Meyering  <meyering@redhat.com>
8130
8131         tests: use printf, not echo in init.sh's warn_ function
8132         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8133         misbehave when given strings containing a backslash or starting
8134         with e.g., -n.  James Youngman suggested setting IFS.
8135
8136 2011-09-19  Eric Blake  <eblake@redhat.com>
8137
8138         futimens: enhance test
8139         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8140         closed non-negative fd.
8141
8142         date: accept 'hence' as opposite of 'ago'
8143         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8144         * tests/test-parse-datetime.c (main): Enhance test.
8145         Suggested by Jesse Wilson.
8146
8147 2011-09-19  Jim Meyering  <meyering@redhat.com>
8148
8149         getcwd: don't fail in a deep directory on a system without openat
8150         Before this change, getcwd would fail when called from a directory
8151         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8152         the non-openat implementation used "..", "../..", "../../..", etc.
8153         to access ancestor directories.  With too many, that string would
8154         be longer than PATH_MAX.
8155         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8156         using gnulib's openat replacement.
8157         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8158         we're using the replacement function.
8159
8160 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8161
8162         maint.mk: avoid warnings from perl about missing files
8163         * top/maint.mk (def_sym_regex): Ignore files listed in
8164         $(gl_other_headers_) that do not exist, say because a project
8165         does not use a corresponding module.
8166
8167 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8168
8169         stat: use pathmax.h only if needed
8170         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8171         This is better for Emacs, which does not have a mingw port and
8172         therefore can avoid the pathmax module.
8173
8174         utimens: remove dependency on dup2
8175         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8176         to work around the Linux kernel bug.
8177         * modules/utimens (Depends-on): Remove dup2.
8178
8179 2011-09-18  Bruno Haible  <bruno@clisp.org>
8180
8181         inet_ntop, inet_pton: Look for it also in libresolv.
8182         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8183         libnsl, search for it in libresolv.
8184         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8185         Needed on Solaris 7.
8186
8187 2011-09-18  Bruno Haible  <bruno@clisp.org>
8188
8189         accept, accept4 tests: Avoid link error on Solaris.
8190         * modules/accept-tests (Makefile.am): Link test-accept against
8191         $(LIBSOCKET).
8192         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8193         $(LIBSOCKET).
8194
8195         accept4: Avoid link error on Solaris.
8196         * modules/accept4 (Link): New section.
8197
8198         socket functions: Avoid link errors on Solaris.
8199         * modules/accept (Depends-on): Add socketlib.
8200         (Link): New section.
8201         * modules/bind (Depends-on): Add socketlib.
8202         (Link): New section.
8203         * modules/connect (Depends-on): Add socketlib.
8204         (Link): New section.
8205         * modules/getpeername (Depends-on): Add socketlib.
8206         (Link): New section.
8207         * modules/getsockname (Depends-on): Add socketlib.
8208         (Link): New section.
8209         * modules/getsockopt (Depends-on): Add socketlib.
8210         (Link): New section.
8211         * modules/listen (Depends-on): Add socketlib.
8212         (Link): New section.
8213         * modules/recv (Depends-on): Add socketlib.
8214         (Link): New section.
8215         * modules/recvfrom (Depends-on): Add socketlib.
8216         (Link): New section.
8217         * modules/send (Depends-on): Add socketlib.
8218         (Link): New section.
8219         * modules/sendto (Depends-on): Add socketlib.
8220         (Link): New section.
8221         * modules/setsockopt (Depends-on): Add socketlib.
8222         (Link): New section.
8223         * modules/shutdown (Depends-on): Add socketlib.
8224         (Link): New section.
8225         * modules/socket (Depends-on): Add socketlib.
8226         (Link): New section.
8227
8228 2011-09-18  Bruno Haible  <bruno@clisp.org>
8229
8230         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8231         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8232         than 5 seconds.
8233         * modules/ptsname-tests (configure.ac): Test for alarm.
8234
8235 2011-09-18  Bruno Haible  <bruno@clisp.org>
8236
8237         posix_spawn_file_actions_add*: Fix module dependencies.
8238         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8239         posix_spawn_file_actions_init.
8240         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8241         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8242
8243 2011-09-18  Bruno Haible  <bruno@clisp.org>
8244
8245         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8246         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8247         * tests/test-renameat.c (main): Likewise.
8248
8249 2011-09-18  Bruno Haible  <bruno@clisp.org>
8250
8251         Tests for module 'accept4'.
8252         * modules/accept4-tests: New file.
8253         * tests/test-accept4.c: New file.
8254
8255 2011-09-18  Bruno Haible  <bruno@clisp.org>
8256
8257         Tests for module 'accept'.
8258         * modules/accept-tests: New file.
8259         * tests/test-accept.c: New file.
8260
8261 2011-09-18  Bruno Haible  <bruno@clisp.org>
8262
8263         dup2: Support for MSVC.
8264         * lib/dup2.c: Include msvc-inval.h.
8265         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8266         _get_osfhandle calls.
8267         * modules/dup2 (Depends-on): Add msvc-inval.
8268         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8269
8270         New module 'msvc-inval'.
8271         * lib/msvc-inval.h: New file.
8272         * lib/msvc-inval.c: New file.
8273         * m4/msvc-inval.m4: New file.
8274         * modules/msvc-inval: New file.
8275
8276 2011-09-17  Bruno Haible  <bruno@clisp.org>
8277
8278         Tests for module 'pclose'.
8279         * modules/pclose-tests: New file.
8280
8281         New module 'pclose'.
8282         * lib/stdio.in.h (pclose): New declaration.
8283         * lib/pclose.c: New file.
8284         * m4/pclose.m4: New file.
8285         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8286         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8287         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8288         * modules/pclose: New file.
8289         * modules/popen-tests (Depends-on): Add pclose.
8290         * modules/popen-safer-tests (Depends-on): Likewise.
8291         * doc/posix-functions/pclose.texi: Mention the new module.
8292
8293 2011-09-17  Bruno Haible  <bruno@clisp.org>
8294
8295         popen: Support for MSVC.
8296         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8297         * lib/popen.c (popen): Provide alternate definition for native Windows.
8298         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8300         * modules/popen (Depends-on, configure.ac): Update condition.
8301         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8302         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8303         fixed.
8304
8305 2011-09-17  Bruno Haible  <bruno@clisp.org>
8306
8307         isnanl, isnand, isnanf: Work around MSVC bug.
8308         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8309
8310 2011-09-17  Bruno Haible  <bruno@clisp.org>
8311
8312         sys_socket tests: Fix recent mistake.
8313         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8314
8315 2011-09-17  Bruno Haible  <bruno@clisp.org>
8316
8317         putenv: Support for MSVC.
8318         * modules/putenv (Depends-on): Add environ.
8319         * lib/putenv.c (environ): Disable declaration.
8320         * lib/unistd.in.h: Update comment.
8321
8322 2011-09-17  Bruno Haible  <bruno@clisp.org>
8323
8324         math: Avoid macro redefinition warnings on MSVC.
8325         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8326         Undefine before redefining.
8327
8328 2011-09-17  Bruno Haible  <bruno@clisp.org>
8329
8330         doc: Mention functions which are declared as macros.
8331         * doc/posix-functions/*[fl].texi: Mention that some functions are
8332         defined as macros with arguments only.
8333
8334 2011-09-17  Bruno Haible  <bruno@clisp.org>
8335
8336         Add dependencies to new dirent related modules.
8337         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8338         * modules/fts (Depends-on): Likewise.
8339         * modules/glob (Depends-on): Likewise.
8340         * modules/savedir (Depends-on): Likewise.
8341         * modules/scandir (Depends-on): Likewise.
8342         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8343         * modules/fdopendir (Depends-on): Add opendir.
8344
8345 2011-09-17  Bruno Haible  <bruno@clisp.org>
8346
8347         inet_pton: Support for MSVC on Windows Vista or newer.
8348         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8349         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8350         HAVE_DECL_INET_PTON is defined.
8351         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8352         On platforms with <winsock2.h>, test whether inet_pton is declared in
8353         <ws2tcpip.h>. If so, arrange to replace it.
8354         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8355         REPLACE_INET_PTON.
8356         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8357         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8358         (Depends-on, configure.ac): Update condition.
8359         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8360
8361 2011-09-17  Bruno Haible  <bruno@clisp.org>
8362
8363         inet_ntop: Support for MSVC on Windows Vista or newer.
8364         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8365         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8366         HAVE_DECL_INET_NTOP is defined.
8367         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8368         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8369         <ws2tcpip.h>. If so, arrange to replace it.
8370         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8371         REPLACE_INET_NTOP.
8372         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8373         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8374         (Depends-on, configure.ac): Update condition.
8375         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8376
8377 2011-09-16  Eric Blake  <eblake@redhat.com>
8378
8379         test-fsync: yet another enhancement
8380         * tests/test-fsync.c (main): Also test behavior on read-only text
8381         file.
8382
8383 2011-09-16  Bruno Haible  <bruno@clisp.org>
8384
8385         Enhance fsync, fdatasync tests.
8386         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8387         * tests/test-fdatasync.c (main): Likewise.
8388
8389 2011-09-16  Bruno Haible  <bruno@clisp.org>
8390
8391         Support for MSVC compiler: Ensure mode_t gets defined.
8392         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8393         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8394         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8395         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8396         * tests/test-fcntl-h.c: Check that mode_t is defined.
8397         * tests/test-sys_stat.c: Likewise.
8398         * tests/test-sys_types.c: Likewise.
8399         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8400         * doc/posix-headers/sys_stat.texi: Likewise.
8401         * doc/posix-headers/sys_types.texi: Likewise.
8402
8403 2011-09-16  Bruno Haible  <bruno@clisp.org>
8404
8405         sys_stat: Support for MSVC.
8406         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8407         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8408         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8409         MSVC.
8410
8411 2011-09-16  Bruno Haible  <bruno@clisp.org>
8412
8413         Support for MSVC compiler: Ensure off_t gets defined.
8414         * lib/unistd.in.h: Include <sys/types.h>.
8415         * tests/test-fcntl-h.c: Check that off_t is defined.
8416         * tests/test-sys_stat.c: Likewise.
8417         * tests/test-sys_types.c: Likewise.
8418
8419 2011-09-16  Eric Blake  <eblake@redhat.com>
8420
8421         fdatasync: port to Solaris
8422         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8423         * modules/fdatasync (Link): Document it.
8424         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8425
8426         fdatasync: port to MacOS X 10.7
8427         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8428         declared.
8429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8430         * modules/unistd (Makefile.am): Substitute it.
8431         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8432         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8433
8434         fdatasync: minor improvements
8435         * modules/fdatasync (Depends-on): Add condition for fsync.
8436         * lib/fdatasync.c (fdatasync): Add comment.
8437         * tests/test-unistd-c++.cc: Test fdatasync.
8438
8439         unistd: update refs to newer POSIX
8440         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8441         Suggested by Bruno Haible.
8442
8443         fdatasync: new module
8444         * modules/fsync (Description): Document difference to fdatasync.
8445         * modules/fdatasync: New module.
8446         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8447         * lib/fdatasync.c (fdatasync): Likewise.
8448         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8449         defaults.
8450         * modules/unistd (Makefile.am): Set witnesses.
8451         * lib/unistd.in.h (fdatasync): Declare.
8452         * MODULES.html.sh: Document it.
8453         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8454         * modules/fdatasync-tests: New test.
8455         * tests/test-fdatasync.c: Likewise.
8456
8457 2011-09-16  Eric Blake  <eblake@redhat.com>
8458
8459         test-fsync: enhance tests
8460         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8461         * tests/test-fsync.c (main): Enhance test.
8462
8463 2011-09-15  Bruno Haible  <bruno@clisp.org>
8464
8465         Support for MSVC compiler: Ensure ssize_t gets defined.
8466         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8467         * doc/posix-headers/stdio.texi: Likewise.
8468         * modules/stdio (Depends-on): Add ssize_t.
8469         * modules/sys_socket (Depends-on): Likewise.
8470         * modules/sys_types (Depends-on): Likewise.
8471         * modules/sys_uio (Depends-on): Likewise.
8472         * modules/unistd (Depends-on): Likewise.
8473         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8474         * tests/test-sys_types.c: Check that ssize_t is defined.
8475
8476 2011-09-14  Bruno Haible  <bruno@clisp.org>
8477
8478         Avoid using #, the m4 comment starter character, near brackets.
8479         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8480         delimiter character in sed expressions.
8481         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8482         Suggested by Eric Blake.
8483
8484         Properly quote AC_CHECK_DECLS' 4th argument.
8485         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8486         argument.
8487         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8488         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8489         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8490         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8491         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8492         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8493         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8494         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8495         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8496         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8497         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8498         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8499         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8500         * m4/isinf.m4 (gl_ISINF): Likewise.
8501         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8502         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8503         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8504         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8506         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8507         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8508         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8509         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8510         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8511         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8512         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8514         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8516         Reported by Eric Blake.
8517
8518         Properly quote AC_CHECK_DECL's 4th argument.
8519         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8520         argument.
8521         * m4/argp.m4 (gl_ARGP): Likewise.
8522         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8523         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8524         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8525         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8526         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8527         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8528         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8529         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8530         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8531         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8532         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8533         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8534         Reported by Eric Blake.
8535
8536 2011-09-14  Eric Blake  <eblake@redhat.com>
8537
8538         opendir: avoid compile warning
8539         * lib/opendir.c (includes): Always include errno.h.
8540         Reported by Tatsuro MATSUOKA.
8541
8542 2011-09-14  Jim Meyering  <meyering@redhat.com>
8543
8544         maint.mk: sc_tight_scope: propagate failure from sub-make
8545         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8546         Reported by Martin von Gagern.
8547
8548 2011-09-13  Bruno Haible  <bruno@clisp.org>
8549
8550         tempname: Support for MSVC.
8551         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8552         MSVC.
8553         * modules/tempname (Depends-on): Add fcntl-h.
8554
8555 2011-09-13  Bruno Haible  <bruno@clisp.org>
8556
8557         sys_time: Support for MSVC.
8558         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8559         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8560         include <winsock2.h>.
8561         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8562         function declarations that collide with POSIX.
8563         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8564         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8565
8566 2011-09-13  Bruno Haible  <bruno@clisp.org>
8567
8568         stat: Support for MSVC.
8569         * lib/stat.c: Include pathmax.h.
8570         * modules/stat (Depends-on): Add pathmax.
8571
8572         pathmax: Support for native Windows.
8573         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8574
8575 2011-09-12  Bruno Haible  <bruno@clisp.org>
8576
8577         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8578         * lib/dirent.in.h (struct dirent): New type.
8579         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8580         DT_WHT): New macros.
8581         (DIR): New type.
8582         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8583         (readdir, rewinddir): New declarations.
8584         * lib/dirent-private.h: New file.
8585         * lib/opendir.c: New file.
8586         * lib/readdir.c: New file.
8587         * lib/rewinddir.c: New file.
8588         * lib/closedir.c: New file.
8589         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8590         * m4/opendir.m4: New file.
8591         * m4/readdir.m4: New file.
8592         * m4/rewinddir.m4: New file.
8593         * m4/closedir.m4: New file.
8594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8595         REPLACE_CLOSEDIR here.
8596         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8597         readdir, rewinddir are declared.
8598         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8599         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8600         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8601         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8602         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8603         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8604         * modules/opendir: New file.
8605         * modules/readdir: New file.
8606         * modules/rewinddir: New file.
8607         * modules/closedir: New file.
8608         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8609         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8610         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8611         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8612         * NEWS: Mention the 'fchdir' change.
8613
8614 2011-09-11  Bruno Haible  <bruno@clisp.org>
8615
8616         asm-underscore.m4: Support for MSVC.
8617         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8618         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8619
8620 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8621
8622         Doc about crypt functions.
8623         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8624         needing for _GNU_SOURCE to get crypt.
8625         * doc/posix-functions/encrypt.texi: Likewise.
8626         * doc/posix-functions/setkey.texi: Likewise.
8627
8628 2011-09-11  Bruno Haible  <bruno@clisp.org>
8629
8630         doc: Update regarding MSVC 9.
8631         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8632         tested".
8633         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8634         * doc/posix-headers/*.texi: Likewise.
8635         * doc/pastposix-functions/*.texi: Likewise.
8636         * doc/glibc-functions/*.texi: Likewise.
8637         * doc/glibc-headers/*.texi: Likewise.
8638
8639 2011-09-11  Bruno Haible  <bruno@clisp.org>
8640
8641         unistd et al.: Don't assume <unistd.h> exists.
8642         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8643         does not exist.
8644         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8645         exist. But include <stdlib.h>.
8646         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8647         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8648         symlink() does not exist.
8649         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8650         include <io.h> instead.
8651         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8652         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8653         include <direct.h> instead.
8654         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8655         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8656         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8657         <io.h> instead.
8658         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8659         correctly if the system does not have hard links.
8660         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8661         <direct.h> instead.
8662         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8663         it when looking for function declarations.
8664         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8665         <direct.h> and <io.h> instead.
8666         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8667
8668 2011-09-11  Bruno Haible  <bruno@clisp.org>
8669
8670         strcase: Support for MSVC.
8671         * modules/strcase (Status, Notice): Remove obsoletion mark.
8672         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8673         * doc/posix-functions/strncasecmp.texi: Likewise.
8674
8675         strings: Don't assume <strings.h> exists.
8676         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8677         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8678         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8679         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8680
8681 2011-09-11  Bruno Haible  <bruno@clisp.org>
8682
8683         dirent: Don't assume <dirent.h> exists.
8684         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8685         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8686         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8687         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8688
8689 2011-09-11  Bruno Haible  <bruno@clisp.org>
8690
8691         Fix wint_t on MSVC.
8692         * lib/wchar.in.h (wint_t): On MSVC, override it.
8693         * lib/wctype.in.h (wint_t): Likewise.
8694         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8695         MSVC.
8696         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8697         * doc/posix-headers/wctype.texi: Likewise.
8698
8699 2011-09-11  Bruno Haible  <bruno@clisp.org>
8700
8701         sys_types: Fix typo.
8702         * lib/sys_types.in.h: Fix typo in comment.
8703         Reported by Paul Eggert.
8704
8705         Support for MSVC compiler: Ensure size_t gets defined.
8706         * modules/strings (Depends-on): Add 'sys_types'.
8707         * modules/sys_uio (Depends-on): Likewise.
8708         * lib/sys_uio.in.h: Update comment.
8709
8710         C++ tests for module 'sys_types'.
8711         * modules/sys_types-c++-tests: New file.
8712         * tests/test-sys_types-c++.cc: New file.
8713
8714         Tests for module 'sys_types'.
8715         * modules/sys_types-tests: New file.
8716         * tests/test-sys_types.c: New file.
8717
8718         New module 'sys_types'.
8719         * lib/sys_types.in.h: New file.
8720         * m4/sys_types_h.m4: New file.
8721         * modules/sys_types: New file.
8722         * doc/posix-headers/sys_types.texi: Mention the new module and the
8723         size_t problem on MSVC 9.
8724
8725 2011-09-11  Bruno Haible  <bruno@clisp.org>
8726
8727         Support for MSVC compiler: Avoid division by a literal 0.
8728         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8729         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8730         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8731         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8732         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8733         * tests/infinity.h: New file.
8734         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8735         on MSVC.
8736         * tests/test-ceilf1.c: Include infinity.h.
8737         (main): Use Infinityf.
8738         * tests/test-ceil1.c: Include infinity.h.
8739         (main): Use Infinityd.
8740         * tests/test-ceill.c: Include infinity.h.
8741         (main): Use Infinityl.
8742         * tests/test-dprintf-posix.c: Include infinity.h.
8743         (test_function): Use Infinityd.
8744         * tests/test-floorf1.c: Include infinity.h.
8745         (main): Use Infinityf.
8746         * tests/test-floor1.c: Include infinity.h.
8747         (main): Use Infinityd.
8748         * tests/test-floorl.c: Include infinity.h.
8749         (main): Use Infinityl.
8750         * tests/test-fprintf-posix.c: Include infinity.h.
8751         (test_function): Use Infinityd.
8752         * tests/test-frexp.c: Include infinity.h.
8753         (main): Use Infinityd.
8754         * tests/test-frexpl.c: Include infinity.h.
8755         (main): Use Infinityl.
8756         * tests/test-isfinite.c: Include infinity.h.
8757         (test_isfinitef): Use Infinityf.
8758         (test_isfinited): Use Infinityd.
8759         (test_isfinitel): Use Infinityl.
8760         * tests/test-isinf.c: Include infinity.h.
8761         (test_isinff): Use Infinityf.
8762         (test_isinfd): Use Infinityd.
8763         (test_isinfl): Use Infinityl.
8764         * tests/test-isnan.c: Include infinity.h.
8765         (test_float): Use Infinityf.
8766         (test_double): Use Infinityd.
8767         (test_long_double): Use Infinityl.
8768         * tests/test-isnanf.h: Include infinity.h.
8769         (main): Use Infinityf.
8770         * tests/test-isnand.h: Include infinity.h.
8771         (main): Use Infinityd.
8772         * tests/test-isnanl.h: Include infinity.h.
8773         (main): Use Infinityl.
8774         * tests/test-ldexpl.c: Include infinity.h.
8775         (main): Use Infinityl.
8776         * tests/test-printf-posix.h: Include infinity.h.
8777         (test_function): Use Infinityd.
8778         * tests/test-roundf1.c: Include infinity.h.
8779         (main): Use Infinityf.
8780         * tests/test-round1.c: Include infinity.h.
8781         (main): Use Infinityd.
8782         * tests/test-roundl.c: Include infinity.h.
8783         (main): Use Infinityl.
8784         * tests/test-signbit.c: Include infinity.h.
8785         (test_signbitf): Use Infinityf.
8786         (test_signbitd): Use Infinityd.
8787         (test_signbitl): Use Infinityl.
8788         * tests/test-snprintf-posix.h: Include infinity.h.
8789         (test_function): Use Infinityd, Infinityl.
8790         * tests/test-sprintf-posix.h: Include infinity.h.
8791         (test_function): Use Infinityd, Infinityl.
8792         * tests/test-truncf1.c: Include infinity.h.
8793         (main): Use Infinityf.
8794         * tests/test-trunc1.c: Include infinity.h.
8795         (main): Use Infinityd.
8796         * tests/test-truncl.c: Include infinity.h.
8797         (main): Use Infinityl.
8798         * tests/test-vasnprintf-posix.c: Include infinity.h.
8799         (test_function): Use Infinityd, Infinityl.
8800         * tests/test-vasprintf-posix.c: Include infinity.h.
8801         (test_function): Use Infinityd, Infinityl.
8802         * modules/ceilf-tests (Files): Add tests/infinity.h.
8803         * modules/ceil-tests (Files): Likewise.
8804         * modules/ceill-tests (Files): Likewise.
8805         * modules/dprintf-posix-tests (Files): Likewise.
8806         * modules/floorf-tests (Files): Likewise.
8807         * modules/floor-tests (Files): Likewise.
8808         * modules/floorl-tests (Files): Likewise.
8809         * modules/fprintf-posix-tests (Files): Likewise.
8810         * modules/frexp-tests (Files): Likewise.
8811         * modules/frexp-nolibm-tests (Files): Likewise.
8812         * modules/frexpl-tests (Files): Likewise.
8813         * modules/frexpl-nolibm-tests (Files): Likewise.
8814         * modules/isfinite-tests (Files): Likewise.
8815         * modules/isinf-tests (Files): Likewise.
8816         * modules/isnan-tests (Files): Likewise.
8817         * modules/isnanf-tests (Files): Likewise.
8818         * modules/isnanf-nolibm-tests (Files): Likewise.
8819         * modules/isnand-tests (Files): Likewise.
8820         * modules/isnand-nolibm-tests (Files): Likewise.
8821         * modules/isnanl-tests (Files): Likewise.
8822         * modules/isnanl-nolibm-tests (Files): Likewise.
8823         * modules/ldexpl-tests (Files): Likewise.
8824         * modules/printf-posix-tests (Files): Likewise.
8825         * modules/roundf-tests (Files): Likewise.
8826         * modules/round-tests (Files): Likewise.
8827         * modules/roundl-tests (Files): Likewise.
8828         * modules/signbit-tests (Files): Likewise.
8829         * modules/snprintf-posix-tests (Files): Likewise.
8830         * modules/sprintf-posix-tests (Files): Likewise.
8831         * modules/truncf-tests (Files): Likewise.
8832         * modules/trunc-tests (Files): Likewise.
8833         * modules/truncl-tests (Files): Likewise.
8834         * modules/vasnprintf-posix-tests (Files): Likewise.
8835         * modules/vasprintf-posix-tests (Files): Likewise.
8836         * modules/vdprintf-posix-tests (Files): Likewise.
8837         * modules/vfprintf-posix-tests (Files): Likewise.
8838         * modules/vprintf-posix-tests (Files): Likewise.
8839         * modules/vsnprintf-posix-tests (Files): Likewise.
8840         * modules/vsprintf-posix-tests (Files): Likewise.
8841         * modules/xprintf-posix-tests (Files): Likewise.
8842
8843 2011-09-11  Bruno Haible  <bruno@clisp.org>
8844
8845         Ensure pid_t gets defined.
8846         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
8847         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8848         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8849         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8850         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8851         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8852         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8853         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8854         * tests/test-fcntl-h.c: Check that pid_t is defined.
8855         * tests/test-sched.c: Likewise.
8856         * tests/test-termios.c: Likewise.
8857         * tests/test-time.c: Likewise.
8858         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
8859         * doc/posix-headers/signal.texi: Likewise.
8860         * doc/posix-headers/sys_types.texi: Likewise.
8861         * doc/posix-headers/time.texi: Likewise.
8862
8863 2011-09-11  Bruno Haible  <bruno@clisp.org>
8864
8865         acl: Fix compilation on Solaris 10 (older version).
8866         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
8867         of ACE_EVERYONE.
8868         * lib/set-mode-acl.c (qset_acl): Likewise.
8869         Reported by Christian Jullien <eligis@orange.fr>.
8870
8871 2011-09-10  Bruno Haible  <bruno@clisp.org>
8872
8873         iconv, unsetenv: Add support for MSVC compiler.
8874         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
8875         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
8876
8877 2011-09-10  Bruno Haible  <bruno@clisp.org>
8878
8879         *printf: Add support for MSVC compiler.
8880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
8881         handles the exception caused by the %n directive. When cross-compiling,
8882         guess no on native Windows.
8883         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8884         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
8885         emulate it through vsnprintf.
8886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
8887         * doc/posix-functions/dprintf.texi: Update documentation regarding
8888         MSVC 9.
8889         * doc/posix-functions/fprintf.texi: Likewise.
8890         * doc/posix-functions/printf.texi: Likewise.
8891         * doc/posix-functions/snprintf.texi: Likewise.
8892         * doc/posix-functions/sprintf.texi: Likewise.
8893         * doc/posix-functions/swprintf.texi: Likewise.
8894         * doc/posix-functions/vdprintf.texi: Likewise.
8895         * doc/posix-functions/vfprintf.texi: Likewise.
8896         * doc/posix-functions/vprintf.texi: Likewise.
8897         * doc/posix-functions/vsnprintf.texi: Likewise.
8898         * doc/posix-functions/vsprintf.texi: Likewise.
8899         * doc/glibc-functions/asprintf.texi: Likewise.
8900         * doc/glibc-functions/obstack_printf.texi: Likewise.
8901         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8902         * doc/glibc-functions/vasprintf.texi: Likewise.
8903
8904 2011-09-10  Bruno Haible  <bruno@clisp.org>
8905
8906         nocrash: Add support for native Windows.
8907         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
8908
8909 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
8910             Bruno Haible  <bruno@clisp.org>
8911
8912         absolute-header, include-next: Add support for MSVC compiler.
8913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
8914         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
8915         directory separator in #line directives.
8916         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
8917         recognize also backslash as directory separator in #line directives.
8918
8919 2011-09-08  Jim Meyering  <meyering@redhat.com>
8920
8921         maint.mk: mark the post-release commit log with "maint: " prefix
8922         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
8923         one-line commit-log summary.
8924
8925 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
8926             Bruno Haible  <bruno@clisp.org>
8927
8928         Doc about crypt functions.
8929         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
8930         systems.
8931         * doc/posix-functions/encrypt.texi: Likewise.
8932         * doc/posix-functions/setkey.texi: Likewise.
8933
8934 2011-09-08  Simon Josefsson  <simon@josefsson.org>
8935
8936         * lib/gc.h: Fix copyright header.
8937
8938 2011-09-07  Bruno Haible  <bruno@clisp.org>
8939
8940         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
8941         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
8942         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
8943
8944 2011-09-07  Bruno Haible  <bruno@clisp.org>
8945
8946         openat: Work around compilation error with OSF/1 5.1 DTK cc.
8947         * lib/fopen.c: Use different syntax for include of <stdio.h>.
8948         * lib/freopen.c: Likewise.
8949         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
8950         * lib/lstat.c: Likewise.
8951         * lib/stat.c: Likewise.
8952         * lib/open.c: Use different syntax for include of <fcntl.h>.
8953         * lib/openat.c: Include fcntl.h again, explicitly.
8954
8955 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
8956
8957         parse-datetime: document the newly accepted format
8958         * doc/parse-datetime.texi (Combined date and time of day items):
8959         New section.
8960
8961 2011-09-06  Bruno Haible  <bruno@clisp.org>
8962
8963         acl: Fix a test failure on newer Solaris 10 with ZFS.
8964         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
8965         ENOSYS as no ACL.
8966         Reported by Jim Meyering.
8967
8968 2011-09-06  Bruno Haible  <bruno@clisp.org>
8969
8970         acl: Update for AIX >= 5.3 with NFS.
8971         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
8972         ENOSYS as no ACL.
8973
8974         acl: Fix a test failure on AIX >= 5.3 with NFS.
8975         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
8976         as no ACL.
8977
8978 2011-09-06  Bruno Haible  <bruno@clisp.org>
8979
8980         acl: Fix a test failure on IRIX 6.5 with NFS.
8981         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
8982         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
8983         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
8984         * lib/copy-acl.c (qcopy_acl): Likewise.
8985
8986 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8987
8988         openat: port to AIX 7.1 with large files
8989         AIX 7.1 does a "#define openat open64at" if large files are in use,
8990         so we can't simply #undef openat.  Use the orig_openat trick (similar
8991         to orig_open in lib/open.c) to work around the problem.  Problem
8992         reported by Kevin Brott for GNU tar, in the thread containing
8993         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
8994         * lib/openat.c (__need_system_fcntl_h): Define first.
8995         Include <fcntl.h> and <sys/types.h> before undefining.
8996         (orig_openat) [HAVE_OPENAT]: New inline function.
8997         (openat) [HAVE_OPENAT]: Do not undef.
8998         (rpl_openat): Use orig_openat, not openat.
8999
9000 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9001             Bruno Haible  <bruno@clisp.org>
9002
9003         acl: Avoid errors on NonStop Kernel.
9004         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9005         ENOTSUP errors.
9006
9007 2011-09-05  Bruno Haible  <bruno@clisp.org>
9008
9009         acl: Clean up Solaris code.
9010         * lib/acl-internal.h: Remove no-op #if.
9011         * lib/file-has-acl.c: Likewise.
9012         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9013         * lib/copy-acl.c (qcopy_acl): Likewise.
9014
9015 2011-09-05  Bruno Haible  <bruno@clisp.org>
9016
9017         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9018         binaries built on the original Solaris 10.
9019         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9020         trivial.
9021
9022 2011-09-05  Bruno Haible  <bruno@clisp.org>
9023
9024         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9025         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9026         10.
9027         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9028         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9029         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9030         instead of acl_get, facl_get, acl_set, facl_set.
9031
9032 2011-09-05  Bruno Haible  <bruno@clisp.org>
9033
9034         copy-file: Try unit tests on more file systems.
9035         * tests/test-copy-file-1.sh: New file.
9036         * tests/test-copy-file-2.sh: New file.
9037         * modules/copy-file-tests (Files): Add them.
9038         (Makefile.am): Add them to TESTS.
9039
9040         acl: Try unit tests on more file systems.
9041         * tests/test-file-has-acl-1.sh: New file.
9042         * tests/test-file-has-acl-2.sh: New file.
9043         * tests/test-set-mode-acl-1.sh: New file.
9044         * tests/test-set-mode-acl-2.sh: New file.
9045         * tests/test-copy-acl-1.sh: New file.
9046         * tests/test-copy-acl-2.sh: New file.
9047         * modules/acl-tests (Files): Add them.
9048         (Makefile.am): Add them to TESTS.
9049
9050 2011-09-04  Bruno Haible  <bruno@clisp.org>
9051
9052         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9053         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9054         10.
9055         (OLD_ALLOW, OLD_DENY): New macros.
9056         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9057         ACE_ACCESS_ALLOWED_ACE_TYPE.
9058         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9059         ACE_ACCESS_DENIED_ACE_TYPE.
9060         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9061         (NEW_ACE_EXECUTE): Fix value.
9062         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9063         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9064         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9065         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9066         NEW_ACE_SYNCHRONIZE): New macros.
9067         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9068         instead of acl_fromtext, acl_set, facl_set.
9069         Fixes a coreutils/tests/cp/perm failure.
9070
9071 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9072
9073         openat: test for fstatat (..., 0) bug
9074         Further testing with tar suggests that fstatat (..., 0)
9075         does not work in general, on AIX 7.1; see
9076         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9077         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9078         replacement fstatat (which is what older AIX releases were using
9079         anyway).
9080         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9081         use is now changed to orig_fstatat.  This was probably the right
9082         thing to do anyway.
9083         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9084         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9085         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9086         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9087         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9088         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9089         if the bug is found.
9090
9091         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9092         This tests for another fstatat bug on AIX 7.1:
9093         fstatat (AT_FDCWD, ..., 0) does not work.  See
9094         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9095         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9096         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9097         (rpl_fstatat): Adjust so that it works around either (or both)
9098         bugs if present.
9099         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9100
9101 2011-09-03  Karl Berry  <karl@gnu.org>
9102
9103         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9104         in index entries.
9105
9106 2011-09-02  Bruno Haible  <bruno@clisp.org>
9107
9108         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9109         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9110         values of AR, ARFLAGS, RANLIB.
9111         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9112
9113 2011-09-02  Bruno Haible  <bruno@clisp.org>
9114
9115         Find 'ar' program that fits with --host argument.
9116         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9117
9118 2011-09-02  Bruno Haible  <bruno@clisp.org>
9119
9120         tests: init.sh: Support any non-GNU diff.
9121         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9122         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9123         Solaris 8.
9124
9125 2011-09-02  Bruno Haible  <bruno@clisp.org>
9126
9127         tests: init.sh: work also with any non-GNU diff that supports -u
9128         * tests/init.sh: Relax check for diff -u support.
9129         Rather than checking for GNU diff via --version, simply check
9130         for support for -u itself.  Useful at least on OpenBSD 4.9,
9131         AIX 7.1, IRIX 6.5, and Solaris 10.
9132
9133 2011-09-01  Bruno Haible  <bruno@clisp.org>
9134
9135         strtoimax, strtoumax: Document problem on HP-UX 11.
9136         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9137         * doc/posix-functions/strtoumax.texi: Likewise.
9138
9139 2011-09-01  Bruno Haible  <bruno@clisp.org>
9140
9141         strtoumax: Avoid link error on OSF/1 with DTK cc.
9142         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9143         defined as a function.
9144         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9145         strtoumax is defined, not whether it is declared.
9146
9147 2011-09-01  Bruno Haible  <bruno@clisp.org>
9148
9149         strtoimax: Avoid link error on OSF/1 with DTK cc.
9150         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9151         defined as a function.
9152         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9153         strtoimax is defined, not whether it is declared.
9154
9155 2011-09-01  Bruno Haible  <bruno@clisp.org>
9156
9157         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9158         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9159         as a function.
9160         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9161         whether it is declared.
9162
9163 2011-09-01  Bruno Haible  <bruno@clisp.org>
9164
9165         imaxabs: Avoid link error on OSF/1 with DTK cc.
9166         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9167         as a function.
9168         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9169         whether it is declared.
9170
9171 2011-09-01  Bruno Haible  <bruno@clisp.org>
9172
9173         Tests for module 'strtoumax'.
9174         * modules/strtoumax-tests: New file.
9175         * tests/test-strtoumax.c: New file.
9176
9177         Tests for module 'strtoimax'.
9178         * modules/strtoimax-tests: New file.
9179         * tests/test-strtoimax.c: New file.
9180
9181         Tests for module 'imaxdiv'.
9182         * modules/imaxdiv-tests: New file.
9183         * tests/test-imaxdiv.c: New file.
9184
9185         Tests for module 'imaxabs'.
9186         * modules/imaxabs-tests: New file.
9187         * tests/test-imaxabs.c: New file.
9188
9189 2011-09-01  Bruno Haible  <bruno@clisp.org>
9190
9191         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9192         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9193         pthread_create.
9194
9195 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9196
9197         openat: work around AIX 7.1 fstatat issue
9198         This should fix the problem that was not properly fixed
9199         in the previous change, dated 2011-08-30.
9200         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9201         __need_system_stat_h defined.
9202         (orig_fstatat) [HAVE_FSTATAT]: New function.
9203         (rpl_fstatat): Go back to the old way of doing things,
9204         except call orig_fstatat instead of fstatat.
9205         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9206         Remove unnecessary check whether fstatat fills in st_size etc.
9207
9208 2011-09-01  Bruno Haible  <bruno@clisp.org>
9209
9210         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9211         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9212         just include the system's header.
9213
9214 2011-08-31  Jim Meyering  <meyering@redhat.com>
9215
9216         tests: avoid spurious assertion failure in test-float.c on ppc64
9217         * tests/test-float.c (test_long_double): Comment out an assertion,
9218         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9219         with gcc-4.4.4.
9220
9221         maint: indent with spaces, not TABs
9222         I need to get in the habit of running gnulib's "make check".
9223         Both of these would have been caught.
9224         * m4/largefile.m4: Indent with spaces, not TABs.
9225         * lib/parse-datetime.y (iso_8601_time): Likewise.
9226         Spotted by Pádraig Brady.
9227
9228         test-parse-datetime.c: accommodate a relatively strict gcc warning
9229         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9230         to avoid a warning from gcc's -Werror=missing-declarations.
9231         Insert a few spaces-before-funcall-parenthesis.
9232
9233 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9234
9235         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9236         The parser now accepts ISO 8601 date-time strings with "T" as the
9237         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9238         with a space between the date and time strings.  Now it also parses
9239         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9240         variants like "2004-02-29T16:21:42.333-07:00"
9241         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9242         of day representation using the 'T' separator character.
9243         * doc/parse-datetime.texi (General date syntax): replace use of
9244         deprecated --iso-8601 option with --rfc-3339 in example of date
9245         command output formats that can be parsed.
9246         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9247         lib/parse-datetime.y.
9248         (gmt_offset): New function.
9249         (main): Add additional test cases to validate ISO8601 extended
9250         date and time of day parsing.
9251
9252 2011-08-31  Bruno Haible  <bruno@clisp.org>
9253
9254         freopen: Documentation.
9255         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9256         name.
9257         Reported by Claudio Bley <claudio.bley@gmail.com>.
9258
9259 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9260
9261         freopen: Don't crash if the filename argument is NULL.
9262         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9263         NULL.
9264
9265 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9266
9267         openat: work around AIX 7.1 fstatat bug
9268         Problem reported by Kevin Brott for GNU tar, in the thread containing
9269         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9270         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9271         FSTATAT_ST_SIZE_ETC_BROKEN.
9272         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9273         rpl_fstatat.
9274         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9275         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9276         AC_CHECK_FUNCS_ONCE for fstatat.
9277         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9278         fchmodat, mkdirat, openat and unlinkat.
9279
9280 2011-08-30  Bruno Haible  <bruno@clisp.org>
9281
9282         Avoid endless recursions if config.h includes some header files.
9283         * lib/fopen.c (__need_FILE): Define already before including config.h.
9284         * lib/freopen.c (__need_FILE): Likewise.
9285         * lib/open.c (__need_system_fcntl_h): Likewise.
9286         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9287         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9288         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9289
9290 2011-08-25  Karl Berry  <karl@gnu.org>
9291
9292         * config/srclist.txt (ylwrap): new try.
9293         * build-aux/ylwrap: new file.
9294
9295 2011-08-23  Bruno Haible  <bruno@clisp.org>
9296
9297         tmpdir: Use a good default directory on native Windows.
9298         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9299         (P_tmpdir): Default to _P_tmpdir on native Windows.
9300         (path_search): On native Windows, try the value returned by GetTempPath
9301         before trying P_tmpdir.
9302         * modules/tmpdir (Depends-on): Add pathmax.
9303         Suggested by John Darrington <john@darrington.wattle.id.au>.
9304
9305 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9306
9307         doc: fix typo in README-release
9308         * top/README-release: Capitalize first word of a sentence.
9309
9310 2011-08-19  Jim Meyering  <meyering@redhat.com>
9311
9312         fts: do not exhaust memory when processing million-entry directories
9313         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9314         directory would require about 256*N bytes of memory.  Thus, it was
9315         easy to construct a directory too large to be processed by any of
9316         those tools.  With this change, fts' maximum memory utilization is
9317         now limited to around 30MB.
9318         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9319         (fts_read): When we've processed the final entry (i.e., when
9320         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9321         using the parent entry to read any remaining entries.  Dispatch
9322         depending on what fts_build returns:
9323         - NULL+stop, aka failure: stop
9324         - NULL otherwise: move up in the dir hierarchy
9325         - non-NULL: handle this new entry
9326         (fts_build): Declare and use new local, continue_readdir.
9327         Prepare to be called from fts_read, when the entries
9328         from a partially-read directory have just been exhausted.
9329         In that case, we'll skip the opendir and instead use the parent's
9330         fts_dirp and derive dir_fd from that.
9331         Finally, in the readdir loop, if we read max_entries entries,
9332         exit the loop ensuring *not* to call closedir.  This is required
9333         so that fts_dirp can be reused on a subsequent call.
9334         Prompted by Ben England's report of memory exhaustion in find
9335         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9336
9337         maint: fts: move decl of `dp' down into while loop; split a long line
9338         * lib/fts.c (fts_build): No semantic change.
9339
9340         fts: add/use new struct member, fts_dirp
9341         We are about to use this to manage any directory with
9342         too many entries to read all of them into memory at once.
9343         To do that, we'll need to save the DIR* pointer in each
9344         affected FTSENT struct.
9345         * lib/fts_.h: Include <dirent.h>.
9346         (struct FTSENT) [fts_dirp]: New member.
9347         * lib/fts.c (closedir_and_clear): Define.
9348         Use it in place of closedir so that we are sure to
9349         clear the new fts_dirp member when done with it.
9350         (fts_alloc): Initialize the new member.
9351         (fts_lfree): Free, if needed.
9352
9353         maint: fts: give __opendir2 a new parameter and rename
9354         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9355         than surreptitiously using sole caller's "dir_fd".
9356         (fts_opendir): Rename from __opendir2.
9357
9358         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9359         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9360
9361         maint: fts.c: correct off-by-one indentation
9362         * lib/fts.c (fts_build): Correct indentation, change style
9363         of a couple of block comments, and bracing style.
9364
9365         maint: fts.c: move __opendir2 #define "up" out of function body
9366         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9367
9368         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9369         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9370         out for a long time and besides was useful only on BSD systems.
9371
9372 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         regex: port to Stratus OpenVOS
9375         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9376         define to empty, rather than attempting nonportable optimizations.
9377         Problem reported by Paul Green in:
9378         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9379         and fix suggested by Eric Blake in:
9380         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9381
9382 2011-08-17  Eric Blake  <eblake@redhat.com>
9383
9384         getcwd: fix test failures on mingw
9385         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9386         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9387         test if long directory cannot be created, and allow mingw errno.
9388
9389         getcwd-lgpl: fix m4 to match relaxed test for BSD
9390         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9391         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9392         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9393         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9394         signature problem.
9395
9396         getcwd: fix compilation on mingw64
9397         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9398         getcwd.
9399         Reported by Marc-André Lureau.
9400
9401         pipe2: silence compiler warning
9402         * lib/pipe2.c (pipe2): Hide label if it is not used.
9403
9404 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9405
9406         relocatable-prog: fix link error
9407         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9408         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9409         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9410         into modules/relocatable-lib without noticing that
9411         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9412         also needs to build relocatable.c.
9413
9414 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9415
9416         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9417         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9418         shell code: it contained a 'break' that was not in a loop.
9419         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9420         via a shell-language loop; this may have been true in old Autoconf
9421         versions, but it's not true in Autoconf 2.68.  I found this bug
9422         when testing coreutils git on Solaris 8, whose shell complains
9423         about the syntax error.
9424
9425 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9426
9427         * lib/base64.c: Fix comment to reference RFC 4648.
9428         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9429         <gvtulder@gmail.com>.
9430
9431 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9432
9433         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9434
9435         po/Makefile.in.in: fix make -q problem
9436         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9437         rule, since there's no file named 'check-macro-version' and its
9438         use as a file breaks make -q.
9439         (all): Don't depend on check-macro-version.
9440         (CHECK_MACRO_VERSION): New macro.
9441         (stamp-po): Use it.
9442
9443         configmake: fix make -q problem
9444         * modules/configmake (configmake.h): Update configmake.h's time stamp
9445         even if the file does not change.  Otherwise, 'make -q' fails.
9446         Problem reported by Simon Josefsson in
9447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9448
9449 2011-08-11  Jim Meyering  <meyering@redhat.com>
9450
9451         git-version-gen: correct the advice in a comment
9452         * build-aux/git-version-gen: Correct comment.
9453         Don't recommend to list .tarball-version in .gitignore.
9454
9455 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         base64: fix off-by-one buffer size bug
9458         Problem and (trivial) fix reported by Gijs van Tulder in
9459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9460         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9461         * tests/test-base64.c (main): Catch the bug.
9462
9463 2011-08-10  Eric Blake  <eblake@redhat.com>
9464
9465         closein: correct comments
9466         * lib/closein.c (close_stdin): Improve comments.
9467
9468 2011-08-09  Bruno Haible  <bruno@clisp.org>
9469
9470         More tests for 'fseeko'.
9471         * tests/test-fseeko3.c: New file, from Eric Blake.
9472         * tests/test-fseeko3.sh: New file.
9473         * modules/fseeko-tests (Files): Add them.
9474         (TESTS): Add test-fseeko3.sh.
9475         (check_PROGRAMS): Add test-fseeko3.
9476
9477 2011-08-09  Eric Blake  <eblake@redhat.com>
9478
9479         fseeko: remove unneeded hack
9480         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9481
9482         fseeko: fix bug on glibc
9483         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9484         Reported by John W. Eaton.
9485
9486 2011-08-08  Bruno Haible  <bruno@clisp.org>
9487
9488         unictype/base: Fix interoperability with preinstalled libunistring.
9489         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9490         Reported by Simon Josefsson.
9491
9492 2011-08-08  Bruno Haible  <bruno@clisp.org>
9493
9494         iswblank: Detect declaration correctly.
9495         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9496         AC_CHECK_DECLS invocation.
9497
9498 2011-08-08  Bruno Haible  <bruno@clisp.org>
9499
9500         tcgetsid: Detect declaration correctly.
9501         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9502         AC_CHECK_DECLS invocation.
9503         Reported by Simon Josefsson.
9504
9505 2011-08-08  Eric Blake  <eblake@redhat.com>
9506
9507         largefile: fix typo that regressed large file support
9508         * modules/largefile (configure.ac-early): Fix section name.
9509
9510 2011-08-06  Karl Berry  <karl@gnu.org>
9511
9512         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9513         a separate module.
9514
9515 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9516
9517         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9518         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9519         get prototype for free.
9520
9521 2011-08-04  Bruno Haible  <bruno@clisp.org>
9522
9523         Tests for module 'pathmax'.
9524         * modules/pathmax-tests: New file.
9525         * tests/test-pathmax.c: New file.
9526
9527         canonicalize-lgpl: Support larger filenames on the Hurd.
9528         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9529         Reported by Paul Eggert.
9530
9531         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9532         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9533         * lib/chdir-long.h: Include pathmax.h.
9534         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9535         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9536         (PATH_MAX): Remove code that is done by pathmax.h.
9537         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9538         * lib/tmpfile.c: Add a comment.
9539         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9540         * modules/chdir-long (Depends-on): Add pathmax.
9541         * modules/getcwd (Depends-on): Add pathmax.
9542         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9543         is not defined.
9544         * doc/posix-headers/limits.texi: Mention the pathmax module.
9545         * NEWS: Mention the change.
9546
9547 2011-08-02  Bruno Haible  <bruno@clisp.org>
9548
9549         pthread_sigmask: Actually use results of gl_THREADLIB.
9550         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9551         gl_THREADLIB, not gl_[]THREADLIB.
9552         Reported by Eric Blake.
9553
9554 2011-08-02  Jim Meyering  <meyering@redhat.com>
9555
9556         maint.mk: relax the default _gl_TS_function_match regexp
9557         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9558         space between function name and "(" in an "extern" declaration.
9559         That would fail to match a decl with no space there: extern void foo();
9560
9561 2011-07-31  Iain Nicol  <iain@thenicols.net>
9562
9563         git-version-gen: document that EXTRA_DIST must include .version
9564         * build-aux/git-version-gen: In the how-to-use comment, document
9565         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9566         will fail when run from an unpacked distribution tarball.
9567
9568 2011-08-01  Bruno Haible  <bruno@clisp.org>
9569
9570         wctype-h: Fix last change.
9571         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9572         REPLACE_TOWLOWER to 0.
9573         Reported by Sam Steingold <sds@gnu.org>.
9574
9575 2011-07-31  Bruno Haible  <bruno@clisp.org>
9576
9577         frexpl: Update autoconf test.
9578         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9579         according to changes of 2011-06-20.
9580
9581 2011-07-31  Bruno Haible  <bruno@clisp.org>
9582
9583         sys_utsname: Add support for Minix.
9584         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9585         <sys/utsname.h>.
9586         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9587         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9588
9589 2011-07-31  Bruno Haible  <bruno@clisp.org>
9590
9591         strings: Add support for Minix.
9592         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9593         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9594         * doc/posix-headers/strings.texi: Document the Minix problem.
9595
9596 2011-07-31  Bruno Haible  <bruno@clisp.org>
9597
9598         wctype-h: Add support for Minix.
9599         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9600         REPLACE_TOWLOWER.
9601         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9602         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9603         REPLACE_ISWCNTRL.
9604
9605 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9606
9607         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9608         This is a performance improvement for 64-bit hosts: it causes the
9609         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9610
9611 2011-07-31  Bruno Haible  <bruno@clisp.org>
9612
9613         stdioext: Add support for Minix.
9614         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9615         * lib/fpurge.c (fpurge): Likewise.
9616         * lib/freadahead.c (freadahead): Likewise.
9617         * lib/freadable.c (freadable): Likewise.
9618         * lib/freading.c (freading): Likewise.
9619         * lib/freadptr.c (freadptr): Likewise.
9620         * lib/freadseek.c (freadptrinc): Likewise.
9621         * lib/fseeko.c (rpl_fseeko): Likewise.
9622         * lib/fseterr.c (fseterr): Likewise.
9623         * lib/fwritable.c (fwritable): Likewise.
9624         * lib/fwriting.c (fwriting): Likewise.
9625         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9626         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9627
9628 2011-07-31  Bruno Haible  <bruno@clisp.org>
9629
9630         errno: Port to Minix.
9631         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9632         ECONNABORTED are defined.
9633         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9634         GNULIB_defined_ECONNABORTED): New macros.
9635         * lib/strerror-override.h (strerror_override): Test also
9636         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9637         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9638         ECONNABORTED.
9639         * doc/posix-headers/errno.texi: Mention the Minix problem.
9640
9641 2011-07-31  Bruno Haible  <bruno@clisp.org>
9642
9643         Work around declaration collisions on Minix.
9644         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9645         defined, set REPLACE_MBSINIT.
9646         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9647         defined, set REPLACE_MBRTOWC.
9648         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9649         set REPLACE_MBRLEN.
9650         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9651         defined, set REPLACE_MBSRTOWCS.
9652         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9653         defined, set REPLACE_WCRTOMB.
9654         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9655         defined, set REPLACE_WCSRTOMBS.
9656
9657 2011-07-31  Bruno Haible  <bruno@clisp.org>
9658
9659         Add support for Minix with ACK compiler.
9660         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9661         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9662         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9663
9664 2011-07-31  Bruno Haible  <bruno@clisp.org>
9665
9666         Documentation about Minix.
9667         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9668         * doc/glibc-headers/*.texi: Likewise.
9669         * doc/posix-functions/*.texi: Likewise.
9670         * doc/glibc-functions/*.texi: Likewise.
9671
9672 2011-07-31  Bruno Haible  <bruno@clisp.org>
9673
9674         snippet/warn-on-use: Fix indentation.
9675         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9676
9677 2011-07-25  Jim Meyering  <meyering@redhat.com>
9678
9679         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9680         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9681         commands.
9682
9683 2011-07-27  Jim Meyering  <meyering@redhat.com>
9684
9685         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9686         * top/maint.mk (gl_extract_significant_defines_): Now that
9687         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9688         gnulib/lib/signal.in.h, and now that we recommend to
9689         define-if-undefined those two symbols in application code,
9690         we must filter them out of the "significant" list.
9691         This avoids a "make syntax-check" failure in coreutils.
9692
9693 2011-07-26  Eric Blake  <eblake@redhat.com>
9694
9695         warnings: add comments about previous patch
9696         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9697         * m4/include_next.m4: Likewise.
9698         * m4/warn-on-use.m4: Likewise.
9699         * m4/warnings.m4: Likewise, and simplify use.
9700         Suggested by Stefano Lattarini.
9701
9702         include-next, warnings: support older autoconf
9703         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9704         AS_VAR_PUSHDEF in a way that works with older autoconf.
9705         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9706         Reported by Daniel P. Berrange.
9707
9708 2011-07-25  Bruno Haible  <bruno@clisp.org>
9709
9710         fseek, ftell: Fix doc.
9711         * doc/posix-functions/fseek.texi: Reword statement about
9712         AC_SYS_LARGEFILE.
9713         * doc/posix-functions/ftell.texi: Likewise.
9714
9715 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9716             Bruno Haible  <bruno@clisp.org>
9717
9718         Add dependencies to the 'largefile' module.
9719         * modules/fopen (Depends-on): Add 'largefile'.
9720         * modules/freopen (Depends-on): Likewise.
9721         * modules/fseeko (Depends-on): Likewise.
9722         * modules/ftello (Depends-on): Likewise.
9723         * modules/glob (Depends-on): Likewise.
9724         * modules/lseek (Depends-on): Likewise.
9725         * modules/lstat (Depends-on): Likewise.
9726         * modules/mkostemp (Depends-on): Likewise.
9727         * modules/mkostemps (Depends-on): Likewise.
9728         * modules/mkstemp (Depends-on): Likewise.
9729         * modules/mkstemps (Depends-on): Likewise.
9730         * modules/open (Depends-on): Likewise.
9731         * modules/openat (Depends-on): Likewise.
9732         * modules/pread (Depends-on): Likewise.
9733         * modules/pwrite (Depends-on): Likewise.
9734         * modules/scandir (Depends-on): Likewise.
9735         * modules/stat (Depends-on): Likewise.
9736         * modules/tmpfile (Depends-on): Likewise.
9737         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9738         since the containing module now depends on the largefile module.
9739         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9740         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9741         off_t is fixed by gnulib.
9742         * doc/posix-functions/freopen.texi: Likewise.
9743         * doc/posix-functions/fseeko.texi: Likewise.
9744         * doc/posix-functions/fstatat.texi: Likewise.
9745         * doc/posix-functions/ftello.texi: Likewise.
9746         * doc/posix-functions/glob.texi: Likewise.
9747         * doc/posix-functions/lseek.texi: Likewise.
9748         * doc/posix-functions/lstat.texi: Likewise.
9749         * doc/posix-functions/mkstemp.texi: Likewise.
9750         * doc/posix-functions/open.texi: Likewise.
9751         * doc/posix-functions/openat.texi: Likewise.
9752         * doc/posix-functions/pread.texi: Likewise.
9753         * doc/posix-functions/pwrite.texi: Likewise.
9754         * doc/posix-functions/scandir.texi: Likewise.
9755         * doc/posix-functions/stat.texi: Likewise.
9756         * doc/posix-functions/tmpfile.texi: Likewise.
9757         * doc/glibc-functions/mkostemp.texi: Likewise.
9758         * doc/glibc-functions/mkostemps.texi: Likewise.
9759         * doc/glibc-functions/mkstemps.texi: Likewise.
9760
9761 2011-07-25  Bruno Haible  <bruno@clisp.org>
9762
9763         fcntl: Move AC_LIBOBJ invocation to module description.
9764         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9765         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9766
9767         fcntl: Remove call-in from fchdir.m4.
9768         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9770
9771         dup3: Remove potential call-in from fchdir.m4.
9772         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9774
9775         dup2: Move AC_LIBOBJ invocation to module description.
9776         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9777         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9778         Don't invoke AC_LIBOBJ.
9779         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9780
9781         dup2: Remove call-in from fchdir.m4.
9782         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9784
9785         fclose: Move AC_LIBOBJ invocation to module description.
9786         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9787         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9788         to 1.
9789         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9790
9791         fclose: Remove call-in from close.m4.
9792         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9793         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9794
9795         close: Move AC_LIBOBJ invocation to module description.
9796         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9797         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9798         1.
9799         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9800
9801         close: Remove call-in from fchdir.m4.
9802         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9804
9805         open: Move AC_LIBOBJ invocation to module description.
9806         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9807         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9808         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9809
9810         open: Remove call-in from fchdir.m4.
9811         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9813
9814         fchdir: Start to remove gl_REPLACE_* idiom.
9815         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9816         (gl_FUNC_FCHDIR): Invoke it.
9817
9818 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9819
9820         * lib/ftell.c (ftell): Comment out cast.
9821
9822         close: use gl_REPLACE_FCLOSE only if defined
9823         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9824         is defined.  The close module doesn't depend on the fclose module
9825         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9827         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9828
9829 2011-07-24  Jim Meyering  <meyering@redhat.com>
9830
9831         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9832         * tests/test-select.h (test_function): Declare as "static".
9833
9834 2011-07-24  Bruno Haible  <bruno@clisp.org>
9835
9836         doc: Mention the effects of AC_SYS_LARGEFILE.
9837         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9838         on this function.
9839         * doc/posix-functions/aio_error.texi: Likewise.
9840         * doc/posix-functions/aio_fsync.texi: Likewise.
9841         * doc/posix-functions/aio_read.texi: Likewise.
9842         * doc/posix-functions/aio_return.texi: Likewise.
9843         * doc/posix-functions/aio_suspend.texi: Likewise.
9844         * doc/posix-functions/aio_write.texi: Likewise.
9845         * doc/posix-functions/fgetpos.texi: Likewise.
9846         * doc/posix-functions/fopen.texi: Likewise.
9847         * doc/posix-functions/freopen.texi: Likewise.
9848         * doc/posix-functions/fsetpos.texi: Likewise.
9849         * doc/posix-functions/fstatvfs.texi: Likewise.
9850         * doc/posix-functions/ftruncate.texi: Likewise.
9851         * doc/posix-functions/ftw.texi: Likewise.
9852         * doc/posix-functions/getrlimit.texi: Likewise.
9853         * doc/posix-functions/glob.texi: Likewise.
9854         * doc/posix-functions/lio_listio.texi: Likewise.
9855         * doc/posix-functions/lockf.texi: Likewise.
9856         * doc/posix-functions/mkstemp.texi: Likewise.
9857         * doc/posix-functions/mmap.texi: Likewise.
9858         * doc/posix-functions/nftw.texi: Likewise.
9859         * doc/posix-functions/openat.texi: Likewise.
9860         * doc/posix-functions/opendir.texi: Likewise.
9861         * doc/posix-functions/posix_fadvise.texi: Likewise.
9862         * doc/posix-functions/posix_fallocate.texi: Likewise.
9863         * doc/posix-functions/pread.texi: Likewise.
9864         * doc/posix-functions/pwrite.texi: Likewise.
9865         * doc/posix-functions/readdir.texi: Likewise.
9866         * doc/posix-functions/readdir_r.texi: Likewise.
9867         * doc/posix-functions/rewinddir.texi: Likewise.
9868         * doc/posix-functions/scandir.texi: Likewise.
9869         * doc/posix-functions/seekdir.texi: Likewise.
9870         * doc/posix-functions/setrlimit.texi: Likewise.
9871         * doc/posix-functions/statvfs.texi: Likewise.
9872         * doc/posix-functions/telldir.texi: Likewise.
9873         * doc/posix-functions/tmpfile.texi: Likewise.
9874         * doc/posix-functions/truncate.texi: Likewise.
9875         * doc/glibc-functions/fallocate.texi: Likewise.
9876         * doc/glibc-functions/fstatfs.texi: Likewise.
9877         * doc/glibc-functions/fts_children.texi: Likewise.
9878         * doc/glibc-functions/fts_read.texi: Likewise.
9879         * doc/glibc-functions/getdirentries.texi: Likewise.
9880         * doc/glibc-functions/mkostemp.texi: Likewise.
9881         * doc/glibc-functions/mkostemps.texi: Likewise.
9882         * doc/glibc-functions/mkstemps.texi: Likewise.
9883         * doc/glibc-functions/preadv.texi: Likewise.
9884         * doc/glibc-functions/pwritev.texi: Likewise.
9885         * doc/glibc-functions/sendfile.texi: Likewise.
9886         * doc/glibc-functions/statfs.texi: Likewise.
9887
9888 2011-07-24  Bruno Haible  <bruno@clisp.org>
9889
9890         doc: Fix typo.
9891         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
9892
9893 2011-07-24  Bruno Haible  <bruno@clisp.org>
9894
9895         doc: Mention fsusage.
9896         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
9897
9898 2011-07-24  Bruno Haible  <bruno@clisp.org>
9899
9900         doc: Mention new glibc headers and functions.
9901         * doc/glibc-headers/gshadow.texi: New file.
9902         * doc/glibc-functions/endsgent.texi: New file.
9903         * doc/glibc-functions/fgetsgent.texi: New file.
9904         * doc/glibc-functions/fgetsgent_r.texi: New file.
9905         * doc/glibc-functions/getsgent.texi: New file.
9906         * doc/glibc-functions/getsgent_r.texi: New file.
9907         * doc/glibc-functions/getsgnam.texi: New file.
9908         * doc/glibc-functions/getsgnam_r.texi: New file.
9909         * doc/glibc-functions/putsgent.texi: New file.
9910         * doc/glibc-functions/setsgent.texi: New file.
9911         * doc/glibc-functions/sgetsgent.texi: New file.
9912         * doc/glibc-functions/sgetsgent_r.texi: New file.
9913         * doc/glibc-functions/malloc_info.texi: New file.
9914         * doc/glibc-functions/preadv.texi: New file.
9915         * doc/glibc-functions/pwritev.texi: New file.
9916         * doc/glibc-functions/register_printf_modifier.texi: New file.
9917         * doc/glibc-functions/register_printf_specifier.texi: New file.
9918         * doc/glibc-functions/register_printf_type.texi: New file.
9919         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
9920         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
9921         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
9922         * doc/glibc-functions/pthread_getname_np.texi: New file.
9923         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
9924         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
9925         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
9926         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
9927         * doc/glibc-functions/pthread_setname_np.texi: New file.
9928         * doc/glibc-functions/pthread_sigqueue.texi: New file.
9929         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
9930         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
9931         * doc/glibc-functions/qsort_r.texi: New file.
9932         * doc/glibc-functions/quick_exit.texi: New file.
9933         * doc/glibc-functions/syncfs.texi: New file.
9934         * doc/gnulib.texi: Include them.
9935         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
9936         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
9937         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
9938         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9939         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9940         * doc/glibc-functions/execvpe.texi: Likewise.
9941
9942 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9943
9944         ftell: don't include <unistd.h>
9945         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
9946         guaranteed to define off_t, and the ftell module depends on the
9947         stdio module.
9948
9949         ftell: do not assume wraparound signed arithmetic
9950         * lib/ftell.c: Include <limits.h>.
9951         (ftell): Don't assume wraparound signed arithmetic.
9952
9953 2011-07-24  Bruno Haible  <bruno@clisp.org>
9954
9955         close: No longer depend on module 'fclose'.
9956         * modules/close (Depends-on): Remove fclose.
9957         * NEWS: Mention the change.
9958         Suggested by Sam Steingold <sds@gnu.org>.
9959
9960 2011-07-24  Bruno Haible  <bruno@clisp.org>
9961
9962         fsusage: Enable large volume support on AIX >= 5.2.
9963         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
9964         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
9965         instead of STAT_STATVFS.
9966         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
9967
9968         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
9969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
9970         f_blocks field only on MacOS X.
9971
9972         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
9973         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
9974         * modules/fsusage (Depends-on): Add largefile.
9975
9976 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9977
9978         * README: Modernize discussion of signed integers.
9979         Assuming overflow wraparound is no longer safe.
9980         Mention ones' complement and signed magnitude.
9981
9982 2011-07-22  Bruno Haible  <bruno@clisp.org>
9983
9984         select tests, pselect tests: Refactor.
9985         * tests/test-select.h: New file, extracted from tests/test-select.c.
9986         (select_fn): New type.
9987         (test, do_select, do_select_nowait, do_select_wait, test_tty,
9988         test_connect_first, test_accept_first, test_pair, test_socket_pair,
9989         test_pipe): Add my_select argument.
9990         (test_function): Renamed from main. Add my_select argument.
9991         * tests/test-select.c: Move most code to tests/test-select.h. Include
9992         test-select.h.
9993         * modules/select-tests (Files): Add tests/test-select.h.
9994         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
9995         (my_select, main): New functions.
9996         * modules/pselect-tests (Files): Add tests/test-select.h,
9997         tests/macros.h, tests/signature.h.
9998         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
9999         (configure.ac): Check for <sys/wait.h>.
10000
10001 2011-07-22  Bruno Haible  <bruno@clisp.org>
10002
10003         sys_select tests: Check the signature of FD_*.
10004         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10005         signature tests from here...
10006         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10007         here.
10008         * modules/sys_select-tests (Files): Add tests/signature.h.
10009
10010 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10011
10012         largefile: new module, replacing large-inode
10013         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10014         * MODULES.html.sh: Add largefile, remove large-inode.
10015         * modules/largefile, m4/largefile.m4: New files.
10016         * modules/large-inode, m4/large-inode.m4: Remove.
10017
10018         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10020         implementations that use only 32 bits to count blocks.
10021         On typical hosts with 1024-byte blocks, this fails with file
10022         systems as small as 4 TiB.  Problem reported by Herb Wartens
10023         <http://debbugs.gnu.org/9140> and this should also fix a similar
10024         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10025
10026         large-inode: New module
10027         * MODULES.html.sh: Add it.
10028         * modules/large-inode, m4/large-inode.m4: New files.
10029
10030         extensions: Enable extensions on MacOS X 10.5 and later.
10031         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10032
10033 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10034
10035         file-has-acl: use acl_extended_file_nofollow if available
10036         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10037         (acl_extended_file): New macro.
10038         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10039         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10040
10041 2011-07-21  Bruno Haible  <bruno@clisp.org>
10042
10043         Declare system functions in a way that works with C++.
10044         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10045         declare fdopendir as extern "C".
10046         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10047         declare frexpl as extern "C".
10048         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10049         declare gai_strerror as extern "C".
10050         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10051         programs, declare gai_strerror as extern "C".
10052         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10053         declare getlogin_r as extern "C".
10054         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10055         as extern "C".
10056         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10057         declare ldexpl as extern "C".
10058         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10059         as extern "C".
10060         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10061         program, declare getmntinfo as extern "C".
10062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10063         stpncpy as extern "C".
10064         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10065         program, declare __xpg_strerror_r as extern "C".
10066         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10067         strndup as extern "C".
10068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10069         declare memset and bzero as extern "C".
10070         Reported by Sam Steingold <sds@gnu.org>.
10071
10072 2011-07-12  Jim Meyering  <meyering@redhat.com>
10073
10074         maint.mk: prohibit inclusion of "verify.h" without use
10075         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10076
10077 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10078
10079         timer-time: A new module to check for timer_settime()
10080         * m4/timer_time.m4: Check for the posix function.
10081         * modules/timer-time: Add the new module.
10082         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10083         Mention it.
10084
10085 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10086             Bruno Haible  <bruno@clisp.org>
10087
10088         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10089         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10090         not defined, assume POSIX threads and look for pthread_sigmask in
10091         $LIBS, without changing $CPPFLAGS.
10092
10093 2011-07-19  Bruno Haible  <bruno@clisp.org>
10094
10095         strstr: Update cross-compilation guess.
10096         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10097         CPUs, guess no, in view of glibc
10098         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10099         Suggested by Eric Blake. Reported by Reuben Thomas.
10100
10101 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10102
10103         getopt-gnu: suppress core dumps from detection code
10104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10105         to suppress core dumps that may well occur on glibc systems.
10106         * modules/getopt-gnu: Depend on nocrash.
10107
10108 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10109
10110         pthread_sigmask: ensure usleep is declared
10111         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10112         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10113
10114 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10115
10116         doc: Document NonStop portability issues.
10117         * doc/posix-functions/sigaction.texi (sigaction):
10118         * doc/posix-headers/signal.texi (signal.h):
10119         Document NonStop.  See Joachim Schmitz in
10120         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10121
10122 2011-07-15  Bruno Haible  <bruno@clisp.org>
10123
10124         ffsl, ffsll: Avoid unportable behaviour.
10125         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10126
10127 2011-07-15  Bruno Haible  <bruno@clisp.org>
10128
10129         ffs: More tests.
10130         * tests/test-ffs.c (NBITS): New macro.
10131         (main): Add more tests.
10132         * tests/test-ffsl.c (NBITS): New macro.
10133         (main): Add more tests.
10134         * tests/test-ffsll.c (NBITS): New macro.
10135         (main): Add more tests.
10136
10137 2011-07-15  Eric Blake  <eblake@redhat.com>
10138
10139         ffsl, ffsll: new modules
10140         * modules/ffsl: New file.
10141         * modules/ffsll: Likewise.
10142         * m4/ffsl.m4: Likewise.
10143         * m4/ffsll.m4: Likewise.
10144         * lib/ffsl.c: Likewise.
10145         * lib/ffsl.h: Likewise.
10146         * lib/ffsll.c: Likewise.
10147         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10148         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10149         * modules/string (Makefile.am): Substitute witnesses.
10150         * lib/strings.in.h (ffsl, ffsll): Declare.
10151         * modules/ffsl-tests: New test file.
10152         * modules/ffsll-tests: Likewise.
10153         * tests/test-ffsl.c: Likewise.
10154         * tests/test-ffsll.c: Likewise.
10155         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10156         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10157         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10158
10159         ffs: fix m4 prerequisite
10160         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10161
10162         ffs: avoid undefined behavior
10163         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10164         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10165         Reported by Bruno Haible.
10166
10167 2011-07-12  Bruno Haible  <bruno@clisp.org>
10168
10169         pthread_sigmask: Rely on module 'threadlib'.
10170         * modules/pthread_sigmask (Depends-on): Add threadlib.
10171         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10172         is defined.
10173
10174 2011-07-12  Bruno Haible  <bruno@clisp.org>
10175
10176         regex: Depend on module 'strcase'.
10177         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10178
10179 2011-07-12  Jim Meyering  <meyering@redhat.com>
10180
10181         warn-on-use: fix typo in file name
10182         * modules/snippet/warn-on-use (Files): Correct file name:
10183         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10184
10185 2011-07-12  Bruno Haible  <bruno@clisp.org>
10186
10187         strings: Document module.
10188         * doc/posix-headers/strings.texi: Mention module 'strings'.
10189
10190 2011-07-12  Bruno Haible  <bruno@clisp.org>
10191
10192         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10193         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10194         (Files, Makefile.am): Update.
10195         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10196         * modules/stdlib (Depends-on): Update.
10197
10198 2011-07-12  Bruno Haible  <bruno@clisp.org>
10199
10200         * NEWS: Mention the changes.
10201
10202         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10203         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10204         (Files, Makefile.am): Update.
10205         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10206         * modules/arpa_inet (Depends-on): Update.
10207         * modules/ctype (Depends-on): Update.
10208         * modules/dirent (Depends-on): Update.
10209         * modules/fcntl-h (Depends-on): Update.
10210         * modules/glob (Depends-on): Update.
10211         * modules/iconv-h (Depends-on): Update.
10212         * modules/inttypes-incomplete (Depends-on): Update.
10213         * modules/langinfo (Depends-on): Update.
10214         * modules/locale (Depends-on): Update.
10215         * modules/math (Depends-on): Update.
10216         * modules/netdb (Depends-on): Update.
10217         * modules/poll-h (Depends-on): Update.
10218         * modules/pty (Depends-on): Update.
10219         * modules/search (Depends-on): Update.
10220         * modules/signal (Depends-on): Update.
10221         * modules/spawn (Depends-on): Update.
10222         * modules/stdio (Depends-on): Update.
10223         * modules/stdlib (Depends-on): Update.
10224         * modules/string (Depends-on): Update.
10225         * modules/strings (Depends-on): Update.
10226         * modules/sys_file (Depends-on): Update.
10227         * modules/sys_ioctl (Depends-on): Update.
10228         * modules/sys_select (Depends-on): Update.
10229         * modules/sys_socket (Depends-on): Update.
10230         * modules/sys_stat (Depends-on): Update.
10231         * modules/sys_time (Depends-on): Update.
10232         * modules/sys_times (Depends-on): Update.
10233         * modules/sys_utsname (Depends-on): Update.
10234         * modules/sys_wait (Depends-on): Update.
10235         * modules/termios (Depends-on): Update.
10236         * modules/time (Depends-on): Update.
10237         * modules/unistd (Depends-on): Update.
10238         * modules/wchar (Depends-on): Update.
10239         * modules/wctype-h (Depends-on): Update.
10240         * MODULES.html.sh (Support for building libraries and executables):
10241         Update.
10242
10243         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10244         * modules/snippet/unused-parameter: Renamed from
10245         modules/unused-parameter.
10246         (Files, Makefile.am): Update.
10247         * build-aux/snippet/unused-parameter.h: Renamed from
10248         build-aux/unused-parameter.h.
10249         * modules/selinux-h (Depends-on): Update.
10250         * modules/unistr/base (Depends-on): Update.
10251         * MODULES.html.sh (Core language properties): Update.
10252
10253         Rename module 'link-warning' to 'snippet/link-warning'.
10254         * modules/snippet/link-warning: Renamed from modules/link-warning.
10255         (Files, Makefile.am): Update.
10256         * build-aux/snippet/link-warning.h: Renamed from
10257         build-aux/link-warning.h.
10258         * MODULES.html.sh (Support for building libraries and executables):
10259         Update.
10260
10261         Rename module 'c++defs' to 'snippet/c++defs'.
10262         * modules/snippet/c++defs: Renamed from modules/c++defs.
10263         (Files, Makefile.am): Update.
10264         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10265         * modules/arpa_inet (Depends-on): Update.
10266         * modules/ctype (Depends-on): Update.
10267         * modules/dirent (Depends-on): Update.
10268         * modules/fcntl-h (Depends-on): Update.
10269         * modules/glob (Depends-on): Update.
10270         * modules/iconv-h (Depends-on): Update.
10271         * modules/langinfo (Depends-on): Update.
10272         * modules/locale (Depends-on): Update.
10273         * modules/math (Depends-on): Update.
10274         * modules/netdb (Depends-on): Update.
10275         * modules/poll-h (Depends-on): Update.
10276         * modules/pty (Depends-on): Update.
10277         * modules/search (Depends-on): Update.
10278         * modules/signal (Depends-on): Update.
10279         * modules/spawn (Depends-on): Update.
10280         * modules/stdio (Depends-on): Update.
10281         * modules/stdlib (Depends-on): Update.
10282         * modules/string (Depends-on): Update.
10283         * modules/strings (Depends-on): Update.
10284         * modules/sys_ioctl (Depends-on): Update.
10285         * modules/sys_select (Depends-on): Update.
10286         * modules/sys_socket (Depends-on): Update.
10287         * modules/sys_stat (Depends-on): Update.
10288         * modules/sys_time (Depends-on): Update.
10289         * modules/sys_wait (Depends-on): Update.
10290         * modules/termios (Depends-on): Update.
10291         * modules/time (Depends-on): Update.
10292         * modules/unistd (Depends-on): Update.
10293         * modules/wchar (Depends-on): Update.
10294         * modules/wctype-h (Depends-on): Update.
10295
10296         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10297         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10298         (Files, Makefile.am): Update.
10299         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10300         * modules/argv-iter (Depends-on): Update.
10301         * modules/arpa_inet (Depends-on): Update.
10302         * modules/dirent (Depends-on): Update.
10303         * modules/fcntl-h (Depends-on): Update.
10304         * modules/fnmatch (Depends-on): Update.
10305         * modules/getopt-posix (Depends-on): Update.
10306         * modules/glob (Depends-on): Update.
10307         * modules/iconv-h (Depends-on): Update.
10308         * modules/inttypes-incomplete (Depends-on): Update.
10309         * modules/locale (Depends-on): Update.
10310         * modules/math (Depends-on): Update.
10311         * modules/netdb (Depends-on): Update.
10312         * modules/search (Depends-on): Update.
10313         * modules/signal (Depends-on): Update.
10314         * modules/spawn (Depends-on): Update.
10315         * modules/stdio (Depends-on): Update.
10316         * modules/stdlib (Depends-on): Update.
10317         * modules/string (Depends-on): Update.
10318         * modules/strings (Depends-on): Update.
10319         * modules/sys_socket (Depends-on): Update.
10320         * modules/sys_stat (Depends-on): Update.
10321         * modules/sys_time (Depends-on): Update.
10322         * modules/sys_times (Depends-on): Update.
10323         * modules/sys_utsname (Depends-on): Update.
10324         * modules/time (Depends-on): Update.
10325         * modules/unistd (Depends-on): Update.
10326         * modules/wchar (Depends-on): Update.
10327         * MODULES.html.sh (Support for building libraries and executables):
10328         Update.
10329
10330 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10331
10332         Improvements on _Noreturn and related modules.
10333
10334         modules/_Exit-tests: test _Noreturn too
10335         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10336         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10337         (main): Use them.
10338
10339         stdnoreturn, stdnoreturn-tests: remove modules
10340         They're not needed here and a bit premature for use elsewhere.  See
10341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10342         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10343         * tests/test-stdnoreturn.c: Remove files.
10344         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10345         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10346         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10347         and using noreturn.
10348         * modules/openat, modules/sigpipe-die, modules/xalloc:
10349         * modules/xmemdup0, modules/xstrtol:
10350         Remove dependency on stdnoreturn.
10351
10352         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10353         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10354         Reparenthesize to avoid GCC warning.
10355         Support Microsoft's syntax.
10356         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10357
10358         _Noreturn-tests: remove module
10359         * modules/_Noreturn-tests: Remove.
10360         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10361         * tests/test-_Noreturn.c: Remove.
10362         * tests/test-stdnoreturn.c: Merge from the old
10363         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10364
10365 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10366
10367         _Noreturn, stdnoreturn, and related modules.
10368
10369         * top/maint.mk: Adjust to new noreturn support.
10370         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10371         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10372
10373         xalloc: use stdnoreturn.h
10374         * lib/xalloc.h: Include <stdnoreturn.h>.
10375         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10376         * modules/xalloc (Depends-on): Add stdnoreturn.
10377
10378         xstrtol: use stdnoreturn.h
10379         * lib/xstrtol.h: Include <stdnoreturn.h>.
10380         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10381         * modules/xstrtol (Depends-on): Add stdnoreturn.
10382
10383         xmemdup0: use stdnoreturn.h
10384         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10385         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10386         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10387
10388         sigpipe-die: use stdnoreturn.h
10389         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10390         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10391         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10392
10393         openat: use stdnoreturn.h
10394         * lib/openat.h: Include <stdnoreturn.h>.
10395         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10396         * modules/openat (Depends-on): Add stdnoreturn.
10397
10398         * lib/openat-die.c (openat_save_fail): Modernize comment.
10399
10400         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10401
10402         * lib/glthread/thread.h: Modernize comment.
10403
10404         obstack: use _Noreturn
10405         * lib/obstack.c (__attribute__): Remove macro.
10406         (print_and_abort): Use _Noreturn.
10407
10408         c-stack: use _Noreturn
10409         * lib/c-stack.c (die, overflow_handler, segv_handler):
10410         Use _Noreturn rather than __attribute__((noreturn)).
10411
10412         argmatch-tests, exclude_tests: use _Noreturn
10413         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10414         Remove.
10415         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10416
10417         stdlib: use _Noreturn
10418         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10419         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10420         * modules/stdlib (Depends-on): Add _Noreturn.
10421         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10422
10423         stdnoreturn-tests: new module
10424         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10425
10426         stdnoreturn: new module
10427         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10428         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10429
10430         _Noreturn-tests: new module
10431         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10432
10433         _Noreturn: new module
10434         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10435         New section, mentioning it.
10436         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10437
10438         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10439
10440 2011-07-11  Eric Blake  <eblake@redhat.com>
10441
10442         ffs: new module
10443         * modules/ffs: New file.
10444         * m4/ffs.m4: Likewise.
10445         * lib/ffs.c: Likewise.
10446         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10447         * modules/strings (Makefile.am): Substitute witness.
10448         (Depends-on): Add c++defs.
10449         * lib/strings.in.h (ffs): Declare.
10450         * modules/ffs-tests: New test file.
10451         * tests/test-ffs.c: Test new module.
10452         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10453         * doc/posix-functions/ffs.texi (ffs): Likewise.
10454
10455         regex: avoid compiler warning
10456         * lib/regex.c (includes): Include <strings.h>, for use of
10457         strcasecmp in regcomp.c.
10458         Reported by Joachim Schmitz.
10459
10460 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10461
10462         stdint: respect system's intmax_t if INTMAX_MAX
10463         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10464         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10465         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10466         long but int64_t is long long, and where we will clash with the
10467         system intmax_t if we override it.  See
10468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10469         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10470         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10471         similarly for UINTMAX_C.
10472
10473 2011-07-08  Bruno Haible  <bruno@clisp.org>
10474
10475         pthread_sigmask tests: Avoid a compiler warning.
10476         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10477         non-zero.
10478
10479         sigprocmask tests: A better way to avoid a compiler warning.
10480         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10481         (main): Complain if system() returns non-zero.
10482         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10483
10484 2011-07-08  Bruno Haible  <bruno@clisp.org>
10485
10486         pthread_sigmask: Work around IRIX bug.
10487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10488         bug.
10489         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10490         there may be unblocked pending signals.
10491         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10492
10493 2011-07-08  Bruno Haible  <bruno@clisp.org>
10494
10495         pthread_sigmask: Work around Cygwin bug.
10496         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10497         bug.
10498         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10499         the system's pthread_sigmask function.
10500         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10501
10502 2011-07-08  Bruno Haible  <bruno@clisp.org>
10503
10504         pthread_sigmask: Work around bug in single-threaded implementation.
10505         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10506         FreeBSD, HP-UX, Solaris bug.
10507         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10508         * lib/pthread_sigmask.c: Include <stddef.h>.
10509         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10510         the system's pthread_sigmask function.
10511         * modules/pthread_sigmask (configure.ac): Invoke
10512         gl_PREREQ_PTHREAD_SIGMASK.
10513         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10514         HP-UX, Solaris.
10515
10516 2011-07-08  Eric Blake  <eblake@redhat.com>
10517
10518         test-sigprocmask: avoid compiler warning
10519         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10520         * tests/test-sigprocmask.c (main): Use it to silence warning.
10521         Reported by Jim Meyering.
10522
10523         test-snprintf: avoid compiler warning
10524         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10525         * tests/test-vsnprintf.c (main): Likewise.
10526         Reported by Jim Meyering.
10527
10528 2011-07-08  Bruno Haible  <bruno@clisp.org>
10529
10530         Tests for module 'pthread_sigmask'.
10531         * modules/pthread_sigmask-tests: New file.
10532         * tests/test-pthread_sigmask1.c: New file, based on
10533         tests/test-sigprocmask.c.
10534         * tests/test-pthread_sigmask2.c: New file.
10535
10536 2011-07-08  Jim Meyering  <meyering@redhat.com>
10537
10538         test-getopt.h: avoid warning about an unused variable
10539         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10540
10541 2011-07-07  Jim Meyering  <meyering@redhat.com>
10542
10543         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10544         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10545         now that it no longer contains leading TABs.
10546         Remove unused "url=FIXME" statement.
10547
10548 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10549
10550         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10551         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10552         When gl_THREADLIB is not in use, assume that the POSIX sematics
10553         are desired.  This is better for Emacs, which uses POSIX semantics
10554         on GNUish and/or POSIXish platforms, and does not use threads at
10555         all otherwise.
10556
10557         pthread_sigmask: fix typo when testing for libraries
10558         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10559         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10560
10561 2011-07-08  Eric Blake  <eblake@redhat.com>
10562
10563         fts: introduce FTS_NOATIME
10564         * lib/fts_.h (FTS_NOATIME): New bit flag.
10565         (FTS_OPTIONMASK): Adjust.
10566         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10567         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10568
10569 2011-07-08  Bruno Haible  <bruno@clisp.org>
10570
10571         Tests for module 'thread'.
10572         * modules/thread-tests: New file.
10573         * tests/test-thread_self.c: New file.
10574         * tests/test-thread_create.cc: New file.
10575
10576 2011-07-08  Bruno Haible  <bruno@clisp.org>
10577
10578         thread: Avoid gcc warnings when using gl_thread_self().
10579         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10580         'void *'.
10581         (gl_thread_self_pointer): Update.
10582
10583 2011-07-07  Bruno Haible  <bruno@clisp.org>
10584
10585         signal-c++-tests: Check declaration of pthread_sigmask.
10586         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10587         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10588         $(LIB_PTHREAD_SIGMASK).
10589
10590 2011-07-07  Bruno Haible  <bruno@clisp.org>
10591
10592         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10593         * lib/signal.in.h (pthread_sigmask): Override if
10594         REPLACE_PTHREAD_SIGMASK is 1.
10595         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10596         REPLACE_PTHREAD_SIGMASK.
10597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10598         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10599         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10600         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10601         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10602
10603 2011-07-07  Bruno Haible  <bruno@clisp.org>
10604
10605         pthread_sigmask: Ensure declaration in <signal.h>.
10606         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10607         include <pthread.h>.
10608         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10609         problem.
10610
10611 2011-07-07  Bruno Haible  <bruno@clisp.org>
10612
10613         pthread_sigmask: Document the module.
10614         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10615
10616 2011-07-07  Bruno Haible  <bruno@clisp.org>
10617
10618         pthread_sigmask: Follow gnulib conventions.
10619         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10620         gl_PTHREAD_SIGMASK.
10621         * modules/pthread_sigmask (configure.ac): Update.
10622
10623 2011-07-07  Bruno Haible  <bruno@clisp.org>
10624
10625         pthread_sigmask: Make declaration C++ safe.
10626         * lib/signal.in.h: In two special conditions, just do an #include_next.
10627         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10628         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10629         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10630         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10631         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10632         not REPLACE_PTHREAD_MASK.
10633         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10634         not REPLACE_PTHREAD_MASK.
10635         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10636
10637 2011-07-07  Bruno Haible  <bruno@clisp.org>
10638
10639         pthread_sigmask: Fix return value.
10640         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10641         * lib/pthread_sigmask.c: New file.
10642         * modules/pthread_sigmask (Files): Add it.
10643         (configure.ac): Invoke AC_LIBOBJ.
10644
10645 2011-07-07  Eric Blake  <eblake@redhat.com>
10646
10647         getopt: more portable argv creation
10648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10649         const, use char arrays rather than strings.
10650         Suggested by Paul Eggert.
10651
10652 2011-07-07  Bruno Haible  <bruno@clisp.org>
10653
10654         Tests for module 'sigprocmask'.
10655         * modules/sigprocmask-tests: New file.
10656         * tests/test-sigprocmask.c: New file.
10657
10658 2011-07-07  Bruno Haible  <bruno@clisp.org>
10659
10660         float tests: Tweak.
10661         * tests/test-float.c (main): Tweak skip message.
10662
10663 2011-07-07  Eric Blake  <eblake@redhat.com>
10664
10665         getopt: avoid compiler warning during configure
10666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10667         assigning string literals to non-const pointer.
10668
10669         getopt-gnu: avoid crash in glibc getopt
10670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10671         * tests/test-getopt.h (test_getopt): Enhance test.
10672         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10673         * doc/posix-functions/getopt.texi (getopt): Document it.
10674         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10675         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10676         Likewise.
10677
10678 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10679
10680         getopt: handle W; without long options in getopt [BZ #12922]
10681         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10682         but no long options are defined, just return 'W'.
10683
10684 2011-07-07  Bruno Haible  <bruno@clisp.org>
10685
10686         Avoid literal tabs.
10687         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10688         variable containing a tab instead of a literal tab.
10689         Reported by Jim Meyering.
10690
10691 2011-07-07  Bruno Haible  <bruno@clisp.org>
10692
10693         Comments.
10694         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10695
10696 2011-07-06  Bruno Haible  <bruno@clisp.org>
10697
10698         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10699         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10700         <winsock2.h>.
10701         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10702         lib/sys_socket.in.h.
10703         (close, gethostname): Hide declarations from <winsock2.h>.
10704         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10705         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10706         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10707         (select): Don't override if gnulib's <sys/select.h> was already
10708         included.
10709         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10710         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10711         setsockopt, shutdown, select): Tweak indentation.
10712
10713 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10714
10715         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10716         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10717         in an application that does not use the sys_select module.
10718
10719 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10720
10721         poll: do not return 0 on timeout=-1
10722         * lib/poll.c: Loop with yield if no events occured
10723
10724 2011-07-06  Eric Blake  <eblake@redhat.com>
10725
10726         pthread_sigmask: always replace when not using pthread
10727         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10728         replacement when using some threading other than pthread.  Fix
10729         logic bug.
10730
10731 2011-07-06  Bruno Haible  <bruno@clisp.org>
10732
10733         Comments.
10734         * m4/printf.m4: Update comments about mingw.
10735
10736 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10737
10738         sys_select: define sigset_t more portably
10739         * lib/sys_select.in.h: Always include <sys/types.h>, since
10740         we now need sigset_t and mingw defines it there.
10741         Include <signal.h> before split inclusion guard, to avoid
10742         mishaps on Solaris, whose <signal.h> eventually includes us.
10743         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10744         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10745         which come from ...
10746         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10747         gl_CHECK_TYPE_SIGSET_T.
10748         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10749         does the real work.
10750         * modules/sys_select (Depends-on): Add 'signal'.
10751
10752         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10753         Suggested by Bruno Haible.
10754
10755         pselect: Use pthread_sigmask, not sigprocmask.
10756         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10757         multithreaded apps better than sigprocmask does.
10758         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10759         sigprocmask directly.
10760
10761 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10762
10763         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10764         Don't #undef,  since we don't need any underlying pselect.
10765         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10766         (Depends-on): Add select.
10767         (Link): Add $(LIBSOCKET).
10768         These changes suggested by Bruno Haible.
10769
10770         pselect: document better
10771         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10772         * doc/posix-functions/pselect.texi (pselect): Document new module.
10773
10774         pthread_sigmask: new module
10775         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10776         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10777         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10778         This is done only as a macro; I don't know how well that'll
10779         work for C++.  Move <sys/types.h> include before the include_next,
10780         to avoid mishap on Solaris.
10781         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10782         * modules/signal (Makefile.am): Substitute the check's results.
10783         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10784
10785         test-pselect: new module
10786         * modules/pselect-tests, tests/test-pselect.c: New files.
10787         * tests/test-select.c, tests/test-sys_select-c++.cc:
10788         If TEST_PSELECT is defined, test pselect instead of testing select.
10789
10790         * tests/test-sys_select.c (sigset_t): Test for it, too.
10791         Suggested by Bruno Haible.
10792
10793 2011-07-05  Eric Blake  <eblake@redhat.com>
10794
10795         snprintf: guarantee %1$d, for libintl
10796         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10797         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10798         * doc/posix-functions/snprintf.texi (snprintf): Update.
10799         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10800         * tests/test-snprintf.c (main): Enhance test.
10801         * tests/test-vsnprintf.c (main): Likewise.
10802
10803 2011-07-05  Jim Meyering  <meyering@redhat.com>
10804
10805         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10806         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10807         per Bruno's request, to accommodate this idiom (no space after "#")
10808         even when the function is inside an #if block:
10809         char *
10810         gets (char *s)
10811         #undef gets
10812         {
10813           ...
10814         }
10815
10816 2011-07-04  Jim Meyering  <meyering@redhat.com>
10817
10818         maint: indent with spaces, not TABs, and add a rule to check this
10819         * tests/test-userspec.c: Indent with spaces, not TABs.
10820         * tests/test-argp.c: Likewise.
10821         * tests/test-c-stack2.sh: Likewise.
10822         * tests/test-parse-duration.sh: Likewise
10823         * m4/strtod.m4: Likewise.
10824         * m4/alloca.m4: Likewise.
10825         * m4/pselect.m4: Likewise.
10826         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10827
10828 2011-07-03  Jim Meyering  <meyering@redhat.com>
10829
10830         maint.mk: correct omissions in prohibit_argmatch_without_use check
10831         This rule would mistakenly report that argmatch.h is included without
10832         use even when both the argmatch and invalid_arg macro were used.
10833         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10834         of argmatch and invalid_arg.
10835
10836 2011-07-03  Bruno Haible  <bruno@clisp.org>
10837
10838         Comments about EINTR.
10839         * lib/safe-read.h: Explain the purpose of this module.
10840         * lib/safe-write.h: Likewise.
10841         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
10842         module.
10843         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
10844         module.
10845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10846
10847 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10848
10849         xnanosleep: Rewrite to use new dtotimespec module.
10850         It has the conversion code that used to be in xnanosleep.
10851         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
10852         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
10853         (TIME_T_MAX): Remove.
10854         (xnanosleep): Rewrite in terms of dtotimespec.
10855         * modules/xnanosleep (Depends-on): Add dtotimespec.
10856         Remove intprops, stdbool.
10857
10858         timespec-add, timespec-sub: new modules
10859         * lib/timespec.h (timespec_add, timespec_sub): New decls.
10860         * lib/timespec-add.c, lib/timespec-sub.c:
10861         * modules/timespec-add, modules/timespec-sub: New files.
10862
10863         dtotimespec: new module
10864         * lib/timespec.h (dtotimespec): New decl.
10865         * lib/dtotimespec.c, modules/dtotimespec: New files.
10866
10867         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
10868
10869         pselect: new module
10870         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
10871         (pselect): New decls.
10872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
10873         since the standard pselect decl uses 'restrict'.
10874         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
10875         HAVE_PSELECT, REPLACE_PSELECT.
10876         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
10877         HAVE_PSELECT, REPLACE_PSELECT.
10878         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
10879
10880         sys_select: don't depend on sys_socket
10881         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
10882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
10883         This fix works on GNU and GNU-like platforms, but has not been tested
10884         on native Windows.
10885         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
10886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
10887         gl_HEADER_SYS_SOCKET.
10888         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
10889         gl_PREREQ_SYS_H_WINSOCK2.
10890
10891 2011-06-29  Eric Blake  <eblake@redhat.com>
10892
10893         pipe2: fix C89 compile problem
10894         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
10895         Reported by Bruno Haible.
10896
10897         pipe, pipe2: don't corrupt fd on error
10898         * lib/pipe.c (pipe): Leave fd unchanged on error.
10899         * lib/pipe2.c (pipe2): Likewise.
10900         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
10901         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10902
10903 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
10904
10905         mmap-anon: do not use regular expressions inadvertently
10906         * m4/mmap-anon.m4: Remove trailing period from strings sought
10907         in the output.
10908
10909 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
10910
10911         nanosleep: fix integer overflow problem
10912         * lib/nanosleep.c (my_usleep): Don't assume signed integer
10913         arithmetic wraps around on overflow.
10914
10915         nanosleep: simplify carrying
10916         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
10917         first call to the underyling nanosleep, not for the last one.
10918         This doesn't fix any bugs, but it simplifies the computation of
10919         the remaining delay.  Found while auditing integer overflow issues.
10920
10921         dup2: remove test for existence of fcntl
10922         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
10923         "#if HAVE_FCNTL", in the configure-time test program.
10924         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
10925         and therefore speeds up "configure" a bit.  Found while
10926         adding the dup2 module to Emacs.
10927
10928 2011-06-24  Eric Blake  <eblake@redhat.com>
10929
10930         maint.mk: enhance useless header checks
10931         * top/maint.mk (_sc_header_without_use): Check both include
10932         styles.
10933         (sc_prohibit_assert_without_use)
10934         (sc_prohibit_close_stream_without_use)
10935         (sc_prohibit_getopt_without_use)
10936         (sc_prohibit_quotearg_without_use)
10937         (sc_prohibit_quote_without_use)
10938         (sc_prohibit_long_options_without_use)
10939         (sc_prohibit_inttostr_without_use)
10940         (sc_prohibit_ignore_value_without_use)
10941         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
10942         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
10943         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
10944         (sc_prohibit_hash_pjw_without_use)
10945         (sc_prohibit_safe_read_without_use)
10946         (sc_prohibit_argmatch_without_use)
10947         (sc_prohibit_canonicalize_without_use)
10948         (sc_prohibit_root_dev_ino_without_use)
10949         (sc_prohibit_openat_without_use)
10950         (sc_prohibit_c_ctype_without_use)
10951         (sc_prohibit_signal_without_use)
10952         (sc_prohibit_stdio--_without_use)
10953         (sc_prohibit_stdio-safer_without_use)
10954         (sc_prohibit_strings_without_use)
10955         (sc_prohibit_intprops_without_use)
10956         (sc_prohibit_stddef_without_use)
10957         (sc_prohibit_xfreopen_without_use): Update clients.
10958
10959 2011-06-24  Jim Meyering  <meyering@redhat.com>
10960
10961         syntax-check: keep one maint.mk rule in sync with its header
10962         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
10963         of the bug Eric has just fixed, with today's commit 25e4c2ec.
10964         I prefer to avoid temporary files here, so use <(...), but that
10965         is not supported by /bin/sh, so...
10966         (SHELL): Define to /bin/bash.
10967
10968 2011-06-24  Eric Blake  <eblake@redhat.com>
10969
10970         maint.mk: update sc_prohibit_intprops_without_use
10971         * top/maint.mk (_intprops_names): Match recent changes.
10972
10973 2011-06-24  Bruno Haible  <bruno@clisp.org>
10974
10975         strerror-override: No-op tweak.
10976         * lib/strerror-override.h (strerror_override): Reorder conditions,
10977         for consistency with lib/strerror-override.c.
10978
10979 2011-06-23  Eric Blake  <eblake@redhat.com>
10980
10981         maint.mk: test further PATH_MAX issues
10982         * top/maint.mk (sc_prohibit_path_max_array): Rename...
10983         (sc_prohibit_path_max_allocation): ...and also test alloca.
10984         Suggested by Jim Meyering.
10985
10986 2011-06-22  Eric Blake  <eblake@redhat.com>
10987
10988         maint.mk: add syntax-check to avoid char[PATH_MAX]
10989         * top/maint.mk (sc_prohibit_path_max_array): New rule.
10990
10991         stat: be robust to PATH_MAX definition
10992         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
10993         * modules/stat (Depends-on): Add verify.
10994
10995         link: work around IRIX bug
10996         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
10997         * lib/link.c (rpl_link): Work around it.
10998         * tests/test-link.h (test_link): Enhance test.
10999         * doc/posix-functions/link.texi (link): Document the bug.
11000
11001         getopt: silence clang warning
11002         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11003         dereference.
11004         Reported by Gustavo Martin Domato.
11005
11006 2011-06-22  Jim Meyering  <meyering@redhat.com>
11007
11008         bootstrap: do not insert a blank line into each .gitignore file
11009         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11010
11011 2011-06-21  Eric Blake  <eblake@redhat.com>
11012
11013         perror: test for output mismatch
11014         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11015         perror on IRIX.
11016
11017         strerror_r: fix OpenBSD behavior on out-of-range
11018         * lib/strerror_r.c (strerror_r): Always use maximal string.
11019         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11020
11021         strerror_r: fix OpenBSD behavior on 0
11022         * lib/strerror-override.c (strerror_override): Also override 0
11023         when needed.
11024         * lib/strerror-override.h (strerror_override): Likewise.
11025         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11026         earlier.
11027         * lib/strerror_r.c (strerror_r): Likewise.
11028         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11029         behavior...
11030         (gl_FUNC_STRERROR_0): ...into new macro.
11031         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11032         is overridden.
11033         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11034         * modules/strerror-override (Files): Add strerror.m4.
11035         (configure.ac): Also provide override for 0 when needed.
11036         * doc/posix-functions/strerror.texi (strerror): Document this.
11037         * doc/posix-functions/perror.texi (perror): Likewise.
11038
11039         perror: adjust array size
11040         * modules/perror (Depends-on): Add strerror-override.
11041         * lib/perror.c (perror): Use it to avoid magic number.
11042
11043         strerror-override: reduce size
11044         * lib/strerror-override.c (strerror_override): Use fewer lines.
11045
11046 2011-06-20  Bruno Haible  <bruno@clisp.org>
11047
11048         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11049         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11050
11051 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11052
11053         alloca: port to compilers that can optimize like GCC 4.6.0
11054         * lib/alloca.c (find_stack_direction): New signature, taken from
11055         Autoconf git.  This works with GCC 4.6.0.  This code should never
11056         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11057         be used with other compilers that optimize as well as GCC 4.6.0 does.
11058         (alloca): Adjust to new signature.
11059         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11060         New macro, which patches Autoconf in a similar way.
11061
11062         c-stack: stop worrying about stack direction
11063         * lib/c-stack.c (find_stack_direction): Remove.
11064         (segv_handler): Don't worry about stack direction growth, as it's
11065         too much of a pain to configure this correctly, given how compilers
11066         are optimizing-away our stack-growth detection code.  Instead, assume
11067         that any access to just before or just after the stack is OK.
11068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11069         Don't require AC_FUNC_ALLOCA; no longer needed.
11070
11071 2011-06-20  Eric Blake  <eblake@redhat.com>
11072
11073         test-stat: don't allocate PATH_MAX bytes
11074         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11075         PATH_MAX-sized buffer.
11076         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11077         * modules/stat-tests (Depends-on): Likewise.
11078         * tests/test-fstatat.c (includes): Drop pathmax.h.
11079         * tests/test-stat.c (includes): Likewise.
11080         Reported by Bruno Haible.
11081
11082 2011-06-20  Bruno Haible  <bruno@clisp.org>
11083
11084         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11085         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11086         * lib/float.c: New file.
11087         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11088         REPLACE_FLOAT_LDBL.
11089         * modules/float (Files): Add lib/float.c.
11090         (configure.ac): Invoke AC_LIBOBJ.
11091         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11092
11093 2011-06-20  Bruno Haible  <bruno@clisp.org>
11094
11095         Tests for module 'float'.
11096         * modules/float-tests: New file.
11097         * tests/test-float.c: New file.
11098
11099 2011-06-19  Bruno Haible  <bruno@clisp.org>
11100
11101         isinf: Coding style.
11102         * lib/isinf.c: Use GNU coding style.
11103
11104 2011-06-19  Bruno Haible  <bruno@clisp.org>
11105
11106         linkat test: Avoid test failure on AIX 7.1.
11107         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11108         * tests/test-link.h (test_link): Likewise.
11109
11110 2011-06-19  Bruno Haible  <bruno@clisp.org>
11111
11112         pread test: Avoid test failure on OpenBSD 4.9.
11113         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11114
11115 2011-06-19  Bruno Haible  <bruno@clisp.org>
11116
11117         sprintf-posix: Fix test failure on AIX 7.1.
11118         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11119         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11120         on AIX.
11121         * doc/posix-functions/fprintf.texi: Likewise.
11122         * doc/posix-functions/printf.texi: Likewise.
11123         * doc/posix-functions/snprintf.texi: Likewise.
11124         * doc/posix-functions/sprintf.texi: Likewise.
11125         * doc/posix-functions/vdprintf.texi: Likewise.
11126         * doc/posix-functions/vfprintf.texi: Likewise.
11127         * doc/posix-functions/vprintf.texi: Likewise.
11128         * doc/posix-functions/vsnprintf.texi: Likewise.
11129         * doc/posix-functions/vsprintf.texi: Likewise.
11130
11131 2011-06-19  Bruno Haible  <bruno@clisp.org>
11132
11133         roundl-ieee: Fix test failure on AIX 7.1.
11134         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11135         * doc/posix-functions/roundl.texi: Mention problem with negative
11136         arguments.
11137
11138 2011-06-19  Bruno Haible  <bruno@clisp.org>
11139
11140         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11141         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11142         * doc/posix-functions/round.texi: Mention problem with negative
11143         arguments.
11144         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11145
11146 2011-06-19  Bruno Haible  <bruno@clisp.org>
11147
11148         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11149         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11150         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11151         * doc/posix-functions/roundf.texi: Mention problem with negative
11152         arguments.
11153         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11154
11155 2011-06-19  Bruno Haible  <bruno@clisp.org>
11156
11157         ceilf-ieee: Work around bug on MacOS X 10.5.
11158         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11159
11160         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11161         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11162         IEEE compliant, avoid compiler optimizations.
11163         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11164         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11165         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11166         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11167         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11168         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11169         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11171         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11172         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11173
11174 2011-06-19  Bruno Haible  <bruno@clisp.org>
11175
11176         ceilf-ieee: Work around bug on AIX 7.1.
11177         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11178         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11179
11180 2011-06-19  Bruno Haible  <bruno@clisp.org>
11181
11182         ceil-ieee: Work around bug on AIX 7.1.
11183         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11184         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11185
11186 2011-06-18  Bruno Haible  <bruno@clisp.org>
11187
11188         fsync test: Avoid test failure on MacOS X and AIX.
11189         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11190         EINVAL.
11191
11192 2011-06-18  Bruno Haible  <bruno@clisp.org>
11193
11194         openat, fdopendir tests: Fix link errors.
11195         * modules/openat-tests (Depends-on): Add progname.
11196         * modules/fdopendir-tests (Depends-on): Likewise.
11197         * tests/test-fchownat.c: Include progname.h.
11198         (main): Call set_program_name.
11199         * tests/test-fstatat.c: Include progname.h.
11200         (main): Call set_program_name.
11201         * tests/test-mkdirat.c: Include progname.h.
11202         (main): Call set_program_name.
11203         * tests/test-openat.c: Include progname.h.
11204         (main): Call set_program_name.
11205         * tests/test-unlinkat.c: Include progname.h.
11206         (main): Call set_program_name.
11207         * tests/test-fdopendir.c: Include progname.h.
11208         (main): Call set_program_name.
11209
11210 2011-06-18  Bruno Haible  <bruno@clisp.org>
11211
11212         Doc update.
11213         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11214         HP-UX.
11215         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11216
11217 2011-06-18  Bruno Haible  <bruno@clisp.org>
11218
11219         getcwd tests: Avoid compilation error on HP-UX 11.31.
11220         * modules/getcwd-tests (Depends-on): Add pathmax.
11221         * tests/test-getcwd.c: Include pathmax.h.
11222
11223 2011-06-18  Bruno Haible  <bruno@clisp.org>
11224
11225         isfinite, isinf: Fix link error on AIX 6 and 7.
11226         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11227         needed, also test the macro with a 'float' argument.
11228         * m4/isinf.m4 (gl_ISINF): Likewise.
11229
11230 2011-06-18  Bruno Haible  <bruno@clisp.org>
11231
11232         getloadavg: Don't clobber LIBS. Regression from previous commit.
11233         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11234         AC_CHECK_LIB from here...
11235         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11236         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11237         gl_func_getloadavg_done.
11238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11239
11240 2011-06-18  Bruno Haible  <bruno@clisp.org>
11241
11242         clean-temp: Improve documentation.
11243         * lib/clean-temp.h: Explain better how to use this module.
11244         Reported by John Darrington <john@darrington.wattle.id.au>.
11245
11246 2011-06-17  Bruno Haible  <bruno@clisp.org>
11247
11248         pread, pwrite: Avoid cc warning on AIX.
11249         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11250         (pwrite): Likewise.
11251
11252 2011-06-17  Bruno Haible  <bruno@clisp.org>
11253
11254         spawn-pipe tests: Fix link error.
11255         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11257
11258 2011-06-17  Bruno Haible  <bruno@clisp.org>
11259
11260         Tests: Remove unnecessary dependency.
11261         * modules/canonicalize-tests (Depends-on): Remove progname.
11262         * modules/chown-tests (Depends-on): Likewise.
11263         * modules/dirname-tests (Depends-on): Likewise.
11264         * modules/fdopendir-tests (Depends-on): Likewise.
11265         * modules/fdutimensat-tests (Depends-on): Likewise.
11266         * modules/hash-tests (Depends-on): Likewise.
11267         * modules/lchown-tests (Depends-on): Likewise.
11268         * modules/linkat-tests (Depends-on): Likewise.
11269         * modules/renameat-tests (Depends-on): Likewise.
11270         * modules/spawn-pipe-tests (Depends-on): Likewise.
11271         * modules/utimensat-tests (Depends-on): Likewise.
11272
11273 2011-06-17  Bruno Haible  <bruno@clisp.org>
11274
11275         spawn-pipe tests: Fix link error.
11276         * tests/test-spawn-pipe-child.c: Undefine fflush.
11277
11278 2011-06-17  Bruno Haible  <bruno@clisp.org>
11279
11280         Fix tests link errors.
11281         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11282         * modules/chown-tests (Makefile.am): Don't link test-chown with
11283         LIBINTL.
11284         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11285         LIBINTL.
11286         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11287         LIBINTL.
11288         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11289         LIBINTL.
11290
11291 2011-06-16  Bruno Haible  <bruno@clisp.org>
11292
11293         crypto/gc-sha1: Fix recent regression.
11294         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11295         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11296
11297         crypto/gc-md5: Fix recent regression.
11298         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11299
11300         crypto/gc-md4: Fix recent regression.
11301         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11302         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11303
11304         crypto/gc-arctwo: Fix recent regression.
11305         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11306         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11307
11308         crypto/gc-rijndael: Fix recent regression.
11309         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11310         (configure.ac): Invoke AC_LIBOBJ here.
11311         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11313
11314         crypto/gc-hmac-sha1: Fix recent regression.
11315         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11316         (configure.ac): Invoke AC_LIBOBJ here.
11317         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11319
11320         crypto/gc-hmac-md5: Fix recent regression.
11321         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11322         (configure.ac): Invoke AC_LIBOBJ here.
11323         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11325
11326         crypto/gc-des: Fix recent regression.
11327         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11328         (configure.ac): Invoke AC_LIBOBJ here.
11329         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11331
11332         crypto/gc-arcfour: Fix recent regression.
11333         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11334         (configure.ac): Invoke AC_LIBOBJ here.
11335         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11337
11338 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11339
11340         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11341         After the 2011-05-21 change, this macro requires
11342         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11343         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11344
11345 2011-06-16  Bruno Haible  <bruno@clisp.org>
11346
11347         fprintftime: Move AC_LIBOBJ invocations to module description.
11348         * m4/fprintftime.m4: Remove file.
11349         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11350         (configure.ac): Remove gl_FPRINTFTIME call.
11351         (Makefile.am): Augment lib_SOURCES.
11352         Reported by Jim Meyering.
11353
11354 2011-06-16  Bruno Haible  <bruno@clisp.org>
11355
11356         tmpfile-safer: Finish 2011-05-23 commit.
11357         * m4/stdio-safer.m4: Really remove file.
11358         Reported by Jim Meyering.
11359
11360 2011-06-16  Bruno Haible  <bruno@clisp.org>
11361
11362         syntax-check: Fix typo.
11363         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11364         printf-posix.m4.
11365         Reported by Jim Meyering.
11366
11367 2011-06-13  Jim Meyering  <meyering@redhat.com>
11368
11369         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11370         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11371
11372 2011-05-23  Bruno Haible  <bruno@clisp.org>
11373
11374         yesno: Move AC_LIBOBJ invocations to module description.
11375         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11376         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11377
11378 2011-05-23  Bruno Haible  <bruno@clisp.org>
11379
11380         xstrtol: Move AC_LIBOBJ invocations to module description.
11381         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11382         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11383
11384 2011-05-23  Bruno Haible  <bruno@clisp.org>
11385
11386         xstrtold: Move AC_LIBOBJ invocations to module description.
11387         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11388         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11389
11390 2011-05-23  Bruno Haible  <bruno@clisp.org>
11391
11392         xstrtod: Move AC_LIBOBJ invocations to module description.
11393         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11394         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11395
11396 2011-05-23  Bruno Haible  <bruno@clisp.org>
11397
11398         xnanosleep: Move AC_LIBOBJ invocations to module description.
11399         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11400         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11401
11402 2011-05-23  Bruno Haible  <bruno@clisp.org>
11403
11404         xgetcwd: Move AC_LIBOBJ invocations to module description.
11405         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11406         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11407
11408 2011-05-23  Bruno Haible  <bruno@clisp.org>
11409
11410         xalloc: Move AC_LIBOBJ invocations to module description.
11411         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11412         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11413
11414 2011-05-23  Bruno Haible  <bruno@clisp.org>
11415
11416         write-any-file: Move AC_LIBOBJ invocations to module description.
11417         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11418         invocation.
11419         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11420
11421 2011-05-23  Bruno Haible  <bruno@clisp.org>
11422
11423         utimens: Move AC_LIBOBJ invocations to module description.
11424         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11425         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11426
11427 2011-05-23  Bruno Haible  <bruno@clisp.org>
11428
11429         utimecmp: Move AC_LIBOBJ invocations to module description.
11430         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11431         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11432
11433 2011-05-23  Bruno Haible  <bruno@clisp.org>
11434
11435         userspec: Move AC_LIBOBJ invocations to module description.
11436         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11437         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11438
11439 2011-05-23  Bruno Haible  <bruno@clisp.org>
11440
11441         unlinkdir: Move AC_LIBOBJ invocations to module description.
11442         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11443         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11444
11445 2011-05-23  Bruno Haible  <bruno@clisp.org>
11446
11447         unistd-safer: Move AC_LIBOBJ invocations to module description.
11448         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11449         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11450
11451 2011-05-23  Bruno Haible  <bruno@clisp.org>
11452
11453         tempname: Move AC_LIBOBJ invocations to module description.
11454         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11455         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11456
11457 2011-05-23  Bruno Haible  <bruno@clisp.org>
11458
11459         strftime: Move AC_LIBOBJ invocations to module description.
11460         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11461         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11462
11463 2011-05-23  Bruno Haible  <bruno@clisp.org>
11464
11465         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11466         * m4/stdlib-safer.m4: Remove file.
11467         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11468         (configure.ac): Remove gl_STDLIB_SAFER call.
11469         (Makefile.am): Augment lib_SOURCES.
11470
11471 2011-05-23  Bruno Haible  <bruno@clisp.org>
11472
11473         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11474         * m4/stdio-safer.m4: Remove file.
11475         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11476         (configure.ac): Remove gl_TMPFILE_SAFER call.
11477         (Makefile.am): Augment lib_SOURCES.
11478
11479 2011-05-23  Bruno Haible  <bruno@clisp.org>
11480
11481         popen-safer: Move AC_LIBOBJ invocations to module description.
11482         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11483         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11484         (configure.ac): Remove gl_POPEN_SAFER call.
11485         (Makefile.am): Augment lib_SOURCES.
11486
11487 2011-05-23  Bruno Haible  <bruno@clisp.org>
11488
11489         freopen-safer: Move AC_LIBOBJ invocations to module description.
11490         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11491         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11492         (configure.ac): Remove gl_FREOPEN_SAFER call.
11493         (Makefile.am): Augment lib_SOURCES.
11494
11495 2011-05-23  Bruno Haible  <bruno@clisp.org>
11496
11497         fopen-safer: Move AC_LIBOBJ invocations to module description.
11498         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11499         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11500         (configure.ac): Remove gl_FOPEN_SAFER call.
11501         (Makefile.am): Augment lib_SOURCES.
11502
11503 2011-05-23  Bruno Haible  <bruno@clisp.org>
11504
11505         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11506         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11507         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11508
11509 2011-05-23  Bruno Haible  <bruno@clisp.org>
11510
11511         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11512         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11513         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11514
11515 2011-05-23  Bruno Haible  <bruno@clisp.org>
11516
11517         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11518         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11519         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11520
11521 2011-05-23  Bruno Haible  <bruno@clisp.org>
11522
11523         settime: Move AC_LIBOBJ invocations to module description.
11524         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11525         * modules/settime (Makefile.am): Augment lib_SOURCES.
11526
11527 2011-05-23  Bruno Haible  <bruno@clisp.org>
11528
11529         savedir: Move AC_LIBOBJ invocations to module description.
11530         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11531         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11532
11533 2011-05-23  Bruno Haible  <bruno@clisp.org>
11534
11535         save-cwd: Move AC_LIBOBJ invocations to module description.
11536         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11537         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11538
11539 2011-05-23  Bruno Haible  <bruno@clisp.org>
11540
11541         same: Move AC_LIBOBJ invocations to module description.
11542         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11543         * modules/same (Makefile.am): Augment lib_SOURCES.
11544
11545 2011-05-23  Bruno Haible  <bruno@clisp.org>
11546
11547         safe-write: Move AC_LIBOBJ invocations to module description.
11548         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11549         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11550         instead of gl_SAFE_WRITE.
11551         (Makefile.am): Augment lib_SOURCES.
11552
11553 2011-05-23  Bruno Haible  <bruno@clisp.org>
11554
11555         safe-read: Move AC_LIBOBJ invocations to module description.
11556         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11557         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11558         of gl_SAFE_READ.
11559         (Makefile.am): Augment lib_SOURCES.
11560
11561 2011-05-23  Bruno Haible  <bruno@clisp.org>
11562
11563         safe-alloc: Move AC_LIBOBJ invocations to module description.
11564         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11565         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11566
11567 2011-05-23  Bruno Haible  <bruno@clisp.org>
11568
11569         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11570         * m4/rijndael.m4: Remove file.
11571         * modules/crypto/rijndael (Files): Remove it.
11572         (configure.ac): Remove gl_RIJNDAEL call.
11573         (Makefile.am): Augment lib_SOURCES.
11574
11575 2011-05-23  Bruno Haible  <bruno@clisp.org>
11576
11577         readtokens: Move AC_LIBOBJ invocations to module description.
11578         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11579         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11580
11581 2011-05-23  Bruno Haible  <bruno@clisp.org>
11582
11583         read-file: Move AC_LIBOBJ invocations to module description.
11584         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11585         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11586         of gl_FUNC_READ_FILE.
11587         (Makefile.am): Augment lib_SOURCES.
11588
11589 2011-05-23  Bruno Haible  <bruno@clisp.org>
11590
11591         quotearg: Move AC_LIBOBJ invocations to module description.
11592         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11593         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11594
11595 2011-05-23  Bruno Haible  <bruno@clisp.org>
11596
11597         quote: Move AC_LIBOBJ invocations to module description.
11598         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11599         * modules/quote (Makefile.am): Augment lib_SOURCES.
11600
11601 2011-05-23  Bruno Haible  <bruno@clisp.org>
11602
11603         posixver: Move AC_LIBOBJ invocations to module description.
11604         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11605         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11606
11607 2011-05-23  Bruno Haible  <bruno@clisp.org>
11608
11609         posixtm: Move AC_LIBOBJ invocations to module description.
11610         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11611         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11612
11613 2011-05-23  Bruno Haible  <bruno@clisp.org>
11614
11615         physmem: Move AC_LIBOBJ invocations to module description.
11616         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11617         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11618
11619 2011-05-23  Bruno Haible  <bruno@clisp.org>
11620
11621         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11622         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11623         invocation.
11624         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11625
11626 2011-05-23  Bruno Haible  <bruno@clisp.org>
11627
11628         mpsort: Move AC_LIBOBJ invocations to module description.
11629         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11630         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11631
11632 2011-05-23  Bruno Haible  <bruno@clisp.org>
11633
11634         modechange: Move AC_LIBOBJ invocations to module description.
11635         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11636         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11637
11638 2011-05-23  Bruno Haible  <bruno@clisp.org>
11639
11640         mkdir-p: Move AC_LIBOBJ invocations to module description.
11641         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11642         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11643
11644 2011-05-23  Bruno Haible  <bruno@clisp.org>
11645
11646         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11647         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11648         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11649
11650 2011-05-23  Bruno Haible  <bruno@clisp.org>
11651
11652         mgetgroups: Move AC_LIBOBJ invocations to module description.
11653         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11654         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11655
11656 2011-05-23  Bruno Haible  <bruno@clisp.org>
11657
11658         memxor: Move AC_LIBOBJ invocations to module description.
11659         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11660         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11661
11662 2011-05-23  Bruno Haible  <bruno@clisp.org>
11663
11664         memcoll: Move AC_LIBOBJ invocations to module description.
11665         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11666         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11667
11668 2011-05-23  Bruno Haible  <bruno@clisp.org>
11669
11670         memcasecmp: Move AC_LIBOBJ invocations to module description.
11671         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11672         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11673
11674 2011-05-23  Bruno Haible  <bruno@clisp.org>
11675
11676         crypto/md5: Move AC_LIBOBJ invocations to module description.
11677         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11678         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11679
11680 2011-05-23  Bruno Haible  <bruno@clisp.org>
11681
11682         crypto/md4: Move AC_LIBOBJ invocations to module description.
11683         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11684         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11685
11686 2011-05-23  Bruno Haible  <bruno@clisp.org>
11687
11688         crypto/md2: Move AC_LIBOBJ invocations to module description.
11689         * m4/md2.m4: Remove file.
11690         * modules/crypto/md2 (Files): Remove it.
11691         (configure.ac): Remove gl_MD2 call.
11692         (Makefile.am): Augment lib_SOURCES.
11693
11694 2011-05-23  Bruno Haible  <bruno@clisp.org>
11695
11696         long-options: Move AC_LIBOBJ invocations to module description.
11697         * m4/long-options.m4: Remove file.
11698         * modules/long-options (Files): Remove it.
11699         (configure.ac): Remove gl_LONG_OPTIONS call.
11700         (Makefile.am): Augment lib_SOURCES.
11701
11702 2011-05-23  Bruno Haible  <bruno@clisp.org>
11703
11704         i-ring: Move AC_LIBOBJ invocations to module description.
11705         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11706         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11707
11708 2011-05-23  Bruno Haible  <bruno@clisp.org>
11709
11710         idcache: Move AC_LIBOBJ invocations to module description.
11711         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11712         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11713
11714 2011-05-23  Bruno Haible  <bruno@clisp.org>
11715
11716         human: Move AC_LIBOBJ invocations to module description.
11717         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11718         * modules/human (Makefile.am): Augment lib_SOURCES.
11719
11720 2011-05-23  Bruno Haible  <bruno@clisp.org>
11721
11722         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11723         * m4/hmac-sha1.m4: Remove file.
11724         * modules/crypto/hmac-sha1 (Files): Remove it.
11725         (configure.ac): Remove gl_HMAC_SHA1 call.
11726         (Makefile.am): Augment lib_SOURCES.
11727
11728 2011-05-23  Bruno Haible  <bruno@clisp.org>
11729
11730         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11731         * m4/hmac-md5.m4: Remove file.
11732         * modules/crypto/hmac-md5 (Files): Remove it.
11733         (configure.ac): Remove gl_HMAC_MD5 call.
11734         (Makefile.am): Augment lib_SOURCES.
11735
11736 2011-05-23  Bruno Haible  <bruno@clisp.org>
11737
11738         hash: Move AC_LIBOBJ invocations to module description.
11739         * m4/hash.m4: Remove file.
11740         * modules/hash (Files): Remove it.
11741         (configure.ac): Remove gl_HASH call.
11742         (Makefile.am): Augment lib_SOURCES.
11743
11744 2011-05-23  Bruno Haible  <bruno@clisp.org>
11745
11746         hard-locale: Move AC_LIBOBJ invocations to module description.
11747         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11748         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11749
11750 2011-05-23  Bruno Haible  <bruno@clisp.org>
11751
11752         getugroups: Move AC_LIBOBJ invocations to module description.
11753         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11754         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11755
11756 2011-05-23  Bruno Haible  <bruno@clisp.org>
11757
11758         gettime: Move AC_LIBOBJ invocations to module description.
11759         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11760         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11761
11762 2011-05-23  Bruno Haible  <bruno@clisp.org>
11763
11764         getndelim2: Move AC_LIBOBJ invocations to module description.
11765         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11766         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11767
11768 2011-05-23  Bruno Haible  <bruno@clisp.org>
11769
11770         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11771         * m4/gc-pbkdf2-sha1.m4: Remove file.
11772         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11773         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11774         (Makefile.am): Augment lib_SOURCES.
11775
11776 2011-05-23  Bruno Haible  <bruno@clisp.org>
11777
11778         fts: Move AC_LIBOBJ invocations to module description.
11779         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11780         * modules/fts (configure.ac): ... to here.
11781
11782 2011-05-23  Bruno Haible  <bruno@clisp.org>
11783
11784         file-type: Move AC_LIBOBJ invocations to module description.
11785         * m4/file-type.m4: Remove file.
11786         * modules/file-type (Files): Remove it.
11787         (configure.ac): Remove gl_FILE_TYPE call.
11788         (Makefile.am): Augment lib_SOURCES.
11789
11790 2011-05-23  Bruno Haible  <bruno@clisp.org>
11791
11792         filenamecat*: Respect rules for use of AC_LIBOBJ.
11793         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11794         Remove AC_LIBOBJ invocation.
11795         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11796         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11797
11798 2011-05-23  Bruno Haible  <bruno@clisp.org>
11799
11800         filemode: Move AC_LIBOBJ invocations to module description.
11801         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11802         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11803
11804 2011-05-23  Bruno Haible  <bruno@clisp.org>
11805
11806         openat-safer: Move AC_LIBOBJ invocations to module description.
11807         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11808         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11809
11810 2011-05-23  Bruno Haible  <bruno@clisp.org>
11811
11812         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11813         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11814         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11815
11816 2011-05-23  Bruno Haible  <bruno@clisp.org>
11817
11818         exclude: Move AC_LIBOBJ invocations to module description.
11819         * m4/exclude.m4: Remove file.
11820         * modules/exclude (Files): Remove it.
11821         (configure.ac): Remove gl_EXCLUDE call.
11822         (Makefile.am): Augment lib_SOURCES.
11823
11824 2011-05-23  Bruno Haible  <bruno@clisp.org>
11825
11826         dirname*: Respect rules for use of AC_LIBOBJ.
11827         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11828         invocations.
11829         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11830         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11831
11832 2011-05-23  Bruno Haible  <bruno@clisp.org>
11833
11834         dirent-safer: Move AC_LIBOBJ invocations to module description.
11835         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11836         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11837
11838 2011-05-23  Bruno Haible  <bruno@clisp.org>
11839
11840         crypto/des: Move AC_LIBOBJ invocations to module description.
11841         * m4/des.m4: Remove file.
11842         * modules/crypto/des (Files): Remove it.
11843         (configure.ac): Remove gl_DES call.
11844         (Makefile.am): Augment lib_SOURCES.
11845
11846 2011-05-23  Bruno Haible  <bruno@clisp.org>
11847
11848         cycle-check: Move AC_LIBOBJ invocations to module description.
11849         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
11850         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
11851
11852 2011-05-23  Bruno Haible  <bruno@clisp.org>
11853
11854         c-strtold: Move AC_LIBOBJ invocations to module description.
11855         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
11856         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
11857
11858 2011-05-23  Bruno Haible  <bruno@clisp.org>
11859
11860         c-strtod: Move AC_LIBOBJ invocations to module description.
11861         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
11862         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
11863
11864 2011-05-23  Bruno Haible  <bruno@clisp.org>
11865
11866         crc: Move AC_LIBOBJ invocations to module description.
11867         * m4/crc.m4: Remove file.
11868         * modules/crc (Files): Remove it.
11869         (configure.ac): Remove gl_CRC call.
11870         (Makefile.am): Augment lib_SOURCES.
11871
11872 2011-05-23  Bruno Haible  <bruno@clisp.org>
11873
11874         close-stream: Move AC_LIBOBJ invocations to module description.
11875         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
11876         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
11877
11878 2011-05-23  Bruno Haible  <bruno@clisp.org>
11879
11880         closeout: Move AC_LIBOBJ invocations to module description.
11881         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
11882         * modules/closeout (Makefile.am): Augment lib_SOURCES.
11883
11884 2011-05-23  Bruno Haible  <bruno@clisp.org>
11885
11886         closein: Move AC_LIBOBJ invocations to module description.
11887         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
11888         * modules/closein (Makefile.am): Augment lib_SOURCES.
11889
11890 2011-05-23  Bruno Haible  <bruno@clisp.org>
11891
11892         cloexec: Move AC_LIBOBJ invocations to module description.
11893         * m4/cloexec.m4: Remove file.
11894         * modules/cloexec (Files): Remove it.
11895         (configure.ac): Remove gl_CLOEXEC call.
11896         (Makefile.am): Augment lib_SOURCES.
11897
11898 2011-05-23  Bruno Haible  <bruno@clisp.org>
11899
11900         check-version: Move AC_LIBOBJ invocations to module description.
11901         * m4/check-version.m4: Remove file.
11902         * modules/check-version (Files): Remove it.
11903         (configure.ac): Remove gl_CHECK_VERSION call.
11904         (Makefile.am): Augment lib_SOURCES.
11905
11906 2011-05-23  Bruno Haible  <bruno@clisp.org>
11907
11908         chdir-safer: Move AC_LIBOBJ invocations to module description.
11909         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
11910         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
11911
11912 2011-05-23  Bruno Haible  <bruno@clisp.org>
11913
11914         canonicalize: Move AC_LIBOBJ invocations to module description.
11915         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
11916         AC_LIBOBJ invocation.
11917         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
11918
11919 2011-05-23  Bruno Haible  <bruno@clisp.org>
11920
11921         canon-host: Move AC_LIBOBJ invocations to module description.
11922         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
11923         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
11924         instead of gl_CANON_HOST.
11925         (Makefile.am): Augment lib_SOURCES.
11926
11927 2011-05-23  Bruno Haible  <bruno@clisp.org>
11928
11929         backupfile: Move AC_LIBOBJ invocations to module description.
11930         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
11931         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
11932
11933 2011-05-23  Bruno Haible  <bruno@clisp.org>
11934
11935         argmatch: Move AC_LIBOBJ invocations to module description.
11936         * m4/argmatch.m4: Remove file.
11937         * modules/argmatch (Files): Remove it.
11938         (configure.ac): Remove gl_ARGMATCH call.
11939         (Makefile.am): Augment lib_SOURCES.
11940
11941 2011-05-23  Bruno Haible  <bruno@clisp.org>
11942
11943         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
11944         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
11945         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
11946
11947 2011-05-23  Bruno Haible  <bruno@clisp.org>
11948
11949         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
11950         * m4/arcfour.m4: Remove file.
11951         * modules/crypto/arcfour (Files): Remove it.
11952         (configure.ac): Remove gl_ARCFOUR call.
11953         (Makefile.am): Augment lib_SOURCES.
11954
11955 2011-05-22  Bruno Haible  <bruno@clisp.org>
11956
11957         write: Move AC_LIBOBJ invocations to module description.
11958         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
11959         * modules/write (configure.ac): ... to here.
11960
11961 2011-05-22  Bruno Haible  <bruno@clisp.org>
11962
11963         wmemset: Move AC_LIBOBJ invocations to module description.
11964         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
11965         here...
11966         * modules/wmemset (configure.ac): ... to here.
11967
11968 2011-05-22  Bruno Haible  <bruno@clisp.org>
11969
11970         wmemmove: Move AC_LIBOBJ invocations to module description.
11971         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
11972         here...
11973         * modules/wmemmove (configure.ac): ... to here.
11974
11975 2011-05-22  Bruno Haible  <bruno@clisp.org>
11976
11977         wmemcpy: Move AC_LIBOBJ invocations to module description.
11978         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
11979         here...
11980         * modules/wmemcpy (configure.ac): ... to here.
11981
11982 2011-05-22  Bruno Haible  <bruno@clisp.org>
11983
11984         wmemcmp: Move AC_LIBOBJ invocations to module description.
11985         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
11986         here...
11987         * modules/wmemcmp (configure.ac): ... to here.
11988
11989 2011-05-22  Bruno Haible  <bruno@clisp.org>
11990
11991         wmemchr: Move AC_LIBOBJ invocations to module description.
11992         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
11993         here...
11994         * modules/wmemchr (configure.ac): ... to here.
11995
11996 2011-05-22  Bruno Haible  <bruno@clisp.org>
11997
11998         wcswidth: Move AC_LIBOBJ invocations to module description.
11999         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12000         here...
12001         * modules/wcswidth (configure.ac): ... to here.
12002
12003 2011-05-22  Bruno Haible  <bruno@clisp.org>
12004
12005         wcwidth: Respect rules for use of AC_LIBOBJ.
12006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12007         invocation from here...
12008         * modules/wcwidth (configure.ac): ... to here.
12009         (Depends-on): Update conditions.
12010
12011 2011-05-22  Bruno Haible  <bruno@clisp.org>
12012
12013         wctype: Move AC_LIBOBJ invocations to module description.
12014         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12015         invocation from here...
12016         * modules/wctype (configure.ac): ... to here.
12017         (Depends-on): Update conditions.
12018
12019 2011-05-22  Bruno Haible  <bruno@clisp.org>
12020
12021         wctrans: Move AC_LIBOBJ invocations to module description.
12022         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12023         invocation from here...
12024         * modules/wctrans (configure.ac): ... to here.
12025
12026 2011-05-22  Bruno Haible  <bruno@clisp.org>
12027
12028         wctomb: Move AC_LIBOBJ invocations to module description.
12029         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12030         invocations from here...
12031         * modules/wctomb (configure.ac): ... to here.
12032
12033 2011-05-22  Bruno Haible  <bruno@clisp.org>
12034
12035         wctob: Move AC_LIBOBJ invocations to module description.
12036         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12037         gl_PREREQ_WCTOB invocations from here...
12038         * modules/wctob (configure.ac): ... to here.
12039         (Depends-on): Update conditions.
12040
12041 2011-05-22  Bruno Haible  <bruno@clisp.org>
12042
12043         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12044         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12045         here...
12046         * modules/wcsxfrm (configure.ac): ... to here.
12047
12048 2011-05-22  Bruno Haible  <bruno@clisp.org>
12049
12050         wcstok: Move AC_LIBOBJ invocations to module description.
12051         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12052         * modules/wcstok (configure.ac): ... to here.
12053
12054 2011-05-22  Bruno Haible  <bruno@clisp.org>
12055
12056         wcsstr: Move AC_LIBOBJ invocations to module description.
12057         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12058         * modules/wcsstr (configure.ac): ... to here.
12059
12060 2011-05-22  Bruno Haible  <bruno@clisp.org>
12061
12062         wcsspn: Move AC_LIBOBJ invocations to module description.
12063         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12064         * modules/wcsspn (configure.ac): ... to here.
12065
12066 2011-05-22  Bruno Haible  <bruno@clisp.org>
12067
12068         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12069         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12070         gl_PREREQ_WCSRTOMBS invocations from here...
12071         * modules/wcsrtombs (configure.ac): ... to here.
12072
12073 2011-05-22  Bruno Haible  <bruno@clisp.org>
12074
12075         wcsrchr: Move AC_LIBOBJ invocations to module description.
12076         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12077         here...
12078         * modules/wcsrchr (configure.ac): ... to here.
12079
12080 2011-05-22  Bruno Haible  <bruno@clisp.org>
12081
12082         wcspbrk: Move AC_LIBOBJ invocations to module description.
12083         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12084         here...
12085         * modules/wcspbrk (configure.ac): ... to here.
12086
12087 2011-05-22  Bruno Haible  <bruno@clisp.org>
12088
12089         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12090         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12091         gl_PREREQ_WCSNRTOMBS invocations from here...
12092         * modules/wcsnrtombs (configure.ac): ... to here.
12093
12094 2011-05-22  Bruno Haible  <bruno@clisp.org>
12095
12096         wcsnlen: Move AC_LIBOBJ invocations to module description.
12097         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12098         here...
12099         * modules/wcsnlen (configure.ac): ... to here.
12100
12101 2011-05-22  Bruno Haible  <bruno@clisp.org>
12102
12103         wcsncpy: Move AC_LIBOBJ invocations to module description.
12104         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12105         here...
12106         * modules/wcsncpy (configure.ac): ... to here.
12107
12108 2011-05-22  Bruno Haible  <bruno@clisp.org>
12109
12110         wcsncmp: Move AC_LIBOBJ invocations to module description.
12111         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12112         here...
12113         * modules/wcsncmp (configure.ac): ... to here.
12114
12115 2011-05-22  Bruno Haible  <bruno@clisp.org>
12116
12117         wcsncat: Move AC_LIBOBJ invocations to module description.
12118         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12119         here...
12120         * modules/wcsncat (configure.ac): ... to here.
12121
12122 2011-05-22  Bruno Haible  <bruno@clisp.org>
12123
12124         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12125         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12126         from here...
12127         * modules/wcsncasecmp (configure.ac): ... to here.
12128
12129 2011-05-22  Bruno Haible  <bruno@clisp.org>
12130
12131         wcslen: Move AC_LIBOBJ invocations to module description.
12132         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12133         * modules/wcslen (configure.ac): ... to here.
12134
12135 2011-05-22  Bruno Haible  <bruno@clisp.org>
12136
12137         wcsdup: Move AC_LIBOBJ invocations to module description.
12138         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12139         * modules/wcsdup (configure.ac): ... to here.
12140
12141 2011-05-22  Bruno Haible  <bruno@clisp.org>
12142
12143         wcscspn: Move AC_LIBOBJ invocations to module description.
12144         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12145         here...
12146         * modules/wcscspn (configure.ac): ... to here.
12147
12148 2011-05-22  Bruno Haible  <bruno@clisp.org>
12149
12150         wcscpy: Move AC_LIBOBJ invocations to module description.
12151         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12152         * modules/wcscpy (configure.ac): ... to here.
12153
12154 2011-05-22  Bruno Haible  <bruno@clisp.org>
12155
12156         wcscoll: Move AC_LIBOBJ invocations to module description.
12157         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12158         here...
12159         * modules/wcscoll (configure.ac): ... to here.
12160
12161 2011-05-22  Bruno Haible  <bruno@clisp.org>
12162
12163         wcscmp: Move AC_LIBOBJ invocations to module description.
12164         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12165         * modules/wcscmp (configure.ac): ... to here.
12166
12167 2011-05-22  Bruno Haible  <bruno@clisp.org>
12168
12169         wcschr: Move AC_LIBOBJ invocations to module description.
12170         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12171         * modules/wcschr (configure.ac): ... to here.
12172
12173 2011-05-22  Bruno Haible  <bruno@clisp.org>
12174
12175         wcscat: Move AC_LIBOBJ invocations to module description.
12176         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12177         * modules/wcscat (configure.ac): ... to here.
12178
12179 2011-05-22  Bruno Haible  <bruno@clisp.org>
12180
12181         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12182         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12183         here...
12184         * modules/wcscasecmp (configure.ac): ... to here.
12185
12186 2011-05-22  Bruno Haible  <bruno@clisp.org>
12187
12188         wcrtomb: Move AC_LIBOBJ invocations to module description.
12189         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12190         invocations from here...
12191         * modules/wcrtomb (configure.ac): ... to here.
12192
12193 2011-05-22  Bruno Haible  <bruno@clisp.org>
12194
12195         wcpncpy: Move AC_LIBOBJ invocations to module description.
12196         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12197         here...
12198         * modules/wcpncpy (configure.ac): ... to here.
12199
12200 2011-05-22  Bruno Haible  <bruno@clisp.org>
12201
12202         wcpcpy: Move AC_LIBOBJ invocations to module description.
12203         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12204         * modules/wcpcpy (configure.ac): ... to here.
12205
12206 2011-05-22  Bruno Haible  <bruno@clisp.org>
12207
12208         waitpid: Move AC_LIBOBJ invocations to module description.
12209         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12210         invocation from here...
12211         * modules/waitpid (configure.ac): ... to here.
12212
12213 2011-05-22  Bruno Haible  <bruno@clisp.org>
12214
12215         utimensat: Move AC_LIBOBJ invocations to module description.
12216         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12217         here...
12218         * modules/utimensat (configure.ac): ... to here.
12219
12220 2011-05-22  Bruno Haible  <bruno@clisp.org>
12221
12222         usleep: Move AC_LIBOBJ invocations to module description.
12223         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12224         here...
12225         * modules/usleep (configure.ac): ... to here.
12226
12227 2011-05-22  Bruno Haible  <bruno@clisp.org>
12228
12229         unlockpt: Move AC_LIBOBJ invocations to module description.
12230         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12231         gl_PREREQ_UNLOCKPT invocations from here...
12232         * modules/unlockpt (configure.ac): ... to here.
12233
12234 2011-05-22  Bruno Haible  <bruno@clisp.org>
12235
12236         unlink: Respect rules for use of AC_LIBOBJ.
12237         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12238         * modules/unlink (configure.ac): ... to here.
12239
12240 2011-05-22  Bruno Haible  <bruno@clisp.org>
12241
12242         uname: Move AC_LIBOBJ invocations to module description.
12243         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12244         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12245         here...
12246         * modules/uname (configure.ac): ... to here.
12247
12248 2011-05-22  Bruno Haible  <bruno@clisp.org>
12249
12250         ttyname_r: Move AC_LIBOBJ invocations to module description.
12251         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12252         gl_PREREQ_TTYNAME_R invocations from here...
12253         * modules/ttyname_r (configure.ac): ... to here.
12254
12255 2011-05-22  Bruno Haible  <bruno@clisp.org>
12256
12257         tsearch: Move AC_LIBOBJ invocations to module description.
12258         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12259         invocations from here...
12260         * modules/tsearch (configure.ac): ... to here.
12261
12262 2011-05-22  Bruno Haible  <bruno@clisp.org>
12263
12264         towctrans: Move AC_LIBOBJ invocations to module description.
12265         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12266         AC_LIBOBJ invocation from here...
12267         * modules/towctrans (configure.ac): ... to here.
12268
12269 2011-05-22  Bruno Haible  <bruno@clisp.org>
12270
12271         tmpfile: Move AC_LIBOBJ invocations to module description.
12272         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12273         invocations from here...
12274         * modules/tmpfile (configure.ac): ... to here.
12275
12276 2011-05-22  Bruno Haible  <bruno@clisp.org>
12277
12278         times: Move AC_LIBOBJ invocations to module description.
12279         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12280         * modules/times (configure.ac): ... to here.
12281
12282 2011-05-22  Bruno Haible  <bruno@clisp.org>
12283
12284         time_r: Move AC_LIBOBJ invocations to module description.
12285         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12286         invocations from here...
12287         * modules/time_r (configure.ac): ... to here.
12288
12289 2011-05-22  Bruno Haible  <bruno@clisp.org>
12290
12291         timegm: Move AC_LIBOBJ invocations to module description.
12292         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12293         invocations from here...
12294         * modules/timegm (configure.ac): ... to here.
12295
12296 2011-05-22  Bruno Haible  <bruno@clisp.org>
12297
12298         tcgetsid: Move AC_LIBOBJ invocations to module description.
12299         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12300         and gl_PREREQ_TCGETSID invocations from here...
12301         * modules/tcgetsid (configure.ac): ... to here.
12302         (Depends-on): Update conditions.
12303
12304 2011-05-22  Bruno Haible  <bruno@clisp.org>
12305
12306         symlinkat: Move AC_LIBOBJ invocations to module description.
12307         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12308         here...
12309         * modules/symlinkat (configure.ac): ... to here.
12310
12311 2011-05-22  Bruno Haible  <bruno@clisp.org>
12312
12313         symlink: Move AC_LIBOBJ invocations to module description.
12314         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12315         here...
12316         * modules/symlink (configure.ac): ... to here.
12317
12318 2011-05-22  Bruno Haible  <bruno@clisp.org>
12319
12320         strverscmp: Move AC_LIBOBJ invocations to module description.
12321         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12323         from here...
12324         * modules/strverscmp (configure.ac): ... to here.
12325
12326 2011-05-22  Bruno Haible  <bruno@clisp.org>
12327
12328         strtok_r: Move AC_LIBOBJ invocations to module description.
12329         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12330         and gl_PREREQ_STRTOK_R invocations from here...
12331         * modules/strtok_r (configure.ac): ... to here.
12332         (Depends-on): Update conditions.
12333
12334 2011-05-22  Bruno Haible  <bruno@clisp.org>
12335
12336         strtoumax: Move AC_LIBOBJ invocations to module description.
12337         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12339         from here...
12340         * modules/strtoumax (configure.ac): ... to here.
12341
12342 2011-05-22  Bruno Haible  <bruno@clisp.org>
12343
12344         strtoimax: Move AC_LIBOBJ invocations to module description.
12345         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12347         from here...
12348         * modules/strtoimax (configure.ac): ... to here.
12349
12350 2011-05-22  Bruno Haible  <bruno@clisp.org>
12351
12352         strtoull: Move AC_LIBOBJ invocations to module description.
12353         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12355         from here...
12356         * modules/strtoull (configure.ac): ... to here.
12357
12358 2011-05-22  Bruno Haible  <bruno@clisp.org>
12359
12360         strtoll: Move AC_LIBOBJ invocations to module description.
12361         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12363         here...
12364         * modules/strtoll (configure.ac): ... to here.
12365
12366 2011-05-22  Bruno Haible  <bruno@clisp.org>
12367
12368         strtoul: Move AC_LIBOBJ invocations to module description.
12369         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12370         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12371         * modules/strtoul (configure.ac): ... to here.
12372
12373 2011-05-22  Bruno Haible  <bruno@clisp.org>
12374
12375         strtol: Move AC_LIBOBJ invocations to module description.
12376         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12377         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12378         * modules/strtol (configure.ac): ... to here.
12379
12380 2011-05-22  Bruno Haible  <bruno@clisp.org>
12381
12382         strtod: Move AC_LIBOBJ invocations to module description.
12383         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12384         invocations from here...
12385         * modules/strtod (configure.ac): ... to here.
12386
12387 2011-05-22  Bruno Haible  <bruno@clisp.org>
12388
12389         strstr*: Move AC_LIBOBJ invocations to module description.
12390         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12391         invocations from here...
12392         * modules/strstr-simple (configure.ac): ... to here.
12393         * modules/strstr (configure.ac): ... and here.
12394
12395 2011-05-22  Bruno Haible  <bruno@clisp.org>
12396
12397         strsignal: Move AC_LIBOBJ invocations to module description.
12398         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12399         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12400         * modules/strsignal (configure.ac): ... to here.
12401         (Depends-on): Update conditions.
12402
12403 2011-05-22  Bruno Haible  <bruno@clisp.org>
12404
12405         strsep: Move AC_LIBOBJ invocations to module description.
12406         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12407         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12408         here...
12409         * modules/strsep (configure.ac): ... to here.
12410
12411 2011-05-22  Bruno Haible  <bruno@clisp.org>
12412
12413         strptime: Move AC_LIBOBJ invocations to module description.
12414         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12415         gl_PREREQ_STRPTIME invocations from here...
12416         * modules/strptime (configure.ac): ... to here.
12417
12418 2011-05-22  Bruno Haible  <bruno@clisp.org>
12419
12420         strpbrk: Move AC_LIBOBJ invocations to module description.
12421         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12422         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12423         here...
12424         * modules/strpbrk (configure.ac): ... to here.
12425
12426 2011-05-22  Bruno Haible  <bruno@clisp.org>
12427
12428         strnlen: Move AC_LIBOBJ invocations to module description.
12429         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12430         invocations from here...
12431         * modules/strnlen (configure.ac): ... to here.
12432
12433 2011-05-22  Bruno Haible  <bruno@clisp.org>
12434
12435         strndup: Move AC_LIBOBJ invocations to module description.
12436         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12437         invocations from here...
12438         * modules/strndup (configure.ac): ... to here.
12439         (Depends-on): Update conditions.
12440
12441 2011-05-22  Bruno Haible  <bruno@clisp.org>
12442
12443         strncat: Move AC_LIBOBJ invocations to module description.
12444         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12445         invocations from here...
12446         * modules/strncat (configure.ac): ... to here.
12447
12448 2011-05-22  Bruno Haible  <bruno@clisp.org>
12449
12450         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12451         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12452         invocations from here...
12453         * modules/strdup (configure.ac): ... to here.
12454         * modules/strdup-posix (configure.ac): ... and here.
12455
12456 2011-05-22  Bruno Haible  <bruno@clisp.org>
12457
12458         strcspn: Move AC_LIBOBJ invocations to module description.
12459         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12461         here...
12462         * modules/strcspn (configure.ac): ... to here.
12463
12464 2011-05-22  Bruno Haible  <bruno@clisp.org>
12465
12466         strchrnul: Move AC_LIBOBJ invocations to module description.
12467         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12468         gl_PREREQ_STRCHRNUL invocations from here...
12469         * modules/strchrnul (configure.ac): ... to here.
12470
12471 2011-05-22  Bruno Haible  <bruno@clisp.org>
12472
12473         strcasestr*: Move AC_LIBOBJ invocations to module description.
12474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12475         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12476         * modules/strcasestr-simple (configure.ac): ... to here.
12477         * modules/strcasestr (configure.ac): ... and here.
12478
12479 2011-05-22  Bruno Haible  <bruno@clisp.org>
12480
12481         strcase: Move AC_LIBOBJ invocations to module description.
12482         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12483         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12484         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12485         gl_PREREQ_STRNCASECMP invocations from here...
12486         * modules/strcase (configure.ac): ... to here.
12487
12488 2011-05-22  Bruno Haible  <bruno@clisp.org>
12489
12490         stpncpy: Move AC_LIBOBJ invocations to module description.
12491         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12492         here...
12493         * modules/stpncpy (configure.ac): ... to here.
12494
12495 2011-05-22  Bruno Haible  <bruno@clisp.org>
12496
12497         stpcpy: Move AC_LIBOBJ invocations to module description.
12498         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12499         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12500         here...
12501         * modules/stpcpy (configure.ac): ... to here.
12502
12503 2011-05-21  Bruno Haible  <bruno@clisp.org>
12504
12505         stat: Move AC_LIBOBJ invocations to module description.
12506         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12507         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12508         here...
12509         * modules/stat (configure.ac): ... to here.
12510
12511 2011-05-21  Bruno Haible  <bruno@clisp.org>
12512
12513         sleep: Move AC_LIBOBJ invocations to module description.
12514         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12515         * modules/sleep (configure.ac): ... to here.
12516
12517 2011-05-21  Bruno Haible  <bruno@clisp.org>
12518
12519         signbit: Move AC_LIBOBJ invocations to module description.
12520         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12521         * modules/signbit (configure.ac): ... to here.
12522
12523 2011-05-21  Bruno Haible  <bruno@clisp.org>
12524
12525         sigprocmask: Move AC_LIBOBJ invocations to module description.
12526         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12527         gl_PREREQ_SIGPROMASK invocations from here...
12528         * modules/sigprocmask (configure.ac): ... to here.
12529
12530 2011-05-21  Bruno Haible  <bruno@clisp.org>
12531
12532         sigaction: Move AC_LIBOBJ invocations to module description.
12533         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12534         gl_PREREQ_SIGACTION invocations from here...
12535         * modules/sigaction (configure.ac): ... to here.
12536
12537 2011-05-21  Bruno Haible  <bruno@clisp.org>
12538
12539         sig2str: Move AC_LIBOBJ invocations to module description.
12540         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12541         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12542         here...
12543         * modules/sig2str (configure.ac): ... to here.
12544
12545 2011-05-21  Bruno Haible  <bruno@clisp.org>
12546
12547         setlocale: Move AC_LIBOBJ invocations to module description.
12548         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12549         gl_PREREQ_SETLOCALE invocations from here...
12550         * modules/setlocale (configure.ac): ... to here.
12551
12552 2011-05-21  Bruno Haible  <bruno@clisp.org>
12553
12554         unsetenv: Move AC_LIBOBJ invocations to module description.
12555         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12556         and gl_PREREQ_UNSETENV invocations from here...
12557         * modules/unsetenv (configure.ac): ... to here.
12558         (Depends-on): Update.
12559
12560 2011-05-21  Bruno Haible  <bruno@clisp.org>
12561
12562         setenv: Move AC_LIBOBJ invocations to module description.
12563         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12564         here...
12565         * modules/setenv (configure.ac): ... to here.
12566
12567 2011-05-21  Bruno Haible  <bruno@clisp.org>
12568
12569         selinux-h: Move AC_LIBOBJ invocations to module description.
12570         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12571         AC_LIBOBJ invocation from here...
12572         * modules/selinux-h (configure.ac): ... to here.
12573
12574 2011-05-21  Bruno Haible  <bruno@clisp.org>
12575
12576         select: Respect rules for use of AC_LIBOBJ.
12577         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12578         here...
12579         * modules/select (configure.ac): ... to here.
12580
12581 2011-05-21  Bruno Haible  <bruno@clisp.org>
12582
12583         scandir: Move AC_LIBOBJ invocations to module description.
12584         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12585         invocations from here...
12586         * modules/scandir (configure.ac): ... to here.
12587
12588 2011-05-21  Bruno Haible  <bruno@clisp.org>
12589
12590         rpmatch: Move AC_LIBOBJ invocations to module description.
12591         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12593         here...
12594         * modules/rpmatch (configure.ac): ... to here.
12595
12596 2011-05-21  Bruno Haible  <bruno@clisp.org>
12597
12598         rmdir: Respect rules for use of AC_LIBOBJ.
12599         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12600         * modules/rmdir (configure.ac): ... to here.
12601
12602 2011-05-21  Bruno Haible  <bruno@clisp.org>
12603
12604         renameat: Move AC_LIBOBJ invocations to module description.
12605         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12606         here...
12607         * modules/renameat (configure.ac): ... to here.
12608
12609 2011-05-21  Bruno Haible  <bruno@clisp.org>
12610
12611         rename: Respect rules for use of AC_LIBOBJ.
12612         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12613         here...
12614         * modules/rename (configure.ac): ... to here.
12615
12616 2011-05-21  Bruno Haible  <bruno@clisp.org>
12617
12618         remove: Move AC_LIBOBJ invocations to module description.
12619         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12620         here...
12621         * modules/remove (configure.ac): ... to here.
12622
12623 2011-05-21  Bruno Haible  <bruno@clisp.org>
12624
12625         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12626         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12627         macro.
12628         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12629         * modules/relocatable-lib (configure.ac): ... to here.
12630         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12631         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12632
12633 2011-05-21  Bruno Haible  <bruno@clisp.org>
12634
12635         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12636         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12637         here...
12638         * modules/relocatable-prog (configure.ac): ... to here.
12639
12640 2011-05-21  Bruno Haible  <bruno@clisp.org>
12641
12642         regex: Move AC_LIBOBJ invocations to module description.
12643         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12644         invocations from here...
12645         * modules/regex (configure.ac): ... to here.
12646
12647 2011-05-21  Bruno Haible  <bruno@clisp.org>
12648
12649         realloc-*: Move AC_LIBOBJ invocations to module description.
12650         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12651         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12652         AC_LIBOBJ invocations from here...
12653         * modules/realloc-gnu (configure.ac): ... to here.
12654         * modules/realloc-posix (configure.ac): ... and here.
12655
12656 2011-05-21  Bruno Haible  <bruno@clisp.org>
12657
12658         readutmp: Move AC_LIBOBJ invocations to module description.
12659         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12660         * modules/readutmp (configure.ac): ... to here.
12661
12662 2011-05-21  Bruno Haible  <bruno@clisp.org>
12663
12664         readlinkat: Move AC_LIBOBJ invocations to module description.
12665         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12666         here...
12667         * modules/readlinkat (configure.ac): ... to here.
12668
12669 2011-05-21  Bruno Haible  <bruno@clisp.org>
12670
12671         readlink: Move AC_LIBOBJ invocations to module description.
12672         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12673         gl_PREREQ_READLINK invocations from here...
12674         * modules/readlink (configure.ac): ... to here.
12675
12676 2011-05-21  Bruno Haible  <bruno@clisp.org>
12677
12678         readline: Move AC_LIBOBJ invocations to module description.
12679         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12680         gl_PREREQ_READLINE invocations from here...
12681         * modules/readline (configure.ac): ... to here.
12682
12683 2011-05-21  Bruno Haible  <bruno@clisp.org>
12684
12685         read: Move AC_LIBOBJ invocations to module description.
12686         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12687         * modules/read (configure.ac): ... to here.
12688
12689 2011-05-21  Bruno Haible  <bruno@clisp.org>
12690
12691         rawmemchr: Move AC_LIBOBJ invocations to module description.
12692         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12694         from here...
12695         * modules/rawmemchr (configure.ac): ... to here.
12696
12697 2011-05-21  Bruno Haible  <bruno@clisp.org>
12698
12699         random_r: Move AC_LIBOBJ invocations to module description.
12700         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12701         gl_PREREQ_RANDOM_R invocations from here...
12702         * modules/random_r (configure.ac): ... to here.
12703
12704 2011-05-21  Bruno Haible  <bruno@clisp.org>
12705
12706         pwrite: Move AC_LIBOBJ invocations to module description.
12707         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12708         * modules/pwrite (configure.ac): ... to here.
12709
12710 2011-05-21  Bruno Haible  <bruno@clisp.org>
12711
12712         putenv: Move AC_LIBOBJ invocations to module description.
12713         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12714         * modules/putenv (configure.ac): ... to here.
12715
12716 2011-05-21  Bruno Haible  <bruno@clisp.org>
12717
12718         login_tty: Move AC_LIBOBJ invocations to module description.
12719         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12720         * modules/login_tty (configure.ac): ... to here.
12721
12722 2011-05-21  Bruno Haible  <bruno@clisp.org>
12723
12724         openpty: Move AC_LIBOBJ invocations to module description.
12725         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12726         * modules/openpty (configure.ac): ... to here.
12727
12728 2011-05-21  Bruno Haible  <bruno@clisp.org>
12729
12730         forkpty: Move AC_LIBOBJ invocations to module description.
12731         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12732         * modules/forkpty (configure.ac): ... to here.
12733
12734 2011-05-21  Bruno Haible  <bruno@clisp.org>
12735
12736         ptsname: Move AC_LIBOBJ invocations to module description.
12737         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12738         invocations from here...
12739         * modules/ptsname (configure.ac): ... to here.
12740
12741 2011-05-21  Bruno Haible  <bruno@clisp.org>
12742
12743         pread: Move AC_LIBOBJ invocations to module description.
12744         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12745         * modules/pread (configure.ac): ... to here.
12746
12747 2011-05-21  Bruno Haible  <bruno@clisp.org>
12748
12749         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12750         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12751         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12752         * modules/posix_spawn (configure.ac): ... to here.
12753         * modules/posix_spawnp (configure.ac): ... and here.
12754
12755 2011-05-21  Bruno Haible  <bruno@clisp.org>
12756
12757         popen: Move AC_LIBOBJ invocations to module description.
12758         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12759         invocations from here...
12760         * modules/popen (configure.ac): ... to here.
12761
12762 2011-05-21  Bruno Haible  <bruno@clisp.org>
12763
12764         poll: Move AC_LIBOBJ invocations to module description.
12765         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12766         invocations from here...
12767         * modules/poll (configure.ac): ... to here.
12768
12769 2011-05-21  Bruno Haible  <bruno@clisp.org>
12770
12771         pipe-posix: Move AC_LIBOBJ invocations to module description.
12772         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12773         * modules/pipe-posix (configure.ac): ... to here.
12774
12775 2011-05-21  Bruno Haible  <bruno@clisp.org>
12776
12777         openat: Respect rules for use of AC_LIBOBJ.
12778         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12779         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12780         * modules/openat (configure.ac): ... to here.
12781
12782 2011-05-21  Bruno Haible  <bruno@clisp.org>
12783
12784         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12785         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12786         invocation from here...
12787         * modules/obstack-printf (configure.ac): ... to here.
12788         * modules/obstack-printf-posix (configure.ac): ... and here.
12789
12790 2011-05-21  Bruno Haible  <bruno@clisp.org>
12791
12792         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12793         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12794         from here...
12795         * modules/nl_langinfo (configure.ac): ... to here.
12796
12797 2011-05-21  Bruno Haible  <bruno@clisp.org>
12798
12799         nanosleep: Move AC_LIBOBJ invocations to module description.
12800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12801         gl_PREREQ_NANOSLEEP invocations from here...
12802         * modules/nanosleep (configure.ac): ... to here.
12803
12804 2011-05-21  Bruno Haible  <bruno@clisp.org>
12805
12806         mountlist: Move AC_LIBOBJ invocations to module description.
12807         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12808         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12809         * modules/mountlist (configure.ac): ... to here.
12810
12811 2011-05-21  Bruno Haible  <bruno@clisp.org>
12812
12813         mktime: Respect rules for use of AC_LIBOBJ.
12814         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12815         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12816         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12817         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12818         * modules/mktime (configure.ac): ... to here.
12819         * modules/mktime-internal (configure.ac): ... and here.
12820         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12821
12822 2011-05-21  Bruno Haible  <bruno@clisp.org>
12823
12824         mkstemps: Move AC_LIBOBJ invocations to module description.
12825         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12826         here...
12827         * modules/mkstemps (configure.ac): ... to here.
12828
12829 2011-05-21  Bruno Haible  <bruno@clisp.org>
12830
12831         mkstemp: Move AC_LIBOBJ invocations to module description.
12832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12833         gl_PREREQ_MKSTEMP invocations from here...
12834         * modules/mkstemp (configure.ac): ... to here.
12835
12836 2011-05-21  Bruno Haible  <bruno@clisp.org>
12837
12838         mkostemps: Move AC_LIBOBJ invocations to module description.
12839         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12840         here...
12841         * modules/mkostemps (configure.ac): ... to here.
12842
12843 2011-05-21  Bruno Haible  <bruno@clisp.org>
12844
12845         mkostemp: Move AC_LIBOBJ invocations to module description.
12846         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
12847         gl_PREREQ_MKOSTEMP invocations from here...
12848         * modules/mkostemp (configure.ac): ... to here.
12849
12850 2011-05-21  Bruno Haible  <bruno@clisp.org>
12851
12852         mknod: Move AC_LIBOBJ invocations to module description.
12853         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
12854         * modules/mknod (configure.ac): ... to here.
12855
12856 2011-05-21  Bruno Haible  <bruno@clisp.org>
12857
12858         mkfifoat: Move AC_LIBOBJ invocations to module description.
12859         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
12860         here...
12861         * modules/mkfifoat (configure.ac): ... to here.
12862
12863 2011-05-21  Bruno Haible  <bruno@clisp.org>
12864
12865         mkfifo: Respect rules for use of AC_LIBOBJ.
12866         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
12867         here...
12868         * modules/mkfifo (configure.ac): ... to here.
12869
12870 2011-05-21  Bruno Haible  <bruno@clisp.org>
12871
12872         mkdtemp: Move AC_LIBOBJ invocations to module description.
12873         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
12874         invocations from here...
12875         * modules/mkdtemp (configure.ac): ... to here.
12876
12877 2011-05-21  Bruno Haible  <bruno@clisp.org>
12878
12879         mkdir: Move AC_LIBOBJ invocations to module description.
12880         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
12881         * modules/mkdir (configure.ac): ... to here.
12882
12883 2011-05-21  Bruno Haible  <bruno@clisp.org>
12884
12885         memset: Move AC_LIBOBJ invocations to module description.
12886         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
12887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
12888         here...
12889         * modules/memset (configure.ac): ... to here.
12890
12891 2011-05-21  Bruno Haible  <bruno@clisp.org>
12892
12893         memrchr: Move AC_LIBOBJ invocations to module description.
12894         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
12895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
12896         here...
12897         * modules/memrchr (configure.ac): ... to here.
12898
12899 2011-05-21  Bruno Haible  <bruno@clisp.org>
12900
12901         mempcpy: Move AC_LIBOBJ invocations to module description.
12902         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
12903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
12904         here...
12905         * modules/mempcpy (configure.ac): ... to here.
12906
12907 2011-05-21  Bruno Haible  <bruno@clisp.org>
12908
12909         memmove: Move AC_LIBOBJ invocations to module description.
12910         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
12911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
12912         here...
12913         * modules/memmove (configure.ac): ... to here.
12914
12915 2011-05-21  Bruno Haible  <bruno@clisp.org>
12916
12917         memmem*: Move AC_LIBOBJ invocations to module description.
12918         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
12919         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
12920         here...
12921         (gl_FUNC_MEMMEM): ... and here...
12922         * modules/memmem-simple (configure.ac): ... to here.
12923         * modules/memmem (configure.ac): ... and here.
12924
12925 2011-05-21  Bruno Haible  <bruno@clisp.org>
12926
12927         memcpy: Move AC_LIBOBJ invocations to module description.
12928         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
12929         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
12930         here...
12931         * modules/memcpy (configure.ac): ... to here.
12932
12933 2011-05-21  Bruno Haible  <bruno@clisp.org>
12934
12935         memcmp: Simplify autoconf macro.
12936         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
12937         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
12938         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
12939
12940 2011-05-21  Bruno Haible  <bruno@clisp.org>
12941
12942         memcmp: Move AC_LIBOBJ invocations to module description.
12943         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
12944         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
12945         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
12946         * modules/memcmp (configure.ac): ... to here.
12947         (Depends-on): Update conditions.
12948
12949 2011-05-21  Bruno Haible  <bruno@clisp.org>
12950
12951         memchr: Respect rules for use of AC_LIBOBJ.
12952         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
12953         invocations from here...
12954         * modules/memchr (configure.ac): ... to here.
12955
12956 2011-05-21  Bruno Haible  <bruno@clisp.org>
12957
12958         mbtowc: Move AC_LIBOBJ invocations to module description.
12959         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
12960         invocations from here...
12961         * modules/mbtowc (configure.ac): ... to here.
12962
12963 2011-05-21  Bruno Haible  <bruno@clisp.org>
12964
12965         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
12966         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
12967         gl_PREREQ_MBSRTOWCS invocations from here...
12968         * modules/mbsrtowcs (configure.ac): ... to here.
12969
12970 2011-05-21  Bruno Haible  <bruno@clisp.org>
12971
12972         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
12973         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
12974         gl_PREREQ_MBSNRTOWCS invocations from here...
12975         * modules/mbsnrtowcs (configure.ac): ... to here.
12976
12977 2011-05-21  Bruno Haible  <bruno@clisp.org>
12978
12979         mbsinit: Move AC_LIBOBJ invocations to module description.
12980         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
12981         invocations from here...
12982         * modules/mbsinit (configure.ac): ... to here.
12983
12984 2011-05-21  Bruno Haible  <bruno@clisp.org>
12985
12986         mbrlen: Move AC_LIBOBJ invocations to module description.
12987         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
12988         invocations from here...
12989         * modules/mbrlen (configure.ac): ... to here.
12990
12991 2011-05-21  Bruno Haible  <bruno@clisp.org>
12992
12993         mbrtowc: Respect rules for use of AC_LIBOBJ.
12994         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
12995         invocations from here...
12996         * modules/mbrtowc (configure.ac): ... to here.
12997
12998 2011-05-21  Bruno Haible  <bruno@clisp.org>
12999
13000         malloc-*: Move AC_LIBOBJ invocations to module description.
13001         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13002         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13003         AC_LIBOBJ invocations from here...
13004         * modules/malloc-gnu (configure.ac): ... to here.
13005         * modules/malloc-posix (configure.ac): ... and here.
13006
13007 2011-05-21  Bruno Haible  <bruno@clisp.org>
13008
13009         lstat, openat: Respect rules for use of AC_LIBOBJ.
13010         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13011         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13012         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13013         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13014         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13015         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13016         here.
13017         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13018
13019 2011-05-21  Bruno Haible  <bruno@clisp.org>
13020
13021         lseek: Move AC_LIBOBJ invocations to module description.
13022         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13023         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13024         * modules/lseek (configure.ac): ... to here.
13025
13026 2011-05-21  Bruno Haible  <bruno@clisp.org>
13027
13028         linkat: Move AC_LIBOBJ invocations to module description.
13029         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13030         here...
13031         * modules/linkat (configure.ac): ... to here.
13032
13033 2011-05-21  Bruno Haible  <bruno@clisp.org>
13034
13035         link: Respect rules for use of AC_LIBOBJ.
13036         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13037         * modules/link (configure.ac): ... to here.
13038
13039 2011-05-21  Bruno Haible  <bruno@clisp.org>
13040
13041         lchown: Move AC_LIBOBJ invocations to module description.
13042         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13043         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13044         * modules/lchown (configure.ac): ... to here.
13045
13046 2011-05-21  Bruno Haible  <bruno@clisp.org>
13047
13048         iswctype: Move AC_LIBOBJ invocations to module description.
13049         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13050         here...
13051         * modules/iswctype (configure.ac): ... to here.
13052
13053 2011-05-21  Bruno Haible  <bruno@clisp.org>
13054
13055         iswblank: Move AC_LIBOBJ invocations to module description.
13056         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13057         here...
13058         * modules/iswblank (configure.ac): ... to here.
13059
13060 2011-05-21  Bruno Haible  <bruno@clisp.org>
13061
13062         atanl: Move AC_LIBOBJ invocations to module description.
13063         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13064         * modules/atanl (configure.ac): ... to here.
13065
13066 2011-05-21  Bruno Haible  <bruno@clisp.org>
13067
13068         acosl: Move AC_LIBOBJ invocations to module description.
13069         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13070         * modules/acosl (configure.ac): ... to here.
13071
13072 2011-05-21  Bruno Haible  <bruno@clisp.org>
13073
13074         asinl: Respect rules for use of AC_LIBOBJ.
13075         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13076         * modules/asinl (configure.ac): ... to here.
13077
13078 2011-05-21  Bruno Haible  <bruno@clisp.org>
13079
13080         tanl: Move AC_LIBOBJ invocations to module description.
13081         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13082         * modules/tanl (configure.ac): ... to here.
13083
13084 2011-05-21  Bruno Haible  <bruno@clisp.org>
13085
13086         cosl: Move AC_LIBOBJ invocations to module description.
13087         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13088         * modules/cosl (configure.ac): ... to here.
13089
13090 2011-05-21  Bruno Haible  <bruno@clisp.org>
13091
13092         sinl: Move AC_LIBOBJ invocations to module description.
13093         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13094         * modules/sinl (configure.ac): ... to here.
13095
13096 2011-05-21  Bruno Haible  <bruno@clisp.org>
13097
13098         logl: Move AC_LIBOBJ invocations to module description.
13099         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13100         * modules/logl (configure.ac): ... to here.
13101
13102 2011-05-21  Bruno Haible  <bruno@clisp.org>
13103
13104         expl: Move AC_LIBOBJ invocations to module description.
13105         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13106         * modules/expl (configure.ac): ... to here.
13107
13108 2011-05-21  Bruno Haible  <bruno@clisp.org>
13109
13110         roundl: Move AC_LIBOBJ invocations to module description.
13111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13112         * modules/roundl (configure.ac): ... to here.
13113
13114 2011-05-21  Bruno Haible  <bruno@clisp.org>
13115
13116         round: Move AC_LIBOBJ invocations to module description.
13117         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13118         * modules/round (configure.ac): ... to here.
13119
13120 2011-05-21  Bruno Haible  <bruno@clisp.org>
13121
13122         roundf: Move AC_LIBOBJ invocations to module description.
13123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13124         * modules/roundf (configure.ac): ... to here.
13125
13126 2011-05-21  Bruno Haible  <bruno@clisp.org>
13127
13128         truncl: Move AC_LIBOBJ invocations to module description.
13129         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13130         * modules/truncl (configure.ac): ... to here.
13131
13132 2011-05-21  Bruno Haible  <bruno@clisp.org>
13133
13134         trunc: Move AC_LIBOBJ invocations to module description.
13135         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13136         * modules/trunc (configure.ac): ... to here.
13137
13138 2011-05-21  Bruno Haible  <bruno@clisp.org>
13139
13140         truncf: Move AC_LIBOBJ invocations to module description.
13141         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13142         * modules/truncf (configure.ac): ... to here.
13143
13144 2011-05-21  Bruno Haible  <bruno@clisp.org>
13145
13146         ceill: Move AC_LIBOBJ invocations to module description.
13147         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13148         * modules/ceill (configure.ac): ... to here.
13149
13150 2011-05-21  Bruno Haible  <bruno@clisp.org>
13151
13152         ceil: Move AC_LIBOBJ invocations to module description.
13153         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13154         * modules/ceil (configure.ac): ... to here.
13155
13156 2011-05-21  Bruno Haible  <bruno@clisp.org>
13157
13158         ceilf: Move AC_LIBOBJ invocations to module description.
13159         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13160         * modules/ceilf (configure.ac): ... to here.
13161
13162 2011-05-21  Bruno Haible  <bruno@clisp.org>
13163
13164         floorl: Respect rules for use of AC_LIBOBJ.
13165         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13166         * modules/floorl (configure.ac): ... to here.
13167
13168 2011-05-21  Bruno Haible  <bruno@clisp.org>
13169
13170         floor: Respect rules for use of AC_LIBOBJ.
13171         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13172         * modules/floor (configure.ac): ... to here.
13173
13174 2011-05-21  Bruno Haible  <bruno@clisp.org>
13175
13176         floorf: Move AC_LIBOBJ invocations to module description.
13177         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13178         * modules/floorf (configure.ac): ... to here.
13179
13180 2011-05-20  Bruno Haible  <bruno@clisp.org>
13181
13182         sqrtl: Respect rules for use of AC_LIBOBJ.
13183         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13184         * modules/sqrtl (configure.ac): ... to here.
13185
13186 2011-05-20  Bruno Haible  <bruno@clisp.org>
13187
13188         ldexpl: Respect rules for use of AC_LIBOBJ.
13189         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13190         * modules/ldexpl (configure.ac): ... to here.
13191
13192 2011-05-20  Bruno Haible  <bruno@clisp.org>
13193
13194         frexpl*: Respect rules for use of AC_LIBOBJ.
13195         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13196         invocation from here...
13197         * modules/frexpl (configure.ac): ... to here.
13198         * modules/frexpl-nolibm (configure.ac): ... and here.
13199
13200 2011-05-20  Bruno Haible  <bruno@clisp.org>
13201
13202         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13203         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13204         invocation from here...
13205         * modules/frexp (configure.ac): ... to here.
13206         * modules/frexp-nolibm (configure.ac): ... and here.
13207
13208 2011-05-20  Bruno Haible  <bruno@clisp.org>
13209
13210         isnan: Respect rules for use of AC_LIBOBJ.
13211         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13212         invocations here.
13213         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13214         REPLACE_ISNAN.
13215         * modules/isnand (configure.ac): Likewise.
13216         * modules/isnanl (configure.ac): Likewise.
13217
13218 2011-05-20  Bruno Haible  <bruno@clisp.org>
13219
13220         isnanl*: Respect rules for use of AC_LIBOBJ.
13221         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13222         invocation from here...
13223         * modules/isnanl (configure.ac): ... to here.
13224         * modules/isnanl-nolibm (configure.ac): ... and here.
13225
13226 2011-05-20  Bruno Haible  <bruno@clisp.org>
13227
13228         isnand*: Move AC_LIBOBJ invocations to module description.
13229         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13230         invocation from here...
13231         * modules/isnand (configure.ac): ... to here.
13232         * modules/isnand-nolibm (configure.ac): ... and here.
13233
13234 2011-05-20  Bruno Haible  <bruno@clisp.org>
13235
13236         isnanf*: Move AC_LIBOBJ invocations to module description.
13237         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13238         invocation from here...
13239         * modules/isnanf (configure.ac): ... to here.
13240         * modules/isnanf-nolibm (configure.ac): ... and here.
13241
13242 2011-05-20  Bruno Haible  <bruno@clisp.org>
13243
13244         isnan*: Separate the AC_LIBOBJ invocations.
13245         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13246         AC_LIBOBJ invocation.
13247         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13248         here.
13249         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13250         AC_LIBOBJ invocation.
13251         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13252         here.
13253         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13254         AC_LIBOBJ invocation.
13255         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13256         here.
13257         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13258
13259 2011-05-08  Bruno Haible  <bruno@clisp.org>
13260
13261         isinf: Move AC_LIBOBJ invocations to module description.
13262         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13263         * modules/isinf (configure.ac): ... to here.
13264
13265 2011-05-08  Bruno Haible  <bruno@clisp.org>
13266
13267         isfinite: Move AC_LIBOBJ invocations to module description.
13268         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13269         * modules/isfinite (configure.ac): ... to here.
13270
13271 2011-05-08  Bruno Haible  <bruno@clisp.org>
13272
13273         isblank: Move AC_LIBOBJ invocations to module description.
13274         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13275         here...
13276         * modules/isblank (configure.ac): ... to here.
13277
13278 2011-05-08  Bruno Haible  <bruno@clisp.org>
13279
13280         isapipe: Move AC_LIBOBJ invocations to module description.
13281         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13282         gl_PREREQ_ISAPIPE invocations from here...
13283         * modules/isapipe (configure.ac): ... to here.
13284         (Depends-on): Update condition.
13285
13286 2011-05-08  Bruno Haible  <bruno@clisp.org>
13287
13288         ioctl: Move AC_LIBOBJ invocations to module description.
13289         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13290         invocations from here...
13291         * modules/ioctl (configure.ac): ... to here.
13292         (Depends-on): Update condition.
13293
13294 2011-05-08  Bruno Haible  <bruno@clisp.org>
13295
13296         imaxdiv: Move AC_LIBOBJ invocations to module description.
13297         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13298         invocations from here...
13299         * modules/imaxdiv (configure.ac): ... to here.
13300
13301 2011-05-08  Bruno Haible  <bruno@clisp.org>
13302
13303         imaxabs: Move AC_LIBOBJ invocations to module description.
13304         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13305         invocations from here...
13306         * modules/imaxabs (configure.ac): ... to here.
13307
13308 2011-05-08  Bruno Haible  <bruno@clisp.org>
13309
13310         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13312         AC_LIBOBJ invocations from here...
13313         * modules/getaddrinfo (configure.ac): ... to here.
13314         (Depends-on): Add conditions.
13315
13316 2011-05-08  Bruno Haible  <bruno@clisp.org>
13317
13318         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13319         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13320         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13321         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13322         (gl_PREREQ_INET_PTON): ... from here.
13323         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13324         gl_PREREQ_INET_PTON here.
13325         (Depends-on): Update condition.
13326
13327 2011-05-08  Bruno Haible  <bruno@clisp.org>
13328
13329         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13330         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13331         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13332         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13333         (gl_PREREQ_INET_NTOP): ... from here.
13334         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13335         gl_PREREQ_INET_NTOP here.
13336         (Depends-on): Update condition.
13337
13338 2011-05-08  Bruno Haible  <bruno@clisp.org>
13339
13340         iconv_open: Move AC_LIBOBJ invocations to module description.
13341         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13342         AC_LIBOBJ invocations from here...
13343         * modules/iconv_open (configure.ac): ... to here.
13344
13345 2011-05-08  Bruno Haible  <bruno@clisp.org>
13346
13347         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13348         If module 'iconv_open' is among the main modules and module
13349         'iconv_open-utf' is among the tests dependencies, then
13350         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13351         return the special iconv_t values. Therefore iconv() and iconv_close()
13352         must support these special iconv_t values, already in lib, not only in
13353         tests.
13354         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13355         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13356         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13357         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13358         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13359         (Depends-on): Add the dependencies of iconv_open-utf.
13360         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13361         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13362         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13363
13364 2011-05-08  Bruno Haible  <bruno@clisp.org>
13365
13366         group-member: Move AC_LIBOBJ invocations to module description.
13367         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13368         gl_PREREQ_GROUP_MEMBER invocations from here...
13369         * modules/group-member (configure.ac): ... to here.
13370
13371 2011-05-08  Bruno Haible  <bruno@clisp.org>
13372
13373         grantpt: Move AC_LIBOBJ invocations to module description.
13374         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13375         invocations from here...
13376         * modules/grantpt (configure.ac): ... to here.
13377
13378 2011-05-08  Bruno Haible  <bruno@clisp.org>
13379
13380         glob: Move AC_LIBOBJ invocations to module description.
13381         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13382         from here...
13383         * modules/glob (configure.ac): ... to here.
13384
13385 2011-05-08  Bruno Haible  <bruno@clisp.org>
13386
13387         getusershell: Move AC_LIBOBJ invocations to module description.
13388         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13389         Move AC_LIBOBJ invocation from here...
13390         * modules/getusershell (configure.ac): ... to here.
13391         (Depends-on): Update condition.
13392
13393 2011-05-08  Bruno Haible  <bruno@clisp.org>
13394
13395         gettimeofday: Move AC_LIBOBJ invocations to module description.
13396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13397         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13398         gl_PREREQ_GETTIMEOFDAY invocations from here...
13399         * modules/gettimeofday (configure.ac): ... to here.
13400
13401 2011-05-08  Bruno Haible  <bruno@clisp.org>
13402
13403         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13404         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13405         just gl_FUNC_TZSET.
13406         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13407         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13408         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13409         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13410
13411 2011-05-08  Bruno Haible  <bruno@clisp.org>
13412
13413         getsubopt: Move AC_LIBOBJ invocations to module description.
13414         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13415         gl_PREREQ_GETSUBOPT invocations from here...
13416         * modules/getsubopt (configure.ac): ... to here.
13417
13418 2011-05-08  Bruno Haible  <bruno@clisp.org>
13419
13420         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13421         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13422         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13423         * modules/getpass-gnu (configure.ac): ... to here.
13424
13425 2011-05-08  Bruno Haible  <bruno@clisp.org>
13426
13427         getpass: Move AC_LIBOBJ invocations to module description.
13428         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13429         gl_PREREQ_GETPASS invocations from here...
13430         * modules/getpass (configure.ac): ... to here.
13431
13432 2011-05-08  Bruno Haible  <bruno@clisp.org>
13433
13434         getpagesize: Move AC_LIBOBJ invocations to module description.
13435         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13436         from here...
13437         * modules/getpagesize (configure.ac): ... to here.
13438
13439 2011-05-08  Bruno Haible  <bruno@clisp.org>
13440
13441         getopt: Move AC_LIBOBJ invocations to module description.
13442         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13443         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13444         invocations from here...
13445         * modules/getopt-gnu (configure.ac): ... to here.
13446         * modules/getopt-posix (configure.ac): ... and here.
13447         (Depends-on): Update condition.
13448
13449 2011-05-08  Bruno Haible  <bruno@clisp.org>
13450
13451         getopt, argp: Respect rules for use of AC_LIBOBJ.
13452         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13453         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13454         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13455         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13456
13457 2011-05-08  Bruno Haible  <bruno@clisp.org>
13458
13459         getlogin_r: Move AC_LIBOBJ invocations to module description.
13460         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13461         gl_PREREQ_GETLOGIN_R invocations from here...
13462         * modules/getlogin_r (configure.ac): ... to here.
13463
13464 2011-05-08  Bruno Haible  <bruno@clisp.org>
13465
13466         getlogin: Move AC_LIBOBJ invocations to module description.
13467         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13468         here...
13469         * modules/getlogin (configure.ac): ... to here.
13470
13471 2011-05-08  Bruno Haible  <bruno@clisp.org>
13472
13473         getloadavg: Move AC_LIBOBJ invocations to module description.
13474         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13475         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13476         * modules/getloadavg (configure.ac): ... to here.
13477
13478 2011-05-08  Bruno Haible  <bruno@clisp.org>
13479
13480         gethrxtime: Move AC_LIBOBJ invocations to module description.
13481         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13482         LIB_GETHRXTIME from here...
13483         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13484         invocations from here...
13485         * modules/gethrxtime (configure.ac): ... to here.
13486
13487 2011-05-08  Bruno Haible  <bruno@clisp.org>
13488
13489         gethostname: Move AC_LIBOBJ invocations to module description.
13490         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13491         gl_PREREQ_GETHOSTNAME invocations from here...
13492         * modules/gethostname (configure.ac): ... to here.
13493
13494 2011-05-08  Bruno Haible  <bruno@clisp.org>
13495
13496         getgroups: Move AC_LIBOBJ invocations to module description.
13497         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13498         here...
13499         * modules/getgroups (configure.ac): ... to here.
13500
13501 2011-05-08  Bruno Haible  <bruno@clisp.org>
13502
13503         getdtablesize: Move AC_LIBOBJ invocations to module description.
13504         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13505         invocation from here...
13506         * modules/getdtablesize (configure.ac): ... to here.
13507
13508 2011-05-08  Bruno Haible  <bruno@clisp.org>
13509
13510         getdomainname: Move AC_LIBOBJ invocations to module description.
13511         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13512         gl_PREREQ_GETDOMAINNAME invocations from here...
13513         * modules/getdomainname (configure.ac): ... to here.
13514
13515 2011-05-08  Bruno Haible  <bruno@clisp.org>
13516
13517         getline: Move AC_LIBOBJ invocations to module description.
13518         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13519         invocations from here...
13520         * modules/getline (configure.ac): ... to here.
13521
13522 2011-05-08  Bruno Haible  <bruno@clisp.org>
13523
13524         getline: Simplify.
13525         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13526         It's already handled through the module dependency.
13527
13528 2011-05-08  Bruno Haible  <bruno@clisp.org>
13529
13530         getdelim: Move AC_LIBOBJ invocations to module description.
13531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13532         and gl_PREREQ_GETDELIM invocations from here...
13533         * modules/getdelim (configure.ac): ... to here.
13534         (Depends-on): Fix condition.
13535
13536 2011-05-08  Bruno Haible  <bruno@clisp.org>
13537
13538         getcwd: Move AC_LIBOBJ invocations to module description.
13539         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13540         invocations from here...
13541         * modules/getcwd (configure.ac): ... to here.
13542
13543 2011-05-08  Bruno Haible  <bruno@clisp.org>
13544
13545         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13546         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13547         here...
13548         * modules/getcwd-lgpl (configure.ac): ... to here.
13549
13550 2011-05-07  Bruno Haible  <bruno@clisp.org>
13551
13552         crypto/gc: Move AC_LIBOBJ invocations to module description.
13553         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13554         * modules/crypto/gc (configure.ac): ... to here.
13555
13556 2011-05-07  Bruno Haible  <bruno@clisp.org>
13557
13558         fwriting: Move AC_LIBOBJ invocations to module description.
13559         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13560         here...
13561         * modules/fwriting (configure.ac): ... to here.
13562
13563 2011-05-07  Bruno Haible  <bruno@clisp.org>
13564
13565         fwritable: Move AC_LIBOBJ invocations to module description.
13566         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13567         here...
13568         * modules/fwritable (configure.ac): ... to here.
13569
13570 2011-05-07  Bruno Haible  <bruno@clisp.org>
13571
13572         futimens: Move AC_LIBOBJ invocations to module description.
13573         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13574         here...
13575         * modules/futimens (configure.ac): ... to here.
13576
13577 2011-05-07  Bruno Haible  <bruno@clisp.org>
13578
13579         ftruncate: Move AC_LIBOBJ invocations to module description.
13580         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13581         gl_PREREQ_FTRUNCATE invocations from here...
13582         * modules/ftruncate (configure.ac): ... to here.
13583
13584 2011-05-07  Bruno Haible  <bruno@clisp.org>
13585
13586         fsync: Move AC_LIBOBJ invocations to module description.
13587         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13588         invocations from here...
13589         * modules/fsync (configure.ac): ... to here.
13590
13591 2011-05-07  Bruno Haible  <bruno@clisp.org>
13592
13593         fsusage: Move AC_LIBOBJ invocations to module description.
13594         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13595         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13596         * modules/fsusage (configure.ac): ... to here.
13597
13598 2011-05-07  Bruno Haible  <bruno@clisp.org>
13599
13600         freopen: Move AC_LIBOBJ invocations to module description.
13601         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13602         invocations from here...
13603         * modules/freopen (configure.ac): ... to here.
13604
13605 2011-05-07  Bruno Haible  <bruno@clisp.org>
13606
13607         free: Move AC_LIBOBJ invocations to module description.
13608         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13609         invocations from here...
13610         * modules/free (configure.ac): ... to here.
13611
13612 2011-05-07  Bruno Haible  <bruno@clisp.org>
13613
13614         freadable: Move AC_LIBOBJ invocations to module description.
13615         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13616         here...
13617         * modules/freadable (configure.ac): ... to here.
13618
13619 2011-05-07  Bruno Haible  <bruno@clisp.org>
13620
13621         fpurge: Move AC_LIBOBJ invocations to module description.
13622         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13623         invocations from here...
13624         * modules/fpurge (configure.ac): ... to here.
13625
13626 2011-05-07  Bruno Haible  <bruno@clisp.org>
13627
13628         fpending: Move AC_LIBOBJ invocations to module description.
13629         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13630         gl_FUNC_FPENDING.
13631         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13632         invocations from here...
13633         * modules/fpending (configure.ac): ... to here.
13634
13635 2011-05-07  Bruno Haible  <bruno@clisp.org>
13636
13637         fopen: Move AC_LIBOBJ invocations to module description.
13638         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13639         invocations from here...
13640         * modules/fopen (configure.ac): ... to here.
13641
13642 2011-05-07  Bruno Haible  <bruno@clisp.org>
13643
13644         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13645         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13646         gl_FUNC_FNMATCH_POSIX.
13647         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13648         invocations from here...
13649         * modules/fnmatch (configure.ac): ... to here.
13650         * modules/fnmatch-gnu (configure.ac): ... and here.
13651
13652 2011-05-07  Bruno Haible  <bruno@clisp.org>
13653
13654         flock: Move AC_LIBOBJ invocations to module description.
13655         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13656         invocations from here...
13657         * modules/flock (configure.ac): ... to here.
13658
13659 2011-05-07  Bruno Haible  <bruno@clisp.org>
13660
13661         fileblocks: Move AC_LIBOBJ invocations to module description.
13662         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13663         gl_PREREQ_FILEBLOCKS invocations from here...
13664         * modules/fileblocks (configure.ac): ... to here.
13665
13666 2011-05-06  Bruno Haible  <bruno@clisp.org>
13667
13668         fflush: Move AC_LIBOBJ invocations to module description.
13669         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13670         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13671         invocations from here...
13672         * modules/fflush (configure.ac): ... to here.
13673
13674 2011-05-06  Bruno Haible  <bruno@clisp.org>
13675
13676         fdopendir: Move AC_LIBOBJ invocations to module description.
13677         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13678         here...
13679         * modules/fdopendir (configure.ac): ... to here.
13680         (Depends-on): Improve conditions.
13681
13682 2011-05-06  Bruno Haible  <bruno@clisp.org>
13683
13684         _Exit: Move AC_LIBOBJ invocations to module description.
13685         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13686         invocations from here...
13687         * modules/_Exit (configure.ac): ... to here.
13688
13689 2011-05-21  Bruno Haible  <bruno@clisp.org>
13690
13691         euidaccess: Respect rules for use of AC_LIBOBJ.
13692         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13694         from here...
13695         * modules/euidaccess (configure.ac): ... to here.
13696
13697 2011-05-06  Bruno Haible  <bruno@clisp.org>
13698
13699         error: Move AC_LIBOBJ invocations to module description.
13700         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13701         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13702         invocations from here...
13703         * modules/error (configure.ac): ... to here.
13704
13705 2011-05-06  Bruno Haible  <bruno@clisp.org>
13706
13707         duplocale: Move AC_LIBOBJ invocations to module description.
13708         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13709         gl_PREREQ_DUPLOCALE invocations from here...
13710         * modules/duplocale (configure.ac): ... to here.
13711
13712 2011-05-05  Bruno Haible  <bruno@clisp.org>
13713
13714         dirfd: Move AC_LIBOBJ invocations to module description.
13715         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13716         gl_FUNC_DIRFD.
13717         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13718         here...
13719         * modules/dirfd (configure.ac): ... to here.
13720         (Depends-on): Fix condition.
13721
13722 2011-05-05  Bruno Haible  <bruno@clisp.org>
13723
13724         chown: Respect rules for use of AC_LIBOBJ.
13725         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13726         * modules/chown (configure.ac): ... to here.
13727
13728 2011-05-05  Bruno Haible  <bruno@clisp.org>
13729
13730         chdir-long: Move AC_LIBOBJ invocations to module description.
13731         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13732         gl_PREREQ_CHDIR_LONG invocations from here...
13733         * modules/chdir-long (configure.ac): ... to here.
13734
13735 2011-05-05  Bruno Haible  <bruno@clisp.org>
13736
13737         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13738         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13739         from here...
13740         * modules/canonicalize-lgpl (configure.ac): ... to here.
13741
13742 2011-05-05  Bruno Haible  <bruno@clisp.org>
13743
13744         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13745         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13746         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13747         REPLACE_CALLOC.
13748         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13749         * modules/calloc-gnu (configure.ac): Likewise.
13750
13751 2011-05-05  Bruno Haible  <bruno@clisp.org>
13752
13753         btowc: Move AC_LIBOBJ invocations to module description.
13754         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13755         invocations from here...
13756         * modules/btowc (configure.ac): ... to here.
13757
13758 2011-05-21  Bruno Haible  <bruno@clisp.org>
13759
13760         atexit: Move AC_LIBOBJ invocations to module description.
13761         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13763         here...
13764         * modules/atexit (configure.ac): ... to here.
13765
13766 2011-05-05  Bruno Haible  <bruno@clisp.org>
13767
13768         atoll: Move AC_LIBOBJ invocations to module description.
13769         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13770         invocations from here...
13771         * modules/atoll (configure.ac): ... to here.
13772
13773 2011-05-05  Bruno Haible  <bruno@clisp.org>
13774
13775         argz: Move AC_LIBOBJ invocations to module description.
13776         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13777         * modules/argz (configure.ac): ... to here.
13778
13779 2011-05-05  Bruno Haible  <bruno@clisp.org>
13780
13781         alphasort: Move AC_LIBOBJ invocations to module description.
13782         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13783         gl_PREREQ_ALPHASORT invocations from here...
13784         * modules/alphasort (configure.ac): ... to here.
13785
13786 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13787
13788         verify: new macro verify_expr; verify_true deprecated
13789         * NEWS: Mention this.
13790         * doc/verify.texi (Compile-time Assertions): Document this.
13791         * lib/verify.h (verify_true): Deprecate.
13792         (verify_expr): New macro.
13793         * tests/test-verify.c (function): Test verify_expr.
13794
13795 2011-06-14  Jim Meyering  <meyering@redhat.com>
13796
13797         init.sh: give more portable redirection-related advice in a comment
13798         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13799         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13800         for lots of discussion.  Stefano Lattarini suggested the solution
13801         of putting "9>&2" after the command.  Reported by Bruno Haible.
13802
13803 2011-06-13  Bruno Haible  <bruno@clisp.org>
13804
13805         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13806         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13807         'none'.
13808
13809 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13810
13811         ftoastr: use strtof only if HAVE_STRTOF
13812         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13814         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13815         * modules/ftoastr (configure.ac): Check for strtof.
13816
13817 2011-06-13  Bruno Haible  <bruno@clisp.org>
13818
13819         gnulib-tool: Addendum to 2011-06-08 commit.
13820         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13821         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13822
13823 2011-06-13  Bruno Haible  <bruno@clisp.org>
13824
13825         fseeko: Provide a non-inline replacement of fseek().
13826         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13827         * modules/fseeko (Depends-on): Add fseek.
13828         * modules/fseek (License): Change to LGPLv2+.
13829
13830 2011-06-13  Bruno Haible  <bruno@clisp.org>
13831
13832         ftello: Provide a non-inline replacement of ftell().
13833         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13834         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13835         not have ftello() (such as on mingw).
13836         * modules/ftello (Depends-on): Add ftell.
13837         * modules/ftell (License): Change to LGPLv2+.
13838
13839 2011-05-07  Bruno Haible  <bruno@clisp.org>
13840
13841         ftell: Move AC_LIBOBJ invocations to module description.
13842         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
13843         * modules/ftell (configure.ac): ... to here.
13844
13845 2011-05-07  Bruno Haible  <bruno@clisp.org>
13846
13847         ftello: Respect rules for use of AC_LIBOBJ.
13848         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
13849         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
13850         here...
13851         * modules/ftello (configure.ac): ... to here.
13852
13853 2011-05-07  Bruno Haible  <bruno@clisp.org>
13854
13855         fseeko: Simplify.
13856         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
13857         (gl_FUNC_FSEEKO): Inline it here.
13858
13859 2011-05-07  Bruno Haible  <bruno@clisp.org>
13860
13861         fseek: Move AC_LIBOBJ invocations to module description.
13862         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
13863         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13864         * modules/fseek (configure.ac): ... to here.
13865
13866 2011-05-07  Bruno Haible  <bruno@clisp.org>
13867
13868         fseek: Respect rules for use of AC_LIBOBJ.
13869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
13870         here...
13871         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
13872
13873 2011-05-07  Bruno Haible  <bruno@clisp.org>
13874
13875         fseeko: Respect rules for use of AC_LIBOBJ.
13876         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
13877         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
13878         here...
13879         * modules/fseeko (configure.ac): ... to here.
13880
13881 2011-06-13  Bruno Haible  <bruno@clisp.org>
13882
13883         gnulib-tool: Allow comments in the 'Depends-on' section.
13884         * doc/gnulib.texi (Module description): Mention comment syntax in the
13885         Depends-on section.
13886         * gnulib-tool (func_get_dependencies): Filter out comment lines.
13887
13888 2011-06-13  Bruno Haible  <bruno@clisp.org>
13889
13890         file-set.h: guard __attibute__ use, now that it's not always defined
13891         * lib/file-set.h (record_file): Use __attribute__ only with compiler
13892         versions that support it.  This fixes a coreutils build failure with
13893         the vendor cc on HP-UX 11.31.
13894
13895 2011-06-12  Bruno Haible  <bruno@clisp.org>
13896
13897         acl: Add support for HP-UX >= 11.11 JFS ACLs.
13898         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
13899         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
13900         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
13901         (acl, aclsort): New declarations.
13902         (aclv_nontrivial): New declaration.
13903         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
13904         (file_has_acl): Read also the second kind of HP-UX ACLs.
13905         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
13906         kind of HP-UX ACLs if the first kind fails.
13907         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
13908         second kind of HP-UX ACLs.
13909         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
13910         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
13911         agree.
13912         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13913         hpuxjfs.
13914         Handle hpuxjfs.
13915         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13916         hpuxjfs.
13917         Handle hpuxjfs.
13918         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13919         (func_test_same_acls): Use both lsacl and getacl.
13920         Handle hpuxjfs.
13921         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13922         (func_test_same_acls): Use both lsacl and getacl.
13923         Handle hpuxjfs.
13924
13925 2011-06-12  Bruno Haible  <bruno@clisp.org>
13926
13927         acl: Complete the 2010-08-10 fix.
13928         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
13929         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
13930         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
13931         explicitly.
13932         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
13933         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
13934
13935 2011-06-12  Bruno Haible  <bruno@clisp.org>
13936
13937         spawn-pipe tests: Comments.
13938         * tests/test-spawn-pipe-child.c (main): Update comment.
13939         Reported by James Youngman <jay@gnu.org>.
13940
13941 2011-06-11  James Youngman  <jay@gnu.org>
13942
13943         New module 'stat-size'.
13944         * modules/stat-size: New module.  Provides macros for accessing
13945         file size information in instances of struct stat.  Depends on the
13946         fileblocks module because it calls st_blocks.
13947         * lib/stat-size.h: New file, adapted from coreutils' system.h.
13948         * doc/gnulib.texi: Include stat-size.texi.
13949         * doc/stat-size.texi: Documentation for this module.
13950         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
13951         * m4/fileblocks.m4: Mention that stat-size depends on the call to
13952         AC_STRUCT_ST_BLOCKS.
13953
13954 2011-06-09  Bruno Haible  <bruno@clisp.org>
13955
13956         thread: Support pthreads-win32.
13957         * lib/glthread/thread.h (gl_thread_self): Define differently on
13958         pthreads-win32.
13959         (gl_null_thread): New declaration.
13960         (gl_thread_self_pointer): New macro.
13961         * lib/glthread/thread.c (gl_null_thread): New constant.
13962         * tests/test-lock.c: Use gl_thread_self_pointer instead of
13963         gl_thread_self.
13964         * tests/test-tls.c: Likewise.
13965         Suggested by Paul Eggert. Reported by Eric Blake.
13966
13967 2011-06-09  Bruno Haible  <bruno@clisp.org>
13968
13969         thread: Fix confusion between NULL and 0.
13970         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
13971         Reported by Paul Eggert.
13972
13973 2011-06-09  Bruno Haible  <bruno@clisp.org>
13974
13975         spawn-pipe tests: Avoid test failure on HP-UX 11.
13976         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
13977         is closed.
13978
13979 2011-06-09  Bruno Haible  <bruno@clisp.org>
13980
13981         acl tests: Fix compilation error on HP-UX 11.
13982         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
13983
13984 2011-06-09  Bruno Haible  <bruno@clisp.org>
13985
13986         rmdir: Avoid test failure on HP-UX 10.20.
13987         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
13988         EEXIST.
13989
13990 2011-06-08  Eric Blake  <eblake@redhat.com>
13991
13992         perror: fix test on mingw
13993         * modules/perror-tests (Depends-on): Add dup2.
13994
13995         strerror_r-posix: fix on MacOS
13996         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
13997         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
13998         logic bug.
13999         * lib/strerror_r.c (strerror_r): Fix the bug.
14000         * lib/strerror.c (strerror): Likewise.
14001         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14002         problem.
14003         * doc/posix-functions/strerror.texi (strerror): Likewise.
14004         * doc/posix-functions/perror.texi (perror): Likewise.
14005         * tests/test-strerror.c (main): Enhance test.
14006         * tests/test-strerror_r.c (main): Likewise.
14007
14008 2011-06-08  Bruno Haible  <bruno@clisp.org>
14009
14010         gnulib-tool: Better isolation between different gnulib-tool invocations.
14011         * gnulib-tool: New option --witness-c-macro.
14012         (witness_c_macro): New variable.
14013         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14014         AM_CPPFLAGS define it as a C macro.
14015         (func_emit_tests_Makefile_am): Likewise.
14016         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14017         read it from there.
14018         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14019         m4_define, not AC_DEFUN.
14020         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14021         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14022         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14023         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14024         s|...|...|, to substitute the values of the GNULIB_* module indicator
14025         variables.
14026         * modules/dirent (Makefile.am): Likewise.
14027         * modules/fcntl-h (Makefile.am): Likewise.
14028         * modules/iconv-h (Makefile.am): Likewise.
14029         * modules/langinfo (Makefile.am): Likewise.
14030         * modules/locale (Makefile.am): Likewise.
14031         * modules/math (Makefile.am): Likewise.
14032         * modules/netdb (Makefile.am): Likewise.
14033         * modules/poll-h (Makefile.am): Likewise.
14034         * modules/pty (Makefile.am): Likewise.
14035         * modules/search (Makefile.am): Likewise.
14036         * modules/signal (Makefile.am): Likewise.
14037         * modules/spawn (Makefile.am): Likewise.
14038         * modules/stdio (Makefile.am): Likewise.
14039         * modules/stdlib (Makefile.am): Likewise.
14040         * modules/string (Makefile.am): Likewise.
14041         * modules/sys_ioctl (Makefile.am): Likewise.
14042         * modules/sys_select (Makefile.am): Likewise.
14043         * modules/sys_socket (Makefile.am): Likewise.
14044         * modules/sys_stat (Makefile.am): Likewise.
14045         * modules/sys_times (Makefile.am): Likewise.
14046         * modules/sys_utsname (Makefile.am): Likewise.
14047         * modules/sys_wait (Makefile.am): Likewise.
14048         * modules/termios (Makefile.am): Likewise.
14049         * modules/time (Makefile.am): Likewise.
14050         * modules/unistd (Makefile.am): Likewise.
14051         * modules/wchar (Makefile.am): Likewise.
14052
14053 2011-06-08  Eric Blake  <eblake@redhat.com>
14054
14055         strerror: simplify replacement
14056         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14057         * modules/strerror (configure.ac): No prereqs needed here...
14058         * modules/strerror-override (configure.ac): ...but this needs it.
14059         (Files): Add file for needed prereq macro.
14060
14061 2011-06-08  Bruno Haible  <bruno@clisp.org>
14062
14063         strerror_r-posix: Tweaks.
14064         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14065         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14067         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14068         (gl_FUNC_STRERROR_R): ... to here.
14069         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14070
14071 2011-06-07  Eric Blake  <eblake@redhat.com>
14072
14073         perror: document fixed bugs
14074         * doc/posix-functions/perror.texi (perror): Document recent
14075         patches.
14076
14077 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14078
14079         stat-time: get_stat_birthtime failure is better-defined
14080         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14081         return a timestamp whose tv_sec and tv_nsec values are both -1.
14082         Previously, the spec said only that the tv_nsec value was negative.
14083         This upward-compatible change simplifies GNU tar a bit.
14084
14085 2011-06-07  Eric Blake  <eblake@redhat.com>
14086
14087         strerror_r-posix: work around cygwin 1.7.9
14088         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14089         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14090         bug without replacing strerror_r.
14091         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14092         strerror_r is buggy, but without requiring strerror_r compilation.
14093         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14094
14095         test-perror: relax test to ignore cygwin bug
14096         * tests/test-perror2.c (main): Relax test on requiring detection
14097         of stream errors, and use unbuffered stream.
14098         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14099         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14100         * doc/posix-functions/fputc.texi (fputc): Likewise.
14101         * doc/posix-functions/fputs.texi (fputs): Likewise.
14102         * doc/posix-functions/fputws.texi (fputws): Likewise.
14103         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14104         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14105         * doc/posix-functions/getopt.texi (getopt): Likewise.
14106         * doc/posix-functions/perror.texi (perror): Likewise.
14107         * doc/posix-functions/printf.texi (printf): Likewise.
14108         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14109         * doc/posix-functions/psignal.texi (psignal): Likewise.
14110         * doc/posix-functions/putc.texi (putc): Likewise.
14111         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14112         Likewise.
14113         * doc/posix-functions/putchar.texi (putchar): Likewise.
14114         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14115         Likewise.
14116         * doc/posix-functions/puts.texi (puts): Likewise.
14117         * doc/posix-functions/putwc.texi (putwc): Likewise.
14118         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14119         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14120         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14121         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14122         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14123         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14124         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14125         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14126
14127 2011-05-22  Bruno Haible  <bruno@clisp.org>
14128
14129         strerror: Move AC_LIBOBJ invocations to module description.
14130         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14131         gl_PREREQ_STRERROR invocations from here...
14132         * modules/strerror (configure.ac): ... to here.
14133
14134 2011-05-21  Bruno Haible  <bruno@clisp.org>
14135
14136         perror: Use common idiom.
14137         * modules/perror (configure.ac): Reorder statements.
14138
14139 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14140
14141         tests: fix usage message in 'mktempd_'
14142         * tests/init.sh (mktempd_): In the usage message, use literal
14143         'mktempd_', not '$ME' (which is even undefined), as the name of
14144         the subroutine.
14145
14146 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14147
14148         tests init: new function 'fatal_', for hard errors
14149         Before this patch, the only way offered by tests/init.sh to
14150         properly signal a hard error was the `framework_failure_'
14151         function.  But the error message issued by that function,
14152         as its name would suggest, refers to a set-up failure in the
14153         testsuite, while hard errors can obviously also be due to
14154         other reasons.  The best way to fix this inconsistency is to
14155         introduce a new function with a more general error message.
14156         * tests/init.sh (fatal_): New function.
14157
14158 2011-06-06  Eric Blake  <eblake@redhat.com>
14159
14160         canonicalize-lgpl: use common idiom
14161         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14162         over newer POSIX -Rf.
14163         Reported by Bruno Haible.
14164
14165         canonicalize-lgpl: work around AIX realpath bug
14166         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14167         * doc/posix-functions/realpath.texi (realpath): Document it.
14168         Reported by Bruno Haible.
14169
14170         strerror: work around FreeBSD bug
14171         * lib/strerror.c (strerror): Special case 0.
14172         Reported by Bruno Haible.
14173
14174         strerror-override: avoid bloating errno module
14175         * modules/errno (Files, configure.ac): Move replacement strings...
14176         * modules/strerror-override: ...to new module.
14177         * modules/strerror (Depends-on): Add strerror-override.
14178         * modules/strerror_r-posix (Depends-on): Likewise.
14179         * MODULES.html.sh: Document new module.
14180         Reported by Bruno Haible.
14181
14182 2011-06-06  Bruno Haible  <bruno@clisp.org>
14183
14184         spawn-pipe tests: Rename program.
14185         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14186         * tests/test-spawn-pipe-child.c: Update comment.
14187         * tests/test-spawn-pipe.sh: Update.
14188         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14189
14190         spawn-pipe tests: Link the child program only against libc.
14191         * tests/test-spawn-pipe-child.c: New file, extracted from
14192         tests/test-spawn-pipe.c.
14193         (main): Expect only one argument.
14194         (is_open): New function, copied from tests/test-pipe.c.
14195         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14196         (child_main): Remove function.
14197         (test_pipe): Pass only one argument to the child program.
14198         (main): Remove child process code. Expect the child program's name as
14199         first argument.
14200         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14201         argument.
14202         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14203         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14204         test-spawn-pipe-child against no libraries.
14205
14206 2011-06-06  Bruno Haible  <bruno@clisp.org>
14207
14208         careadlinkat: Avoid mismatch between ssize_t and int.
14209         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14210         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14211
14212 2011-06-06  Jim Meyering  <meyering@redhat.com>
14213
14214         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14215         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14216         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14217
14218 2011-06-05  Bruno Haible  <bruno@clisp.org>
14219
14220         ansi-c++-opt: Interoperability with libtool.
14221         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14222         set the variable to "no", not to ":".
14223         * NEWS: Mention the change.
14224
14225 2011-06-05  Bruno Haible  <bruno@clisp.org>
14226
14227         acl: Fix test failure on AIX 7.
14228         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14229         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14230
14231 2011-06-05  Bruno Haible  <bruno@clisp.org>
14232
14233         pipe-filter-ii: Fix test failure on AIX and IRIX.
14234         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14235         with EAGAIN, retry with a smaller buffer size.
14236
14237 2011-06-05  Bruno Haible  <bruno@clisp.org>
14238
14239         localename: Fix link dependencies.
14240         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14241         * modules/localename-tests (Makefile.am): Link test-localename with
14242         $(LIBTHREAD).
14243
14244 2011-06-05  Bruno Haible  <bruno@clisp.org>
14245
14246         error: Avoid gcc warning.
14247         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14248
14249 2011-06-05  Bruno Haible  <bruno@clisp.org>
14250
14251         unsetenv: Avoid gcc warning.
14252         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14253
14254 2011-06-05  Bruno Haible  <bruno@clisp.org>
14255
14256         setenv: Avoid gcc warning.
14257         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14258
14259 2011-06-05  Bruno Haible  <bruno@clisp.org>
14260
14261         sys_select: Ensure memset is declared also on AIX 7.
14262         * lib/sys_select.in.h: Include <string.h> also on AIX.
14263         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14264         self-contained also on AIX 7.1.
14265
14266 2011-06-04  Jim Meyering  <meyering@redhat.com>
14267
14268         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14269         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14270         function name, "error".
14271         (_gl_translatable_diag_func_re): New configurable variable.
14272
14273 2011-06-04  Bruno Haible  <bruno@clisp.org>
14274
14275         getopt: Avoid gcc warning.
14276         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14277
14278 2011-06-04  Bruno Haible  <bruno@clisp.org>
14279
14280         strerror_r: Fix comments.
14281         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14282         commit.
14283
14284 2011-06-04  Bruno Haible  <bruno@clisp.org>
14285
14286         perror: Fix compilation error.
14287         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14288         Undefine fprintf, not sprintf.
14289         * modules/perror (Depends-on): Remove intprops, verify.
14290
14291 2011-06-04  Bruno Haible  <bruno@clisp.org>
14292
14293         setlocale: Enable replacement on Cygwin 1.5.
14294         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14295         Cygwin 1.5.x.
14296         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14297         LC_CTYPE category also exists on Cygwin 1.5.x.
14298
14299 2011-06-04  Bruno Haible  <bruno@clisp.org>
14300
14301         strerror-override: Don't disable symbol renamings.
14302         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14303         * lib/strerror-override.c: Include config.h.
14304         (strerror_override): Don't undefine.
14305
14306 2011-06-03  Bruno Haible  <bruno@clisp.org>
14307
14308         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14309         * lib/localename.h: Update copyright header.
14310         * lib/localename.c: Likewise.
14311         * lib/relocatable.h: Likewise.
14312         * lib/relocatable.c: Likewise.
14313
14314 2011-06-02  Bruno Haible  <bruno@clisp.org>
14315
14316         doc: Fix a module name.
14317         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14318
14319 2011-06-02  Bruno Haible  <bruno@clisp.org>
14320
14321         pipe2: Remove dependency on 'nonblocking' module.
14322         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14323         O_NONBLOCK is defined by gnulib.
14324         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14325         is zero.
14326         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14327         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14328         defined by gnulib.
14329         (get_nonblocking_flag): New function.
14330         (main): Test O_NONBLOCK flag only if it is nonzero.
14331         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14332
14333 2011-06-03  Jim Meyering  <meyering@redhat.com>
14334
14335         maint: three new prohibit-header-without-use rules
14336         Prohibit use of cloexec.h, posixver.h, same.h without use.
14337         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14338         (sc_prohibit_posixver_without_use): Likewise.
14339         (sc_prohibit_same_without_use): Likewise.
14340
14341 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14342
14343         allocator: 'die' routine is now given requested size
14344         * lib/allocator.h (struct allocator.die): New size arg.
14345         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14346         If the actual problem is an ssize_t limitation, not a size_t or
14347         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14348
14349 2011-06-01  Eric Blake  <eblake@redhat.com>
14350
14351         strerror: drop strerror_r dependency
14352         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14353         * lib/strerror-override.c (strerror_override): ...to new file.
14354         * lib/strerror-override.h: Add prototype.
14355         * lib/strerror-impl.h: Delete.
14356         * lib/strerror.c (strerror): New implementation.
14357         * modules/errno (Files): Add new files.
14358         (configure.ac): Compile new file as appropriate.
14359         * modules/strerror (Files): Drop unused file.
14360         (Depends-on): Drop strerror_r-posix.
14361         * MODULES.html.sh: Document strerror_r-posix.
14362         Requested by Sam Steingold.
14363
14364         perror: call strerror_r directly
14365         * modules/perror (Files): Drop strerror-impl.h.
14366         * lib/perror.c (perror): Use our own stack buffer, rather than
14367         calling a wrapper that uses static storage.
14368         * doc/posix-functions/perror.texi (perror): Document a limitation
14369         of our replacement.
14370
14371         strerror_r: fix includes for FreeBSD
14372         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14373         since we use abort on some platforms.
14374         Reported by Matthias Bolte.
14375
14376 2011-05-31  Bruno Haible  <bruno@clisp.org>
14377
14378         Fix link errors in tests: openat-die uses gettext-h.
14379         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14380         against $(LIBINTL).
14381         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14382         against $(LIBINTL).
14383         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14384         $(LIBINTL).
14385         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14386         against $(LIBINTL).
14387         * modules/linkat-tests (Makefile.am): Link test-linkat against
14388         $(LIBINTL).
14389         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14390         $(LIBINTL).
14391         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14392         against $(LIBINTL).
14393         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14394         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14395         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14396         $(LIBINTL).
14397         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14398         $(LIBINTL).
14399         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14400         $(LIBINTL).
14401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14402
14403 2011-05-31  Bruno Haible  <bruno@clisp.org>
14404
14405         Fix link errors in tests: wait-process uses gettext-h.
14406         * modules/nonblocking-pipe-tests (Makefile.am): Set
14407         test_nonblocking_pipe_main_LDADD.
14408         * modules/nonblocking-socket-tests (Makefile.am): Link
14409         test-nonblocking-socket-main against $(LIBINTL).
14410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14411
14412 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14413
14414         assert-h: work around 'verify' incompatibility
14415         * lib/verify.h: Use @...@ directives, not ifdef.
14416         * modules/assert-h (assert.h): Implement the directives.
14417         (assert.h): Substitute the symbol-prefix more consistently.
14418
14419 2011-05-29  Jim Meyering  <meyering@redhat.com>
14420
14421         trim: remove three superfluous assignments
14422         * lib/trim.c (trim2): Remove three superfluous assignments
14423         and correct brace positioning.
14424
14425 2011-05-29  Bruno Haible  <bruno@clisp.org>
14426
14427         wctype-h: Avoid namespace pollution on Solaris 2.6.
14428         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14429         identifiers.
14430         * doc/posix-headers/wctype.texi: Mention the problem.
14431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14432
14433 2011-05-28  Jim Meyering  <meyering@redhat.com>
14434
14435         parse-datetime.y: accommodate -Wstrict-overflow
14436         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14437         placate -Wstrict-overflow.
14438
14439         trim: avoid a warning from -O2 -Wstrict-overflow
14440         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14441
14442 2011-05-29  Bruno Haible  <bruno@clisp.org>
14443
14444         gnulib-tool: Fix bug in yesterday's commit.
14445         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14446         twice.
14447
14448 2011-05-29  Bruno Haible  <bruno@clisp.org>
14449
14450         Allow multiple gnulib generated include files to be combined.
14451         * gnulib-tool (func_compute_include_guard_prefix): New function.
14452         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14453         ${gl_include_guard_prefix} references.
14454         (func_import, func_create_testdir): Invoke
14455         func_compute_include_guard_prefix.
14456         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14457         * lib/ctype.in.h: Likewise.
14458         * lib/dirent.in.h: Likewise.
14459         * lib/errno.in.h: Likewise.
14460         * lib/fcntl.in.h: Likewise.
14461         * lib/float.in.h: Likewise.
14462         * lib/getopt.in.h: Likewise.
14463         * lib/iconv.in.h: Likewise.
14464         * lib/langinfo.in.h: Likewise.
14465         * lib/locale.in.h: Likewise.
14466         * lib/math.in.h: Likewise.
14467         * lib/netdb.in.h: Likewise.
14468         * lib/netinet_in.in.h: Likewise.
14469         * lib/poll.in.h: Likewise.
14470         * lib/pthread.in.h: Likewise.
14471         * lib/pty.in.h: Likewise.
14472         * lib/sched.in.h: Likewise.
14473         * lib/se-selinux.in.h: Likewise.
14474         * lib/search.in.h: Likewise.
14475         * lib/signal.in.h: Likewise.
14476         * lib/spawn.in.h: Likewise.
14477         * lib/stdarg.in.h: Likewise.
14478         * lib/stddef.in.h: Likewise.
14479         * lib/stdint.in.h: Likewise.
14480         * lib/stdio.in.h: Likewise.
14481         * lib/stdlib.in.h: Likewise.
14482         * lib/string.in.h: Likewise.
14483         * lib/strings.in.h: Likewise.
14484         * lib/sys_file.in.h: Likewise.
14485         * lib/sys_ioctl.in.h: Likewise.
14486         * lib/sys_select.in.h: Likewise.
14487         * lib/sys_socket.in.h: Likewise.
14488         * lib/sys_stat.in.h: Likewise.
14489         * lib/sys_time.in.h: Likewise.
14490         * lib/sys_times.in.h: Likewise.
14491         * lib/sys_uio.in.h: Likewise.
14492         * lib/sys_utsname.in.h: Likewise.
14493         * lib/sys_wait.in.h: Likewise.
14494         * lib/sysexits.in.h: Likewise.
14495         * lib/termios.in.h: Likewise.
14496         * lib/time.in.h: Likewise.
14497         * lib/unistd.in.h: Likewise.
14498         * lib/wchar.in.h: Likewise.
14499         * lib/wctype.in.h: Likewise.
14500         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14501         * modules/ctype (Makefile.am): Likewise.
14502         * modules/dirent (Makefile.am): Likewise.
14503         * modules/errno (Makefile.am): Likewise.
14504         * modules/fcntl-h (Makefile.am): Likewise.
14505         * modules/float (Makefile.am): Likewise.
14506         * modules/getopt-posix (Makefile.am): Likewise.
14507         * modules/iconv-h (Makefile.am): Likewise.
14508         * modules/langinfo (Makefile.am): Likewise.
14509         * modules/locale (Makefile.am): Likewise.
14510         * modules/math (Makefile.am): Likewise.
14511         * modules/netdb (Makefile.am): Likewise.
14512         * modules/netinet_in (Makefile.am): Likewise.
14513         * modules/poll-h (Makefile.am): Likewise.
14514         * modules/pthread (Makefile.am): Likewise.
14515         * modules/pty (Makefile.am): Likewise.
14516         * modules/sched (Makefile.am): Likewise.
14517         * modules/search (Makefile.am): Likewise.
14518         * modules/selinux-h (Makefile.am): Likewise.
14519         * modules/signal (Makefile.am): Likewise.
14520         * modules/spawn (Makefile.am): Likewise.
14521         * modules/stdarg (Makefile.am): Likewise.
14522         * modules/stddef (Makefile.am): Likewise.
14523         * modules/stdint (Makefile.am): Likewise.
14524         * modules/stdio (Makefile.am): Likewise.
14525         * modules/stdlib (Makefile.am): Likewise.
14526         * modules/string (Makefile.am): Likewise.
14527         * modules/strings (Makefile.am): Likewise.
14528         * modules/sys_file (Makefile.am): Likewise.
14529         * modules/sys_ioctl (Makefile.am): Likewise.
14530         * modules/sys_select (Makefile.am): Likewise.
14531         * modules/sys_socket (Makefile.am): Likewise.
14532         * modules/sys_stat (Makefile.am): Likewise.
14533         * modules/sys_time (Makefile.am): Likewise.
14534         * modules/sys_times (Makefile.am): Likewise.
14535         * modules/sys_uio (Makefile.am): Likewise.
14536         * modules/sys_utsname (Makefile.am): Likewise.
14537         * modules/sys_wait (Makefile.am): Likewise.
14538         * modules/sysexits (Makefile.am): Likewise.
14539         * modules/termios (Makefile.am): Likewise.
14540         * modules/time (Makefile.am): Likewise.
14541         * modules/unistd (Makefile.am): Likewise.
14542         * modules/wchar (Makefile.am): Likewise.
14543         * modules/wctype-h (Makefile.am): Likewise.
14544         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14545
14546 2011-05-29  Bruno Haible  <bruno@clisp.org>
14547
14548         assert-h: Allow multiple gnulib generated replacements to coexist.
14549         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14550
14551 2011-05-29  Bruno Haible  <bruno@clisp.org>
14552
14553         argp: Allow coexistence with strerror_r-posix module.
14554         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14555         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14556         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14557         not the glibc signature.
14558
14559 2011-05-28  Bruno Haible  <bruno@clisp.org>
14560
14561         gnulib-tool: Alternative structure of testdirs, similar to --import.
14562         * gnulib-tool: New option --single-configure.
14563         (func_usage): Document it.
14564         (single_configure): New variable.
14565         (func_modules_transitive_closure_separately,
14566         func_modules_transitive_closure_separately,
14567         func_determine_use_libtests, func_modules_add_dummy_separately,
14568         func_modules_to_filelist_separately): New functions, extracted from
14569         func_import.
14570         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14571         (func_import): Use the new functions.
14572         (func_create_testdir): Set final_modules. Handle $single_configure =
14573         true case.
14574
14575 2011-05-28  Bruno Haible  <bruno@clisp.org>
14576
14577         getloadavg: Remove an unreliable safety check.
14578         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14579         getloadavg.c is in place.
14580         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14581         Reported by Sam Steingold <sds@gnu.org>.
14582
14583 2011-05-28  Bruno Haible  <bruno@clisp.org>
14584
14585         doc: Cleanup yet another file produced by texinfo.tex.
14586         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14587
14588 2011-05-28  Bruno Haible  <bruno@clisp.org>
14589
14590         Finish the conditional dependencies mechanism.
14591         * gnulib-tool: New option --no-conditional-dependencies.
14592         (func_usage): Document it. Don't mark --conditional-dependencies as
14593         experimental.
14594         (cond_dependencies): The possible values can now be true, false, empty.
14595         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14596         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14597         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14598
14599 2011-05-28  Bruno Haible  <bruno@clisp.org>
14600
14601         doc: Use a recent texinfo.tex.
14602         * doc/Makefile (tex_opts): New variable.
14603         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14604
14605 2011-05-28  Jim Meyering  <meyering@redhat.com>
14606
14607         intprops.h: adjust comment to match code change
14608         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14609         only once, it *may* have side effects.  Also fix an unrelated typo.
14610         (_GL_INT_SIGNED): Likewise.
14611
14612 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14613
14614         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14615
14616 2011-05-26  Bruno Haible  <bruno@clisp.org>
14617
14618         mbsrchr: Avoid collision with system function on Interix.
14619         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14620         Reported by Markus Duft <mduft@gentoo.org>.
14621
14622 2011-05-15  James Youngman  <jay@gnu.org>
14623
14624         getopt: for ambiguous options, enumerate the possibilities.
14625         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14626         the ambiguous options when an ambiguous prefix is given. This was
14627         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14628         glibc change was
14629         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14630
14631 2011-05-25  Eric Blake  <eblake@redhat.com>
14632
14633         getcwd: work around mingw bug
14634         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14635         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14636         Reported by Matthias Bolte.
14637
14638 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14639
14640         test-intprops: disable -Wtype-limits diagnostics
14641         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14642         diagnostics.  Otherwise, the integer overflow macros generate many
14643         diagnostics.  Reported by Jim Meyering in
14644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14645
14646         intprops: shorten, to pacify gcc -Woverlength-strings
14647         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14648         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14649         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14650         likely to run afoul of C compiler limits for string constant lengths.
14651         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14652
14653 2011-05-24  Eric Blake  <eblake@redhat.com>
14654
14655         docs: document recently fixed glibc printf bug
14656         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14657         * doc/posix-functions/printf.texi (printf): Likewise.
14658         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14659         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14660
14661         closein-tests: convert to init.sh
14662         * modules/closein-tests (Files): Add init.sh
14663         * tests/test-closein.sh Use it.
14664
14665         yesno-tests: convert to init.sh
14666         * modules/yesno-tests (Files): Add init.sh.
14667         * tests/test-yesno.sh: Use it.
14668
14669         atexit-tests: ensure reliable exit status
14670         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14671         Reported by Bruno Haible.
14672
14673 2011-05-24  Bruno Haible  <bruno@clisp.org>
14674
14675         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14677         gl_PREREQ_STRERROR_R invocations from here...
14678         * modules/strerror_r-posix (configure.ac): ... to here.
14679
14680 2011-05-24  Eric Blake  <eblake@redhat.com>
14681
14682         strerror_r: fix missing header
14683         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14684
14685         strerror_r: fix AIX test failures
14686         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14687         ERANGE failure.
14688
14689         strerror_r: fix Solaris test failures
14690         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14691         failures.
14692         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14693
14694         strerror_r: enforce POSIX recommendations
14695         * lib/strerror_r.c (safe_copy): New helper method.
14696         (strerror_r): Guarantee a non-empty string.
14697         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14698         recent POSIX rulings and to match our strerror guarantees.
14699         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14700
14701 2011-05-24  Jim Meyering  <meyering@redhat.com>
14702
14703         test-perror2.c: avoid warning about unused variable
14704         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14705
14706 2011-05-24  Eric Blake  <eblake@redhat.com>
14707
14708         perror: avoid spurious test failure on HP-UX
14709         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14710
14711         tests: fix logic bug in init.sh
14712         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14713         shell.
14714
14715 2011-05-24  Jim Meyering  <meyering@redhat.com>
14716
14717         utimensat: do not reference an out-of-scope buffer
14718         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14719         declared in an inner scope, yet "times" would be dereferenced outside
14720         the scope in which "ts" was valid.
14721         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14722         of ts[2] "out/up", so that the use of aliased "times" (via
14723         "times = ts;") does not end up referencing an out-of-scope "ts"
14724
14725         opendir-safer.c: don't clobber errno; don't close negative FD
14726         * lib/opendir-safer.c (opendir_safer):
14727         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14728         file descriptor, and more importantly, don't clobber the
14729         offending errno value with EINVAL.  Before, upon failure
14730         of dup_safer, we would pass the negative file descriptor to
14731         fdopendir, which would clobber errno.
14732
14733 2011-05-23  Bruno Haible  <bruno@clisp.org>
14734
14735         idcache: Fix module description.
14736         * modules/idcache (Include): Set to "idcache.h".
14737
14738 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14739
14740         gnulib-tool: fix portability problem with MacOS sed
14741         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14742         before the "}".  Problem reported by Leo in
14743         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14744         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14745         sed_extract_condition1, sed_extract_condition2.
14746
14747 2011-05-23  Bruno Haible  <bruno@clisp.org>
14748
14749         hash: Simplify autoconf macro.
14750         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14751
14752 2011-05-23  Bruno Haible  <bruno@clisp.org>
14753
14754         getugroups: Fix module description.
14755         * modules/getugroups (Include): Set to "getugroups.h".
14756
14757 2011-05-23  Bruno Haible  <bruno@clisp.org>
14758
14759         linkat: Simplify autoconf macro.
14760         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14761
14762 2011-05-23  Bruno Haible  <bruno@clisp.org>
14763             Eric Blake  <eblake@redhat.com>
14764
14765         linkat, renameat: Update dependencies.
14766         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14767         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14768         symlinkat.
14769
14770 2011-05-23  Jim Meyering  <meyering@redhat.com>
14771
14772         maint.mk: more tight_scope improvements
14773         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14774         (_gl_TS_headers): Define only in if-0'd block.
14775         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14776         sometimes we must *not* use it.  Adjust uses accordingly.
14777         (sc_tight_scope): Use much simpler grep-based test to determine
14778         whether we skip this rule.
14779
14780         maint.mk: generalize/improve the tight-scope rule
14781         * top/maint.mk: Emit a warning when the test is skipped.
14782         (_gl_TS_dir): Add $(srcdir)/ prefix.
14783         (_gl_TS_function_match): Simplify, rather than trying
14784         to enumerate common types.  Otherwise, it would fail to match an
14785         "extern unsigned char const *" declaration in idutils.
14786         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14787         a way to support use of that type of macro.
14788         (_gl_TS_var_match): Simplify regexp.
14789         (_gl_TS_obj_files): New configurable variable.
14790         (_gl_TS_headers): Likewise.
14791
14792 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14793
14794         verify: fix bug when gnulib <assert.h> is also included
14795         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14796         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14797         Perhaps there's a better way, but this fixes the immediate problem.
14798         Problem reported by Bruno Haible in
14799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14800
14801 2011-05-22  Bruno Haible  <bruno@clisp.org>
14802
14803         xgetcwd: Simplify autoconf macro.
14804         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14805
14806 2011-05-22  Bruno Haible  <bruno@clisp.org>
14807
14808         New module 'mktime-internal'.
14809         * modules/mktime-internal: New file.
14810         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14811         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14812         mktime_internal as a C macro if libc has __mktime_internal.
14813         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14814         conditions.
14815         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14816
14817 2011-05-22  Bruno Haible  <bruno@clisp.org>
14818
14819         timegm: Correct mktime replacement statements.
14820         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14821         defining mktime as a C macro. This completes a 2009-07-28 commit.
14822
14823 2011-05-22  Bruno Haible  <bruno@clisp.org>
14824
14825         timegm: Simplify autoconf macro.
14826         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14827
14828 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14829
14830         clock-time: change to LGPLv2+.
14831         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14832         BSD-like but we have no mark for that; this is good enough for now.
14833
14834 2011-05-21  Bruno Haible  <bruno@clisp.org>
14835
14836         strerror_r: Fix comments.
14837         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14838
14839 2011-05-21  Bruno Haible  <bruno@clisp.org>
14840
14841         relocatable-prog-wrapper: Fix possible link error.
14842         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
14843         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
14844         (gl_FUNC_SETENV): ... to here.
14845         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
14846         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
14847
14848 2011-05-21  Bruno Haible  <bruno@clisp.org>
14849
14850         relocatable-prog-wrapper: Assume strerror() exists.
14851         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
14852         m4/strerror.m4.
14853         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
14854         * lib/relocwrapper.c: Remove mention of strerror module.
14855         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
14856         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
14857         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
14858         C macro.
14859
14860 2011-05-21  Bruno Haible  <bruno@clisp.org>
14861
14862         select: Simplify replacement idiom.
14863         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
14864         Win32 platforms.
14865         * lib/sys_select.in.h (select): Simplify accordingly.
14866         * modules/select (Depends-on): Likewise.
14867
14868 2011-05-21  Bruno Haible  <bruno@clisp.org>
14869
14870         mkdir-p: Simplify autoconf macro.
14871         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
14872         gl_FUNC_LCHOWN.
14873
14874 2011-05-21  Eric Blake  <eblake@redhat.com>
14875
14876         strerror_r: avoid clobbering strerror on cygwin
14877         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
14878         fall back instead to sys_errlist.
14879         * modules/strerror (configure.ac): Add witness.
14880         * tests/test-strerror_r.c (main): Enhance test.
14881         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14882         * tests/test-perror2.c (main): Free memory before exit.
14883
14884 2011-05-21  Bruno Haible  <bruno@clisp.org>
14885
14886         mkdtemp: Use gnulib naming conventions.
14887         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
14888         * modules/mkdtemp (configure.ac): Update.
14889
14890 2011-05-20  Eric Blake  <eblake@redhat.com>
14891
14892         strerror_r: avoid corrupting errno on Solaris
14893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
14894         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14895
14896         strerror_r: avoid compiler warning
14897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
14898
14899         strerror_r: simplify AIX code
14900         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
14901
14902         test-perror: avoid spurious failure on FreeBSD
14903         * modules/perror-tests (Depends-on): Add strerror, now that
14904         strerror_r no longer pulls it in.
14905
14906 2011-05-20  Bruno Haible  <bruno@clisp.org>
14907
14908         strerror_r-posix: Remove unused dependencies.
14909         * modules/strerror_r-posix (Depends-on): Remove strerror.
14910         Reported by Eric Blake.
14911
14912 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14913
14914         intprops: remove assumption about A|B representation
14915         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
14916         is a valid integer if both A and B are.  Although this is true for
14917         all known practical hosts, the C standard doesn't guarantee it,
14918         and the code need not assume it.  Also, this change may work around
14919         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
14920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
14921
14922 2011-05-20  Eric Blake  <eblake@redhat.com>
14923
14924         perror: work around FreeBSD bug
14925         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
14926         is broken.  Move AC_LIBOBJ...
14927         * modules/perror (configure.ac): Here.
14928         * doc/posix-functions/perror.texi (perror): Document this.
14929         * tests/test-perror2.c (main): Enhance test.
14930
14931         test-perror: check for strerror interactions
14932         * tests/macros.h (STREQ): Add macro.
14933         * modules/perror-tests (Files): Add second test.
14934         * tests/test-perror2.c (main): New file.
14935         * doc/posix-functions/perror.texi (perror): Document glibc bug.
14936
14937         test-perror: rewrite to use init script
14938         * modules/perror-tests (Files): Add init.sh.
14939         * tests/test-perror.sh: Use temporary directory.
14940
14941 2011-05-20  Jim Meyering  <meyering@redhat.com>
14942
14943         maint: replace misused "a" with "an"
14944         * doc/intprops.texi: "a integer"
14945         * doc/regex.texi: "a explanation"
14946         * lib/alignof.h: "a object"
14947         * lib/argmatch.h: "a explanation"
14948         * lib/argp-help.c: "a option" and "a OPTION_DOC"
14949         * lib/stdint.in.h: "a integer"
14950         * lib/userspec.c: "a owner"
14951         * doc/gnulib.texi: Fix "a idea", and reword.
14952
14953 2011-05-19  Jim Meyering  <meyering@redhat.com>
14954
14955         maint: correct misuse of "a" and "an"
14956         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
14957         * lib/argp-help.c: "an docum...": s/an/a/
14958         * lib/argp-parse.c: "An vector": s/An/A/
14959         * lib/execute.c: "an native": s/an/a/
14960         * lib/spawn-pipe.c: Likewise.
14961         * lib/gc.h: "an Gc_rc": s/an/a/
14962         * lib/unigbrk.in.h: "an grapheme": s/an/a/
14963         * lib/fts.c: "an stat.st_dev": s/an/a/
14964
14965 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14966
14967         intprops-tests: work around HP-UX 11.23 cc bug with constants
14968         * tests/test-intprops.c (VERIFY): New macro.
14969         (main): Use it, instead of verify, to work around the compiler bug; see
14970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14971
14972         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
14973         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
14974         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
14975         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
14976         (_GL_REMAINDER_OVERFLOW): Use it.
14977
14978         intprops-tests: revert unsigned part of previous change
14979         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
14980         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
14981         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
14982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
14983
14984 2011-05-19  Bruno Haible  <bruno@clisp.org>
14985
14986         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
14987         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
14988         strerror_r() returned without filling the buffer.
14989         Reported by Eric Blake.
14990
14991 2011-05-19  Eric Blake  <eblake@redhat.com>
14992
14993         strerror_r: guarantee unchanged errno
14994         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
14995         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
14996         failure.
14997         * tests/test-strerror_r.c (main): Enhance test.
14998
14999 2011-05-19  Bruno Haible  <bruno@clisp.org>
15000
15001         strerror_r: Reorder #if blocks.
15002         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15003         for consistency with the previous commit.
15004
15005 2011-05-19  Bruno Haible  <bruno@clisp.org>
15006
15007         perror: Avoid clobbering the strerror buffer when possible.
15008         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15009         * lib/strerror.c: Include it.
15010         * modules/strerror (Files): Add lib/strerror-impl.h.
15011         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15012         (my_strerror): New function, defined through lib/strerror-impl.h.
15013         (perror): Use it instead of strerror.
15014         * modules/perror (Files): Add lib/strerror-impl.h.
15015         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15016
15017 2011-05-19  Eric Blake  <eblake@redhat.com>
15018
15019         strerror_r: fix on newer cygwin
15020         * lib/strerror_r.c (strerror_r): Cygwin now has
15021         __xpg_strerror_r, use it.
15022
15023 2011-05-19  Bruno Haible  <bruno@clisp.org>
15024
15025         strerror_r: Avoid clobbering the strerror buffer when possible.
15026         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15027         (sys_nerr, sys_errlist): New declarations.
15028         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15029         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15030         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15031
15032 2011-05-19  Bruno Haible  <bruno@clisp.org>
15033
15034         strerror_r: Fix test failure on mingw.
15035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15036         EXTEND_STRERROR_R.
15037         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15038         macros from errno.in.h instead.
15039
15040 2011-05-19  Eric Blake  <eblake@redhat.com>
15041
15042         strerror: relax test for Solaris
15043         * tests/test-strerror.c (main): Permit Solaris behavior.
15044         * tests/test-strerror_r.c (main): Likewise.
15045
15046         strerror: enforce POSIX ruling on strerror(0)
15047         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15048         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15049         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15050         * doc/posix-functions/strerror.texi (strerror): Document it.
15051         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15052         * tests/test-strerror.c (main): Strengthen test.
15053         * tests/test-strerror_r.c (main): Likewise.
15054
15055 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15056
15057         intprop-tests: port to older and more-pedantic compilers
15058         * modules/intprops-tests (Files): Add tests/macros.h.
15059         * tests/test-intprops.c: Include macros.h.
15060         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15061         it's no longer documented to expand to an integer constant expression.
15062         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15063         argument is floating point, as it's no longer documented to expand
15064         to an integer constant expression in that case.
15065         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15066         compiler bugs reported by Bruno Haible.  See
15067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15068         (U0, U1): New constants, to work around the same bugs.  Also,
15069         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15070
15071         intprops: work around C compiler bugs
15072         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15073         bug in Sun C 5.11 2010/08/13 and other compilers; see
15074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15075
15076         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15077         * doc/intprops.texi (Integer Type Determination): Fix
15078         documentation for TYPE_IS_INTEGER: it returns an constant
15079         expression, not an integer constant expression.  Fix doc for
15080         TYPE_SIGNED: it returns an integer constant expression only if its
15081         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15082         hardly worth documented that way....)
15083
15084 2011-05-18  Bruno Haible  <bruno@clisp.org>
15085
15086         strerror_r: Avoid clobbering the strerror buffer when possible.
15087         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15088         Handle gnulib defined errno values here. When strerror() returns NULL
15089         or an empty string, return EINVAL.
15090         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15091         gnulib defined errno values here.
15092         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15093
15094 2011-05-18  Eric Blake  <eblake@redhat.com>
15095
15096         fnmatch: avoid compiler warning
15097         * lib/fnmatch_loop.c (FCT): Use correct type.
15098         Reported by Matthias Bolte.
15099
15100 2011-05-13  Jim Meyering  <meyering@redhat.com>
15101
15102         maint.mk: three new prohibit_<HDR>_without_use rules
15103         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15104         (sc_prohibit_stdio-safer_without_use): Likewise.
15105         (sc_prohibit_xfreopen_without_use): Likewise.
15106
15107 2011-05-17  Jim Meyering  <meyering@redhat.com>
15108
15109         announce-gen: fail if the NEWS delta is empty
15110         If there's nothing noteworthy in NEWS, then either you forgot
15111         or you shouldn't be releasing.
15112         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15113
15114 2011-05-17  Pádraig Brady <P@draigBrady.com>
15115
15116         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15117         reserved symbols starting with double underscore from the check.
15118
15119 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15120
15121         intprops: add doc
15122         * doc/intprops.texi: New file, documenting intprops.
15123         * doc/gnulib.texi (Particular Modules): Include it.
15124
15125         verify: add doc to gnulib manual and fix example
15126         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15127         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15128         (Compile-time Assertions): Fix example so it can't overflow.
15129
15130 2011-05-17  Jim Meyering  <meyering@redhat.com>
15131
15132         warnings.m4: don't usurp save_CPPFLAGS variable name
15133         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15134
15135         doc: fix typo
15136         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15137
15138 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15139             Bruno Haible  <bruno@clisp.org>
15140
15141         doc: Tweak recent change.
15142         * README (Portability guidelines): Tweak new text.
15143         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15144         Interix 6.1.
15145
15146 2011-05-16  Eric Blake  <eblake@redhat.com>
15147
15148         inttypes: avoid autoconf warning
15149         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15150         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15151
15152 2011-05-16  Sam Steingold <sds@gnu.org>
15153         and Eric Blake  <eblake@redhat.com>
15154
15155         vc-list-files: accept multiple directory operands
15156         * build-aux/vc-list-files: Iterate over all remaining operands.
15157
15158 2011-05-16  Bruno Haible  <bruno@clisp.org>
15159
15160         Fix confusion regarding deprecated modules.
15161         * modules/calloc (Status, Notice): Mark module as deprecated, not
15162         obsolete.
15163         * modules/fnmatch-posix (Status, Notice): Likewise.
15164         * modules/getdate (Status, Notice): Likewise.
15165         * modules/getopt (Status, Notice): Likewise.
15166         * modules/malloc (Status, Notice): Likewise.
15167         * modules/pipe (Status, Notice): Likewise.
15168         * modules/realloc (Status, Notice): Likewise.
15169         * modules/rename-dest-slash (Status, Notice): Likewise.
15170         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15171         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15172         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15173         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15174         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15175
15176 2011-05-16  Bruno Haible  <bruno@clisp.org>
15177
15178         doc: List the target platforms.
15179         * doc/gnulib-intro.texi (Target Platforms): New section.
15180         * doc/gnulib.texi (Introduction): Update menu.
15181         * README (Portability guidelines): Refer to the new section. Update
15182         statement about oldest supported environment. Remove rationale why
15183         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15184         unportable C89 function.
15185         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15186         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15187
15188 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15191
15192 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15193
15194         intprops-tests: new module
15195         * modules/intprops-tests, tests/test-intprops.c: New files.
15196
15197         intprops: add safe, portable integer overflow checking
15198         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15199         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15200         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15201         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15202         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15203         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15204         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15205         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15206         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15207         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15208         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15209
15210 2011-05-12  James Youngman  <jay@gnu.org>
15211
15212         Add a test for glibc's Bugzilla bug #12378.
15213         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15214         doesn't allow the literal matching of a lone "[" (which is
15215         required by POSIX).
15216         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15217
15218 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15219
15220         Sync glibc change fixing Bugzilla bug #12378.
15221         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15222         beginning and fall back to matching as normal character if the
15223         string ends before the matching ']' is found.  This is what POSIX
15224         requires.
15225
15226 2011-05-13  Eric Blake  <eblake@redhat.com>
15227
15228         getcwd-lgpl: relax test for FreeBSD
15229         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15230         issue.
15231         * tests/test-getcwd-lgpl.c (main): Relax test.
15232         Reported by Matthias Bolte.
15233
15234 2011-05-11  Eric Blake  <eblake@redhat.com>
15235
15236         test-fflush: silence compiler warning
15237         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15238
15239 2011-05-11  Bruno Haible  <bruno@clisp.org>
15240
15241         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15242         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15243         * modules/canonicalize (Depends-on): Add 'nocrash'.
15244         * modules/canonicalize-lgpl (Depends-on): Likewise.
15245         * doc/posix-functions/realpath.texi: Update platforms list.
15246         Reported by Ryan Schmidt <ryandesign@macports.org>.
15247
15248 2011-05-11  Bruno Haible  <bruno@clisp.org>
15249
15250         group-member: Declare function in <unistd.h>.
15251         * lib/unistd.in.h (group_member): New declaration.
15252         * lib/group-member.h: Remove file.
15253         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15254         * tests/test-unistd-c++.cc: Check signature of group_member.
15255         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15256         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15257         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15258         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15259         HAVE_GROUP_MEMBER.
15260         * modules/group-member (Files): Remove lib/group-member.h.
15261         (Depends-on): Add unistd. Specify conditions.
15262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15263         (Include): Change to <unistd.h>.
15264         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15265         HAVE_GROUP_MEMBER.
15266         * NEWS: Mention the change.
15267         * lib/euidaccess.c: Don't include group-member.h.
15268
15269 2011-05-11  Bruno Haible  <bruno@clisp.org>
15270
15271         group-member: Document module.
15272         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15273         module.
15274
15275 2011-05-11  Bruno Haible  <bruno@clisp.org>
15276
15277         fclose: Fix mistake earlier today.
15278         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15279
15280 2011-05-11  Eric Blake  <eblake@redhat.com>
15281
15282         fclose: preserve fflush errors
15283         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15284         Reported by Jim Meyering.
15285
15286         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15287         * build-aux/bootstrap (check_versions): When no specific version
15288         is required, merely check that the app produces an exit status
15289         that indicates its existence.
15290
15291         maint.mk: drop redundant check
15292         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15293         the same but better.
15294
15295 2011-05-11  Bruno Haible  <bruno@clisp.org>
15296
15297         fclose: Fix possible link error.
15298         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15299         unregister_shadow_fd. Improve comments.
15300         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15301         Eric Blake.
15302
15303 2011-05-11  Jim Meyering  <meyering@redhat.com>
15304
15305         maint.mk: improve "can not" detection and generalize rule name
15306         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15307         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15308         Use the same technique as in sc_prohibit_doubled_word, so that
15309         we recognize "can not" also when the words are separated by a newline.
15310         Suggested by Eric Blake.
15311         (perl_filename_lineno_text_): Define.  Factored out of...
15312         (prohibit_doubled_word_): ...here.  Use the new definition.
15313         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15314         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15315         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15316
15317 2011-05-10  Eric Blake  <eblake@redhat.com>
15318
15319         fclose: avoid double close race when possible
15320         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15321         all but WINDOWS_SOCKETS.
15322
15323 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15324
15325         openat: correct new comment
15326         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15327
15328 2011-05-10  Jim Meyering  <meyering@redhat.com>
15329
15330         openat: add comments
15331         * lib/openat-proc.c (openat_proc_name): Add comments,
15332         mostly from Eric Blake.
15333
15334 2011-05-09  Eric Blake  <eblake@redhat.com>
15335
15336         openat: reduce syscalls in first probe of /proc
15337         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15338         be a directory.  Simplify the probe for .. bugs.
15339         * modules/openat (Depends-on): Drop same-inode.
15340         Reported by Bastien ROUCARIES.
15341
15342 2011-05-09  Jim Meyering  <meyering@redhat.com>
15343
15344         maint.mk: change semantics/name of tight_scope variables
15345         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15346         Rename variables to align with semantics that make them more useful.
15347
15348         maint.mk: tweak new rule's name not to impinge
15349         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15350         (sc_tight_scope): Use new rule name rather than $@-0.
15351
15352         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15353         * top/maint.mk (sc_tight_scope): New rule.
15354         (sc_tight_scope-0): New rule, ifdef'd out.
15355         (_gl_TS_dir): Default.
15356         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15357         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15358
15359 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15360
15361         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15362         Haible <bruno@clisp.org>.
15363
15364 2011-05-08  Bruno Haible  <bruno@clisp.org>
15365
15366         Comments.
15367         * m4/isnanf.m4: Add comment.
15368         * m4/isnanl.m4: Likewise.
15369
15370 2011-05-08  Bruno Haible  <bruno@clisp.org>
15371
15372         glob: Remove obsolete macro.
15373         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15374
15375 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15376
15377         intprops: Sun C 5.11 supports __typeof__
15378         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15379         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15380         which is new.
15381         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15382
15383         intprops: switch to usual gnulib indenting and naming
15384         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15385         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15386
15387         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15388
15389 2011-05-08  Jim Meyering  <meyering@redhat.com>
15390
15391         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15392         * top/maint.mk (release-prep): Use make's --no-print-directory
15393         option when generating the announcement.  This eliminates the
15394         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15395         generated announcement template.
15396
15397 2011-05-08  Bruno Haible  <bruno@clisp.org>
15398
15399         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15400         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15401         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15402
15403 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15404
15405         ignore-value, verify: Omit include files from lib_SOURCES.
15406         * modules/ignore-value, modules/verify (Makefile.am):
15407         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15408         that leads Automake to duplicate use of am__objects_... variables
15409         in Makefile.in.  See
15410         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15411
15412 2011-05-07  Bruno Haible  <bruno@clisp.org>
15413
15414         fclose: Simplify autoconf macro.
15415         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15416         defined.
15417
15418 2011-05-07  Bruno Haible  <bruno@clisp.org>
15419
15420         canonicalize-lgpl: Fix autoconf macro ordering bug.
15421         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15422         gl_STDLIB_H_DEFAULTS.
15423
15424 2011-05-06  Eric Blake  <eblake@redhat.com>
15425
15426         maintainer-makefile: make sc_po_check easier to tune
15427         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15428         to probe for strings, such as an alternate location for gnulib.
15429
15430         fclose: guarantee behavior on seekable stdin
15431         * modules/fclose (Depends-on): Add fflush.
15432         * doc/posix-functions/fclose.texi (fclose): Document this.
15433         * tests/test-fclose.c (main): Make test for this unconditional.
15434
15435 2011-05-06  Bruno Haible  <bruno@clisp.org>
15436
15437         fflush, fpurge: Relicense under LGPLv2+.
15438         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15439         * modules/fpurge (License): Likewise.
15440         With permission from Eric Blake and Jim Meyering.
15441         Suggested by Eric Blake.
15442
15443 2011-05-06  Karl Berry  <karl@gnu.org>
15444
15445         * MODULES.html.sh (func_all_modules): remove exit.
15446
15447 2011-05-06  Jim Meyering  <meyering@redhat.com>
15448
15449         maint.mk: use info-gnu@ as the default only for a stable release
15450         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15451         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15452         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15453         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15454
15455 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15456
15457         assert-h: new module, which supports C1X-style static_assert
15458         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15459         * lib/verify.h: Revamp so that this can be copied into assert.h,
15460         while retaining the ability to use it standalone as before.
15461         Rename private identifiers so as not to encroach on the
15462         standard C namespace, since this is now used by assert.h.
15463         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15464         the old verify_true.
15465         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15466         the old verify_true.  Use _GL_VERIFY_TYPE.
15467         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15468         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15469         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15470         defined when this file is copied into the replacement assert.h.
15471         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15472         and _Static_assert is not built in.
15473         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15474         defined, and use the new macros mentioned above.
15475         * doc/posix-headers/assert.texi: Document this.
15476
15477 2011-05-05  Bruno Haible  <bruno@clisp.org>
15478
15479         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15480         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15481         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15482         gl_REPLACE_FCLOSE here.
15483         * modules/fflush (Depends-on): Remove fclose.
15484         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15485         combination with module 'fclose'.
15486
15487 2011-05-05  Bruno Haible  <bruno@clisp.org>
15488
15489         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15490         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15491         gl_FUNC_FFLUSH.
15492         (gl_FUNC_FFLUSH): Use it.
15493         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15494         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15495         gl_REPLACE_FSEEKO here.
15496
15497 2011-05-05  Bruno Haible  <bruno@clisp.org>
15498
15499         tzset: Relicense under LGPL.
15500         * modules/tzset (License): Change to LGPL.
15501         No agreement needed; it's a no-op.
15502
15503         strtoimax, strtoumax: Relicense under LGPL.
15504         * modules/strtoimax (License): Change to LGPL.
15505         * modules/strtoumax (License): Likewise.
15506         With permission from Jim Meyering, Paul Eggert:
15507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15509
15510         getgroups: Relicense under LGPL.
15511         * modules/getgroups (License): Change to LGPL.
15512         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15516
15517         nanosleep: Relicense under LGPL.
15518         * modules/nanosleep (License): Change to LGPL.
15519         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15520         Haible:
15521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15525
15526         futimens: Relicense under LGPL.
15527         * modules/futimens (License): Change to LGPL.
15528         With permission from Eric Blake:
15529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15530
15531         fflush: Relicense under LGPL.
15532         * modules/fflush (License): Change to LGPL.
15533         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15537
15538         tmpfile: Relicense under LGPL.
15539         * modules/tmpfile (License): Change to LGPL.
15540         With permission from Ben Pfaff:
15541         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15542
15543         isfinite: Relicense under LGPL.
15544         * modules/isfinite (License): Change to LGPL.
15545         With permission from Ben Pfaff, Bruno Haible:
15546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15548
15549         acosl..tanl: Relicense under LGPL.
15550         * modules/acosl (License): Change to LGPL.
15551         * modules/asinl (License): Likewise.
15552         * modules/atanl (License): Likewise.
15553         * modules/cosl (License): Likewise.
15554         * modules/expl (License): Likewise.
15555         * modules/logl (License): Likewise.
15556         * modules/sinl (License): Likewise.
15557         * modules/sqrtl (License): Likewise.
15558         * modules/tanl (License): Likewise.
15559         Source code originally from glibc and Paolo Bonzini. Agreements:
15560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15562
15563 2011-05-05  Bruno Haible  <bruno@clisp.org>
15564
15565         signal: Define sighandler_t.
15566         * lib/signal.in.h (sighandler_t): New type.
15567         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15568         whether sighandler_t is defined.
15569         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15570         * modules/signal (Depends-on): Add extensions.
15571         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15572         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15573         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15574
15575 2011-05-05  Eric Blake  <eblake@redhat.com>
15576
15577         maint: remove useless REPLACE_*_H macros
15578         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15579         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15581         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15582         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15583         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15584         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15585         * m4/btowc.m4: Update callers.
15586         * m4/dirfd.m4: Likewise.
15587         * m4/duplocale.m4: Likewise.
15588         * m4/fchdir.m4: Likewise.
15589         * m4/fdopendir.m4: Likewise.
15590         * m4/inet_ntop.m4: Likewise.
15591         * m4/inet_pton.m4: Likewise.
15592         * m4/ioctl.m4: Likewise.
15593         * m4/mbrlen.m4: Likewise.
15594         * m4/mbrtowc.m4: Likewise.
15595         * m4/mbsinit.m4: Likewise.
15596         * m4/mbsnrtowcs.m4: Likewise.
15597         * m4/mbsrtowcs.m4: Likewise.
15598         * m4/poll.m4: Likewise.
15599         * m4/setlocale.m4: Likewise.
15600         * m4/wcrtomb.m4: Likewise.
15601         * m4/wcsnrtombs.m4: Likewise.
15602         * m4/wcsrtombs.m4: Likewise.
15603         * m4/wctob.m4: Likewise.
15604         * m4/wcwidth.m4: Likewise.
15605         * modules/posix_spawn: Likewise.
15606         * modules/posix_spawn_file_actions_addclose: Likewise.
15607         * modules/posix_spawn_file_actions_adddup2: Likewise.
15608         * modules/posix_spawn_file_actions_addopen: Likewise.
15609         * modules/posix_spawn_file_actions_destroy: Likewise.
15610         * modules/posix_spawn_file_actions_init: Likewise.
15611         * modules/posix_spawnattr_destroy: Likewise.
15612         * modules/posix_spawnattr_getflags: Likewise.
15613         * modules/posix_spawnattr_getpgroup: Likewise.
15614         * modules/posix_spawnattr_getschedparam: Likewise.
15615         * modules/posix_spawnattr_getschedpolicy: Likewise.
15616         * modules/posix_spawnattr_getsigdefault: Likewise.
15617         * modules/posix_spawnattr_getsigmask: Likewise.
15618         * modules/posix_spawnattr_init: Likewise.
15619         * modules/posix_spawnattr_setflags: Likewise.
15620         * modules/posix_spawnattr_setpgroup: Likewise.
15621         * modules/posix_spawnattr_setschedparam: Likewise.
15622         * modules/posix_spawnattr_setschedpolicy: Likewise.
15623         * modules/posix_spawnattr_setsigdefault: Likewise.
15624         * modules/posix_spawnattr_setsigmask: Likewise.
15625         * modules/posix_spawnp: Likewise.
15626
15627 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15628
15629         Add option to do-release-commit-and-tag to specify branch.
15630         * build-aux/do-release-commit-and-tag: Add --branch.
15631
15632 2011-05-03  Bruno Haible  <bruno@clisp.org>
15633
15634         Avoid unnecessary compilation units, through conditional dependencies.
15635         * modules/accept (Depends-on): Add conditions to the dependencies.
15636         * modules/acosl (Depends-on): Likewise.
15637         * modules/argz (Depends-on): Likewise.
15638         * modules/asinl (Depends-on): Likewise.
15639         * modules/atanl (Depends-on): Likewise.
15640         * modules/atoll (Depends-on): Likewise.
15641         * modules/bind (Depends-on): Likewise.
15642         * modules/btowc (Depends-on): Likewise.
15643         * modules/canonicalize-lgpl (Depends-on): Likewise.
15644         * modules/ceil (Depends-on): Likewise.
15645         * modules/ceilf (Depends-on): Likewise.
15646         * modules/ceill (Depends-on): Likewise.
15647         * modules/chdir-long (Depends-on): Likewise.
15648         * modules/chown (Depends-on): Likewise.
15649         * modules/close (Depends-on): Likewise.
15650         * modules/connect (Depends-on): Likewise.
15651         * modules/cosl (Depends-on): Likewise.
15652         * modules/dirfd (Depends-on): Likewise.
15653         * modules/dprintf (Depends-on): Likewise.
15654         * modules/dprintf-posix (Depends-on): Likewise.
15655         * modules/error (Depends-on): Likewise.
15656         * modules/euidaccess (Depends-on): Likewise.
15657         * modules/expl (Depends-on): Likewise.
15658         * modules/faccessat (Depends-on): Likewise.
15659         * modules/fchdir (Depends-on): Likewise.
15660         * modules/fclose (Depends-on): Likewise.
15661         * modules/fcntl (Depends-on): Likewise.
15662         * modules/fdopendir (Depends-on): Likewise.
15663         * modules/fflush (Depends-on): Likewise.
15664         * modules/floor (Depends-on): Likewise.
15665         * modules/floorf (Depends-on): Likewise.
15666         * modules/floorl (Depends-on): Likewise.
15667         * modules/fnmatch (Depends-on): Likewise.
15668         * modules/fopen (Depends-on): Likewise.
15669         * modules/fprintf-posix (Depends-on): Likewise.
15670         * modules/frexp (Depends-on): Likewise.
15671         * modules/frexp-nolibm (Depends-on): Likewise.
15672         * modules/frexpl (Depends-on): Likewise.
15673         * modules/frexpl-nolibm (Depends-on): Likewise.
15674         * modules/fseek (Depends-on): Likewise.
15675         * modules/fsusage (Depends-on): Likewise.
15676         * modules/ftell (Depends-on): Likewise.
15677         * modules/ftello (Depends-on): Likewise.
15678         * modules/futimens (Depends-on): Likewise.
15679         * modules/getcwd (Depends-on): Likewise.
15680         * modules/getcwd-lgpl (Depends-on): Likewise.
15681         * modules/getdelim (Depends-on): Likewise.
15682         * modules/getdomainname (Depends-on): Likewise.
15683         * modules/getgroups (Depends-on): Likewise.
15684         * modules/gethostname (Depends-on): Likewise.
15685         * modules/getline (Depends-on): Likewise.
15686         * modules/getlogin_r (Depends-on): Likewise.
15687         * modules/getopt-posix (Depends-on): Likewise.
15688         * modules/getpeername (Depends-on): Likewise.
15689         * modules/getsockname (Depends-on): Likewise.
15690         * modules/getsockopt (Depends-on): Likewise.
15691         * modules/getsubopt (Depends-on): Likewise.
15692         * modules/getusershell (Depends-on): Likewise.
15693         * modules/glob (Depends-on): Likewise.
15694         * modules/grantpt (Depends-on): Likewise.
15695         * modules/iconv_open (Depends-on): Likewise.
15696         * modules/iconv_open-utf (Depends-on): Likewise.
15697         * modules/inet_ntop (Depends-on): Likewise.
15698         * modules/inet_pton (Depends-on): Likewise.
15699         * modules/ioctl (Depends-on): Likewise.
15700         * modules/isapipe (Depends-on): Likewise.
15701         * modules/isfinite (Depends-on): Likewise.
15702         * modules/isinf (Depends-on): Likewise.
15703         * modules/lchown (Depends-on): Likewise.
15704         * modules/ldexpl (Depends-on): Likewise.
15705         * modules/link (Depends-on): Likewise.
15706         * modules/linkat (Depends-on): Likewise.
15707         * modules/listen (Depends-on): Likewise.
15708         * modules/logl (Depends-on): Likewise.
15709         * modules/lstat (Depends-on): Likewise.
15710         * modules/mbrlen (Depends-on): Likewise.
15711         * modules/mbrtowc (Depends-on): Likewise.
15712         * modules/mbsinit (Depends-on): Likewise.
15713         * modules/mbsnrtowcs (Depends-on): Likewise.
15714         * modules/mbsrtowcs (Depends-on): Likewise.
15715         * modules/mbtowc (Depends-on): Likewise.
15716         * modules/memcmp (Depends-on): Likewise.
15717         * modules/mkdir (Depends-on): Likewise.
15718         * modules/mkdtemp (Depends-on): Likewise.
15719         * modules/mkfifo (Depends-on): Likewise.
15720         * modules/mkfifoat (Depends-on): Likewise.
15721         * modules/mknod (Depends-on): Likewise.
15722         * modules/mkostemp (Depends-on): Likewise.
15723         * modules/mkostemps (Depends-on): Likewise.
15724         * modules/mkstemp (Depends-on): Likewise.
15725         * modules/mkstemps (Depends-on): Likewise.
15726         * modules/mktime (Depends-on): Likewise.
15727         * modules/nanosleep (Depends-on): Likewise.
15728         * modules/open (Depends-on): Likewise.
15729         * modules/openat (Depends-on): Likewise.
15730         * modules/perror (Depends-on): Likewise.
15731         * modules/poll (Depends-on): Likewise.
15732         * modules/popen (Depends-on): Likewise.
15733         * modules/posix_spawn (Depends-on): Likewise.
15734         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15735         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15736         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15737         * modules/posix_spawnp (Depends-on): Likewise.
15738         * modules/pread (Depends-on): Likewise.
15739         * modules/printf-posix (Depends-on): Likewise.
15740         * modules/ptsname (Depends-on): Likewise.
15741         * modules/putenv (Depends-on): Likewise.
15742         * modules/pwrite (Depends-on): Likewise.
15743         * modules/readline (Depends-on): Likewise.
15744         * modules/readlink (Depends-on): Likewise.
15745         * modules/readlinkat (Depends-on): Likewise.
15746         * modules/recv (Depends-on): Likewise.
15747         * modules/recvfrom (Depends-on): Likewise.
15748         * modules/regex (Depends-on): Likewise.
15749         * modules/remove (Depends-on): Likewise.
15750         * modules/rename (Depends-on): Likewise.
15751         * modules/renameat (Depends-on): Likewise.
15752         * modules/rmdir (Depends-on): Likewise.
15753         * modules/round (Depends-on): Likewise.
15754         * modules/roundf (Depends-on): Likewise.
15755         * modules/roundl (Depends-on): Likewise.
15756         * modules/rpmatch (Depends-on): Likewise.
15757         * modules/select (Depends-on): Likewise.
15758         * modules/send (Depends-on): Likewise.
15759         * modules/sendto (Depends-on): Likewise.
15760         * modules/setenv (Depends-on): Likewise.
15761         * modules/setlocale (Depends-on): Likewise.
15762         * modules/setsockopt (Depends-on): Likewise.
15763         * modules/shutdown (Depends-on): Likewise.
15764         * modules/sigaction (Depends-on): Likewise.
15765         * modules/signbit (Depends-on): Likewise.
15766         * modules/sigprocmask (Depends-on): Likewise.
15767         * modules/sinl (Depends-on): Likewise.
15768         * modules/sleep (Depends-on): Likewise.
15769         * modules/snprintf (Depends-on): Likewise.
15770         * modules/snprintf-posix (Depends-on): Likewise.
15771         * modules/socket (Depends-on): Likewise.
15772         * modules/sprintf-posix (Depends-on): Likewise.
15773         * modules/sqrtl (Depends-on): Likewise.
15774         * modules/stat (Depends-on): Likewise.
15775         * modules/strchrnul (Depends-on): Likewise.
15776         * modules/strdup-posix (Depends-on): Likewise.
15777         * modules/strerror (Depends-on): Likewise.
15778         * modules/strerror_r-posix (Depends-on): Likewise.
15779         * modules/strndup (Depends-on): Likewise.
15780         * modules/strnlen (Depends-on): Likewise.
15781         * modules/strptime (Depends-on): Likewise.
15782         * modules/strsep (Depends-on): Likewise.
15783         * modules/strsignal (Depends-on): Likewise.
15784         * modules/strstr-simple (Depends-on): Likewise.
15785         * modules/strtod (Depends-on): Likewise.
15786         * modules/strtoimax (Depends-on): Likewise.
15787         * modules/strtok_r (Depends-on): Likewise.
15788         * modules/strtoumax (Depends-on): Likewise.
15789         * modules/symlink (Depends-on): Likewise.
15790         * modules/symlinkat (Depends-on): Likewise.
15791         * modules/tanl (Depends-on): Likewise.
15792         * modules/tcgetsid (Depends-on): Likewise.
15793         * modules/tmpfile (Depends-on): Likewise.
15794         * modules/trunc (Depends-on): Likewise.
15795         * modules/truncf (Depends-on): Likewise.
15796         * modules/truncl (Depends-on): Likewise.
15797         * modules/uname (Depends-on): Likewise.
15798         * modules/unlink (Depends-on): Likewise.
15799         * modules/unlockpt (Depends-on): Likewise.
15800         * modules/unsetenv (Depends-on): Likewise.
15801         * modules/usleep (Depends-on): Likewise.
15802         * modules/utimensat (Depends-on): Likewise.
15803         * modules/vasprintf (Depends-on): Likewise.
15804         * modules/vdprintf (Depends-on): Likewise.
15805         * modules/vdprintf-posix (Depends-on): Likewise.
15806         * modules/vfprintf-posix (Depends-on): Likewise.
15807         * modules/vprintf-posix (Depends-on): Likewise.
15808         * modules/vsnprintf (Depends-on): Likewise.
15809         * modules/vsnprintf-posix (Depends-on): Likewise.
15810         * modules/vsprintf-posix (Depends-on): Likewise.
15811         * modules/wcrtomb (Depends-on): Likewise.
15812         * modules/wcscasecmp (Depends-on): Likewise.
15813         * modules/wcscspn (Depends-on): Likewise.
15814         * modules/wcsdup (Depends-on): Likewise.
15815         * modules/wcsncasecmp (Depends-on): Likewise.
15816         * modules/wcsnrtombs (Depends-on): Likewise.
15817         * modules/wcspbrk (Depends-on): Likewise.
15818         * modules/wcsrtombs (Depends-on): Likewise.
15819         * modules/wcsspn (Depends-on): Likewise.
15820         * modules/wcsstr (Depends-on): Likewise.
15821         * modules/wcstok (Depends-on): Likewise.
15822         * modules/wcswidth (Depends-on): Likewise.
15823         * modules/wctob (Depends-on): Likewise.
15824         * modules/wctomb (Depends-on): Likewise.
15825         * modules/wctype (Depends-on): Likewise.
15826         * modules/wcwidth (Depends-on): Likewise.
15827         * modules/write (Depends-on): Likewise.
15828
15829 2011-05-03  Bruno Haible  <bruno@clisp.org>
15830
15831         Support for conditional dependencies.
15832         * doc/gnulib.texi (Module description): Document the syntax of
15833         conditional dependencies.
15834         * gnulib-tool: New option --conditional-dependencies.
15835         (func_usage): Document it.
15836         (cond_dependencies): New variable.
15837         (func_get_automake_snippet_conditional,
15838         func_get_automake_snippet_unconditional): New functions, extracted from
15839         func_get_automake_snippet.
15840         (func_get_automake_snippet): Use them.
15841         (sed_first_32_chars): New variable.
15842         (func_module_shellfunc_name): New function.
15843         (func_module_shellvar_name): New function.
15844         (func_module_conditional_name): New function.
15845         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
15846         func_cond_module_condition): New functions.
15847         (func_modules_transitive_closure): Add support for conditional
15848         dependencies.
15849         (func_emit_lib_Makefile_am): For a conditional module, enclose the
15850         conditional automake snippet in an automake conditional.
15851         (func_emit_autoconf_snippets): Emit shell functions that contain the
15852         code for conditional modules.
15853         (func_import, func_create_testdir): Update specification.
15854
15855 2011-05-03  Eric Blake  <eblake@redhat.com>
15856
15857         test-getaddrinfo: report error information
15858         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
15859
15860 2011-05-03  Jim Meyering  <meyering@redhat.com>
15861
15862         bootstrap: avoid build failure when $GZIP is set
15863         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
15864         program name.  If defined at all, it is supposed to list gzip options.
15865         Reported by Alan Curry in http://debbugs.gnu.org/8609
15866
15867 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
15868
15869         readme-release: new module with release instructions
15870         * modules/readme-release: New module.
15871         * top/README-release: New file, from coreutils, grep, diffutils.
15872         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15873
15874 2011-05-02  Eric Blake  <eblake@redhat.com>
15875
15876         fflush: also replace fclose when fixing fflush
15877         * modules/fflush (Depends-on): Add fclose.
15878         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
15879         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
15880         memstreams with no backing fd.
15881         * doc/posix-functions/fclose.texi (fclose): Document the use of
15882         fflush module to fix the bug.
15883         * tests/test-fclose.c (main): Relax test when fclose is used in
15884         isolation.
15885
15886         fclose: add some tests
15887         * modules/fclose-tests: New test module.
15888         * tests/test-fclose.c: New file.
15889         * doc/posix-functions/fclose.texi (fclose): Document the bug.
15890
15891         fclose: reduced dependencies
15892         * modules/fclose (Depends-on): Switch from fflush/fseeko to
15893         simpler lseek.
15894         * lib/fclose.c (rpl_fclose): Likewise.
15895         Reported by Simon Josefsson.
15896
15897         exit: drop remaining clients
15898         * modules/argmatch (Depends-on): Replace exit with stdlib.
15899         * modules/copy-file (Depends-on): Likewise.
15900         * modules/execute (Depends-on): Likewise.
15901         * modules/exitfail (Depends-on): Likewise.
15902         * modules/obstack (Depends-on): Likewise.
15903         * modules/pagealign_alloc (Depends-on): Likewise.
15904         * modules/pipe-filter-gi (Depends-on): Likewise.
15905         * modules/pipe-filter-ii (Depends-on): Likewise.
15906         * modules/savewd (Depends-on): Likewise.
15907         * modules/spawn-pipe (Depends-on): Likewise.
15908         * modules/wait-process (Depends-on): Likewise.
15909         * modules/xsetenv (Depends-on): Likewise.
15910         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
15911         * modules/git-merge-changelog (Depends-on): Likewise.
15912         * modules/long-options (Depends-on): Likewise.
15913         * modules/pt_chown (Depends-on): Likewise.
15914         * modules/sysexits (Depends-on): Likewise.
15915
15916         freading: relax license from LGPLv3+ to LGPLv2+
15917         * modules/freading (License): Relax LGPL version.
15918
15919 2011-05-02  Bruno Haible  <bruno@clisp.org>
15920
15921         fchdir: Remove unused dependencies.
15922         * modules/fchdir (Depends-on): Remove include_next.
15923
15924 2011-05-02  Bruno Haible  <bruno@clisp.org>
15925
15926         gnulib-tool: Refactor.
15927         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
15928         from func_emit_autoconf_snippets.
15929         (func_emit_autoconf_snippets): Use it.
15930
15931 2011-05-02  Simon Josefsson  <simon@josefsson.org>
15932
15933         * NEWS: Document removal of 'exit'.
15934         * modules/exit: Remove file.
15935
15936 2011-05-01  Bruno Haible  <bruno@clisp.org>
15937
15938         Update DEPENDENCIES.
15939         * DEPENDENCIES (gettext): Recommend the newest release.
15940         Reported by Simon Josefsson.
15941
15942 2011-05-01  Bruno Haible  <bruno@clisp.org>
15943
15944         gnulib-tool: Reduce code duplication.
15945         * gnulib-tool (func_emit_autoconf_snippets): New function.
15946         (func_import, func_create_testdir): Use it.
15947
15948 2011-04-30  Eric Blake  <eblake@redhat.com>
15949
15950         fclose: don't fail on non-seekable input stream
15951         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
15952         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
15953         since fflush is allowed to fail in that case.
15954
15955 2011-04-30  Bruno Haible  <bruno@clisp.org>
15956
15957         dup3: cleanup
15958         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
15959
15960 2011-04-30  Bruno Haible  <bruno@clisp.org>
15961
15962         netdb: Make it work in C++ mode.
15963         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
15964         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
15965         module.
15966         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
15967         gl_MODULE_INDICATOR_FOR_TESTS.
15968         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
15969         * modules/netdb-c++-tests: New file.
15970         * tests/test-netdb-c++.cc: New file.
15971
15972 2011-04-30  Bruno Haible  <bruno@clisp.org>
15973
15974         New modules 'vfscanf', 'vscanf'.
15975         * modules/vfscanf: New file.
15976         * modules/vscanf: New file.
15977         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
15978         here.
15979         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
15980         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
15981
15982 2011-04-30  Bruno Haible  <bruno@clisp.org>
15983
15984         passfd: Add comments.
15985         * lib/passfd.c: Add comments about platforms.
15986
15987 2011-04-30  Bruno Haible  <bruno@clisp.org>
15988
15989         sys_uio: Make <sys/uio.h> self-contained.
15990         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
15991         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
15992
15993 2011-04-30  Bruno Haible  <bruno@clisp.org>
15994
15995         sys_socket: Ensure 'struct iovec' definition.
15996         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
15997         <sys/socket.h>.
15998         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
15999
16000 2011-04-30  Bruno Haible  <bruno@clisp.org>
16001
16002         sys_uio: Protect definition of 'struct iovec'.
16003         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16004         it as a C struct.
16005
16006 2011-04-30  Bruno Haible  <bruno@clisp.org>
16007
16008         manywarnings: fix indentation
16009         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16010
16011 2011-04-30  Pádraig Brady <P@draigBrady.com>
16012
16013         manywarnings: add -Wno-missing-field-initializers if needed.
16014         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16015         option if it's needed to allow initialization with { 0, }
16016
16017 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16018
16019         announce-gen: cosmetic improvement
16020         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16021
16022 2011-04-29  Jim Meyering  <meyering@redhat.com>
16023
16024         vc-list-files: indent with spaces, not TABs
16025         * build-aux/vc-list-files: Convert leading TABs to spaces,
16026         to match the style of most other files in gnulib.
16027
16028         announce-gen: indent with spaces, not TABs
16029         * build-aux/announce-gen: Convert all TABs to spaces, to match
16030         the style of most other files in gnulib.
16031
16032 2011-04-29  Eric Blake  <eblake@redhat.com>
16033
16034         quotearg: avoid uninitialized variable use
16035         * lib/quotearg.c (quoting_options_from_style): Initialize
16036         remaining fields, and ensure that custom styles are only used via
16037         quoting_options rather than quoting_style.
16038
16039 2011-04-29  Jim Meyering  <meyering@redhat.com>
16040
16041         maint.mk: remove unused VC-tag variable
16042         * top/maint.mk (VC-tag): Remove unused variable.
16043
16044 2011-04-29  Bruno Haible  <bruno@clisp.org>
16045
16046         netdb: fix gai_strerror replacements
16047         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16048         * modules/netdb: Substitute it.
16049
16050 2011-04-29  Jim Meyering  <meyering@redhat.com>
16051
16052         test-getcwd.c: avoid new set-but-not-used warning
16053         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16054         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16055         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16056         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16057
16058         test-hash.c: avoid a new shadowing warning
16059         * tests/test-hash.c (main): Don't shadow "dup".
16060
16061 2011-04-28  Eric Blake  <eblake@redhat.com>
16062
16063         getaddrinfo: fix gai_strerror signature
16064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16065         and work around mingw with UNICODE defined.
16066         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16067         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16068         * modules/netdb (Makefile.am): Substitute it.
16069         * lib/netdb.in.h (gai_strerror): Declare replacement.
16070         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16071         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16072         the fix.
16073
16074         getsockopt: avoid compiler warning
16075         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16076         Reported by Matthias Bolte.
16077
16078         tests: drop unused link dependency
16079         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16080         * modules/dirent-safer-tests (Makefile.am): Likewise.
16081         * modules/fdopendir-tests (Makefile.am): Likewise.
16082         * modules/mkfifoat-tests (Makefile.am): Likewise.
16083         * modules/openat-safer-tests (Makefile.am): Likewise.
16084         * modules/openat-tests (Makefile.am): Likewise.
16085         * modules/readlinkat-tests (Makefile.am): Likewise.
16086         * modules/symlinkat-tests (Makefile.am): Likewise.
16087         * modules/linkat-tests (Makefile.am): Likewise.
16088         (Depends-on): Switch to filenamecat-lgpl.
16089         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16090         LIBINTL.
16091         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16092         * tests/test-linkat.c (main): Don't require xalloc.
16093
16094         hash, mgetgroups: drop xalloc dependency
16095         * lib/hash.c (includes): Adjust includes.
16096         * lib/mgetgroups.c (includes): Likewise.
16097         (xgetgroups): Move...
16098         * lib/xgetgroups.c: ...to new file.
16099         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16100         * modules/xgetgroups: New file, split from...
16101         * modules/mgetgroups: ...here.
16102         (Depends-on): Add xalloc-oversized.
16103         * modules/hash (Depends-on): Likewise.
16104         * modules/hash-tests (Depends-on): Drop xalloc.
16105         (test_hash_LDADD): Drop unused library.
16106         * tests/test-hash.c (main): Break xalloc dependency.
16107         (includes): Drop unused include.
16108
16109         xalloc-oversized: new module
16110         * modules/xalloc-oversized: New module.
16111         * modules/xalloc (Depends-on): Add it.
16112         * lib/xalloc.h (xalloc_oversized): Move...
16113         * lib/xalloc-oversized.h: ...into new file.
16114
16115         utimecmp: drop dependency on xmalloc
16116         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16117         due to memory pressure.
16118         * modules/utimecmp (Depends-on): Drop xalloc.
16119
16120 2011-04-27  Eric Blake  <eblake@redhat.com>
16121
16122         getcwd: fix mingw bugs
16123         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16124         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16125         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16126
16127 2011-04-27  Bruno Haible  <bruno@clisp.org>
16128
16129         mkstemps: Ensure declaration on MacOS X 10.5.
16130         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16131         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16132         MacOS X.
16133
16134 2011-04-27  Bruno Haible  <bruno@clisp.org>
16135
16136         mkstemp: More documentation.
16137         * doc/posix-functions/mkstemp.texi: Document header file problem on
16138         MacOS X.
16139
16140 2011-04-27  Bruno Haible  <bruno@clisp.org>
16141
16142         mkstemp: Tweak configure message when cross-compiling.
16143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16144         result as a guess.
16145
16146 2011-04-27  Bruno Haible  <bruno@clisp.org>
16147
16148         clean-temp: Clarify what it does.
16149         * lib/clean-temp.h: Add more comments.
16150         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16151         module.
16152         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16153         * doc/glibc-functions/mkstemps.texi: Likewise.
16154         * doc/glibc-functions/mkostemps.texi: Likewise.
16155
16156 2011-04-27  Eric Blake  <eblake@redhat.com>
16157
16158         fchdir: avoid extra chdir and fix test
16159         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16160         getcwd-lgpl.
16161         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16162         have to be canonical.
16163         (canonicalize_file_name): Drop unused macro.
16164         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16165
16166         filenamecat-lgpl: fix licence
16167         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16168         when it was first created.
16169
16170         linkat, renameat: add missing dependency
16171         * modules/linkat (Depends-on): Require getcwd-lgpl.
16172         * modules/renameat (Depends-on): Likewise.
16173
16174         tests: reduce dependencies
16175         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16176         * tests/test-renameat.c (main): Likewise.
16177         * modules/linkat-tests (Depends-on): Relax dependency.
16178         * modules/renameat-tests (Depends-on): Likewise.
16179         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16180         dependency explicit.
16181
16182         save-cwd: reduce default dependency
16183         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16184         * lib/save-cwd.c: Update comments.
16185         * NEWS: Document the semantic change.
16186
16187         getcwd: enhance tests
16188         * tests/test-getcwd-lgpl.c: New file, taken from...
16189         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16190         repeat long path stress tests from m4 probe.
16191         * modules/getcwd-lgpl-tests: New module.
16192         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16193         * m4/getcwd-abort-bug.m4: Update comment.
16194         * m4/getcwd-path-max.m4: Likewise.
16195
16196         getcwd-lgpl: new module
16197         * modules/getcwd-lgpl: New module.
16198         * lib/getcwd-lgpl.c: New file.
16199         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16200         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16201         * modules/getcwd (configure.ac): Set C witness.
16202         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16203
16204         getcwd: tweak comments
16205         * m4/getcwd-abort-bug.m4: Fix comments.
16206         * m4/getcwd-path-max.m4: Likewise.
16207         * m4/getcwd.m4: Likewise.
16208
16209 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16210         and Eric Blake  <eblake@redhat.com>
16211
16212         mkstemp: replace if system version uses wrong permissions
16213         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16214         read/write mode bits set in file created by mkstemp.
16215         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16216
16217 2011-04-27  Eric Blake  <eblake@redhat.com>
16218
16219         passfd: avoid compiler warning
16220         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16221         Reported by Laine Stump.
16222
16223 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16224
16225         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16226         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16227
16228 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16229         and Eric Blake  <eblake@redhat.com>
16230
16231         mkstemp: mention clean-temp module
16232         * lib/mkstemp.c: Add comment.
16233         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16234
16235 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16236
16237         inttypes: also provide default values for 32-bit tests
16238         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16239         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16240
16241 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16242
16243         strtoumax: remove dependency on strtoimax
16244         This is like the strtoull change of yesterday.
16245         * modules/strtoumax (Files): Add lib/strtoimax.c.
16246         (Depends-on): Remove strtoimax and add verify.
16247
16248         inttypes-incomplete: new module
16249         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16250         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16251         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16252         of gl_INTTYPES_H.
16253         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16254         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16255         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16256         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16257         * modules/strtoumax, modules/xstrtol (Depends-on):
16258         Depend on inttypes-incomplete, not inttypes.
16259         * modules/inttypes-incomplete: New module, containing the contents
16260         of the old modules/inttypes module, except that the Files: section
16261         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16262         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16263         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16264         (Depends-on): Depend only on inttypes-incomplete.
16265         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16266
16267         inttypes: omit now-redundant strtoimax and strtoumax work
16268         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16269         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16270
16271         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16272         This supports apps that need pointers to strtoimax and strtoumax,
16273         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16274         nonexistent functions.  See
16275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16276         et seq.
16277         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16278         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16279         a macro.
16280         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16281
16282 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16283
16284         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16285
16286 2011-04-25  Bruno Haible  <bruno@clisp.org>
16287
16288         strtol, strtoul: Mark modules as obsolete.
16289         * modules/strtol (Status, Notice): New sections.
16290         * modules/strtoul (Status, Notice): New sections.
16291
16292 2011-04-25  Bruno Haible  <bruno@clisp.org>
16293
16294         strtod: Remove check for strtod, unless supporting old platforms.
16295         * modules/strtod-obsolete: New file.
16296         * m4/strtod-obsolete.m4: New file.
16297         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16298         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16299         * modules/strtod (Depends-on): Add strtod-obsolete.
16300         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16301
16302 2011-04-25  Bruno Haible  <bruno@clisp.org>
16303
16304         strcase: Make module obsolete.
16305         * modules/strcase (Status, Notice): New sections.
16306
16307 2011-04-25  Bruno Haible  <bruno@clisp.org>
16308
16309         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16310         * modules/dup2-obsolete: New file.
16311         * m4/dup2-obsolete.m4: New file.
16312         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16313         gl_FUNC_DUP2_OBSOLETE is not also defined.
16314         * modules/dup2 (Depends-on): Add dup2-obsolete.
16315         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16316
16317 2011-04-25  Bruno Haible  <bruno@clisp.org>
16318
16319         strnlen: Avoid memchr related link error on old obsolete platforms.
16320         * modules/memchr-obsolete: New file.
16321         * m4/memchr-obsolete.m4: New file.
16322         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16323         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16324         * modules/memchr (Depends-on): Add memchr-obsolete.
16325         * modules/strnlen (Depends-on): Likewise.
16326         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16327
16328 2011-04-25  Jim Meyering  <meyering@redhat.com>
16329
16330         maint.mk: makefile_at_at_check extend and clean up
16331         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16332         in addition to */Makefile.am.
16333         Exempt legitimate uses of @VAR@ notation, e.g.,
16334         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16335         Remove obsolete coreutils-specific comment.
16336         Prompted by discussion here:
16337         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16338
16339 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16340
16341         strtoul: remove dependency on strtol
16342         This is so that 'configure' need not check for strtol merely because
16343         the application needs strtoul.
16344         * modules/strtoul (Files): Add lib/strtol.c.
16345         (Depends-on): Remove strtol.
16346
16347         strtoull: remove dependency on strtoul
16348         This is like the strtoll change.
16349         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16350         (Depends-on): Remove strtoul.
16351
16352         strtoll: remove dependency on strtol
16353         This is so that 'configure' need not check for strtol merely because
16354         the application needs strtoll.
16355         * modules/strtoll (Files): Add lib/strtol.c.
16356         (Depends-on): Remove strtol.
16357
16358 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16359
16360         inttypes: Move some configure check to module 'imaxdiv'.
16361         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16362         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16363         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16364
16365 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16366
16367         inttypes: Move some configure check to module 'imaxabs'.
16368         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16369         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16370         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16371
16372 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16373
16374         inttypes: Remove configure tests that are not needed since 2009-12-31.
16375         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16376         gl_cv_header_working_inttypes_h.
16377
16378 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16379
16380         * modules/strnlen (Depends-on): Remove memchr.
16381         The strnlen implementation doesn't need the memchr module's fixes; see
16382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16383
16384         strtol: remove dependency on wchar
16385         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16386         * modules/strtol (Depends-on): Remove wchar.
16387
16388 2011-04-21  Eric Blake  <eblake@redhat.com>
16389
16390         passfd: fix test regression on Linux
16391         * modules/passfd-tests (configure.ac): Correct socketpair check.
16392
16393         passfd: speed up configure and drop unused code
16394         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16395         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16396         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16397         Instead of probing at configure for unix_scm_rights_bsd44_way,
16398         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16399         check to a struct member probe.
16400         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16401         (sendfd, recvfd): Update preprocessor checks.
16402         * modules/passfd (Files): Reflect rename, and drop unused file.
16403         (Depends-on): Drop unused dependency.
16404
16405         passfd: allow compilation on mingw
16406         * modules/sys_socket (Depends-on): Add sys_uio.
16407         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16408         iovec and a minimal struct msghdr.
16409         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16410         * tests/test-sys_socket.c (main): Enhance test.
16411         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16412         guaranteed to provide what we need.
16413         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16414         * modules/passfd-tests (Depends-on): Add sys_wait.
16415         * tests/test-passfd.c (main): Skip test on mingw, for now.
16416         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16417         partial 'struct msghdr' implementation.
16418
16419         sys_uio: new module
16420         * modules/sys_uio: New module.
16421         * modules/sys_uio-tests: Likewise.
16422         * lib/sys_uio.in.h: New file.
16423         * m4/sys_uio_h.m4: Likewise.
16424         * tests/test-sys_uio.c: Likewise.
16425         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16426         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16427
16428 2011-04-20  Jim Meyering  <meyering@redhat.com>
16429
16430         useless-if-before-free: avoid false-positive
16431         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16432         disjunct so that it too requires a terminating ";".  Without that,
16433         this script would identify as useless one statement from gcc that
16434         was not:
16435           if (aligned_ptr)
16436             free (((void **) aligned_ptr) [-1]);
16437
16438 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16439
16440         doc: update users.txt.
16441         * users.txt: Add barcode.
16442
16443 2011-04-19  Bruno Haible  <bruno@clisp.org>
16444
16445         ioctl: Remove link dependency on native Windows.
16446         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16447         (gl_close_fn, gl_ioctl_fn): New types.
16448         (struct fd_hook): Renamed from struct close_hook. Change type of
16449         private_close_fn field. Add private_ioctl_fn field.
16450         (close_hook_fn): Add parameter for primary close method.
16451         (execute_close_hooks, execute_all_close_hooks): Likewise.
16452         (ioctl_hook_fn): New type.
16453         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16454         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16455         argument.
16456         (unregister_fd_hook): Renamed from unregister_close_hook.
16457         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16458         Don't include <unistd.h>.
16459         (close): Remove undef.
16460         (anchor): Update.
16461         (execute_close_hooks): Add argument for primary close method.
16462         (execute_all_close_hooks): Likewise.
16463         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16464         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16465         argument. Allow each argument to be NULL.
16466         (unregister_fd_hook): Renamed from unregister_close_hook.
16467         * lib/close.c (rpl_close): Pass 'close' function pointer to
16468         execute_all_close_hooks.
16469         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16470         (primary_ioctl): New function.
16471         (ioctl): Don't call ioctlsocket here. Instead, call
16472         execute_all_ioctl_hooks.
16473         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16474         close method.
16475         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16476         (fd_sockets_hook): Renamed from close_sockets_hook.
16477         (gl_sockets_startup, gl_sockets_cleanup): Update.
16478         * modules/fd-hook: Renamed from modules/close-hook. Update.
16479         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16480         * modules/sockets (Depends-on): Likewise.
16481         * modules/ioctl (Depends-on): Add fd-hook.
16482         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16483         GNULIB_SOCKET.
16484
16485 2011-04-19  Bruno Haible  <bruno@clisp.org>
16486
16487         Move the support of O_NONBLOCK in open() to the 'open' module.
16488         * modules/nonblocking (Depends-on): Remove 'open'.
16489         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16490         gl_cv_have_open_O_NONBLOCK.
16491         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16492         O_NONBLOCK support.
16493         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16494
16495 2011-04-17  Bruno Haible  <bruno@clisp.org>
16496
16497         pipe2: Simplify code.
16498         * lib/pipe2.c (pipe2): Reduce code duplication.
16499
16500 2011-04-17  Bruno Haible  <bruno@clisp.org>
16501
16502         nonblocking: Add comment.
16503         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16504
16505 2011-04-17  Bruno Haible  <bruno@clisp.org>
16506
16507         nonblocking: Add tests for sockets.
16508         * tests/test-nonblocking-socket.sh: New file.
16509         * tests/test-nonblocking-socket-main.c: New file.
16510         * tests/test-nonblocking-socket-child.c: New file.
16511         * tests/test-nonblocking-socket.h: New file.
16512         * tests/socket-server.h: New file.
16513         * tests/socket-client.h: New file.
16514         * modules/nonblocking-socket-tests: New file.
16515         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16516
16517 2011-04-17  Bruno Haible  <bruno@clisp.org>
16518
16519         nonblocking: Add tests for pipes.
16520         * tests/test-nonblocking-pipe.sh: New file.
16521         * tests/test-nonblocking-pipe-main.c: New file.
16522         * tests/test-nonblocking-pipe-child.c: New file.
16523         * tests/test-nonblocking-pipe.h: New file.
16524         * tests/test-nonblocking-writer.h: New file.
16525         * tests/test-nonblocking-reader.h: New file.
16526         * tests/test-nonblocking-misc.h: New file.
16527         * modules/nonblocking-pipe-tests: New file.
16528         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16529
16530 2011-04-16  Bruno Haible  <bruno@clisp.org>
16531
16532         gettext: Clarify the needed programmer actions.
16533         * modules/gettext (Notice): New field.
16534         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16535
16536 2011-04-16  Bruno Haible  <bruno@clisp.org>
16537
16538         strchrnul: Tweak last commit.
16539         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16540         bug.
16541         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16542         as in _GL_FUNCDECL_SYS.
16543         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16544         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16545
16546 2011-04-15  Eric Blake  <eblake@redhat.com>
16547
16548         strchrnul: work around cygwin bug
16549         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16550         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16552         * modules/string (Makefile.am): Substitute it.
16553         * lib/string.in.h (strchrnul): Use it.
16554
16555 2011-04-15  Bruno Haible  <bruno@clisp.org>
16556
16557         Don't require lib/stdio-write.c when only module 'stdio' is used.
16558         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16559         invocation.
16560         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16561
16562 2011-04-14  Bruno Haible  <bruno@clisp.org>
16563
16564         Support non-blocking pipe I/O in read() on native Windows.
16565         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16566         (read): New declaration.
16567         * lib/read.c: New file.
16568         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16569         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16570         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16571         vscanf): New declarations.
16572         * lib/stdio-read.c: New file.
16573         * m4/read.m4: New file.
16574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16575         REPLACE_READ.
16576         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16577         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16578         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16579         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16580         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16581         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16582         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16583         * modules/read: New file.
16584         * modules/nonblocking (Files): Add lib/stdio-read.c.
16585         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16586         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16587         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16588         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16589         * modules/pread (Depends-on): Add read.
16590         * modules/safe-read (Depends-on): Likewise.
16591         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16592         gets, scanf, vfscanf, vscanf): Verify signatures.
16593         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16594         problem with non-blocking pipes.
16595         * doc/posix-functions/fgetc.texi: Likewise.
16596         * doc/posix-functions/fgets.texi: Likewise.
16597         * doc/posix-functions/fread.texi: Likewise.
16598         * doc/posix-functions/fscanf.texi: Likewise.
16599         * doc/posix-functions/getc.texi: Likewise.
16600         * doc/posix-functions/getchar.texi: Likewise.
16601         * doc/posix-functions/gets.texi: Likewise.
16602         * doc/posix-functions/scanf.texi: Likewise.
16603         * doc/posix-functions/vfscanf.texi: Likewise.
16604         * doc/posix-functions/vscanf.texi: Likewise.
16605
16606 2011-04-14  Bruno Haible  <bruno@clisp.org>
16607
16608         Support non-blocking pipe I/O in write() on native Windows.
16609         * lib/write.c (rpl_write): Split a write request that failed merely
16610         because the byte count was larger than the pipe buffer's size.
16611         * doc/posix-functions/write.texi: Mention the problem with large byte
16612         counts.
16613
16614 2011-04-14  Bruno Haible  <bruno@clisp.org>
16615
16616         wchar: Ensure that wchar_t gets defined on uClibc.
16617         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16618         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16619
16620 2011-04-13  Bruno Haible  <bruno@clisp.org>
16621
16622         safe-write, full-read: Avoid unnecessary compilation units.
16623         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16624         (Depends-on): Remove safe-read. Add ssize_t.
16625         * modules/full-read (Files): Add lib/full-write.c.
16626         (Depends-on): Add full-write.
16627
16628 2011-04-13  Bruno Haible  <bruno@clisp.org>
16629
16630         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16631         * modules/pwrite (Depends-on): Add 'write'.
16632
16633 2011-04-13  Bruno Haible  <bruno@clisp.org>
16634
16635         Support non-blocking pipe I/O in write() on native Windows.
16636         * lib/unistd.in.h (write): Enable replacement also if
16637         GNULIB_UNISTD_H_NONBLOCKING is 1.
16638         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16639         (rpl_write): When failing to write on a non-blocking pipe, change
16640         errno from ENOSPC to EAGAIN.
16641         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16642         putchar, puts, vfprintf, vprintf): Enable replacement also if
16643         GNULIB_STDIO_H_NONBLOCKING is 1.
16644         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16645         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16646         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16647         CALL_WITH_SIGPIPE_EMULATION.
16648         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16649         * m4/nonblocking.m4: New file.
16650         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16651         for non-blocking I/O support.
16652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16653         GNULIB_UNISTD_H_NONBLOCKING.
16654         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16655         required for non-blocking I/O support.
16656         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16657         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16658         lib/stdio-write.c, m4/asm-underscore.m4.
16659         (Depends-on): Add stdio, unistd.
16660         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16661         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16662         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16663         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16664         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16665         problem with non-blocking pipes.
16666         * doc/posix-functions/fputc.texi: Likewise.
16667         * doc/posix-functions/fputs.texi: Likewise.
16668         * doc/posix-functions/fwrite.texi: Likewise.
16669         * doc/posix-functions/printf.texi: Likewise.
16670         * doc/posix-functions/putc.texi: Likewise.
16671         * doc/posix-functions/putchar.texi: Likewise.
16672         * doc/posix-functions/puts.texi: Likewise.
16673         * doc/posix-functions/vfprintf.texi: Likewise.
16674         * doc/posix-functions/vprintf.texi: Likewise.
16675         * doc/posix-functions/write.texi: Likewise.
16676
16677 2011-04-10  Jim Meyering  <meyering@redhat.com>
16678
16679         maint.mk: prohibit doubled words
16680         Detect them also when they're separated by a newline.
16681         There are 3 ways to customize it:
16682           - disable the test on a per file basis, as usual with rules using
16683             $(VC_LIST_EXCEPT)
16684           - replace the default doubled-word-selecting regexp (affects all files)
16685           - ignore a particular file-vs-doubled-word match
16686         I nearly used that last one to ignore the "is is" match in
16687         coreutils' NEWS file, since the text was "ls -is is ..."
16688         To do that, I would have added this line to cfg.mk:
16689           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16690         but it would have ignored any "is is" match in NEWS.
16691         Low probability, but still...
16692         Instead, I changed the text, slightly:
16693           -  ls -is is now consistent with ls -lis in ignoring values returned
16694           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16695         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16696         (prohibit_doubled_word_): Define.
16697         (sc_prohibit_doubled_word): New rule.
16698         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16699
16700 2011-04-10  Jim Meyering  <meyering@redhat.com>
16701
16702         maint: fix doubled-word typo in comment
16703         * m4/gethostname.m4: s/is is/it is/
16704         * m4/getdomainname.m4: Likewise.
16705
16706 2011-04-10  Jim Meyering  <meyering@redhat.com>
16707
16708         maint: remove doubled word: s/it it/it/
16709         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16710
16711 2011-04-10  Jim Meyering  <meyering@redhat.com>
16712
16713         maint.mk: remove useless semicolon and backslash
16714         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16715         semicolon and backslash.
16716
16717 2011-04-10  Bruno Haible  <bruno@clisp.org>
16718
16719         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16720         * modules/stdint-tests (Depends-on): Add wchar.
16721
16722 2011-04-10  Jim Meyering  <meyering@redhat.com>
16723
16724         maint: remove doubled words in comments, e.g., s/a a/a/
16725         * lib/strptime.c (day_of_the_week): s/the the/the/
16726         * tests/test-chown.h (test_chown): s/a a/a/
16727
16728         test-chown.h: correct a cast
16729         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16730         when the destination is a stat.st_gid.
16731
16732 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16733
16734         getaddrinfo: Fix test for sa_len member.
16735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16736         include <sys/types.h> before <sys/socket.h>.
16737
16738 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16739
16740         maint: change "can not" to "cannot"
16741         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16742         boundaries.
16743
16744 2011-04-09  Jim Meyering  <meyering@redhat.com>
16745
16746         maint: change "a a" to "a"
16747         * tests/test-lchown.h (test_lchown): s/a a/a/
16748
16749         maint.mk: prohibit \<the the\>
16750         * top/maint.mk (sc_prohibit_the_the): New rule.
16751
16752         maint: fix "the the" in comment
16753         * lib/count-one-bits.h: s/the the/the/
16754
16755         maint: change "can not" to "cannot"
16756         But do not change the occurrences in maintain.texi or in
16757         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16758         * doc/gnulib-tool.texi: s/can not/cannot/
16759         * doc/posix-functions/accept.texi (accept): Likewise.
16760         * doc/posix-functions/socket.texi (socket): Likewise.
16761         * lib/mbrtowc.c: Likewise.
16762
16763         maint.mk: prohibit use of "can not"
16764         * top/maint.mk (sc_prohibit_can_not): New rule.
16765         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16766
16767 2011-04-09  Bruno Haible  <bruno@clisp.org>
16768
16769         careadlinkat: Guard against misuse of careadlinkatcwd.
16770         * lib/careadlinkat.c: Include <stdlib.h>.
16771         (careadlinkatcwd): Check that the fd argument is as expected.
16772
16773 2011-04-09  Bruno Haible  <bruno@clisp.org>
16774
16775         careadlinkat: Use common coding style.
16776         * lib/careadlinkat.c: Move gnulib includes after system includes.
16777
16778 2011-04-09  Bruno Haible  <bruno@clisp.org>
16779
16780         careadlinkat: Clarify specification.
16781         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16782         (careadlinkatcwd): Add comment.
16783         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16784
16785 2011-04-09  Bruno Haible  <bruno@clisp.org>
16786
16787         areadlinkat: Avoid link error on many platforms.
16788         * modules/areadlinkat (Depends-on): Add areadlink.
16789
16790 2011-04-09  Bruno Haible  <bruno@clisp.org>
16791
16792         allocator, careadlinkat: Fix double-inclusion guard.
16793         * lib/allocator.h: Fix double-inclusion guard.
16794         * lib/careadlinkat.h: Likewise.
16795
16796 2011-04-09  Bruno Haible  <bruno@clisp.org>
16797
16798         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16799         * lib/relocwrapper.c: Update dependencies hierarchy.
16800         * build-aux/install-reloc: Update list of files to be compiled.
16801         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16802         lib/allocator.[hc].
16803
16804 2011-04-08  Eric Blake  <eblake@redhat.com>
16805
16806         strftime: silence gnulib-tool warning
16807         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16808
16809 2011-04-08  Bruno Haible  <bruno@clisp.org>
16810
16811         verify: Fix syntax error with GCC 4.6 in C++ mode.
16812         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16813         (HAVE_STATIC_ASSERT): New macro.
16814         (verify_true, verify): Use 'static_assert' if it is supported and
16815         '_Static_assert' is not supported.
16816
16817 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16818
16819         allocator: New module.
16820         * modules/allocator, lib/allocator.c: New files.
16821         * lib/allocator.h (stdlib_allocator): New decl.
16822         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16823         Remove.  Do not include <stdlib.h>.
16824         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16825         * modules/careadlinkat (Files): Remove lib/allocator.h.
16826         (Depends-on): Add allocator.
16827
16828         stdlib: let modules use system malloc, realloc
16829         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16830         if !_GL_USE_STDLIB_ALLOC.
16831         (malloc, realloc): Limit this change to a smaller scope.
16832
16833         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16834         (malloc, realloc): Don't #undef; no longer needed.
16835         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16836         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16837         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16838         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16839         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16840         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16841         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16842         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16843
16844         careadlinkat: rename members to avoid problem
16845         * lib/allocator.h (struct allocator): Rename members from
16846         malloc/realloc to allocate/reallocate, to avoid problems if malloc
16847         and realloc are #define'd.  Reported by Eric Blake in
16848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
16849         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
16850
16851 2011-04-08  Eric Blake  <eblake@redhat.com>
16852
16853         nonblocking: reduce dependency
16854         * tests/test-nonblocking.c: Only test sockets when in use.
16855         * modules/nonblocking-tests (Depends-on): Drop socket.
16856         (Makefile.am): Link even if sockets are not present.
16857         * modules/pipe2-tests (Makefile.am): Likewise.
16858         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
16859
16860         pipe2: fix O_NONBLOCK support on mingw
16861         * modules/pipe2 (Depends-on): Add nonblocking.
16862         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
16863         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
16864         * tests/test-nonblocking.c (main): Likewise.
16865         * modules/pipe2-tests (Makefile.am): Avoid link failure.
16866
16867         fcntl-h: fix O_ACCMODE on cygwin
16868         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
16869         * lib/fcntl.in.h (O_ACCMODE): Fix it.
16870
16871         pipe-filter: drop O_NONBLOCK workarounds
16872         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
16873         * modules/pipe-filter-ii (Depends-on): Likewise.
16874         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
16875
16876         nonblocking: provide O_NONBLOCK for mingw
16877         * modules/nonblocking (Depends-on): Add open.
16878         (configure.ac): Set new witness macro.
16879         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
16880         * modules/fcntl-h (Makefile.am): Substitute it.
16881         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
16882         nonblocking module is in use.
16883         * lib/nonblocking.c: Adjust portability test.
16884         * lib/open.c (open): Don't let native open see gnulib flag.
16885         * tests/test-fcntl-h.c (main): Enhance test.
16886         * tests/test-open.h (test_open): Likewise.
16887         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
16888
16889         careadlinkat: fix compilation error on mingw
16890         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
16891         within struct allocator.
16892
16893 2011-04-06  Eric Blake  <eblake@redhat.com>
16894
16895         binary-io: relicense under LGPLv2+
16896         * modules/binary-io (License): Relax to LGPLv2+.
16897         Requested for libvirt, and required by pipe2.
16898
16899 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16900
16901         verify: use _Static_assert if available
16902         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
16903         (verify_true, verify): Use it if available.  This generates better
16904         diagnostics with GCC 4.6.0 and later.
16905
16906 2011-04-05  Bruno Haible  <bruno@clisp.org>
16907
16908         Remove leftover generated .h files after config.status changed.
16909
16910         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
16911         GL_GENERATE_ALLOCA_H.
16912         * modules/alloca-opt (Makefile.am): Remove alloca.h if
16913         GL_GENERATE_ALLOCA_H evaluates to false.
16914
16915         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
16916         GL_GENERATE_ARGZ_H.
16917         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
16918         evaluates to false.
16919
16920         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
16921         GL_GENERATE_BYTESWAP_H.
16922         * modules/byteswap (Makefile.am): Remove byteswap.h if
16923         GL_GENERATE_BYTESWAP_H evaluates to false.
16924
16925         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
16926         GL_GENERATE_ERRNO_H.
16927         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
16928         evaluates to false.
16929
16930         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
16931         GL_GENERATE_FLOAT_H.
16932         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
16933         evaluates to false.
16934
16935         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
16936         GL_GENERATE_FNMATCH_H.
16937         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
16938         GL_GENERATE_FNMATCH_H evaluates to false.
16939
16940         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
16941         GL_GENERATE_GLOB_H.
16942         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
16943         evaluates to false.
16944
16945         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
16946         automake conditional GL_GENERATE_ICONV_H.
16947         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
16948         evaluates to false.
16949
16950         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
16951         GL_GENERATE_NETINET_IN_H.
16952         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
16953         GL_GENERATE_NETINET_IN_H evaluates to false.
16954
16955         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
16956         conditional GL_GENERATE_PTHREAD_H.
16957         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
16958         * modules/pthread (Makefile.am): Remove pthread.h if
16959         GL_GENERATE_PTHREAD_H evaluates to false.
16960
16961         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
16962         GL_GENERATE_SCHED_H.
16963         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
16964         evaluates to false.
16965
16966         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
16967         conditional GL_GENERATE_SELINUX_CONTEXT_H.
16968         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
16969         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
16970
16971         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
16972         GL_GENERATE_STDARG_H.
16973         * modules/stdarg (Makefile.am): Remove stdarg.h if
16974         GL_GENERATE_STDARG_H evaluates to false.
16975
16976         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
16977         GL_GENERATE_STDBOOL_H.
16978         * modules/stdbool (Makefile.am): Remove stdbool.h if
16979         GL_GENERATE_STDBOOL_H evaluates to false.
16980
16981         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
16982         conditional GL_GENERATE_STDDEF_H.
16983         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
16984         * modules/stddef (Makefile.am): Remove stddef.h if
16985         GL_GENERATE_STDDEF_H evaluates to false.
16986
16987         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
16988         GL_GENERATE_STDINT_H.
16989         * modules/stdint (Makefile.am): Remove stdint.h if
16990         GL_GENERATE_STDINT_H evaluates to false.
16991
16992         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
16993         GL_GENERATE_SYSEXITS_H.
16994         * modules/sysexits (Makefile.am): Remove sysexits.h if
16995         GL_GENERATE_SYSEXITS_H evaluates to false.
16996
16997         Reported by Karl Berry and Ralf Wildenhues.
16998
16999 2011-04-05  Bruno Haible  <bruno@clisp.org>
17000
17001         Ensure to rebuild generated .h files when config.status has changed.
17002         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17003         config.status.
17004         * modules/ctype (Makefile.am): Likewise.
17005         * modules/dirent (Makefile.am): Likewise.
17006         * modules/errno (Makefile.am): Likewise.
17007         * modules/fcntl-h (Makefile.am): Likewise.
17008         * modules/float (Makefile.am): Likewise.
17009         * modules/getopt-posix (Makefile.am): Likewise.
17010         * modules/glob (Makefile.am): Likewise.
17011         * modules/iconv-h (Makefile.am): Likewise.
17012         * modules/inttypes (Makefile.am): Likewise.
17013         * modules/langinfo (Makefile.am): Likewise.
17014         * modules/locale (Makefile.am): Likewise.
17015         * modules/math (Makefile.am): Likewise.
17016         * modules/netdb (Makefile.am): Likewise.
17017         * modules/netinet_in (Makefile.am): Likewise.
17018         * modules/poll-h (Makefile.am): Likewise.
17019         * modules/pthread (Makefile.am): Likewise.
17020         * modules/pty (Makefile.am): Likewise.
17021         * modules/sched (Makefile.am): Likewise.
17022         * modules/search (Makefile.am): Likewise.
17023         * modules/selinux-h (Makefile.am): Likewise.
17024         * modules/signal (Makefile.am): Likewise.
17025         * modules/spawn (Makefile.am): Likewise.
17026         * modules/stdarg (Makefile.am): Likewise.
17027         * modules/stdbool (Makefile.am): Likewise.
17028         * modules/stddef (Makefile.am): Likewise.
17029         * modules/stdint (Makefile.am): Likewise.
17030         * modules/stdio (Makefile.am): Likewise.
17031         * modules/stdlib (Makefile.am): Likewise.
17032         * modules/string (Makefile.am): Likewise.
17033         * modules/strings (Makefile.am): Likewise.
17034         * modules/sys_file (Makefile.am): Likewise.
17035         * modules/sys_ioctl (Makefile.am): Likewise.
17036         * modules/sys_select (Makefile.am): Likewise.
17037         * modules/sys_socket (Makefile.am): Likewise.
17038         * modules/sys_stat (Makefile.am): Likewise.
17039         * modules/sys_time (Makefile.am): Likewise.
17040         * modules/sys_times (Makefile.am): Likewise.
17041         * modules/sys_utsname (Makefile.am): Likewise.
17042         * modules/sys_wait (Makefile.am): Likewise.
17043         * modules/sysexits (Makefile.am): Likewise.
17044         * modules/termios (Makefile.am): Likewise.
17045         * modules/time (Makefile.am): Likewise.
17046         * modules/unistd (Makefile.am): Likewise.
17047         * modules/wchar (Makefile.am): Likewise.
17048         * modules/wctype-h (Makefile.am): Likewise.
17049         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17050
17051 2011-04-05  Bruno Haible  <bruno@clisp.org>
17052
17053         pipe2: Relicense under LGPLv2+.
17054         * modules/pipe2 (License): Change to LGPLv2+.
17055         Requested by Eric Blake, for libvirt.
17056
17057 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17058
17059         bootstrap: compute gnulib_extra_files after updating build_aux
17060         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17061         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17062
17063 2011-04-05  Eric Blake  <eblake@redhat.com>
17064
17065         bootstrap: preserve git whitelist item sorting
17066         * build-aux/bootstrap (sort_patterns): New function.
17067         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17068
17069 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17070
17071         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17072         sc_space_tab check.
17073
17074 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17075
17076         areadlink, areadlinkat: rewrite in terms of careadlinkat
17077         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17078         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17079         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17080         (malloc, realloc): Remove #undefs.
17081         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17082         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17083         readlink, ssize_t, stdint, unistd.
17084         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17085         areadlink, stdint.
17086
17087         careadlinkat: new module
17088         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17089         * modules/careadlinkat: New files, written by me with
17090         a review and feedback from Ben Pfaff in
17091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17092
17093 2011-04-01  Bruno Haible  <bruno@clisp.org>
17094
17095         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17096         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17097         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17098         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17099         Reported by Bruce Korb <bruce.korb@gmail.com>.
17100
17101 2011-04-01  Bruno Haible  <bruno@clisp.org>
17102
17103         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17104         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17105         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17106         * modules/wcpcpy (Depends-on): Add extensions.
17107         * modules/wcpncpy (Depends-on): Likewise.
17108         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17109         systems.
17110         * doc/posix-functions/wcpncpy.texi: Likewise.
17111         * doc/posix-functions/wcwidth.texi: Likewise.
17112
17113 2011-03-31  Eric Blake  <eblake@redhat.com>
17114
17115         nonblocking: fix mingw test failures
17116         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17117         non-blocking flag on regular file.
17118         (get_nonblocking_flag): Set errno on invalid fd.
17119         * tests/test-nonblocking.c (main): Avoid test failure on
17120         directories if fchdir is not active.
17121         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17122
17123 2011-03-31  Bruno Haible  <bruno@clisp.org>
17124
17125         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17126         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17127         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17128         Reported by Simon Josefsson <simon@josefsson.org>.
17129
17130 2011-03-31  Bruno Haible  <bruno@clisp.org>
17131         and Eric Blake  <eblake@redhat.com>
17132
17133         nonblocking: new module
17134         * modules/nonblocking: New module.
17135         * modules/nonblocking-tests: Likewise.
17136         * lib/nonblocking.h: New file.
17137         * lib/nonblocking.c: Likewise.
17138         * tests/test-nonblocking.c: New test.
17139         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17140
17141 2011-03-30  Bruno Haible  <bruno@clisp.org>
17142
17143         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17144         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17145         instead of 'printf' format for GCC >= 4.4.
17146         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17147         (fprintf, printf, vfprintf, vprintf): Declare with
17148         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17149         the system's vfprintf() function.
17150         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17151
17152 2011-03-30  Eric Blake  <eblake@redhat.com>
17153
17154         passfd: fix scoping bug
17155         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17156         before sendmsg/recvmsg.
17157
17158         passfd: standardize coding conventions
17159         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17160         can be learned at compile time.
17161         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17162         ifdefs.
17163         (sendfd, recvfd): Follow gnulib code conventions.
17164
17165         passfd: fix incorrect sendmsg arguments
17166         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17167         incorrect msg_controllen value.
17168         * modules/passfd-tests (Depends-on): Check for alarm.
17169         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17170         Reported by Bastien ROUCARIES.
17171
17172 2011-03-30  Bruno Haible  <bruno@clisp.org>
17173
17174         c-strcasestr: Relicense under LGPLv2+.
17175         * modules/c-strcasestr (License): Change to LGPLv2+.
17176         Requested by Eric Blake, for libvirt.
17177
17178 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17179
17180         * users.txt: Add libidn2.  Fix libtasn1 link.
17181
17182 2011-03-30  Jim Meyering  <meyering@redhat.com>
17183
17184         tests: readlink* ("",... fails with EINVAL on newer kernels
17185         readlink and readlinkat have typically failed with ENOENT for
17186         the invalid, empty file name,  "".  However, with the advent
17187         of linux-2.6.39, they fail with EINVAL.
17188         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17189         when operating on the empty file name.
17190         * tests/test-readlink.h (test_readlink): Likewise.
17191
17192 2011-03-29  Bruno Haible  <bruno@clisp.org>
17193
17194         Relicense some modules under LGPLv2+, for libidn2.
17195         * modules/array-mergesort (License): Change to LGPLv2+.
17196         * modules/c-strcaseeq (License): Likewise.
17197         * modules/striconveh (License): Likewise.
17198         * modules/striconveha (License): Likewise.
17199         * modules/uniconv/base (License): Likewise.
17200         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17201         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17202         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17203         * modules/unictype/base (License): Likewise.
17204         * modules/unictype/bidiclass-of (License): Likewise.
17205         * modules/unictype/category-M (License): Likewise.
17206         * modules/unictype/category-none (License): Likewise.
17207         * modules/unictype/category-of (License): Likewise.
17208         * modules/unictype/category-test (License): Likewise.
17209         * modules/unictype/category-test-withtable (License): Likewise.
17210         * modules/unictype/combining-class (License): Likewise.
17211         * modules/unictype/joiningtype-of (License): Likewise.
17212         * modules/unictype/scripts (License): Likewise.
17213         * modules/uninorm/base (License): Likewise.
17214         * modules/uninorm/canonical-decomposition (License): Likewise.
17215         * modules/uninorm/composition (License): Likewise.
17216         * modules/uninorm/decompose-internal (License): Likewise.
17217         * modules/uninorm/decomposition-table (License): Likewise.
17218         * modules/uninorm/nfc (License): Likewise.
17219         * modules/uninorm/nfd (License): Likewise.
17220         * modules/uninorm/u32-normalize (License): Likewise.
17221         * modules/unistr/base (License): Likewise.
17222         * modules/unistr/u32-cpy (License): Likewise.
17223         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17224         * modules/unistr/u32-to-u8 (License): Likewise.
17225         * modules/unistr/u32-uctomb (License): Likewise.
17226         * modules/unistr/u8-check (License): Likewise.
17227         * modules/unistr/u8-mblen (License): Likewise.
17228         * modules/unistr/u8-mbtouc (License): Likewise.
17229         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17230         * modules/unistr/u8-mbtoucr (License): Likewise.
17231         * modules/unistr/u8-prev (License): Likewise.
17232         * modules/unistr/u8-strlen (License): Likewise.
17233         * modules/unistr/u8-to-u32 (License): Likewise.
17234         * modules/unistr/u8-uctomb (License): Likewise.
17235         * modules/unitypes (License): Likewise.
17236         Requested by Simon Josefsson.
17237
17238 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17239
17240         lib-symbol-visibility: Add a notice.
17241         * modules/lib-symbol-visibility (Notice): New field.
17242
17243 2011-03-29  Bruno Haible  <bruno@clisp.org>
17244
17245         getaddrinfo: Doc fix.
17246         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17247         section "fixed in Gnulib".
17248
17249 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17250
17251         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17252         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17253
17254 2011-03-26  Bruno Haible  <bruno@clisp.org>
17255
17256         unictype/property-byname: Reduce the number of load-time relocations.
17257         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17258         (UC_PROPERTY_INDEX_*): New enumeration values.
17259         (uc_property_byname): Convert an index from the lookup table to an
17260         uc_property_t.
17261         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17262         values.
17263
17264 2011-03-26  Bruno Haible  <bruno@clisp.org>
17265
17266         unictype/property-byname: Allow omitted word separators and aliases.
17267         * lib/unictype/pr_byname.gperf: Add property names without word
17268         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17269         for 'space'.
17270
17271 2011-03-26  Bruno Haible  <bruno@clisp.org>
17272
17273         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17274         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17275         also hyphens to space.
17276         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17277         without spaces.
17278         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17279
17280 2011-03-26  Bruno Haible  <bruno@clisp.org>
17281
17282         unictype/joiningtype-byname: Recognize long names as well.
17283         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17284         a long name.
17285         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17286         unictype/joiningtype_byname.h.
17287         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17288         * lib/unictype/joiningtype_byname.gperf: New file.
17289         * modules/unictype/joiningtype-byname (Files): Add
17290         lib/unictype/joiningtype_byname.gperf.
17291         (Depends-on): Add gperf.
17292         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17293         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17294         long names.
17295
17296         Tests for module 'unictype/joiningtype-longname'.
17297         * modules/unictype/joiningtype-longname-tests: New file.
17298         * tests/unictype/test-joiningtype_longname.c: New file.
17299
17300         New module 'unictype/joiningtype-longname'.
17301         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17302         * lib/unictype/joiningtype_longname.c: New file.
17303         * modules/unictype/joiningtype-longname: New file.
17304         * modules/unictype/joiningtype-all (Depends-on): Add
17305         unictype/joiningtype-longname.
17306
17307 2011-03-26  Bruno Haible  <bruno@clisp.org>
17308
17309         unictype/bidiclass-byname: Recognize long names as well.
17310         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17311         name.
17312         * lib/unictype/bidi_byname.c: Include <string.h>,
17313         unictype/bidi_byname.h.
17314         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17315         * lib/unictype/bidi_byname.gperf: New file.
17316         * modules/unictype/bidiclass-byname (Files): Add
17317         lib/unictype/bidi_byname.gperf.
17318         (Depends-on): Add gperf.
17319         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17320         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17321         long names.
17322
17323         Tests for module 'unictype/bidiclass-longname'.
17324         * modules/unictype/bidiclass-longname-tests: New file.
17325         * tests/unictype/test-bidi_longname.c: New file.
17326
17327         New module 'unictype/bidiclass-longname'.
17328         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17329         * lib/unictype/bidi_longname.c: New file.
17330         * modules/unictype/bidiclass-longname: New file.
17331         * modules/unictype/bidiclass-all (Depends-on): Add
17332         unictype/bidiclass-longname.
17333
17334 2011-03-26  Bruno Haible  <bruno@clisp.org>
17335
17336         unictype/bidi*: Rename modules.
17337         * modules/unictype/bidiclass-all: Renamed from
17338         modules/unictype/bidicategory-all.
17339         * modules/unictype/bidiclass-name: Renamed from
17340         modules/unictype/bidiclass-name.
17341         (Description): Update.
17342         * modules/unictype/bidiclass-name-tests: Renamed from
17343         modules/unictype/bidicategory-name-tests.
17344         * modules/unictype/bidiclass-byname: Renamed from
17345         modules/unictype/bidicategory-byname.
17346         (Description): Update.
17347         * modules/unictype/bidiclass-byname-tests: Renamed from
17348         modules/unictype/bidicategory-byname-tests.
17349         * modules/unictype/bidiclass-of: Renamed from
17350         modules/unictype/bidicategory-of.
17351         (Description): Update.
17352         * modules/unictype/bidiclass-of-tests: Renamed from
17353         modules/unictype/bidicategory-of-tests.
17354         * modules/unictype/bidiclass-test: Renamed from
17355         modules/unictype/bidicategory-test.
17356         (Description): Update.
17357         * modules/unictype/bidiclass-test-tests: Renamed from
17358         modules/unictype/bidicategory-test-tests.
17359         * modules/unictype/bidicategory-all: New file, a simple redirection.
17360         * modules/unictype/bidicategory-name: Likewise.
17361         * modules/unictype/bidicategory-byname: Likewise.
17362         * modules/unictype/bidicategory-of: Likewise.
17363         * modules/unictype/bidicategory-test: Likewise.
17364         * modules/unictype/property-bidi-* (Dependencies): Update.
17365         * lib/unictype/bidi_*.c: Update comment.
17366
17367 2011-03-26  Bruno Haible  <bruno@clisp.org>
17368
17369         unictype/bidi*: Rename functions, part 2.
17370         * modules/unictype/bidicategory-name (configure.ac): Update required
17371         libunistring version.
17372         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17373
17374 2011-03-25  Bruno Haible  <bruno@clisp.org>
17375
17376         New module 'unictype/combining-class-all'.
17377         * modules/unictype/combining-class-all: New file.
17378
17379         Tests for module 'unictype/combining-class-byname'.
17380         * modules/unictype/combining-class-byname-tests: New file.
17381         * tests/unictype/test-combiningclass_byname.c: New file.
17382
17383         New module 'unictype/combining-class-byname'.
17384         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17385         * lib/unictype/combiningclass_byname.c: New file.
17386         * lib/unictype/combiningclass_byname.gperf: New file.
17387         * modules/unictype/combining-class-byname: New file.
17388
17389         Tests for module 'unictype/combining-class-longname'.
17390         * modules/unictype/combining-class-longname-tests: New file.
17391         * tests/unictype/test-combiningclass_longname.c: New file.
17392
17393         New module 'unictype/combining-class-longname'.
17394         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17395         * lib/unictype/combiningclass_longname.c: New file.
17396         * modules/unictype/combining-class-longname: New file.
17397
17398         Tests for module 'unictype/combining-class-name'.
17399         * modules/unictype/combining-class-name-tests: New file.
17400         * tests/unictype/test-combiningclass_name.c: New file.
17401
17402         New module 'unictype/combining-class-name'.
17403         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17404         * lib/unictype/combiningclass_name.c: New file.
17405         * modules/unictype/combining-class-name: New file.
17406
17407 2011-03-25  Bruno Haible  <bruno@clisp.org>
17408
17409         unictype/combining-class: Rename source files.
17410         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17411         of unictype/combining.h.
17412         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17413         Update.
17414         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17415         * modules/unictype/combining-class (Description): Fix.
17416         (Files, Makefile.am): Update.
17417         * tests/unictype/test-combiningclass.c: Renamed from
17418         tests/unictype/test-combining.c.
17419         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17420
17421 2011-03-25  Bruno Haible  <bruno@clisp.org>
17422
17423         unictype: Update list of canonical combining classes.
17424         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17425
17426 2011-03-25  Bruno Haible  <bruno@clisp.org>
17427
17428         unictype/category-byname: Recognize long names as well.
17429         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17430         a long name.
17431         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17432         unictype/categ_byname.h.
17433         (UC_CATEGORY_INDEX_*): New enumeration values.
17434         (uc_general_category_byname): Use uc_general_category_lookup and
17435         convert from index to value.
17436         * lib/unictype/categ_byname.gperf: New file.
17437         * modules/unictype/category-byname (Files): Add
17438         lib/unictype/categ_byname.gperf.
17439         (Depends-on): Add gperf.
17440         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17441         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17442         long names.
17443
17444         Tests for module 'unictype/category-longname'.
17445         * modules/unictype/category-longname-tests: New file.
17446         * tests/unictype/test-categ_longname.c: New file.
17447
17448         New module 'unictype/category-longname'.
17449         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17450         * lib/unictype/categ_longname.c: New file.
17451         * modules/unictype/category-longname: New file.
17452         * modules/unictype/category-all (Depends-on): Add it.
17453
17454 2011-03-25  Bruno Haible  <bruno@clisp.org>
17455
17456         Tests for module 'unictype/category-LC'.
17457         * modules/unictype/category-LC-tests: New file.
17458         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17459
17460         New module 'unictype/category-LC'.
17461         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17462         (UC_CATEGORY_LC): New declaration.
17463         (UC_CASED_LETTER): New macro.
17464         * lib/gen-uni-tables.c (is_category_LC): New function.
17465         (output_categories): Also handle category LC.
17466         (UC_CATEGORY_MASK_LC): New enumeration value.
17467         (general_category_byname): Also handle category LC.
17468         * lib/unictype/categ_LC.c: New file.
17469         * lib/unictype/categ_LC.h: New file, automatically generated.
17470         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17471         category LC.
17472         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17473         * modules/unictype/category-LC: New file.
17474         * modules/unictype/category-byname (Depends-on): Add
17475         unictype/category-LC.
17476         * modules/unictype/category-all (Depends-on): Likewise.
17477
17478 2011-03-25  Eric Blake  <eblake@redhat.com>
17479
17480         xmalloc: revert yesterday's regression
17481         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17482         realloc's underlying behavior (allowing allocation of zero-size
17483         objects, especially if malloc-gnu is also in use).
17484
17485 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17486
17487         maint.mk: add missing version to VC-tag
17488         * top/maint.mk: git tag was missing actual tag name; add it.
17489
17490         valgrind: do leak checking, and exit with code 1 on error (not 0)
17491         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17492         to VALGRIND.
17493
17494 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17495
17496         posix-modules: say what it does.
17497         * posix-modules: Add a line to the --help output saying what it does.
17498
17499 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17500
17501         xmalloc: Do not leak if underlying realloc is C99 compatible.
17502         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17503         This avoids a leak on C99-based systems.  See
17504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17505
17506 2011-03-24  Eric Blake  <eblake@redhat.com>
17507
17508         realloc: document portability problem
17509         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17510         passing 0 size to realloc.
17511
17512 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17513
17514         doc: update users.txt
17515         * users.txt: Add cvsps, tmpwatch
17516
17517 2011-03-23  Matt Rice  <ratmice@gmail.com>
17518
17519         doc: update users.txt
17520         * users.txt: Add gdb.
17521
17522 2011-03-23  Jim Meyering  <meyering@redhat.com>
17523
17524         doc: update users.txt
17525         Looking through matches up to the following URL (there are still
17526         several more pages), I found several projects that use gnulib:
17527         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17528         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17529         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17530
17531 2011-03-22  Bruno Haible  <bruno@clisp.org>
17532
17533         unictype/bidi*: Rename functions.
17534         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17535         uc_bidi_class, uc_is_bidi_class): New declarations.
17536         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17537         uc_bidi_category_byname.
17538         (uc_bidi_category_byname): New function.
17539         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17540         u_bidi_category_name.
17541         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17542         (uc_bidi_category_name): New function.
17543         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17544         uc_bidi_category.
17545         (uc_bidi_category): New function.
17546         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17547         uc_is_bidi_category. Invoke uc_bidi_class.
17548         (uc_is_bidi_category): New function.
17549         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17550         instead of uc_bidi_category_byname.
17551         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17552         instead of uc_bidi_category_name.
17553         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17554         uc_bidi_category.
17555         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17556         instead of uc_is_bidi_category.
17557
17558 2011-03-21  Bruno Haible  <bruno@clisp.org>
17559
17560         New module 'unictype/joininggroup-all'.
17561         * modules/unictype/joininggroup-all: New file.
17562
17563         Tests for module 'unictype/joininggroup-of'.
17564         * modules/unictype/joininggroup-of-tests: New file.
17565         * tests/unictype/test-joininggroup_of.c: New file.
17566         * tests/unictype/test-joininggroup_of.h: New file, automatically
17567         generated by gen-uni-tables.
17568
17569         New module 'unictype/joininggroup-of'.
17570         * modules/unictype/joininggroup-of: New file.
17571         * lib/unictype/joininggroup_of.c: New file.
17572         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17573         gen-uni-tables.
17574
17575         Tests for module 'unictype/joininggroup-byname'.
17576         * modules/unictype/joininggroup-byname-tests: New file.
17577         * tests/unictype/test-joininggroup_byname.c: New file.
17578
17579         New module 'unictype/joininggroup-byname'.
17580         * modules/unictype/joininggroup-byname: New file.
17581         * lib/unictype/joininggroup_byname.c: New file.
17582         * lib/unictype/joininggroup_byname.gperf: New file.
17583
17584         Tests for module 'unictype/joininggroup-name'.
17585         * modules/unictype/joininggroup-name-tests: New file.
17586         * tests/unictype/test-joininggroup_name.c: New file.
17587
17588         New module 'unictype/joininggroup-name'.
17589         * modules/unictype/joininggroup-name: New file.
17590         * lib/unictype/joininggroup_name.c: New file.
17591         * lib/unictype/joininggroup_name.h: New file.
17592
17593         New module 'unictype/joiningtype-all'.
17594         * modules/unictype/joiningtype-all: New file.
17595
17596         Tests for module 'unictype/joiningtype-of'.
17597         * modules/unictype/joiningtype-of-tests: New file.
17598         * tests/unictype/test-joiningtype_of.c: New file.
17599         * tests/unictype/test-joiningtype_of.h: New file, automatically
17600         generated by gen-uni-tables.
17601
17602         New module 'unictype/joiningtype-of'.
17603         * modules/unictype/joiningtype-of: New file.
17604         * lib/unictype/joiningtype_of.c: New file.
17605         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17606         gen-uni-tables.
17607
17608         Tests for module 'unictype/joiningtype-byname'.
17609         * modules/unictype/joiningtype-byname-tests: New file.
17610         * tests/unictype/test-joiningtype_byname.c: New file.
17611
17612         New module 'unictype/joiningtype-byname'.
17613         * modules/unictype/joiningtype-byname: New file.
17614         * lib/unictype/joiningtype_byname.c: New file.
17615
17616         Tests for module 'unictype/joiningtype-name'.
17617         * modules/unictype/joiningtype-name-tests: New file.
17618         * tests/unictype/test-joiningtype_name.c: New file.
17619
17620         New module 'unictype/joiningtype-name'.
17621         * modules/unictype/joiningtype-name: New file.
17622         * lib/unictype/joiningtype_name.c: New file.
17623
17624         unictype: Add support for Arabic shaping properties.
17625         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17626         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17627         declarations.
17628         (UC_JOINING_GROUP_*): New enumeration values.
17629         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17630         declarations.
17631         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17632         (unicode_joining_type): New variable.
17633         (UC_JOINING_GROUP_*): New enumeration values.
17634         (unicode_joining_group): New variable.
17635         (fill_arabicshaping, joining_type_as_c_identifier,
17636         output_joining_type_test, output_joining_type,
17637         joining_group_as_c_identifier, output_joining_group_test,
17638         output_joining_group): New functions.
17639         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17640         fill_arabicshaping and output_joining_type_test, output_joining_type,
17641         output_joining_group_test, output_joining_group.
17642         Reported by Simon Josefsson.
17643
17644 2011-03-21  Jim Meyering  <meyering@redhat.com>
17645
17646         strftime: fix a bug in yesterday's change
17647         * lib/strftime.c (add): Accommodate width's initial value of -1.
17648         Otherwise, nstrftime would copy uninitialized data into
17649         the result buffer.
17650
17651 2011-03-21  Jim Meyering  <meyering@redhat.com>
17652
17653         tests: add strftime-tests module
17654         * tests/test-strftime.c: New file.
17655         * modules/strftime-tests: New module.
17656
17657 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17658
17659         strftime: don't assume a byte count fits in 'int'
17660         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17661         found this problem by static analysis, using gcc -Wstrict-overflow
17662         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17663         on an integer overflow having undefined behavior, but it turns out
17664         that the argument is a size, which might not fit in 'int' anyway,
17665
17666 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17667
17668         stdio: don't require ignore_value around fwrite
17669
17670         This patch works around libc bug 11959
17671         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17672         Without this patch, applications must often write
17673         ignore_value (fwrite (...)) even though the ignore_value is
17674         not helpful here.  It's common to write many objects, using
17675         fwrite/printf/etc., and then use ferror to detect output error.
17676
17677         I considered making this patch optional, but decided against it,
17678         because libc is obviously being inconsistent here: there is no
17679         reason libc should insist that user code must inspect fwrite
17680         return's value without also insisting that it inspect printf's,
17681         putchar's, etc.  If user code wants to have a strict style where
17682         all these functions' values are checked (so that ferror need not
17683         be checked), we could add support for that style in a new gnulib
17684         module, but in the meantime it's better to be consistent and to
17685         support common usage.
17686
17687         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17688         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17689         that we are compiling in checking mode, and if not C++, and
17690         if not already wrapping fwrite for some other reason.
17691         (fwrite): #define to rpl_fwrite if the latter is defined.
17692
17693 2011-03-20  Bruno Haible  <bruno@clisp.org>
17694
17695         verror: Fix compilation error introduced on 2011-02-13.
17696         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17697         instead of __attribute__.
17698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17699
17700 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17701             Bruno Haible  <bruno@clisp.org>
17702
17703         socklen: do not depend on sys_socket
17704         While trying to modify Emacs to use gnulib's socklen module,
17705         I discovered a circular dependency: socklen depends on sys_socket
17706         and vice versa.  Emacs can use socklen, but it does not need
17707         sys_socket because it has its own substitute for sys/socket.h.
17708         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17709         gl_TYPE_SOCKLEN_T.
17710         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17711         gl_PREREQ_SYS_H_SOCKET.
17712         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17713         gl_PREREQ_SYS_H_SOCKET.
17714         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17715         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17716         * modules/socklen (Depends-on): Do not depend on sys_socket.
17717         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17718
17719 2011-03-20  Jim Meyering  <meyering@redhat.com>
17720
17721         maint.mk: sort file names *after* new transformation
17722         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17723         prefix would have led to an unwarranted failure in GNU parted.
17724         Sort after that transformation.
17725
17726 2011-03-19  Jim Meyering  <meyering@redhat.com>
17727
17728         maint.mk: fix po-file syntax-check rule
17729         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17730         Patch by Bruno Haible.
17731
17732 2011-03-19  Bruno Haible  <bruno@clisp.org>
17733
17734         socklen: Update comment.
17735         * m4/socklen.m4: Update comment about platforms.
17736
17737 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17738             Bruno Haible  <bruno@clisp.org>
17739
17740         inet_ntop, inet_pton: Simplify.
17741         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17742         documented to provide socklen_t and we already depend on sys_socket.
17743         * modules/inet_pton (Depends-on): Likewise.
17744         * lib/arpa_inet.in.h: Adjust comment.
17745
17746 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17747             Bruno Haible  <bruno@clisp.org>
17748
17749         netdb: Simplify.
17750         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17751         documented to provide socklen_t and we already depend on sys_socket.
17752         * lib/netdb.in.h: Adjust comment.
17753
17754 2011-03-19  Bruno Haible  <bruno@clisp.org>
17755
17756         sys_socket, netdb: Document problem with socklen_t.
17757         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17758         platforms.
17759         * doc/posix-headers/netdb.texi: Likewise.
17760
17761 2011-03-18  Eric Blake  <eblake@redhat.com>
17762
17763         maint.mk: let po check work in VPATH build
17764         * top/maint.mk (po_file): Allow cfg.mk override.
17765         (sc_po_check): Allow VPATH use.
17766         Reported by Jiri Denemark.
17767
17768 2011-03-16  Jim Meyering  <meyering@redhat.com>
17769
17770         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17771         Before, you would have had to create one .x-sc_ file per rule in order
17772         to exempt offending files.  Now, you may instead use a Make variable --
17773         usually defined in cfg.mk -- whose name identifies the affected rule.
17774         * top/maint.mk (_sc_excl): Define.
17775         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17776         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17777
17778 2011-03-13  Bruno Haible  <bruno@clisp.org>
17779
17780         ignore-value tests: Avoid warnings.
17781         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17782         empty for gcc < 3.4.
17783
17784 2011-03-13  Bruno Haible  <bruno@clisp.org>
17785
17786         passfd: Fix link error on Solaris.
17787         * modules/passfd (Description): Correct.
17788         (Depends-on): Add socketlib.
17789         (Link): New section.
17790         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17791
17792 2011-03-13  Bruno Haible  <bruno@clisp.org>
17793
17794         passfd: Fix link error on AIX 5.2.
17795         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17796
17797 2011-03-13  Bruno Haible  <bruno@clisp.org>
17798
17799         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17800         * lib/sys_socket.in.h: Include <stddef.h>.
17801         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17802         CMSG_FIRSTHDR. Remove unused variable.
17803
17804 2011-03-13  Bruno Haible  <bruno@clisp.org>
17805
17806         passfd: Fix compilation error on OpenBSD.
17807         * lib/passfd.c: Include <sys/uio.h>.
17808
17809 2011-03-13  Bruno Haible  <bruno@clisp.org>
17810
17811         passfd test: Fix warnings.
17812         * tests/test-passfd.c: Include <sys/wait.h>.
17813         (main): Fix typo.
17814
17815 2011-03-13  Bruno Haible  <bruno@clisp.org>
17816
17817         passfd module, part 4, tweaks.
17818         * tests/test-passfd.c: Reorder includes.
17819         (main): Fix perror and printf calls.
17820
17821 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17822
17823         passfd module, part 4.
17824         * modules/passfd-tests: New file.
17825         * tests/test-passfd.c: New file.
17826
17827 2011-03-13  Jim Meyering  <meyering@redhat.com>
17828
17829         Makefile: rely on GNU make; derive syntax-check rule names
17830         Rather than requiring that each sc_ rule be listed as a dependent
17831         of "check", use features of GNU make to derive the list.
17832         * Makefile (syntax-check-rules): Define.
17833         (check): Depend on the new variable, not the hard-coded list.
17834
17835 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17836             Bruno Haible  <bruno@clisp.org>
17837
17838         passfd module, part 3.
17839         * lib/passfd.h (recvfd): Add a flags argument.
17840         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17841         (recvfd): Add a flags argument.
17842         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
17843         exists.
17844         * modules/passfd (Depends-on): Add cloexec.
17845         Suggested by Eric Blake.
17846
17847 2011-03-13  Bruno Haible  <bruno@clisp.org>
17848
17849         passfd module, part 2, tweaks.
17850         * modules/passfd (Files): Reorder.
17851         (Depends-on): Remove errno.
17852         (Include): Remove <sys/socket.h>, <sys/un.h>.
17853         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
17854         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
17855         specification header. Include <sys/socket.h> always. Don't include
17856         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
17857         (sendfd): Clarify that it sets errno when it fails.
17858         (recvfd): Fix specification.
17859
17860 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17861
17862         passfd module, part 2.
17863         * modules/passfd: New file.
17864         * lib/passfd.h: New file.
17865         * lib/passfd.c: New file.
17866
17867 2011-03-12  Bruno Haible  <bruno@clisp.org>
17868
17869         wcswidth, mbswidth: Avoid integer overflow.
17870         * lib/wcswidth.c: Include <limits.h>.
17871         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
17872         * lib/mbswidth.c: Include <limits.h>.
17873         (mbsnwidth): Avoid 'int' overflow.
17874         Reported by Jim Meyering.
17875
17876 2011-03-12  Bruno Haible  <bruno@clisp.org>
17877
17878         futimens, utimensat: Avoid endless recursion on Solaris 10.
17879         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
17880         Solaris.
17881         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
17882         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
17883
17884 2011-03-11  Jim Meyering  <meyering@redhat.com>
17885
17886         maint.mk: relax a regexp to accommodate other formatting styles
17887         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
17888         between "ngettext" and the following "(".
17889
17890 2011-03-11  Pádraig Brady <P@draigBrady.com>
17891
17892         maint.mk: suppress a false positive warning
17893         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
17894         diagnostics are marked with ngettext.
17895
17896 2011-03-10  Eric Blake  <eblake@redhat.com>
17897
17898         wchar: add explicit dependencies, for Tru64
17899         * modules/mbmemcasecoll (Depends-on): Add wchar.
17900         * modules/mbtowc (Depends-on): Likewise.
17901         * modules/vasnprintf (Depends-on): Likewise.
17902         * modules/unistdio/u-printf-args (Depends-on): Likewise.
17903         * modules/wctomb (Depends-on): Likewise.
17904         Reported by Peter O'Gorman.
17905
17906 2011-03-08  Bruno Haible  <bruno@clisp.org>
17907
17908         passfd module, part 1, tweaks.
17909         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
17910         Improve indentation. Improve AC_MSG_CHECKING messages.
17911         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
17912         gl_SOCKET_FAMILIES.
17913
17914 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17915
17916         passfd module, part 1.
17917         * m4/afunix.m4: New file.
17918         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
17919         sockets.
17920
17921 2011-03-08  Bruno Haible  <bruno@clisp.org>
17922
17923         regex-quote: New API.
17924         * lib/regex-quote.h: Include <stdbool.h>.
17925         (struct regex_quote_spec): New type.
17926         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17927         New declarations.
17928         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17929         'const struct regex_quote_spec *' argument.
17930         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
17931         (pcre_special): New constant.
17932         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17933         New functions.
17934         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17935         'const struct regex_quote_spec *' argument.
17936         * modules/regex-quote (Depends-on): Add stdbool.
17937         * tests/test-regex-quote.c (check): Update for new API. Add test for
17938         anchored results.
17939         * NEWS: Mention the API change.
17940         Reported by Reuben Thomas and Eric Blake.
17941
17942 2011-03-06  Bruno Haible  <bruno@clisp.org>
17943
17944         regex-quote: Fix creation of POSIX extended regular expressions.
17945         * lib/regex-quote.c (ere_special): Add grouping and alternation
17946         operators.
17947
17948 2011-03-05  Bruno Haible  <bruno@clisp.org>
17949
17950         doc: Improve doc regarding autopoint vs. gnulib.
17951         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
17952         disable autopoint while running autoreconf.
17953         Suggested by Ralf Wildenhues.
17954
17955 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17956
17957         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
17958         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
17959
17960 2011-03-03  Bruce Korb  <bkorb@gnu.org>
17961
17962         parse-duration: remove xalloc.h dependency
17963         * lib/parse-duration.c (parse_period): handle NULL return from
17964         strdup instead of calling xstrdup().
17965         * modules/parse-duration: remove "xalloc" dependency
17966
17967 2011-03-03  Matthew Booth  <mbooth@redhat.com>
17968
17969         bootstrap: honor m4_base when running aclocal
17970         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
17971
17972 2011-03-02  Jim Meyering  <meyering@redhat.com>
17973
17974         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
17975         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
17976         on request from Matt Booth.
17977
17978 2011-03-01  Eric Blake  <eblake@redhat.com>
17979
17980         test-link: work on Hurd
17981         * tests/test-link.h (test_link): Hurd rejects linking directories
17982         with EISDIR instead of the POSIX-mandated EPERM.
17983
17984 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
17985
17986         stdio: simplify by moving files to printf-posix, sigpipe
17987         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
17988         since this symbol is needed only if printf is replaced.
17989         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
17990         Require gl_ASM_SYMBOL_PREFIX.
17991         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
17992         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
17993         (Depends-on): Add 'raise'.
17994         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
17995         * modules/stdio (Files): Remove lib/stdio-write.c,
17996         m4/asm-underscore.m4.
17997         (Depends-on): Remove 'raise'.
17998
17999         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18000         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18001         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18002         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18003
18004 2011-02-28  Bruno Haible  <bruno@clisp.org>
18005
18006         localcharset: Assume ANSI C behaviour of free().
18007         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18008         calling free().
18009         Suggested by Simon Josefsson <simon@josefsson.org>.
18010
18011 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18012             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18013             Bruno Haible  <bruno@clisp.org>  (tiny change)
18014
18015         On Cygwin, use /proc file system instead of win32 API.
18016         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18017         Win32 file names.
18018         (DllMain): Simplify by removing Cygwin specific code.
18019         (find_shared_library_fullname): Use Linux specific implementation also
18020         for Cygwin.
18021         (get_shared_library_fullname): Update accordingly.
18022         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18023         Win32 file names.
18024         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18025         Cygwin specific code.
18026
18027 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18028             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18029
18030         Fix OpenMP flag detection for various Fortran compilers.
18031         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18032         OpenMP-conditional compilation construct, to force compile
18033         failure with missing OpenMP flag.
18034         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18035
18036 2011-02-25  Eric Blake  <eblake@redhat.com>
18037
18038         strstr: expand test coverage
18039         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18040         compilation.
18041         * tests/test-memmem.c (main): Duplicate tests.
18042         * tests/test-strcasestr.c (main): Likewise.
18043         * tests/test-c-strcasestr.c (main): Likewise.
18044
18045 2011-02-25  Jim Meyering  <meyering@redhat.com>
18046
18047         maint.mk: detect missing-NL-at-EOF, too
18048         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18049         it also detects when a file lacks a newline at EOF.
18050         (require_exactly_one_NL_at_EOF_): Renamed from
18051         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18052         since people may well have .x-sc_... file names tied to the
18053         existing name.  Suggested by Eric Blake.
18054
18055 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18056
18057         dirname: move m4/dos.m4 functionality into lib/dosname.h
18058
18059         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18060         extracts symbols from it, puts them into config.h; but it's much
18061         easier to use the symbols directly.  filename.h already does this,
18062         but it disagrees with dos.m4 in some respects.  This patch
18063         introduces a different include file dosname.h that packages up
18064         dos.m4, and then later we can work on merging filename.h and
18065         dosname.h.  Applications that need only the easy-to-configure
18066         symbols should consider including dosname.h rather than dirname.h.
18067         * NEWS: Mention incompatible changes.
18068         * m4/dos.m4: Remove.
18069         * lib/dosname.h, modules/dosname: New files.
18070         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18071         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18072         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18073         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18074         Include dosname.h, not dirname.h.
18075         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18076         Include dosname.h, for definitions of symbols like ISSLASH
18077         that used to be in config.h.
18078         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18079         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18080         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18081         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18082         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18083         * modules/rmdir (Files): Likewise.
18084         * modules/stat (Files): Likewise.
18085         * modules/unlink (Files): Likewise.
18086         * modules/dirname-lgpl (Depends-on): Add dosname.
18087         * modules/lstat (Depends-on): Likewise.
18088         * modules/openat (Depends-on): Likewise.
18089         * modules/rmdir (Depends-on): Likewise.
18090         * modules/savewd (Depends-on): Likewise.
18091         * modules/stat (Depends-on): Likewise.
18092         * modules/unlink (Depends-on): Likewise.
18093         * modules/openat (Depends-on): Remove dirname-lgpl.
18094         * modules/savewd (Depends-on): Likewise.
18095         * tests/test-dirname.c: Do not use removed symbols like
18096         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18097         the remaining symbols, e.g., ISSLASH ('\\').
18098
18099 2011-02-25  Eric Blake  <eblake@redhat.com>
18100
18101         strstr: revert patches that introduced bug and pessimization
18102         * lib/str-two-way.h: Add another reference.
18103         (two_way_short_needle, two_way_long_needle): Revert changes from
18104         2011-02-24; they pessimize search speed.
18105         (critical_factorization): Partially revert changes from
18106         2010-06-22; they violate the requirement that the left half of the
18107         needle be smaller than the period of the needle.
18108
18109 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18110
18111         filenamecat: remove unnecessary dependency on dirname-lgpl
18112         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18113         is no direct dependency, just an indirect one via filenamecat-lgpl.
18114
18115         remove: remove unnecessary use of m4/dos.m4
18116         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18117         * modules/remove (FILES): Remove m4/dos.m4.
18118
18119         * lib/openat-proc.c: Don't include dirname.h; not needed.
18120
18121         backupfile: remove unnecessary use of m4/dos.m4
18122         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18123         of its symbols are used by the backupfile code.  backupfile.c does
18124         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18125         for the rare case of programs that want all their backup file
18126         names to live within 8+3 limits, and dos.m4 doesn't address that.
18127         * modules/backupfile (Files): Remove m4/dos.m4.
18128
18129 2011-02-24  Jim Meyering  <meyering@redhat.com>
18130
18131         strstr: fix a bug whereby strstr would mistakenly return NULL
18132         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18133         in period calculation.
18134         (two_way_long_needle): Likewise.
18135         The original problem was reported by Mike Stump in
18136         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18137         Ralf Wildenhues provided the short needle and haystack.
18138         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18139         Add a more involved test to trigger the bug in two_way_long_needle.
18140
18141 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18142
18143         gnulib-tool: remove use of bold display in help screen
18144         * gnulib-tool (func_usage): Do not use bold display anymore in the
18145         help screen.  That was just meant to be a temporary emphasis for a
18146         backward-incompatible change.
18147
18148 2011-02-23  Bruno Haible  <bruno@clisp.org>
18149
18150         Fix misindentation of preprocessor directives.
18151         * lib/argp-namefrob.h: Reindent preprocessor directives.
18152         * lib/getopt_int.h (struct _getopt_data): Likewise.
18153         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18154         * lib/vasnprintf.c (decode_long_double): Likewise.
18155         * tests/test-argmatch.c: Insert blank lines, for clarity.
18156         * tests/test-exclude.c: Likewise.
18157
18158 2011-02-22  Bruno Haible  <bruno@clisp.org>
18159
18160         ioctl: Fix for MacOS X in 64-bit mode.
18161         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18162         value.
18163         Suggested by Eric Blake.
18164         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18165
18166 2011-02-22  Jim Meyering  <meyering@redhat.com>
18167
18168         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18169         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18170         in lib/.
18171
18172 2011-02-22  Eric Blake  <eblake@redhat.com>
18173
18174         maint: avoid any CDPATH issue
18175         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18176
18177         maint: adjust cpp indentation for my modules, as well
18178         * Makefile (sc_cpp_indent_check): Add my name.
18179         * lib/fbufmode.c: Filter through cppi.
18180         * lib/fpurge.c: Likewise.
18181         * lib/freadable.c: Likewise.
18182         * lib/freading.c: Likewise.
18183         * lib/fwritable.c: Likewise.
18184         * lib/fwriting.c: Likewise.
18185         * lib/sigaction.c: Likewise.
18186
18187 2011-02-22  Jim Meyering  <meyering@redhat.com>
18188
18189         maint: adjust cpp indentation to reflect nesting depth
18190         I.e., in a block of code that begins with an unnested "#if",
18191         put one space between the "#" in column 1 and following token.
18192         For example,
18193         -#include <sys/vfs.h>
18194         +# include <sys/vfs.h>
18195         Do this only in .c files that are part of a module I maintain.
18196         * lib/linkat.c: Filter through cppi.
18197         * lib/nanosleep.c: Likewise.
18198         * lib/openat.c: Likewise.
18199         * lib/openat-die.c: Likewise.
18200         * lib/dup3.c: Likewise.
18201         * lib/fchownat.c: Likewise.
18202         * lib/flock.c: Likewise.
18203         * lib/fsync.c: Likewise.
18204         * lib/fts.c: Likewise.
18205         * lib/getpass.c: Likewise.
18206         * lib/gettimeofday.c: Likewise.
18207         * lib/userspec.c: Likewise.
18208         * Makefile (sc_cpp_indent_check): New rule, to check this.
18209
18210 2011-02-22  Bruno Haible  <bruno@clisp.org>
18211
18212         New module 'wctomb'.
18213         * lib/stdlib.in.h (wctomb): New declaration.
18214         * lib/wctomb.c: New file.
18215         * lib/wctomb-impl.h: New file.
18216         * m4/wctomb.m4: New file.
18217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18218         REPLACE_WCTOMB.
18219         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18220         REPLACE_WCTOMB.
18221         * modules/wctomb: New file.
18222         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18223         * doc/posix-functions/wctomb.texi: Mention the new module.
18224         * modules/wctob (Depends-on): Add wctomb.
18225
18226 2011-02-22  Bruno Haible  <bruno@clisp.org>
18227
18228         New module 'mbtowc'.
18229         * lib/stdlib.in.h (mbtowc): New declaration.
18230         * lib/mbtowc.c: New file.
18231         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18232         * m4/mbtowc.m4: New file.
18233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18234         REPLACE_MBTOWC.
18235         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18236         REPLACE_MBTOWC.
18237         * modules/mbtowc: New file.
18238         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18239         * doc/posix-functions/mbtowc.texi: Mention the new module.
18240         * modules/btowc (Depends-on): Add mbtowc.
18241
18242 2011-02-22  Bruno Haible  <bruno@clisp.org>
18243
18244         wcrtomb: Add more tests for native Windows platforms.
18245         * tests/test-wcrtomb-w32-1.sh: New file.
18246         * tests/test-wcrtomb-w32-2.sh: New file.
18247         * tests/test-wcrtomb-w32-3.sh: New file.
18248         * tests/test-wcrtomb-w32-4.sh: New file.
18249         * tests/test-wcrtomb-w32-5.sh: New file.
18250         * tests/test-wcrtomb-w32.c: New file.
18251         * modules/wcrtomb-tests (Files): Add them.
18252         (Makefile.am): Arrange to run these tests.
18253         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18254         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18255
18256 2011-02-20  Bruno Haible  <bruno@clisp.org>
18257
18258         wcrtomb: Enhance test.
18259         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18260
18261 2011-02-20  Bruno Haible  <bruno@clisp.org>
18262
18263         mbrtowc: Tiny optimization.
18264         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18265
18266 2011-02-20  Jim Meyering  <meyering@redhat.com>
18267
18268         test-exclude.c: remove unmatched #endif
18269         * tests/test-exclude.c: Remove stray #endif, left over from
18270         the change of a week ago.
18271
18272 2011-02-19  Jim Meyering  <meyering@redhat.com>
18273
18274         git-version-gen: skip "-dirty" check when appropriate
18275         * build-aux/git-version-gen: Don't run any git commands when the
18276         version string comes from .tarball-version.  Prior to this, we
18277         would run git update-index --refresh even from a just-unpacked
18278         tarball directory, and that could affect a .git/ directory in a
18279         parent of the build directory.  Reported by Mike Frysinger.
18280
18281 2011-02-19  Bruno Haible  <bruno@clisp.org>
18282
18283         unictype/property-byname: Reduce the size of the 'data' segment.
18284         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18285
18286 2011-02-19  Bruno Haible  <bruno@clisp.org>
18287
18288         unictype/scripts: Reduce the size of the 'data' segment.
18289         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18290         '%pic'.
18291         * lib/unictype/scripts_byname.gperf: Regenerated.
18292
18293 2011-02-19  Bruno Haible  <bruno@clisp.org>
18294
18295         stdint: Update documentation.
18296         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18297
18298 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18299
18300         stdint: omit redundant check for wchar.h
18301         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18302         always tests whether wchar.h exists, so remove the now-redundant test.
18303
18304 2011-02-18  Bruno Haible  <bruno@clisp.org>
18305
18306         stdint: Cut dependency to module 'wchar'.
18307         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18308         include the necessary prerequisites.
18309         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18310         * modules/stdint (Depends-on): Remove wchar.
18311         (Makefile.am): Substitute HAVE_WCHAR_H.
18312         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18313
18314 2011-02-18  Eric Blake  <eblake@redhat.com>
18315
18316         longlong: skip, rather than fail, on cross-compilation
18317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18318         when cross-compiling; regression from 2011-02-16.
18319
18320 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18321
18322         * NEWS: Mention 2011-02-08 change to stdlib.
18323
18324 2011-02-17  Bruno Haible  <bruno@clisp.org>
18325
18326         getloadavg: Add comments about platforms.
18327         * m4/getloadavg.m4: Add comment.
18328         * lib/getloadavg.c: Likewise.
18329
18330 2011-02-17  Bruno Haible  <bruno@clisp.org>
18331
18332         getloadavg: Fix link error on Solaris 2.6.
18333         * modules/getloadavg (Link): New section.
18334         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18335         linking test-getloadavg.
18336         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18337         getloadavg.
18338
18339 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18340
18341         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18342         It was 'int', but this doesn't match the IRIX 6.5 manual.
18343         Suggested by Bruno Haible in
18344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18345
18346 2011-02-17  Bruno Haible  <bruno@clisp.org>
18347
18348         havelib: Fix comments.
18349         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18350         change.
18351
18352 2011-02-17  Bruno Haible  <bruno@clisp.org>
18353
18354         havelib: Update config.rpath.
18355         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18356
18357 2011-02-17  Bruno Haible  <bruno@clisp.org>
18358
18359         getloadavg test: Add some plausibility checks.
18360         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18361         is improbable.
18362
18363 2011-02-16  Eric Blake  <eblake@redhat.com>
18364
18365         maintainer-makefile: make syntax-check a no-op from tarballs
18366         * top/maint.mk (no-vc-detected): New rule.
18367         (local-checks-available): Use it to avoid hanging if someone tries
18368         'make syntax-check' from a tarball.  Also append to any non-syntax
18369         checks already defined in cfg.mk.
18370
18371 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18372
18373         longlong: tune, particularly for common case of c99
18374
18375         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18376         or running anything if c99, or if unsigned long long int does not
18377         work.  In either case, we know the answer without further tests.
18378         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18379         it at most once, and use its results for both long long int and
18380         unsigned long long int.  This is more likely to be efficient in
18381         the common case where the program wants to check for both long
18382         long int and unsigned long long int.
18383         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18384         since the answer is already known.
18385
18386 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18387
18388         getloadavg: set errno
18389         * lib/getloadavg.c: Set errno when returning -1.  If no other
18390         error number looks appropriate, set it to ENOSYS if the getloadavg
18391         looks like it can't possibly ever work, ENOTSUP otherwise.
18392         Suggested by Bruno Haible in
18393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18394
18395         getloadavg: trim unused parts and speed up 'configure'
18396         * NEWS: Document this.
18397         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18398         always compiled if getloadavg is absent.
18399         Move test code to ...
18400         * tests/test-getloadavg.c: New file, containing previous
18401         contents of test from lib/getloadavg.c.  It also contains
18402         suggestions by Bruno Haible in
18403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18404         * modules/getloadavg-tests: New file.
18405         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18406         Do tests in the same order as they're needed for getloadavg.c.
18407         Omit setgid-related tests that generate symbols KMEM_GROUP,
18408         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18409         Do only the tests that are needed to see whether the system has
18410         getloadavg, moving the other tests into ...
18411         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18412         NLIST_NAME_UNION; nobody should be using it.  Do not define
18413         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18414         relevant, as the user of this module shouldn't care how getloadavg
18415         is implemented.
18416
18417         getloadavg: omit unused var
18418         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18419
18420 2011-02-15  Jim Meyering  <meyering@redhat.com>
18421
18422         doc: update users.txt
18423         * users.txt: Update iwhd's URL.
18424
18425 2011-02-13  Bruno Haible  <bruno@clisp.org>
18426
18427         Consistent macro naming for macros that use GCC __attribute__.
18428         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18429         _ATTRIBUTE_NONNULL_.
18430         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18431         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18432         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18433         ATTRIBUTE_DEPRECATED.
18434         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18435         ATTRIBUTE_NORETURN.
18436         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18437         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18438         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18439         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18440         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18441         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18442         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18443         ATTRIBUTE_SENTINEL.
18444         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18445         ATTRIBUTE_RETURN_CHECK.
18446         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18447         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18448         ATTRIBUTE_NORETURN.
18449         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18450         Reported by Paul Eggert.
18451
18452 2011-02-13  Bruno Haible  <bruno@clisp.org>
18453
18454         Don't interfere with a program's definition of __attribute__.
18455         * lib/argp.h (__attribute__): Remove definition.
18456         (_GL_ATTRIBUTE_FORMAT): New macro.
18457         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18458         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18459         (_GL_ATTRIBUTE_FORMAT): New macro.
18460         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18461         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18462         GCC 3 or newer.
18463         * lib/error.h (__attribute__): Remove definition.
18464         (_GL_ATTRIBUTE_FORMAT): New macro.
18465         (error, error_at_line): Use it.
18466         * lib/hash.h (__attribute__): Remove definition.
18467         (ATTRIBUTE_WUR): Update definition. Define always.
18468         * lib/openat.h (__attribute__): Remove definition.
18469         (ATTRIBUTE_NORETURN): Update definition. Define always.
18470         * lib/sigpipe-die.h (__attribute__): Remove definition.
18471         (ATTRIBUTE_NORETURN): Update definition. Define always.
18472         * lib/vasnprintf.h (__attribute__): Remove definition.
18473         (_GL_ATTRIBUTE_FORMAT): New macro.
18474         (asnprintf, vasnprintf): Use it.
18475         * lib/xalloc.h (__attribute__): Remove definition.
18476         (ATTRIBUTE_NORETURN): Update definition. Define always.
18477         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18478         * lib/xmemdup0.h (__attribute__): Remove definition.
18479         (ATTRIBUTE_NORETURN): Update definition. Define always.
18480         * lib/xprintf.h (__attribute__): Remove definition.
18481         (_GL_ATTRIBUTE_FORMAT): New macro.
18482         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18483         * lib/xstrtol.h (__attribute__): Remove definition.
18484         (ATTRIBUTE_NORETURN): Update definition. Define always.
18485         * lib/xvasprintf.h (__attribute__): Remove definition.
18486         (_GL_ATTRIBUTE_FORMAT): New macro.
18487         (xasprintf, xvasprintf): Use it.
18488         * tests/test-argmatch.c (__attribute__): Remove definition.
18489         (ATTRIBUTE_NORETURN): Update definition. Define always.
18490         * tests/test-exclude.c (__attribute__): Remove definition.
18491         (ATTRIBUTE_NORETURN): Update definition. Define always.
18492         Reported by Paul Eggert.
18493
18494 2011-02-13  Bruno Haible  <bruno@clisp.org>
18495
18496         mbrtowc: Add more tests for native Windows platforms.
18497         * tests/test-mbrtowc-w32-1.sh: New file.
18498         * tests/test-mbrtowc-w32-2.sh: New file.
18499         * tests/test-mbrtowc-w32-3.sh: New file.
18500         * tests/test-mbrtowc-w32-4.sh: New file.
18501         * tests/test-mbrtowc-w32-5.sh: New file.
18502         * tests/test-mbrtowc-w32.c: New file.
18503         * modules/mbrtowc-tests (Files): Add them.
18504         (Makefile.am): Arrange to run these tests.
18505         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18506         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18507
18508 2011-02-13  Bruno Haible  <bruno@clisp.org>
18509
18510         mbrtowc: Work around native Windows bug.
18511         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18512         guess when no suitable locale for testing was found.
18513         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18514
18515 2011-02-13  Bruno Haible  <bruno@clisp.org>
18516
18517         mbsinit: Work around mingw bug.
18518         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18519         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18520         Windows.
18521         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18522
18523 2011-02-13  Bruno Haible  <bruno@clisp.org>
18524
18525         mbsinit: Don't crash for a NULL argument.
18526         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18527         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18528
18529 2011-02-13  Bruno Haible  <bruno@clisp.org>
18530
18531         Don't interfere with a program's definition of __attribute__.
18532         * lib/stdio.in.h (__attribute__): Remove definition.
18533         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18534         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18535         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18536         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18537         * lib/string.in.h (__attribute__): Remove definition.
18538         Reported by Paul Eggert.
18539
18540 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18541
18542         stdlib: don't get in the way of non-GCC __attribute__
18543         See thread starting at
18544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18545         Revert previous stdlib change, installing the following instead:
18546         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18547         to get in the way of a non-GCC compiler that supports __attribute__.
18548         (_GL_ATTRIBUTE_RETURN): New macro.
18549         (_Exit): Use it instead of __attribute__.
18550
18551 2011-02-12  Bruno Haible  <bruno@clisp.org>
18552
18553         quotearg test: Avoid test failure on mingw.
18554         * tests/test-quotearg.sh: Convert the locale identifier from native
18555         Windows syntax to Unix syntax.
18556
18557 2011-02-12  Bruno Haible  <bruno@clisp.org>
18558
18559         setlocale: Prefer gnulib's override over libintl's override.
18560         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18561         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18562         GNULIB_defined_setlocale is set.
18563
18564 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18565
18566         stdlib: support non-GCC __attribute__
18567
18568         Fix a serious and tricky problem encountered when attempting to
18569         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18570         5.5, but it crashed due to memory corruption on Solaris 10 with
18571         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18572         bits that are otherwise zero.  This tagging is optional inside
18573         Emacs but is preferred and is used when __attribute__ ((__aligned
18574         (8))) works, as it does with both recent-enough GCC and with Sun C
18575         5.11.  However, Sun C 5.11 is not GCC and does not #define
18576         __GNUC__ and __GNUC_MINOR__.
18577
18578         When I added the getloadavg module to Emacs, it brought in
18579         stdlib.in.h, which contained this fragment:
18580
18581            #ifndef __attribute__
18582            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18583            #  define __attribute__(Spec)   /* empty */
18584            # endif
18585            #endif
18586
18587         When files that include <stdlib.h> were compiled with Sun C 5.11,
18588         the above code disabled __attribute__ ((__aligned (8))), which
18589         caused variables to not be properly aligned, which eventually led
18590         to the pointer corruption mentioned above.  (This was a bit hard
18591         to diagnose, unfortunately.)
18592
18593         Several "#define __attribute__(X) /* empty */" code snippets need
18594         to be eradicated from Gnulib to work with non-GCC compilers that
18595         support __attribute__.  The Autoconf way to do this is to test for
18596         each kind of attribute that we want support for, and selectively
18597         enable that in source code.
18598
18599         Fix this problem just for stdlib.h, by adding a test for the
18600         __noreturn__ attribute, and change stdlib.in.h to use that test
18601         when needed.  This technique can be easily generalized to the
18602         other *.in.h files and attributes, and a similar technique can be
18603         used for *.h and *.c files.  This patch is enough to solve the
18604         problem for Emacs + getloadavg, and I thought I'd publish it for
18605         feedback before undertaking further, similar fixes in other
18606         modules.
18607
18608         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18609         because it's not needed for stdlib.h.  It merely substitutes the
18610         value directly into stdlib.h.  We may well need to #define it, or
18611         similar symbols, for other modules, but it's nice to also have an
18612         option to not #define it for applications like Emacs that do not
18613         need it.
18614
18615         * lib/stdlib.in.h (__attribute__): Do not #define.
18616         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18617         be defined only if the _Exit module is also used.
18618         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18620         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18621         platforms.
18622         * modules/_Exit (Files): Add m4/attribute.m4.
18623         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18624         * m4/attribute.m4: New file.
18625
18626 2011-02-12  Bruno Haible  <bruno@clisp.org>
18627
18628         wcsrtombs: Work around bug on native Windows.
18629         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18630         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18631         instead of len.
18632         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18633
18634 2011-02-12  Bruno Haible  <bruno@clisp.org>
18635
18636         mbsrtowcs: Work around bug on native Windows.
18637         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18638         against mingw bug.
18639         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18640
18641 2011-02-12  Bruno Haible  <bruno@clisp.org>
18642
18643         Avoid setlocale bugs in tests.
18644         * modules/btowc (Dependencies): Add setlocale.
18645         * modules/c-strcase (Dependencies): Likewise.
18646         * modules/mbmemcasecmp (Dependencies): Likewise.
18647         * modules/mbmemcasecoll (Dependencies): Likewise.
18648         * modules/mbrtowc (Dependencies): Likewise.
18649         * modules/mbscasecmp (Dependencies): Likewise.
18650         * modules/mbscasestr (Dependencies): Likewise.
18651         * modules/mbschr (Dependencies): Likewise.
18652         * modules/mbscspn (Dependencies): Likewise.
18653         * modules/mbsinit (Dependencies): Likewise.
18654         * modules/mbsncasecmp (Dependencies): Likewise.
18655         * modules/mbsnrtowcs (Dependencies): Likewise.
18656         * modules/mbspbrk (Dependencies): Likewise.
18657         * modules/mbspcasecmp (Dependencies): Likewise.
18658         * modules/mbsrchr (Dependencies): Likewise.
18659         * modules/mbsrtowcs (Dependencies): Likewise.
18660         * modules/mbsspn (Dependencies): Likewise.
18661         * modules/mbsstr (Dependencies): Likewise.
18662         * modules/nl_langinfo (Dependencies): Likewise.
18663         * modules/quotearg (Dependencies): Likewise.
18664         * modules/unicase/locale-language (Dependencies): Likewise.
18665         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18666         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18667         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18668         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18669         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18670         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18671         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18672         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18673         * modules/vasnprintf-posix (Dependencies): Likewise.
18674         * modules/wcrtomb (Dependencies): Likewise.
18675         * modules/wcsnrtombs (Dependencies): Likewise.
18676         * modules/wcsrtombs (Dependencies): Likewise.
18677
18678 2011-02-12  Bruno Haible  <bruno@clisp.org>
18679
18680         setlocale: Workaround native Windows bug.
18681         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18682         succeeds but sets LC_CTYPE to "C", report a failure.
18683         * tests/test-setlocale2.sh: New file.
18684         * tests/test-setlocale2.c: New file.
18685         * modules/setlocale-tests (Files): Add the new files.
18686         (Makefile.am): Enable test-setlocale2.sh test.
18687         * doc/posix-functions/setlocale.texi: Mention workaround.
18688
18689 2011-02-11  Bruno Haible  <bruno@clisp.org>
18690
18691         Tests for module 'setlocale'.
18692         * modules/setlocale-tests: New file.
18693         * tests/test-setlocale1.sh: New file.
18694         * tests/test-setlocale1.c: New file.
18695
18696         New module 'setlocale'.
18697         * lib/locale.in.h (setlocale): New declaration.
18698         * lib/setlocale.c: New file, based on
18699         gettext/gettext-runtime/intl/setlocale.c.
18700         * m4/setlocale.m4: New file.
18701         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18702         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18703         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18704         REPLACE_SETLOCALE.
18705         * modules/setlocale: New file.
18706         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18707         * doc/posix-functions/setlocale.texi: Mention the new module.
18708
18709 2011-02-11  Bruno Haible  <bruno@clisp.org>
18710
18711         Prepare for locale dependent tests on mingw.
18712         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18713         because it has the wrong locale encoding.
18714         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18715         French_France.1252 instead of "fr".
18716         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18717         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18718         because it has the wrong locale encoding.
18719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18720         native Windows, try Turkish_Turkey.65001.
18721         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18722         Chinese_China.54936.
18723
18724         Prepare for locale dependent tests on mingw.
18725         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18726         differently.
18727         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18728         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18729         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18730         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18731
18732 2011-02-11  Eric Blake  <eblake@redhat.com>
18733
18734         strptime: avoid compiler warnings
18735         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18736         compiler warnings about dead code.
18737         Reported by Daniel P. Berrange.
18738
18739 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18740
18741         doc: update users.txt
18742         * users.txt: Add rcs.
18743
18744 2011-02-10  John W. Eaton  <jwe@gnu.org>
18745
18746         doc: update users.txt
18747         * users.txt: Add octave.
18748
18749 2011-02-10  Jim Meyering  <meyering@redhat.com>
18750
18751         doc: update users.txt
18752         * users.txt: Add iwhd.
18753
18754 2011-02-09  Bruno Haible  <bruno@clisp.org>
18755
18756         gnulib-tool: Make copyright notice adjustment more robust.
18757         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18758         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18759         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18760         License".
18761         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18762
18763 2011-02-06  Bruno Haible  <bruno@clisp.org>
18764
18765         New module 'towctrans'.
18766         * modules/towctrans: New file.
18767         * lib/wctype.in.h (towctrans): New declaration.
18768         * lib/towctrans.c: New file.
18769         * lib/towctrans-impl.h: New file.
18770         * m4/towctrans.m4: New file.
18771         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18772         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18773         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18774         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18775         * doc/posix-functions/towctrans.texi: Mention the new module.
18776
18777 2011-02-06  Bruno Haible  <bruno@clisp.org>
18778
18779         New module 'wctrans'.
18780         * modules/wctrans: New file.
18781         * lib/wctype.in.h (wctrans): New declaration.
18782         * lib/wctrans.c: New file.
18783         * lib/wctrans-impl.h: New file.
18784         * m4/wctrans.m4: New file.
18785         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18786         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18787         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18788         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18789         * doc/posix-functions/wctrans.texi: Mention the new module.
18790
18791 2011-02-06  Bruno Haible  <bruno@clisp.org>
18792
18793         New module 'iswctype'.
18794         * modules/iswctype: New file.
18795         * lib/wctype.in.h (iswctype): New declaration.
18796         * lib/iswctype.c: New file.
18797         * lib/iswctype-impl.h: New file.
18798         * m4/iswctype.m4: New file.
18799         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18800         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18801         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18802         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18803         * doc/posix-functions/iswctype.texi: Mention the new module and the
18804         HP-UX 11.00 problem.
18805
18806 2011-02-06  Bruno Haible  <bruno@clisp.org>
18807
18808         New module 'wctype'.
18809         * modules/wctype: Change to represent the wctype() substitute.
18810         * lib/wctype.in.h (wctype): New declaration.
18811         * lib/wctype.c: New file.
18812         * lib/wctype-impl.h: New file.
18813         * m4/wctype.m4: New file.
18814         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18815         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18816         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18817         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18818         * doc/posix-functions/wctype.texi: Mention the new module and the
18819         HP-UX 11.00 problem.
18820
18821 2011-02-06  Bruno Haible  <bruno@clisp.org>
18822
18823         wctype-h: Ensure wctype_t and wctrans_t are defined.
18824         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18825         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18826         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18827         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18828         HAVE_WCTRANS_T.
18829         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18830
18831 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         flock: fix license typo
18834
18835         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18836         omitted.
18837
18838 2011-02-08  Bruno Haible  <bruno@clisp.org>
18839
18840         Split large sed scripts, for HP-UX sed.
18841         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
18842         to avoid HP-UX limit of 99 commands, in the near future.
18843         * modules/stdlib (Makefile.am): Likewise.
18844         * modules/unistd (Makefile.am): Likewise.
18845         * modules/wchar (Makefile.am): Likewise.
18846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18847         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
18848         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
18849
18850 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18851             Bruno Haible  <bruno@clisp.org>
18852
18853         stdlib: improve random_r modularization
18854         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
18855         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
18856         you also need the random_r module to get this material right.
18857         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
18858         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
18859         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
18860
18861 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18862
18863         stdlib: don't depend on stdint
18864         * lib/stdlib.in.h: Don't include <stdint.h> merely because
18865         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
18866         be independent of whether stdint.h is needed.
18867         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
18868         here, instead of ...
18869         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
18870         struct random_data should be using the random_r module, not just
18871         the stdlib module (which wouldn't make sense: what package needs
18872         just struct random_data without also needing random_r?).
18873         * modules/stdlib (Depends-on): Remove stdint.
18874
18875         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
18876         See the thread rooted at
18877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
18878         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
18879         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
18880         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
18881         __VMS)); previously it was always included (via fcntl--.h).
18882         (getloadavg): Do not use c_strtod.  Instead, approximate it by
18883         hand; this is good enough for load averages.  Also, do not use
18884         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
18885         flags directly if available and don't bother otherwise.  (Packages
18886         that need the extra reliability should use the modules that define
18887         these flags on older platforms that lack them.)
18888         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
18889         fcntl-safer.
18890
18891 2011-02-08  Jim Meyering  <meyering@redhat.com>
18892
18893         di-set.h, ino-map.h: add multiple-inclusion guard
18894         Technically, the guard is required only for ino-map.h, due to its
18895         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
18896         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
18897         * lib/ino-map.h: Likewise.
18898
18899 2011-02-06  Bruno Haible  <bruno@clisp.org>
18900
18901         iswblank: Ensure declaration on glibc systems.
18902         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
18903         * modules/iswblank (Dependencies): Add 'extensions'.
18904         * doc/posix-functions/iswblank.texi: Document the glibc problem.
18905
18906 2011-02-06  Bruno Haible  <bruno@clisp.org>
18907
18908         New module 'iswblank'.
18909         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
18910         * modules/iswblank: New file.
18911         * modules/wctype-h (Files): Remove lib/iswblank.c.
18912         (Makefile.am): Substitute GNULIB_ISWBLANK.
18913         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
18914         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
18915         (gl_WCTYPE_H_DEFAULTS): New macro.
18916         (gl_WCTYPE_H): Require it. Remove iswblank related code.
18917         * modules/iswblank-tests: New file.
18918         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
18919         * tests/test-wctype-h.c (main): Remove iswblank tests.
18920         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
18921         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
18922         of 'wctype-h'.
18923         * NEWS: Mention the change.
18924         * modules/mbchar (Depends-on): Add iswblank.
18925
18926 2011-02-08  Bruno Haible  <bruno@clisp.org>
18927
18928         di-set tests: Refactor.
18929         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
18930         unnecessary includes.
18931         (ASSERT): Remove macro.
18932         (main): Make C90 compliant by avoiding variable declaration after
18933         statement.
18934         * modules/di-set-tests (Files): Add tests/macros.h.
18935
18936 2011-02-08  Bruno Haible  <bruno@clisp.org>
18937
18938         ino-map tests: Refactor.
18939         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
18940         unnecessary includes.
18941         (ASSERT): Remove macro.
18942         (main): Make C90 compliant by avoiding variable declaration after
18943         statement.
18944         * modules/ino-map-tests (Files): Add tests/macros.h.
18945
18946 2011-02-08  Jim Meyering  <meyering@redhat.com>
18947
18948         di-set: add "const" to a cast
18949         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
18950         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
18951
18952 2011-02-06  Bruno Haible  <bruno@clisp.org>
18953
18954         Rename module 'wctype' to 'wctype-h'.
18955         * modules/wctype-h: Renamed from modules/wctype.
18956         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
18957         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
18958         (Files, Depends-on, Makefile.am): Update.
18959         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
18960         (Files, Makefile.am): Update.
18961         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
18962         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
18963         * doc/posix-headers/wctype.texi: Update.
18964         * doc/posix-functions/iswalnum.texi: Update.
18965         * doc/posix-functions/iswalpha.texi: Update.
18966         * doc/posix-functions/iswblank.texi: Update.
18967         * doc/posix-functions/iswcntrl.texi: Update.
18968         * doc/posix-functions/iswdigit.texi: Update.
18969         * doc/posix-functions/iswgraph.texi: Update.
18970         * doc/posix-functions/iswlower.texi: Update.
18971         * doc/posix-functions/iswprint.texi: Update.
18972         * doc/posix-functions/iswpunct.texi: Update.
18973         * doc/posix-functions/iswspace.texi: Update.
18974         * doc/posix-functions/iswupper.texi: Update.
18975         * doc/posix-functions/iswxdigit.texi: Update.
18976         * doc/posix-functions/towlower.texi: Update.
18977         * doc/posix-functions/towupper.texi: Update.
18978         * NEWS: Mention the change.
18979         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
18980         * modules/mbchar (Dependencies): Likewise.
18981         * modules/mbswidth (Dependencies): Likewise.
18982         * modules/quotearg (Dependencies): Likewise.
18983         * modules/regex (Dependencies): Likewise.
18984         * modules/wcscasecmp (Dependencies): Likewise.
18985         * modules/wcsncasecmp (Dependencies): Likewise.
18986         * modules/wcwidth (Dependencies): Likewise.
18987
18988 2011-02-06  Bruno Haible  <bruno@clisp.org>
18989
18990         New module 'wcswidth'.
18991         * modules/wcswidth: New file.
18992         * lib/wchar.in.h (wcswidth): New declaration.
18993         * lib/wcswidth.c: New file.
18994         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
18995         * m4/wcswidth.m4: New file.
18996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
18997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
18998         REPLACE_WCSWIDTH.
18999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19000         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19001         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19002         * doc/posix-functions/wcswidth.texi: Mention the new module.
19003
19004 2011-02-06  Bruno Haible  <bruno@clisp.org>
19005
19006         New module 'wcstok'.
19007         * modules/wcstok: New file.
19008         * lib/wchar.in.h (wcstok): New declaration.
19009         * lib/wcstok.c: New file.
19010         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19011         * m4/wcstok.m4: New file.
19012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19015         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19016         * doc/posix-functions/wcstok.texi: Mention the new module.
19017
19018 2011-02-06  Bruno Haible  <bruno@clisp.org>
19019
19020         New module 'wcsstr'.
19021         * modules/wcsstr: New file.
19022         * lib/wchar.in.h (wcsstr): New declaration.
19023         * lib/wcsstr.c: New file.
19024         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19025         * m4/wcsstr.m4: New file.
19026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19029         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19030         * doc/posix-functions/wcsstr.texi: Mention the new module.
19031
19032 2011-02-06  Bruno Haible  <bruno@clisp.org>
19033
19034         New module 'wcspbrk'.
19035         * modules/wcspbrk: New file.
19036         * lib/wchar.in.h (wcspbrk): New declaration.
19037         * lib/wcspbrk.c: New file.
19038         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19039         * m4/wcspbrk.m4: New file.
19040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19043         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19044         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19045
19046 2011-02-06  Bruno Haible  <bruno@clisp.org>
19047
19048         New module 'wcsspn'.
19049         * modules/wcsspn: New file.
19050         * lib/wchar.in.h (wcsspn): New declaration.
19051         * lib/wcsspn.c: New file.
19052         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19053         * m4/wcsspn.m4: New file.
19054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19057         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19058         * doc/posix-functions/wcsspn.texi: Mention the new module.
19059
19060 2011-02-06  Bruno Haible  <bruno@clisp.org>
19061
19062         New module 'wcscspn'.
19063         * modules/wcscspn: New file.
19064         * lib/wchar.in.h (wcscspn): New declaration.
19065         * lib/wcscspn.c: New file.
19066         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19067         * m4/wcscspn.m4: New file.
19068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19071         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19072         * doc/posix-functions/wcscspn.texi: Mention the new module.
19073
19074 2011-02-06  Bruno Haible  <bruno@clisp.org>
19075
19076         New module 'wcsrchr'.
19077         * modules/wcsrchr: New file.
19078         * lib/wchar.in.h (wcsrchr): New declaration.
19079         * lib/wcsrchr.c: New file.
19080         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19081         * m4/wcsrchr.m4: New file.
19082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19085         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19086         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19087
19088 2011-02-06  Bruno Haible  <bruno@clisp.org>
19089
19090         New module 'wcschr'.
19091         * modules/wcschr: New file.
19092         * lib/wchar.in.h (wcschr): New declaration.
19093         * lib/wcschr.c: New file.
19094         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19095         * m4/wcschr.m4: New file.
19096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19099         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19100         * doc/posix-functions/wcschr.texi: Mention the new module.
19101
19102 2011-02-06  Bruno Haible  <bruno@clisp.org>
19103
19104         New module 'wcsdup'.
19105         * modules/wcsdup: New file.
19106         * lib/wchar.in.h (wcsdup): New declaration.
19107         * lib/wcsdup.c: New file.
19108         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19109         * m4/wcsdup.m4: New file.
19110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19113         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19114         * doc/posix-functions/wcsdup.texi: Mention the new module.
19115
19116 2011-02-06  Bruno Haible  <bruno@clisp.org>
19117
19118         New module 'wcsxfrm'.
19119         * modules/wcsxfrm: New file.
19120         * lib/wchar.in.h (wcsxfrm): New declaration.
19121         * lib/wcsxfrm.c: New file.
19122         * lib/wcsxfrm-impl.h: New file.
19123         * m4/wcsxfrm.m4: New file.
19124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19127         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19128         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19129
19130 2011-02-06  Bruno Haible  <bruno@clisp.org>
19131
19132         New module 'wcscoll'.
19133         * modules/wcscoll: New file.
19134         * lib/wchar.in.h (wcscoll): New declaration.
19135         * lib/wcscoll.c: New file.
19136         * lib/wcscoll-impl.h: New file.
19137         * m4/wcscoll.m4: New file.
19138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19141         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19142         * doc/posix-functions/wcscoll.texi: Mention the new module.
19143
19144 2011-02-06  Bruno Haible  <bruno@clisp.org>
19145
19146         New module 'wcsncasecmp'.
19147         * modules/wcsncasecmp: New file.
19148         * lib/wchar.in.h (wcsncasecmp): New declaration.
19149         * lib/wcsncasecmp.c: New file.
19150         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19151         * m4/wcsncasecmp.m4: New file.
19152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19155         HAVE_WCSNCASECMP.
19156         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19157         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19158
19159 2011-02-06  Bruno Haible  <bruno@clisp.org>
19160
19161         New module 'wcscasecmp'.
19162         * modules/wcscasecmp: New file.
19163         * lib/wchar.in.h (wcscasecmp): New declaration.
19164         * lib/wcscasecmp.c: New file.
19165         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19166         * m4/wcscasecmp.m4: New file.
19167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19170         HAVE_WCSCASECMP.
19171         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19172         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19173
19174 2011-02-05  Bruno Haible  <bruno@clisp.org>
19175
19176         New module 'wcsncmp'.
19177         * modules/wcsncmp: New file.
19178         * lib/wchar.in.h (wcsncmp): New declaration.
19179         * lib/wcsncmp.c: New file.
19180         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19181         * m4/wcsncmp.m4: New file.
19182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19185         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19186         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19187
19188 2011-02-05  Bruno Haible  <bruno@clisp.org>
19189
19190         New module 'wcscmp'.
19191         * modules/wcscmp: New file.
19192         * lib/wchar.in.h (wcscmp): New declaration.
19193         * lib/wcscmp.c: New file.
19194         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19195         * m4/wcscmp.m4: New file.
19196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19199         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19200         * doc/posix-functions/wcscmp.texi: Mention the new module.
19201
19202 2011-02-05  Bruno Haible  <bruno@clisp.org>
19203
19204         New module 'wcsncat'.
19205         * modules/wcsncat: New file.
19206         * lib/wchar.in.h (wcsncat): New declaration.
19207         * lib/wcsncat.c: New file.
19208         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19209         * m4/wcsncat.m4: New file.
19210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19213         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19214         * doc/posix-functions/wcsncat.texi: Mention the new module.
19215
19216 2011-02-05  Bruno Haible  <bruno@clisp.org>
19217
19218         New module 'wcscat'.
19219         * modules/wcscat: New file.
19220         * lib/wchar.in.h (wcscat): New declaration.
19221         * lib/wcscat.c: New file.
19222         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19223         * m4/wcscat.m4: New file.
19224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19227         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19228         * doc/posix-functions/wcscat.texi: Mention the new module.
19229
19230 2011-02-05  Bruno Haible  <bruno@clisp.org>
19231
19232         New module 'wcpncpy'.
19233         * modules/wcpncpy: New file.
19234         * lib/wchar.in.h (wcpncpy): New declaration.
19235         * lib/wcpncpy.c: New file.
19236         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19237         * m4/wcpncpy.m4: New file.
19238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19240         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19241         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19242         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19243
19244 2011-02-05  Bruno Haible  <bruno@clisp.org>
19245
19246         New module 'wcsncpy'.
19247         * modules/wcsncpy: New file.
19248         * lib/wchar.in.h (wcsncpy): New declaration.
19249         * lib/wcsncpy.c: New file.
19250         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19251         * m4/wcsncpy.m4: New file.
19252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19255         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19256         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19257
19258 2011-02-05  Bruno Haible  <bruno@clisp.org>
19259
19260         New module 'wcpcpy'.
19261         * modules/wcpcpy: New file.
19262         * lib/wchar.in.h (wcpcpy): New declaration.
19263         * lib/wcpcpy.c: New file.
19264         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19265         * m4/wcpcpy.m4: New file.
19266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19268         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19269         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19270         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19271
19272 2011-02-05  Bruno Haible  <bruno@clisp.org>
19273
19274         New module 'wcscpy'.
19275         * modules/wcscpy: New file.
19276         * lib/wchar.in.h (wcscpy): New declaration.
19277         * lib/wcscpy.c: New file.
19278         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19279         * m4/wcscpy.m4: New file.
19280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19283         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19284         * doc/posix-functions/wcscpy.texi: Mention the new module.
19285
19286 2011-02-05  Bruno Haible  <bruno@clisp.org>
19287
19288         New module 'wcsnlen'.
19289         * modules/wcsnlen: New file.
19290         * lib/wchar.in.h (wcsnlen): New declaration.
19291         * lib/wcsnlen.c: New file.
19292         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19293         * m4/wcsnlen.m4: New file.
19294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19297         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19298         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19299
19300 2011-02-05  Bruno Haible  <bruno@clisp.org>
19301
19302         New module 'wcslen'.
19303         * modules/wcslen: New file.
19304         * lib/wchar.in.h (wcslen): New declaration.
19305         * lib/wcslen.c: New file.
19306         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19307         * m4/wcslen.m4: New file.
19308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19311         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19312         * doc/posix-functions/wcslen.texi: Mention the new module.
19313
19314 2011-02-05  Bruno Haible  <bruno@clisp.org>
19315
19316         New module 'wmemset'.
19317         * modules/wmemset: New file.
19318         * lib/wchar.in.h (wmemset): New declaration.
19319         * lib/wmemset.c: New file.
19320         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19321         * m4/wmemset.m4: New file.
19322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19324         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19325         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19326         * doc/posix-functions/wmemset.texi: Mention the new module.
19327
19328 2011-02-05  Bruno Haible  <bruno@clisp.org>
19329
19330         New module 'wmemmove'.
19331         * modules/wmemmove: New file.
19332         * lib/wchar.in.h (wmemmove): New declaration.
19333         * lib/wmemmove.c: New file.
19334         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19335         * m4/wmemmove.m4: New file.
19336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19338         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19339         HAVE_WMEMMOVE.
19340         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19341         * doc/posix-functions/wmemmove.texi: Mention the new module.
19342
19343 2011-02-05  Bruno Haible  <bruno@clisp.org>
19344
19345         New module 'wmemcpy'.
19346         * modules/wmemcpy: New file.
19347         * lib/wchar.in.h (wmemcpy): New declaration.
19348         * lib/wmemcpy.c: New file.
19349         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19350         * m4/wmemcpy.m4: New file.
19351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19353         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19354         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19355         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19356
19357 2011-02-05  Bruno Haible  <bruno@clisp.org>
19358
19359         New module 'wmemcmp'.
19360         * modules/wmemcmp: New file.
19361         * lib/wchar.in.h (wmemcmp): New declaration.
19362         * lib/wmemcmp.c: New file.
19363         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19364         * m4/wmemcmp.m4: New file.
19365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19367         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19368         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19369         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19370
19371 2011-02-07  Jim Meyering  <meyering@redhat.com>
19372
19373         di-set, ino-map: new modules, from coreutils
19374         * lib/di-set.c: New file.
19375         * lib/di-set.h: Likewise.
19376         * lib/ino-map.c: Likewise.
19377         * lib/ino-map.h: Likewise.
19378         * modules/di-set: Likewise.
19379         * modules/di-set-tests: Likewise.
19380         * modules/ino-map: Likewise.
19381         * modules/ino-map-tests: Likewise.
19382         * tests/test-di-set.c: Likewise.
19383         * tests/test-ino-map.c: Likewise.
19384
19385 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19386
19387         getloadavg: merge minor changes from Emacs
19388
19389         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19390         (getloadavg): Use memset, not bzero.
19391
19392         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19393         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19394         clash (bug#86).
19395
19396 2010-11-14  Bruno Haible  <bruno@clisp.org>
19397
19398         Allow multiple gnulib generated replacements to coexist.
19399         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19400         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19401         * lib/langinfo.in.h (nl_item): Likewise.
19402         * lib/math.in.h (_NaN, NAN): Likewise.
19403         * lib/netdb.in.h (struct addrinfo): Likewise.
19404         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19405         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19406         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19407         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19408         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19409         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19410         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19411         pthread_mutexattr_init, pthread_mutexattr_settype,
19412         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19413         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19414         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19415         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19416         * lib/sched.in.h (struct sched_param): Likewise.
19417         * lib/se-selinux.in.h (security_class_t, security_context_t,
19418         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19419         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19420         lsetfilecon, fsetfilecon, security_check_context,
19421         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19422         Likewise.
19423         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19424         Likewise.
19425         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19426         _gl_function_taking_int_returning_void_t, union sigval,
19427         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19428         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19429         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19430         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19431         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19432         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19433         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19434         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19435         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19436         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19437         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19438         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19439         socklen_t, rpl_fd_isset): Likewise.
19440         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19441         * lib/sys_time.in.h (struct timeval): Likewise.
19442         * lib/sys_times.in.h (struct tms): Likewise.
19443         * lib/sys_utsname.in.h (struct utsname):
19444         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19445         * lib/unistd.in.h (getpagesize): Likewise.
19446         * lib/wchar.in.h (mbstate_t): Likewise.
19447         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19448         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19449         towlower, towupper): Likewise.
19450         Reported by Sam Steingold <sds@gnu.org>.
19451
19452 2011-02-05  Eric Blake  <eblake@redhat.com>
19453
19454         unsetenv: work around Haiku issues
19455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19456         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19457
19458 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19459
19460         libposix: avoid calling error() within libposix
19461         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19462         is defined.
19463
19464 2011-02-05  Eric Blake  <eblake@redhat.com>
19465
19466         strerror_r-posix: port to cygwin
19467         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19468         implementation.
19469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19470         * tests/test-strerror_r.c (main): Fix test.
19471         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19472         issue.
19473
19474 2011-02-05  Bruno Haible  <bruno@clisp.org>
19475
19476         New module 'wmemchr'.
19477         * modules/wmemchr: New file.
19478         * lib/wchar.in.h (wmemchr): New declaration.
19479         * lib/wmemchr.c: New file.
19480         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19481         * m4/wmemchr.m4: New file.
19482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19484         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19485         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19486         * doc/posix-functions/wmemchr.texi: Mention the new module.
19487
19488 2011-02-04  Eric Blake  <eblake@redhat.com>
19489
19490         fdopendir: detect FreeBSD bug
19491         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19492         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19493
19494 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19495
19496         stdbool: do not define HAVE_STDBOOL_H
19497         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19498         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19499         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19500         imported from the latest Autoconf git.  It was motivated by Emacs,
19501         which uses gnulib but does not need HAVE_STDBOOL_H.
19502
19503 2011-02-04  Bruno Haible  <bruno@clisp.org>
19504
19505         wcsnrtombs: Prepare for new module wwcsnrtombs.
19506         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19507         * lib/wcsnrtombs.c: Include it.
19508         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19509
19510         wcsrtombs: Prepare for new module wwcsrtombs.
19511         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19512         * lib/wcsrtombs.c: Include it.
19513         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19514
19515         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19516         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19517         * lib/mbsnrtowcs.c: Include it.
19518         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19519
19520         mbsrtowcs: Prepare for new module mbsrtowwcs.
19521         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19522         * lib/mbsrtowcs.c: Include it.
19523         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19524
19525 2011-02-04  Bruno Haible  <bruno@clisp.org>
19526
19527         vasnprintf: Reduce use of malloc for small format strings.
19528         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19529         (arguments): Add room for the first 7 arguments.
19530         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19531         (char_directives, u8_directives, u16_directives, u32_directives): Add
19532         room for the first 7 directives.
19533         * lib/printf-parse.c: Include <string.h>.
19534         (PRINTF_PARSE): Change memory handling code so that it uses the first
19535         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19536         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19537         Reported by Pádraig Brady <P@draigbrady.com>.
19538
19539 2011-01-31  Eric Blake  <eblake@redhat.com>
19540
19541         dup2: work around Haiku bug
19542         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19543         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19544         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19545         * tests/test-dup2.c (main): Enhance test.
19546
19547 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19548
19549         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19550         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19551         declared by eglibc 2.11.2.
19552         * lib/stdio.in.h: Likewise.
19553
19554 2011-01-31  Eric Blake  <eblake@redhat.com>
19555
19556         ignore-value: add missing test dependency
19557         * tests/test-ignore-value.c: Revert previous change; stdio.h
19558         provides off_t.
19559         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19560
19561 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19562
19563         mktime: clarify long_int width checking
19564         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19565         the top level, to make it clearer that the assumption about
19566         long_int width is being checked.  See
19567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19568
19569 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19570
19571         ignore-value: Fix self-test.
19572         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19573
19574 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19575
19576         TYPE_MAXIMUM: avoid theoretically undefined behavior
19577         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19578         negative number, which the C Standard says has undefined behavior.
19579         In practice this is not a problem, but might as well do it by the book.
19580         Reported by Rich Felker and Eric Blake; see
19581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19582         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19583         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19585         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19586         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19587         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19588
19589         mktime: #undef mktime before #defining it
19590         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19591
19592         mktime: systematically normalize tm_isdst comparisons
19593         * lib/mktime.c (isdst_differ): New function.
19594         (__mktime_internal): Use it systematically for all isdst comparisons.
19595         This completes the fix for libc BZ #6723, and removes the need for
19596         normalizing tm_isdst.  See
19597         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19598         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19599
19600         mktime: fix some integer overflow issues and sidestep the rest
19601
19602         This was prompted by a bug report by Benjamin Lindner for MinGW
19603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19604         His bug is due to signed integer overflow (0 - INT_MIN), and I
19605         I scanned through mktime.c looking for other integer overflow
19606         problems, fixing all the bugs I found.
19607
19608         Although the C Standard says the resulting code is still not safe
19609         in the presence of integer overflow, in practice it should be good
19610         enough for all real-world two's-complement implementations, except
19611         for debugging environments that deliberately trap on integer
19612         overflow (e.g., gcc -ftrapv).
19613
19614         * lib/mktime.c (WRAPV): New macro.
19615         (SHR): Also check that long_int and time_t shift right in the
19616         usual way, before using the fast-but-unportable method.
19617         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19618         used.  The code already assumed two's complement, so there's
19619         no need to test for alternatives.  All uses removed.
19620         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19621         the C standard.  Problem reported by Rich Felker in
19622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19623         (twos_complement_arithmetic): Also check long_int and time_t.
19624         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19625         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19626         (__mktime_internal): Avoid integer overflow with unary subtraction
19627         in two instances where -1 - X is an adequate replacement for -X,
19628         since the calculations are approximate.
19629
19630 2011-01-29  Eric Blake  <eblake@redhat.com>
19631
19632         mktime: avoid infinite loop
19633         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19634         type; behavior is still undefined but portable to all known targets.
19635         Reported by Rich Felker.
19636
19637 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19638
19639         rename, unlink, same-inode: Relicense.
19640         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19641         * modules/unlink (License): Likewise.
19642         * modules/same-inode (License): Likewise.
19643
19644 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19645
19646         mktime: avoid problems on NetBSD 5 / i386
19647         * lib/mktime.c (long_int): New type.  This works around a problem
19648         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19649         but time_t is 64 bits, and where I expect the existing code is
19650         wrong in some cases.
19651         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19652         (ydhms_diff): Bring back the compile-time check for wide-enough
19653         year and yday.
19654
19655         mktime: fix misspelling in comment
19656         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19657         This merges all recent glibc changes of importance.
19658
19659 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19660
19661         move-if-change: cope with concurrent mv of identical file.
19662         * build-aux/move-if-change (CMPPROG): Accept environment
19663         variable as an override for `cmp'.
19664         (usage): Document CMPPROG.
19665         Adjust comparison to drop stdout.  Cope with failure of mv if
19666         the target file exists and is identical to the source, for
19667         parallel builds.
19668         Report from H.J. Lu against binutils in PR binutils/12283.
19669
19670 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19671
19672         * users.txt: Mention sharutils.
19673
19674 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19675
19676         * users.txt: Mention OATH Toolkit.
19677
19678 2011-01-27  Bruno Haible  <bruno@clisp.org>
19679
19680         Prepare for supporting FreeBSD 10.
19681         * build-aux/config.libpath: Remove handling of freebsd1*.
19682
19683 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19684
19685         Prepare for supporting FreeBSD 10.
19686         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19687         match FreeBSD 10.0.
19688
19689 2011-01-27  Bruno Haible  <bruno@clisp.org>
19690
19691         vma-iter, get-rusage-as: Add OpenBSD support.
19692         * modules/vma-iter (configure.ac): Test for mquery.
19693         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19694         * lib/vma-iter.c: Include <sys/mman.h>.
19695         (vma_iterate): Add an implementation based on mquery().
19696         * lib/resource-ext.h (get_rusage_as): Update comments.
19697         * lib/get-rusage-as.c: Likewise.
19698         * lib/get-rusage-data.c: Likewise.
19699
19700 2011-01-26  Karl Berry  <karl@gnu.org>
19701
19702         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19703         variables to make it easier to override the makeinfo program used.
19704
19705 2011-01-26  Eric Blake  <eblake@redhat.com>
19706
19707         fcntl: work around Haiku F_DUPFD bugs
19708         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19709         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19710         cloexec bit on duplication.
19711         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19712
19713 2011-01-26  Bruno Haible  <bruno@clisp.org>
19714
19715         Enable memory leak tests on AIX.
19716         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19717         * tests/test-fprintf-posix3.c (main): Likewise.
19718
19719 2011-01-26  Bruno Haible  <bruno@clisp.org>
19720
19721         Tests for module 'get-rusage-data'.
19722         * modules/get-rusage-data-tests: New file.
19723         * tests/test-get-rusage-data.c: New file.
19724
19725         New module 'get-rusage-data'.
19726         * lib/resource-ext.h (get_rusage_data): New declaration.
19727         * lib/get-rusage-data.c: New file.
19728         * modules/get-rusage-data: New file.
19729
19730 2011-01-25  Bruno Haible  <bruno@clisp.org>
19731
19732         get-rusage-as: Allow for easier testing.
19733         * lib/resource-ext.h (get_rusage_as): Add comment.
19734         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19735         (main): New function for interactive testing.
19736
19737 2011-01-25  Bruno Haible  <bruno@clisp.org>
19738
19739         vma-iter: Treat Haiku like BeOS.
19740         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19741         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19742
19743 2011-01-25  Eric Blake  <eblake@redhat.com>
19744
19745         c-stack: fix regression on cygwin when libsigsegv is present
19746         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19747
19748 2011-01-24  Bruno Haible  <bruno@clisp.org>
19749
19750         vma-iter: Avoid empty intervals.
19751         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19752         on an empty interval.
19753
19754 2011-01-24  Jim Meyering  <meyering@redhat.com>
19755
19756         u64: remove unnecessary #include
19757         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19758
19759 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19760
19761         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19762         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19763
19764 2011-01-23  Bruno Haible  <bruno@clisp.org>
19765
19766         New module 'vma-iter'.
19767         * lib/vma-iter.h: New file.
19768         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19769         * modules/vma-iter: New file.
19770         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19771         for get_rusage_as_via_iterator.
19772         (vma_iterate_callback): New function.
19773         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19774         * modules/get-rusage-as (Depends-on): Add vma-iter.
19775
19776 2011-01-23  Bruno Haible  <bruno@clisp.org>
19777
19778         uninorm: Tweak includes.
19779         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19780         Reported by Jim Meyering.
19781
19782 2011-01-23  Bruno Haible  <bruno@clisp.org>
19783
19784         get-rusage-as: Improve on NetBSD.
19785         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19786         /proc, like on FreeBSD.
19787
19788 2011-01-23  Jim Meyering  <meyering@redhat.com>
19789
19790         xreadlink.h: remove unnecessary #include
19791         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19792
19793         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19794         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19795
19796 2011-01-23  Bruno Haible  <bruno@clisp.org>
19797
19798         get-rusage-as: Fix bug.
19799         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19800         original limit when aborting the first loop.
19801
19802 2011-01-23  Bruno Haible  <bruno@clisp.org>
19803
19804         wctype: Ensure valid C syntax.
19805         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19806         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19807
19808 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19809
19810         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19812         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19813         as they are needed only for configure's test case.
19814         This removes two unnecessary symbols from config.h.
19815
19816         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19817         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19819         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19820         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19821         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19822         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19823         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19824         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19825         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19826         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19828         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19829         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19830         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19831         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19832         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19833         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19834
19835 2011-01-21  Eric Blake  <eblake@redhat.com>
19836
19837         maintainer-makefile: work with older git for submodule check
19838         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19839         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19840         Reported by Matthias Bolte.
19841
19842         bootstrap: minor portability fixes
19843         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
19844         (usage): Omit leading capital and trailing . on help phrases, per
19845         GNU Coding Standards.
19846         (check_versions, top level): Prefix messages with script name.
19847
19848 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
19849
19850         bootstrap: support --no-git option
19851         * build-aux/bootstrap: Add --no-git option, to be used when
19852         --gnulib-srcdir points to the exact desired checkout.
19853
19854 2011-01-21  Eric Blake  <eblake@redhat.com>
19855
19856         strerror_r-posix: work with glibc 2.13
19857         * lib/strerror_r.c (strerror_r): Fix return type.
19858
19859 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19860             Bruno Haible  <bruno@clisp.org>
19861
19862         uN_strstr: New unit tests.
19863         * modules/unistr/u8-strstr-tests: New file.
19864         * modules/unistr/u16-strstr-tests: New file.
19865         * modules/unistr/u32-strstr-tests: New file.
19866         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
19867         * tests/unistr/test-u8-strstr.c: New file.
19868         * tests/unistr/test-u16-strstr.c: New file.
19869         * tests/unistr/test-u32-strstr.c: New file.
19870
19871 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19872             Bruno Haible  <bruno@clisp.org>
19873
19874         Make uN_strstr functions O(n) worst-case.
19875         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
19876         16-bit and 32-bit unit cases, use the unibyte algorithm from
19877         lib/mbsstr.c.
19878         * lib/unistr/u8-strstr.c: Include <string.h>.
19879         (UNIT_IS_UINT8_T): New macro.
19880         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
19881         (U_STRLEN, U_STRNLEN): New macros.
19882         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
19883         (U_STRLEN, U_STRNLEN): New macros.
19884         * modules/unistr/u8-strstr (Depends-on): Add strstr.
19885         (configure.ac): Update required libunistring version.
19886         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
19887         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
19888         malloca.
19889         (configure.ac): Update required libunistring version.
19890         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
19891         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
19892         malloca.
19893         (configure.ac): Update required libunistring version.
19894
19895 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19896             Bruno Haible  <bruno@clisp.org>
19897
19898         Prepare for faster uN_strstr functions.
19899         * lib/str-kmp.h: Support definable UNITs.
19900         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
19901         needle_len argument.
19902         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
19903         * lib/mbscasestr.c (mbscasestr): Likewise.
19904
19905 2011-01-21  Pádraig Brady <P@draigBrady.com>
19906
19907         malloca-tests: make faster by unsetting MALLOC_PERTURB_
19908         * tests/test-malloca.c (main): Unset the environment variable
19909         to greatly speed up the test.
19910         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
19911         * modules/malloca-tests: Depend on unsetenv.
19912
19913 2011-01-21  Pádraig Brady <P@draigBrady.com>
19914
19915         ignore-value: remove stdint dependency
19916         * lib/ignore-value.h: Remove <stdint.h>
19917         * modules/ignore-value: Remove stdint dependency.
19918
19919 2011-01-21  Jim Meyering  <meyering@redhat.com>
19920
19921         maint.mk: adjust variable name to be consistent with other gl_ vars
19922         * top/maint.mk (gl_public_submodule_commit): Rename the variable
19923         to be lower case.
19924
19925 2011-01-20  Jim Meyering  <meyering@redhat.com>
19926
19927         maint.mk: make "check" depend on public-submodule-commit by default
19928         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
19929
19930 2011-01-20  Bruno Haible  <bruno@clisp.org>
19931
19932         mbfile, mbiter: Complete change from 2008-12-21.
19933         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
19934         * m4/mbiter.m4 (gl_MBITER): Likewise.
19935
19936 2011-01-20  Jim Meyering  <meyering@redhat.com>
19937
19938         init.sh: insert space between each function name and "()"
19939         * tests/init.sh: Make it a little easier to see that a function's
19940         name is "warn_", and not "warn" when looking at the first part of
19941         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
19942
19943 2011-01-20  Jim Meyering  <meyering@redhat.com>
19944
19945         mountlist: clean up code formatting
19946         * lib/mountlist.c (read_file_system_list): Split a long line,
19947         correct bracing style, use NULL in place of "(struct statfs *)0",
19948         don't parenthesize return value, add spaces around "=" and after
19949         ";-in-for-stmt".
19950
19951 2011-01-14  Markus Duft <mduft@gentoo.org>
19952
19953         mountlist: add support for Interix
19954         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
19955         Apply statvfs to all entries of /dev/fs.
19956         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
19957         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
19958
19959 2011-01-20  Jim Meyering  <meyering@redhat.com>
19960
19961         maint.mk: improve the public-submodule-commit rule
19962         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
19963         to suppress printing of its commands... unless V=1.
19964         Add git submodule's --quiet option to suppress printing of e.g.,
19965         "Entering gnulib" output.
19966         "cd" into $(srcdir) before running git submodule.
19967
19968 2011-01-20  Bruno Haible  <bruno@clisp.org>
19969
19970         include_next: Fix bug introduced on 2011-01-18.
19971         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
19972         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
19973         ac_cv_header_... variable if the second argument is not 'check'.
19974         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
19975         gl_NEXT_HEADERS_INTERNAL.
19976
19977 2011-01-20  Bruno Haible  <bruno@clisp.org>
19978
19979         Allow the user to avoid the GNULIB_TEST_* macros.
19980         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
19981         Suggested by Paul Eggert.
19982
19983 2011-01-14  Jim Meyering  <meyering@redhat.com>
19984
19985         bootstrap: avoid failure when there is no .gitmodules file
19986         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
19987         has been assigned to, even when its value is the empty string.
19988         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
19989         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
19990         Reported by John W. Eaton <jwe@gnu.org>.
19991
19992 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19993
19994         assume <ctype.h>, ..., <time.h> exist
19995         For years gnulib has been assuming the existence of the headers
19996         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
19997         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
19998         them, since they don't appear to be needed.
19999         * README (Portability guidelines): Document this.
20000         * lib/flock.c: Assume <fcntl.h> exists.
20001         * lib/regex_internal.h: Assume <locale.h> exists.
20002         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20004         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20005         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20006         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20007         * m4/regex.m4 (gl_REGEX): Likewise.
20008         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20009         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20010         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20011         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20012         * tests/test-argp.c: Likewise.
20013         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20014
20015         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20016         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20017         AA_APPLE_UNIVERSAL_BUILD.  See
20018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20019         * NEWS: Document this.
20020
20021 2011-01-19  Eric Blake  <eblake@redhat.com>
20022
20023         c-stack: assume stack overflow if SA_SIGINFO unsupported
20024         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20025         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20026         sigaction will work.
20027         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20028         behavior match Linux.
20029         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20030
20031         stdbool-tests: accomodate Haiku
20032         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20033
20034         binary-io: fix O_TEXT on Haiku
20035         * modules/binary-io (Depends-on): Add fcntl-h.
20036         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20037         than blindly undefining O_TEXT.
20038         Reported by Scott McCreary.
20039
20040 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20041
20042         include_next: do not check for standard headers like stddef.h
20043
20044         I found this problem when modifying Emacs to use gnulib.
20045         I noticed that it added HAVE_STDDEF_H to config.h, even though
20046         gnulib always assumes <stddef.h> exists as per README and this
20047         symbol is unnecessary.
20048         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20049         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20050         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20051         faster for headers like stddef.h that are known to exist.
20052         (gl_CHECK_NEXT_HEADERS): Use it.
20053         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20054         rather than gl_CHECK_NEXT_HEADERS.
20055         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20056         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20057
20058 2011-01-18  Eric Blake  <eblake@redhat.com>
20059
20060         ansi-c++-opt: skip C++ dependency style if C++ is unused
20061         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20062         tests when we know C++ compilation is not desired.
20063         Reported by Scott McCreary.
20064
20065 2011-01-18  Bruno Haible  <bruno@clisp.org>
20066
20067         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20068         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20069         (main): Perform test also when getrlimit and setrlimit don't exist or
20070         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20071         limiting the address space size using setrlimit, compare the address
20072         space size before and after the the test.
20073         * tests/test-dprintf-posix2.c: Likewise.
20074         * tests/test-fprintf-posix3.sh: Update skip messages.
20075         * tests/test-dprintf-posix2.sh: Likewise.
20076         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20077         * modules/dprintf-posix-tests (Depends-on): Likewise.
20078         Reported by Bruce Korb <bkorb@gnu.org> and
20079         Gary V. Vaughan <gary@gnu.org>.
20080
20081 2011-01-18  Bruno Haible  <bruno@clisp.org>
20082
20083         get-rusage-as: Improvement for Cygwin.
20084         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20085         areas that are merely reserved.
20086
20087 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20088
20089         strftime: remove dependencies on multibyte modules
20090
20091         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20092         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20093         only if __osf__ is defined, and I suspect OSF doesn't need these
20094         other modules.  If my guess is wrong, we'll need to come up with a
20095         variant of strftime that doesn't need the multibyte modules.
20096
20097         I discovered this problem when attempting modify Emacs to use the
20098         strftime module.  With the previous gnulib, this caused Emacs to
20099         need 31 new files, ranging from lib/config.charset to
20100         m4/wint_t.m4.  This was overkill and I expect would be offputting
20101         to the Emacs maintainers.  After this change, only 6 new files are
20102         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20103         stdbool.m4, and tm_gmtoff.m4.
20104
20105         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20106         Suggested by Bruno Haible in
20107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20108         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20109         and do not check for wchar.h.
20110         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20111         (Depends-on): Remove mbrlen, mbsinit, wchar.
20112
20113 2011-01-18  Bruno Haible  <bruno@clisp.org>
20114
20115         Tests for module 'get-rusage-as'.
20116         * modules/get-rusage-as-tests: New file.
20117         * tests/test-get-rusage-as.c: New file.
20118
20119         New module 'get-rusage-as'.
20120         * modules/get-rusage-as: New file.
20121         * lib/resource-ext.h: New file.
20122         * lib/get-rusage-as.c: New file.
20123
20124 2011-01-17  Eric Blake  <eblake@redhat.com>
20125
20126         sigaction: relax license from LGPLv3+ to LGPLv2+
20127         * modules/sigaction (License): Relax to LGPLv2+.
20128
20129 2011-01-14  Bruno Haible  <bruno@clisp.org>
20130
20131         filemode: Make function declarations usable in C++ mode.
20132         * lib/filemode.h: Enclose function declarations in extern "C" block.
20133         Reported by John W. Eaton <jwe@gnu.org>.
20134
20135 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20136
20137         save-cwd: no longer include "xgetcwd.h"
20138         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20139         This avoids a compilation failure in projects that use save-cwd
20140         without also using the xgetcwd module.
20141
20142 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20143
20144         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20145         This is so that a program like Emacs, which needs only dtoastr,
20146         does not have to bother with distributing and compiling ftoastr
20147         and ldtoastr.
20148         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20149         * modules/dtoastr, modules/ldtoastr: New files.
20150         * modules/ftoastr: Now works just for 'float'.
20151         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20152         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20153         dtoastr.c, ldtoastr.c.
20154
20155 2011-01-11  Jim Meyering  <meyering@redhat.com>
20156
20157         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20158         There is no need to work around the lack of the fchdir function,
20159         since gnulib can now provide a replacement when required.
20160         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20161         * modules/save-cwd (Depends-on): Add fchdir.
20162
20163 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20164
20165         openat, save-cwd: avoid xmalloc
20166
20167         This removes a direct (but undocumented) dependency of openat on
20168         xalloc, along with an indirect dependency via save-cwd.  It also
20169         removes a dependency of save-cwd on xgetcwd, and thereby
20170         indirectly on xalloc.  This change causes the openat substitute
20171         to fall back on save_cwd when memory is tight, and for save_cwd to
20172         fail instead of dying when memory is tight, but that's good enough.
20173         Problem and initial idea for fix reported by Bastien Roucaries in
20174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20175
20176         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20177         xalloc.h (for xmalloc).
20178         (openat_proc_name): Use malloc, not xmalloc.
20179         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20180         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20181
20182         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20183         This avoids heap allocation for file names whose lengths are in
20184         the range 512..1023, with the upper bound increasing to at most
20185         4031 depending on the platform's PATH_MAX.  (We do not want
20186         pathmax.h here as it might supply a non-constant PATH_MAX.)
20187         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20188         Perhaps they should be moved to malloca.h?
20189         (OPENAT_BUFFER_SIZE): Use them.
20190
20191 2011-01-10  Bruno Haible  <bruno@clisp.org>
20192
20193         doc: Update users.txt.
20194         * users.txt: Add recutils.
20195
20196 2011-01-09  Karl Berry  <karl@gnu.org>
20197
20198         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20199
20200         * doc/configmake.texi: New file.
20201         * doc/gnulib.texi: Include it.
20202         * modules/configmake: Move documentation from here.
20203
20204 2011-01-09  Bruno Haible  <bruno@clisp.org>
20205
20206         Update to Unicode 6.0.0.
20207         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20208         (get_lbp): Update for Unicode 6.0.0.
20209         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20210         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20211         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20212         U+11001, U+11038..U+11046. Remove U+06DE.
20213         (uc_width): Fix bounds of planes.
20214         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20215         lib/uniwidth/width.c.
20216         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20217         trailing whitespace removed.
20218         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20219         without comments, but with the original copyright notice.
20220         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20221         * lib/unicase/ignorable.h: Likewise.
20222         * lib/unicase/tocasefold.h: Likewise.
20223         * lib/unicase/tolower.h: Likewise.
20224         * lib/unicase/totitle.h: Likewise.
20225         * lib/unicase/toupper.h: Likewise.
20226         * lib/unictype/bidi_of.h: Likewise.
20227         * lib/unictype/blocks.h: Likewise.
20228         * lib/unictype/categ_C.h: Likewise.
20229         * lib/unictype/categ_Cn.h: Likewise.
20230         * lib/unictype/categ_L.h: Likewise.
20231         * lib/unictype/categ_Ll.h: Likewise.
20232         * lib/unictype/categ_Lm.h: Likewise.
20233         * lib/unictype/categ_Lo.h: Likewise.
20234         * lib/unictype/categ_Lu.h: Likewise.
20235         * lib/unictype/categ_M.h: Likewise.
20236         * lib/unictype/categ_Mc.h: Likewise.
20237         * lib/unictype/categ_Me.h: Likewise.
20238         * lib/unictype/categ_Mn.h: Likewise.
20239         * lib/unictype/categ_N.h: Likewise.
20240         * lib/unictype/categ_Nd.h: Likewise.
20241         * lib/unictype/categ_No.h: Likewise.
20242         * lib/unictype/categ_P.h: Likewise.
20243         * lib/unictype/categ_Po.h: Likewise.
20244         * lib/unictype/categ_S.h: Likewise.
20245         * lib/unictype/categ_Sc.h: Likewise.
20246         * lib/unictype/categ_Sk.h: Likewise.
20247         * lib/unictype/categ_Sm.h: Likewise.
20248         * lib/unictype/categ_So.h: Likewise.
20249         * lib/unictype/categ_of.h: Likewise.
20250         * lib/unictype/combining.h: Likewise.
20251         * lib/unictype/ctype_alnum.h: Likewise.
20252         * lib/unictype/ctype_alpha.h: Likewise.
20253         * lib/unictype/ctype_graph.h: Likewise.
20254         * lib/unictype/ctype_lower.h: Likewise.
20255         * lib/unictype/ctype_print.h: Likewise.
20256         * lib/unictype/ctype_punct.h: Likewise.
20257         * lib/unictype/ctype_upper.h: Likewise.
20258         * lib/unictype/decdigit.h: Likewise.
20259         * lib/unictype/digit.h: Likewise.
20260         * lib/unictype/numeric.h: Likewise.
20261         * lib/unictype/pr_alphabetic.h: Likewise.
20262         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20263         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20264         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20265         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20266         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20267         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20268         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20269         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20270         * lib/unictype/pr_case_ignorable.h: Likewise.
20271         * lib/unictype/pr_cased.h: Likewise.
20272         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20273         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20274         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20275         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20276         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20277         * lib/unictype/pr_combining.h: Likewise.
20278         * lib/unictype/pr_composite.h: Likewise.
20279         * lib/unictype/pr_currency_symbol.h: Likewise.
20280         * lib/unictype/pr_decimal_digit.h: Likewise.
20281         * lib/unictype/pr_deprecated.h: Likewise.
20282         * lib/unictype/pr_format_control.h: Likewise.
20283         * lib/unictype/pr_grapheme_base.h: Likewise.
20284         * lib/unictype/pr_grapheme_extend.h: Likewise.
20285         * lib/unictype/pr_grapheme_link.h: Likewise.
20286         * lib/unictype/pr_id_continue.h: Likewise.
20287         * lib/unictype/pr_id_start.h: Likewise.
20288         * lib/unictype/pr_ideographic.h: Likewise.
20289         * lib/unictype/pr_lowercase.h: Likewise.
20290         * lib/unictype/pr_math.h: Likewise.
20291         * lib/unictype/pr_numeric.h: Likewise.
20292         * lib/unictype/pr_other_alphabetic.h: Likewise.
20293         * lib/unictype/pr_other_id_continue.h: Likewise.
20294         * lib/unictype/pr_other_math.h: Likewise.
20295         * lib/unictype/pr_punctuation.h: Likewise.
20296         * lib/unictype/pr_sentence_terminal.h: Likewise.
20297         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20298         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20299         * lib/unictype/pr_unified_ideograph.h: Likewise.
20300         * lib/unictype/pr_uppercase.h: Likewise.
20301         * lib/unictype/pr_xid_continue.h: Likewise.
20302         * lib/unictype/pr_xid_start.h: Likewise.
20303         * lib/unictype/scripts.h: Likewise.
20304         * lib/unictype/scripts_byname.gperf: Likewise.
20305         * lib/unictype/sy_java_ident.h: Likewise.
20306         * lib/unigbrk/gbrkprop.h: Likewise.
20307         * lib/unilbrk/lbrkprop1.h: Likewise.
20308         * lib/unilbrk/lbrkprop2.h: Likewise.
20309         * lib/uninorm/decomposition-table2.h: Likewise.
20310         * lib/uniwbrk/wbrkprop.h: Likewise.
20311         * tests/unicase/test-cased.c: Likewise.
20312         * tests/unicase/test-ignorable.c: Likewise.
20313         * tests/unicase/test-uc_tolower.c: Likewise.
20314         * tests/unicase/test-uc_totitle.c: Likewise.
20315         * tests/unicase/test-uc_toupper.c: Likewise.
20316         * tests/unictype/test-categ_C.c: Likewise.
20317         * tests/unictype/test-categ_Cn.c: Likewise.
20318         * tests/unictype/test-categ_L.c: Likewise.
20319         * tests/unictype/test-categ_Ll.c: Likewise.
20320         * tests/unictype/test-categ_Lm.c: Likewise.
20321         * tests/unictype/test-categ_Lo.c: Likewise.
20322         * tests/unictype/test-categ_Lu.c: Likewise.
20323         * tests/unictype/test-categ_M.c: Likewise.
20324         * tests/unictype/test-categ_Mc.c: Likewise.
20325         * tests/unictype/test-categ_Me.c: Likewise.
20326         * tests/unictype/test-categ_Mn.c: Likewise.
20327         * tests/unictype/test-categ_N.c: Likewise.
20328         * tests/unictype/test-categ_Nd.c: Likewise.
20329         * tests/unictype/test-categ_No.c: Likewise.
20330         * tests/unictype/test-categ_P.c: Likewise.
20331         * tests/unictype/test-categ_Po.c: Likewise.
20332         * tests/unictype/test-categ_S.c: Likewise.
20333         * tests/unictype/test-categ_Sc.c: Likewise.
20334         * tests/unictype/test-categ_Sk.c: Likewise.
20335         * tests/unictype/test-categ_Sm.c: Likewise.
20336         * tests/unictype/test-categ_So.c: Likewise.
20337         * tests/unictype/test-ctype_alnum.c: Likewise.
20338         * tests/unictype/test-ctype_alpha.c: Likewise.
20339         * tests/unictype/test-ctype_graph.c: Likewise.
20340         * tests/unictype/test-ctype_lower.c: Likewise.
20341         * tests/unictype/test-ctype_print.c: Likewise.
20342         * tests/unictype/test-ctype_punct.c: Likewise.
20343         * tests/unictype/test-ctype_upper.c: Likewise.
20344         * tests/unictype/test-decdigit.h: Likewise.
20345         * tests/unictype/test-digit.h: Likewise.
20346         * tests/unictype/test-numeric.h: Likewise.
20347         * tests/unictype/test-pr_alphabetic.c: Likewise.
20348         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20349         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20350         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20351         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20352         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20353         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20354         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20355         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20356         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20357         * tests/unictype/test-pr_cased.c: Likewise.
20358         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20359         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20360         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20361         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20362         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20363         * tests/unictype/test-pr_combining.c: Likewise.
20364         * tests/unictype/test-pr_composite.c: Likewise.
20365         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20366         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20367         * tests/unictype/test-pr_deprecated.c: Likewise.
20368         * tests/unictype/test-pr_format_control.c: Likewise.
20369         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20370         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20371         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20372         * tests/unictype/test-pr_id_continue.c: Likewise.
20373         * tests/unictype/test-pr_id_start.c: Likewise.
20374         * tests/unictype/test-pr_ideographic.c: Likewise.
20375         * tests/unictype/test-pr_lowercase.c: Likewise.
20376         * tests/unictype/test-pr_math.c: Likewise.
20377         * tests/unictype/test-pr_numeric.c: Likewise.
20378         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20379         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20380         * tests/unictype/test-pr_other_math.c: Likewise.
20381         * tests/unictype/test-pr_punctuation.c: Likewise.
20382         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20383         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20384         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20385         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20386         * tests/unictype/test-pr_uppercase.c: Likewise.
20387         * tests/unictype/test-pr_xid_continue.c: Likewise.
20388         * tests/unictype/test-pr_xid_start.c: Likewise.
20389         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20390         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20391         changes.
20392         * lib/unictype/categ_Cc.h: Likewise.
20393         * lib/unictype/categ_Cf.h: Likewise.
20394         * lib/unictype/categ_Co.h: Likewise.
20395         * lib/unictype/categ_Cs.h: Likewise.
20396         * lib/unictype/categ_Lt.h: Likewise.
20397         * lib/unictype/categ_Nl.h: Likewise.
20398         * lib/unictype/categ_Pc.h: Likewise.
20399         * lib/unictype/categ_Pd.h: Likewise.
20400         * lib/unictype/categ_Pe.h: Likewise.
20401         * lib/unictype/categ_Pf.h: Likewise.
20402         * lib/unictype/categ_Pi.h: Likewise.
20403         * lib/unictype/categ_Ps.h: Likewise.
20404         * lib/unictype/categ_Z.h: Likewise.
20405         * lib/unictype/categ_Zl.h: Likewise.
20406         * lib/unictype/categ_Zp.h: Likewise.
20407         * lib/unictype/categ_Zs.h: Likewise.
20408         * lib/unictype/ctype_blank.h: Likewise.
20409         * lib/unictype/ctype_cntrl.h: Likewise.
20410         * lib/unictype/ctype_digit.h: Likewise.
20411         * lib/unictype/ctype_space.h: Likewise.
20412         * lib/unictype/ctype_xdigit.h: Likewise.
20413         * lib/unictype/mirror.h: Likewise.
20414         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20415         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20416         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20417         * lib/unictype/pr_bidi_control.h: Likewise.
20418         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20419         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20420         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20421         * lib/unictype/pr_bidi_pdf.h: Likewise.
20422         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20423         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20424         * lib/unictype/pr_dash.h: Likewise.
20425         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20426         * lib/unictype/pr_diacritic.h: Likewise.
20427         * lib/unictype/pr_extender.h: Likewise.
20428         * lib/unictype/pr_hex_digit.h: Likewise.
20429         * lib/unictype/pr_hyphen.h: Likewise.
20430         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20431         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20432         * lib/unictype/pr_ignorable_control.h: Likewise.
20433         * lib/unictype/pr_iso_control.h: Likewise.
20434         * lib/unictype/pr_join_control.h: Likewise.
20435         * lib/unictype/pr_left_of_pair.h: Likewise.
20436         * lib/unictype/pr_line_separator.h: Likewise.
20437         * lib/unictype/pr_logical_order_exception.h: Likewise.
20438         * lib/unictype/pr_non_break.h: Likewise.
20439         * lib/unictype/pr_not_a_character.h: Likewise.
20440         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20441         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20442         * lib/unictype/pr_other_id_start.h: Likewise.
20443         * lib/unictype/pr_other_lowercase.h: Likewise.
20444         * lib/unictype/pr_other_uppercase.h: Likewise.
20445         * lib/unictype/pr_paired_punctuation.h: Likewise.
20446         * lib/unictype/pr_paragraph_separator.h: Likewise.
20447         * lib/unictype/pr_pattern_syntax.h: Likewise.
20448         * lib/unictype/pr_pattern_white_space.h: Likewise.
20449         * lib/unictype/pr_private_use.h: Likewise.
20450         * lib/unictype/pr_quotation_mark.h: Likewise.
20451         * lib/unictype/pr_radical.h: Likewise.
20452         * lib/unictype/pr_soft_dotted.h: Likewise.
20453         * lib/unictype/pr_space.h: Likewise.
20454         * lib/unictype/pr_titlecase.h: Likewise.
20455         * lib/unictype/pr_variation_selector.h: Likewise.
20456         * lib/unictype/pr_white_space.h: Likewise.
20457         * lib/unictype/pr_zero_width.h: Likewise.
20458         * lib/unictype/sy_c_ident.h: Likewise.
20459         * lib/unictype/sy_c_whitespace.h: Likewise.
20460         * lib/unictype/sy_java_whitespace.h: Likewise.
20461         * lib/uninorm/composition-table.gperf: Likewise.
20462         * lib/uninorm/decomposition-table1.h: Likewise.
20463         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20464         LB8.
20465         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20466         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20467         * modules/unictype/*: Bump version number of expected libunistring
20468         version.
20469
20470 2011-01-09  Bruno Haible  <bruno@clisp.org>
20471
20472         Update to Unicode 5.2.0.
20473         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20474         trailing whitespace removed.
20475
20476 2011-01-09  Bruno Haible  <bruno@clisp.org>
20477
20478         New Unicode character properties, from Unicode 5.2.0.
20479         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20480         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20481         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20482         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20483         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20484         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20485         uc_is_property_cased, uc_is_property_case_ignorable,
20486         uc_is_property_changes_when_lowercased,
20487         uc_is_property_changes_when_uppercased,
20488         uc_is_property_changes_when_titlecased,
20489         uc_is_property_changes_when_casefolded,
20490         uc_is_property_changes_when_casemapped): New declarations.
20491         * lib/unictype/pr_byname.gperf: Add the new properties.
20492         * modules/unictype/property-byname (Depends-on): Depend on the new
20493         properties modules.
20494         * modules/unictype/property-all (Depends-on): Likewise.
20495         * MODULES.html.sh (Unicode string functions): Add
20496         unictype/property-case-ignorable, unictype/property-cased,
20497         unictype/property-changes-when-casefolded,
20498         unictype/property-changes-when-casemapped,
20499         unictype/property-changes-when-lowercased,
20500         unictype/property-changes-when-titlecased,
20501         unictype/property-changes-when-uppercased.
20502
20503         New module 'unictype/property-changes-when-casemapped'.
20504         * modules/unictype/property-changes-when-casemapped: New file.
20505         * lib/unictype/pr_changes_when_casemapped.c: New file.
20506         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20507         generated by gen-uni-tables.
20508         * modules/unictype/property-changes-when-casemapped-tests: New file.
20509         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20510         automatically generated by gen-uni-tables.
20511
20512         New module 'unictype/property-changes-when-casefolded'.
20513         * modules/unictype/property-changes-when-casefolded: New file.
20514         * lib/unictype/pr_changes_when_casefolded.c: New file.
20515         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20516         generated by gen-uni-tables.
20517         * modules/unictype/property-changes-when-casefolded-tests: New file.
20518         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20519         automatically generated by gen-uni-tables.
20520
20521         New module 'unictype/property-changes-when-titlecased'.
20522         * modules/unictype/property-changes-when-titlecased: New file.
20523         * lib/unictype/pr_changes_when_titlecased.c: New file.
20524         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20525         generated by gen-uni-tables.
20526         * modules/unictype/property-changes-when-titlecased-tests: New file.
20527         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20528         automatically generated by gen-uni-tables.
20529
20530         New module 'unictype/property-changes-when-uppercased'.
20531         * modules/unictype/property-changes-when-uppercased: New file.
20532         * lib/unictype/pr_changes_when_uppercased.c: New file.
20533         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20534         generated by gen-uni-tables.
20535         * modules/unictype/property-changes-when-uppercased-tests: New file.
20536         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20537         automatically generated by gen-uni-tables.
20538
20539         New module 'unictype/property-changes-when-lowercased'.
20540         * modules/unictype/property-changes-when-lowercased: New file.
20541         * lib/unictype/pr_changes_when_lowercased.c: New file.
20542         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20543         generated by gen-uni-tables.
20544         * modules/unictype/property-changes-when-lowercased-tests: New file.
20545         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20546         automatically generated by gen-uni-tables.
20547
20548         New module 'unictype/property-case-ignorable'.
20549         * modules/unictype/property-case-ignorable: New file.
20550         * lib/unictype/pr_case_ignorable.c: New file.
20551         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20552         by gen-uni-tables.
20553         * modules/unictype/property-case-ignorable-tests: New file.
20554         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20555         generated by gen-uni-tables.
20556
20557         New module 'unictype/property-cased'.
20558         * modules/unictype/property-cased: New file.
20559         * lib/unictype/pr_cased.c: New file.
20560         * lib/unictype/pr_cased.h: New file, automatically generated by
20561         gen-uni-tables.
20562         * modules/unictype/property-cased-tests: New file.
20563         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20564         gen-uni-tables.
20565
20566 2011-01-09  Bruno Haible  <bruno@clisp.org>
20567
20568         Update to Unicode 5.2.0.
20569         * lib/gen-uni-tables.c (output_predicate, output_category,
20570         output_combclass, output_bidi_category, output_decimal_digit_test,
20571         output_decimal_digit, output_digit_test, output_digit,
20572         output_numeric_test, output_numeric, output_mirror, output_scripts,
20573         output_scripts_byname, output_blocks, output_ident_category): Fix
20574         comment header.
20575         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20576         get_wbp.
20577         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20578         items.
20579         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20580         Changes_When_Lowercased, Changes_When_Uppercased,
20581         Changes_When_Titlecased, Changes_When_Casefolded,
20582         Changes_When_Casemapped.
20583         (is_property_alphabetic, is_property_default_ignorable_code_point):
20584         Update for Unicode 5.2.0.
20585         (is_property_cased, is_property_case_ignorable,
20586         is_property_changes_when_lowercased,
20587         is_property_changes_when_uppercased,
20588         is_property_changes_when_titlecased,
20589         is_property_changes_when_casefolded,
20590         is_property_changes_when_casemapped): New functions.
20591         (output_properties): Output also the properties cased, case_ignorable,
20592         changes_when_lowercased, changes_when_uppercased,
20593         changes_when_titlecased, changes_when_casefolded,
20594         changes_when_casemapped.
20595         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20596         Unicode TR#11 revision 17 -> 19.
20597         (LBP_CP): New enumeration value.
20598         (LBP_*): Adjust values accordingly.
20599         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20600         TR#14 revision 22 -> 24.
20601         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20602         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20603         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20604         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20605         is_WBP_MIDLETTER.
20606         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20607         the code1 and code2 of each composition rule.
20608         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20609         * lib/unicase/ignorable.h: Likewise.
20610         * lib/unicase/tocasefold.h: Likewise.
20611         * lib/unicase/tolower.h: Likewise.
20612         * lib/unicase/totitle.h: Likewise.
20613         * lib/unicase/toupper.h: Likewise.
20614         * lib/unictype/bidi_of.h: Likewise.
20615         * lib/unictype/blocks.h: Likewise.
20616         * lib/unictype/categ_C.h: Likewise.
20617         * lib/unictype/categ_Cf.h: Likewise.
20618         * lib/unictype/categ_Cn.h: Likewise.
20619         * lib/unictype/categ_L.h: Likewise.
20620         * lib/unictype/categ_Ll.h: Likewise.
20621         * lib/unictype/categ_Lm.h: Likewise.
20622         * lib/unictype/categ_Lo.h: Likewise.
20623         * lib/unictype/categ_Lu.h: Likewise.
20624         * lib/unictype/categ_M.h: Likewise.
20625         * lib/unictype/categ_Mc.h: Likewise.
20626         * lib/unictype/categ_Mn.h: Likewise.
20627         * lib/unictype/categ_N.h: Likewise.
20628         * lib/unictype/categ_Nd.h: Likewise.
20629         * lib/unictype/categ_Nl.h: Likewise.
20630         * lib/unictype/categ_No.h: Likewise.
20631         * lib/unictype/categ_P.h: Likewise.
20632         * lib/unictype/categ_Pd.h: Likewise.
20633         * lib/unictype/categ_Po.h: Likewise.
20634         * lib/unictype/categ_S.h: Likewise.
20635         * lib/unictype/categ_Sc.h: Likewise.
20636         * lib/unictype/categ_So.h: Likewise.
20637         * lib/unictype/categ_of.h: Likewise.
20638         * lib/unictype/combining.h: Likewise.
20639         * lib/unictype/ctype_alnum.h: Likewise.
20640         * lib/unictype/ctype_alpha.h: Likewise.
20641         * lib/unictype/ctype_graph.h: Likewise.
20642         * lib/unictype/ctype_lower.h: Likewise.
20643         * lib/unictype/ctype_print.h: Likewise.
20644         * lib/unictype/ctype_punct.h: Likewise.
20645         * lib/unictype/ctype_upper.h: Likewise.
20646         * lib/unictype/decdigit.h: Likewise.
20647         * lib/unictype/digit.h: Likewise.
20648         * lib/unictype/numeric.h: Likewise.
20649         * lib/unictype/pr_alphabetic.h: Likewise.
20650         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20651         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20652         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20653         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20654         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20655         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20656         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20657         * lib/unictype/pr_combining.h: Likewise.
20658         * lib/unictype/pr_composite.h: Likewise.
20659         * lib/unictype/pr_currency_symbol.h: Likewise.
20660         * lib/unictype/pr_dash.h: Likewise.
20661         * lib/unictype/pr_decimal_digit.h: Likewise.
20662         * lib/unictype/pr_deprecated.h: Likewise.
20663         * lib/unictype/pr_diacritic.h: Likewise.
20664         * lib/unictype/pr_extender.h: Likewise.
20665         * lib/unictype/pr_grapheme_base.h: Likewise.
20666         * lib/unictype/pr_grapheme_extend.h: Likewise.
20667         * lib/unictype/pr_grapheme_link.h: Likewise.
20668         * lib/unictype/pr_id_continue.h: Likewise.
20669         * lib/unictype/pr_id_start.h: Likewise.
20670         * lib/unictype/pr_ideographic.h: Likewise.
20671         * lib/unictype/pr_ignorable_control.h: Likewise.
20672         * lib/unictype/pr_logical_order_exception.h: Likewise.
20673         * lib/unictype/pr_lowercase.h: Likewise.
20674         * lib/unictype/pr_numeric.h: Likewise.
20675         * lib/unictype/pr_other_alphabetic.h: Likewise.
20676         * lib/unictype/pr_punctuation.h: Likewise.
20677         * lib/unictype/pr_sentence_terminal.h: Likewise.
20678         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20679         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20680         * lib/unictype/pr_unified_ideograph.h: Likewise.
20681         * lib/unictype/pr_uppercase.h: Likewise.
20682         * lib/unictype/pr_xid_continue.h: Likewise.
20683         * lib/unictype/pr_xid_start.h: Likewise.
20684         * lib/unictype/pr_zero_width.h: Likewise.
20685         * lib/unictype/scripts.h: Likewise.
20686         * lib/unictype/scripts_byname.gperf: Likewise.
20687         * lib/unictype/sy_java_ident.h: Likewise.
20688         * lib/unigbrk/gbrkprop.h: Likewise.
20689         * lib/unilbrk/lbrkprop1.h: Likewise.
20690         * lib/unilbrk/lbrkprop2.h: Likewise.
20691         * lib/unilbrk/lbrktables.h: Likewise.
20692         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20693         LBP_CP. Implement rule LB30.
20694         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20695         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20696         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20697         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20698         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20699         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20700         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20701         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20702         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20703         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20704         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20705         bits instead of 16 bits in the code1 and code2 of each composition
20706         rule.
20707         (uc_composition): Update for Unicode 5.2.0.
20708         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20709         * lib/uninorm/decomposition-table2.h: Likewise.
20710         * lib/uniwbrk/wbrkprop.h: Likewise.
20711         * tests/unicase/test-cased.c: Likewise.
20712         * tests/unicase/test-ignorable.c: Likewise.
20713         * tests/unicase/test-uc_tolower.c: Likewise.
20714         * tests/unicase/test-uc_totitle.c: Likewise.
20715         * tests/unicase/test-uc_toupper.c: Likewise.
20716         * tests/unictype/test-categ_C.c: Likewise.
20717         * tests/unictype/test-categ_Cf.c: Likewise.
20718         * tests/unictype/test-categ_Cn.c: Likewise.
20719         * tests/unictype/test-categ_L.c: Likewise.
20720         * tests/unictype/test-categ_Ll.c: Likewise.
20721         * tests/unictype/test-categ_Lm.c: Likewise.
20722         * tests/unictype/test-categ_Lo.c: Likewise.
20723         * tests/unictype/test-categ_Lu.c: Likewise.
20724         * tests/unictype/test-categ_M.c: Likewise.
20725         * tests/unictype/test-categ_Mc.c: Likewise.
20726         * tests/unictype/test-categ_Mn.c: Likewise.
20727         * tests/unictype/test-categ_N.c: Likewise.
20728         * tests/unictype/test-categ_Nd.c: Likewise.
20729         * tests/unictype/test-categ_Nl.c: Likewise.
20730         * tests/unictype/test-categ_No.c: Likewise.
20731         * tests/unictype/test-categ_P.c: Likewise.
20732         * tests/unictype/test-categ_Pd.c: Likewise.
20733         * tests/unictype/test-categ_Po.c: Likewise.
20734         * tests/unictype/test-categ_S.c: Likewise.
20735         * tests/unictype/test-categ_Sc.c: Likewise.
20736         * tests/unictype/test-categ_So.c: Likewise.
20737         * tests/unictype/test-ctype_alnum.c: Likewise.
20738         * tests/unictype/test-ctype_alpha.c: Likewise.
20739         * tests/unictype/test-ctype_graph.c: Likewise.
20740         * tests/unictype/test-ctype_lower.c: Likewise.
20741         * tests/unictype/test-ctype_print.c: Likewise.
20742         * tests/unictype/test-ctype_punct.c: Likewise.
20743         * tests/unictype/test-ctype_upper.c: Likewise.
20744         * tests/unictype/test-decdigit.h: Likewise.
20745         * tests/unictype/test-digit.h: Likewise.
20746         * tests/unictype/test-numeric.h: Likewise.
20747         * tests/unictype/test-pr_alphabetic.c: Likewise.
20748         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20749         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20750         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20751         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20752         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20753         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20754         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20755         * tests/unictype/test-pr_combining.c: Likewise.
20756         * tests/unictype/test-pr_composite.c: Likewise.
20757         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20758         * tests/unictype/test-pr_dash.c: Likewise.
20759         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20760         * tests/unictype/test-pr_deprecated.c: Likewise.
20761         * tests/unictype/test-pr_diacritic.c: Likewise.
20762         * tests/unictype/test-pr_extender.c: Likewise.
20763         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20764         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20765         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20766         * tests/unictype/test-pr_id_continue.c: Likewise.
20767         * tests/unictype/test-pr_id_start.c: Likewise.
20768         * tests/unictype/test-pr_ideographic.c: Likewise.
20769         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20770         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20771         * tests/unictype/test-pr_lowercase.c: Likewise.
20772         * tests/unictype/test-pr_numeric.c: Likewise.
20773         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20774         * tests/unictype/test-pr_punctuation.c: Likewise.
20775         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20776         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20777         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20778         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20779         * tests/unictype/test-pr_uppercase.c: Likewise.
20780         * tests/unictype/test-pr_xid_continue.c: Likewise.
20781         * tests/unictype/test-pr_xid_start.c: Likewise.
20782         * tests/unictype/test-pr_zero_width.c: Likewise.
20783         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20784         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20785         changed behaviour: line breaking is now disallowed between a letter
20786         or '=' and '('.
20787         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20788         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20789         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20790         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20791         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20792         lib/uniwidth/width.c.
20793         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20794         without comments, but with the original copyright notice.
20795         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20796         changes.
20797         * lib/unictype/categ_Cc.h: Likewise.
20798         * lib/unictype/categ_Co.h: Likewise.
20799         * lib/unictype/categ_Cs.h: Likewise.
20800         * lib/unictype/categ_Lt.h: Likewise.
20801         * lib/unictype/categ_Me.h: Likewise.
20802         * lib/unictype/categ_Pc.h: Likewise.
20803         * lib/unictype/categ_Pe.h: Likewise.
20804         * lib/unictype/categ_Pf.h: Likewise.
20805         * lib/unictype/categ_Pi.h: Likewise.
20806         * lib/unictype/categ_Ps.h: Likewise.
20807         * lib/unictype/categ_Sk.h: Likewise.
20808         * lib/unictype/categ_Sm.h: Likewise.
20809         * lib/unictype/categ_Z.h: Likewise.
20810         * lib/unictype/categ_Zl.h: Likewise.
20811         * lib/unictype/categ_Zp.h: Likewise.
20812         * lib/unictype/categ_Zs.h: Likewise.
20813         * lib/unictype/ctype_blank.h: Likewise.
20814         * lib/unictype/ctype_cntrl.h: Likewise.
20815         * lib/unictype/ctype_digit.h: Likewise.
20816         * lib/unictype/ctype_space.h: Likewise.
20817         * lib/unictype/ctype_xdigit.h: Likewise.
20818         * lib/unictype/mirror.h: Likewise.
20819         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20820         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20821         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20822         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20823         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20824         * lib/unictype/pr_bidi_control.h: Likewise.
20825         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20826         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20827         * lib/unictype/pr_bidi_pdf.h: Likewise.
20828         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20829         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20830         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20831         * lib/unictype/pr_format_control.h: Likewise.
20832         * lib/unictype/pr_hex_digit.h: Likewise.
20833         * lib/unictype/pr_hyphen.h: Likewise.
20834         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20835         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20836         * lib/unictype/pr_iso_control.h: Likewise.
20837         * lib/unictype/pr_join_control.h: Likewise.
20838         * lib/unictype/pr_left_of_pair.h: Likewise.
20839         * lib/unictype/pr_line_separator.h: Likewise.
20840         * lib/unictype/pr_math.h: Likewise.
20841         * lib/unictype/pr_non_break.h: Likewise.
20842         * lib/unictype/pr_not_a_character.h: Likewise.
20843         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20844         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20845         * lib/unictype/pr_other_id_continue.h: Likewise.
20846         * lib/unictype/pr_other_id_start.h: Likewise.
20847         * lib/unictype/pr_other_lowercase.h: Likewise.
20848         * lib/unictype/pr_other_math.h: Likewise.
20849         * lib/unictype/pr_other_uppercase.h: Likewise.
20850         * lib/unictype/pr_paired_punctuation.h: Likewise.
20851         * lib/unictype/pr_paragraph_separator.h: Likewise.
20852         * lib/unictype/pr_pattern_syntax.h: Likewise.
20853         * lib/unictype/pr_pattern_white_space.h: Likewise.
20854         * lib/unictype/pr_private_use.h: Likewise.
20855         * lib/unictype/pr_quotation_mark.h: Likewise.
20856         * lib/unictype/pr_radical.h: Likewise.
20857         * lib/unictype/pr_soft_dotted.h: Likewise.
20858         * lib/unictype/pr_space.h: Likewise.
20859         * lib/unictype/pr_titlecase.h: Likewise.
20860         * lib/unictype/pr_variation_selector.h: Likewise.
20861         * lib/unictype/pr_white_space.h: Likewise.
20862         * lib/unictype/sy_c_ident.h: Likewise.
20863         * lib/unictype/sy_c_whitespace.h: Likewise.
20864         * lib/unictype/sy_java_whitespace.h: Likewise.
20865         * modules/uni*/*: Bump version number of expected libunistring version.
20866         Reported by Simon Josefsson.
20867
20868 2011-01-09  Karl Heuer  <kwzh@gnu.org>
20869
20870         useless-if-before-free: fix typo in --help and make the internal,
20871         automatic version date update process work once again.
20872         --help output contained a NUL character instead of the
20873         backslash-zero that was intended.  Also, the "must lie within
20874         the first 8 lines" line is on line 9, and hence not getting
20875         automatically updated.
20876         * build-aux/useless-if-before-free: Fix the former by adding a
20877         backslash, and the latter by condensing the three lines of what-it-does
20878         to a single line, leaving one line of slack for the future.
20879
20880 2011-01-09  Bruno Haible  <bruno@clisp.org>
20881
20882         uniwidth/width: Fix width of U+1D173..U+1D17A.
20883         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
20884         symbolic_width, output_width_property_test): New functions.
20885         (main): Invoke output_nonspacing_property, output_width_property_test.
20886         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
20887         U+1D173..U+1D17A.
20888         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
20889         1.
20890         * modules/uniwidth/*: Bump version number of expected libunistring
20891         version.
20892         * modules/unilbrk/*: Likewise.
20893
20894 2011-01-08  Bruno Haible  <bruno@clisp.org>
20895
20896         uninorm tests: Preserve copyright of Unicode data file.
20897         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
20898         Mention modifications.
20899
20900 2011-01-08  Bruno Haible  <bruno@clisp.org>
20901
20902         gen-uni-tables: Prepare for Unicode 5.2.0.
20903         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
20904         (debug_output_lbp, output_lbp): Update.
20905
20906 2011-01-08  Bruno Haible  <bruno@clisp.org>
20907
20908         unilbrk: Clarify gen-uni-tables.c code.
20909         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
20910         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
20911         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
20912
20913 2011-01-07  Bruno Haible  <bruno@clisp.org>
20914
20915         strtod: Restore errno when successfully parsing Infinity or NaN.
20916         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
20917         restore the original errno.
20918
20919 2011-01-07  Bruno Haible  <bruno@clisp.org>
20920
20921         remove test: Avoid failure on HP-UX 11.
20922         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
20923
20924 2011-01-07  Bruno Haible  <bruno@clisp.org>
20925
20926         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
20927         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
20928         error code.
20929
20930 2011-01-07  Pádraig Brady <P@draigBrady.com>
20931
20932         ignore-value: fixup comments, and add Eric Blake
20933         as an author since he rewrote the macros.
20934         * lib/ignore-value.h (ignore_value):  State that
20935         we now support aggregates.  Also specify exactly
20936         when the GCC warn_unused_result feature was added.
20937
20938 2011-01-06  Eric Blake  <eblake@redhat.com>
20939
20940         ignore-value: support aggregate types
20941         * lib/ignore-value.h (ignore_value): Provide separate gcc
20942         definition.
20943         * modules/ignore-value-tests: New test module.
20944         * tests/test-ignore-value.c: New test.
20945
20946         maint.mk: improve sc_prohibit_strcmp regex
20947         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
20948         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
20949         definition of STRNEQ.
20950
20951         signal: work around Haiku issue with SIGBUS
20952         * lib/siglist.h: Add comment.
20953         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
20954         strsignal's favoring of SIGSEGV.
20955         * tests/test-signal.c (main): Avoid test failure.
20956         * doc/posix-headers/signal.texi (signal.h): Document the issue.
20957         Reported by Scott McCreary.
20958
20959         maint.mk: add pre-release check to ensure submodule commits are public
20960         * top/maint.mk (public-submodule-commit): New rule.
20961         (submodule-checks): New variable.
20962         (alpha beta stable): Depend on the variable.
20963
20964 2011-01-05  Pádraig Brady <P@draigBrady.com>
20965         and Jim Meyering  <meyering@redhat.com>
20966
20967         ignore-value: make ignore_value more generic; deprecate ignore_ptr
20968         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
20969         (ATTRIBUTE_DEPRECATED): Define.
20970         (_ignore_case): New function.
20971         (ignore_value): New macro, to replace the old function.
20972         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
20973         * modules/ignore-value (Depends-on): Add stdint.
20974
20975 2011-01-04  Eric Blake  <eblake@redhat.com>
20976
20977         doc: regenerate INSTALL
20978         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
20979         @firstparagraphindent support, now that autoconf dropped it.
20980         (INSTALL_PRELUDE): Reinstate old macro.
20981         * doc/install.texi: Resync from autoconf.
20982         * doc/INSTALL: Reflect recent autoconf update.
20983         * doc/INSTALL.ISO: Likewise.
20984         * doc/INSTALL.UTF-8: Likewise.
20985         Reported by Karl Berry.
20986
20987 2011-01-04  Bruce Korb  <address@hidden>
20988
20989         git-version-gen: avoid a sub-shell
20990         * build-aux/git-version-gen: Redirect stderr in `...` via
20991         "exec 2>...", rather than via an added sub-shell.
20992
20993 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
20994
20995         git-version-gen: use (...) rather than sh -c '...'
20996         * build-aux/git-version-gen: Rather than hard-coding a shell's name
20997         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
20998
20999 2011-01-03  Jim Meyering  <meyering@redhat.com>
21000
21001         git-version-gen: convert leading TABs to spaces
21002         * build-aux/git-version-gen: Expand leading TABs.
21003
21004         git-version-gen: handle failed "git rev-list"
21005         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21006         from git and proceeding as if it had succeeded but printed no SHA1
21007         checksums, suppress the diagnostic and handle the failure.
21008         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21009
21010         git-version-gen: include command name in one more diagnostic
21011         * build-aux/git-version-gen: When the required .tarball-version file
21012         was missing or unreadable, you might see the diagnostic from "cat",
21013         but no trace of the name of the invoking script.  Now, you still see
21014         the diagnostic from cat, but also get one from "git-version-gen: ".
21015         Inspired by a patch from Bruce Korb.
21016
21017         update-copyright: adjust test to match changed code
21018         * tests/test-update-copyright.sh: Change test's expected output
21019         to match new actual output.
21020
21021 2011-01-02  Bruno Haible  <bruno@clisp.org>
21022
21023         getlogin_r: Avoid test failure on HP-UX 11.
21024         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21025         ERANGE when the second argument is zero.
21026         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21027         portability problem.
21028
21029 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21030
21031         * build-aux/update-copyright: doc Simon's changes
21032
21033 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21034
21035         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21036         environment variable.
21037
21038 2011-01-02  Bruno Haible  <bruno@clisp.org>
21039
21040         unigbrk: Avoid gcc warnings.
21041         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21042         unused variable.
21043         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21044         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21045         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21046         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21047         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21048         Change type of first argument to 'const char *'.
21049         (main): Remove unused variable.
21050         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21051         type of first argument to 'const char *'.
21052         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21053         Likewise.
21054         (main): Change type of variable 's'.
21055         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21056         to 'int'.
21057
21058 2011-01-02  Bruno Haible  <bruno@clisp.org>
21059
21060         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21061         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21062         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21063         bug.
21064         * lib/pwrite.c: Undo 2010-12-31 patch.
21065         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21066
21067 2011-01-02  Bruno Haible  <bruno@clisp.org>
21068
21069         pread: Fix test whether it works.
21070         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21071
21072 2011-01-02  Bruno Haible  <bruno@clisp.org>
21073
21074         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21075         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21076         ends in "6". Don't require a specific month name. Try also the locale
21077         names found on HP-UX 11 and Solaris 7.
21078
21079 2011-01-02  Bruno Haible  <bruno@clisp.org>
21080
21081         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21082         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21083         C linkage.
21084         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21085
21086 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21087
21088         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21089         for consistency, since the "cluster" term is not used elsewhere.
21090         * lib/unigbrk.in.h: Update name.
21091         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21092         * lib/unigbrk/u16-grapheme-next.c: Update name.
21093         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21094         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21095         * lib/unigbrk/u32-grapheme-next.c: Update name.
21096         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21097         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21098         * lib/unigbrk/u8-grapheme-next.c: Update name.
21099         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21100         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21101         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21102         Suggested by Bruno Haible.
21103
21104 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21105
21106         Remove module 'u8-grapheme-len' as too redundant with
21107         'u8-grapheme-next'.
21108         * modules/unigbrk/u8-grapheme-len: Delete file.
21109         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21110         * lib/unigbrk.in.h: Remove prototype for deleted function.
21111         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21112         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21113
21114         Remove module 'u16-grapheme-len' as too redundant with
21115         'u16-grapheme-next'.
21116         * modules/unigbrk/u16-grapheme-len: Delete file.
21117         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21118         * lib/unigbrk.in.h: Remove prototype for deleted function.
21119         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21120         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21121
21122         Remove module 'u32-grapheme-len' as too redundant with
21123         'u32-grapheme-next'.
21124         * modules/unigbrk/u32-grapheme-len: Delete file.
21125         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21126         * lib/unigbrk.in.h: Remove prototype for deleted function.
21127         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21128         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21129
21130         Suggested by Bruno Haible.
21131
21132 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21133
21134         * unigbrk.in.h: Fix typo: "ben" => "been".
21135         Reported by Bruno Haible.
21136
21137 2011-01-01  Jim Meyering  <meyering@redhat.com>
21138
21139         maint: update almost all copyright ranges to include 2011
21140         Run the new "make update-copyright" rule.
21141
21142 2011-01-01  Jim Meyering  <meyering@redhat.com>
21143
21144         maint: update-copyright: exempt doc/INSTALL*
21145         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21146         since they are generated.  Suggested by Bruno Haible.
21147
21148 2011-01-01  Jim Meyering  <meyering@redhat.com>
21149
21150         maint: refine the update-copyright rule
21151         * Makefile (update-copyright): Also exclude any file that includes
21152         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21153         code that merely generates the comment.
21154
21155 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21156
21157         New module 'u8-grapheme-len'.
21158         * modules/unigbrk/u8-grapheme-len: New file.
21159         * modules/unigbrk/u8-grapheme-len-tests: New file.
21160         * lib/unigbrk.in.h: Add prototype for new function.
21161         * lib/unigbrk/u8-grapheme-len.c: New file.
21162         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21163
21164         New module 'u16-grapheme-len'.
21165         * modules/unigbrk/u16-grapheme-len: New file.
21166         * modules/unigbrk/u16-grapheme-len-tests: New file.
21167         * lib/unigbrk.in.h: Add prototype for new function.
21168         * lib/unigbrk/u16-grapheme-len.c: New file.
21169         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21170
21171         New module 'u32-grapheme-len'.
21172         * modules/unigbrk/u32-grapheme-len: New file.
21173         * modules/unigbrk/u32-grapheme-len-tests: New file.
21174         * lib/unigbrk.in.h: Add prototype for new function.
21175         * lib/unigbrk/u32-grapheme-len.c: New file.
21176         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21177
21178         New module 'u8-grapheme-next'.
21179         * modules/unigbrk/u8-grapheme-next: New file.
21180         * modules/unigbrk/u8-grapheme-next-tests: New file.
21181         * lib/unigbrk.in.h: Add prototype for new function.
21182         * lib/unigbrk/u8-grapheme-next.c: New file.
21183         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21184
21185         New module 'u16-grapheme-next'.
21186         * modules/unigbrk/u16-grapheme-next: New file.
21187         * modules/unigbrk/u16-grapheme-next-tests: New file.
21188         * lib/unigbrk.in.h: Add prototype for new function.
21189         * lib/unigbrk/u16-grapheme-next.c: New file.
21190         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21191
21192         New module 'u32-grapheme-next'.
21193         * modules/unigbrk/u32-grapheme-next: New file.
21194         * modules/unigbrk/u32-grapheme-next-tests: New file.
21195         * lib/unigbrk.in.h: Add prototype for new function.
21196         * lib/unigbrk/u32-grapheme-next.c: New file.
21197         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21198
21199         New module 'u8-grapheme-prev'.
21200         * modules/unigbrk/u8-grapheme-prev: New file.
21201         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21202         * lib/unigbrk.in.h: Add prototype for new function.
21203         * lib/unigbrk/u8-grapheme-prev.c: New file.
21204         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21205
21206         New module 'u16-grapheme-prev'.
21207         * modules/unigbrk/u16-grapheme-prev: New file.
21208         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21209         * lib/unigbrk.in.h: Add prototype for new function.
21210         * lib/unigbrk/u16-grapheme-prev.c: New file.
21211         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21212
21213         New module 'u32-grapheme-prev'.
21214         * modules/unigbrk/u32-grapheme-prev: New file.
21215         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21216         * lib/unigbrk.in.h: Add prototype for new function.
21217         * lib/unigbrk/u32-grapheme-prev.c: New file.
21218         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21219
21220         New module 'u8-grapheme-breaks'.
21221         * modules/unigbrk/u8-grapheme-breaks: New file.
21222         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21223         * lib/unigbrk.in.h: Add prototype for new function.
21224         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21225         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21226
21227         New module 'u16-grapheme-breaks'.
21228         * modules/unigbrk/u16-grapheme-breaks: New file.
21229         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21230         * lib/unigbrk.in.h: Add prototype for new function.
21231         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21232         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21233
21234         New module 'u32-grapheme-breaks'.
21235         * modules/unigbrk/u32-grapheme-breaks: New file.
21236         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21237         * lib/unigbrk.in.h: Add prototype for new function.
21238         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21239         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21240
21241         New module 'ulc-grapheme-breaks'.
21242         * modules/unigbrk/ulc-grapheme-breaks: New file.
21243         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21244         * m4/locale-ar.m4: New file.
21245         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21246         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21247         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21248
21249 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21250
21251         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21252         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21253         modified how this file was generated before I initially submitted
21254         the module, but failed to regenerate it.  This meant that several
21255         of the level2 entries were wrong.
21256         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21257         Remove the division-by-2 that is folded into the table now that
21258         gbrkprop.h has been regenerated properly.  Now -1 entries are
21259         handled correctly.
21260
21261         New module 'unigbrk/uc-gbrk-prop-tests'.
21262         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21263         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21264         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21265         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21266
21267 2011-01-01  Bruno Haible  <bruno@clisp.org>
21268
21269         Avoid use of hexadecimal escapes.
21270         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21271         instead of hexadecimal escapes.
21272
21273 2011-01-01  Jim Meyering  <meyering@redhat.com>
21274
21275         maint: new rule to update copyright year ranges
21276         * Makefile (update-copyright): New rule.
21277
21278         maint: indent with TABs in Makefile
21279         * Makefile: Expand leading sequences of spaces to TABs
21280
21281         version-etc: update the copyright year it reports
21282         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21283
21284 2010-12-31  Bruno Haible  <bruno@clisp.org>
21285
21286         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21287         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21288         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21289         zero.
21290
21291 2010-12-31  Bruno Haible  <bruno@clisp.org>
21292
21293         pwrite: Work around HP-UX 11.11 bug.
21294         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21295         works and set REPLACE_PWRITE if not.
21296         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21297         function.
21298         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21299
21300 2010-12-31  Bruno Haible  <bruno@clisp.org>
21301
21302         pread: Work around HP-UX 11 bugs.
21303         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21304         and set REPLACE_PREAD if not.
21305         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21306
21307 2010-12-31  Eric Blake  <eblake@redhat.com>
21308
21309         nl_langinfo: fix YESEXPR on Irix 6.5
21310         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21311         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21312         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21313         it.
21314
21315 2010-12-31  Bruno Haible  <bruno@clisp.org>
21316
21317         iconv: Document HP-UX 11 bug.
21318         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21319
21320 2010-12-31  Bruno Haible  <bruno@clisp.org>
21321
21322         ldexpl: Fix link error on HP-UX 11.
21323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21324         LDEXPL_LIBM, using $ISNANL_LIBM.
21325
21326 2010-12-31  Eric Blake  <eblake@redhat.com>
21327
21328         ftello: avoid compilation failure with SunStudio c89
21329         * lib/ftello.c (ftello): Use lseek, not llseek.
21330
21331         tests: avoid failing coreutils tests on cygwin
21332         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21333         (create_exe_shims_): Return 0 when skipping.
21334
21335 2010-12-31  Bruno Haible  <bruno@clisp.org>
21336
21337         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21338         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21339
21340 2010-12-31  Bruno Haible  <bruno@clisp.org>
21341
21342         waitpid: Fix link error in C++ mode.
21343         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21344
21345 2010-12-31  Bruno Haible  <bruno@clisp.org>
21346
21347         isnan: Use GCC built-ins when possible.
21348         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21349         __builtin_isnan.
21350         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21351         (isnan): Define using GCC built-ins for GCC >= 4.0.
21352
21353 2010-12-31  Bruno Haible  <bruno@clisp.org>
21354
21355         isnand: Fix mistake.
21356         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21357         __builtin_isnand.
21358
21359 2010-12-31  Bruno Haible  <bruno@clisp.org>
21360
21361         open: Avoid C++ error on HP-UX 11.
21362         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21363
21364 2010-12-31  Bruno Haible  <bruno@clisp.org>
21365
21366         time_r: Add missing declarations on HP-UX 11.
21367         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21368         instead of HAVE_LOCALTIME_R.
21369         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21370         HAVE_LOCALTIME_R always.
21371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21372         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21373         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21374         HAVE_LOCALTIME_R.
21375         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21376         * doc/posix-functions/localtime_r.texi: Likewise.
21377
21378 2010-12-29  Eric Blake  <eblake@redhat.com>
21379
21380         mountlist: tweak previous commit
21381         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21382         Reported by Paul Eggert.
21383
21384         mountlist: fix local drive detection on cygwin
21385         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21386         that works for cygwin.
21387
21388 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21389
21390         ftoastr, snprintf: ftoastr + snprintf module
21391         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21392         since the snprintf module now should be good enough here.
21393         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21394         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21395         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21396         GNULIB_SNPRINTF only for the test directory, and the latter
21397         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21398         seems to suffice by itself.
21399
21400 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21401
21402         alloca: one step towards thread-safety
21403         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21404         need for a static variable.  All callers changed.  This does not
21405         make the alloca replacement thread-safe, but it's one step.
21406
21407         tests: minor indenting change
21408         * tests/init.sh: Sync from coreutils housekeeping patch
21409         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21410         to keep lines within 80 columns.
21411
21412 2010-12-28  Jim Meyering  <meyering@redhat.com>
21413
21414         regex: don't infloop on persistent failing calloc
21415         * lib/regexec.c (build_trtable): Return failure indication upon
21416         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21417         In glibc, this was fixed for version 2.13:
21418         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21419
21420 2010-12-28  Bruno Haible  <bruno@clisp.org>
21421             Paul Eggert <eggert@cs.ucla.edu>
21422
21423         linkat: Make implementation robust against system behaviour variations.
21424         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21425         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21426         way, and to -2 if it needs a generic runtime test.
21427         * lib/linkat.c (solaris_optimized_link_immediate,
21428         solaris_optimized_link_follow): New functions.
21429         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21430         (check_same_link): Use it.
21431
21432 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21433
21434         New module 'unigbrk/base'.
21435         * modules/unigbrk/base: New file.
21436         * lib/unigbrk.in.h: New file.
21437
21438         New module 'unigbrk/uc-gbrk-prop'.
21439         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21440         * modules/unigbrk/uc-gbrk-prop: New file.
21441         * lib/unigbrk/gbrkprop.h: New file.
21442         * lib/unigbrk/uc-gbrk-prop.c: New file.
21443
21444         New module 'unigbrk/uc-is-grapheme-break'.
21445         * modules/unigbrk/uc-is-grapheme-break: New file.
21446         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21447         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21448         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21449         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21450         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21451
21452         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21453
21454 2010-12-27  Bruno Haible  <bruno@clisp.org>
21455
21456         linkat test: Avoid failure on Solaris 11 2010-11.
21457         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21458
21459 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21460
21461         utimens: work around glibc rounding bug on more platforms
21462         * lib/utimens.c (fdutimens): Work around rounding bug even if
21463         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21465
21466 2010-12-27  Bruno Haible  <bruno@clisp.org>
21467
21468         select tests: Improve comments.
21469         * tests/test-select.c (do_select): Add comments.
21470
21471 2010-12-27  Bruno Haible  <bruno@clisp.org>
21472
21473         select tests: Safer way of handling timeout.
21474         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21475         at every invocation.
21476
21477 2010-12-27  Bruno Haible  <bruno@clisp.org>
21478
21479         select tests: Use 'bool' where appropriate.
21480         * tests/test-select.c (connect_to_socket): Change argument type to
21481         'bool'.
21482
21483 2010-12-27  Bruno Haible  <bruno@clisp.org>
21484
21485         select tests: Use existing modules.
21486         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21487         (configure.ac): Don't test for unistd.h.
21488         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21489         declared in <unistd.h>.
21490
21491 2010-12-27  Bruno Haible  <bruno@clisp.org>
21492
21493         mbrtowc: Work around a Solaris 7 bug.
21494         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21495         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21496         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21497         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21498         MBRTOWC_NULL_ARG1_BUG.
21499         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21500         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21501         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21502         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21503
21504 2010-12-27  Jim Meyering  <meyering@redhat.com>
21505
21506         read-file.c: tweak syntax
21507         * lib/read-file.c (fread_file): Remove space after "*" in function
21508         definitions.
21509
21510 2010-12-27  Bruno Haible  <bruno@clisp.org>
21511
21512         times test: Avoid gcc warnings on OSF/1.
21513         * tests/test-times.c (main): Cast printf arguments from clock_t to
21514         'long int'.
21515
21516 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         utimens: work around glibc rounding bug on older Linux kernels
21519         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21520         on Linux with a glibc whose utimes might not work, then work
21521         around a longstanding glibc bug involving rounding rather than
21522         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21524
21525 2010-12-26  Bruno Haible  <bruno@clisp.org>
21526
21527         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21528         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21529         _GL_CXXALIAS_SYS.
21530         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21531
21532 2010-12-26  Bruno Haible  <bruno@clisp.org>
21533
21534         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21535         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21536         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21537         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21538         looking for the declaration.
21539         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21540         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21541         problem.
21542         * doc/posix-functions/inet_pton.texi: Likewise.
21543
21544 2010-12-26  Bruno Haible  <bruno@clisp.org>
21545
21546         arpa_inet: Use the common idioms with C++ support.
21547         * lib/arpa_inet.in.h: Include c++defs.h.
21548         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21549         support.
21550         * modules/arpa_inet (Depends-on): Add c++defs.
21551         (Makefile.am): Substitute the contents of c++defs.h.
21552         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21553         * modules/arpa_inet-c++-tests: New file.
21554         * tests/test-arpa_inet-c++.cc: New file.
21555
21556 2010-12-25  Bruno Haible  <bruno@clisp.org>
21557
21558         Fix more C++ link errors on Solaris 8.
21559         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21560         $(LIB_EACCESS).
21561         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21562         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21563         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21564         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21565         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21566
21567 2010-12-25  Bruno Haible  <bruno@clisp.org>
21568
21569         printf-posix: Fix link error when a non-GCC compiler is used.
21570         * lib/stdio.in.h (printf): When not using GCC, override printf
21571         correctly.
21572         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21573
21574 2010-12-25  Bruno Haible  <bruno@clisp.org>
21575
21576         strerror_r-posix: Update doc.
21577         * doc/posix-functions/strerror_r.texi: Update doc about the return
21578         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21579
21580 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21581
21582         utimens: simplify the logic of the previous change
21583         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21584         This should not affect whether the test succeeds or fails.
21585
21586         utimens: configure better on hosts with NFS clock skew
21587         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21588         uses the clock of the local host.  It might use the clock of the
21589         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21591
21592 2010-12-25  Bruno Haible  <bruno@clisp.org>
21593
21594         ptsname test: Avoid failure on Solaris.
21595         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21596         open a pseudo-terminal; don't use BSD-style ptys.
21597         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21598
21599 2010-12-25  Bruno Haible  <bruno@clisp.org>
21600
21601         ptsname: Avoid ERANGE failure on some systems.
21602         * lib/ptsname.c (buffer): Increase size.
21603
21604 2010-12-25  Bruno Haible  <bruno@clisp.org>
21605
21606         rename, renameat: Avoid test failures at NFS mounted locations.
21607         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21608         so that subsequent mkdir calls succeed.
21609
21610 2010-12-25  Bruno Haible  <bruno@clisp.org>
21611
21612         iswblank: Fix C++ link error on Solaris 8.
21613         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21614         _GL_FUNCDECL_SYS.
21615
21616 2010-12-25  Bruno Haible  <bruno@clisp.org>
21617
21618         unistd: Fix C++ link error on Solaris 8.
21619         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21620
21621 2010-12-25  Bruno Haible  <bruno@clisp.org>
21622
21623         readlink doc: Mention an old glibc bug.
21624         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21625
21626 2010-12-25  Bruno Haible  <bruno@clisp.org>
21627
21628         fcntl-h: Fix for use of C++ on glibc systems.
21629         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21630         also on glibc systems in C++ mode.
21631         Reported by Gary V. Vaughan <gary@gnu.org>.
21632
21633 2010-12-25  Bruno Haible  <bruno@clisp.org>
21634
21635         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21636         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21637
21638 2010-12-25  Bruno Haible  <bruno@clisp.org>
21639
21640         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21641         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21642         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21643         test whether truncl works according to ISO C 99 with IEC 60559.
21644         * m4/truncl-ieee.m4: New file.
21645         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21646         m4/signbit.m4.
21647         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21648
21649 2010-12-25  Bruno Haible  <bruno@clisp.org>
21650
21651         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21652         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21653         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21654         test whether ceill works according to ISO C 99 with IEC 60559.
21655         * m4/ceill-ieee.m4: New file.
21656         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21657         m4/signbit.m4.
21658         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21659
21660 2010-12-25  Bruno Haible  <bruno@clisp.org>
21661
21662         Ensure all prerequisites of <wchar.h> are included.
21663         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21664         before <wchar.h>.
21665         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21666         gl_MBRLEN_NUL_RETVAL): Likewise.
21667         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21668         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21669         AC_FUNC_MBRTOWC): Likewise.
21670         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21671         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21672         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21673         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21674         Likewise.
21675         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21676         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21677         (gl_WCHAR_H): Improve comments.
21678         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21679
21680 2010-12-25  Bruno Haible  <bruno@clisp.org>
21681
21682         strtok_r: Fix C syntax error in autoconf macro.
21683         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21684         characters in test program.
21685
21686 2010-12-24  Bruno Haible  <bruno@clisp.org>
21687
21688         ceil, trunc, round: Fix gcc warnings.
21689         * lib/ceil.c (MIN): Undefine before redefining.
21690         * lib/trunc.c (MIN): Likewise.
21691         * lib/round.c (MIN): Likewise.
21692         Include <math.h> first.
21693
21694 2010-12-24  Bruno Haible  <bruno@clisp.org>
21695
21696         select tests: Avoid failures on OSF/1 5.1.
21697         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21698         failure of closing the last socket; it may fail with ECONNRESET.
21699
21700 2010-12-24  Eric Blake  <eblake@redhat.com>
21701
21702         stdint: avoid HP-UX 10.20 preprocessor bug
21703         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21704         than #if.
21705         * tests/test-floor2.c (main): Likewise.
21706         Reported by Peter O'Gorman.
21707
21708         pipe: make obsoletion transition easier
21709         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21710         * modules/pipe (Files): Include revived file.
21711         (Include): Drop reference, to mirror getdate's behavior.
21712
21713 2010-12-24  Bruno Haible  <bruno@clisp.org>
21714
21715         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21716         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21717         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21718         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21719
21720 2010-12-24  Bruno Haible  <bruno@clisp.org>
21721
21722         gethostname: Ensure declaration on NonStop Kernel.
21723         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21725
21726 2010-12-24  Bruno Haible  <bruno@clisp.org>
21727
21728         sys_select: Ensure all necessary types on NonStop Kernel.
21729         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21730         include <sys/time.h>.
21731         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21732         NonStop Kernel.
21733         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21734
21735 2010-12-24  Bruno Haible  <bruno@clisp.org>
21736
21737         sys_select: Remove unneeded include.
21738         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21739         have <sys/select.h>.
21740
21741 2010-12-24  Bruno Haible  <bruno@clisp.org>
21742
21743         gethostname: Provide a fallback for HOST_NAME_MAX.
21744         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21745         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21746         instead.
21747         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21748
21749 2010-12-24  Bruno Haible  <bruno@clisp.org>
21750
21751         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21752         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21753         (SA_RESTART): Likewise.
21754         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21755
21756 2010-12-24  Bruno Haible  <bruno@clisp.org>
21757
21758         signal: Define NSIG.
21759         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21760         * tests/test-signal.c (nsig): New variable.
21761         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21762
21763 2010-12-24  Bruno Haible  <bruno@clisp.org>
21764
21765         rename, renameat: Avoid test failures on OSF/1 5.1.
21766         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21767         alternative error codes.
21768         * tests/test-renameat.c (main): Likewise.
21769
21770 2010-12-24  Bruno Haible  <bruno@clisp.org>
21771
21772         *printf: Detect large precisions bug on Solaris 10/SPARC.
21773         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21774         by Paul Eggert.
21775         * tests/test-snprintf-posix.h (test_function): Add this test code here
21776         too.
21777         * tests/test-sprintf-posix.h (test_function): Likewise.
21778         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21779         * tests/test-vasprintf-posix.c (test_function): Likewise.
21780         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21781         around by gnulib.
21782         * doc/posix-functions/printf.texi: Likewise.
21783         * doc/posix-functions/snprintf.texi: Likewise.
21784         * doc/posix-functions/sprintf.texi: Likewise.
21785         * doc/posix-functions/vfprintf.texi: Likewise.
21786         * doc/posix-functions/vprintf.texi: Likewise.
21787         * doc/posix-functions/vsnprintf.texi: Likewise.
21788         * doc/posix-functions/vsprintf.texi: Likewise.
21789         * doc/posix-functions/dprintf.texi: Undo last commit.
21790         * doc/posix-functions/vdprintf.texi: Likewise.
21791
21792 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21793
21794         tests: port test-fdutimensat.c to Solaris 8
21795         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21796         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21797         On Solaris 8, it fails with errno == ENOSYS, because there is no
21798         futimens (so it can't use the fd), and there is no lutimens (so it
21799         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21800
21801         vsnprintf: make more consistent with snprintf; doc fixes
21802
21803         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21804         the byte count return problem was promoted from the snprintf-posix
21805         to the snprintf module.
21806         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21807         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21808         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21809         * tests/test-snprintf.c (main): Check the byte count returned.
21810         * tests/test-vsnprintf.c (main): Likewise.
21811
21812 2010-12-23  Eric Blake  <eblake@redhat.com>
21813
21814         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21815         * modules/sigpipe (License): Relax license.
21816
21817 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21818
21819         doc: document Solaris printf bug with large float precisions
21820         * doc/posix-functions/dprintf.texi (dprintf):
21821         * doc/posix-functions/fprintf.texi (fprintf):
21822         * doc/posix-functions/printf.texi (printf):
21823         * doc/posix-functions/snprintf.texi (snprintf):
21824         * doc/posix-functions/sprintf.texi (sprintf):
21825         * doc/posix-functions/vdprintf.texi (vdprintf):
21826         * doc/posix-functions/vfprintf.texi (vfprintf):
21827         * doc/posix-functions/vprintf.texi (vprintf):
21828         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21829         * doc/posix-functions/vsprintf.texi (vsprintf):
21830         Mention that these functions mishandle large floating point
21831         precisions on Solaris 10.  The same bug is also present in Solaris
21832         8, and I assume earlier.  This causes "cd gnulib-tests; make
21833         check" to fail on Solaris 8 (and I assume, later) when building
21834         the latest coreutils, in test-vasprintf-posix's call to
21835         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21836         the wide flavors (e.g., wprintf) so this patch just updates the
21837         documentation for the narrow ones.
21838
21839         test-posixtm.c: add two tests
21840         * tests/test-posixtm.c: Add two tests, to highlight the
21841         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
21842         around this bug; this is merely to document it.
21843
21844 2010-12-22  Bruno Haible  <bruno@clisp.org>
21845
21846         getlogin_r: Work around portability problem on OSF/1.
21847         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
21848         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
21849         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
21850         test for a truncated result.
21851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
21852         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
21853         * modules/getlogin_r (Depends-on): Add memchr.
21854         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
21855
21856 2010-12-22  Bruno Haible  <bruno@clisp.org>
21857
21858         ptsname: Avoid test failure on OSF/1 5.1.
21859         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
21860         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
21861         (same_slave): New function.
21862         (main): Use it to compare ptsname's result with the expected file name.
21863
21864 2010-12-22  Bruno Haible  <bruno@clisp.org>
21865
21866         Port extended stdio modules to HP NonStop Kernel.
21867         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
21868         macros.
21869         * lib/fbufmode.c: Update comments.
21870         * lib/fflush.c: Likewise.
21871         * lib/fpurge.c: Likewise.
21872         * lib/freadable.c: Likewise.
21873         * lib/freadahead.c: Likewise.
21874         * lib/freading.c: Likewise.
21875         * lib/freadptr.c: Likewise.
21876         * lib/freadseek.c: Likewise.
21877         * lib/fseeko.c: Likewise.
21878         * lib/fseterr.c: Likewise.
21879         * lib/fwritable.c: Likewise.
21880         * lib/fwriting.c: Likewise.
21881         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21882
21883 2010-12-22  Bruno Haible  <bruno@clisp.org>
21884
21885         ttyname_r: Work around bug on OSF/1 5.1.
21886         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
21887         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
21888         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
21889         present.
21890         * lib/ttyname_r.c (ttyname_r): Update comments.
21891
21892 2010-12-22  Bruno Haible  <bruno@clisp.org>
21893
21894         round: Implement result sign according to IEEE 754.
21895         * lib/round.c (MIN, MINUS_ZERO): New macros.
21896         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
21897         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
21898         * tests/test-round-ieee.c (main): Likewise.
21899         * tests/test-roundl-ieee.c (main): Likewise.
21900
21901         trunc: Implement result sign according to IEEE 754.
21902         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
21903         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
21904         * tests/test-trunc2.c: Include minus-zero.h.
21905         (MINUS_ZERO): New macro.
21906         (trunc_reference): Keep in sync with lib/trunc.c.
21907         * tests/test-truncf2.c: Include minus-zero.h.
21908         (MINUS_ZERO): New macro.
21909         (truncf_reference): Keep in sync with lib/trunc.c.
21910         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
21911         * tests/test-trunc-ieee.c (main): Likewise.
21912         * tests/test-truncl-ieee.c (main): Likewise.
21913
21914         ceil: Implement result sign according to IEEE 754.
21915         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
21916         (FUNC): Return -0.0 for -1 < x < 0.
21917         * tests/test-ceil2.c: Include minus-zero.h.
21918         (MINUS_ZERO): New macro.
21919         (ceil_reference): Keep in sync with lib/ceil.c.
21920         * tests/test-ceilf2.c: Include minus-zero.h.
21921         (MINUS_ZERO): New macro.
21922         (ceilf_reference): Keep in sync with lib/ceil.c.
21923         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
21924         * tests/test-ceil-ieee.c (main): Likewise.
21925         * tests/test-ceill-ieee.c (main): Likewise.
21926
21927         floor: Implement result sign according to IEEE 754.
21928         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
21929         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
21930         * tests/test-floorf2.c (floorf_reference): Likewise.
21931         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
21932         * tests/test-floor-ieee.c (main): Likewise.
21933         * tests/test-floorl-ieee.c (main): Likewise.
21934
21935 2010-12-22  Bruno Haible  <bruno@clisp.org>
21936
21937         getaddrinfo: Update doc.
21938         * doc/posix-functions/gai_strerror.texi: Return type is also different
21939         on AIX and HP-UX.
21940
21941 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21942
21943         getaddrinfo, inet_ntop: Update doc for Solaris.
21944         * doc/posix-functions/gai_strerror.texi: Return type is also an
21945         issue on Solaris 9 and earlier.
21946         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
21947         on Solaris 10 and earlier.
21948
21949 2010-12-21  Bruno Haible  <bruno@clisp.org>
21950
21951         New module 'roundl-ieee'.
21952         * modules/roundl-ieee: New file.
21953         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
21954         test whether roundl works according to ISO C 99 with IEC 60559.
21955         * m4/roundl-ieee.m4: New file.
21956         * modules/roundl-ieee-tests: New file.
21957         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
21958         * tests/test-roundl.c (main): Remove signbit tests.
21959         * modules/roundl-tests (Depends-on): Remove signbit.
21960         * doc/posix-functions/roundl.texi: Mention the new module.
21961
21962 2010-12-21  Bruno Haible  <bruno@clisp.org>
21963
21964         New module 'truncl-ieee'.
21965         * modules/truncl-ieee: New file.
21966         * modules/truncl-ieee-tests: New file.
21967         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
21968         * tests/test-truncl.c (main): Remove signbit tests.
21969         * modules/truncl-tests (Depends-on): Remove signbit.
21970         * doc/posix-functions/truncl.texi: Mention the new module.
21971
21972 2010-12-21  Bruno Haible  <bruno@clisp.org>
21973
21974         New module 'ceill-ieee'.
21975         * modules/ceill-ieee: New file.
21976         * modules/ceill-ieee-tests: New file.
21977         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
21978         * tests/test-ceill.c (main): Remove signbit tests.
21979         * modules/ceill-tests (Depends-on): Remove signbit.
21980         * doc/posix-functions/ceill.texi: Mention the new module.
21981
21982 2010-12-21  Bruno Haible  <bruno@clisp.org>
21983
21984         New module 'floorl-ieee'.
21985         * modules/floorl-ieee: New file.
21986         * modules/floorl-ieee-tests: New file.
21987         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
21988         * tests/test-floorl.c (main): Remove signbit tests.
21989         * modules/floorl-tests (Depends-on): Remove signbit.
21990         * doc/posix-functions/floorl.texi: Mention the new module.
21991
21992 2010-12-21  Bruno Haible  <bruno@clisp.org>
21993
21994         New module 'round-ieee'.
21995         * modules/round-ieee: New file.
21996         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
21997         whether round works according to ISO C 99 with IEC 60559.
21998         * m4/round-ieee.m4: New file.
21999         * modules/round-ieee-tests: New file.
22000         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22001         * tests/test-round1.c (main): Remove signbit tests.
22002         * modules/round-tests (Depends-on): Remove 'signbit'.
22003         * doc/posix-functions/round.texi: Mention the new module.
22004
22005 2010-12-21  Bruno Haible  <bruno@clisp.org>
22006
22007         New module 'trunc-ieee'.
22008         * modules/trunc-ieee: New file.
22009         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22010         whether trunc works according to ISO C 99 with IEC 60559.
22011         * m4/trunc-ieee.m4: New file.
22012         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22014         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22015         * modules/trunc-ieee-tests: New file.
22016         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22017         * tests/test-trunc1.c (main): Remove signbit tests.
22018         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22019         * doc/posix-functions/trunc.texi: Mention the new module.
22020
22021 2010-12-21  Bruno Haible  <bruno@clisp.org>
22022
22023         New module 'ceil-ieee'.
22024         * modules/ceil-ieee: New file.
22025         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22026         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22027         ISO C 99 with IEC 60559.
22028         * m4/ceil-ieee.m4: New file.
22029         * modules/ceil (Files): Add lib/ceil.c.
22030         (Depends-on): Add 'float'.
22031         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22032         * lib/math.in.h (ceil): New declaration.
22033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22034         REPLACE_CEIL.
22035         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22036         * modules/ceil-ieee-tests: New file.
22037         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22038         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22039         * doc/posix-functions/ceil.texi: Mention the new module.
22040
22041 2010-12-21  Bruno Haible  <bruno@clisp.org>
22042
22043         New module 'floor-ieee'.
22044         * modules/floor-ieee: New file.
22045         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22046         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22047         ISO C 99 with IEC 60559.
22048         * m4/floor-ieee.m4: New file.
22049         * modules/floor (Files): Add lib/floor.c.
22050         (Depends-on): Add 'float'.
22051         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22052         * lib/math.in.h (floor): New declaration.
22053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22054         REPLACE_FLOOR.
22055         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22056         * modules/floor-ieee-tests: New file.
22057         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22058         * tests/test-math-c++.cc: Check the signature of 'floor'.
22059         * doc/posix-functions/floor.texi: Mention the new module.
22060
22061 2010-12-21  Bruno Haible  <bruno@clisp.org>
22062
22063         New module 'roundf-ieee'.
22064         * modules/roundf-ieee: New file.
22065         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22066         test whether roundf works according to ISO C 99 with IEC 60559.
22067         * m4/roundf-ieee.m4: New file.
22068         * modules/roundf-ieee-tests: New file.
22069         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22070         * tests/test-roundf1.c (main): Remove signbit tests.
22071         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22072         * doc/posix-functions/roundf.texi: Mention the new module.
22073
22074 2010-12-21  Bruno Haible  <bruno@clisp.org>
22075
22076         New module 'truncf-ieee'.
22077         * modules/truncf-ieee: New file.
22078         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22079         test whether truncf works according to ISO C 99 with IEC 60559.
22080         * m4/truncf-ieee.m4: New file.
22081         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22083         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22084         * modules/truncf-ieee-tests: New file.
22085         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22086         * tests/test-truncf1.c (main): Remove signbit tests.
22087         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22088         * doc/posix-functions/truncf.texi: Mention the new module.
22089
22090 2010-12-21  Bruno Haible  <bruno@clisp.org>
22091
22092         New module 'ceilf-ieee'.
22093         * modules/ceilf-ieee: New file.
22094         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22095         test whether ceilf works according to ISO C 99 with IEC 60559.
22096         * m4/ceilf-ieee.m4: New file.
22097         * modules/ceilf-ieee-tests: New file.
22098         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22099         * tests/test-ceilf1.c (main): Remove signbit tests.
22100         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22101         * doc/posix-functions/ceilf.texi: Mention the new module.
22102
22103 2010-12-21  Bruno Haible  <bruno@clisp.org>
22104
22105         New module 'floorf-ieee'.
22106         * modules/floorf-ieee: New file.
22107         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22108         test whether floorf works according to ISO C 99 with IEC 60559.
22109         * m4/floorf-ieee.m4: New file.
22110         * modules/floorf-ieee-tests: New file.
22111         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22112         * tests/test-floorf1.c (main): Remove signbit tests.
22113         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22114         * doc/posix-functions/floorf.texi: Mention the new module.
22115
22116 2010-12-21  Bruno Haible  <bruno@clisp.org>
22117
22118         Support for minus zero in autoconf macros.
22119         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22120         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22121         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22122         * tests/minus-zero.h: Update comments.
22123
22124 2010-12-21  Bruno Haible  <bruno@clisp.org>
22125
22126         Tests for module 'ceil'.
22127         * modules/ceil-tests: New file.
22128         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22129         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22130
22131 2010-12-21  Bruno Haible  <bruno@clisp.org>
22132
22133         Tests for module 'floor'.
22134         * modules/floor-tests: New file.
22135         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22136         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22137
22138 2010-12-21  Bruno Haible  <bruno@clisp.org>
22139
22140         math: Fix indentation.
22141         * lib/math.in.h (floorf): Fix indentation.
22142
22143 2010-12-21  Bruno Haible  <bruno@clisp.org>
22144
22145         Fix cross-compilation guesses on Solaris.
22146         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22147         not match "solaris2.10".
22148         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22149         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22150         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22151
22152 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22153
22154         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22155         This fixes a problem observed with the latest coreutils snapshot
22156         that caused a test to fail on Solaris 8.  src/csplit.c's call
22157         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22158         earlier, instead of returning the number of bytes that would have
22159         been generated; this causes csplit to incorrectly report memory
22160         exhaustion.
22161         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22162         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22163         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22164         comments to match.
22165         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22166         Fix typo in matching older versions of Solaris: "solaris2.10"
22167         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22168         only for guessing while cross-compiling.
22169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22170
22171 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22172
22173         ftoastr: fix comment again
22174         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22176         Also, simplify example a bit by using flags = 0.
22177
22178 2010-12-20  Bruno Haible  <bruno@clisp.org>
22179
22180         round*, trunc*: Update documentation regarding glibc.
22181         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22182         * doc/posix-functions/round.texi: Likewise.
22183         * doc/posix-functions/roundl.texi: Likewise.
22184         * doc/posix-functions/truncf.texi: Likewise.
22185         * doc/posix-functions/trunc.texi: Likewise.
22186         * doc/posix-functions/truncl.texi: Likewise.
22187
22188 2010-12-20  Bruno Haible  <bruno@clisp.org>
22189
22190         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22191         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22192         * doc/posix-functions/round.texi: Likewise.
22193         * doc/posix-functions/roundl.texi: Likewise.
22194
22195 2010-12-20  Bruno Haible  <bruno@clisp.org>
22196
22197         ttyname_r: Add missing declaration on HP-UX 11.
22198         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22199         HAVE_TTYNAME_R.
22200         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22201         declared. Set HAVE_TTYNAME_R always.
22202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22203         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22204         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22205         HAVE_TTYNAME_R.
22206         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22207
22208 2010-12-20  Bruno Haible  <bruno@clisp.org>
22209
22210         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22211         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22212         * doc/posix-functions/getlogin_r.texi: Likewise.
22213         * tests/test-getlogin.c: Include <errno.h>.
22214         (main): Avoid test failure on HP-UX 11.11.
22215         * tests/test-getlogin_r.c (main): Likewise.
22216
22217 2010-12-20  Bruno Haible  <bruno@clisp.org>
22218
22219         getlogin_r: Add missing declaration on HP-UX 11.
22220         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22221         declared also when it exists as a function.
22222         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22223
22224 2010-12-20  Bruno Haible  <bruno@clisp.org>
22225
22226         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22227         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22228         through wcrtomb.
22229
22230 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22231
22232         ftoastr: fix comment
22233         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22235
22236 2010-12-19  Bruno Haible  <bruno@clisp.org>
22237
22238         isnan: Ensure it is a macro.
22239         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22240         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22241         Solaris.
22242
22243 2010-12-19  Bruno Haible  <bruno@clisp.org>
22244
22245         ldexpl test: Fix link error on OSF/1 5.1.
22246         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22247
22248 2010-12-19  Bruno Haible  <bruno@clisp.org>
22249
22250         wctype: Make it work in C++ mode on OSF/1 5.1.
22251         * lib/wctype.in.h (iswblank): Declare but not define here.
22252         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22253         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22254         * modules/wctype (Files): Add lib/iswblank.c.
22255
22256 2010-12-19  Bruno Haible  <bruno@clisp.org>
22257
22258         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22259         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22260         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22261
22262 2010-12-19  Bruno Haible  <bruno@clisp.org>
22263
22264         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22266         _POSIX_PII_SOCKET.
22267         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22268         * doc/posix-functions/recvfrom.texi: Likewise.
22269         * doc/posix-functions/send.texi: Likewise.
22270         * doc/posix-functions/sendto.texi: Likewise.
22271
22272 2010-12-19  Bruno Haible  <bruno@clisp.org>
22273
22274         tcgetsid: Add missing declaration on OSF/1 5.1.
22275         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22276         HAVE_TCGETSID.
22277         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22278         Don't set HAVE_TCGETSID.
22279         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22280         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22281         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22282         HAVE_TCGETSID.
22283         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22284
22285 2010-12-19  Bruno Haible  <bruno@clisp.org>
22286
22287         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22288         * lib/stdio.in.h: During the include_next statement, let recursive
22289         includes of this file include only the system header file.
22290
22291 2010-12-19  Bruno Haible  <bruno@clisp.org>
22292
22293         iconv_open: Fix regression from 2010-12-04.
22294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22295         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22296
22297 2010-12-19  Bruno Haible  <bruno@clisp.org>
22298
22299         stdbool test: Avoid a gcc warning.
22300         * tests/test-stdbool.c (main): Fail if e1 is false.
22301         Reported by Jim Meyering.
22302
22303 2010-12-19  Jim Meyering  <meyering@redhat.com>
22304
22305         setenv: restore to working order
22306         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22307         mistakenly removed.
22308         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22309         HAVE_SETENV.
22310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22311         HAVE_SETENV.
22312
22313 2010-12-19  Bruno Haible  <bruno@clisp.org>
22314
22315         Document some different function declarations on OSF/1 5.1.
22316         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22317         * doc/posix-functions/inet_ntop.texi: Likewise.
22318         * doc/posix-functions/gethostname.texi: Likewise.
22319         * lib/unistd.in.h (gethostname): Update comment.
22320
22321 2010-12-19  Bruno Haible  <bruno@clisp.org>
22322
22323         doc: Mention vasprintf-posix module.
22324         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22325         the 'vasprintf-posix' module.
22326         * doc/glibc-functions/vasprintf.texi: Likewise.
22327
22328 2010-12-19  Bruno Haible  <bruno@clisp.org>
22329
22330         unsetenv: Add missing declaration on OSF/1 5.1.
22331         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22332         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22333         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22335         not HAVE_UNSETENV.
22336         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22337         HAVE_UNSETENV.
22338         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22339
22340 2010-12-19  Bruno Haible  <bruno@clisp.org>
22341
22342         setenv: Add missing declaration on OSF/1 5.1.
22343         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22344         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22345         declared. Don't set HAVE_SETENV.
22346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22347         not HAVE_SETENV.
22348         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22349         HAVE_SETENV.
22350         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22351
22352 2010-12-19  Bruno Haible  <bruno@clisp.org>
22353
22354         nl_langinfo tests: Avoid gcc warning.
22355         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22356
22357 2010-12-19  Bruno Haible  <bruno@clisp.org>
22358
22359         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22360         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22361         _GL_CXXALIAS_SYS.
22362
22363 2010-12-19  Bruno Haible  <bruno@clisp.org>
22364
22365         stdbool: Relax test.
22366         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22367         address to 'bool' work in static initializer, for compilers other than
22368         GCC.
22369
22370 2010-12-19  Bruno Haible  <bruno@clisp.org>
22371
22372         ftello: Add missing declaration on OSF/1 5.1.
22373         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22374         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22376         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22377         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22378
22379 2010-12-19  Bruno Haible  <bruno@clisp.org>
22380
22381         fseeko: Add missing declaration on OSF/1 5.1.
22382         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22385         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22386         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22387
22388 2010-12-19  Bruno Haible  <bruno@clisp.org>
22389
22390         fchdir: Add missing declaration on OSF/1 5.1.
22391         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22394         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22395         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22396
22397 2010-12-19  Bruno Haible  <bruno@clisp.org>
22398
22399         relocatable-prog-wrapper: Separate from relocatable-prog.
22400         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22401         uninstall-relocwrapper rule here.
22402         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22403         Reported by Ian Beckwith <ianb@erislabs.net>.
22404
22405 2010-12-19  Bruno Haible  <bruno@clisp.org>
22406
22407         unistr/u8-mbsnlen: Add missing dependency.
22408         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22409         Reported by Ian Beckwith <ianb@erislabs.net>.
22410
22411 2010-12-19  Bruno Haible  <bruno@clisp.org>
22412
22413         iconv: Make it possible again to use this module without 'iconv-h'.
22414         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22415         if it is not defined.
22416         Reported by Ian Beckwith <ianb@erislabs.net>.
22417
22418 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22419
22420         acl: port to Solaris 8 when copying from tmpfs to ufs
22421         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22422         error number.  Problem observed on Solaris 8 with latest
22423         coreutils, with "mv A B", where A is on a tmpfs file system and B
22424         is on a ufs file system.  This caused coreutils' mv/part-symlink
22425         test to fail.
22426
22427         tests: set fail=0 at start
22428         * tests/init.sh (setup_): Move fail=0 initialization here ...
22429         (mktempd_): ... from here, so that tests can rely on fail being
22430         set to 0 initially.  This fixes a problem in coreutils; see:
22431         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22432
22433 2010-12-18  Bruno Haible  <bruno@clisp.org>
22434
22435         memmem-simple: Stylistic changes.
22436         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22437         Fix preprocessor directive indentation.
22438
22439 2010-12-15  Pádraig Brady <P@draigBrady.com>
22440
22441         memmem, memmem-simple: reorganize and expand empty needle check
22442         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22443         functional checks to memmem-simple so that one has a fully functional
22444         memmem by using just this module.
22445         Restrict the performance only check to the memmem module.
22446         Also expand the empty needle check to ensure the correct
22447         pointer is returned, not just a non NULL pointer.
22448         * doc/glibc-functions/memmem.texi: Rearrange the portability
22449         documentation to correlate with the rearranged checks.
22450         Clarify exactly how the memmem and memmem-simple modules
22451         relate to each other.
22452
22453 2010-12-15  Pádraig Brady <P@draigBrady.com>
22454             Bruno Haible  <bruno@clisp.org>
22455
22456         Improve cross-compilation guesses for uClibc.
22457         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22458         that uClibc does not have the glibc bug.
22459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22460         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22461
22462 2010-12-14  Eric Blake  <eblake@redhat.com>
22463
22464         configmake: provide fallbacks for oldest supported autotools
22465         * m4/configmake.m4: New file.
22466         * modules/configmake (Files): Ship it.
22467         (configure.ac): Use it to guarantee fallbacks.
22468
22469 2010-12-13  Pádraig Brady <P@draigBrady.com>
22470
22471         read-file: Improve handling of large files
22472         * lib/read-file.c (fread_file): Minimize realloc()s
22473         for regular files, and better manage sizes around SIZE_MAX.
22474
22475 2010-12-13  Eric Blake  <eblake@redhat.com>
22476
22477         cloexec, fcntl: relax license
22478         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22479         consent from all contributors.
22480         * modules/fcntl (License): Likewise.
22481
22482 2010-12-10  Bruno Haible  <bruno@clisp.org>
22483
22484         Tests for module 'pipe-posix'.
22485         * modules/pipe-posix-tests: New file.
22486         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22487
22488 2010-12-10  Bruno Haible  <bruno@clisp.org>
22489
22490         pipe-posix: Make it work in C++ mode.
22491         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22492         (pipe): Use common idiom, not a macro definition.
22493         * lib/pipe.c: New file.
22494         * m4/pipe.m4: New file.
22495         * modules/pipe-posix (Description): Enhance.
22496         (Files): Add lib/pipe.c, m4/pipe.m4.
22497         (configure.ac): Invoke gl_FUNC_PIPE.
22498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22499         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22500         * tests/test-unistd-c++.cc: Check the signature of pipe.
22501
22502 2010-12-10  Bruno Haible  <bruno@clisp.org>
22503
22504         Rename module 'pipe' to 'spawn-pipe'.
22505         * modules/spawn-pipe: New file, renamed from modules/pipe.
22506         (Files, configure.ac, Makefile.am): Update.
22507         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22508         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22509         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22510         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22511         "spawn-pipe.h" instead of "pipe.h".
22512         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22513         to gl_SPAWN_PIPE.
22514         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22515         (Files, Makefile.am): Update.
22516         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22517         Update.
22518         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22519         Include "spawn-pipe.h" instead of "pipe.h".
22520         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22521         * lib/javacomp.c: Likewise.
22522         * lib/javaversion.c: Likewise.
22523         * lib/pipe-filter-gi.c: Likewise.
22524         * lib/pipe-filter-ii.c: Likewise.
22525         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22526         * modules/javacomp (Depends-on): Likewise.
22527         * modules/javaversion (Depends-on): Likewise.
22528         * modules/pipe-filter-gi (Depends-on): Likewise.
22529         * modules/pipe-filter-ii (Depends-on): Likewise.
22530         * MODULES.html.sh (Executing programs): Update.
22531         * NEWS: Mention the change.
22532
22533 2010-12-10  Eric Blake  <eblake@redhat.com>
22534
22535         pipe-posix: new module
22536         * modules/pipe-posix: New file.
22537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22538         (gl_UNISTD_H): Check for declaration.
22539         * modules/unistd (Makefile.am): Substitute it.
22540         * lib/unistd.in.h (pipe): Provide it for mingw.
22541         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22542         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22543
22544 2010-12-07  Bruno Haible  <bruno@clisp.org>
22545
22546         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22547         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22548         u8_strcmp_gnu.
22549         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22550
22551 2010-12-06  Bruno Haible  <bruno@clisp.org>
22552
22553         Update internal documentation.
22554         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22555
22556 2010-12-04  Bruno Haible  <bruno@clisp.org>
22557
22558         Put more information about failed tests into the test return codes.
22559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22560         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22561         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22562         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22563         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22564         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22565         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22566         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22567         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22569         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22570         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22571         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22572         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22573         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22574         returns a bit mask.
22575         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22576         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22577         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22578         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22579         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22580         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22583         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22584         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22585         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22586         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22587         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22588         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22589         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22590         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22591         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22592         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22594         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22595         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22596         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22598         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22599         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22600         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22601         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22602         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22603         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22604         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22605         gl_PRINTF_PRECISION): Likewise.
22606         * m4/regex.m4 (gl_REGEX): Likewise.
22607         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22608         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22609         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22610         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22611         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22613         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22614         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22615         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22616         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22617         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22618         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22619         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22620         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22621         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22622         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22623         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22624         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22626         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22627         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22628         enumerated value.
22629         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22630
22631 2010-12-04  Bruno Haible  <bruno@clisp.org>
22632
22633         Update for Solaris 11 2010-11.
22634         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22635         Express, released in November 2010.
22636
22637 2010-12-04  Bruno Haible  <bruno@clisp.org>
22638
22639         nproc: Relax license.
22640         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22641         and Paul Eggert.
22642         Requested by Ludovic Courtès <ludo@gnu.org>.
22643
22644 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22645
22646         utimecmp: fine-grained src to nearby coarse-grained dest
22647
22648         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22649         and the source is on a file system with higher-resolution time
22650         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22651         not work, and the time stamps are close together, the algorithm to
22652         determine the exact resolution from the read-back mtime was buggy:
22653         it had a "!=" where it should have had an "==".  This bug has been
22654         in the code ever since it was introduced to gnulib.
22655         Problem reported by Dan Jacobson in
22656         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22657
22658 2010-11-30  Bruno Haible  <bruno@clisp.org>
22659
22660         strerror_r-posix: Fix autoconf test.
22661         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22662
22663 2010-11-28  Bruno Haible  <bruno@clisp.org>
22664             Paul Eggert  <eggert@cs.ucla.edu>
22665
22666         Tests for module 'getdomainname'.
22667         * modules/getdomainname-tests: New file.
22668         * tests/test-getdomainname.c: New file, based on
22669         tests/test-gethostname.c.
22670
22671 2010-11-28  Bruno Haible  <bruno@clisp.org>
22672             Paul Eggert  <eggert@cs.ucla.edu>
22673
22674         getdomainname: Use the system function when possible.
22675         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22676         (getdomainname): Replace if needed. Provide the declaration if it is
22677         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22678         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22679         (getdomainname): When the system has getdomainname, call the system
22680         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22681         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22682         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22683         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22684         the function if its second argument is of type 'int' or if it is found
22685         in libnsl.
22686         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22687         <sys/systeminfo.h> and sysinfo().
22688         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22690         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22691         HAVE_GETDOMAINNAME.
22692         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22693         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22694         * doc/glibc-functions/getdomainname.texi: Document the problems with
22695         the getdomainname declaration.
22696
22697 2010-11-28  Bruno Haible  <bruno@clisp.org>
22698
22699         sys_socket: Ensure ss_family field on AIX.
22700         * lib/sys_socket.in.h (ss_family): New macro definition.
22701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22702         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22703         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22704         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22705         * modules/sys_socket (Makefile.am): Substitute
22706         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22707         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22708
22709 2010-11-27  Bruno Haible  <bruno@clisp.org>
22710
22711         readline: Improve configure output.
22712         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22713         "checking for readline..." result understandable.
22714
22715 2010-11-27  Bruno Haible  <bruno@clisp.org>
22716
22717         *printf-posix: Detect a bug on Solaris 10/x86.
22718         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22719         for floating-point output.
22720         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22721         directive.
22722         * tests/test-snprintf-posix.h (test_function): Likewise.
22723         * tests/test-sprintf-posix.h (test_function): Likewise.
22724         * tests/test-vasprintf-posix.c (test_function): Likewise.
22725         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22726         * doc/posix-functions/printf.texi: Likewise.
22727         * doc/posix-functions/snprintf.texi: Likewise.
22728         * doc/posix-functions/sprintf.texi: Likewise.
22729         * doc/posix-functions/vfprintf.texi: Likewise.
22730         * doc/posix-functions/vprintf.texi: Likewise.
22731         * doc/posix-functions/vsnprintf.texi: Likewise.
22732         * doc/posix-functions/vsprintf.texi: Likewise.
22733         * doc/glibc-functions/obstack_printf.texi: Likewise.
22734         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22735
22736 2010-11-27  Bruno Haible  <bruno@clisp.org>
22737
22738         Fix link error when module libunistring-optional is in use.
22739         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22740         * modules/striconveha-tests (Makefile.am): Likewise.
22741
22742 2010-11-27  Bruno Haible  <bruno@clisp.org>
22743
22744         regex: Mention link dependencies.
22745         * modules/regex (Link): New section.
22746         * modules/rpmatch (Link): Likewise.
22747         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22748
22749 2010-11-27  Bruno Haible  <bruno@clisp.org>
22750
22751         ftoastr: Fix compilation error on Solaris.
22752         * lib/ftoastr.c: Include <config.h>.
22753
22754 2010-11-27  Bruno Haible  <bruno@clisp.org>
22755
22756         getloadavg: Update documentation.
22757         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22758
22759 2010-11-27  Bruno Haible  <bruno@clisp.org>
22760
22761         sys_socket: Fix test whether the functions are declared.
22762         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22763         not <sys/select.h>.
22764
22765 2010-11-27  Bruno Haible  <bruno@clisp.org>
22766
22767         getpass: Make sure to get system declaration on some platforms.
22768         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22769         gl_USE_SYSTEM_EXTENSIONS.
22770         * modules/getpass (Depends-on): Add extensions.
22771
22772 2010-11-26  Bruno Haible  <bruno@clisp.org>
22773
22774         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22775         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22776         'iconv' module is present.
22777         (ICONV_CONST): New macro.
22778         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22779         ICONV_CONST.
22780         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22781         set ICONV_CONST.
22782         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22783         here.
22784         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22785         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22786         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22787         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22788         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22789         present.
22790
22791 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22792
22793         ftoastr: comment fix
22794         * lib/ftoastr.c: "little" -> "little or no" in comment
22795
22796 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22797
22798         stdint: port to GCC 4.3 + OSX + Octave
22799         On this platform, stdint.h is buggy and defines int64_t to long
22800         long int.  The replacement defined it to long int, causing
22801         problems with C++ style name mangling.  Instead, trust the system
22802         definition if INT64_MAX is defined, and likewise for the unsigned
22803         variant.   Problem reported by Jarno Rajahalme in
22804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22805         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22806         and don't mess with int64_t and INT64_MAX in this case.
22807         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22808
22809 2010-11-24  Bruno Haible  <bruno@clisp.org>
22810
22811         doc: Corrections regarding MacOS X 10.4 and 10.5.
22812         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22813         MacOS X.
22814         Reported by Simon Josefsson.
22815
22816 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22817
22818         Uninstall ".bin" files installed by relocwrapper.
22819         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22820         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22821         unless it is already there.
22822
22823 2010-11-21  Bruno Haible  <bruno@clisp.org>
22824
22825         Update for NetBSD 5.0.
22826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22827         NetBSD; the test fails on NetBSD 5.0.
22828         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22829         about NetBSD.
22830
22831 2010-11-21  Bruno Haible  <bruno@clisp.org>
22832
22833         Update for HP-UX 11.23 and HP-UX 11.31.
22834         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22835         HP-UX.
22836
22837 2010-11-21  Bruno Haible  <bruno@clisp.org>
22838
22839         Update for MacOS X 10.5.
22840         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22841         MacOS X; the test fails on MacOS X 10.5.8.
22842         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22843         about MacOS X.
22844
22845 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
22846
22847         bootstrap: add bootstrap_sync option.
22848         See discussion at
22849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
22850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
22851         * build-aux/bootstrap: Accept --bootstrap-sync to update
22852         bootstrap if it is not identical to the local gnulib's
22853         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
22854         enable this by default.  Accept --no-bootstrap-sync to disable
22855         it.
22856
22857 2010-11-20  Bruno Haible  <bruno@clisp.org>
22858
22859         Ensure that <features.h> is included before __GLIBC__ is tested.
22860         * lib/printf-parse.h: Include <features.h>.
22861         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
22862         Reported by Mike Frysinger <vapier@gentoo.org>.
22863
22864         Ensure that <features.h> is included before __GLIBC__ is tested.
22865         * lib/wchar.in.h: Include <features.h>.
22866         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
22867         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
22868         Reported by Mike Frysinger <vapier@gentoo.org>.
22869
22870         Ensure that <features.h> is included before __GLIBC__ is tested.
22871         * lib/arpa_inet.in.h: Include <features.h>.
22872         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
22873         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
22874         Reported by Mike Frysinger <vapier@gentoo.org>.
22875
22876         Ensure that <features.h> is included before __GLIBC__ is tested.
22877         * build-aux/link-warning.h: Include <features.h>.
22878         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
22879         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
22880         Reported by Mike Frysinger <vapier@gentoo.org>.
22881
22882         Ensure that <features.h> is included before __GLIBC__ is tested.
22883         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
22884         Reported by Mike Frysinger <vapier@gentoo.org>.
22885
22886 2010-11-20  Bruno Haible  <bruno@clisp.org>
22887
22888         memmem: Fix autoconf test.
22889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
22890
22891 2010-11-20  Bruno Haible  <bruno@clisp.org>
22892
22893         Port to uClibc.
22894         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
22895         * lib/fcntl.in.h: Likewise.
22896         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
22897         * lib/mbrtowc.c (mbrtowc): Likewise.
22898         * lib/relocatable.c (find_shared_library_fullname): Likewise.
22899         * lib/strerror_r.c: Likewise.
22900         * lib/unistr/u8-strnlen.c: Likewise.
22901         * lib/vasnprintf.c (decimal_point_char): Likewise.
22902         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22903         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22905         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22906         * tests/test-sigaction.c (handler, main): Likewise.
22907         * lib/freading.h: Treat uClibc like a non-glibc platform.
22908         * lib/freading.c: Likewise.
22909         * lib/gettext.h: Likewise.
22910         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
22911         Likewise.
22912         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
22913         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22914         * lib/propername.c (proper_name_utf8): Likewise.
22915         * lib/spawn.in.h: Likewise.
22916         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
22917         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
22918         mem_cd_iconveh_internal): Likewise.
22919         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
22920         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22921         strstr, strcasestr): Likewise.
22922         * lib/unicodeio.c (unicode_to_mb): Likewise.
22923         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
22924         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
22925         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
22926         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
22927         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
22928         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
22929         * lib/unistr/u8-stpncpy.c: Likewise.
22930         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22931         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
22932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22933         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22934         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22935         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
22936         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
22937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
22938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
22939         Likewise.
22940         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22941         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22942         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22943         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22944         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22945         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22946         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22947         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22948         * tests/test-getopt.h (OPTIND_MIN): Likewise.
22949         * tests/test-striconveha.c (main): Likewise.
22950         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22951         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
22952         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
22953         * doc/posix-functions/getline.texi: Likewise.
22954         Reported by Mike Frysinger <vapier@gentoo.org>.
22955
22956 2010-11-20  Bruno Haible  <bruno@clisp.org>
22957
22958         nproc: Fix condition.
22959         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
22960         HAVE_PTHREAD_AFFINITY_NP.
22961
22962 2010-11-20  Bruno Haible  <bruno@clisp.org>
22963
22964         Fix a comment.
22965         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
22966
22967 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
22968
22969         ftoastr: don't assume snprintf
22970         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
22971         Implement a subset of snprintf here, by using sprintf safely.
22972         * modules/ftoastr (Depends-on): Remove snprintf.
22973
22974 2010-11-19  Jim Meyering  <meyering@redhat.com>
22975
22976         test-rename.h: fix compilation failure
22977         * tests/test-rename.h (test_rename): Add omitted "}".
22978
22979 2010-11-17  Jim Meyering  <meyering@redhat.com>
22980
22981         maint.mk: add a URL discussing the no-@acronym policy
22982         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
22983
22984 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22985
22986         ftoastr: depend on snprintf, improve comments
22987         * lib/ftoastr.c: Also mention Loitsch's draft.
22988         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
22989         needed in the current implementation, but it might simplify
22990         speeding up the code later.
22991         * modules/ftoastr: Depend on snprintf; this improves portability.
22992         Suggested by Bruno Haible in the same email.
22993
22994         ftoastr: port to hosts lacking strtof and strtold
22995         Problem reported by Bruno Haible in
22996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
22997         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
22998         environment and strtold (and presumably strtof) are not available.
22999         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23000         (configure.ac): Require gl_C99_STRTOLD.
23001
23002 2010-11-18  Bruno Haible  <bruno@clisp.org>
23003
23004         c-strtold: Avoid link error on AIX 7.
23005         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23006         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23007         (gl_C_STRTOLD): Test whether strtold_l exists.
23008         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23009
23010 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23011
23012         intprops: new macro INT_BITS_STRLEN_BOUND
23013         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23014         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23015         not exposed.  Also, it uses a slightly tighter bound than before;
23016         though this makes no practical difference, we might as well be as
23017         tight as we easily can.
23018
23019         ftoastr: new module, for lossless conversion of floats to short strings
23020         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23021         * modules/ftoastr: New files.
23022
23023 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23024
23025         bootstrap: port to Solaris sed
23026         * build-aux/bootstrap (get_version): Port to Solaris sed.
23027         See Ralf Wildenhues's note in
23028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23029
23030 2010-11-14  Jim Meyering  <meyering@redhat.com>
23031
23032         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23033         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23034         and move definition closer to sole use.
23035
23036 2010-11-13  Jim Meyering  <meyering@redhat.com>
23037
23038         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23039         Now we require at least autoconf-2.59, which means the work-around
23040         is no longer needed.
23041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23042         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23043         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23044         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23045         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23046
23047 2010-11-13  Bruno Haible  <bruno@clisp.org>
23048
23049         rename, renameat: Avoid test failures at NFS mounted locations.
23050         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23051         functions.
23052         (test_rename): Use assert_nonexistent.
23053         * tests/test-rename.c: Include <dirent.h>.
23054         * tests/test-renameat.c: Likewise.
23055         Reported by Gary V. Vaughan <gary@gnu.org>.
23056
23057         rename, renameat: Document Linux bug with NFS
23058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23059         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23060         * doc/posix-functions/renameat.texi: Likewise.
23061         Suggested by Eric Blake.
23062
23063 2010-11-13  Bruno Haible  <bruno@clisp.org>
23064
23065         rename test: Add comments.
23066         * tests/test-rename.h (test_rename): Add structure and comments.
23067
23068 2010-11-13  Eric Blake  <eblake@redhat.com>
23069
23070         maintainer-makefile: cover a few more files
23071         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23072         scripts generated within C files, for libvirt.
23073
23074 2010-11-13  Bruno Haible  <bruno@clisp.org>
23075
23076         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23077         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23078         character, return the number of bytes that belong together, not always
23079         1.
23080         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23081         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23082         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23083         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23084         number of bytes of an invalid character.
23085         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23086         (main): Invoke it.
23087         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23088         results.
23089         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23090         malformed byte sequences.
23091         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23092         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23093         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23094         Reported by Ben Pfaff and Paolo Bonzini.
23095
23096 2010-11-13  Bruno Haible  <bruno@clisp.org>
23097
23098         openat: Work around glibc bug with fchownat() and empty file names.
23099         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23100         (gl_FUNC_FCHOWNAT): Invoke it.
23101         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23102         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23103         Reported by Gary V. Vaughan <gary@gnu.org>.
23104
23105 2010-11-13  Bruno Haible  <bruno@clisp.org>
23106
23107         openat: Ensure autoconf macro ordering.
23108         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23109         gl_USE_SYSTEM_EXTENSIONS.
23110         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23111
23112 2010-11-13  Bruno Haible  <bruno@clisp.org>
23113
23114         Update comments.
23115         * lib/unistr/u8-check.c: Update file name in comments.
23116         * lib/unistr/u8-mblen.c: Likewise.
23117         * lib/unistr/u8-prev.c: Likewise.
23118         * lib/unistr/u8-strmblen.c: Likewise.
23119         * lib/unistr/u8-strmbtouc.c: Likewise.
23120
23121 2010-11-13  Jim Meyering  <meyering@redhat.com>
23122
23123         tests: avoid test failure on Solaris 10 due to lack of PATH export
23124         * tests/test-update-copyright.sh: Don't forget to export PATH.
23125
23126         init.sh: ensure that IFS is defined, just in case...
23127         * tests/init.sh (setup_): Ensure that IFS is defined,
23128         so that saving and restoring it works as expected.  This
23129         appears to be useful at least for an old version of dash
23130         from a long time ago (RH 6).  See here for details:
23131         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23132
23133         maint.mk: tighten "test a == b" check
23134         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23135         test to files that contain something like #!/bin/sh.
23136         Without this, coreutils would get two false positives in
23137         the comments of C source files.
23138
23139 2010-11-12  Eric Blake  <eblake@redhat.com>
23140
23141         bootstrap: fix typo in previous attempt
23142         * build-aux/bootstrap (buildreq): Correct the grouping.
23143         Reported by Paul Eggert.
23144
23145         maintainer-makefile: prohibit test x == x
23146         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23147         Based on a report by Matthias Bolte.
23148
23149         bootstrap: allow FreeBSD gzip
23150         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23151         which has no '.' and goes to stderr.
23152         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23153         Reported by Matthias Bolte.
23154
23155         maintainer-makefile: check for i18n setup
23156         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23157         will likely work.
23158
23159 2010-11-12  Bruno Haible  <bruno@clisp.org>
23160
23161         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23162         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23163         * lib/nanosleep.c (nanosleep): Likewise.
23164
23165 2010-11-11  Bruno Haible  <bruno@clisp.org>
23166
23167         fcntl-h: Fix for use of C++ on glibc systems.
23168         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23169         also on glibc systems in C++ mode.
23170         Reported by Gary V. Vaughan <gary@gnu.org>.
23171
23172 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23173
23174         mknod: avoid false failure with dash
23175         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23176
23177 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23178
23179         unlink: Fix "is it should" typo in diagnostic.
23180         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23182
23183 2010-11-11  Bruno Haible  <bruno@clisp.org>
23184
23185         Tests for module 'strerror_r-posix'.
23186         * modules/strerror_r-posix-tests: New file.
23187         * tests/test-strerror_r.c: New file.
23188         * tests/test-string-c++.cc: Check the signature of strerror_r.
23189
23190         New module 'strerror_r-posix'.
23191         * lib/string.in.h (strerror_r): New declaration.
23192         * lib/strerror_r.c: New file.
23193         * m4/strerror_r.m4: New file.
23194         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23195         of strerror_r.
23196         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23197         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23198         * modules/strerror_r-posix: New file.
23199         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23200         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23201         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23202         portability problems.
23203
23204 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23205
23206         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23207         line is also considered for output. Quoted function name in shell
23208         command, so temporary files for functions like MyClass::operator()
23209         are removed correctly without errors.
23210
23211 2010-11-09  Bruno Haible  <bruno@clisp.org>
23212
23213         * doc/posix-functions/strerror.texi: List more failing platforms.
23214
23215         * doc/posix-functions/strerror.texi: Add a comment.
23216
23217 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23218
23219         fdopendir: fix bug on MacOS X when low on file descriptors
23220
23221         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23222         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23223         All callers changed.
23224         (fdopendir): Invoke save_cwd at the top level, not after using
23225         multiple dup() calls to use up file descriptors.  Then retry
23226         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23227         less than the maximum number of open file descriptors, because
23228         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23229         on Mac OS X 10.6.4 for tar 1.24
23230         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23231         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23232         and for tar 1.25
23233         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23234
23235 2010-11-07  Bruno Haible  <bruno@clisp.org>
23236
23237         vasnprintf: Support I flag on glibc systems.
23238         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23239         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23240         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23241         snprintf function.
23242         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23243         glibc systems.
23244         * tests/test-vasnprintf-posix3.c: New file.
23245         * modules/vasnprintf-posix-tests (Files): Add it.
23246         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23247
23248 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23249
23250         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23251         * MODULES.html.sh: For compiler warnings, use name
23252         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23253
23254 2010-11-05  Eric Blake  <eblake@redhat.com>
23255
23256         ceil, floor: avoid spurious failure with icc
23257         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23258         [denormals-as-zero] when optimizing without -mieee-fp option.
23259         * tests/test-floorf2.c (floorf_reference): Likewise.
23260         * tests/test-ceilf1.c (dummy): New function.
23261         (main): Use it to outsmart icc's optimization.
23262         * tests/test-floorf1.c (dummy, main): Likewise.
23263
23264         tests: require working signbit
23265         * modules/ceilf-tests (Depends-on): Add signbit.
23266         * modules/ceill-tests (Depends-on): Likewise.
23267         * modules/floorf-tests (Depends-on): Likewise.
23268         * modules/floorl-tests (Depends-on): Likewise.
23269         * modules/round-tests (Depends-on): Likewise.
23270         * modules/roundf-tests (Depends-on): Likewise.
23271         * modules/roundl-tests (Depends-on): Likewise.
23272         * modules/trunc-tests (Depends-on): Likewise.
23273         * modules/truncf-tests (Depends-on): Likewise.
23274         * modules/truncl-tests (Depends-on): Likewise.
23275
23276         strtod: work around icc bug
23277         * lib/strtod.c (minus_zero): Define to working value.
23278         (strtod): Use it to avoid icc bug.
23279
23280         copysign: enhance tests
23281         * modules/copysign-tests (Files): Add minus-zero.h.
23282         * tests/test-copysign.c (main): Also test zeros.
23283
23284 2010-11-04  Eric Blake  <eblake@redhat.com>
23285
23286         ceil, floor, round, trunc: enhance tests of -0
23287         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23288         * tests/test-ceill.c (main): Likewise.
23289         * tests/test-floorf1.c (main): Likewise.
23290         * tests/test-floorl.c (main): Likewise.
23291         * tests/test-round1.c (main): Likewise.
23292         * tests/test-roundf1.c (main): Likewise.
23293         * tests/test-roundl.c (main): Likewise.
23294         * tests/test-trunc1.c (main): Likewise.
23295         * tests/test-truncf1.c (main): Likewise.
23296         * tests/test-truncl.c (main): Likewise.
23297
23298 2010-11-04  Eric Blake  <eblake@redhat.com>
23299
23300         frexp, tests: work around ICC bug with -zero
23301         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23302         works with more compilers.
23303         * tests/minus-zero.h: New file.
23304         * modules/ceilf-tests (Files): Include it.
23305         * modules/ceill-tests (Files): Likewise.
23306         * modules/floorf-tests (Files): Likewise.
23307         * modules/floorl-tests (Files): Likewise.
23308         * modules/frexp-nolibm-tests (Files): Likewise.
23309         * modules/frexp-tests (Files): Likewise.
23310         * modules/frexpl-nolibm-tests (Files): Likewise.
23311         * modules/frexpl-tests (Files): Likewise.
23312         * modules/isnan-tests (Files): Likewise.
23313         * modules/isnand-nolibm-tests (Files): Likewise.
23314         * modules/isnand-tests (Files): Likewise.
23315         * modules/isnanf-nolibm-tests (Files): Likewise.
23316         * modules/isnanf-tests (Files): Likewise.
23317         * modules/isnanl-nolibm-tests (Files): Likewise.
23318         * modules/isnanl-tests (Files): Likewise.
23319         * modules/round-tests (Files): Likewise.
23320         * modules/roundf-tests (Files): Likewise.
23321         * modules/roundl-tests (Files): Likewise.
23322         * modules/ldexpl-tests (Files): Likewise.
23323         * modules/signbit-tests (Files): Likewise.
23324         * modules/snprintf-posix-tests (Files): Likewise.
23325         * modules/sprintf-posix-tests (Files): Likewise.
23326         * modules/strtod-tests (Files): Likewise.
23327         * modules/trunc-tests (Files): Likewise.
23328         * modules/truncf-tests (Files): Likewise.
23329         * modules/truncl-tests (Files): Likewise.
23330         * modules/vsnprintf-posix-tests (Files): Likewise.
23331         * modules/vsprintf-posix-tests (Files): Likewise.
23332         * modules/vasnprintf-posix-tests (Files): Likewise.
23333         * modules/vasprintf-posix-tests (Files): Likewise.
23334         * tests/test-ceilf1.c (main): Use it.
23335         * tests/test-ceill.c (main): Likewise.
23336         * tests/test-floorf1.c (main): Likewise.
23337         * tests/test-floorl.c (main): Likewise.
23338         * tests/test-frexp.c (main): Likewise.
23339         * tests/test-frexpl.c (main): Likewise.
23340         * tests/test-isnan.c (main): Likewise.
23341         * tests/test-isnand.h (main): Likewise.
23342         * tests/test-isnanf.h (main): Likewise.
23343         * tests/test-isnanl.h (main): Likewise.
23344         * tests/test-ldexpl.c (main): Likewise.
23345         * tests/test-round.c (main): Likewise.
23346         * tests/test-roundf.c (main): Likewise.
23347         * tests/test-roundl.c (main): Likewise.
23348         * tests/test-signbit.c (test_signbitf, test_signbitd)
23349         (test_signbitl): Likewise.
23350         * tests/test-snprintf-posix.h (test_function): Likewise.
23351         * tests/test-sprintf-posix.h (test_function): Likewise.
23352         * tests/test-strtod.c (main): Likewise.
23353         * tests/test-trunc1.c (main): Likewise.
23354         * tests/test-truncf1.c (main): Likewise.
23355         * tests/test-truncl.c (main): Likewise.
23356
23357         isnanl: work around icc bug
23358         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23359
23360 2010-11-03  Eric Blake  <eblake@redhat.com>
23361
23362         tests: fix compiler warnings
23363         * tests/test-getopt.h (test_getopt): Fix condition.
23364         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23365         * tests/test-pipe2.c (main): Likewise.
23366         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23367
23368         utimens: fix broken m4 test
23369         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23370
23371 2010-10-28  Bruno Haible  <bruno@clisp.org>
23372
23373         posix_spawn*, getdtablesize: Relax license.
23374         * modules/posix_spawn (License): Change to LGPLv2+.
23375         * modules/posix_spawnp (License): Likewise.
23376         * modules/posix_spawn-internal (License): Likewise.
23377         * modules/posix_spawnattr_init (License): Likewise.
23378         * modules/posix_spawnattr_getflags (License): Likewise.
23379         * modules/posix_spawnattr_setflags (License): Likewise.
23380         * modules/posix_spawnattr_getpgroup (License): Likewise.
23381         * modules/posix_spawnattr_setpgroup (License): Likewise.
23382         * modules/posix_spawnattr_getschedparam (License): Likewise.
23383         * modules/posix_spawnattr_setschedparam (License): Likewise.
23384         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23385         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23386         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23387         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23388         * modules/posix_spawnattr_getsigmask (License): Likewise.
23389         * modules/posix_spawnattr_setsigmask (License): Likewise.
23390         * modules/posix_spawnattr_destroy (License): Likewise.
23391         * modules/posix_spawn_file_actions_init (License): Likewise.
23392         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23393         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23394         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23395         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23396         * modules/getdtablesize (License): Likewise.
23397         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23398
23399 2010-10-26  Bruno Haible  <bruno@clisp.org>
23400
23401         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23402         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23403         Cygwin and mingw.
23404         Suggested by Eric Blake.
23405
23406 2010-10-26  Bruno Haible  <bruno@clisp.org>
23407
23408         stdio: Work around compilation error due to renameat() on Solaris 10.
23409         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23410         * lib/renameat.c: Don't include <unistd.h> here.
23411         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23412         Reported by Paul Eggert and Eric Blake.
23413
23414 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23415
23416         renameat: port to Solaris 10, which declares renameat in unistd.h
23417
23418         * lib/renameat.c: Include unistd.h before stdio.h, because
23419         Solaris 10 declares renameat in unistd.h.  Problem encountered
23420         when building GNU tar 1.24 on Solaris 10.
23421
23422 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23423
23424         fdopendir: fix C89 compilation
23425         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23426         compilers.
23427
23428 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23429
23430         inttostr: simplify by removing unnecessary redundancy
23431         * lib/anytostr.c: Don't include verify.h.
23432         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23433         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23434         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23435         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23436         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23437         Likewise.
23438         * modules/inttostr (Depends-on): Remove 'verify'.
23439
23440 2010-10-23  Bruno Haible  <bruno@clisp.org>
23441
23442         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23443         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23444         Reported by Eric Blake.
23445
23446 2010-10-23  Bruno Haible  <bruno@clisp.org>
23447
23448         Tests: Fix LOCALE_JA on MirBSD 10.
23449         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23450         to an UTF-8 locale.
23451         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23453         Reported by Eric Blake.
23454
23455 2010-10-21  Bruno Haible  <bruno@clisp.org>
23456
23457         nl_langinfo test: Avoid test failure on NetBSD 5.
23458         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23459         Reported by Eric Blake.
23460
23461 2010-10-21  Eric Blake  <eblake@redhat.com>
23462
23463         c-stack: work around libsigsegv 2.8 bug
23464         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23465         overflow on at least PowerPC64.
23466
23467 2010-10-17  Bruno Haible  <bruno@clisp.org>
23468
23469         userspec: Drop redundant file.
23470         * modules/userspec (Files): Remove lib/inttostr.h.
23471
23472 2010-10-17  Bruno Haible  <bruno@clisp.org>
23473
23474         nl_langinfo tests: Silence some warnings.
23475         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23476         Reported by Jim Meyering.
23477
23478 2010-10-17  Bruno Haible  <bruno@clisp.org>
23479
23480         Make use of GCC's attribute __alloc_size__.
23481         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23482         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23483         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23484         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23485         __alloc_size__.
23486         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23487         Suggested by Jim Meyering.
23488
23489 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23490
23491         bootstrap: anchor .gitignore entries.
23492         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23493         with...
23494         (insert_vc_ignore): ... this new function, which prepends `/' to
23495         all .gitignore entries before passing them to
23496         insert_sorted_if_absent.
23497
23498 2010-10-16  Bruno Haible  <bruno@clisp.org>
23499
23500         nextafter: Fix configure check.
23501         * modules/nextafter (configure.ac): Correct expected prototype.
23502
23503 2010-10-16  Bruno Haible  <bruno@clisp.org>
23504
23505         termios: Update documentation.
23506         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23507
23508 2010-10-16  Bruno Haible  <bruno@clisp.org>
23509
23510         tests: Make them compile with TinyCC.
23511         * tests/test-strstr.c (main): Remove parentheses around array
23512         initializer.
23513
23514 2010-10-15  Eric Blake  <eblake@redhat.com>
23515
23516         ignore-value: make header idempotent
23517         * lib/ignore-value.h: Add double-inclusion guards.
23518         Reported by Stefan Berger.
23519
23520 2010-10-15  Jim Meyering  <meyering@redhat.com>
23521
23522         GNUmakefile: handle "stable" target, not "major"
23523         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23524         lists in maint.mk and announce-gen.  Without this, "make stable"
23525         would fail to ensure that $(VERSION) is up to date.
23526
23527 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23528
23529         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23530         & co.
23531
23532 2010-10-14  Bruno Haible  <bruno@clisp.org>
23533
23534         vasnprintf: Don't set errno to 0.
23535         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23536         block that sets it to 0.
23537         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23538
23539 2010-10-14  Bruno Haible  <bruno@clisp.org>
23540
23541         socketlib: Fix.
23542         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23543         gl_PREREQ_SYS_H_WINSOCK2.
23544         Reported by Ian Beckwith <ianb@erislabs.net>.
23545
23546 2010-10-13  Jim Meyering  <meyering@redhat.com>
23547
23548         test-select-stdin.c: avoid warn_unused_result warnings
23549         * tests/test-select-stdin.c: Include "macros.h".
23550         ASSERT that read and fflush succeed.
23551
23552 2010-10-13  Jim Meyering  <meyering@redhat.com>
23553
23554         git-version-gen: do require git-VC'd files in cwd
23555         * build-aux/git-version-gen: Reject a git version string
23556         if there are no commits associated with the current directory.
23557         This avoids an unlikely false-positive (unrelated dir whose parent
23558         repository also contains a tag matching v*), as pointed out
23559         by Giuseppe Scrivano in
23560         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23561
23562 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23563
23564         argv-iter: omit nonconforming declaration
23565         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23566         enum arg_iter_err declaration, which doesn't conform to C99.
23567         Solaris 10 cc warns about this.
23568
23569 2010-10-13  Eric Blake  <eblake@redhat.com>
23570
23571         termios: fix compilation on mingw
23572         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23573         (gl_TERMIOS_H): Adjust it on mingw.
23574         * modules/termios (Makefile.am): Substitute new key.
23575         * lib/termios.in.h (includes): Make include_next conditional.
23576         * doc/posix-headers/termios.texi (termios.h): Update
23577         documentation.
23578         Reported by Daniel P. Berrange.
23579
23580 2010-10-13  Jim Meyering  <meyering@redhat.com>
23581
23582         git-version-gen: don't require that .git/ be in the current dir
23583         * build-aux/git-version-gen: Adjust this script so that it works
23584         when run from any working directory beneath the top-level .git/-
23585         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23586         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23587
23588         test-select: avoid warn_unused_result warnings
23589         * tests/test-select.c: Include "macros.h".
23590         ASSERT that each call to read, write, and pipe succeeds.
23591         While not technically required, also check each "close".
23592         * modules/select-tests (Files): Add tests/macros.h.
23593
23594         test-symlinkat: remove declaration of unused local
23595         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23596
23597         test-inttostr: avoid shadowing warnings
23598         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23599         and use malloc rather than the stack for the same reason as
23600         mentioned in the comment justifying the other allocation.
23601
23602 2010-10-11  Bruno Haible  <bruno@clisp.org>
23603
23604         stdlib: Allow multiple gnulib generated replacements to coexist.
23605         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23606         Reported by Sam Steingold <sds@gnu.org>.
23607
23608 2010-10-11  Jim Meyering  <meyering@redhat.com>
23609
23610         fix a documentation typo
23611         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23612
23613 2010-10-11  Eric Blake  <eblake@redhat.com>
23614
23615         futimens: work around Solaris 11 bug
23616         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23617         * tests/test-futimens.h (test_futimens): Enhance, rather than
23618         weaken test.
23619         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23620
23621 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23622
23623         Indentation.
23624         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23625         higher-level operators more to the left.
23626
23627 2010-10-11  Jim Meyering  <meyering@redhat.com>
23628
23629         test-futimens: avoid unwarranted test failure on Solaris 5.11
23630         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23631         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23632         because it tries to dereference the NULL name argument.
23633
23634 2010-10-11  Bruno Haible  <bruno@clisp.org>
23635
23636         Indentation.
23637         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23638         indentation.
23639
23640 2010-10-11  Jim Meyering  <meyering@redhat.com>
23641
23642         spawn.in.h: make indentation consistent with parentheses
23643         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23644         Make indentation consistent with parentheses.
23645
23646 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23647
23648         Fix mismatched parens in previous commit
23649         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23650         parens.
23651
23652 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23653
23654         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23655
23656         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23657         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23658         * lib/malloca.c: Include "verify.h".
23659         (verify1): Remove, replacing with a verify call.
23660         * lib/relocwrapper.c (verify1): Likewise.
23661         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23662         Likewise.
23663         * modules/malloca (Depends-on): Add 'verify'.
23664         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23665         * modules/vasnprintf (Depends-on): Add 'verify'.
23666         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23667         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23668         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23669         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23670         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23671         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23672         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23673
23674         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23675
23676         Formerly the style was sometimes 2*X - 1, because the C standard
23677         was wrongly thought to disallow ?: in integral constant expressions.
23678         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23679         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23680         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23681         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23682         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23683         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23684         verify that time_t cannot be floating.
23685
23686 2010-10-08  Eric Blake  <eblake@redhat.com>
23687
23688         time: enforce recent POSIX ruling that time_t is integral
23689         * lib/time.in.h (__time_t_must_be_integral): Detect any
23690         problematic systems, allowing the rest of gnulib to assume POSIX.
23691
23692 2010-10-08  Jim Meyering  <meyering@redhat.com>
23693
23694         fdopendir: fix a bug on systems lacking openat and /proc support
23695         OpenBSD 4.7 is one such system.  The most noticeable effect was
23696         failure of any application making nontrivial use of fts: rm, du,
23697         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23698           ./rm: traversal failed: `a': Bad file descriptor
23699         Debugging that, you see that even though FD 6 was closed just
23700         prior to the opendir call in fd_clone_opendir, its resulting
23701         dir->dd_fd was 8, rather than the expected value of 6:
23702
23703         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23704         93                close (fd);
23705         (gdb) n
23706         94                dir = fd_clone_opendir (dupfd);
23707         (gdb) n
23708         95                saved_errno = errno;
23709         (gdb) p dir->dd_fd
23710         $11 = 8
23711
23712         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23713         The problem is that on OpenBSD, fd_clone_opendir has to resort
23714         to using the old-style save/restore CWD mechanism, due to its
23715         lack of openat/proc support, and *that* would steal the FD (6)
23716         that opendir was supposed to use.
23717
23718         The fix is to squirrel away the desired FD so that save_cwd uses a
23719         different one, and then free the dest FD right before calling opendir.
23720         That guarantees opendir will use the required file descriptor.
23721
23722         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23723
23724 2010-10-08  Bruno Haible  <bruno@clisp.org>
23725
23726         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23727         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23728
23729 2010-10-08  Bruno Haible  <bruno@clisp.org>
23730
23731         nanosleep: Make replacement POSIX compliant.
23732         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23733         is out of range.
23734         Reported by Jim Meyering.
23735
23736 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23737
23738         bootstrap: add hook for altering gnulib.mk, for Bison
23739         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23740         the Bison bootstrapping process can rewrite file names and variables
23741         in this file before later parts of 'bootstrap' use the file.
23742         Bison wants to include lib/gnulib.mk from the top-level makefile,
23743         so it needs the file names in this file to be relative to the top
23744         level, not relative to lib; plus it needs variable names to be
23745         rewritten.
23746         (slurp): Use the new function.
23747
23748         bootstrap: reformat for readability
23749         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23750
23751 2010-10-08  Eric Blake  <eblake@redhat.com>
23752
23753         docs: update cygwin progress
23754         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23755         1.7.7.
23756         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23757         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23758         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23759         * doc/posix-functions/carg.texi (carg): Likewise.
23760         * doc/posix-functions/cargf.texi (cargf): Likewise.
23761         * doc/posix-functions/casin.texi (casin): Likewise.
23762         * doc/posix-functions/casinf.texi (casinf): Likewise.
23763         * doc/posix-functions/casinh.texi (casinh): Likewise.
23764         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23765         * doc/posix-functions/catan.texi (catan): Likewise.
23766         * doc/posix-functions/catanf.texi (catanf): Likewise.
23767         * doc/posix-functions/catanh.texi (catanh): Likewise.
23768         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23769         * doc/posix-functions/ccos.texi (ccos): Likewise.
23770         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23771         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23772         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23773         * doc/posix-functions/cexp.texi (cexp): Likewise.
23774         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23775         * doc/posix-functions/cimag.texi (cimag): Likewise.
23776         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23777         * doc/posix-functions/clog.texi (clog): Likewise.
23778         * doc/posix-functions/clogf.texi (clogf): Likewise.
23779         * doc/posix-functions/conj.texi (conj): Likewise.
23780         * doc/posix-functions/conjf.texi (conjf): Likewise.
23781         * doc/posix-functions/cpow.texi (cpow): Likewise.
23782         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23783         * doc/posix-functions/cproj.texi (cproj): Likewise.
23784         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23785         * doc/posix-functions/creal.texi (creal): Likewise.
23786         * doc/posix-functions/crealf.texi (crealf): Likewise.
23787         * doc/posix-functions/csin.texi (csin): Likewise.
23788         * doc/posix-functions/csinf.texi (csinf): Likewise.
23789         * doc/posix-functions/csinh.texi (csinh): Likewise.
23790         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23791         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23792         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23793         * doc/posix-functions/ctan.texi (ctan): Likewise.
23794         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23795         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23796         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23797         * doc/posix-headers/complex.texi (complex.h): Likewise.
23798
23799 2010-10-07  Jim Meyering  <meyering@redhat.com>
23800
23801         parse-datetime: avoid compilation failure on OpenBSD 4.7
23802         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23803         This works around a compilation failure on OpenBSD 4.7:
23804         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23805
23806 2010-10-07  Eric Blake  <eblake@redhat.com>
23807
23808         docs: update cygwin progress
23809         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23810         1.7.6.
23811         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23812         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23813         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23814         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23815         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23816         Likewise.
23817         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23818         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23819         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23820         Likewise.
23821         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23822         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23823         Likewise.
23824         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23825         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23826         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23827         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23828         Likewise.
23829         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23830         Likewise.
23831         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23832
23833         docs: update parse-datetime history
23834         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23835         documentation of this function's history and alternatives.
23836
23837         cygwin: use more robust version check
23838         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23839         exclude an eventual cygwin 1.9.1.
23840         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23842         (gl_FUNC_STRCASESTR): Likewise.
23843         Reported by Bruno Haible.
23844
23845 2010-10-06  Bruno Haible  <bruno@clisp.org>
23846
23847         string, sys_select: Avoid #including large headers unless necessary.
23848         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
23849         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
23850         OSF/1, BeOS, Haiku.
23851         Reported by Jim Meyering.
23852
23853 2010-10-05  Eric Blake  <eblake@redhat.com>
23854
23855         memmem, strstr, strcasestr: fix bug with long periodic needle
23856         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
23857         periodic needle having false positive.
23858         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
23859         and cygwin 1.7.7.
23860         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
23861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23862         (gl_FUNC_STRCASESTR): Likewise.
23863         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23864         * tests/test-memmem.c (main): Expose the bug.
23865         * tests/test-strcasestr.c (main): Likewise.
23866         * tests/test-strstr.c (main): Likewise.
23867         * tests/test-c-strcasestr.c (main): Likewise.
23868         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
23869         * doc/posix-functions/strstr.texi (strstr): Likewise.
23870         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23871         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
23872
23873 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23874
23875         parse-datetime: do some more renaming
23876         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
23877         parse_datetime, not get_date.  Mention the renaming.
23878         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
23879         in comments.
23880         * m4/bison.m4: Likewise.
23881
23882 2010-10-05  Eric Blake  <eblake@redhat.com>
23883
23884         parse-datetime: better name than get_date
23885         * NEWS: Reword the deprecation notice.
23886         * modules/get_date: Rename to modules/parse-datetime.
23887         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
23888         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
23889         * lib/get_date.y: Rename to lib/parse-datetime.y.
23890         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
23891         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
23892         * doc/getdate.texi: Provide fallback wrapper.
23893         * lib/getdate.h: Move guts, and wrap...
23894         * lib/parse-datetime.h: ...new file.
23895         * lib/parse-datetime.y (get_date): Rename...
23896         (parse_datetime): ...to this.
23897         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
23898         (gl_PARSE_DATETIME): ...to this.
23899         * doc/posix-functions/getdate.texi (get_date): Provide fallback
23900         documentation.
23901         * modules/getdate (Files): Provide fallback docs and header.
23902         (Notice, Depends-on): Update references.
23903         * tests/test-parse-datetime.c: Likewise.
23904         * DEPENDENCIES: Likewise.
23905         * MODULES.html.sh (Date and time <time.h>): Likewise.
23906         * doc/parse-datetime.texi (Date input formats)
23907         (Authors of parse_datetime): Likewise.
23908         * modules/parse-datetime (Files, configure.ac, Makefile.am)
23909         (Include): Likewise.
23910         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
23911         * gnulib-tool: Likewise.
23912         * m4/bison.m4 (gl_BISON): Likewise.
23913         Suggested by Bruno Haible.
23914
23915 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23916
23917         more ports to Solaris tr, which needs [] around ranges
23918         * gnulib-tool: Solaris tr needs [] around ranges.
23919         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23920         * tests/test-pipe-filter-gi1.c (main): Likewise.
23921         * tests/test-pipe-filter-ii1.c (main): Likewise.
23922
23923 2010-10-05  Eric Blake  <eblake@redhat.com>
23924
23925         bootstrap: fix Solaris regression
23926         * build-aux/bootstrap (check_versions): Solaris tr still needs []
23927         around ranges.
23928         Reported by Pádraig Brady.
23929
23930         bootstrap: work with pkg-config
23931         * build-aux/bootstrap (check_versions): Also transliterate - in
23932         prerequisite name.
23933         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
23934         prerequisites that were already found, to avoid confusion.
23935         Reported by Justin Clift.
23936
23937         faccessat: remove unused wrappers
23938         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
23939         presence of these wrappers dragged in -lgen on Solaris.
23940         Reported by Clemens Brogi; fix suggested by Paul Eggert.
23941
23942 2010-10-05  Jim Meyering  <meyering@redhat.com>
23943
23944         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
23945         * Makefile (sc_pragma_columns): New syntax-check rule.
23946
23947 2010-10-04  Bruno Haible  <bruno@clisp.org>
23948
23949         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
23950         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
23951         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
23952         Reported by Bruce Korb and Eric Blake.
23953
23954 2010-10-04  Bruno Haible  <bruno@clisp.org>
23955
23956         threadlib: Make option --with-libpth-prefix work.
23957         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
23958         use $LIBPTH, not just -lpth.
23959
23960 2010-10-04  Bruno Haible  <bruno@clisp.org>
23961
23962         Avoid line length limitation from HP NonStop system header files.
23963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
23964         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
23965         * lib/ctype.in.h: Likewise.
23966         * lib/dirent.in.h: Likewise.
23967         * lib/errno.in.h: Likewise.
23968         * lib/fcntl.in.h: Likewise.
23969         * lib/float.in.h: Likewise.
23970         * lib/getopt.in.h: Likewise.
23971         * lib/iconv.in.h: Likewise.
23972         * lib/inttypes.in.h: Likewise.
23973         * lib/langinfo.in.h: Likewise.
23974         * lib/locale.in.h: Likewise.
23975         * lib/math.in.h: Likewise.
23976         * lib/netdb.in.h: Likewise.
23977         * lib/netinet_in.in.h: Likewise.
23978         * lib/poll.in.h: Likewise.
23979         * lib/pthread.in.h: Likewise.
23980         * lib/pty.in.h: Likewise.
23981         * lib/sched.in.h: Likewise.
23982         * lib/se-selinux.in.h: Likewise.
23983         * lib/search.in.h: Likewise.
23984         * lib/signal.in.h: Likewise.
23985         * lib/spawn.in.h: Likewise.
23986         * lib/stdarg.in.h: Likewise.
23987         * lib/stddef.in.h: Likewise.
23988         * lib/stdint.in.h: Likewise.
23989         * lib/stdio.in.h: Likewise.
23990         * lib/stdlib.in.h: Likewise.
23991         * lib/string.in.h: Likewise.
23992         * lib/strings.in.h: Likewise.
23993         * lib/sys_file.in.h: Likewise.
23994         * lib/sys_ioctl.in.h: Likewise.
23995         * lib/sys_select.in.h: Likewise.
23996         * lib/sys_socket.in.h: Likewise.
23997         * lib/sys_stat.in.h: Likewise.
23998         * lib/sys_time.in.h: Likewise.
23999         * lib/sys_times.in.h: Likewise.
24000         * lib/sys_utsname.in.h: Likewise.
24001         * lib/sys_wait.in.h: Likewise.
24002         * lib/sysexits.in.h: Likewise.
24003         * lib/termios.in.h: Likewise.
24004         * lib/time.in.h: Likewise.
24005         * lib/unistd.in.h: Likewise.
24006         * lib/wchar.in.h: Likewise.
24007         * lib/wctype.in.h: Likewise.
24008         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24009         * modules/ctype (Makefile.am): Likewise.
24010         * modules/dirent (Makefile.am): Likewise.
24011         * modules/errno (Makefile.am): Likewise.
24012         * modules/fcntl-h (Makefile.am): Likewise.
24013         * modules/float (Makefile.am): Likewise.
24014         * modules/getopt-posix (Makefile.am): Likewise.
24015         * modules/iconv-h (Makefile.am): Likewise.
24016         * modules/inttypes (Makefile.am): Likewise.
24017         * modules/langinfo (Makefile.am): Likewise.
24018         * modules/locale (Makefile.am): Likewise.
24019         * modules/math (Makefile.am): Likewise.
24020         * modules/netdb (Makefile.am): Likewise.
24021         * modules/netinet_in (Makefile.am): Likewise.
24022         * modules/poll-h (Makefile.am): Likewise.
24023         * modules/pthread (Makefile.am): Likewise.
24024         * modules/pty (Makefile.am): Likewise.
24025         * modules/sched (Makefile.am): Likewise.
24026         * modules/search (Makefile.am): Likewise.
24027         * modules/selinux-h (Makefile.am): Likewise.
24028         * modules/signal (Makefile.am): Likewise.
24029         * modules/spawn (Makefile.am): Likewise.
24030         * modules/stdarg (Makefile.am): Likewise.
24031         * modules/stddef (Makefile.am): Likewise.
24032         * modules/stdint (Makefile.am): Likewise.
24033         * modules/stdio (Makefile.am): Likewise.
24034         * modules/stdlib (Makefile.am): Likewise.
24035         * modules/string (Makefile.am): Likewise.
24036         * modules/strings (Makefile.am): Likewise.
24037         * modules/sys_file (Makefile.am): Likewise.
24038         * modules/sys_ioctl (Makefile.am): Likewise.
24039         * modules/sys_select (Makefile.am): Likewise.
24040         * modules/sys_socket (Makefile.am): Likewise.
24041         * modules/sys_stat (Makefile.am): Likewise.
24042         * modules/sys_time (Makefile.am): Likewise.
24043         * modules/sys_times (Makefile.am): Likewise.
24044         * modules/sys_utsname (Makefile.am): Likewise.
24045         * modules/sys_wait (Makefile.am): Likewise.
24046         * modules/sysexits (Makefile.am): Likewise.
24047         * modules/termios (Makefile.am): Likewise.
24048         * modules/time (Makefile.am): Likewise.
24049         * modules/unistd (Makefile.am): Likewise.
24050         * modules/wchar (Makefile.am): Likewise.
24051         * modules/wctype (Makefile.am): Likewise.
24052
24053 2010-10-04  Bruno Haible  <bruno@clisp.org>
24054
24055         read-file tests: Avoid a test failure on NonStop Kernel.
24056         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24057         a regular file.
24058         Reported by Joachim Schmitz <schmitz@hp.com>.
24059
24060 2010-10-03  Bruno Haible  <bruno@clisp.org>
24061
24062         gnulib-tool: Fixes for --create-testdir with --libtool.
24063         * gnulib-tool (func_get_automake_snippet): Don't augment
24064         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24065         an executable.
24066         (func_create_testdir): Handle module 'alloca' like func_import.
24067         Reported by Bruce Korb <bruce.korb@gmail.com>.
24068
24069 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24070
24071         Avoid some lines longer than 80 characters.
24072         * lib/stdint.in.h: Break long comment lines.
24073         * lib/math.in.h: Likewise.
24074         (_GL_NUM_UINT_WORDS): New macro, for readability.
24075         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24076         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24077         * lib/stdlib.in.h: Likewise.
24078         * lib/spawn.in.h: Likewise.
24079         * lib/sys_socket.in.h: Update an URL.
24080         * lib/sys_stat.in.h: Break long line.
24081
24082 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24083
24084         Improve pmccabe2html.
24085         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24086         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24087         when the sources change. Remove the line in the HTML about "Used
24088         ranges" (which implied that there might be other unused ranges),
24089         rename "Resume" to "Summary" (easier to understand for more users).
24090         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24091         styles, and some unnecessary blank lines.
24092
24093 2010-10-03  Bruno Haible  <bruno@clisp.org>
24094             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24095
24096         acl: Add support for ACLs on NonStop Kernel.
24097         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24098         Check whether the function aclsort() exists.
24099         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24100         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24101         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24102         (acl_nontrivial [HAVE_ACLSORT]: New function.
24103         (file_has_acl): Implement for NonStop Kernel.
24104         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24105         (qset_acl): Implement for NonStop Kernel.
24106         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24107         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24108         (main): Implement for NonStop Kernel.
24109         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24110         Kernel. Handle this flavor.
24111         * tests/test-set-mode-acl.sh: Likewise.
24112         * tests/test-copy-acl.sh: Likewise.
24113         * tests/test-copy-file.sh: Likewise.
24114
24115 2010-10-03  Bruno Haible  <bruno@clisp.org>
24116
24117         Info about ACLs on NonStop Kernel.
24118         * doc/acl-resources.txt: Add info about NonStop Kernel.
24119         References by Joachim Schmitz <schmitz@hp.com>.
24120
24121 2010-10-02  Bruno Haible  <bruno@clisp.org>
24122
24123         Define missing EDQUOT on NonStop Kernel.
24124         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24125         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24126         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24127         missing.
24128         * doc/posix-headers/errno.texi: Mention the NSK bug.
24129         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24130         Reported by Joachim Schmitz <schmitz@hp.com>.
24131
24132 2010-10-02  Bruno Haible  <bruno@clisp.org>
24133
24134         Update doc for POSIX:2008.
24135         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24136         Update URL of POSIX specification.
24137
24138 2010-10-02  Bruno Haible  <bruno@clisp.org>
24139
24140         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24141         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24142         from gnulib, not from Automake.
24143
24144 2010-10-02  Bruno Haible  <bruno@clisp.org>
24145
24146         New module 'system-posix'.
24147         * modules/system-posix: New file.
24148         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24149         module is present.
24150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24151         GNULIB_SYSTEM_POSIX.
24152         * modules/stdlib (Depends-on): Remove sys_wait.
24153         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24154         * doc/posix-functions/system.texi: Mention the new module.
24155         * doc/posix-headers/stdlib.texi: Likewise.
24156         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24157         define test_sys_wait_macros to a no-op.
24158         Reported by Sam Steingold <sds@gnu.org>.
24159
24160 2010-09-30  Bruno Haible  <bruno@clisp.org>
24161
24162         More renaming from 'getdate' to 'get_date'.
24163         * doc/get_date.texi: Renamed from doc/getdate.texi.
24164         * modules/get_date (Files): Update.
24165         * MODULES.html.sh (Date and time <time.h>): Update.
24166         * DEPENDENCIES: Update.
24167         * gnulib-tool: Update comment.
24168         * m4/bison.m4 (gl_BISON): Likewise.
24169         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24170
24171 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24172
24173         bootstrap: support ACLOCAL_FLAGS during aclocal
24174         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24175         can add additional -I dir for third-party .m4 files.
24176
24177 2010-09-30  Eric Blake  <eblake@redhat.com>
24178
24179         bootstrap: use glibtoolize on MacOS
24180         * build-aux/bootstrap (check_versions): Convert libtool into
24181         libtoolize.
24182         (tool search): Move libtool check earlier, and look for
24183         glibtoolize for MacOS.
24184         (gnulib_tool_options): Auto-add --libtool when appropriate.
24185         Reported by Justin Clift.
24186
24187         poll: fix typo that broke test on MacOS
24188         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24189         Reported by Justin Clift.
24190
24191         getdate: rename to get_date
24192         Note: getdate.h is not renamed, to minimize client impact.
24193         * modules/getdate: Mark obsolete.  Move old contents...
24194         * modules/get_date: ...to new module name.
24195         * modules/getdate-tests: Move...
24196         * modules/get_date-tests: ...here.
24197         * m4/getdate.m4: Move...
24198         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24199         * lib/getdate.y: Move...
24200         * lib/get_date.y: ...here.
24201         * tests/test-getdate.c: Move...
24202         * tests/test-get_date.c: ...here.
24203         * doc/posix-functions/getdate.texi (getdate): Update name.
24204         * NEWS: Mention the change.
24205
24206 2010-09-29  Bruno Haible  <bruno@clisp.org>
24207
24208         Separate the module 'waitpid' from the module 'sys_wait'.
24209         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24210         present.
24211         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24212         gl_MODULE_INDICATOR_FOR_TESTS.
24213         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24214         * modules/sys_wait (Depends-on): Remove waitpid.
24215         (Makefile.am): Substitute GNULIB_WAITPID.
24216         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24217         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24218         signature only if the 'waitpid' module is present.
24219         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24220         * NEWS: Mention the change.
24221         * modules/grantpt (Depends-on): Add waitpid.
24222         * modules/wait-process (Depends-on): Likewise.
24223
24224 2010-09-29  Bruno Haible  <bruno@clisp.org>
24225
24226         More tests for module 'sys_wait'.
24227         * modules/sys_wait-c++-tests: New file.
24228         * tests/test-sys_wait-c++.cc: New file.
24229         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24230         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24231
24232 2010-09-29  Bruno Haible  <bruno@clisp.org>
24233
24234         New module 'waitpid'.
24235         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24236         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24237         Don't include <process.h>.
24238         (waitpid): Declare only, using modern idiom.
24239         * m4/waitpid.m4: New file.
24240         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24241         * modules/waitpid: New file.
24242         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24243         (Makefile.am): Update.
24244         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24245
24246 2010-09-28  Bruno Haible  <bruno@clisp.org>
24247
24248         poll: Assume ANSI C.
24249         * lib/poll.c (poll): Use an ANSI C declaration.
24250
24251 2010-09-28  Bruno Haible  <bruno@clisp.org>
24252
24253         poll-h: Create poll.h on all platforms.
24254         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24255         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24256         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24257         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24258         (gl_REPLACE_POLL_H): Don't set POLL_H.
24259         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24260         * modules/poll-h (Depends-on): Add include_next.
24261         (Makefile.am): Create poll.h unconditionally. Substitute also
24262         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24263
24264 2010-09-28  Bruno Haible  <bruno@clisp.org>
24265
24266         Tests for module 'poll-h'.
24267         * modules/poll-h-c++-tests: New file.
24268         * tests/test-poll-h-c++.cc: New file.
24269
24270         Tests for module 'poll-h'.
24271         * modules/poll-h-tests: New file.
24272         * tests/test-poll-h.c: New file.
24273
24274 2010-09-28  Bruno Haible  <bruno@clisp.org>
24275
24276         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24277         * modules/poll-h (Depends-on): Add 'extensions'.
24278
24279 2010-09-28  Bruno Haible  <bruno@clisp.org>
24280
24281         New module 'poll-h'.
24282         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24283         (poll): Use modern idiom.
24284         * modules/poll-h: New file.
24285         * modules/poll (Files): Remove lib/poll.in.h.
24286         (Depends-on): Add poll-h.
24287         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24288         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24289         * m4/poll_h.m4: New file.
24290         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24291         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24292         and invoke gl_REPLACE_POLL_H.
24293         * lib/poll.c: Use common idiom.
24294         * tests/test-poll.c: Likewise.
24295         * doc/posix-headers/poll.texi: Mention the poll-h module.
24296         Suggested by Eric Blake.
24297
24298 2010-09-26  Bruno Haible  <bruno@clisp.org>
24299
24300         sys_wait: Implement WSTOPSIG.
24301         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24302         Reported by Simon Josefsson.
24303
24304 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24305
24306         stdlib, sys_wait: Avoid compilation error on mingw.
24307         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24308
24309 2010-09-26  Bruno Haible  <bruno@clisp.org>
24310
24311         stdlib tests: Avoid code duplication.
24312         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24313         * modules/sys_wait-tests (Files): Likewise.
24314         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24315         * tests/test-stdlib.c: Include test-sys_wait.h.
24316         (main): Invoke test_sys_wait_macros.
24317         * tests/test-sys_wait.c: Include test-sys_wait.h.
24318         (main): Invoke test_sys_wait_macros.
24319
24320 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24321
24322         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24323         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24324         sure Windows sockets are working before calling getaddrinfo.
24325         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24326         * doc/gnulib.texi (Windows sockets): Fix typo.
24327
24328 2010-09-25  Bruno Haible  <bruno@clisp.org>
24329
24330         Tests for module 'regex-quote'.
24331         * modules/regex-quote-tests: New file.
24332         * tests/test-regex-quote.c: New file.
24333
24334         New module 'regex-quote'.
24335         * lib/regex-quote.h: New file.
24336         * lib/regex-quote.c: New file.
24337         * modules/regex-quote: New file.
24338         Suggested by Reuben Thomas <rrt@sc3d.org>.
24339
24340 2010-09-24  Bruno Haible  <bruno@clisp.org>
24341
24342         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24343         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24344
24345 2010-09-23  Bruno Haible  <bruno@clisp.org>
24346
24347         setenv: Relax license.
24348         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24349         Blake.
24350         Requested by Eric Blake.
24351
24352 2010-09-22  Bruno Haible  <bruno@clisp.org>
24353
24354         termios: Relax license.
24355         * modules/termios (License): Change to LGPLv2+.
24356         Requested by Eric Blake.
24357
24358 2010-09-22  Bruno Haible  <bruno@clisp.org>
24359
24360         threadlib: Allow the package to change the default to 'no'.
24361         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24362         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24363         Reported by Paul Eggert.
24364
24365 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24366             Bruno Haible  <bruno@clisp.org>
24367
24368         Fix endless loop in mbmemcasecoll.
24369         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24370         byte.
24371         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24372
24373 2010-09-22  Bruno Haible  <bruno@clisp.org>
24374
24375         Tests for module 'memcoll'.
24376         * modules/memcoll-tests: New file.
24377         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24378
24379         memcoll, xmemcoll: Clarify size vs. length.
24380         * modules/memcoll.c (memcoll0): Clarify specification.
24381         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24382         passed to collate_error.
24383
24384 2010-09-22  Bruno Haible  <bruno@clisp.org>
24385
24386         Tests for module 'memcasecmp'.
24387         * modules/memcasecmp-tests: New file.
24388         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24389
24390 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24391
24392         * lib/pthread.in.h: Add split double-inclusion guard, and include
24393         system <pthread.h> if there is one.  Use @@-style as in other
24394         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24395         pthread.h doesn't.
24396         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24397         (pthread_mutexattr_settype, pthread_mutex_trylock):
24398         New static inline functions, if there's no system <pthread.h>.
24399         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24400         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24401         Approximate with mutexes if the system lacks spinlocks, as in
24402         MacOS.
24403         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24404         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24405         @@-style.  Check for spinlocks separately.
24406         (gl_PTHREAD_DEFAULTS): New macro.
24407         * modules/pthread: Redo to use a more typical style for in.h files.
24408
24409 2010-09-21  Eric Blake  <eblake@redhat.com>
24410
24411         net_if: enhance tests
24412         * tests/test-net_if.c (main): Move signature checks earlier.
24413         Print failures to stderr.
24414         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24415         Document the bug that we do not yet fix.
24416
24417 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24418
24419         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24420         about gnulib, not GSS.
24421
24422 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24423
24424         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24425         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24426         for Emacs.
24427         * build-aux/pmccabe2html: Make Makefile.am example code more
24428         cut-and-paste friendly.
24429
24430 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24431
24432         * tests/test-net_if.c: New file.
24433         * modules/net_if-tests: New file.
24434
24435 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24436
24437         pthread: add pthread_spin_destroy
24438         * lib/pthread.in.h (pthread_spin_destroy): New function.
24439
24440 2010-09-19  Bruno Haible  <bruno@clisp.org>
24441
24442         gnulib-tool: Fix --help output.
24443         * gnulib-tool (func_usage): Fix help message.
24444         Reported by Reuben Thomas <rrt@sc3d.org>.
24445
24446 2010-09-18  Jim Meyering  <meyering@redhat.com>
24447
24448         maint.mk: avoid unexpanded \n in two diagnostics
24449         * top/maint.mk (sc_prohibit_always_true_header_tests):
24450         Don't use a literal \n in a halt=... assignment.  It would not be
24451         expanded, and the two \n bytes would appear in the diagnostic output
24452         rather than the desired newline.  Use halt=$$(printf ... instead.
24453         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24454
24455 2010-09-18  Bruno Haible  <bruno@clisp.org>
24456
24457         netinet_in: Doc tweak.
24458         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24459         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24460
24461 2010-09-18  Jim Meyering  <meyering@redhat.com>
24462
24463         init.sh: correct an outdated comment
24464         * tests/init.sh (create_exe_shims_):  s/function/alias/
24465
24466         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24467         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24468         a file named "*.exe" is removed between the glob expansion and the
24469         processing of that oddly named file.
24470
24471 2010-09-17  Eric Blake  <eblake@redhat.com>
24472
24473         mirbsd: add some more support
24474         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24475         in BSD family.
24476         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24477         devices as OpenBSD.
24478         * m4/host-os.m4 (mirbsd): Add MirBSD.
24479
24480         tests: fix unportable assumption on sys/wait.h
24481         * tests/test-sys_wait.c (main): Relax test.
24482         * tests/test-stdlib.c (main): Likewise.
24483
24484         init.sh: accomodate directory with no .exes
24485         * tests/init.sh: Accomodate directory containing only scripts.
24486
24487         tests: avoid compiler warning
24488         * tests/test-stdlib.c (main): Use the variable.
24489
24490         fdutimens, fdutimensat: update signature, again
24491         * lib/utimens.h (gl_futimens): Delete, and move signature...
24492         (fdutimens): ...here.
24493         (fdutimensat): Rearrange signature.
24494         (lutimensat): Rename variable for clarity.
24495         * lib/fdutimensat.c (fdutimensat): Update signature.
24496         * lib/utimens.c (fdutimens): Likewise.
24497         (gl_futimens): Delete.
24498         (utimens, lutimens): Update callers.
24499         * lib/futimens.c (futimens): Likewise.
24500         * tests/test-fdutimensat.c: Likewise.
24501         * tests/test-utimens.c: Likewise.
24502         * tests/test-futimens.h: Update comment.
24503         * NEWS: Mention this.
24504         Suggested by Paul Eggert.
24505
24506 2010-09-17  Bruno Haible  <bruno@clisp.org>
24507
24508         Take over the maintenance of some older macros from Autoconf.
24509         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24510         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24511         GNU Autoconf.
24512         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24513         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24514
24515 2010-09-17  Eric Blake  <eblake@redhat.com>
24516
24517         fdutimensat: drop atflag validation
24518         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24519         with valid fd, to close a race scenario where futimens is
24520         unsupported and FILE was replaced by a symlink.
24521         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24522         accordingly.
24523         Suggested by Paul Eggert.
24524
24525 2010-09-16  Bruno Haible  <bruno@clisp.org>
24526
24527         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24528         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24529
24530 2010-09-16  Bruno Haible  <bruno@clisp.org>
24531
24532         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24533         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24534         login_tty exists.
24535         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24536
24537 2010-09-16  Bruno Haible  <bruno@clisp.org>
24538
24539         login_tty: Make the replacement code work on BSD systems.
24540         * lib/login_tty.c: Include <sys/ioctl.h>.
24541         (login_tty): Use ioctl TIOCSCTTY when available.
24542         * modules/login_tty (Depends-on): Add sys_ioctl.
24543         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24544
24545 2010-09-16  Bruno Haible  <bruno@clisp.org>
24546
24547         login_tty: Stricter unit test.
24548         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24549         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24550         and tcgetsid() after login_tty.
24551         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24552
24553 2010-09-16  Bruno Haible  <bruno@clisp.org>
24554
24555         New module 'tcgetsid'.
24556         * lib/tcgetsid.c: New file.
24557         * m4/tcgetsid.m4: New file.
24558         * modules/tcgetsid: New file.
24559         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24560         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24561         GNULIB_TCGETSID, HAVE_TCGETSID.
24562         * lib/termios.in.h: Include <sys/types.h>.
24563         (tcgetsid): New declaration.
24564         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24565         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24566         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24567         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24568
24569 2010-09-16  Bruno Haible  <bruno@clisp.org>
24570
24571         Tests for module 'termios'.
24572         * modules/termios-c++-tests: New file.
24573         * modules/termios-tests: New file.
24574         * tests/test-termios-c++.cc: New file.
24575         * tests/test-termios.c: New file.
24576
24577         New module 'termios'.
24578         * modules/termios: New file.
24579         * lib/termios.in.h: New file.
24580         * m4/termios_h.m4: New file.
24581         * doc/posix-headers/termios.texi: Mention the new module.
24582
24583 2010-09-16  Eric Blake  <eblake@redhat.com>
24584
24585         fdutimensat: add an atflag parameter
24586         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24587         * lib/utimens.h (fdutimensat): Update prototype.
24588         * tests/test-fdutimensat.c: Adjust test to match.
24589         * NEWS: Document the change.
24590         Suggested by Paul Eggert.
24591
24592 2010-09-16  Bruno Haible  <bruno@clisp.org>
24593
24594         Fix typos in comments.
24595         * lib/striconveh.h: Fix typo in comment.
24596         * lib/login_tty.c (login_tty): Likewise.
24597
24598 2010-09-15  Bruno Haible  <bruno@clisp.org>
24599
24600         stdlib: clarify MirBSD WEXITSTATUS bug
24601         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24602         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24603
24604 2010-09-15  Eric Blake  <eblake@redhat.com>
24605
24606         stdlib: work around MirBSD WEXITSTATUS bug
24607         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24608         * modules/stdlib (Depends-on): Add sys_wait.
24609         * tests/test-sys_wait.c (main): Enhance test.
24610         * tests/test-stdlib.c (main): Likewise.
24611         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24612
24613         docs: mention MacOS issue with WEXITSTATUS(constant)
24614         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24615         issue.
24616         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24617
24618         strnlen: add tests
24619         * modules/strnlen-tests: New file.
24620         * tests/test-strnlen.c: Likewise.
24621
24622 2010-09-14  Bruno Haible  <bruno@clisp.org>
24623
24624         unistr/base: Avoid link errors when module 'libunistring' is also used.
24625         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24626         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24627         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24628         Declare also when HAVE_LIBUNISTRING is set.
24629         Reported by Pádraig Brady <P@draigbrady.com>.
24630
24631 2010-09-14  Eric Blake  <eblake@redhat.com>
24632
24633         test-rawmemchr: make more robust
24634         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24635         (Depends-on, configure.ac): Add needed prerequisites to use it.
24636         * modules/memchr-tests (Files, Depends-on, configure.ac):
24637         Likewise, to avoid implicit reliance on memchr module prereqs.
24638         * tests/test-memchr.c (main): Ensure proper masking.
24639         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24640         reads.
24641
24642         memchr: detect glibc Alpha bug
24643         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24644         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24645         Alpha.
24646         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24647         * tests/test-memchr.c (main): Enhance test.
24648         Reported by Nelson H. F. Beebe.
24649
24650 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24651
24652         fts, getcwd, glob: audit for dirfd returning -1
24653         * lib/fts.c (opendir): Remove #define; no longer used.
24654         (opendirat): New arg PDIR_FD.  All callers changed.
24655         (fts_build, _opendir2): Use new opendirat to avoid the need for
24656         dirfd, or for checking whether dirfd returns a negative value.
24657         Don't use opendir; always use openat followed by fdopendir.
24658         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24659         it.
24660         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24661         returns -1 here.
24662         * modules/fts (Depends-on): Remove dirfd.
24663         * modules/getcwd (Depends-on): Likewise.
24664
24665 2010-09-13  Eric Blake  <eblake@redhat.com>
24666
24667         float: fix broken MirBSD header
24668         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24669         * doc/posix-headers/float.texi (float.h): Document it.
24670
24671 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24672
24673         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24674         * lib/fts.c (opendirat): New arg extra_flags.
24675         (__opendir2): Use it to avoid following symlinks when opening
24676         a directory, if symlinks are not supposed to be followed.  See
24677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24678
24679         fdopendir: preserve argument fd before returning
24680         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24681         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24682         (fdopendir): Use them, arranging for FD to be open to the same
24683         directory that it was when it started.  (It might be temporarily
24684         closed while fdopendir is running, so this not thread- or
24685         signal-safe.)  Be careful to do the right thing even when file
24686         descriptors are scarce and dup fails with errno == EMFILE.  See
24687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24688
24689 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24690
24691         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24692         * NEWS: Document change.
24693         * m4/regex.m4: Disable test for regoff_t size.
24694
24695 2010-09-13  Jim Meyering  <meyering@redhat.com>
24696
24697         fts: don't operate on an invalid file descriptor after failed dup
24698         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24699         negative file descriptor.
24700
24701 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24702
24703         savedir: add streamsavedir, deprecate fdsavedir
24704         * NEWS: Mention deprecation of fdsavedir.
24705         * lib/savedir.c (streamsavedir): New extern function, whose name
24706         ends in "savedir" to be consistent with the others.  This differs
24707         from savedirstream in that it doesn't close its argument.  The
24708         next version of GNU tar will use this instead of fdsavedir, to
24709         avoid some race conditions and conserve file descriptors.
24710         (savedirstream): Reimplement as a wrapper around streamsavedir.
24711         (fdsavedir): Add a comment deprecating this function.  As far as
24712         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24713         * lib/savedir.h (streamsavedir): New decl.
24714         (fdsavedir): Add a comment deprecating this.
24715
24716 2010-09-10  Bruno Haible  <bruno@clisp.org>
24717
24718         langinfo: Fix last commit.
24719         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24720         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24722
24723 2010-09-10  Bruno Haible  <bruno@clisp.org>
24724
24725         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24726         * lib/progreloc.c (O_EXEC): Define fallback.
24727
24728 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24729
24730         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24731         * NEWS: Document recent changes to fcntl-h.
24732         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24733         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24734         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24735         Similarly for O_SEARCH; this last was already true, but not documented.
24736         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24737         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24738         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24739         Likewise.
24740         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24741         is zero, not whether it is defined.
24742         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24743         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24744         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24745
24746 2010-09-10  Bruno Haible  <bruno@clisp.org>
24747
24748         langinfo, nl_langinfo: Fix for IRIX 5.3.
24749         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24750         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24751         HAVE_LANGINFO_YESEXPR.
24752         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24753         HAVE_LANGINFO_YESEXPR.
24754         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24755         HAVE_LANGINFO_T_FMT_AMPM is 0.
24756         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24757         HAVE_LANGINFO_YESEXPR is 0.
24758         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24759         NOEXPR.
24760         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24761         * doc/posix-functions/nl_langinfo.texi: Likewise.
24762         Reported by Eric Blake.
24763
24764 2010-09-10  Bruno Haible  <bruno@clisp.org>
24765
24766         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24767         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24768         on FreeBSD 8.0 and OpenBSD 4.6.
24769         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24770         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24771         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24772         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24773         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24774         ac_includes_default.
24775         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24776
24777 2010-09-09  Eric Blake  <eblake@redhat.com>
24778
24779         strsignal: work around NetBSD bug
24780         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24781         * lib/string.in.h (includes): Likewise.
24782         * doc/posix-functions/strsignal.texi (strsignal): Document the
24783         bug.
24784         Reported by Nelson H. F. Beebe.
24785
24786         gnulib-tool: work with NetBSD /bin/sh
24787         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24788         (func_get_description, func_get_comment, func_get_status)
24789         (func_get_notice, func_get_applicability, func_get_filelist)
24790         (func_get_dependencies, func_get_autoconf_early_snippet)
24791         (func_get_autoconf_snippet, func_get_automake_snippet)
24792         (func_get_include_directive, func_get_link_directive)
24793         (func_get_license, func_get_maintainer, func_import): Avoid
24794         shell syntax errors from parsing syntax extensions.
24795
24796 2010-09-09  Bruno Haible  <bruno@clisp.org>
24797
24798         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24799         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24800         a reliable way to determine whether the 'alias' command works.
24801
24802 2010-09-08  Jim Meyering  <meyering@redhat.com>
24803
24804         init.sh: penalize a set-x-impaired shell; don't disqualify it
24805         * tests/init.sh: Too many shells corrupt application stderr when
24806         you set -x, so we can't afford to disqualify them, since at least
24807         on Irix-6.5, that would disqualify all bourne shells.
24808         Instead, use a two-pass approach.
24809         On the first pass, try to find a shell that meets the stricter
24810         condition that set -x does not corrupt stderr.
24811         If no shell meets the stricter condition, retest each candidate
24812         shell, but without that extra condition.  Finally, when
24813         VERBOSE=yes is requested and set -x might cause trouble, simply
24814         issue a warning and refrain from enabling debug output.
24815
24816 2010-09-08  Eric Blake  <eblake@redhat.com>
24817
24818         unsetenv: fix OpenBSD bug
24819         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24820         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24821         documentation.
24822         Reported by Jim Meyering.
24823
24824         strtod: work around IRIX 6.5 bug
24825         * lib/strtod.c (strtod): Reparse number on shorter string if
24826         exponent parse was invalid.
24827         * tests/test-strtod.c (main): Add check for "0x1p 2".
24828         Reported by Tom G. Christensen.
24829
24830         getopt: optimize previous patch
24831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24832         empty variable.  Speed up awk script.
24833         Reported by Paolo Bonzini.
24834
24835 2010-09-08  Jim Meyering  <meyering@redhat.com>
24836
24837         test.sh: disqualify shells for which set -x corrupts stderr
24838         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24839         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24840         appear in stderr output.  For example, this command:
24841             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
24842         prints "P=1" on those two systems:
24843
24844 2010-09-08  Bruno Haible  <bruno@clisp.org>
24845
24846         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24847         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
24848         commands, because some shells ignore redirections when there is an
24849         error in the command lookup.
24850         Reported by Eric Blake.
24851
24852 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
24853
24854         * lib/regex.h: Fix a mention of `regex_compile' (should be
24855         `re_compile_pattern').
24856         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
24857         (re_set_registers): Correct name of parameter in comment.
24858
24859         * doc/regex.texi: Add documentation for missing syntax flags.
24860         Remove commented-out documentation of defunct syntax option
24861         RE_NO_EMPTY_ALTS.
24862         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
24863         Add documentation of re_set_registers.
24864         Document trick to re-use a pattern buffer by setting fastmap manually.
24865         Update documentation of struct re_pattern_buffer per public members.
24866         Uncomment documentation of equivalence class operators and
24867         collating symbol operators, since they are now implemented,
24868         Explain leftmost-longest matching in relation to alternatives.
24869         Tidy documentation of substring matching.
24870         Remove POSIX documentation, which is done better in
24871         glibc, and refer the reader there. Keep BSD API documentation, as
24872         that is not readily available elsewhere.
24873
24874 2010-09-07  Eric Blake  <eblake@redhat.com>
24875
24876         getopt: handle POSIXLY_CORRECT set but not exported
24877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
24878         export state of POSIXLY_CORRECT, due to bash set -o posix.
24879         Reported by Dustin J. Mitchell.
24880
24881 2010-09-05  Bruno Haible  <bruno@clisp.org>
24882
24883         gnulib-tool: Highlight the changed options.
24884         * gnulib-tool (func_usage): Display the --import, --add-import,
24885         --remove-import explanations in bold font.
24886
24887 2010-09-06  Karl Berry  <karl@gnu.org>
24888
24889         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
24890
24891 2010-09-05  Bruno Haible  <bruno@clisp.org>
24892
24893         uniwidth/width: Update comment.
24894         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
24895         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
24896
24897 2010-09-05  Bruno Haible  <bruno@clisp.org>
24898
24899         isinf, isnan: Relax license.
24900         * modules/isinf (License): Change from GPL to LGPL, with consent from
24901         Ben Pfaff.
24902         * modules/isnan (License): Likewise.
24903         Requested by Ludovic Courtès.
24904
24905 2010-09-04  Bruno Haible  <bruno@clisp.org>
24906
24907         gnulib-tool: Help migration from --import to --add-import or --update.
24908         * gnulib-tool: Emit a verbose error message when --import is used
24909         without any module name.
24910
24911 2010-09-04  Bruno Haible  <bruno@clisp.org>
24912
24913         Update doc about gnulib-tool.
24914         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
24915         'gnulib-tool --update' in more detail.
24916         Reported by Eric Blake.
24917
24918 2010-09-04  Bruno Haible  <bruno@clisp.org>
24919
24920         gnulib-tool: Change --import. New options --add/remove-import.
24921         * gnulib-tool: New options --add-import, --remove-import.
24922         (func_usage): Document them.
24923         (have_associative): Define always.
24924         (func_import): In import mode, don't merge the specified settings with
24925         the cached settings. Implement remove-import mode.
24926         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
24927         Explain when to use them versus --import.
24928         (Simple update): Use --add-import instead of --import.
24929         * NEWS: Mention the change.
24930
24931 2010-09-04  Bruno Haible  <bruno@clisp.org>
24932
24933         * doc/gnulib-tool.texi (Initial import): Update paragraph about
24934         separate gnulib.mk.
24935
24936 2010-09-04  Bruno Haible  <bruno@clisp.org>
24937
24938         gnulib-tool: Don't talk about CVS any more.
24939         * gnulib-tool (func_usage, func_import): Write "version control"
24940         instead of CVS.
24941
24942 2010-09-04  Jim Meyering  <meyering@redhat.com>
24943
24944         maint.mk: avoid obscure sc_copyright_check failure in coreutils
24945         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
24946         false positives (whose names may be ill-chosen) when searching
24947         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
24948         would cause a false-positive.
24949
24950         avoid coreutils "make distcheck" failure
24951         Coreutils tests with an absolute build directory name that contains
24952         a space.  Not quoting this directory name caused a failure.
24953         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
24954         * tests/test-vc-list-files-cvs.sh: Likewise.
24955
24956 2010-09-04  Bruno Haible  <bruno@clisp.org>
24957
24958         gnulib-tool: Avoid error when run in a package without Makefile.am.
24959         * gnulib-tool: When collecting the m4dirs in a package that does not
24960         have a Makefile.am, eliminate those directories that contain no
24961         gnulib-cache.m4. Fix expression that counts these directories.
24962
24963 2010-09-04  Bruno Haible  <bruno@clisp.org>
24964
24965         update-copyright test: Improve output when perl is missing or too old.
24966         * tests/test-update-copyright.sh: Move test of Perl version down after
24967         the test whether Perl exists. Provide an explanation relating Perl's
24968         error message to Automake's SKIP: message.
24969
24970 2010-09-04  Bruno Haible  <bruno@clisp.org>
24971
24972         Don't augment PATH in TESTS_ENVIRONMENT.
24973         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
24974         set abs_aux_dir instead of augmenting PATH.
24975         * modules/vc-list-files-tests (Makefile.am): Likewise.
24976         * tests/test-update-copyright.sh: Augment PATH here.
24977         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
24978         path_prepend_.
24979         * tests/test-vc-list-files-git.sh: Likewise.
24980
24981 2010-09-04  Jim Meyering  <meyering@redhat.com>
24982
24983         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
24984         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
24985
24986 2010-09-04  Bruno Haible  <bruno@clisp.org>
24987
24988         strdup: Fix compilation error in C++ mode.
24989         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
24990         the macro.
24991
24992 2010-09-04  Bruno Haible  <bruno@clisp.org>
24993
24994         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
24995         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
24996         macro into a function.
24997         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24998
24999 2010-09-04  Bruno Haible  <bruno@clisp.org>
25000
25001         Set PATH_SEPARATOR the same way autoconf does.
25002         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25003         the value of PATH_SEPARATOR the same way autoconf-generated configure
25004         scripts do.
25005         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25006         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25007
25008 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25009
25010         Set PATH_SEPARATOR the same way autoconf does.
25011         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25012         the same way autoconf-generated configure scripts do.
25013         * posix-modules: Likewise.
25014
25015 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25016
25017         hash: fix safe_hasher const typo
25018         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25019         const; otherwise, there is a type error later.
25020
25021 2010-09-02  Jim Meyering  <meyering@redhat.com>
25022
25023         test-update-copyright.sh: require perl 5.8.0
25024         * tests/test-update-copyright.sh: Require 5.8.0,
25025         which Tom G. Christensen has confirmed is adequate,
25026         while 5.6.1 is not.
25027
25028 2010-09-02  Eric Blake  <eblake@redhat.com>
25029
25030         tests: init.sh improvements for re-exec'ing with zsh
25031         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25032         -vx through shell re-exec.
25033         Reported by Tom G. Christensen.
25034
25035         wctype: fix typo in previous commit
25036         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25037         Reported by Ludovic Courtès.
25038
25039 2010-09-02  Jim Meyering  <meyering@redhat.com>
25040
25041         test-update-copyright.sh: skip test if Perl is too old
25042         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25043         Reported by Tom G. Christensen.
25044
25045 2010-09-02  Bruno Haible  <bruno@clisp.org>
25046
25047         wctype: Avoid compilation error on IRIX 6.5.30.
25048         * lib/wctype.in.h (iswblank): Declare with a replacement if
25049         REPLACE_ISWBLANK is set.
25050         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25051         declared. Set REPLACE_ISWBLANK.
25052         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25053         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25054         * doc/posix-headers/wctype.texi: Likewise.
25055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25056
25057 2010-09-01  Bruno Haible  <bruno@clisp.org>
25058
25059         New module 'socketlib'.
25060         * modules/socketlib: New file.
25061         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25062         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25063         * modules/sockets (Depends-on): Add socketlib.
25064         Suggested by Sam Steingold <sds@gnu.org>.
25065
25066 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25067
25068         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25069
25070         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25071         when one needs search access to a directory but not read access.
25072         On systems where it is available, it works in some cases where
25073         O_RDONLY does not, namely on directories that are searchable but
25074         not readable, and which need only to be searchable.  If O_SEARCH
25075         is not available, fall back to the traditional method of using
25076         O_RDONLY.
25077
25078         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25079         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25080         when opening a directory that needs only to be searchable.
25081         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25082         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25083         * lib/openat-proc.c (openat_proc_name): Likewise.
25084         * lib/openat.c (openat_needs_fchdir): Likewise.
25085         * lib/save-cwd.c (save_cwd): Likewise.
25086         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25087
25088 2010-08-28  Bruno Haible  <bruno@clisp.org>
25089
25090         New module 'host-cpu-c-abi'.
25091         * modules/host-cpu-c-abi: New file.
25092         * m4/host-cpu-c-abi.m4: New file, based on part of
25093         clisp/src/m4/general.m4.
25094         Requested by Sam Steingold <sds@gnu.org>.
25095
25096 2010-08-31  Eric Blake  <eblake@redhat.com>
25097         and Jim Meyering  <meyering@redhat.com>
25098
25099         hash: factor, and guard against misbehaving hasher function
25100         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25101         of table->hasher's return value.  Also protect against a hash value
25102         so large that adding it to table->bucket results in a NULL pointer.
25103         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25104         Use it in place of open-coded check-and-abort.
25105
25106 2010-08-30  Bruno Haible  <bruno@clisp.org>
25107
25108         hash: silence spurious clang warning
25109         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25110         Reported by Eric Blake.
25111
25112 2010-08-30  Eric Blake  <eblake@redhat.com>
25113
25114         strstr, memmem, strcasestr: avoid leaked shell message
25115         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25116         FreeBSD.
25117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25118         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25119
25120         tests: silence clang warning
25121         * tests/test-malloca.c (do_allocation): Avoid dead store.
25122
25123 2010-08-29  Bruno Haible  <bruno@clisp.org>
25124
25125         gettext: Fix recent mistake.
25126         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25127
25128 2010-08-29  Bruno Haible  <bruno@clisp.org>
25129
25130         selinux-h: Offer a --without-selinux option.
25131         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25132         --without-selinux was specified, skip all tests and define
25133         HAVE_SELINUX_SELINUX_H to 0.
25134         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25135         set LIB_SELINUX to empty.
25136         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25137         gl_LIBSELINUX. If --without-selinux was specified, replace
25138         selinux/context.h.
25139         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25140
25141 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25142             Bruno Haible  <bruno@clisp.org>
25143
25144         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25145         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25146         of HAVE_REALLOC.
25147         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25148         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25149         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25150         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25151
25152 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25153             Bruno Haible  <bruno@clisp.org>
25154
25155         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25156         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25157         HAVE_CALLOC.
25158         * lib/xmalloc.c: Update accordingly.
25159         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25160         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25161         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25162
25163 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25164             Bruno Haible  <bruno@clisp.org>
25165
25166         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25167         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25168         HAVE_MALLOC.
25169         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25170         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25171         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25172
25173 2010-08-29  Bruno Haible  <bruno@clisp.org>
25174
25175         Update modules list.
25176         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25177         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25178         (String handling <string.h>): Add astrxfrm.
25179         (File system functions): Add readlinkat.
25180
25181 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25182
25183         Tests for module 'realloc-gnu'.
25184         * modules/realloc-gnu-tests: New file.
25185         * tests/test-realloc-gnu.c: New file.
25186
25187         Tests for module 'calloc-gnu'.
25188         * modules/calloc-gnu-tests: New file.
25189         * tests/test-calloc-gnu.c: New file.
25190
25191         Tests for module 'malloc-gnu'.
25192         * modules/malloc-gnu-tests: New file.
25193         * tests/test-malloc-gnu.c: New file.
25194
25195 2010-08-28  Bruno Haible  <bruno@clisp.org>
25196
25197         Rename module 'realloc' -> 'realloc-gnu'.
25198         * modules/realloc-gnu: New file, copied from modules/realloc.
25199         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25200         obsolete.
25201         * modules/mgetgroups (Depends-on): Update.
25202         * doc/posix-functions/realloc.texi: Update.
25203         * NEWS: Mention the change.
25204
25205         Rename module 'calloc' -> 'calloc-gnu'.
25206         * modules/calloc-gnu: New file, copied from modules/calloc.
25207         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25208         obsolete.
25209         * doc/posix-functions/calloc.texi: Update.
25210         * NEWS: Mention the change.
25211
25212         Rename module 'malloc' -> 'malloc-gnu'.
25213         * modules/malloc-gnu: New file, copied from modules/malloc.
25214         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25215         obsolete.
25216         * modules/argp (Depends-on): Update.
25217         * modules/regex (Depends-on): Update.
25218         * doc/posix-functions/malloc.texi: Update.
25219         * NEWS: Mention the change.
25220
25221 2010-08-28  Eric Blake  <eblake@redhat.com>
25222
25223         pread, pwrite: add missing dependency
25224         * modules/pread (Depends-on): Add extensions.
25225         * modules/pwrite (Depends-on): Likewise.
25226
25227 2010-08-28  Bruno Haible  <bruno@clisp.org>
25228
25229         unistr/u*-strchr: Fix tests dependencies.
25230         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25231         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25232         Reported by Ian Beckwith <ianb@erislabs.net>.
25233
25234 2010-08-28  Bruno Haible  <bruno@clisp.org>
25235
25236         read-file: Don't occupy too much unused memory.
25237         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25238
25239 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25240             Eric Blake  <eblake@redhat.com>
25241             Bruno Haible  <bruno@clisp.org>
25242
25243         read-file: Avoid memory reallocations with regular files.
25244         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25245         (fread_file): With regular files, use the remaining length as the
25246         initial buffer size.  Check against overflow.
25247         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25248         sys_stat.
25249
25250 2010-08-28  Bruno Haible  <bruno@clisp.org>
25251
25252         ftello: Relax license.
25253         * modules/ftello (License): Relax to LGPLv2+.
25254         Reported by Eric Blake.
25255
25256 2010-08-28  Bruno Haible  <bruno@clisp.org>
25257
25258         Avoid relocwrapper link errors due to gnulib replacement functions.
25259         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25260         function.
25261         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25262
25263 2010-08-28  Bruno Haible  <bruno@clisp.org>
25264
25265         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25266         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25267         defined.
25268         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25269         Suggested by Eric Blake.
25270
25271 2010-08-28  Bruno Haible  <bruno@clisp.org>
25272
25273         sys_socket, netdb: Ensure socklen_t gets defined.
25274         * modules/sys_socket (Depends-on): Add socklen.
25275         * modules/netdb (Depends-on): Likewise.
25276         * modules/getaddrinfo (Depends-on): Remove socklen.
25277         * modules/getsockopt (Depends-on): Likewise.
25278         * modules/setsockopt (Depends-on): Likewise.
25279         * tests/test-sys_socket.c: Check that socklen_t is defined.
25280         * tests/test-netdb.c: Likewise.
25281         * m4/socklen.m4: Update comments.
25282         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25283
25284 2010-08-27  Eric Blake  <eblake@redhat.com>
25285
25286         login_tty: add missing dependency
25287         * modules/login_tty (Depends-on): Add pty.
25288
25289 2010-08-26  Eric Blake  <eblake@redhat.com>
25290
25291         lib-symbol-versions: fix m4 quoting
25292         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25293         format for AC_LINK_IFELSE.
25294
25295         glob: fix compile test
25296         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25297
25298         btowc: fix missing file
25299         * modules/btowc (Files): Also ship locale-fr.m4.
25300
25301         lseek: fix link test
25302         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25303         AC_LINK_IFELSE.
25304
25305         include_next: silence autoconf 2.68 warning
25306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25307         AC_COMPILE_IFELSE as special.
25308         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25309         autoconf < 2.68.
25310
25311         acl: fix compilation test
25312         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25313         AC_COMPILE_IFELSE.
25314
25315 2010-08-26  Bruno Haible  <bruno@clisp.org>
25316
25317         Modernize AC_TRY_RUN invocations.
25318         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25319         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25320         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25321         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25322         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25323         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25324         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25325         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25326         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25327         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25329         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25330         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25331         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25332         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25333         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25334         gl_MBRLEN_NUL_RETVAL): Likewise.
25335         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25336         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25337         Likewise.
25338         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25339         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25340         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25341         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25342         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25343         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25344         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25345         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25346         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25347         Likewise.
25348         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25349         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25350         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25351         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25352         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25353         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25354         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25355         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25356         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25358
25359 2010-08-26  Bruno Haible  <bruno@clisp.org>
25360
25361         Modernize AC_TRY_LINK invocations.
25362         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25363         AC_TRY_LINK.
25364         * m4/argp.m4 (gl_ARGP): Likewise.
25365         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25366         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25367         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25368         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25369         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25370         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25371         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25372         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25373         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25374         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25375         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25376         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25377         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25378         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25379         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25380         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25381         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25382         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25383         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25384         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25385         Likewise.
25386         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25387         Likewise.
25388         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25389         Likewise.
25390         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25391         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25392         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25393         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25394         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25395         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25396         * m4/servent.m4 (gl_SERVENT): Likewise.
25397         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25398         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25399         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25400         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25401         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25402         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25403         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25404         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25405         * modules/tsearch-tests (configure.ac): Likewise.
25406
25407 2010-08-26  Bruno Haible  <bruno@clisp.org>
25408
25409         Modernize AC_TRY_COMPILE invocations.
25410         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25411         AC_TRY_COMPILE.
25412         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25413         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25414         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25415         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25416         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25417         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25418         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25419         * m4/lock.m4 (gl_LOCK): Likewise.
25420         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25421         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25422         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25423         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25424         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25425         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25426         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25428         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25429         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25430         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25431         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25432         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25433         extraneous semicolon.
25434
25435 2010-08-26  Jim Meyering  <meyering@redhat.com>
25436
25437         stat-time: relax license LGPL
25438         * modules/stat-time (License): Change from GPL to LGPL,
25439         with consent from all contributors, for use in libguile.
25440         Requested by Ludovic Courtès.
25441
25442 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25443
25444         poll: return immediately on POLLHUP.
25445         * lib/poll.c (poll): Always set timeout before wait_timeout is
25446         computed.
25447
25448 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25449
25450         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25451         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25452         rmdir ("dir/.//"), unlinkat.
25453
25454 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25455
25456         stdbool: avoid spurious failure with modern xlc
25457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25458
25459 2010-08-24  Bruno Haible  <bruno@clisp.org>
25460
25461         getloadavg: simplify code
25462         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25463         gl_have_func. Update comments.
25464
25465 2010-08-24  Eric Blake  <eblake@redhat.com>
25466
25467         getloadavg: don't define SVR4 on cygwin
25468         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25469         only define SVR4 when -lkvm is required.
25470         Reported by Yaakov Selkowitz.
25471
25472 2010-08-24  Bruno Haible  <bruno@clisp.org>
25473
25474         priv-set: fix comment
25475         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25476
25477 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25478
25479         priv-set: fix comments
25480         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25481         to match code, as suggested by David Bartley in:
25482         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25483
25484 2010-08-23  Eric Blake  <eblake@redhat.com>
25485
25486         stdbool: avoid rejecting clang
25487         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25488         * tests/test-stdbool.c: Enable more tests if using the system
25489         <stdbool.h> instead of the gnulib replacement.
25490         (main): Move xlc bug test to a runtime test for all compilers.
25491         Reported by Anders Kaseorg.
25492
25493         argz: fix shell quoting issue
25494         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25495         Reported by Charles Wilson.
25496
25497 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25498             Erik Faye-Lund <kusmabite@gmail.com>
25499
25500         poll, select: handle ERROR_BROKEN_PIPE.
25501         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25502         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25503         * lib/select.c (win32_compute_revents): Do not mark a pipe
25504         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25505
25506 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25507
25508         fts: allow compilation with C++
25509         * lib/fts_.h: Specify extern "C" linkage with C++.
25510
25511 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25512
25513         Fix gnulib-tool sed script de-commentation for AIX sed.
25514         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25515         sed.
25516
25517 2010-08-17  Eric Blake  <eblake@redhat.com>
25518
25519         test-stddef: test for (some) offsetof bugs
25520         * tests/test-stddef.c: Enhance test to ensure correct type of
25521         offsetof.
25522         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25523         that we are not fixing at this time.
25524
25525 2010-08-15  Bruno Haible  <bruno@clisp.org>
25526
25527         stpncpy: Allow stpncpy to be defined as a macro.
25528         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25529         if it's already correctly declared.
25530         * lib/string.in.h (stpncpy): Undefine before redefining.
25531         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25532
25533 2010-08-14  Bruno Haible  <bruno@clisp.org>
25534
25535         Rename module 'memxfrm' to 'amemxfrm'.
25536         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25537         (amemxfrm): Renamed from memxfrm.
25538         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25539         (amemxfrm): Renamed from memxfrm.
25540         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25541         * NEWS: Mention the change.
25542         * MODULES.html.sh (String handling <string.h>): Update.
25543         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25544         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25545         * lib/unicase/u16-casexfrm.c: Likewise.
25546         * lib/unicase/u32-casexfrm.c: Likewise.
25547         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25548         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25549         * lib/uninorm/u16-normxfrm.c: Likewise.
25550         * lib/uninorm/u32-normxfrm.c: Likewise.
25551         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25552         memxfrm.
25553         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25554         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25555         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25556         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25557         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25558         Suggested by Paul Eggert.
25559
25560 2010-08-14  Bruno Haible  <bruno@clisp.org>
25561
25562         Tests for module 'astrxfrm'.
25563         * modules/astrxfrm-tests: New file.
25564         * tests/test-astrxfrm.c: New file.
25565
25566         New module 'astrxfrm'.
25567         * lib/astrxfrm.h: New file.
25568         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25569         * modules/astrxfrm: New file.
25570
25571 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25572
25573         regex: Tweak doc.
25574         * doc/regex.texi (Overview): Don't mention regex.c.
25575         (GNU Regular Expression Compiling): Likewise.
25576         (Match-end-of-line Operator): Mention 'not_eol'.
25577
25578 2010-08-14  Brian Gough  <bjg@gnu.org>
25579             Bruno Haible  <bruno@clisp.org>
25580
25581         git-merge-changelog: add doc relating to use with bzr and hg.
25582         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25583
25584 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25585
25586         pthread: fix pthread.h creation for srcdir != builddir
25587         * modules/pthread (Makefile.am): Fix the rule to work also in a
25588         non-srcdir build.
25589
25590 2010-08-13  Karl Berry  <karl@gnu.org>
25591
25592         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25593         * doc/posix-*/*: force line break before @url of POSIX
25594         specifications.
25595         Suggested by Werner Lemberg.
25596
25597 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25598
25599         strtod: fix const diagnostic
25600         * lib/strtod.c (strtod): Don't assign const char * to char *,
25601         as this elicits a warning from GCC when warnings are enabled.
25602
25603 2010-08-10  Pádraig Brady <P@draigbrady.com>
25604         and Eric Blake  <eblake@redhat.com>
25605
25606         copy-acl: ignore ENOTSUP on HP-UX
25607         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25608         so that it is available for HP-UX.
25609         * lib/copy-acl.c (qcopy_acl): Use it.
25610         Reported by Patrick M. Callahan.
25611
25612 2010-08-10  Eric Blake  <eblake@redhat.com>
25613
25614         open, chown: relax license
25615         * modules/open (License): Change to LGPLv2+, with consent by all
25616         authors, for use in augeas.
25617         * modules/chown (License): Likewise.
25618         * modules/lchown (Likewise): Likewise.
25619         Requested by Adam Stokes.
25620
25621 2010-08-09  Karl Berry  <karl@gnu.org>
25622
25623         * build-aux/ar-lib: new file, import from Automake.
25624         * config/srclist.txt: autocheck for updates.
25625
25626 2010-08-09  Eric Blake  <eblake@redhat.com>
25627
25628         readlinkat: adjust client modules
25629         * modules/areadlinkat (Depends-on): Use readlinkat, not
25630         symlinkat.
25631         * modules/areadlinkat-with-size (Depends-on): Likewise.
25632
25633         mknod: be more vocal about danger of running tests as root
25634         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25635         root, since that is just asking for problems.
25636         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25637
25638         readlinkat: split into its own module
25639         * modules/symlinkat: Split readlinkat...
25640         * modules/readlinkat: ...into separate module.
25641         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25642         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25643         * lib/symlinkat.c (readlinkat): Move...
25644         * lib/readlinkat.c: ...into new file.
25645         * modules/symlinkat-tests: Split readlinkat test...
25646         * modules/readlinkat-tests: ...into separate module.
25647         * tests/test-symlinkat.c: Split...
25648         * tests/test-readlinkat.c: ...into new file.
25649         * NEWS: Document the split.
25650         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25651         * lib/unistd.in.h (readlinkat): Likewise.
25652         Suggested by Bruno Haible.
25653
25654 2010-08-08  Bruno Haible  <bruno@clisp.org>
25655
25656         memxfrm: Speed up.
25657         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25658         that usually only one call to strxfrm is necessary for each string
25659         part.
25660         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25661
25662 2010-08-07  Karl Berry  <karl@gnu.org>
25663
25664         * doc/posix-headers/limits.texi,
25665         * doc/posix-functions/malloc.texi,
25666         * doc/posix-functions/strsignal.texi: missing @item.
25667         * doc/ld-version-script.texi: spurious leading i.
25668         * doc/regex.texi (Interval Operators): no commas inside @var.
25669
25670 2010-08-01  Bruno Haible  <bruno@clisp.org>
25671
25672         Integrate the regex documentation.
25673         * doc/gnulib.texi: Define 'cn' index.
25674         (Regular expressions): New a chapter that includes regex.texi and
25675         regexprops-generic.texi.
25676         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25677         syntax.
25678
25679         Whitespace cleanup.
25680         * doc/regex.texi: Remove trailing spaces.
25681
25682         Add regex documentation.
25683         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25684         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25685         Written by Kathy A. Hargreaves and Karl Berry.
25686
25687 2010-08-01  Bruno Haible  <bruno@clisp.org>
25688
25689         link: Update documentation.
25690         * doc/posix-functions/link.texi: Update regarding Solaris.
25691
25692 2010-07-31  Bruno Haible  <bruno@clisp.org>
25693
25694         Update modules list.
25695         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25696         (String handling <string.h>): Add memcmp2, memxfrm.
25697         (Container data structures): Add xlist, xsublist, xoset.
25698         (Core language properties): Add alignof, unused-parameter.
25699         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25700         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25701         (Unibyte characters <ctype.h>): New section.
25702         (String handling <string.h>): New section.
25703         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25704         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25705         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25706         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25707         tan, tanh, tanl, y0, y1, yn.
25708         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25709         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25710         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25711         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25712         unlockpt, vdprintf, vdprintf-posix.
25713         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25714         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25715         xconcat-filename.
25716         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25717         getdtablesize, pipe2, pipe2-safer.
25718         (Security): New section.
25719         (Networking functions): Add accept4.
25720         (Signal handling): Add sigpipe.
25721         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25722         mbmemcasecoll.
25723         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25724         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25725         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25726         pipe-filter-ii.
25727         (Misc): Add argp-version-etc, login_tty, parse-duration.
25728
25729 2010-07-31  Bruno Haible  <bruno@clisp.org>
25730
25731         Improve doc in MODULES.html.
25732         * modules/linkat (Description): Add the word "function".
25733         * modules/mkfifo (Description): Likewise.
25734         * modules/mknod (Description): Likewise.
25735         * modules/remove (Description): Likewise.
25736         * modules/renameat (Description): Likewise.
25737         * modules/stat (Description): Likewise.
25738         * modules/symlink (Description): Likewise.
25739         * modules/unlink (Description): Likewise.
25740
25741 2010-07-31  Bruno Haible  <bruno@clisp.org>
25742
25743         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25744         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25745         option --enable/disable-c++ instead of --enable/disable-cxx.
25746         * NEWS: Mention the change.
25747
25748 2010-07-31  Bruno Haible  <bruno@clisp.org>
25749
25750         readlink, areadlink: Relax test a bit.
25751         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25752         alternative to ENOTDIR.
25753         * tests/test-areadlink.h (test_areadlink): Likewise.
25754         Reported by Rainer Tammer.
25755
25756 2010-07-31  Bruno Haible  <bruno@clisp.org>
25757
25758         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25759         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25760         character, perform the search using U_STRCHR.
25761         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25762         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25763         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25764         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25765         Suggested by Paolo Bonzini.
25766
25767 2010-07-31  Bruno Haible  <bruno@clisp.org>
25768
25769         unistr/u*-strstr: Fix dependencies.
25770         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25771         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25772         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25773
25774 2010-07-31  Bruno Haible  <bruno@clisp.org>
25775
25776         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25777         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25778         the beginning of the loop.
25779         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25780         cases in 'switch' statement.
25781
25782         unistr/u8-strchr: Fix several bugs.
25783         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25784         the string. When not found, return NULL, not a pointer near the end.
25785
25786         More tests for unistr/u8-strchr.
25787         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25788         that the function does not read past the first occurrence of the byte
25789         being searched.
25790         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25791         * tests/unistr/test-u16-strchr.c (main): New function.
25792         * tests/unistr/test-u32-strchr.c (main): New function.
25793
25794 2010-07-31  Bruno Haible  <bruno@clisp.org>
25795
25796         posix-modules: Ignore backup files of documentation files.
25797         * posix-modules: grep only through files named *.texi.
25798
25799 2010-07-31  Bruno Haible  <bruno@clisp.org>
25800
25801         symlinkat: Fix documentation.
25802         * doc/posix-functions/readlinkat.texi: Fix module name.
25803
25804 2010-07-31  Bruno Haible  <bruno@clisp.org>
25805
25806         fchownat: Replace also when chown has the trailing slash bug.
25807         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25808         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25809         introduced on 2010-04-10.
25810         Reported by Rainer Tammer.
25811
25812 2010-07-31  Bruno Haible  <bruno@clisp.org>
25813
25814         linkat: Work around AIX 7.1 bug.
25815         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25816         whether linkat handles trailing slash correctly. If not, replace linkat
25817         and define LINKAT_TRAILING_SLASH_BUG.
25818         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25819         check whether (fd1,file1) points to a directory if file1 or file2 ends
25820         in a slash. Code taken from lib/link.c.
25821         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25822         Reported by Rainer Tammer.
25823
25824 2010-07-31  Bruno Haible  <bruno@clisp.org>
25825
25826         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25827         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25828         This disables an xlc optimization that was causing wrong test results.
25829         Reported by Rainer Tammer.
25830
25831 2010-07-31  Bruno Haible  <bruno@clisp.org>
25832
25833         iconv: Work around AIX 6.1..7.1 bug.
25834         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25835         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25836         cross-compiling, guess no on all versions of AIX.
25837         Reported by Rainer Tammer.
25838
25839 2010-07-31  Bruno Haible  <bruno@clisp.org>
25840
25841         readlink: Relax test a bit.
25842         * tests/test-readlink.h (test_readlink): Allow different errno value
25843         when readlink is called with a file name that ends in / and refers to
25844         a file.
25845         Suggested by Eric Blake.
25846         Reported by Rainer Tammer.
25847
25848 2010-07-31  Bruno Haible  <bruno@clisp.org>
25849
25850         copysign: Does not require -lm on glibc systems.
25851         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
25852         gl_COMMON_DOUBLE_MATHFUNC.
25853         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
25854
25855 2010-07-31  Bruno Haible  <bruno@clisp.org>
25856
25857         duplocale: Work around AIX 7.1 bug.
25858         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
25859         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
25860         * lib/duplocale.c (rpl_duplocale): Update comment.
25861         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
25862         Reported by Rainer Tammer.
25863
25864 2010-07-30  Bruno Haible  <bruno@clisp.org>
25865
25866         dirfd: Avoid link error on AIX 7.1.
25867         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
25868         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
25869         exist, set REPLACE_DIRFD.
25870         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
25871         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
25872         * doc/posix-functions/dirfd.texi: Update.
25873         Reported by Rainer Tammer.
25874
25875 2010-07-30  Eric Blake  <eblake@redhat.com>
25876
25877         strtod: next round of AIX fixes
25878         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
25879         exponent.
25880         * tests/test-strtod.c (main): Enhance tests.
25881         * doc/posix-functions/strtod.texi (strtod): Document next bug.
25882         Reported by Rainer Tammer.
25883
25884         futimens: fix configure check
25885         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
25886         Reported by Bruno Haible.
25887
25888 2010-07-30  Bruno Haible  <bruno@clisp.org>
25889
25890         getline: Update regarding AIX.
25891         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
25892         Reported by Rainer Tammer.
25893
25894 2010-07-30  Bruno Haible  <bruno@clisp.org>
25895
25896         wcwidth: Drop replacement on AIX 7.
25897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
25898         AIX 7.
25899         Reported by Rainer Tammer.
25900
25901 2010-07-30  Bruno Haible  <bruno@clisp.org>
25902
25903         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
25904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
25905         a 'char *'.
25906         Reported by Rainer Tammer.
25907
25908 2010-07-30  Bruno Haible  <bruno@clisp.org>
25909
25910         unlink: Update regarding AIX.
25911         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
25912         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
25913         Reported by Rainer Tammer.
25914
25915 2010-07-30  Bruno Haible  <bruno@clisp.org>
25916
25917         symlink: Update regarding AIX.
25918         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
25919         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
25920         Reported by Rainer Tammer.
25921
25922 2010-07-30  Bruno Haible  <bruno@clisp.org>
25923
25924         strndup: Update regarding AIX.
25925         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
25926         AIX 7.
25927         Reported by Rainer Tammer.
25928
25929 2010-07-30  Bruno Haible  <bruno@clisp.org>
25930
25931         stat: Update regarding AIX.
25932         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
25933         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
25934         Reported by Rainer Tammer.
25935
25936 2010-07-30  Bruno Haible  <bruno@clisp.org>
25937
25938         truncl: Fix autoconf test.
25939         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
25940         whether truncl works.
25941         Reported by Rainer Tammer.
25942
25943 2010-07-30  Bruno Haible  <bruno@clisp.org>
25944
25945         round: Update regarding AIX.
25946         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
25947         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
25948         Reported by Rainer Tammer.
25949
25950 2010-07-30  Bruno Haible  <bruno@clisp.org>
25951
25952         rename: Update regarding AIX.
25953         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
25954         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
25955         Reported by Rainer Tammer.
25956
25957 2010-07-30  Bruno Haible  <bruno@clisp.org>
25958
25959         printf.m4: Update regarding AIX.
25960         * m4/printf.m4: Update comments regarding AIX.
25961         Reported by Rainer Tammer.
25962
25963 2010-07-30  Bruno Haible  <bruno@clisp.org>
25964
25965         iconv: Update regarding AIX.
25966         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
25967         AIX 7.
25968         Reported by Rainer Tammer.
25969
25970 2010-07-30  Bruno Haible  <bruno@clisp.org>
25971
25972         getopt: Update regarding AIX.
25973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
25974         no on AIX.
25975         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
25976         Reported by Rainer Tammer.
25977
25978 2010-07-30  Bruno Haible  <bruno@clisp.org>
25979
25980         ldexpl; Update regarding AIX.
25981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
25982         on AIX 7.
25983         Reported by Rainer Tammer.
25984
25985 2010-07-30  Bruno Haible  <bruno@clisp.org>
25986
25987         frexpl: Update regarding AIX.
25988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
25989         on AIX 7.
25990         Reported by Rainer Tammer.
25991
25992 2010-07-30  Bruno Haible  <bruno@clisp.org>
25993
25994         open, fopen: Update regarding AIX.
25995         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
25996         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25997         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
25998         * doc/posix-functions/fopen.texi: Likewise.
25999         Reported by Rainer Tammer.
26000
26001 2010-07-30  Bruno Haible  <bruno@clisp.org>
26002
26003         chown: Update doc regarding AIX.
26004         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26005         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26006         Reported by Rainer Tammer.
26007
26008 2010-07-30  Eric Blake  <eblake@redhat.com>
26009
26010         strtod: fix bug in replacement function on AIX
26011         * lib/strtod.c (strtod): Special case broken "0x" parse in
26012         underlying strtod.
26013         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26014         * doc/posix-functions/strtod.texi (strtod): Likewise.
26015         Reported by Rainer Tammer.
26016
26017 2010-07-30  Bruno Haible  <bruno@clisp.org>
26018
26019         mbrlen: Fix cross-compilation guess for AIX.
26020         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26021         guess. Leftover from 2008-12-22.
26022
26023 2010-07-30  Bruno Haible  <bruno@clisp.org>
26024
26025         mbrtowc: Fix cross-compilation guess for AIX.
26026         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26027         guess. Leftover from 2008-12-21.
26028
26029 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26030
26031         init.sh: work around trap limitation of some shells
26032         * tests/init.sh (setup_): Move exit trap outside of shell function.
26033
26034 2010-07-29  Eric Blake  <eblake@redhat.com>
26035
26036         strtod: aid debugging
26037         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26038         understanding why strtod is rejected.
26039
26040 2010-07-28  Bruno Haible  <bruno@clisp.org>
26041
26042         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26043         * lib/unistr/u8-chr.c: Include <string.h>.
26044         * tests/unistr/test-u8-chr.c: Likewise.
26045         * tests/unistr/test-u16-chr.c: Likewise.
26046         * tests/unistr/test-u32-chr.c: Likewise.
26047         * tests/unistr/test-u8-strchr.c: Likewise.
26048         * tests/unistr/test-u16-strchr.c: Likewise.
26049         * tests/unistr/test-u32-strchr.c: Likewise.
26050         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26051         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26052         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26053         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26054
26055 2010-07-28  Bruno Haible  <bruno@clisp.org>
26056
26057         Use spaces for indentation, not tabs.
26058         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26059
26060 2010-07-27  Bruno Haible  <bruno@clisp.org>
26061
26062         mbspcasecmp: Fix function specification.
26063         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26064         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26065         Reported by Eric Blake <eblake@redhat.com>.
26066
26067 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26068
26069         timespec: use cast and not conditional, as truncation isn't possible
26070         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26071         instead of a conditional.  Comment about the situation in more detail.
26072         This undoes most of the 2009-10-29 patch.
26073
26074 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26075
26076         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26077         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26078         * lib/unistr/u8-strchr.c: Likewise.
26079         * modules/unistr/u8-chr: Depend on memchr.
26080
26081         unistr/u*-strchr: add tests
26082         * modules/unistr/u8-strchr-tests: New file.
26083         * modules/unistr/u16-strchr-tests: New file.
26084         * modules/unistr/u32-strchr-tests: New file.
26085         * tests/unistr/test-strchr.h: New file.
26086         * tests/unistr/test-u8-strchr.c: New file.
26087         * tests/unistr/test-u16-strchr.c: New file.
26088         * tests/unistr/test-u32-strchr.c: New file.
26089
26090         unistr/u*-chr: test multibyte sequences more
26091         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26092         test vector.
26093         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26094         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26095         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26096
26097         unistr/u*-chr: test multibyte sequences
26098         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26099
26100         unistr/u*-chr: prepare for multibyte tests
26101         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26102         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26103         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26104         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26105         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26106         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26107
26108 2010-07-18  Bruno Haible  <bruno@clisp.org>
26109
26110         unistr/u8-strchr: Optimize non-ASCII argument case.
26111         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26112         because the first byte often matches anyway.
26113         Reported by Pádraig Brady <P@draigbrady.com>.
26114
26115 2010-07-15  Karl Berry  <karl@gnu.org>
26116
26117         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26118
26119 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26120
26121         getcwd: on Solaris, work better if ancestors are inaccessible
26122         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26123         buffer and size, try again with a large buffer.  This works better
26124         on Solaris, since its getcwd succeeds even if the path to the root
26125         is inaccessible, and this is helpful in common cases such as .zfs
26126         hidden directories.  Problem reported by J Chapman Flack in
26127         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26128         Use system getcwd if it's declared, not merely if it's partly
26129         working; use the partly-working test only to avoid needless effort
26130         if the system getcwd fails.
26131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26132         comment that was already obsolete and is now even more obsolete.
26133         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26134         now might call strdup.
26135
26136 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26137
26138         pthread: Add enough so that coreutils/src/sort.c compiles.
26139         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26140         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26141         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26142         Include <sys/types.h>, in case it defines pthread_t.
26143         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26144         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26145         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26146         (pthread_rwlockattr_t, pthread_spinlock_t):
26147         New typedefs, if HAVE_PTHREAD_T is not defined.
26148         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26149         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26150         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26151         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26152         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26153         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26154         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26155         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26156         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26157         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26158         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26159         New macros.
26160         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26161         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26162         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26163         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26164         (pthread_spin_unlock): New dummy functions.
26165         (pthread_create): Return EAGAIN; don't set errno.
26166         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26167         require AC_C_INLINE.
26168         * modules/pthread (Depends-on): Add sched, time.
26169         (pthread.h): Use AM_V_GEN.
26170
26171 2010-07-13  Bruno Haible  <bruno@clisp.org>
26172
26173         striconveh: Don't malloc memory if the result buffer is sufficient.
26174         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26175         buffer if its size is sufficient.
26176         Reported by Ludovic Courtès <ludo@gnu.org>.
26177
26178 2010-07-13  Bruno Haible  <bruno@clisp.org>
26179
26180         strtod: Add safety check.
26181         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26182
26183 2010-07-12  Bruno Haible  <bruno@clisp.org>
26184
26185         Unify tests that set gl_cv_func_ldexpl_no_libm.
26186         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26187         gl_FUNC_LDEXPL.
26188         (gl_FUNC_LDEXPL): Invoke it.
26189         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26190
26191 2010-07-12  Bruno Haible  <bruno@clisp.org>
26192
26193         Unify tests that set gl_cv_func_ldexp_no_libm.
26194         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26195         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26196         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26197         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26198         * modules/strtod (Files): Add m4/ldexp.m4.
26199
26200 2010-07-12  Bruno Haible  <bruno@clisp.org>
26201
26202         Unify tests that set gl_cv_func_frexpl_no_libm.
26203         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26204         gl_FUNC_FREXPL_NO_LIBM.
26205         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26207
26208 2010-07-12  Bruno Haible  <bruno@clisp.org>
26209
26210         Unify tests that set gl_cv_func_frexp_no_libm.
26211         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26212         gl_FUNC_FREXP_NO_LIBM.
26213         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26214         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26215
26216 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26217
26218         memcoll: clarify sizes versus lengths, document better, and tweak perf
26219         * lib/memcoll.c (strcoll_loop, memcoll0):
26220         Improve quality of descriptive comments.  Name variables
26221         consistently as to whether they are lengths (which do not include
26222         terminating null) versus sizes (which do).
26223         * lib/xmemcoll.c (xmemcoll0): Likewise.
26224         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26225         returned when s1size == 0; this is easier to compile and saves
26226         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26227
26228 2010-07-12  Bruno Haible  <bruno@clisp.org>
26229
26230         Tests for module '_Exit'.
26231         * modules/_Exit-tests: New file.
26232         * tests/test-_Exit.sh: New file.
26233         * tests/test-_Exit.c: New file.
26234
26235         New module '_Exit'.
26236         * lib/stdlib.in.h (__attribute__): New macro.
26237         (_Exit): New declaration.
26238         * lib/_Exit.c: New file.
26239         * m4/_Exit.m4: New file.
26240         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26241         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26242         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26243         * modules/_Exit: New file.
26244         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26245         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26246
26247 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26248
26249         strtod: make it more-accurate typically, and don't require libm
26250         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26251         Include limits.h.  Don't include string.h.
26252         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26253         (locale_isspace): New function, so that no casts are needed to
26254         check whether *s is a space.
26255         (ldexp): Provide an unused dummy if not available.
26256         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26257         (strtod): Use them.  This implementation prefers to use the
26258         underlying strtod if available, falling back on our own code
26259         only to fix known bugs.  This is more likely to produce an
26260         accurate result.  Also, it avoids the use of libm functions.
26261         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26262         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26263         was absent, but it caused a test failure with coreutils.
26264         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26265         with libm.
26266         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26267         * modules/strtod-tests (Makefile.am): Likewise.
26268
26269 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26270             Bruno Haible  <bruno@clisp.org>
26271
26272         unistr/u8-strchr: Optimize ASCII argument case.
26273         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26274
26275 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26276
26277         (x)memcoll: minor tweaks
26278         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26279         is after the type that it qualifies.
26280         (memcoll0): Likewise.
26281         * lib/memcoll.h (memcoll0): Likewise.
26282         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26283         * lib/xmemcoll.h (xmemcoll0): Likewise.
26284         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26285         differs from memcoll in that the NUL byte is part of the argument.
26286         Omit the abort-checks, as performance is a real issue here.  Plus,
26287         the checks were wrong anyway (an off-by-one error).  Omit local
26288         variable 'diff', as it's a bit clearer that way.
26289         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26290         no longer needed.
26291
26292 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26293
26294         (x)memcoll: speedup when input is known to be NUL delimited
26295         * lib/memcoll.c: Include stdlib.
26296         (memcoll0): New function.
26297         (strcoll_loop): New function, refactored for use in both memcoll
26298         and memcoll0.
26299         * lib/memcoll.h (memcoll0): Add prototype.
26300         * lib/xmemcoll.c (xmemcoll0): New function.
26301         (collate_error): New function, refactored for use in both xmemcoll
26302         and xmemcoll0.
26303         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26304         * m4/memcoll.m4: add inline invocation.
26305
26306 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26307
26308         * build-aux/bootstrap: Remove any local translations
26309         from the translation project synchronization directory,
26310         so that local only translations are not distributed.
26311
26312 2010-07-04  Bruno Haible  <bruno@clisp.org>
26313
26314         fsusage: Clarify which code applies to which platforms.
26315         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26316         platform.
26317         * lib/fsusage.c (get_fs_usage): Likewise.
26318
26319 2010-07-04  Bruno Haible  <bruno@clisp.org>
26320
26321         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26322         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26323         Reported by Martin Lambers <marlam@marlam.de>.
26324
26325 2010-07-04  Jim Meyering  <meyering@redhat.com>
26326
26327         hash: once again explicitly disallow insertion of NULL
26328         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26329         inserting a NULL pointer cannot work with these functions.
26330         Add a comment with details.
26331         This reverts part of the 2010-07-01 commit, 5bef1a35
26332         "hash: extend module to deal with non-pointer keys".
26333
26334 2010-07-01  Bruno Haible  <bruno@clisp.org>
26335
26336         stdbool: Update doc.
26337         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26338         Info from Christian Weisgerber <naddy@mips.inka.de>.
26339
26340 2010-07-01  Jim Meyering  <meyering@redhat.com>
26341
26342         hash: extend module to deal with non-pointer keys
26343         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26344         but that allows insertion of non-pointer entries.
26345         Do not disallow an ENTRY value of NULL.
26346         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26347         * lib/hash.h (hash_insert0): Declare.
26348
26349 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26350
26351         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26352         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26353         not present (i.e. with autoconf 2.59 and when using gettextize, not
26354         gnulib), require AC_GNU_SOURCE instead.
26355
26356 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26357
26358         idpriv-drop: Fix tests.
26359         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26360         not to the test-idpriv-droptemp program.
26361
26362 2010-06-29  Bruno Haible  <bruno@clisp.org>
26363
26364         string: Fix syntax error with g++ 2.96.
26365         * lib/string.in.h (__pure__): Remove definition.
26366         (_GL_ATTRIBUTE_PURE): New macro.
26367         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26368         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26369         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26370
26371 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26372
26373         unitypes: Fix bug introduced on 2010-05-18.
26374         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26375
26376 2010-06-22  Eric Blake  <eblake@redhat.com>
26377
26378         memmem: slight optimization
26379         * lib/str-two-way.h (critical_factorization): Update comments.
26380         Reduce work during factorization phase.
26381         Reported by Carlos Bueno <carlos@bueno.org>.
26382
26383 2010-06-21  Bruno Haible  <bruno@clisp.org>
26384
26385         Fix HAVE_CALLOC_POSIX misnomer.
26386         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26387         !HAVE_CALLOC_POSIX.
26388         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26389         HAVE_CALLOC_POSIX.
26390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26391         instead of HAVE_CALLOC_POSIX.
26392         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26393         HAVE_CALLOC_POSIX.
26394
26395         Use modern idiom for calloc() replacement.
26396         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26397         AC_FUNC_CALLOC.
26398         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26399         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26400         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26401         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26402         (gl_REPLACE_CALLOC): New macro.
26403
26404 2010-06-21  Bruno Haible  <bruno@clisp.org>
26405
26406         Fix HAVE_REALLOC_POSIX misnomer.
26407         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26408         !HAVE_REALLOC_POSIX.
26409         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26410         HAVE_REALLOC_POSIX.
26411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26412         instead of HAVE_REALLOC_POSIX.
26413         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26414         HAVE_REALLOC_POSIX.
26415
26416         Use modern idiom for realloc() replacement.
26417         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26418         AC_FUNC_REALLOC.
26419         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26420         Autoconf's AC_FUNC_REALLOC.
26421         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26422         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26423         (gl_REPLACE_REALLOC): New macro.
26424         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26425
26426 2010-06-21  Bruno Haible  <bruno@clisp.org>
26427
26428         Fix HAVE_MALLOC_POSIX misnomer.
26429         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26430         !HAVE_MALLOC_POSIX.
26431         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26432         HAVE_MALLOC_POSIX.
26433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26434         instead of HAVE_MALLOC_POSIX.
26435         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26436         HAVE_MALLOC_POSIX.
26437
26438         Use modern idiom for malloc() replacement.
26439         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26440         AC_FUNC_MALLOC.
26441         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26442         Autoconf's AC_FUNC_MALLOC.
26443         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26444         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26445         (gl_REPLACE_MALLOC): New macro.
26446         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26447
26448 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26449
26450         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26451         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26452         This macro takes 3 arguments, not 4.
26453
26454 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26455
26456         ipv6: fix detection under mingw
26457         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26458         in6_addr.
26459
26460 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26461
26462         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26463         that strtod() works when cross-compiling to a glibc version known
26464         to work.
26465
26466 2010-06-15  Bruno Haible  <bruno@clisp.org>
26467
26468         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26469
26470 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26471
26472         select: Correct timeout.
26473         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26474
26475 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26476
26477         git-version-gen: init shell var to avoid env var influence
26478         * build-aux/git-version-gen (v): Init shell var to empty.
26479
26480 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26481
26482         priv-set: Don't assume that priv.h exists merely because getppriv does.
26483         See Jan Andersen's bug report about AIX 5L in
26484         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26485         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26486         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26487         * lib/priv-set.h: Likewise.
26488         * tests/test-priv-set.c: Likewise.
26489
26490 2010-06-13  Bruno Haible  <bruno@clisp.org>
26491
26492         relocatable: Make it easier to test whether to install wrappers.
26493         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26494         RELOCATABLE_VIA_WRAPPER.
26495
26496 2010-06-13  Bruno Haible  <bruno@clisp.org>
26497
26498         gnulib-tool: Display specified modules and dependencies differently.
26499         * gnulib-tool (func_show_module_list): New function.
26500         (func_import, func_create_testdir): Invoke it.
26501         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26502
26503 2010-06-13  Bruno Haible  <bruno@clisp.org>
26504
26505         gnulib-tool: Align code of func_import and func_create_testdir.
26506         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26507         specified_modules.
26508
26509 2010-06-12  Jim Meyering  <meyering@redhat.com>
26510
26511         test-inttostr: avoid spurious failure on Solaris 9
26512         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26513         to accept "%ju".  Reported by Bruno Haible.
26514
26515 2010-06-11  Jim Meyering  <meyering@redhat.com>
26516
26517         test-sys_socket: mark variables as used more readably
26518         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26519         as "used" explicitly via (void) statement casts.  This is more
26520         readable than using them in an artificial return expression.
26521         Suggestion from Bruno Haible.
26522
26523 2010-06-11  Bruno Haible  <bruno@clisp.org>
26524
26525         Avoid some more warnings from "gcc -Wwrite-strings".
26526         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26527         to 'const char *'.
26528         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26529         * tests/test-c-strcasestr.c (main): Likewise.
26530         * tests/test-mbscasestr1.c (main): Likewise.
26531         * tests/test-mbscasestr2.c (main): Likewise.
26532         * tests/test-memmem.c (main): Likewise.
26533         * tests/test-strstr.c (main): Likewise.
26534         * tests/test-strcasestr.c (main): Likewise.
26535
26536 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26537
26538         init.sh: change framework_failure_ to fail with status 99, not 1
26539         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26540         automake's parallel-tests rule that this is an unexpected failure,
26541         even if the test is listed in XFAIL_TESTS.
26542
26543 2010-06-11  Jim Meyering  <meyering@redhat.com>
26544
26545         test-inttostr: avoid warnings about 4-6KB literal strings
26546         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26547         Include "macros.h", for its definition of ASSERT.
26548         (CK): s/assert/ASSERT/
26549         * modules/inttostr-tests (Files): Add macros.h.
26550
26551         init.sh: don't use $ME_ or skip_ before they are defined
26552         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26553         their first uses.  Also hoist their companions: warn_, fail_,
26554         framework_failure_, $stderr_fileno.  Prompted by a patch from
26555         Stefano Lattarini.
26556
26557         test-sys_socket: avoid set-but-not-used warnings from gcc
26558         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26559         avoid warning about set-but-not-used variables.
26560
26561         test-xvasprintf: avoid 'const' discard warnings
26562         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26563         "const" when assigning from literal strings.
26564         (test_xasprintf): Add "void" in function argument list to placate
26565         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26566
26567         tests: avoid compilation warnings in argmatch and exclude tests...
26568         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26569         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26570         Since it always exits, declare with the "noreturn" attribute.
26571         * tests/test-argmatch.c: Likewise.
26572
26573         tests: avoid 'const' discard warnings in mbsstr tests
26574         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26575         * tests/test-mbsstr2.c (main): Likewise.
26576
26577         test-verify: avoid warning from gcc's -Wmissing-declarations
26578         * tests/test-verify.c (function): Declare to be static.
26579
26580         test-inttostr.c: include <string.h> for use of strcmp
26581         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26582
26583         test-linkat: avoid failed assertion on "other" architectures
26584         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26585         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26586         sparc: https://bugs.launchpad.net/bugs/591968
26587
26588 2010-06-11  Jim Meyering  <meyering@redhat.com>
26589
26590         printf.m4: avoid autoconf's "Expanded Before Required" warning
26591         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26592         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26593         autoconf warning.
26594
26595 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26596
26597         Replacement header templates are now named with ".in", not "_".
26598         * doc/gnulib-intro.texi: Correct.
26599
26600 2010-06-10  Jim Meyering  <meyering@redhat.com>
26601
26602         inttostr-tests: depend on snprintf, not snprintf-posix
26603         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26604         snprintf-posix, to avoid this aclocal failure:
26605           missing file gnulib-tests/vasnprintf.c
26606           configure.ac:45: error: expected source file, required through \
26607           AC_LIBSOURCES, not found
26608
26609 2010-06-10  Jim Meyering  <meyering@redhat.com>
26610
26611         inttostr: add a new function, inttostr, and tests
26612         The namesake function was not available.  The existence of the
26613         template file, inttostr.c makes its addition nontrivial.
26614         * lib/anytostr.c: Rename from inttostr.c.
26615         (anytostr): Rename from inttostr.
26616         * lib/inttostr.c: New file.
26617         * modules/inttostr (Files): Add anytostr.c.
26618         (Makefile.am): Set lib_SOURCES instead of ...
26619         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26620         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26621         * lib/offtostr.c: Likewise.
26622         * lib/uinttostr.c: Likewise.
26623         * lib/umaxtostr.c: Likewise.
26624         * modules/inttostr-tests: New file.
26625         * tests/test-inttostr.c: New file.  Test these functions.
26626
26627 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26628             Bruno Haible  <bruno@clisp.org>
26629
26630         Add "Extending Gnulib" chapter to manual.
26631         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26632         chapter.
26633         (Extending Gnulib): New chapter.
26634         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26635         chapter.
26636
26637 2010-06-09  Bruno Haible  <bruno@clisp.org>
26638
26639         Avoid relocwrapper link errors due to gnulib replacement functions.
26640         * lib/areadlink.c: Use the system's malloc, realloc functions.
26641         (areadlink): Set errno to ENOMEM explicitly.
26642         * modules/areadlink (Depends-on): Remove malloc-posix.
26643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26644
26645 2010-06-09  Bruno Haible  <bruno@clisp.org>
26646
26647         Avoid relocwrapper link errors due to gnulib replacement functions.
26648         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26649         * lib/malloca.c: Likewise.
26650         * lib/relocatable.c: Likewise.
26651         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26652         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26653         * lib/setenv.c: Use the system's malloc, realloc functions.
26654         * lib/strerror.c: Use the system's sprintf function.
26655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26656
26657 2010-06-04  Bruno Haible  <bruno@clisp.org>
26658
26659         Prefer documented low-level autoconf macro names.
26660         * m4/lib-link.m4: Use m4_translit instead of translit.
26661         * m4/environ.m4: Likewise.
26662         * m4/mathfunc.m4: Likewise.
26663         * m4/onceonly.m4: Likewise.
26664         * m4/stdint.m4: Likewise.
26665         Suggested by Eric Blake.
26666
26667 2010-06-04  Martin Lambers  <marlam@marlam.de>
26668             Bruno Haible  <bruno@clisp.org>
26669
26670         havelib: Allow library names with '+' characters.
26671         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26672         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26673
26674 2010-06-09  Bruno Haible  <bruno@clisp.org>
26675
26676         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26677         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26678         realloc failed.
26679
26680 2010-06-08  Peter Simons  <simons@cryp.to>
26681
26682         maint.mk: make the news-check rule more configurable
26683         * top/maint.mk (news-check-lines-spec): New variable.
26684         (news-check): Use "sed -n 1,10p" in place of "head".
26685
26686 2010-06-07  Jim Meyering  <meyering@redhat.com>
26687
26688         do-release-commit-and-tag: fix typo in --help
26689         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26690
26691         regex: avoid new dead-code warning with gcc-4.6.0
26692         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26693         if-block containing a while-loop.  It's been unused for at least
26694         5 years.
26695
26696 2010-06-05  Bruno Haible  <bruno@clisp.org>
26697
26698         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26699         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26700
26701 2010-06-04  Bruno Haible  <bruno@clisp.org>
26702
26703         Update to GNU gettext 0.18.1.
26704         * modules/gettext (configure.ac): Require gettext infrastructure from
26705         version 0.18.1.
26706
26707 2010-06-03  Bruno Haible  <bruno@clisp.org>
26708
26709         Don't use AC_LIBOBJ with file names in subdirectories.
26710         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26711         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26712         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26713         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26714         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26715         gl_LIBUNISTRING_LIBSOURCE.
26716         (Makefile.am): Augment lib_SOURCES here, conditionally.
26717         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26718
26719 2010-06-03  Bruno Haible  <bruno@clisp.org>
26720
26721         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26722         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26723         expansion does not end with a newline.
26724         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26725         unnecessary newline.
26726
26727 2010-06-03  Bruno Haible  <bruno@clisp.org>
26728
26729         Reduce dependencies.
26730         * tests/test-quotearg.h: New file, extracted from
26731         tests/test-quotearg.c.
26732         * tests/test-quotearg-simple.c: New file, extracted from
26733         tests/test-quotearg.c.
26734         * tests/test-quotearg.c: Don't include <ctype.h>.
26735         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26736         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26737         use_quote_double_quotes, use_quotearg_colon): Moved to
26738         tests/test-quotearg.h.
26739         (results_g, flag_results, custom_quotes, custom_results): Moved
26740         to tests/test-quotearg-simple.c.
26741         (main): Moved the part that does not depend on gettext to
26742         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26743         performed.
26744         * modules/quotearg-simple: New file.
26745         * modules/quotearg-simple-tests: New file.
26746         * modules/quotearg (Depends-on): Add quotearg-simple.
26747         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26748         (Files): Add tests/test-quotearg.h.
26749         Reported by Paolo Bonzini.
26750
26751 2010-06-03  Bruno Haible  <bruno@clisp.org>
26752
26753         Reduce dependencies.
26754         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26755
26756 2010-06-03  Bruno Haible  <bruno@clisp.org>
26757
26758         time: Undefine more broken macros.
26759         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26760         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26761         Reported by Eric Blake.
26762
26763 2010-06-03  Bruno Haible  <bruno@clisp.org>
26764
26765         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26766         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26767         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26768         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26769         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26770         Reported by Ludovic Courtès <ludo@gnu.org>.
26771
26772 2010-06-02  Eric Blake  <eblake@redhat.com>
26773
26774         time: work with mingw + pthreads-win32 library
26775         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26776         if timespec is defined only in pthread.h.
26777         * modules/time (Makefile.am): Substitute it.
26778         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26779         <pthread.h>, when needed.
26780         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26781         from the library.
26782
26783 2010-05-31  Bruno Haible  <bruno@clisp.org>
26784
26785         Avoid expanding two macros in the wrong order.
26786         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26787         gl_LIBUNISTRING if it is defined.
26788         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26789         autoconf >= 2.64.
26790         Reported by Ludovic Courtès <ludo@gnu.org>.
26791
26792 2010-05-27  Jim Meyering  <meyering@redhat.com>
26793
26794         maint.mk: also prohibit "#undef" of always-defined symbols
26795         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26796         Allow more than one space before the symbol name.
26797         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26798         the regexp uses alternation.
26799
26800 2010-05-26  Eric Blake  <eblake@redhat.com>
26801
26802         maint.mk: avoid echo -e
26803         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26804         Convert all uses of echo -* to printf.
26805         Reported by Matthias Bolte.
26806
26807 2010-05-25  Bruno Haible  <bruno@clisp.org>
26808
26809         Update to GNU gettext 0.18, part 2.
26810         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26811         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26812
26813 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26814
26815         Add missing include in test-pwrite.c.
26816         * tests/test-pwrite.c: Include string.h, for strcmp.
26817
26818 2010-05-24  Bruno Haible  <bruno@clisp.org>
26819
26820         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26821
26822 2010-05-24  Bruno Haible  <bruno@clisp.org>
26823
26824         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26825         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26826         iconveh_error argument.
26827         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26828         U_STRCONV_TO_LOCALE.
26829         * lib/unistr/u16-strcoll.c: Likewise.
26830         * lib/unistr/u32-strcoll.c: Likewise.
26831         * modules/unistr/u8-strcoll (Depends-on): Add
26832         uniconv/u8-strconv-to-enc, localcharset. Remove
26833         uniconv/u8-strconv-to-locale.
26834         (configure.ac): Bump version number.
26835         * modules/unistr/u16-strcoll (Depends-on): Add
26836         uniconv/u16-strconv-to-enc, localcharset. Remove
26837         uniconv/u16-strconv-to-locale.
26838         (configure.ac): Bump version number.
26839         * modules/unistr/u32-strcoll (Depends-on): Add
26840         uniconv/u32-strconv-to-enc, localcharset. Remove
26841         uniconv/u32-strconv-to-locale.
26842         (configure.ac): Bump version number.
26843
26844 2010-05-24  Bruno Haible  <bruno@clisp.org>
26845
26846         Avoid a test failure on NetBSD 5.0.
26847         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
26848         an iconv() bug.
26849
26850 2010-05-24  Bruno Haible  <bruno@clisp.org>
26851
26852         Adjust #include directive style.
26853         * modules/regex (Includes): Recommend to write <regex.h>.
26854
26855 2010-05-24  Bruno Haible  <bruno@clisp.org>
26856
26857         regex: Don't require alloca.
26858         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
26859         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
26860         only inside if (0).
26861
26862 2010-05-23  Jim Meyering  <meyering@redhat.com>
26863
26864         test-renameat.c: include <sys/stat.h>
26865         * tests/test-renameat.c: Include <sys/stat.h>; required for
26866         definition of S_IS* macros.
26867
26868 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
26869
26870         Update maintainer documentation for 'relocatable-prog' module.
26871         * doc/relocatable-maint.texi: Update.
26872         Comments by Bruno Haible.
26873
26874 2010-05-23  Bruno Haible  <bruno@clisp.org>
26875
26876         git-merge-changelog: Enable --split-merged-entry by default.
26877         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
26878         (usage): Don't mention this option any more.
26879         Reported by Ralf Wildenhues.
26880
26881 2010-05-23  Jim Meyering  <meyering@redhat.com>
26882
26883         test-pwrite: do not leave behind a test file named "out"
26884         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
26885         The trivial-looking use of init.sh is really necessary.
26886         It ensures that the temporary file, "out", is created in
26887         a temporary directory, and removed upon termination.
26888         * tests/test-pwrite.sh: Re-add file.
26889         * modules/pwrite-tests: Reference it.
26890
26891 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26892
26893         Fix output redirection buglet in init.sh.
26894         * tests/init.sh: Fix redirection of stderr.
26895
26896 2010-05-20  Simon Josefsson  <simon@josefsson.org>
26897
26898         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
26899
26900 2010-05-17  Simon Josefsson  <simon@josefsson.org>
26901
26902         * modules/valgrind-tests: New file.
26903         * m4/valgrind-tests.m4: New file.
26904         * doc/valgrind-tests.texi: New file.
26905         * doc/gnulib.texi (Running self-tests under valgrind): New
26906         section.
26907
26908 2010-05-19  Bruno Haible  <bruno@clisp.org>
26909
26910         Clean up dead code in recent commit.
26911         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
26912         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
26913         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
26914         Suggested by Paolo Bonzini.
26915
26916 2010-05-19  Bruno Haible  <bruno@clisp.org>
26917
26918         Avoid valgrind error reports from libunistring.
26919         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
26920         * modules/libunistring (Files): Add it.
26921         * modules/libunistring-optional (Files): Likewise.
26922
26923 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
26924             Bruno Haible  <bruno@clisp.org>
26925
26926         New module 'libunistring-optional'.
26927         * modules/libunistring-optional: New file.
26928         * m4/libunistring-base.m4: New file.
26929         * m4/libunistring-optional.m4: New file.
26930         * lib/unicase.in.h: Renamed from lib/unicase.h.
26931         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
26932         * lib/unictype.in.h: Renamed from lib/unictype.h.
26933         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
26934         * lib/uniname.in.h: Renamed from lib/uniname.h.
26935         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
26936         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
26937         * lib/unistr.in.h: Renamed from lib/unistr.h.
26938         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
26939         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
26940         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
26941         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
26942         gl_LIBUNISTRING. If the library was found, determine the installed
26943         version and set LIBUNISTRING_VERSION.
26944         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
26945         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
26946         handle a configuration option --with-included-libunistring.
26947         * modules/libunistring (Files): Add m4/absolute-header.m4.
26948         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
26949         Add m4/libunistring-base.m4.
26950         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26951         (Makefile.am): Build unicase.h from unicase.in.h.
26952         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
26953         Add m4/libunistring-base.m4.
26954         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26955         (Makefile.am): Build uniconv.h from uniconv.in.h.
26956         * modules/unictype/base (Files): Use unictype.in.h instead of
26957         unictype.h. Add m4/libunistring-base.m4.
26958         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26959         (Makefile.am): Build unictype.h from unictype.in.h.
26960         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
26961         Add m4/libunistring-base.m4.
26962         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26963         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
26964         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
26965         Add m4/libunistring-base.m4.
26966         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26967         (Makefile.am): Build uniname.h from uniname.in.h.
26968         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
26969         Add m4/libunistring-base.m4.
26970         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26971         (Makefile.am): Build uninorm.h from uninorm.in.h.
26972         * modules/unistdio/base (Files): Use unistdio.in.h instead of
26973         unistdio.h. Add m4/libunistring-base.m4.
26974         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26975         (Makefile.am): Build unistdio.h from unistdio.in.h.
26976         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
26977         Add m4/libunistring-base.m4.
26978         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26979         (Makefile.am): Build unistr.h from unistr.in.h.
26980         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
26981         Add m4/libunistring-base.m4.
26982         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26983         (Makefile.am): Build unitypes.h from unitypes.in.h.
26984         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
26985         Add m4/libunistring-base.m4.
26986         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26987         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
26988         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
26989         uniwidth.h. Add m4/libunistring-base.m4.
26990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26991         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
26992         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
26993         instead of augmenting lib_SOURCES.
26994         * modules/unicase/empty-suffix-context: Likewise.
26995         * modules/unicase/locale-language: Likewise.
26996         * modules/unicase/tolower: Likewise.
26997         * modules/unicase/totitle: Likewise.
26998         * modules/unicase/toupper: Likewise.
26999         * modules/unicase/u8-casecmp: Likewise.
27000         * modules/unicase/u8-casecoll: Likewise.
27001         * modules/unicase/u8-casefold: Likewise.
27002         * modules/unicase/u8-casexfrm: Likewise.
27003         * modules/unicase/u8-ct-casefold: Likewise.
27004         * modules/unicase/u8-ct-tolower: Likewise.
27005         * modules/unicase/u8-ct-totitle: Likewise.
27006         * modules/unicase/u8-ct-toupper: Likewise.
27007         * modules/unicase/u8-is-cased: Likewise.
27008         * modules/unicase/u8-is-casefolded: Likewise.
27009         * modules/unicase/u8-is-lowercase: Likewise.
27010         * modules/unicase/u8-is-titlecase: Likewise.
27011         * modules/unicase/u8-is-uppercase: Likewise.
27012         * modules/unicase/u8-prefix-context: Likewise.
27013         * modules/unicase/u8-suffix-context: Likewise.
27014         * modules/unicase/u8-tolower: Likewise.
27015         * modules/unicase/u8-totitle: Likewise.
27016         * modules/unicase/u8-toupper: Likewise.
27017         * modules/unicase/u16-casecmp: Likewise.
27018         * modules/unicase/u16-casecoll: Likewise.
27019         * modules/unicase/u16-casefold: Likewise.
27020         * modules/unicase/u16-casexfrm: Likewise.
27021         * modules/unicase/u16-ct-casefold: Likewise.
27022         * modules/unicase/u16-ct-tolower: Likewise.
27023         * modules/unicase/u16-ct-totitle: Likewise.
27024         * modules/unicase/u16-ct-toupper: Likewise.
27025         * modules/unicase/u16-is-cased: Likewise.
27026         * modules/unicase/u16-is-casefolded: Likewise.
27027         * modules/unicase/u16-is-lowercase: Likewise.
27028         * modules/unicase/u16-is-titlecase: Likewise.
27029         * modules/unicase/u16-is-uppercase: Likewise.
27030         * modules/unicase/u16-prefix-context: Likewise.
27031         * modules/unicase/u16-suffix-context: Likewise.
27032         * modules/unicase/u16-tolower: Likewise.
27033         * modules/unicase/u16-totitle: Likewise.
27034         * modules/unicase/u16-toupper: Likewise.
27035         * modules/unicase/u32-casecmp: Likewise.
27036         * modules/unicase/u32-casecoll: Likewise.
27037         * modules/unicase/u32-casefold: Likewise.
27038         * modules/unicase/u32-casexfrm: Likewise.
27039         * modules/unicase/u32-ct-casefold: Likewise.
27040         * modules/unicase/u32-ct-tolower: Likewise.
27041         * modules/unicase/u32-ct-totitle: Likewise.
27042         * modules/unicase/u32-ct-toupper: Likewise.
27043         * modules/unicase/u32-is-cased: Likewise.
27044         * modules/unicase/u32-is-casefolded: Likewise.
27045         * modules/unicase/u32-is-lowercase: Likewise.
27046         * modules/unicase/u32-is-titlecase: Likewise.
27047         * modules/unicase/u32-is-uppercase: Likewise.
27048         * modules/unicase/u32-prefix-context: Likewise.
27049         * modules/unicase/u32-suffix-context: Likewise.
27050         * modules/unicase/u32-tolower: Likewise.
27051         * modules/unicase/u32-totitle: Likewise.
27052         * modules/unicase/u32-toupper: Likewise.
27053         * modules/unicase/ulc-casecmp: Likewise.
27054         * modules/unicase/ulc-casecoll: Likewise.
27055         * modules/unicase/ulc-casexfrm: Likewise.
27056         * modules/uniconv/u8-conv-from-enc: Likewise.
27057         * modules/uniconv/u8-conv-to-enc: Likewise.
27058         * modules/uniconv/u8-strconv-from-enc: Likewise.
27059         * modules/uniconv/u8-strconv-from-locale: Likewise.
27060         * modules/uniconv/u8-strconv-to-enc: Likewise.
27061         * modules/uniconv/u8-strconv-to-locale: Likewise.
27062         * modules/uniconv/u16-conv-from-enc: Likewise.
27063         * modules/uniconv/u16-conv-to-enc: Likewise.
27064         * modules/uniconv/u16-strconv-from-enc: Likewise.
27065         * modules/uniconv/u16-strconv-from-locale: Likewise.
27066         * modules/uniconv/u16-strconv-to-enc: Likewise.
27067         * modules/uniconv/u16-strconv-to-locale: Likewise.
27068         * modules/uniconv/u32-conv-from-enc: Likewise.
27069         * modules/uniconv/u32-conv-to-enc: Likewise.
27070         * modules/uniconv/u32-strconv-from-enc: Likewise.
27071         * modules/uniconv/u32-strconv-from-locale: Likewise.
27072         * modules/uniconv/u32-strconv-to-enc: Likewise.
27073         * modules/uniconv/u32-strconv-to-locale: Likewise.
27074         * modules/unictype/bidicategory-byname: Likewise.
27075         * modules/unictype/bidicategory-name: Likewise.
27076         * modules/unictype/bidicategory-of: Likewise.
27077         * modules/unictype/bidicategory-test: Likewise.
27078         * modules/unictype/block-list: Likewise.
27079         * modules/unictype/block-test: Likewise.
27080         * modules/unictype/category-C: Likewise.
27081         * modules/unictype/category-Cc: Likewise.
27082         * modules/unictype/category-Cf: Likewise.
27083         * modules/unictype/category-Cn: Likewise.
27084         * modules/unictype/category-Co: Likewise.
27085         * modules/unictype/category-Cs: Likewise.
27086         * modules/unictype/category-L: Likewise.
27087         * modules/unictype/category-Ll: Likewise.
27088         * modules/unictype/category-Lm: Likewise.
27089         * modules/unictype/category-Lo: Likewise.
27090         * modules/unictype/category-Lt: Likewise.
27091         * modules/unictype/category-Lu: Likewise.
27092         * modules/unictype/category-M: Likewise.
27093         * modules/unictype/category-Mc: Likewise.
27094         * modules/unictype/category-Me: Likewise.
27095         * modules/unictype/category-Mn: Likewise.
27096         * modules/unictype/category-N: Likewise.
27097         * modules/unictype/category-Nd: Likewise.
27098         * modules/unictype/category-Nl: Likewise.
27099         * modules/unictype/category-No: Likewise.
27100         * modules/unictype/category-P: Likewise.
27101         * modules/unictype/category-Pc: Likewise.
27102         * modules/unictype/category-Pd: Likewise.
27103         * modules/unictype/category-Pe: Likewise.
27104         * modules/unictype/category-Pf: Likewise.
27105         * modules/unictype/category-Pi: Likewise.
27106         * modules/unictype/category-Po: Likewise.
27107         * modules/unictype/category-Ps: Likewise.
27108         * modules/unictype/category-S: Likewise.
27109         * modules/unictype/category-Sc: Likewise.
27110         * modules/unictype/category-Sk: Likewise.
27111         * modules/unictype/category-Sm: Likewise.
27112         * modules/unictype/category-So: Likewise.
27113         * modules/unictype/category-Z: Likewise.
27114         * modules/unictype/category-Zl: Likewise.
27115         * modules/unictype/category-Zp: Likewise.
27116         * modules/unictype/category-Zs: Likewise.
27117         * modules/unictype/category-and: Likewise.
27118         * modules/unictype/category-and-not: Likewise.
27119         * modules/unictype/category-byname: Likewise.
27120         * modules/unictype/category-name: Likewise.
27121         * modules/unictype/category-none: Likewise.
27122         * modules/unictype/category-of: Likewise.
27123         * modules/unictype/category-or: Likewise.
27124         * modules/unictype/category-test: Likewise.
27125         * modules/unictype/combining-class: Likewise.
27126         * modules/unictype/ctype-alnum: Likewise.
27127         * modules/unictype/ctype-alpha: Likewise.
27128         * modules/unictype/ctype-blank: Likewise.
27129         * modules/unictype/ctype-cntrl: Likewise.
27130         * modules/unictype/ctype-digit: Likewise.
27131         * modules/unictype/ctype-graph: Likewise.
27132         * modules/unictype/ctype-lower: Likewise.
27133         * modules/unictype/ctype-print: Likewise.
27134         * modules/unictype/ctype-punct: Likewise.
27135         * modules/unictype/ctype-space: Likewise.
27136         * modules/unictype/ctype-upper: Likewise.
27137         * modules/unictype/ctype-xdigit: Likewise.
27138         * modules/unictype/decimal-digit: Likewise.
27139         * modules/unictype/digit: Likewise.
27140         * modules/unictype/mirror: Likewise.
27141         * modules/unictype/numeric: Likewise.
27142         * modules/unictype/property-alphabetic: Likewise.
27143         * modules/unictype/property-ascii-hex-digit: Likewise.
27144         * modules/unictype/property-bidi-arabic-digit: Likewise.
27145         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27146         * modules/unictype/property-bidi-block-separator: Likewise.
27147         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27148         * modules/unictype/property-bidi-common-separator: Likewise.
27149         * modules/unictype/property-bidi-control: Likewise.
27150         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27151         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27152         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27153         * modules/unictype/property-bidi-european-digit: Likewise.
27154         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27155         * modules/unictype/property-bidi-left-to-right: Likewise.
27156         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27157         * modules/unictype/property-bidi-other-neutral: Likewise.
27158         * modules/unictype/property-bidi-pdf: Likewise.
27159         * modules/unictype/property-bidi-segment-separator: Likewise.
27160         * modules/unictype/property-bidi-whitespace: Likewise.
27161         * modules/unictype/property-byname: Likewise.
27162         * modules/unictype/property-combining: Likewise.
27163         * modules/unictype/property-composite: Likewise.
27164         * modules/unictype/property-currency-symbol: Likewise.
27165         * modules/unictype/property-dash: Likewise.
27166         * modules/unictype/property-decimal-digit: Likewise.
27167         * modules/unictype/property-default-ignorable-code-point: Likewise.
27168         * modules/unictype/property-deprecated: Likewise.
27169         * modules/unictype/property-diacritic: Likewise.
27170         * modules/unictype/property-extender: Likewise.
27171         * modules/unictype/property-format-control: Likewise.
27172         * modules/unictype/property-grapheme-base: Likewise.
27173         * modules/unictype/property-grapheme-extend: Likewise.
27174         * modules/unictype/property-grapheme-link: Likewise.
27175         * modules/unictype/property-hex-digit: Likewise.
27176         * modules/unictype/property-hyphen: Likewise.
27177         * modules/unictype/property-id-continue: Likewise.
27178         * modules/unictype/property-id-start: Likewise.
27179         * modules/unictype/property-ideographic: Likewise.
27180         * modules/unictype/property-ids-binary-operator: Likewise.
27181         * modules/unictype/property-ids-trinary-operator: Likewise.
27182         * modules/unictype/property-ignorable-control: Likewise.
27183         * modules/unictype/property-iso-control: Likewise.
27184         * modules/unictype/property-join-control: Likewise.
27185         * modules/unictype/property-left-of-pair: Likewise.
27186         * modules/unictype/property-line-separator: Likewise.
27187         * modules/unictype/property-logical-order-exception: Likewise.
27188         * modules/unictype/property-lowercase: Likewise.
27189         * modules/unictype/property-math: Likewise.
27190         * modules/unictype/property-non-break: Likewise.
27191         * modules/unictype/property-not-a-character: Likewise.
27192         * modules/unictype/property-numeric: Likewise.
27193         * modules/unictype/property-other-alphabetic: Likewise.
27194         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27195         * modules/unictype/property-other-grapheme-extend: Likewise.
27196         * modules/unictype/property-other-id-continue: Likewise.
27197         * modules/unictype/property-other-id-start: Likewise.
27198         * modules/unictype/property-other-lowercase: Likewise.
27199         * modules/unictype/property-other-math: Likewise.
27200         * modules/unictype/property-other-uppercase: Likewise.
27201         * modules/unictype/property-paired-punctuation: Likewise.
27202         * modules/unictype/property-paragraph-separator: Likewise.
27203         * modules/unictype/property-pattern-syntax: Likewise.
27204         * modules/unictype/property-pattern-white-space: Likewise.
27205         * modules/unictype/property-private-use: Likewise.
27206         * modules/unictype/property-punctuation: Likewise.
27207         * modules/unictype/property-quotation-mark: Likewise.
27208         * modules/unictype/property-radical: Likewise.
27209         * modules/unictype/property-sentence-terminal: Likewise.
27210         * modules/unictype/property-soft-dotted: Likewise.
27211         * modules/unictype/property-space: Likewise.
27212         * modules/unictype/property-terminal-punctuation: Likewise.
27213         * modules/unictype/property-test: Likewise.
27214         * modules/unictype/property-titlecase: Likewise.
27215         * modules/unictype/property-unassigned-code-value: Likewise.
27216         * modules/unictype/property-unified-ideograph: Likewise.
27217         * modules/unictype/property-uppercase: Likewise.
27218         * modules/unictype/property-variation-selector: Likewise.
27219         * modules/unictype/property-white-space: Likewise.
27220         * modules/unictype/property-xid-continue: Likewise.
27221         * modules/unictype/property-xid-start: Likewise.
27222         * modules/unictype/property-zero-width: Likewise.
27223         * modules/unictype/scripts: Likewise.
27224         * modules/unictype/syntax-c-ident: Likewise.
27225         * modules/unictype/syntax-c-whitespace: Likewise.
27226         * modules/unictype/syntax-java-ident: Likewise.
27227         * modules/unictype/syntax-java-whitespace: Likewise.
27228         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27229         * modules/unilbrk/u8-width-linebreaks: Likewise.
27230         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27231         * modules/unilbrk/u16-width-linebreaks: Likewise.
27232         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27233         * modules/unilbrk/u32-width-linebreaks: Likewise.
27234         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27235         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27236         * modules/uniname/uniname: Likewise.
27237         * modules/uninorm/canonical-decomposition: Likewise.
27238         * modules/uninorm/composition: Likewise.
27239         * modules/uninorm/decomposing-form: Likewise.
27240         * modules/uninorm/decomposition: Likewise.
27241         * modules/uninorm/filter: Likewise.
27242         * modules/uninorm/nfc: Likewise.
27243         * modules/uninorm/nfd: Likewise.
27244         * modules/uninorm/nfkc: Likewise.
27245         * modules/uninorm/nfkd: Likewise.
27246         * modules/uninorm/u8-normalize: Likewise.
27247         * modules/uninorm/u8-normcmp: Likewise.
27248         * modules/uninorm/u8-normcoll: Likewise.
27249         * modules/uninorm/u8-normxfrm: Likewise.
27250         * modules/uninorm/u16-normalize: Likewise.
27251         * modules/uninorm/u16-normcmp: Likewise.
27252         * modules/uninorm/u16-normcoll: Likewise.
27253         * modules/uninorm/u16-normxfrm: Likewise.
27254         * modules/uninorm/u32-normalize: Likewise.
27255         * modules/uninorm/u32-normcmp: Likewise.
27256         * modules/uninorm/u32-normcoll: Likewise.
27257         * modules/uninorm/u32-normxfrm: Likewise.
27258         * modules/unistdio/u8-asnprintf: Likewise.
27259         * modules/unistdio/u8-asprintf: Likewise.
27260         * modules/unistdio/u8-snprintf: Likewise.
27261         * modules/unistdio/u8-sprintf: Likewise.
27262         * modules/unistdio/u8-u8-asnprintf: Likewise.
27263         * modules/unistdio/u8-u8-asprintf: Likewise.
27264         * modules/unistdio/u8-u8-snprintf: Likewise.
27265         * modules/unistdio/u8-u8-sprintf: Likewise.
27266         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27267         * modules/unistdio/u8-u8-vasprintf: Likewise.
27268         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27269         * modules/unistdio/u8-u8-vsprintf: Likewise.
27270         * modules/unistdio/u8-vasnprintf: Likewise.
27271         * modules/unistdio/u8-vasprintf: Likewise.
27272         * modules/unistdio/u8-vsnprintf: Likewise.
27273         * modules/unistdio/u8-vsprintf: Likewise.
27274         * modules/unistdio/u16-asnprintf: Likewise.
27275         * modules/unistdio/u16-asprintf: Likewise.
27276         * modules/unistdio/u16-snprintf: Likewise.
27277         * modules/unistdio/u16-sprintf: Likewise.
27278         * modules/unistdio/u16-u16-asnprintf: Likewise.
27279         * modules/unistdio/u16-u16-asprintf: Likewise.
27280         * modules/unistdio/u16-u16-snprintf: Likewise.
27281         * modules/unistdio/u16-u16-sprintf: Likewise.
27282         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27283         * modules/unistdio/u16-u16-vasprintf: Likewise.
27284         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27285         * modules/unistdio/u16-u16-vsprintf: Likewise.
27286         * modules/unistdio/u16-vasnprintf: Likewise.
27287         * modules/unistdio/u16-vasprintf: Likewise.
27288         * modules/unistdio/u16-vsnprintf: Likewise.
27289         * modules/unistdio/u16-vsprintf: Likewise.
27290         * modules/unistdio/u32-asnprintf: Likewise.
27291         * modules/unistdio/u32-asprintf: Likewise.
27292         * modules/unistdio/u32-snprintf: Likewise.
27293         * modules/unistdio/u32-sprintf: Likewise.
27294         * modules/unistdio/u32-u32-asnprintf: Likewise.
27295         * modules/unistdio/u32-u32-asprintf: Likewise.
27296         * modules/unistdio/u32-u32-snprintf: Likewise.
27297         * modules/unistdio/u32-u32-sprintf: Likewise.
27298         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27299         * modules/unistdio/u32-u32-vasprintf: Likewise.
27300         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27301         * modules/unistdio/u32-u32-vsprintf: Likewise.
27302         * modules/unistdio/u32-vasnprintf: Likewise.
27303         * modules/unistdio/u32-vasprintf: Likewise.
27304         * modules/unistdio/u32-vsnprintf: Likewise.
27305         * modules/unistdio/u32-vsprintf: Likewise.
27306         * modules/unistdio/ulc-asnprintf: Likewise.
27307         * modules/unistdio/ulc-asprintf: Likewise.
27308         * modules/unistdio/ulc-fprintf: Likewise.
27309         * modules/unistdio/ulc-snprintf: Likewise.
27310         * modules/unistdio/ulc-sprintf: Likewise.
27311         * modules/unistdio/ulc-vasnprintf: Likewise.
27312         * modules/unistdio/ulc-vasprintf: Likewise.
27313         * modules/unistdio/ulc-vfprintf: Likewise.
27314         * modules/unistdio/ulc-vsnprintf: Likewise.
27315         * modules/unistdio/ulc-vsprintf: Likewise.
27316         * modules/unistr/u8-check: Likewise.
27317         * modules/unistr/u8-chr: Likewise.
27318         * modules/unistr/u8-cmp: Likewise.
27319         * modules/unistr/u8-cmp2: Likewise.
27320         * modules/unistr/u8-cpy: Likewise.
27321         * modules/unistr/u8-cpy-alloc: Likewise.
27322         * modules/unistr/u8-endswith: Likewise.
27323         * modules/unistr/u8-mblen: Likewise.
27324         * modules/unistr/u8-mbsnlen: Likewise.
27325         * modules/unistr/u8-mbtouc: Likewise.
27326         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27327         * modules/unistr/u8-mbtoucr: Likewise.
27328         * modules/unistr/u8-move: Likewise.
27329         * modules/unistr/u8-next: Likewise.
27330         * modules/unistr/u8-prev: Likewise.
27331         * modules/unistr/u8-set: Likewise.
27332         * modules/unistr/u8-startswith: Likewise.
27333         * modules/unistr/u8-stpcpy: Likewise.
27334         * modules/unistr/u8-stpncpy: Likewise.
27335         * modules/unistr/u8-strcat: Likewise.
27336         * modules/unistr/u8-strchr: Likewise.
27337         * modules/unistr/u8-strcmp: Likewise.
27338         * modules/unistr/u8-strcoll: Likewise.
27339         * modules/unistr/u8-strcpy: Likewise.
27340         * modules/unistr/u8-strcspn: Likewise.
27341         * modules/unistr/u8-strdup: Likewise.
27342         * modules/unistr/u8-strlen: Likewise.
27343         * modules/unistr/u8-strmblen: Likewise.
27344         * modules/unistr/u8-strmbtouc: Likewise.
27345         * modules/unistr/u8-strncat: Likewise.
27346         * modules/unistr/u8-strncmp: Likewise.
27347         * modules/unistr/u8-strncpy: Likewise.
27348         * modules/unistr/u8-strnlen: Likewise.
27349         * modules/unistr/u8-strpbrk: Likewise.
27350         * modules/unistr/u8-strrchr: Likewise.
27351         * modules/unistr/u8-strspn: Likewise.
27352         * modules/unistr/u8-strstr: Likewise.
27353         * modules/unistr/u8-strtok: Likewise.
27354         * modules/unistr/u8-to-u16: Likewise.
27355         * modules/unistr/u8-to-u32: Likewise.
27356         * modules/unistr/u8-uctomb: Likewise.
27357         * modules/unistr/u16-check: Likewise.
27358         * modules/unistr/u16-chr: Likewise.
27359         * modules/unistr/u16-cmp: Likewise.
27360         * modules/unistr/u16-cmp2: Likewise.
27361         * modules/unistr/u16-cpy: Likewise.
27362         * modules/unistr/u16-cpy-alloc: Likewise.
27363         * modules/unistr/u16-endswith: Likewise.
27364         * modules/unistr/u16-mblen: Likewise.
27365         * modules/unistr/u16-mbsnlen: Likewise.
27366         * modules/unistr/u16-mbtouc: Likewise.
27367         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27368         * modules/unistr/u16-mbtoucr: Likewise.
27369         * modules/unistr/u16-move: Likewise.
27370         * modules/unistr/u16-next: Likewise.
27371         * modules/unistr/u16-prev: Likewise.
27372         * modules/unistr/u16-set: Likewise.
27373         * modules/unistr/u16-startswith: Likewise.
27374         * modules/unistr/u16-stpcpy: Likewise.
27375         * modules/unistr/u16-stpncpy: Likewise.
27376         * modules/unistr/u16-strcat: Likewise.
27377         * modules/unistr/u16-strchr: Likewise.
27378         * modules/unistr/u16-strcmp: Likewise.
27379         * modules/unistr/u16-strcoll: Likewise.
27380         * modules/unistr/u16-strcpy: Likewise.
27381         * modules/unistr/u16-strcspn: Likewise.
27382         * modules/unistr/u16-strdup: Likewise.
27383         * modules/unistr/u16-strlen: Likewise.
27384         * modules/unistr/u16-strmblen: Likewise.
27385         * modules/unistr/u16-strmbtouc: Likewise.
27386         * modules/unistr/u16-strncat: Likewise.
27387         * modules/unistr/u16-strncmp: Likewise.
27388         * modules/unistr/u16-strncpy: Likewise.
27389         * modules/unistr/u16-strnlen: Likewise.
27390         * modules/unistr/u16-strpbrk: Likewise.
27391         * modules/unistr/u16-strrchr: Likewise.
27392         * modules/unistr/u16-strspn: Likewise.
27393         * modules/unistr/u16-strstr: Likewise.
27394         * modules/unistr/u16-strtok: Likewise.
27395         * modules/unistr/u16-to-u32: Likewise.
27396         * modules/unistr/u16-to-u8: Likewise.
27397         * modules/unistr/u16-uctomb: Likewise.
27398         * modules/unistr/u32-check: Likewise.
27399         * modules/unistr/u32-chr: Likewise.
27400         * modules/unistr/u32-cmp: Likewise.
27401         * modules/unistr/u32-cmp2: Likewise.
27402         * modules/unistr/u32-cpy: Likewise.
27403         * modules/unistr/u32-cpy-alloc: Likewise.
27404         * modules/unistr/u32-endswith: Likewise.
27405         * modules/unistr/u32-mblen: Likewise.
27406         * modules/unistr/u32-mbsnlen: Likewise.
27407         * modules/unistr/u32-mbtouc: Likewise.
27408         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27409         * modules/unistr/u32-mbtoucr: Likewise.
27410         * modules/unistr/u32-move: Likewise.
27411         * modules/unistr/u32-next: Likewise.
27412         * modules/unistr/u32-prev: Likewise.
27413         * modules/unistr/u32-set: Likewise.
27414         * modules/unistr/u32-startswith: Likewise.
27415         * modules/unistr/u32-stpcpy: Likewise.
27416         * modules/unistr/u32-stpncpy: Likewise.
27417         * modules/unistr/u32-strcat: Likewise.
27418         * modules/unistr/u32-strchr: Likewise.
27419         * modules/unistr/u32-strcmp: Likewise.
27420         * modules/unistr/u32-strcoll: Likewise.
27421         * modules/unistr/u32-strcpy: Likewise.
27422         * modules/unistr/u32-strcspn: Likewise.
27423         * modules/unistr/u32-strdup: Likewise.
27424         * modules/unistr/u32-strlen: Likewise.
27425         * modules/unistr/u32-strmblen: Likewise.
27426         * modules/unistr/u32-strmbtouc: Likewise.
27427         * modules/unistr/u32-strncat: Likewise.
27428         * modules/unistr/u32-strncmp: Likewise.
27429         * modules/unistr/u32-strncpy: Likewise.
27430         * modules/unistr/u32-strnlen: Likewise.
27431         * modules/unistr/u32-strpbrk: Likewise.
27432         * modules/unistr/u32-strrchr: Likewise.
27433         * modules/unistr/u32-strspn: Likewise.
27434         * modules/unistr/u32-strstr: Likewise.
27435         * modules/unistr/u32-strtok: Likewise.
27436         * modules/unistr/u32-to-u16: Likewise.
27437         * modules/unistr/u32-to-u8: Likewise.
27438         * modules/unistr/u32-uctomb: Likewise.
27439         * modules/uniwbrk/u8-wordbreaks: Likewise.
27440         * modules/uniwbrk/u16-wordbreaks: Likewise.
27441         * modules/uniwbrk/u32-wordbreaks: Likewise.
27442         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27443         * modules/uniwbrk/wordbreak-property: Likewise.
27444         * modules/uniwidth/u8-strwidth: Likewise.
27445         * modules/uniwidth/u8-width: Likewise.
27446         * modules/uniwidth/u16-strwidth: Likewise.
27447         * modules/uniwidth/u16-width: Likewise.
27448         * modules/uniwidth/u32-strwidth: Likewise.
27449         * modules/uniwidth/u32-width: Likewise.
27450         * modules/uniwidth/width: Likewise.
27451         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27452         with $(LIBUNISTRING).
27453         * modules/unicase/ignorable-tests: Likewise.
27454         * modules/unicase/locale-language-tests: Likewise.
27455         * modules/unicase/tolower-tests: Likewise.
27456         * modules/unicase/totitle-tests: Likewise.
27457         * modules/unicase/toupper-tests: Likewise.
27458         * modules/unicase/u8-casecmp-tests: Likewise.
27459         * modules/unicase/u8-casecoll-tests: Likewise.
27460         * modules/unicase/u8-casefold-tests: Likewise.
27461         * modules/unicase/u8-is-cased-tests: Likewise.
27462         * modules/unicase/u8-is-casefolded-tests: Likewise.
27463         * modules/unicase/u8-is-lowercase-tests: Likewise.
27464         * modules/unicase/u8-is-titlecase-tests: Likewise.
27465         * modules/unicase/u8-is-uppercase-tests: Likewise.
27466         * modules/unicase/u8-tolower-tests: Likewise.
27467         * modules/unicase/u8-totitle-tests: Likewise.
27468         * modules/unicase/u8-toupper-tests: Likewise.
27469         * modules/unicase/u16-casecmp-tests: Likewise.
27470         * modules/unicase/u16-casecoll-tests: Likewise.
27471         * modules/unicase/u16-casefold-tests: Likewise.
27472         * modules/unicase/u16-is-cased-tests: Likewise.
27473         * modules/unicase/u16-is-casefolded-tests: Likewise.
27474         * modules/unicase/u16-is-lowercase-tests: Likewise.
27475         * modules/unicase/u16-is-titlecase-tests: Likewise.
27476         * modules/unicase/u16-is-uppercase-tests: Likewise.
27477         * modules/unicase/u16-tolower-tests: Likewise.
27478         * modules/unicase/u16-totitle-tests: Likewise.
27479         * modules/unicase/u16-toupper-tests: Likewise.
27480         * modules/unicase/u32-casecmp-tests: Likewise.
27481         * modules/unicase/u32-casecoll-tests: Likewise.
27482         * modules/unicase/u32-casefold-tests: Likewise.
27483         * modules/unicase/u32-is-cased-tests: Likewise.
27484         * modules/unicase/u32-is-casefolded-tests: Likewise.
27485         * modules/unicase/u32-is-lowercase-tests: Likewise.
27486         * modules/unicase/u32-is-titlecase-tests: Likewise.
27487         * modules/unicase/u32-is-uppercase-tests: Likewise.
27488         * modules/unicase/u32-tolower-tests: Likewise.
27489         * modules/unicase/u32-totitle-tests: Likewise.
27490         * modules/unicase/u32-toupper-tests: Likewise.
27491         * modules/unicase/ulc-casecmp-tests: Likewise.
27492         * modules/unicase/ulc-casecoll-tests: Likewise.
27493         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27494         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27495         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27496         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27497         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27498         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27499         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27500         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27501         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27502         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27503         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27504         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27505         * modules/unictype/bidicategory-byname-tests: Likewise.
27506         * modules/unictype/bidicategory-name-tests: Likewise.
27507         * modules/unictype/bidicategory-of-tests: Likewise.
27508         * modules/unictype/bidicategory-test-tests: Likewise.
27509         * modules/unictype/block-list-tests: Likewise.
27510         * modules/unictype/block-of-tests: Likewise.
27511         * modules/unictype/block-test-tests: Likewise.
27512         * modules/unictype/category-C-tests: Likewise.
27513         * modules/unictype/category-Cc-tests: Likewise.
27514         * modules/unictype/category-Cf-tests: Likewise.
27515         * modules/unictype/category-Cn-tests: Likewise.
27516         * modules/unictype/category-Co-tests: Likewise.
27517         * modules/unictype/category-Cs-tests: Likewise.
27518         * modules/unictype/category-L-tests: Likewise.
27519         * modules/unictype/category-Ll-tests: Likewise.
27520         * modules/unictype/category-Lm-tests: Likewise.
27521         * modules/unictype/category-Lo-tests: Likewise.
27522         * modules/unictype/category-Lt-tests: Likewise.
27523         * modules/unictype/category-Lu-tests: Likewise.
27524         * modules/unictype/category-M-tests: Likewise.
27525         * modules/unictype/category-Mc-tests: Likewise.
27526         * modules/unictype/category-Me-tests: Likewise.
27527         * modules/unictype/category-Mn-tests: Likewise.
27528         * modules/unictype/category-N-tests: Likewise.
27529         * modules/unictype/category-Nd-tests: Likewise.
27530         * modules/unictype/category-Nl-tests: Likewise.
27531         * modules/unictype/category-No-tests: Likewise.
27532         * modules/unictype/category-P-tests: Likewise.
27533         * modules/unictype/category-Pc-tests: Likewise.
27534         * modules/unictype/category-Pd-tests: Likewise.
27535         * modules/unictype/category-Pe-tests: Likewise.
27536         * modules/unictype/category-Pf-tests: Likewise.
27537         * modules/unictype/category-Pi-tests: Likewise.
27538         * modules/unictype/category-Po-tests: Likewise.
27539         * modules/unictype/category-Ps-tests: Likewise.
27540         * modules/unictype/category-S-tests: Likewise.
27541         * modules/unictype/category-Sc-tests: Likewise.
27542         * modules/unictype/category-Sk-tests: Likewise.
27543         * modules/unictype/category-Sm-tests: Likewise.
27544         * modules/unictype/category-So-tests: Likewise.
27545         * modules/unictype/category-Z-tests: Likewise.
27546         * modules/unictype/category-Zl-tests: Likewise.
27547         * modules/unictype/category-Zp-tests: Likewise.
27548         * modules/unictype/category-Zs-tests: Likewise.
27549         * modules/unictype/category-and-not-tests: Likewise.
27550         * modules/unictype/category-and-tests: Likewise.
27551         * modules/unictype/category-byname-tests: Likewise.
27552         * modules/unictype/category-name-tests: Likewise.
27553         * modules/unictype/category-none-tests: Likewise.
27554         * modules/unictype/category-of-tests: Likewise.
27555         * modules/unictype/category-or-tests: Likewise.
27556         * modules/unictype/category-test-withtable-tests: Likewise.
27557         * modules/unictype/combining-class-tests: Likewise.
27558         * modules/unictype/ctype-alnum-tests: Likewise.
27559         * modules/unictype/ctype-alpha-tests: Likewise.
27560         * modules/unictype/ctype-blank-tests: Likewise.
27561         * modules/unictype/ctype-cntrl-tests: Likewise.
27562         * modules/unictype/ctype-digit-tests: Likewise.
27563         * modules/unictype/ctype-graph-tests: Likewise.
27564         * modules/unictype/ctype-lower-tests: Likewise.
27565         * modules/unictype/ctype-print-tests: Likewise.
27566         * modules/unictype/ctype-punct-tests: Likewise.
27567         * modules/unictype/ctype-space-tests: Likewise.
27568         * modules/unictype/ctype-upper-tests: Likewise.
27569         * modules/unictype/ctype-xdigit-tests: Likewise.
27570         * modules/unictype/decimal-digit-tests: Likewise.
27571         * modules/unictype/digit-tests: Likewise.
27572         * modules/unictype/mirror-tests: Likewise.
27573         * modules/unictype/numeric-tests: Likewise.
27574         * modules/unictype/property-alphabetic-tests: Likewise.
27575         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27576         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27577         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27578         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27579         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27580         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27581         * modules/unictype/property-bidi-control-tests: Likewise.
27582         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27583         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27584         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27585         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27586         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27587         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27588         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27589         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27590         * modules/unictype/property-bidi-pdf-tests: Likewise.
27591         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27592         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27593         * modules/unictype/property-byname-tests: Likewise.
27594         * modules/unictype/property-combining-tests: Likewise.
27595         * modules/unictype/property-composite-tests: Likewise.
27596         * modules/unictype/property-currency-symbol-tests: Likewise.
27597         * modules/unictype/property-dash-tests: Likewise.
27598         * modules/unictype/property-decimal-digit-tests: Likewise.
27599         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27600         * modules/unictype/property-deprecated-tests: Likewise.
27601         * modules/unictype/property-diacritic-tests: Likewise.
27602         * modules/unictype/property-extender-tests: Likewise.
27603         * modules/unictype/property-format-control-tests: Likewise.
27604         * modules/unictype/property-grapheme-base-tests: Likewise.
27605         * modules/unictype/property-grapheme-extend-tests: Likewise.
27606         * modules/unictype/property-grapheme-link-tests: Likewise.
27607         * modules/unictype/property-hex-digit-tests: Likewise.
27608         * modules/unictype/property-hyphen-tests: Likewise.
27609         * modules/unictype/property-id-continue-tests: Likewise.
27610         * modules/unictype/property-id-start-tests: Likewise.
27611         * modules/unictype/property-ideographic-tests: Likewise.
27612         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27613         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27614         * modules/unictype/property-ignorable-control-tests: Likewise.
27615         * modules/unictype/property-iso-control-tests: Likewise.
27616         * modules/unictype/property-join-control-tests: Likewise.
27617         * modules/unictype/property-left-of-pair-tests: Likewise.
27618         * modules/unictype/property-line-separator-tests: Likewise.
27619         * modules/unictype/property-logical-order-exception-tests: Likewise.
27620         * modules/unictype/property-lowercase-tests: Likewise.
27621         * modules/unictype/property-math-tests: Likewise.
27622         * modules/unictype/property-non-break-tests: Likewise.
27623         * modules/unictype/property-not-a-character-tests: Likewise.
27624         * modules/unictype/property-numeric-tests: Likewise.
27625         * modules/unictype/property-other-alphabetic-tests: Likewise.
27626         * modules/unictype/property-other-default-ignorable-code-point-tests:
27627         Likewise.
27628         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27629         * modules/unictype/property-other-id-continue-tests: Likewise.
27630         * modules/unictype/property-other-id-start-tests: Likewise.
27631         * modules/unictype/property-other-lowercase-tests: Likewise.
27632         * modules/unictype/property-other-math-tests: Likewise.
27633         * modules/unictype/property-other-uppercase-tests: Likewise.
27634         * modules/unictype/property-paired-punctuation-tests: Likewise.
27635         * modules/unictype/property-paragraph-separator-tests: Likewise.
27636         * modules/unictype/property-pattern-syntax-tests: Likewise.
27637         * modules/unictype/property-pattern-white-space-tests: Likewise.
27638         * modules/unictype/property-private-use-tests: Likewise.
27639         * modules/unictype/property-punctuation-tests: Likewise.
27640         * modules/unictype/property-quotation-mark-tests: Likewise.
27641         * modules/unictype/property-radical-tests: Likewise.
27642         * modules/unictype/property-sentence-terminal-tests: Likewise.
27643         * modules/unictype/property-soft-dotted-tests: Likewise.
27644         * modules/unictype/property-space-tests: Likewise.
27645         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27646         * modules/unictype/property-test-tests: Likewise.
27647         * modules/unictype/property-titlecase-tests: Likewise.
27648         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27649         * modules/unictype/property-unified-ideograph-tests: Likewise.
27650         * modules/unictype/property-uppercase-tests: Likewise.
27651         * modules/unictype/property-variation-selector-tests: Likewise.
27652         * modules/unictype/property-white-space-tests: Likewise.
27653         * modules/unictype/property-xid-continue-tests: Likewise.
27654         * modules/unictype/property-xid-start-tests: Likewise.
27655         * modules/unictype/property-zero-width-tests: Likewise.
27656         * modules/unictype/scripts-tests: Likewise.
27657         * modules/unictype/syntax-c-ident-tests: Likewise.
27658         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27659         * modules/unictype/syntax-java-ident-tests: Likewise.
27660         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27661         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27662         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27663         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27664         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27665         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27666         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27667         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27668         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27669         * modules/uniname/uniname-tests: Likewise.
27670         * modules/uninorm/canonical-decomposition-tests: Likewise.
27671         * modules/uninorm/compat-decomposition-tests: Likewise.
27672         * modules/uninorm/composition-tests: Likewise.
27673         * modules/uninorm/decomposing-form-tests: Likewise.
27674         * modules/uninorm/decomposition-tests: Likewise.
27675         * modules/uninorm/filter-tests: Likewise.
27676         * modules/uninorm/nfc-tests: Likewise.
27677         * modules/uninorm/nfd-tests: Likewise.
27678         * modules/uninorm/nfkc-tests: Likewise.
27679         * modules/uninorm/nfkd-tests: Likewise.
27680         * modules/uninorm/u8-normcmp-tests: Likewise.
27681         * modules/uninorm/u8-normcoll-tests: Likewise.
27682         * modules/uninorm/u16-normcmp-tests: Likewise.
27683         * modules/uninorm/u16-normcoll-tests: Likewise.
27684         * modules/uninorm/u32-normcmp-tests: Likewise.
27685         * modules/uninorm/u32-normcoll-tests: Likewise.
27686         * modules/unistdio/u8-asnprintf-tests: Likewise.
27687         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27688         * modules/unistdio/u8-vasprintf-tests: Likewise.
27689         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27690         * modules/unistdio/u8-vsprintf-tests: Likewise.
27691         * modules/unistdio/u16-asnprintf-tests: Likewise.
27692         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27693         * modules/unistdio/u16-vasprintf-tests: Likewise.
27694         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27695         * modules/unistdio/u16-vsprintf-tests: Likewise.
27696         * modules/unistdio/u32-asnprintf-tests: Likewise.
27697         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27698         * modules/unistdio/u32-vasprintf-tests: Likewise.
27699         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27700         * modules/unistdio/u32-vsprintf-tests: Likewise.
27701         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27702         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27703         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27704         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27705         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27706         * modules/unistr/u8-check-tests: Likewise.
27707         * modules/unistr/u8-chr-tests: Likewise.
27708         * modules/unistr/u8-cmp-tests: Likewise.
27709         * modules/unistr/u8-cmp2-tests: Likewise.
27710         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27711         * modules/unistr/u8-cpy-tests: Likewise.
27712         * modules/unistr/u8-mblen-tests: Likewise.
27713         * modules/unistr/u8-mbsnlen-tests: Likewise.
27714         * modules/unistr/u8-mbtouc-tests: Likewise.
27715         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27716         * modules/unistr/u8-mbtoucr-tests: Likewise.
27717         * modules/unistr/u8-move-tests: Likewise.
27718         * modules/unistr/u8-next-tests: Likewise.
27719         * modules/unistr/u8-prev-tests: Likewise.
27720         * modules/unistr/u8-set-tests: Likewise.
27721         * modules/unistr/u8-stpcpy-tests: Likewise.
27722         * modules/unistr/u8-stpncpy-tests: Likewise.
27723         * modules/unistr/u8-strcat-tests: Likewise.
27724         * modules/unistr/u8-strcmp-tests: Likewise.
27725         * modules/unistr/u8-strcoll-tests: Likewise.
27726         * modules/unistr/u8-strcpy-tests: Likewise.
27727         * modules/unistr/u8-strdup-tests: Likewise.
27728         * modules/unistr/u8-strlen-tests: Likewise.
27729         * modules/unistr/u8-strmblen-tests: Likewise.
27730         * modules/unistr/u8-strmbtouc-tests: Likewise.
27731         * modules/unistr/u8-strncat-tests: Likewise.
27732         * modules/unistr/u8-strncmp-tests: Likewise.
27733         * modules/unistr/u8-strncpy-tests: Likewise.
27734         * modules/unistr/u8-strnlen-tests: Likewise.
27735         * modules/unistr/u8-to-u16-tests: Likewise.
27736         * modules/unistr/u8-to-u32-tests: Likewise.
27737         * modules/unistr/u8-uctomb-tests: Likewise.
27738         * modules/unistr/u16-check-tests: Likewise.
27739         * modules/unistr/u16-chr-tests: Likewise.
27740         * modules/unistr/u16-cmp-tests: Likewise.
27741         * modules/unistr/u16-cmp2-tests: Likewise.
27742         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27743         * modules/unistr/u16-cpy-tests: Likewise.
27744         * modules/unistr/u16-mblen-tests: Likewise.
27745         * modules/unistr/u16-mbsnlen-tests: Likewise.
27746         * modules/unistr/u16-mbtouc-tests: Likewise.
27747         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27748         * modules/unistr/u16-mbtoucr-tests: Likewise.
27749         * modules/unistr/u16-move-tests: Likewise.
27750         * modules/unistr/u16-next-tests: Likewise.
27751         * modules/unistr/u16-prev-tests: Likewise.
27752         * modules/unistr/u16-set-tests: Likewise.
27753         * modules/unistr/u16-stpcpy-tests: Likewise.
27754         * modules/unistr/u16-stpncpy-tests: Likewise.
27755         * modules/unistr/u16-strcat-tests: Likewise.
27756         * modules/unistr/u16-strcmp-tests: Likewise.
27757         * modules/unistr/u16-strcoll-tests: Likewise.
27758         * modules/unistr/u16-strcpy-tests: Likewise.
27759         * modules/unistr/u16-strdup-tests: Likewise.
27760         * modules/unistr/u16-strlen-tests: Likewise.
27761         * modules/unistr/u16-strmblen-tests: Likewise.
27762         * modules/unistr/u16-strmbtouc-tests: Likewise.
27763         * modules/unistr/u16-strncat-tests: Likewise.
27764         * modules/unistr/u16-strncmp-tests: Likewise.
27765         * modules/unistr/u16-strncpy-tests: Likewise.
27766         * modules/unistr/u16-strnlen-tests: Likewise.
27767         * modules/unistr/u16-to-u32-tests: Likewise.
27768         * modules/unistr/u16-to-u8-tests: Likewise.
27769         * modules/unistr/u16-uctomb-tests: Likewise.
27770         * modules/unistr/u32-check-tests: Likewise.
27771         * modules/unistr/u32-chr-tests: Likewise.
27772         * modules/unistr/u32-cmp-tests: Likewise.
27773         * modules/unistr/u32-cmp2-tests: Likewise.
27774         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27775         * modules/unistr/u32-cpy-tests: Likewise.
27776         * modules/unistr/u32-mblen-tests: Likewise.
27777         * modules/unistr/u32-mbsnlen-tests: Likewise.
27778         * modules/unistr/u32-mbtouc-tests: Likewise.
27779         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27780         * modules/unistr/u32-mbtoucr-tests: Likewise.
27781         * modules/unistr/u32-move-tests: Likewise.
27782         * modules/unistr/u32-next-tests: Likewise.
27783         * modules/unistr/u32-prev-tests: Likewise.
27784         * modules/unistr/u32-set-tests: Likewise.
27785         * modules/unistr/u32-stpcpy-tests: Likewise.
27786         * modules/unistr/u32-stpncpy-tests: Likewise.
27787         * modules/unistr/u32-strcat-tests: Likewise.
27788         * modules/unistr/u32-strcmp-tests: Likewise.
27789         * modules/unistr/u32-strcoll-tests: Likewise.
27790         * modules/unistr/u32-strcpy-tests: Likewise.
27791         * modules/unistr/u32-strdup-tests: Likewise.
27792         * modules/unistr/u32-strlen-tests: Likewise.
27793         * modules/unistr/u32-strmblen-tests: Likewise.
27794         * modules/unistr/u32-strmbtouc-tests: Likewise.
27795         * modules/unistr/u32-strncat-tests: Likewise.
27796         * modules/unistr/u32-strncmp-tests: Likewise.
27797         * modules/unistr/u32-strncpy-tests: Likewise.
27798         * modules/unistr/u32-strnlen-tests: Likewise.
27799         * modules/unistr/u32-to-u16-tests: Likewise.
27800         * modules/unistr/u32-to-u8-tests: Likewise.
27801         * modules/unistr/u32-uctomb-tests: Likewise.
27802         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27803         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27804         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27805         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27806         * modules/uniwidth/u8-strwidth-tests: Likewise.
27807         * modules/uniwidth/u8-width-tests: Likewise.
27808         * modules/uniwidth/u16-strwidth-tests: Likewise.
27809         * modules/uniwidth/u16-width-tests: Likewise.
27810         * modules/uniwidth/u32-strwidth-tests: Likewise.
27811         * modules/uniwidth/u32-width-tests: Likewise.
27812         * modules/uniwidth/width-tests: Likewise.
27813
27814 2010-05-18  Richard Jones  <rjones@redhat.com>
27815
27816         doc: users.txt: list hivex
27817         * users.txt: Add hivex.
27818
27819 2010-05-18  Richard Jones  <rjones@redhat.com>
27820
27821         doc: users.txt: list febootstrap
27822         * users.txt: Add febootstrap.
27823
27824 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27825
27826         bootstrap: fix an error when gnulib is not used as a git submodule
27827         * build-aux/bootstrap (gnulib_path): If its length is zero then
27828         assign "gnulib" to it.
27829         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27830
27831 2010-05-16  Bruno Haible  <bruno@clisp.org>
27832
27833         Avoid autoconf warnings about AM_ICONV.
27834         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27835         2.64.
27836
27837 2010-05-16  Bruno Haible  <bruno@clisp.org>
27838
27839         absolute-header: Make the macro usable in more situations.
27840         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27841         from gl_ABSOLUTE_HEADER.
27842         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
27843
27844 2010-05-16  James Youngman  <jay@gnu.org>
27845
27846         doc: update users.txt
27847         * users.txt: Add CSSC.
27848
27849 2010-05-16  Jim Meyering  <meyering@redhat.com>
27850
27851         init.sh: fix an error in the previous change; add more comments
27852         * tests/init.sh: Compare exit code in loop against 9, not 2.
27853         Patch by Bruno Haible.
27854         Make the two tests more similar by adding an empty "then" clause.
27855         Add comments.
27856
27857         init.sh: avoid unnecessary shell re-exec
27858         * tests/init.sh: Improve the re-exec-required check to first test the
27859         current shell.  If it passes the test, do not search for a shell that
27860         does pass, and do not re-exec.  This test is particularly contorted to
27861         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
27862         of $(...) evokes a syntax error and causes immediate shell exit with
27863         status 2.  Bruno Haible reported that the re-exec made it impossible
27864         to single-step through any init.sh-using script.
27865
27866 2010-05-16  Bruno Haible  <bruno@clisp.org>
27867
27868         Fix collision between gnulib's and libintl's printf replacements.
27869         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
27870         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
27871         (printf): When using GNU C, map the __printf__ function to rpl_printf
27872         via __asm__. When not using GNU C, define rpl_printf instead of
27873         __printf__.
27874         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
27875         commit.
27876         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
27877         commit.
27878         * m4/asm-underscore.m4: New file.
27879         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
27880         * modules/stdio (Files): Add m4/asm-underscore.m4.
27881         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
27882         Reported by Ben Pfaff.
27883
27884 2010-05-16  Bruno Haible  <bruno@clisp.org>
27885
27886         verify: Avoid skipping the test on openSUSE 11.0.
27887         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
27888
27889 2010-05-13  Bruno Haible  <bruno@clisp.org>
27890
27891         Avoid useless warnings from G++.
27892         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
27893         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
27894         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27895
27896 2010-05-11  Jim Meyering  <meyering@redhat.com>
27897
27898         maint.mk: tweak preceding change
27899         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
27900         regexps tighter by anchoring at EOL, and make the new group "shy"
27901         for slightly decreased overhead.
27902
27903 2010-05-11  Eric Blake  <eblake@redhat.com>
27904
27905         maint.mk: gnulib doesn't guarantee NSIG
27906         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
27907
27908 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27909
27910         test-pwrite.c: Remove unused variable declaration.
27911         * tests/test-pwrite.c (main): Remove read_buf declaration.
27912
27913         Remove useless test-pwrite.sh file.
27914         * tests/test-pwrite.sh: Delete file.
27915         * modules/pwrite-tests: Remove references.
27916         Reported by Bruno Haible.
27917
27918 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27919
27920         init.sh: fix a typo
27921         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
27922
27923 2010-05-10  Jim Meyering  <meyering@redhat.com>
27924
27925         maint.mk: avoid using a temporary file in the always-defined-macros check
27926         * top/maint.mk (.re-defmac): Remove rule.
27927         (gl_trap_): Remove definition.
27928         (sc_prohibit_always-defined_macros): Rewrite not to create and
27929         depend on a temporary file.  Instead, depend on GNU grep's ability
27930         to read a list of regular expressions from stdin when given "-f -".
27931
27932 2010-05-09  Bruno Haible  <bruno@clisp.org>
27933
27934         Update to GNU gettext 0.18, part 1.
27935         * m4/gettext.m4: Update to GNU gettext 0.18.
27936         * m4/intl.m4: Likewise.
27937         * m4/po.m4: Likewise.
27938         * modules/gettext (Files): Add m4/fcntl-o.m4.
27939         (configure.ac): Require gettext infrastructure from version 0.18.
27940
27941 2010-05-09  Jim Meyering  <meyering@redhat.com>
27942
27943         init.sh: enable MALLOC_PERTURB_
27944         * tests/init.sh: Enable glibc's malloc-perturbing option.
27945
27946         maint.mk: improve sc_cross_check_PATH_usage_in_tests
27947         With my recent change in init.sh from the two-line form:
27948             -#   : ${srcdir=.}
27949             -#   . "$srcdir/init.sh"; path_prepend_ .
27950             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
27951         I noticed that using the one-line form would cause this test
27952         to fail with a false-positive, or to stop working altogether,
27953         depending on whether help-version changed or all the tests did.
27954         * top/maint.mk (_hv_regex): Remove this definition.
27955         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
27956         (_hv_regex_strong): Use a stronger regex to check for conformance.
27957         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
27958         Give a separate diagnostic for lack of conforming use.
27959
27960         maint.mk: prohibit definition of symbols defined by gnulib
27961         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
27962         definition of symbols defined by gnulib.
27963
27964 2010-05-09  Bruno Haible  <bruno@clisp.org>
27965
27966         acl: Avoid test failure on Cygwin-hosted mingw.
27967         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
27968
27969 2010-05-09  Bruno Haible  <bruno@clisp.org>
27970
27971         error: Use system's fcntl function.
27972         * lib/error.c (fcntl): Undefine.
27973
27974 2010-05-09  Jim Meyering  <meyering@redhat.com>
27975
27976         verify: adjust formatting to be more consistent
27977         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
27978         argument-list '('s, and after one comma.
27979
27980 2010-05-09  Bruno Haible  <bruno@clisp.org>
27981
27982         error: More reliable output on mingw.
27983         * lib/error.c: Include <windows.h>.
27984         (is_open): New function.
27985         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
27986         defined.
27987
27988 2010-05-09  Bruno Haible  <bruno@clisp.org>
27989
27990         vasnprintf: Fix syntax errors in libintl build on mingw.
27991         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
27992         pad_ourselves and prec_ourselves after use.
27993
27994 2010-05-08  Bruno Haible  <bruno@clisp.org>
27995
27996         * lib/config.charset: Update comments for Cygwin 1.7.
27997         * lib/localcharset.c: Likewise.
27998
27999 2010-05-07  Jim Meyering  <meyering@redhat.com>
28000
28001         init.sh: improve comments
28002         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28003         . "${srcdir=.}/init.sh"; path_prepend_ .
28004         Add a note about path_prepend_ and the alternative of using
28005         TESTS_ENVIRONMENT.
28006
28007 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28008
28009         exclude: Unescape hashed patterns in wildcard mode.
28010         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28011         to the hash list.
28012         * tests/test-exclude8.sh: New test case.
28013         * modules/exclude-tests: Add new test.
28014
28015 2010-05-05  Eric Blake  <eblake@redhat.com>
28016
28017         verify: automate tests
28018         * modules/verify-tests: New module.
28019         * tests/test-verify.sh: New file.
28020         * tests/test-verify.c: Guard each negative test with a unique id.
28021         Also avoid warning about unused left hand of comma expressions.
28022
28023 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28024
28025         Further improvements to verify.h, suggested by Eric Blake.
28026         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28027         the GL_* versions, to avoid collision with OpenGL.
28028         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28029         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28030         than testing merely whether it's defined.
28031
28032         Modify verify.h to pacify gcc -Wredundant_decls.
28033         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28034         These use the prefix "GL_" since they're likely to be useful elsewhere.
28035         We may need to break them out into a different .h file.
28036         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28037         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28038         of verify_function__.
28039
28040 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28041
28042         Tests for module pwrite.
28043         * modules/pwrite-tests: New file.
28044         * tests/test-pwrite.sh: New file.
28045         * tests/test-pwrite.c: New file.
28046
28047         New module pwrite.
28048         * lib/unistd.in.h (pwrite): New declaration.
28049         * lib/pwrite.c: New file, from glibc with modifications.
28050         * m4/pwrite.m4: New file.
28051         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28052         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28053         REPLACE_PWRITE.
28054         * modules/pwrite: New file.
28055         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28056         REPLACE_PWRITE.
28057         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28058         * doc/posix-functions/pwrite.texi: Mention the new module.
28059
28060 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28061
28062         pread: Update documentation.
28063         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28064
28065 2010-05-04  Eric Blake  <eblake@redhat.com>
28066
28067         docs: update cygwin progress
28068         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28069         this bug.
28070         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28071         Added in cygwin 1.7.2.
28072         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28073         Likewise.
28074         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28075         Likewise.
28076         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28077         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28078         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28079         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28080         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28081         Mention nproc module.
28082         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28083         bug in cygwin 1.7.5 addition.
28084         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28085         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28086         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28087         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28088         1.7.5.
28089         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28090         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28091         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28092         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28093         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28094         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28095         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28096         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28097         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28098         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28099         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28100         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28101         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28102         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28103         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28104         Likewise.
28105         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28106         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28107         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28108         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28109         Likewise.
28110         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28111         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28112         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28113         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28114         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28115         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28116         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28117         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28118         Likewise.
28119         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28120         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28121         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28122         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28123         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28124         Likewise.
28125         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28126         Likewise.
28127         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28128         Likewise.
28129         * doc/glibc-functions/xdrrec_endofrecord.texi
28130         (xdrrec_endofrecord): Likewise.
28131         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28132         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28133         Likewise.
28134         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28135         Likewise.
28136
28137 2010-05-04  Jim Meyering  <meyering@redhat.com>
28138
28139         gendocs.sh: make its "-s FILE" option more useful
28140         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28141         $PACKAGE to reflect the probably-different basename of "FILE".
28142
28143 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28144
28145         bootstrap: don't ignore download_po_files failure
28146         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28147         failure.
28148
28149 2010-05-03  Jim Meyering  <meyering@redhat.com>
28150
28151         maint.mk: allow to pass options to gendocs.sh
28152         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28153         (gendocs_options_): New overridable variable.
28154
28155         gnu-web-doc-update: don't ignore configure or build failure
28156         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28157
28158         announce-gen: backslash-escape '@'s in --help output
28159         * build-aux/announce-gen: Fix syntax errors.
28160
28161         maint.mk, announce-gen: allow project-specific announcement mail headers
28162         * top/maint.mk (translation_project_): Define default.
28163         (announcement_Cc_, announcement_mail_headers_): Likewise.
28164         (announcement): Invoke announce-gen with new --mail-headers option.
28165         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28166
28167         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28168         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28169         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28170         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28171         line in the "err2" output file when running "make check" in verbose
28172         mode (i.e., with set -x enabled).
28173
28174 2010-05-03  Bruno Haible  <bruno@clisp.org>
28175
28176         wctob: Fix for weird platforms.
28177         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28178         argument value.
28179
28180 2010-05-03  Jim Meyering  <meyering@redhat.com>
28181
28182         maint.mk: prohibit unwarranted use of <strings.h>
28183         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28184         strings.h in a file that does not also use strcasecmp, strncasecmp,
28185         ffs or ffsll.
28186
28187         maint.mk: remove obsolete comments
28188         * top/maint.mk: Remove stale, commented-out rules.
28189
28190 2010-05-02  Bruno Haible  <bruno@clisp.org>
28191
28192         wcwidth: Declare also when it's aliased.
28193         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28194         macro.
28195
28196 2010-05-02  Bruno Haible  <bruno@clisp.org>
28197
28198         Fix regression from 2010-04-25.
28199         * gnulib-tool (func_modules_transitive_closure): Check the status of
28200         all modules, not only of the tests that are of the form foo-tests where
28201         foo is a module.
28202
28203 2010-05-02  Bruno Haible  <bruno@clisp.org>
28204
28205         wctob: Work around nasty Cygwin 1.7.2 bug.
28206         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28207         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28208
28209 2010-05-01  Bruno Haible  <bruno@clisp.org>
28210
28211         fpurge: Sharper test.
28212         * tests/test-fpurge.c (main): Add one more ftell check.
28213         * modules/fpurge-tests (Depends-on): Add ftell.
28214         Suggested by Eric Blake.
28215
28216 2010-05-01  Bruno Haible  <bruno@clisp.org>
28217
28218         ftello: Another test.
28219         * tests/test-ftello3.c: New file.
28220         * modules/ftello-tests (Files): Add it.
28221         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28222         MOSTLYCLEANFILES.
28223
28224         ftell: Another test.
28225         * tests/test-ftell3.c: New file.
28226         * modules/ftell-tests (Files): Add it.
28227         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28228         MOSTLYCLEANFILES.
28229
28230 2010-05-01  Bruno Haible  <bruno@clisp.org>
28231
28232         ftell, ftello: Work around Solaris bug.
28233         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28234         * lib/ftello.c: Include stdio-impl.h.
28235         (ftello): On Solaris, when _IOWRT is set, compute the result without
28236         looking at _IOREAD.
28237         * modules/ftello (Files): Add lib/stdio-impl.h.
28238         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28239         * doc/posix-functions/ftello.texi: Likewise.
28240         Reported by Eric Blake.
28241
28242 2010-05-01  Bruno Haible  <bruno@clisp.org>
28243
28244         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28245         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28246         the _IOWRT flag is also set.
28247
28248 2010-05-01  Bruno Haible  <bruno@clisp.org>
28249
28250         Fix doc about a HP-UX stdio bug.
28251         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28252         * doc/posix-functions/ftello.texi: Likewise.
28253
28254 2010-05-01  Bruno Haible  <bruno@clisp.org>
28255
28256         lseek test: Fix failure on Solaris.
28257         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28258         output.
28259
28260 2010-04-30  Jim Meyering  <meyering@redhat.com>
28261
28262         bootstrap: don't ignore failure to generate po*/Makevars
28263         * build-aux/bootstrap (with_gettext): Don't ignore failure
28264         to create po/Makevars or runtime-po/Makevars.
28265
28266 2010-04-29  Eric Blake  <eblake@redhat.com>
28267
28268         headers: relax license to LGPLv2+
28269         * modules/fcntl-h (License): Relax license.
28270         * modules/getopt-posix (License): Likewise.
28271         * modules/locale (License): Likewise.
28272         * modules/math (License): Likewise.
28273         * modules/pty (License): Likewise.
28274         * modules/sched (License): Likewise.
28275         * modules/search (License): Likewise.
28276         * modules/spawn (License): Likewise.
28277         * modules/stdarg (License): Likewise.
28278         * modules/sysexits (License): Likewise.
28279
28280 2010-04-29  Jim Meyering  <meyering@redhat.com>
28281
28282         inttypes: relax license to LGPLv2+
28283         * modules/inttypes (License): Relax license.
28284
28285 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28286
28287         * top/maint.mk (indent): Run twice to produce idempotent results.
28288
28289 2010-04-28  Bruno Haible  <bruno@clisp.org>
28290
28291         getdate: Generate getdate.c in the source directory.
28292         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28293         MOSTLYCLEANFILES.
28294         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28295
28296 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28297
28298         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28299         is not declared as a const *; avoid warnings in that case.
28300
28301 2010-04-28  Eric Blake  <eblake@redhat.com>
28302
28303         canonicalize-lgpl: avoid compiler warning
28304         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28305         declaration' / 'extraneous semicolon' warning with some compilers.
28306         Reported by Andreas Gruenbacher.
28307
28308 2010-04-28  Jim Meyering  <meyering@redhat.com>
28309
28310         init.sh: ensure a more reliable exit status when exiting via trap
28311         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28312         Inspired by patches from Dmitry V. Levin.
28313         Also trap on signal 3 (SIGQUIT).
28314
28315 2010-04-27  Bruno Haible  <bruno@clisp.org>
28316
28317         Update doc about utimes().
28318         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28319         'utimens' module.
28320         Reported by Andreas Gruenbacher <agruen@suse.de>.
28321
28322 2010-04-27  Eric Blake  <eblake@redhat.com>
28323
28324         full-read, full-write: relax license
28325         * modules/full-read (License): Drop to LGPLv2+.
28326         * modules/full-write (License): Likewise.
28327         * modules/safe-read (License): Likewise.
28328         * modules/safe-write (License): Likewise.
28329
28330         pthread: mention library for linking
28331         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28332
28333 2010-04-27  Jim Meyering  <meyering@redhat.com>
28334
28335         maint.mk: fix a bug introduced in last change
28336         * top/maint.mk (gl_assured_headers_): Now that all names are on
28337         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28338         is not anchored to end of word, it should be adequate.
28339
28340         maint.mk: avoid side-effect in latest syntax-check
28341         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28342         to run commands via $(shell...), and hence to incur cost only when
28343         the new rule is actually run.
28344
28345         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28346         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28347         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28348         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28349         (gl_assured_headers_, az_, AZ_): Define.
28350         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28351
28352 2010-04-26  Jim Meyering  <jim@meyering.net>
28353             Bruno Haible  <bruno@clisp.org>
28354
28355         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28356         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28357         Prompted by an exchange with Gilles Espinasse.
28358
28359 2010-04-26  Jim Meyering  <meyering@redhat.com>
28360
28361         git-version-gen: aesthetic tweak
28362         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28363         so that the command remains on a single line.
28364
28365 2010-04-26  Eric Blake  <eblake@redhat.com>
28366
28367         git-version-gen: allow use on EBCDIC hosts
28368         * build-aux/git-version-gen (dirty): Use literal rather than tying
28369         ourselves to ascii.
28370         Reported by Steve Goetze.
28371
28372 2010-04-25  Bruno Haible  <bruno@clisp.org>
28373
28374         netdb: Add support for GNULIB_POSIXCHECK.
28375         * lib/netdb.in.h: Include warn-on-use.h.
28376         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28377         functions are used when GNULIB_POSIXCHECK is defined and the
28378         getaddrinfo module is not in use.
28379         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28380         freeaddrinfo, gai_strerror, getnameinfo are declared.
28381         * modules/netdb (Depends-on): Add warn-on-use.
28382         (Makefile.am): Include warn-on-use.h in netdb.h.
28383
28384 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28385
28386         build: avoid "make check" failure without .git/ directory
28387         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28388         there is no .git/ directory.
28389
28390 2010-04-25  Bruno Haible  <bruno@clisp.org>
28391
28392         ptsname: Fix misuse of ttyname_r.
28393         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28394         of errno.
28395
28396 2010-04-25  Bruno Haible  <bruno@clisp.org>
28397
28398         ttyname_r: Make it work on Solaris 10.
28399         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28400         if the system function has the POSIX declaration. Test whether the
28401         function fails if the buffer is less than 128 bytes large.
28402         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28403         system's ttyname_r function. Provide a reasonably large buffer.
28404         * modules/ttyname_r (Depends-on): Add extensions.
28405         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28406
28407 2010-04-25  Bruno Haible  <bruno@clisp.org>
28408
28409         Use the 'extensions' module for some more functions on Solaris.
28410         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28411         module.
28412         * doc/posix-functions/ctime_r.texi: Likewise.
28413         * doc/posix-functions/getgrgid_r.texi: Likewise.
28414         * doc/posix-functions/getgrnam_r.texi: Likewise.
28415         * doc/posix-functions/getpwnam_r.texi: Likewise.
28416         * doc/posix-functions/getpwuid_r.texi: Likewise.
28417         * doc/posix-functions/readdir_r.texi: Likewise.
28418         * doc/posix-functions/sigwait.texi: Likewise.
28419         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28420         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28421
28422 2010-04-25  Bruno Haible  <bruno@clisp.org>
28423
28424         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28425         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28426         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28427         * lib/ttyname_r.c: Include <limits.h>.
28428         (ttyname_r): Define using the system's ttyname_r function, if it exists
28429         and not on Solaris.
28430         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28431         set.
28432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28433         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28434         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28435         Reported by Simon Josefsson.
28436
28437 2010-04-25  Bruno Haible  <bruno@clisp.org>
28438
28439         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28440         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28441         * doc/posix-functions/ctime_r.texi: Likewise.
28442         * doc/posix-functions/getgrgid_r.texi: Likewise.
28443         * doc/posix-functions/getgrnam_r.texi: Likewise.
28444         * doc/posix-functions/getlogin_r.texi: Likewise.
28445         * doc/posix-functions/getpwnam_r.texi: Likewise.
28446         * doc/posix-functions/getpwuid_r.texi: Likewise.
28447         * doc/posix-functions/readdir_r.texi: Likewise.
28448         * doc/posix-functions/sigwait.texi: Likewise.
28449         * doc/posix-functions/ttyname_r.texi: Likewise.
28450         Reported by Simon Josefsson.
28451
28452 2010-04-25  Bruno Haible  <bruno@clisp.org>
28453
28454         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28455         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28456         also to --create-testdir.
28457         (func_acceptable): Don't consider the status of *-tests modules here.
28458         (func_modules_transitive_closure): Consider it here, before including a
28459         test module.
28460         (func_import, func_create_testdir): Set inc_all_direct_tests,
28461         inc_all_indirect_tests.
28462         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28463         --create-testdir and --create-megatestdir.
28464
28465 2010-04-25  Bruno Haible  <bruno@clisp.org>
28466
28467         gnulib-tool: Add --without-*-tests options.
28468         * gnulib-tool (func_usage): Document the --without-*-tests options.
28469         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28470         excl_unportable_tests): New variables.
28471         Fail if they are specified with --import or --update.
28472         (func_acceptable): Respect the excl_*_tests variables.
28473         (func_import): Set the excl_*_tests variables to empty.
28474
28475 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28476             Bruno Haible  <bruno@clisp.org>
28477
28478         Work around a MacOS X 10.4 bug with openpty.
28479         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28480         * tests/test-openpty.c (main): Close the master side explicitly.
28481
28482 2010-04-25  Bruno Haible  <bruno@clisp.org>
28483
28484         strnlen: Fix a C++ test error on MacOS X and Solaris.
28485         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28486         the function is not declared.
28487         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28488         Simon Josefsson.
28489
28490 2010-04-24  Bruno Haible  <bruno@clisp.org>
28491
28492         Avoid a gcc warning.
28493         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28494         of correct type for %08lx directive.
28495         Reported by Eric Blake.
28496
28497 2010-04-24  Bruno Haible  <bruno@clisp.org>
28498
28499         vasnprintf: Correct errno value in case of out-of-memory.
28500         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28501         or sprintf. Use the errno value from SNPRINTF or sprintf.
28502         Reported by Ian Beckwith <ianb@erislabs.net>.
28503
28504 2010-04-24  Bruno Haible  <bruno@clisp.org>
28505
28506         ansi-c++-opt: Find correct compiler when cross-compiling.
28507         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28508         AC_CHECK_PROGS.
28509         Reported by Simon Josefsson.
28510
28511 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28512
28513         vc-list-files: Add support for subversion
28514         * build-aux/vc-list-files: Use "svn list" to generate the list of
28515         files controlled by subversion.
28516
28517 2010-04-23  Jim Meyering  <meyering@redhat.com>
28518
28519         vc-list-files tests: convert to use init.sh
28520         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28521         path_prepend_.
28522         Use Exit, not exit.
28523         Use skip_ rather than open coding it.
28524         Remove trap set-up and compare definitions.
28525         * tests/test-vc-list-files-git.sh: Likewise.
28526         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28527
28528 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28529
28530         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28531         backup files.
28532
28533 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28534
28535         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28536
28537 2010-04-20  Eric Blake  <eblake@redhat.com>
28538
28539         tests: be robust to ignored SIGPIPE
28540         * tests/test-select-in.sh: Consume all output.
28541         * tests/test-lseek.sh: Check correct exit status, while avoiding
28542         EPIPE.
28543
28544 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28545             Bruno Haible  <bruno@clisp.org>
28546
28547         visibility: Don't use -fvisibility if it leads to a warning.
28548         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28549         yes, don't pretend that visibility works if it leads to a warning.
28550         Reported by Mike Gran <spk121@yahoo.com>.
28551
28552 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28553
28554         * build-aux/bootstrap: Use "git -h" for testing for supported options
28555         instead of "git --help".  The short-form option only shows a summary,
28556         and doesn't layout the full man page.  Grep for the full option name
28557         in the summary, too.
28558
28559 2010-04-19  Bruno Haible  <bruno@clisp.org>
28560
28561         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28562         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28563         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28564         mention of RELOCATABLE_STRIP.
28565         Reported by Sylvain Beucler <beuc@beuc.net>.
28566
28567 2010-04-19  Bruno Haible  <bruno@clisp.org>
28568
28569         * lib/diffseq.h: Fix typo in comment.
28570         Reported by Eric Blake.
28571
28572 2010-04-19  Bruno Haible  <bruno@clisp.org>
28573
28574         ioctl: Move autoconf macro to a .m4 file.
28575         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28576         * modules/ioctl (Files): Add it.
28577         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28578         Reported by Ian Beckwith <ianb@erislabs.net>.
28579
28580 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28581             Bruno Haible  <bruno@clisp.org>
28582
28583         diffseq: Accommodate use-case with abstract arrays.
28584         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28585         is not defined.
28586         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28587         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28588
28589 2010-04-18  Bruno Haible  <bruno@clisp.org>
28590
28591         * doc/posix-headers/stdbool.texi: More precise wording.
28592
28593 2010-04-17  Jim Meyering  <meyering@redhat.com>
28594
28595         maint.mk: use gnu-style indentation in an embedded perl script
28596         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28597         Rename variable: s/two/last_two_bytes/
28598
28599 2010-04-16  Eric Blake  <eblake@redhat.com>
28600
28601         test-stdbool: skip test that fails with Solaris CC
28602         * tests/test-stdbool.c (f): Skip test that causes compilation
28603         error under buggy C++ compiler.
28604         * lib/stdbool.in.h: Document the limitation.
28605         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28606
28607         setenv: allow compilation with C++
28608         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28609         register keyword.
28610
28611         stdint: allow test to pass with C++
28612         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28613
28614         getopt: allow compilation with C++
28615         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28616         struct.
28617         * lib/getopt.c (_getopt_internal_r): Use correct type.
28618         Reported by Dagobert Michelson, via Joel E. Denny.
28619
28620 2010-04-16  Bruno Haible  <bruno@clisp.org>
28621
28622         Override netdb.h always.
28623         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28624         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28625         Reported by Ludovic Courtès <ludo@gnu.org>.
28626
28627 2010-04-15  Bruno Haible  <bruno@clisp.org>
28628
28629         openpty: Fix mistake from 2010-03-21.
28630         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28631         Reported by Simon Josefsson.
28632
28633 2010-04-15  Eric Blake  <eblake@redhat.com>
28634
28635         test-forkpty: fix expected signature
28636         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28637         Reported by Simon Josefsson.
28638
28639 2010-04-15  Jim Meyering  <meyering@redhat.com>
28640
28641         maint.mk: texinfo_suffix_re_: correct the default regexp
28642         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28643
28644         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28645         make it configurable via texinfo_suffix_re_.
28646
28647 2010-04-14  Eric Blake  <eblake@redhat.com>
28648
28649         strtok_r: relax license to LGPLv2+
28650         * modules/strtok_r (License): Relax license.
28651         Reported by Matthias Bolte.
28652
28653 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28654
28655         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28656         version 1.4.4 by default instead of requiring the libgcrypt
28657         version used during build.  This makes it possible to use the
28658         application with older but still binary compatible libgcrypt
28659         versions.
28660
28661 2010-04-13  Eric Blake  <eblake@redhat.com>
28662
28663         getopt-gnu: match recent glibc fixes and posix ruling
28664         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28665         '+' handling, when requesting extensions.
28666         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28667         'W;' handling.
28668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28669         * doc/posix-functions/getopt.texi (getopt): Document this.
28670         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28671         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28672         Likewise.
28673
28674         getopt: merge bug fixes from glibc
28675         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28676         diagnostics.  Honor '+:' correctly.  Reject ';'.
28677
28678         getopt-posix: detect MacOS bug
28679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28680         optind when missing a required argument.
28681         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28682         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28683         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28684         Likewise.
28685
28686         getopt-posix: avoid spurious failure on Solaris
28687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28688         an indicator that setting optind=1 is sufficient for reset.
28689
28690         getopt-posix: avoid spurious failure on FreeBSD
28691         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28692         in POSIX mode, since the m4 test uses it.
28693
28694         gnulib-tool: silence warning on BSD sh
28695         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28696
28697 2010-04-13  Jim Meyering  <meyering@redhat.com>
28698
28699         doc: users.txt: GNU patch now uses gnulib
28700         * users.txt: Add patch.
28701
28702 2010-04-12  Jim Meyering  <meyering@redhat.com>
28703
28704         maint.mk: generate more concise timing data for syntax-check rules
28705         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28706         " done" from each line that reports a syntax-check test duration.
28707
28708 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28709
28710         git-version-gen: use "git update-index..." rather than "git status"
28711         * build-aux/git-version-gen: Use git update-index --refresh, not
28712         "git status".  With some versions of git, "git status" would fail
28713         to update the index and result in an unwarranted "-dirty" suffix.
28714
28715 2010-04-11  Jim Meyering  <meyering@redhat.com>
28716
28717         openat: correct formatting (no semantic change)
28718         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28719         Suggested by Bruno Haible.
28720
28721 2010-04-11  Bruno Haible  <bruno@clisp.org>
28722
28723         Stricter declaration checking in testdirs.
28724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28725         If for_tests is true, augment AM_CPPFLAGS to define
28726         GNULIB_STRICT_CHECKING.
28727         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28728         GNULIB_STRICT_CHECKING is defined, verify that the function is
28729         declared.
28730
28731 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28732             Bruno Haible  <bruno@clisp.org>
28733
28734         libunistring: Improve configure output.
28735         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28736         Don't say "consider installing GNU libunistring" when checking again
28737         with libiconv.
28738
28739 2010-04-11  Bruno Haible  <bruno@clisp.org>
28740
28741         libunistring: Correct value of $LTLIBUNISTRING.
28742         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28743         correct the value of $LTLIBUNISTRING.
28744
28745 2010-04-11  Bruno Haible  <bruno@clisp.org>
28746
28747         havelib: Add static libraries to LIBS in the right order.
28748         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28749         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28750
28751 2010-04-11  Bruno Haible  <bruno@clisp.org>
28752
28753         libunistring: Detect libunistring also when it depends on libiconv.
28754         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28755         the second AC_LIB_HAVE_LINKFLAGS invocation.
28756
28757 2010-04-11  James Youngman  <jay@gnu.org>
28758
28759         close-stream: declare local scalars to be "const"
28760         * lib/close-stream.c (close_stream): Make boolean variables const
28761         to document the fact that we set but do not change them.
28762
28763 2010-04-11  Bruno Haible  <bruno@clisp.org>
28764
28765         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28766
28767 2010-04-11  Jim Meyering  <meyering@redhat.com>
28768
28769         maint.mk: don't include dist-check.mk
28770         * top/maint.mk: Remove bogus include directive.
28771
28772         maint.mk: improve empty-line-at-EOF check
28773         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28774         solution, rather than tail+Perl-based one.  The latter would read
28775         a few kilobytes from the end of each file, and did not handle empty
28776         files properly.
28777
28778         maint.mk: print the elapsed time for each syntax-check rule
28779         * top/maint.mk (sc_m_rules_): Save start time in a file.
28780         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28781         (local-check): Interpose the .z rules
28782
28783 2010-04-11  Jim Meyering  <meyering@redhat.com>
28784
28785         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28786         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28787         empty file with one that ends in an empty line.
28788
28789 2010-04-10  Bruno Haible  <bruno@clisp.org>
28790
28791         mkdir: Make it work on mingw64.
28792         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28793         * lib/mkdir.c: Update comment.
28794         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
28795
28796 2010-04-10  Bruno Haible  <bruno@clisp.org>
28797
28798         Don't override improved macro from newer autoconf.
28799         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28800         autoconf >= 2.62.
28801         Reported by Joel E. Denny <jdenny@clemson.edu>.
28802
28803 2010-04-10  Jim Meyering  <meyering@redhat.com>
28804
28805         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28806         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28807
28808         maint.mk: correct a diagnostic
28809         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28810         in diagnostic; now use $prohibit.
28811
28812 2010-04-10  Bruno Haible  <address@hidden>
28813
28814         fchownat: Fix a C++ test error on Solaris 8.
28815         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28816         the function does not exist.
28817
28818 2010-04-10  Bruno Haible  <bruno@clisp.org>
28819
28820         vasnprintf: Add more tests.
28821         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28822         (test_function): Test converting an invalid wide string.
28823
28824         vasnprintf: Correct handling of unconvertible wide string arguments.
28825         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28826         VASNPRINTF.
28827         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28828         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28829         smaller than the expected maximum need for the directive. Set errno to
28830         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28831         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28833         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28834         * modules/vasnprintf (Files): Add m4/printf.m4.
28835         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28836
28837 2010-04-10  Bruno Haible  <bruno@clisp.org>
28838
28839         vasnprintf: Fix crash in %ls directive.
28840         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28841         string is passed as argument to %ls, with no precision and no width.
28842         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28843
28844 2010-04-10  Bruno Haible  <bruno@clisp.org>
28845
28846         vasnprintf: Fix multiple test failures on mingw.
28847         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
28848         _snprintf, or snwprintf, not _snwprintf.
28849
28850 2010-04-10  Bruno Haible  <bruno@clisp.org>
28851
28852         write: Fix a C++ test error on mingw.
28853         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
28854
28855 2010-04-10  Bruno Haible  <bruno@clisp.org>
28856
28857         vasnprintf test: Reduce code duplication.
28858         * tests/test-vasnprintf.c (test_function): New function, extracted from
28859         test_vasnprintf.
28860         (test_vasnprintf, test_asnprintf): Invoke it.
28861
28862 2010-04-10  Bruno Haible  <bruno@clisp.org>
28863
28864         strnlen: Fix warning in C++ mode on MacOS X.
28865         * lib/string.in.h (strnlen): Use the modern idiom.
28866         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
28867         defining strnlen as a macro already in <config.h>.
28868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28869         REPLACE_STRNLEN.
28870         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
28871         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28872
28873 2010-04-08  James Youngman  <jay@gnu.org>
28874
28875         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
28876         the example.
28877
28878 2010-04-09  Jim Meyering  <meyering@redhat.com>
28879
28880         maint.mk: print better diagnostic when there is no $(_hv_file)
28881         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
28882         announce that when $(_hv_file) (aka help-version) does not exist.
28883
28884         init.sh: run tr in the "C" locale to avoid multibyte interpretation
28885         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
28886         not try to interpret its random input bytes.  Jarno Rajahalme reported
28887         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
28888         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
28889         (mktempd_): Likewise, just in case.
28890
28891         ftruncate: add two years to projected module removal date: 2012
28892         * m4/ftruncate.m4: Adjust comments.
28893
28894         ftruncate: mark module as obsolete; even MinGW provides it, now
28895         * modules/ftruncate (Status): Obsolete.
28896         (Notice): Say that.
28897         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
28898         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
28899
28900 2010-04-08  Bruno Haible  <bruno@clisp.org>
28901
28902         Fix side effects from tests-related modules.
28903         * modules/dprintf-posix (Comment): New section.
28904         * modules/fprintf-posix (Comment): Likewise.
28905         * modules/obstack-printf-posix (Comment): Likewise.
28906         * modules/printf-posix (Comment): Likewise.
28907         * modules/snprintf-posix (Comment): Likewise.
28908         * modules/sprintf-posix (Comment): Likewise.
28909         * modules/vasnprintf-posix (Comment): Likewise.
28910         * modules/vasprintf-posix (Comment): Likewise.
28911         * modules/vdprintf-posix (Comment): Likewise.
28912         * modules/vfprintf-posix (Comment): Likewise.
28913         * modules/vprintf-posix (Comment): Likewise.
28914         * modules/vsnprintf-posix (Comment): Likewise.
28915         * modules/vsprintf-posix (Comment): Likewise.
28916         * modules/xprintf-posix (Comment): Likewise.
28917         * modules/xvasprintf-posix (Comment): Likewise.
28918         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
28919         * modules/floorf-tests (Depends-on): Likewise.
28920         * modules/round-tests (Depends-on): Likewise.
28921         * modules/roundf-tests (Depends-on): Likewise.
28922         * modules/trunc-tests (Depends-on): Likewise.
28923         * modules/truncf-tests (Depends-on): Likewise.
28924         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
28925         'fprintf-posix' module is not present.
28926         * tests/test-floorf2.c (check): Likewise.
28927         * tests/test-trunc2.c (check): Likewise.
28928         * tests/test-truncf2.c (check): Likewise.
28929         * tests/test-round2.c (equal): Likewise.
28930         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28931
28932 2010-04-07  Karl Berry  <karl@gnu.org>
28933
28934         * config/srclist.txt,
28935         * config/srclistvars.sh,
28936         * config/srclist-update: doc fixes.
28937
28938 2010-04-07  Jim Meyering  <meyering@redhat.com>
28939
28940         maint.mk: add a PATH crosschecking syntax-check rule
28941         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
28942         Useful if you use a test like the one in help-version (coreutils,
28943         diffutils, grep, gzip) that ensures $(VERSION) matches what is
28944         printed by prog --version.
28945
28946 2010-04-06  Bruno Haible  <bruno@clisp.org>
28947
28948         Fix link error on mingw.
28949         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
28950         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
28951
28952 2010-04-06  Bruno Haible  <bruno@clisp.org>
28953
28954         Assume rmdir exists.
28955         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
28956
28957 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
28958
28959         doc: update users.txt
28960         * users.txt: Add gcal.
28961
28962 2010-04-06  Jim Meyering  <meyering@redhat.com>
28963
28964         init.sh: simply unset TMPDIR rather than risking env -i
28965         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
28966         although it probably works fine on all Unix-based systems, some
28967         systems (Cygwin?) cannot tolerate a totally cleared environment.
28968         Suggestion from Eric Blake.
28969
28970 2010-04-06  Jim Meyering  <meyering@redhat.com>
28971
28972         init.sh: portability fix: use env's POSIX-specified -i option not -u
28973         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
28974         than unportable env -u.  Solaris 5.11's env lacks support for -u.
28975
28976 2010-04-05  Bruno Haible  <bruno@clisp.org>
28977
28978         btowc: Work around Cygwin 1.7.2 bug.
28979         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
28980         does not map NUL to 0.
28981         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
28982
28983 2010-04-05  Bruno Haible  <bruno@clisp.org>
28984
28985         Make the multithread modules work on Cygwin 1.7.2.
28986         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
28987         imported symbols can be declared weak, so that it returns "no" on
28988         Cygwin 1.7.2.
28989
28990 2010-04-05  Bruno Haible  <bruno@clisp.org>
28991
28992         Use the module 'strncat'.
28993         * modules/unistr/u8-strncat (Depends-on): Add strncat.
28994
28995         Tests for module 'strncat'.
28996         * modules/strncat-tests: New file.
28997         * tests/test-strncat.c: New file.
28998
28999         New module 'strncat'.
29000         * lib/string.in.h (strncat): New declaration.
29001         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29002         * m4/strncat.m4: New file, based on m4/memchr.m4.
29003         * modules/strncat: New file.
29004         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29005         is declared.
29006         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29007         REPLACE_STRNCAT.
29008         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29009         REPLACE_STRNCAT.
29010         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29011         module.
29012         * tests/test-string-c++.cc: Check signature of strncat.
29013
29014 2010-04-05  Jim Meyering  <meyering@redhat.com>
29015
29016         xstrtoumax-tests: convert to use init.sh
29017         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29018         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29019         Use Exit, not exit.
29020         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29021
29022         xstrtoimax-tests: convert to use init.sh
29023         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29024         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29025         Use Exit, not exit.
29026         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29027
29028 2010-04-05  Bruno Haible  <bruno@clisp.org>
29029
29030         sys_socket: Avoid #define replacements in C++ mode.
29031         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29032         warning to the function if possible, rather than #defining the symbol
29033         to a dysfunctional alias.
29034
29035 2010-04-05  Bruno Haible  <bruno@clisp.org>
29036
29037         fseeko: Fix C++ test error on mingw.
29038         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29039         gl_FUNC_FSEEKO.
29040         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29041         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29043         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29044
29045 2010-04-05  Bruno Haible  <bruno@clisp.org>
29046
29047         duplocale: Improve test output.
29048         * tests/test-duplocale.c (main): Print reason for skipped test.
29049
29050 2010-04-05  Bruno Haible  <bruno@clisp.org>
29051
29052         Assume rmdir exists.
29053         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29054         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29055
29056 2010-04-05  Bruno Haible  <bruno@clisp.org>
29057
29058         Fix link error on Solaris 8 with cc.
29059         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29060
29061 2010-04-05  Bruno Haible  <bruno@clisp.org>
29062
29063         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29064         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29065
29066 2010-04-05  Bruno Haible  <bruno@clisp.org>
29067
29068         vasprintf: Update documentation.
29069         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29070
29071 2010-04-05  Bruno Haible  <bruno@clisp.org>
29072
29073         ptsname: Improve test.
29074         * tests/test-ptsname.c (main): Also try the various master names of BSD
29075         systems.
29076
29077 2010-04-05  Bruno Haible  <bruno@clisp.org>
29078
29079         memchr: Avoid a possible C++ test error.
29080         * lib/string.in.h (memchr): Provide declaration if function is missing.
29081         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29082         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29084         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29085
29086 2010-04-05  Bruno Haible  <bruno@clisp.org>
29087
29088         strtok_r: Improve idiom.
29089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29090         AC_LIBOBJ is used.
29091
29092 2010-04-05  Bruno Haible  <bruno@clisp.org>
29093
29094         strdup: Improve idiom.
29095         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29096         AC_LIBOBJ is used.
29097         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29098         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29099         when AC_LIBOBJ is used.
29100
29101 2010-04-05  Bruno Haible  <bruno@clisp.org>
29102
29103         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29104         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29105         don't set REPLACE_MBSINIT to 1.
29106         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29107         don't set REPLACE_MBRTOWC to 1.
29108         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29109         exist, don't set REPLACE_MBSRTOWCS to 1.
29110         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29111         exist, don't set REPLACE_MBSNRTOWCS to 1.
29112         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29113         don't set REPLACE_WCRTOMB to 1.
29114         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29115         exist, don't set REPLACE_WCSRTOMBS to 1.
29116         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29117         exist, don't set REPLACE_WCSNRTOMBS to 1.
29118
29119 2010-04-05  Bruno Haible  <bruno@clisp.org>
29120
29121         ldexpl: Improve idiom.
29122         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29123         make sure to set HAVE_DECL_LDEXPL to 0.
29124
29125 2010-04-05  Jim Meyering  <meyering@redhat.com>
29126
29127         xstrtol-tests: convert to use init.sh
29128         * modules/xstrtol-tests (Files): Add tests/init.sh.
29129         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29130         Use Exit, not exit.
29131         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29132
29133         atexit-tests: convert to use init.sh
29134         * modules/atexit-tests (Files): Add tests/init.sh.
29135         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29136         Use Exit, not exit.
29137         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29138
29139         init.sh: fix typo
29140         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29141
29142         init.sh: make it easier for a test script to write to the tty, ...
29143         when using automake's parallel-tests mode.
29144         * tests/init.sh (stderr_fileno_): Define overridable variable.
29145         (warn_): New function, to use it.
29146         (fail_, skip_, framework_failure_): Use warn_.
29147
29148 2010-04-04  Bruno Haible  <bruno@clisp.org>
29149
29150         btowc: Avoid warning.
29151         * lib/btowc.c: Include <stdlib.h>.
29152         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29153
29154 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29155             Bruno Haible  <bruno@clisp.org>
29156
29157         wchar: Port to NetBSD 1.5.
29158         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29159         * lib/wctype.in.h (WEOF): Likewise.
29160
29161 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29162             Bruno Haible  <bruno@clisp.org>
29163
29164         Port extended stdio to NetBSD 1.5.
29165         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29166         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29167         older.
29168
29169 2010-04-04  Bruno Haible  <bruno@clisp.org>
29170
29171         string: Remove unused substitution.
29172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29173         HAVE_DECL_STRERROR.
29174         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29175
29176 2010-04-04  Bruno Haible  <bruno@clisp.org>
29177
29178         strtod: Avoid a possible C++ test error.
29179         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29180         set REPLACE_STRTOD.
29181
29182 2010-04-04  Bruno Haible  <bruno@clisp.org>
29183
29184         strerror: Update documentation.
29185         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29186
29187 2010-04-04  Bruno Haible  <bruno@clisp.org>
29188
29189         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29190         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29191         _GL_CXXALIAS_SYS_CAST.
29192
29193 2010-04-04  Bruno Haible  <bruno@clisp.org>
29194
29195         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29196         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29197         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29198         REPLACE_FREXPL to 1.
29199         * doc/posix-functions/frexpl.texi: Update documentation.
29200
29201 2010-04-04  Bruno Haible  <bruno@clisp.org>
29202
29203         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29204         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29205
29206 2010-04-04  Bruno Haible  <bruno@clisp.org>
29207
29208         Implement nanosleep for native Windows.
29209         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29210
29211 2010-04-04  Bruno Haible  <bruno@clisp.org>
29212
29213         math: Fix some C++ test errors on Solaris 8.
29214         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29215
29216 2010-04-04  Bruno Haible  <bruno@clisp.org>
29217
29218         math: Fix some C++ test errors on Cygwin.
29219         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29220         truncl): Provide declaration if the system does not have it.
29221         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29222         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29223         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29224         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29225         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29226         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29227         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29228         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29229         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29230         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29231         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29232         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29233         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29234         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29235         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29236         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29238         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29239         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29240         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29241         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29242         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29243
29244 2010-04-04  Bruno Haible  <bruno@clisp.org>
29245
29246         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29247         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29248         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29249         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29250         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29251         * m4/isinf.m4 (gl_ISINF): Likewise.
29252         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29253
29254 2010-04-04  Bruno Haible  <bruno@clisp.org>
29255
29256         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29257         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29258
29259 2010-04-04  Bruno Haible  <bruno@clisp.org>
29260
29261         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29262         * modules/tmpfile (configure.ac): Update.
29263
29264         tmpfile: Fix C++ test error on mingw.
29265         * lib/stdio.in.h (tmpfile): New declaration.
29266         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29267         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29268         * modules/tmpfile (Depends-on): Add stdio.
29269         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29270         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29271         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29272         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29273         REPLACE_TMPFILE.
29274         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29275
29276 2010-04-04  Bruno Haible  <bruno@clisp.org>
29277
29278         ioctl: Fix C++ test error on mingw.
29279         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29280         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29281         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29282
29283 2010-04-03  Bruno Haible  <bruno@clisp.org>
29284
29285         wcwidth: Fix C++ test error on mingw.
29286         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29288         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29289
29290 2010-04-03  Bruno Haible  <bruno@clisp.org>
29291
29292         nanosleep: Fix C++ test error on mingw.
29293         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29294         * lib/time.in.h (nanosleep): Use modern idiom.
29295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29296         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29297         REPLACE_NANOSLEEP to 1.
29298         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29299         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29300
29301 2010-04-03  Bruno Haible  <bruno@clisp.org>
29302
29303         strptime: Fix C++ test error on mingw.
29304         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29305         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29306         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29307         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29308         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29309         not REPLACE_STRPTIME.
29310         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29311         REPLACE_STRPTIME.
29312
29313 2010-04-03  Bruno Haible  <bruno@clisp.org>
29314
29315         timegm: Fix C++ test error on mingw.
29316         * lib/time.in.h (timegm): Use modern idiom.
29317         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29318         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29319         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29320         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29321
29322 2010-04-03  Bruno Haible  <bruno@clisp.org>
29323
29324         timegm: Assume declaration if function exists.
29325         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29326         if it exists. Don't clobber ac_cv_func_timegm.
29327
29328 2010-04-03  Bruno Haible  <bruno@clisp.org>
29329
29330         time_r: Fix C++ test error on mingw.
29331         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29332         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29333         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29334         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29335         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29336
29337 2010-04-03  Bruno Haible  <bruno@clisp.org>
29338
29339         time_r: Minor updates.
29340         * modules/time_r (Description): Mention the provided functions.
29341         * lib/time_r.c: Don't include <string.h>.
29342         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29343         * doc/posix-functions/localtime_r.texi: Likewise.
29344
29345 2010-04-03  Bruno Haible  <bruno@clisp.org>
29346
29347         time: Fix regression introduced on 2010-03-08.
29348         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29349         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29350
29351 2010-04-03  Jim Meyering  <meyering@redhat.com>
29352
29353         maint.mk: don't silently disable project-specific syntax-check rules
29354         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29355         that they need to convert their project-specific syntax-check rules
29356         to use the new _sc_search_regexp.
29357
29358 2010-04-03  Bruno Haible  <bruno@clisp.org>
29359
29360         fchdir: Fix regression introduced on 2010-03-08.
29361         * lib/unistd.in.h (fchdir): Fix declaration.
29362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29364         REPLACE_FCHDIR.
29365         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29366         REPLACE_FCHDIR.
29367
29368 2010-04-03  Bruno Haible  <bruno@clisp.org>
29369
29370         getpagesize: Fix C++ test error on mingw.
29371         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29372         system does not declare the function.
29373         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29374         declared.
29375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29376         HAVE_DECL_GETPAGESIZE.
29377         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29378
29379 2010-04-03  Bruno Haible  <bruno@clisp.org>
29380
29381         stdio: Make C++ tests work on mingw.
29382         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29383         does not declare the function.
29384
29385 2010-04-03  Bruno Haible  <bruno@clisp.org>
29386
29387         ftello: Fix C++ test error on mingw.
29388         * lib/stdio.in.h (ftello): Use modern idiom.
29389         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29390         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29391         is missing and that it needs to be replaced.
29392         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29394         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29395
29396 2010-04-03  Bruno Haible  <bruno@clisp.org>
29397
29398         fseeko: Fix C++ test error on mingw.
29399         * lib/stdio.in.h (fseeko): Use modern idiom.
29400         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29401         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29402         is missing and that it needs to be replaced.
29403         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29405         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29406
29407 2010-04-03  Bruno Haible  <bruno@clisp.org>
29408
29409         mkstemp: Fix C++ test error on mingw.
29410         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29411         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29412         function is missing and that it needs to be replaced.
29413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29414         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29415
29416 2010-04-03  Bruno Haible  <bruno@clisp.org>
29417
29418         stpncpy: Fix C++ test error on mingw.
29419         * lib/string.in.h (stpncpy): Use modern idiom.
29420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29421         function is missing and that it needs to be replaced.
29422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29423         REPLACE_STPNCPY.
29424         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29425
29426 2010-04-03  Bruno Haible  <bruno@clisp.org>
29427
29428         sys_stat: Fix C++ test error on mingw.
29429         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29430         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29431
29432 2010-04-03  Bruno Haible  <bruno@clisp.org>
29433
29434         pty: Update doc.
29435         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29436
29437 2010-04-03  Bruno Haible  <bruno@clisp.org>
29438
29439         unistd: Fix C++ test error on mingw.
29440         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29441
29442 2010-04-03  Bruno Haible  <bruno@clisp.org>
29443
29444         Update doc regarding mingw.
29445         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29446         * doc/glibc-functions/login_tty.texi: Likewise.
29447         * doc/glibc-functions/forkpty.texi: Likewise.
29448
29449 2010-04-03  Bruno Haible  <bruno@clisp.org>
29450
29451         stdlib: Avoid compilation failure of c-strtold on mingw.
29452         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29453
29454 2010-04-03  Bruno Haible  <bruno@clisp.org>
29455
29456         locale: Make C++ tests work on Cygwin and mingw.
29457         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29458         cannot provide the function.
29459         Reported by Simon Josefsson.
29460
29461 2010-04-03  Bruno Haible  <bruno@clisp.org>
29462
29463         localename: Port to MacOS X 10.6.
29464         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29465         memory layout of the locales in MacOS X 10.6 as well.
29466         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29467
29468 2010-04-02  Bruno Haible  <bruno@clisp.org>
29469
29470         gnulib-tool: Ensure that long-running tests are executed last.
29471         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29472         running tests after the one for the other tests.
29473
29474 2010-04-02  Bruno Haible  <bruno@clisp.org>
29475
29476         gnulib-tool: Ensure the tests in the main directory are executed first.
29477         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29478         start with the current directory.
29479
29480 2010-04-02  Bruno Haible  <bruno@clisp.org>
29481
29482         Tests for module 'havelib', moved here from GNU gettext.
29483         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29484         modifications.
29485         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29486         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29487         with modifications.
29488         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29489         modifications.
29490         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29491         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29492         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29493         with modifications.
29494         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29495         with modifications.
29496         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29497         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29498         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29499         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29500         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29501         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29502         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29503         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29504         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29505         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29506         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29507         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29508         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29509         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29510         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29511         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29512         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29513         with modifications.
29514         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29515         with modifications.
29516         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29517         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29518         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29519         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29520         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29521         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29522         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29523         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29524         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29525         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29526         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29527         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29528         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29529         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29530         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29531         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29532         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29533         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29534         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29535         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29536         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29537         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29538         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29539         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29540         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29541         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29542         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29543         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29544         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29545         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29546         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29547         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29548         * tests/havelib/rpathx/rpathx.c: New file, from
29549         gettext/autoconf-lib-link.
29550         * tests/havelib/rpathx/Makefile.am: New file, from
29551         gettext/autoconf-lib-link.
29552         * tests/havelib/rpathx/configure.ac: New file, from
29553         gettext/autoconf-lib-link with modifications.
29554         * tests/havelib/rpathy/rpathy.c: New file, from
29555         gettext/autoconf-lib-link.
29556         * tests/havelib/rpathy/Makefile.am: New file, from
29557         gettext/autoconf-lib-link.
29558         * tests/havelib/rpathy/configure.ac: New file, from
29559         gettext/autoconf-lib-link with modifications.
29560         * tests/havelib/rpathz/rpathz.c: New file, from
29561         gettext/autoconf-lib-link.
29562         * tests/havelib/rpathz/Makefile.am: New file, from
29563         gettext/autoconf-lib-link.
29564         * tests/havelib/rpathz/configure.ac: New file, from
29565         gettext/autoconf-lib-link with modifications.
29566         * tests/havelib/rpathlx/usex.c: New file, from
29567         gettext/autoconf-lib-link.
29568         * tests/havelib/rpathlx/Makefile.am: New file, from
29569         gettext/autoconf-lib-link.
29570         * tests/havelib/rpathlx/configure.ac: New file, from
29571         gettext/autoconf-lib-link with modifications.
29572         * tests/havelib/rpathly/usey.c: New file, from
29573         gettext/autoconf-lib-link.
29574         * tests/havelib/rpathly/Makefile.am: New file, from
29575         gettext/autoconf-lib-link.
29576         * tests/havelib/rpathly/configure.ac: New file, from
29577         gettext/autoconf-lib-link with modifications.
29578         * tests/havelib/rpathlz/usez.c: New file, from
29579         gettext/autoconf-lib-link.
29580         * tests/havelib/rpathlz/Makefile.am: New file, from
29581         gettext/autoconf-lib-link.
29582         * tests/havelib/rpathlz/configure.ac: New file, from
29583         gettext/autoconf-lib-link with modifications.
29584         * tests/havelib/rpathlyx/usey.c: New file, from
29585         gettext/autoconf-lib-link.
29586         * tests/havelib/rpathlyx/Makefile.am: New file, from
29587         gettext/autoconf-lib-link.
29588         * tests/havelib/rpathlyx/configure.ac: New file, from
29589         gettext/autoconf-lib-link with modifications.
29590         * tests/havelib/rpathlzyx/usez.c: New file, from
29591         gettext/autoconf-lib-link.
29592         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29593         gettext/autoconf-lib-link.
29594         * tests/havelib/rpathlzyx/configure.ac: New file, from
29595         gettext/autoconf-lib-link with modifications.
29596         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29597         with modifications.
29598
29599 2010-04-02  Bruno Haible  <bruno@clisp.org>
29600
29601         gnulib-tool: Create distributed built sources also for the tests.
29602         * gnulib-tool (func_create_testdir): Also generate distributed built
29603         sources in the tests directory.
29604
29605 2010-04-02  Bruno Haible  <bruno@clisp.org>
29606
29607         gnulib-tool: Obey user's environment variables.
29608         * gnulib-tool (func_create_testdir): When creating built sources,
29609         respect the environment variables for autoconf, automake, etc. given by
29610         the user.
29611
29612 2010-04-02  Bruno Haible  <bruno@clisp.org>
29613
29614         gnulib-tool: Provide the value of --m4-base to modules.
29615         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29616         of gl_m4_base.
29617
29618 2010-04-02  Eric Blake  <eblake@redhat.com>
29619
29620         maint.mk: fix some fallout
29621         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29622         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29623
29624 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29625
29626         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29627         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29628         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29629         (sc_cast_of_x_alloc_return_value): Likewise.
29630         (sc_cast_of_alloca_return_value): Likewise.
29631         (sc_space_tab): Likewise.
29632         (sc_prohibit_atoi_atof): Likewise.
29633         (sc_prohibit_magic_number_exit): Likewise.
29634         (sc_error_exit_success): Likewise.
29635         (sc_file_system): Likewise.
29636         (sc_prohibit_have_config_h): Likewise.
29637         (sc_require_config_h): Likewise.
29638         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29639         (sc_obsolete_symbols): Likewise.
29640         (sc_changelog): Likewise.
29641         (sc_program_name): Likewise.
29642         (sc_the_the): Likewise.
29643         (sc_trailing_blank): Likewise.
29644         (sc_two_space_separator_in_usage): Likewise.
29645         (sc_useless_cpp_parens): Likewise.
29646         (sc_GPL_version): Likewise.
29647         (sc_GFDL_version): Likewise.
29648         (sc_texinfo_acronym): Likewise.
29649         (sc_prohibit_cvs_keyword): Likewise.
29650         (sc_prohibit_stat_st_blocks): Likewise.
29651         (sc_prohibit_S_IS_definition): Likewise.
29652         (sc_redundant_const): Likewise.
29653         (sc_makefile_TAB_only_indentation): Likewise.
29654         (sc_m4_quote_check): Likewise.
29655         (sc_makefile_path_separator_check): Likewise.
29656         (sc_copyright_check): Likewise.
29657         (sc_Wundef_boolean): Likewise.
29658         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29659
29660         maint.mk: match 0 or more whitespace-before-function-call '('
29661         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29662         that have zero or two-and-more spaces between the function name
29663         and the open parenthesis.
29664         (sc_error_message_warn_fatal): Likewise.
29665         (sc_error_message_uppercase): Likewise.
29666         (sc_error_message_period): Likewise.
29667
29668 2010-03-31  Eric Blake  <eblake@redhat.com>
29669
29670         maint.mk: check for [ as well as test
29671         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29672         Based on a libvirt report by Matthias Bolte.
29673
29674         gnumakefile: don't squelch _version output
29675         * top/GNUmakefile (_version): Create one-shot dependency rather
29676         than using $(shell) when version must be regenerated.
29677         (_autoreconf): Run verbosely, by default.
29678
29679         sys_time: avoid compiler warnings
29680         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29681         unconditional, fixing regression from 2010-03-29.
29682         Reported by Simon Josefsson.
29683
29684 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29685
29686         maint.mk: s/_header_without_use/_sc_header_without_use/
29687         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29688         (sc_prohibit_assert_without_use): Use the new name.
29689         (sc_prohibit_close_stream_without_use): Likewise.
29690         (sc_prohibit_getopt_without_use): Likewise.
29691         (sc_prohibit_quotearg_without_use): Likewise.
29692         (sc_prohibit_quote_without_use): Likewise.
29693         (sc_prohibit_long_options_without_use): Likewise.
29694         (sc_prohibit_inttostr_without_use): Likewise.
29695         (sc_prohibit_ignore_value_without_use): Likewise.
29696         (sc_prohibit_error_without_use): Likewise.
29697         (sc_prohibit_xalloc_without_use): Likewise.
29698         (sc_prohibit_hash_without_use): Likewise.
29699         (sc_prohibit_hash_pjw_without_use): Likewise.
29700         (sc_prohibit_safe_read_without_use): Likewise.
29701         (sc_prohibit_argmatch_without_use): Likewise.
29702         (sc_prohibit_canonicalize_without_use): Likewise.
29703         (sc_prohibit_root_dev_ino_without_use): Likewise.
29704         (sc_prohibit_openat_without_use): Likewise.
29705         (sc_prohibit_c_ctype_without_use): Likewise.
29706         (sc_prohibit_signal_without_use): Likewise.
29707         (sc_prohibit_intprops_without_use): Likewise.
29708
29709 2010-03-30  Eric Blake  <eblake@redhat.com>
29710
29711         maint: improve module indicators
29712         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29713         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29714         columns, and avoid extra macro expansion.
29715
29716         fdopendir: work around FreeBSD bug
29717         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29718         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29719         * modules/dirent (Makefile.am): Substitute it.
29720         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29721         declaration.
29722         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29723         fix.
29724         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29725
29726 2010-03-29  Bruno Haible  <bruno@clisp.org>
29727
29728         Emit #pragma system_header after the inclusion guard, not before.
29729         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29730         guard that spans the entire file, not before. This enables an
29731         optimization in GCC's preprocessor.
29732         * lib/ctype.in.h: Likewise.
29733         * lib/dirent.in.h: Likewise.
29734         * lib/errno.in.h: Likewise.
29735         * lib/float.in.h: Likewise.
29736         * lib/getopt.in.h: Likewise.
29737         * lib/iconv.in.h: Likewise.
29738         * lib/langinfo.in.h: Likewise.
29739         * lib/locale.in.h: Likewise.
29740         * lib/math.in.h: Likewise.
29741         * lib/netdb.in.h: Likewise.
29742         * lib/netinet_in.in.h: Likewise.
29743         * lib/pty.in.h: Likewise.
29744         * lib/sched.in.h: Likewise.
29745         * lib/se-selinux.in.h: Likewise.
29746         * lib/search.in.h: Likewise.
29747         * lib/spawn.in.h: Likewise.
29748         * lib/stdarg.in.h: Likewise.
29749         * lib/stdint.in.h: Likewise.
29750         * lib/string.in.h: Likewise.
29751         * lib/strings.in.h: Likewise.
29752         * lib/sys_file.in.h: Likewise.
29753         * lib/sys_ioctl.in.h: Likewise.
29754         * lib/sys_time.in.h: Likewise.
29755         * lib/sys_times.in.h: Likewise.
29756         * lib/sys_utsname.in.h: Likewise.
29757         * lib/sys_wait.in.h: Likewise.
29758         * lib/sysexits.in.h: Likewise.
29759         * lib/wctype.in.h: Likewise.
29760
29761 2010-03-28  James Youngman  <jay@gnu.org>
29762
29763         save-cwd: don't leak a file descriptor when the caller execs.
29764         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29765         saved file descriptor.
29766         * modules/save-cwd (Depends-on): Depend on cloexec.
29767
29768 2010-03-29  Bruno Haible  <bruno@clisp.org>
29769
29770         Remove vestiges of fts-lgpl module.
29771         * lib/fts_.h: Assume GNULIB_FTS is 1.
29772         * lib/fts.c: Likewise.
29773         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29774
29775 2010-03-28  Bruno Haible  <bruno@clisp.org>
29776
29777         Fix definition of tests witness macro.
29778         * gnulib-tool (func_import): Fix definition of witness macro.
29779
29780 2010-03-28  Bruno Haible  <bruno@clisp.org>
29781
29782         Fix ioctl's protoype on glibc systems.
29783         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29784         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29785         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29786         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29787         signature. If not, arrange to replace the ioctl function.
29788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29789         REPLACE_IOCTL.
29790         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29791         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29792         Reported by Ludovic Courtès <ludo@gnu.org>.
29793
29794 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29795
29796         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29797         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29798         made it so grep -r --include=GLOB* ... did not work.
29799
29800 2010-03-26  Jim Meyering  <meyering@redhat.com>
29801             Eric Blake  <eblake@redhat.com>
29802
29803         maint.mk: prohibit use of test's -o and -a operators
29804         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29805
29806 2010-03-28  Bruno Haible  <bruno@clisp.org>
29807
29808         Remove unused GNULIB_XYZ macro definitions.
29809         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29810         invocation.
29811
29812 2010-03-28  Bruno Haible  <bruno@clisp.org>
29813
29814         Mark privileged tests modules.
29815         * modules/idpriv-drop-tests (Status): New section.
29816         * modules/idpriv-droptemp-tests (Status): New section.
29817
29818 2010-03-28  Bruno Haible  <bruno@clisp.org>
29819
29820         Split C++ tests into separate tests modules.
29821         * modules/dirent-c++-tests: New file, extracted from
29822         modules/dirent-tests.
29823         * modules/dirent-tests: Depend on it.
29824         * modules/fcntl-h-c++-tests: New file, extracted from
29825         modules/fcntl-h-tests.
29826         * modules/fcntl-h-tests: Depend on it.
29827         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29828         * modules/glob-tests: Depend on it.
29829         * modules/iconv-h-c++-tests: New file, extracted from
29830         modules/iconv-h-tests.
29831         * modules/iconv-h-tests: Depend on it.
29832         * modules/langinfo-c++-tests: New file, extracted from
29833         modules/langinfo-tests.
29834         * modules/langinfo-tests: Depend on it.
29835         * modules/locale-c++-tests: New file, extracted from
29836         modules/locale-tests.
29837         * modules/locale-tests: Depend on it.
29838         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29839         * modules/math-tests: Depend on it.
29840         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29841         * modules/pty-tests: Depend on it.
29842         * modules/search-c++-tests: New file, extracted from
29843         modules/search-tests.
29844         * modules/search-tests: Depend on it.
29845         * modules/signal-c++-tests: New file, extracted from
29846         modules/signal-tests.
29847         * modules/signal-tests: Depend on it.
29848         * modules/spawn-c++-tests: New file, extracted from
29849         modules/spawn-tests.
29850         * modules/spawn-tests: Depend on it.
29851         * modules/stdio-c++-tests: New file, extracted from
29852         modules/stdio-tests.
29853         * modules/stdio-tests: Depend on it.
29854         * modules/stdlib-c++-tests: New file, extracted from
29855         modules/stdlib-tests.
29856         * modules/stdlib-tests: Depend on it.
29857         * modules/string-c++-tests: New file, extracted from
29858         modules/string-tests.
29859         * modules/string-tests: Depend on it.
29860         * modules/sys_ioctl-c++-tests: New file, extracted from
29861         modules/sys_ioctl-tests.
29862         * modules/sys_ioctl-tests: Depend on it.
29863         * modules/sys_select-c++-tests: New file, extracted from
29864         modules/sys_select-tests.
29865         * modules/sys_select-tests: Depend on it.
29866         * modules/sys_socket-c++-tests: New file, extracted from
29867         modules/sys_socket-tests.
29868         * modules/sys_socket-tests: Depend on it.
29869         * modules/sys_stat-c++-tests: New file, extracted from
29870         modules/sys_stat-tests.
29871         * modules/sys_stat-tests: Depend on it.
29872         * modules/sys_time-c++-tests: New file, extracted from
29873         modules/sys_time-tests.
29874         * modules/sys_time-tests: Depend on it.
29875         * modules/time-c++-tests: New file, extracted from modules/time-tests.
29876         * modules/time-tests: Depend on it.
29877         * modules/unistd-c++-tests: New file, extracted from
29878         modules/unistd-tests.
29879         * modules/unistd-tests: Depend on it.
29880         * modules/wchar-c++-tests: New file, extracted from
29881         modules/wchar-tests.
29882         * modules/wchar-tests: Depend on it.
29883         * modules/wctype-c++-tests: New file, extracted from
29884         modules/wctype-tests.
29885         * modules/wctype-tests: Depend on it.
29886         Reported by Simon Josefsson.
29887
29888 2010-03-28  Bruno Haible  <bruno@clisp.org>
29889
29890         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
29891         * gnulib-tool (func_exists_module): New function, extracted from
29892         func_verify_module.
29893         (func_verify_module): Use it.
29894         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
29895         'foo' only if 'foo' exists.
29896         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
29897         module.
29898
29899 2010-03-28  Bruno Haible  <bruno@clisp.org>
29900
29901         gnulib-tool: Add support for special categories of tests.
29902         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
29903         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
29904         (func_usage): Document them.
29905         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
29906         inc_unportable_tests, inc_all_tests): New variables.
29907         (func_acceptable): Consider these variables.
29908         (func_modules_transitive_closure): Make it work when the 'Status' field
29909         consists of multiple words.
29910         (func_import): Store and restore the values of inc_cxx_tests,
29911         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
29912         inc_all_tests in gnulib-comp.m4.
29913         (func_create_testdir): Set inc_all_tests to true.
29914         * doc/gnulib.texi (Extra tests modules): New section.
29915         Suggested by Jim Meyering.
29916
29917 2010-03-28  Bruno Haible  <bruno@clisp.org>
29918
29919         ansi-c++-opt: Allow turning off the C++ build by default.
29920         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
29921         gl_CXX_CHOICE_DEFAULT_NO is defined.
29922         Requested by Eric Blake.
29923
29924 2010-03-28  Bruno Haible  <bruno@clisp.org>
29925
29926         unistd: Avoid #define replacements in C++ mode.
29927         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29928         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29929         setsockopt, shutdown, select): In C++, attach a warning to the function
29930         if possible, rather than #defining the symbol to a dysfunctional alias.
29931         Reported by John W. Eaton <jwe@gnu.org>.
29932
29933 2010-03-28  Bruno Haible  <bruno@clisp.org>
29934
29935         Fix link errors on mingw.
29936         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
29937         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
29938         $(LIBSOCKET).
29939         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
29940         $(LIBSOCKET).
29941
29942 2010-03-28  Bruno Haible  <bruno@clisp.org>
29943             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29944
29945         lib-ignore: Determine different options for different compilers.
29946         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
29947         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
29948         Add comments.
29949         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
29950         * NEWS: Mention the change.
29951
29952 2010-03-27  Bruno Haible  <bruno@clisp.org>
29953
29954         Remove unused GNULIB_XYZ macro definitions.
29955         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29956         * modules/fseek (configure.ac): Likewise.
29957         * modules/ioctl (configure.ac): Likewise.
29958         * modules/open (configure.ac): Likewise.
29959         * modules/stdlib-safer (configure.ac): Likewise.
29960
29961 2010-03-27  Bruno Haible  <bruno@clisp.org>
29962
29963         Add a remark about certain modules.
29964         * modules/malloc (Comment): New section.
29965         * modules/realloc (Comment): Likewise.
29966         * modules/sigpipe (Comment): Likewise.
29967
29968 2010-03-27  Bruno Haible  <bruno@clisp.org>
29969
29970         Resolve conflict between the two kinds of module indicators.
29971         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
29972         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
29973         * modules/canonicalize (configure.ac): Invoke
29974         gl_MODULE_INDICATOR_FOR_TESTS.
29975         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
29976         GNULIB_XYZ.
29977         * tests/test-dirent-c++.cc: Likewise.
29978         * tests/test-dirent-safer.c: Likewise.
29979         * tests/test-dup2.c: Likewise.
29980         * tests/test-fchdir.c: Likewise.
29981         * tests/test-fcntl-h-c++.cc: Likewise.
29982         * tests/test-getopt.c: Likewise.
29983         * tests/test-getopt.h: Likewise.
29984         * tests/test-langinfo-c++.cc: Likewise.
29985         * tests/test-locale-c++.cc: Likewise.
29986         * tests/test-math-c++.cc: Likewise.
29987         * tests/test-pty-c++.cc: Likewise.
29988         * tests/test-search-c++.cc: Likewise.
29989         * tests/test-signal-c++.cc: Likewise.
29990         * tests/test-spawn-c++.cc: Likewise.
29991         * tests/test-stdio-c++.cc: Likewise.
29992         * tests/test-stdlib-c++.cc: Likewise.
29993         * tests/test-string-c++.cc: Likewise.
29994         * tests/test-sys_ioctl-c++.cc: Likewise.
29995         * tests/test-sys_select-c++.cc: Likewise.
29996         * tests/test-sys_socket-c++.cc: Likewise.
29997         * tests/test-sys_stat-c++.cc: Likewise.
29998         * tests/test-sys_time-c++.cc: Likewise.
29999         * tests/test-time-c++.cc: Likewise.
30000         * tests/test-unistd-c++.cc: Likewise.
30001         * tests/test-wchar-c++.cc: Likewise.
30002         * tests/uninorm/test-u8-nfc.c: Likewise.
30003         * tests/uninorm/test-u8-nfd.c: Likewise.
30004         * tests/uninorm/test-u8-nfkc.c: Likewise.
30005         * tests/uninorm/test-u8-nfkd.c: Likewise.
30006         * tests/uninorm/test-u16-nfc.c: Likewise.
30007         * tests/uninorm/test-u16-nfd.c: Likewise.
30008         * tests/uninorm/test-u16-nfkc.c: Likewise.
30009         * tests/uninorm/test-u16-nfkd.c: Likewise.
30010         * tests/uninorm/test-u32-nfc.c: Likewise.
30011         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30012         * tests/uninorm/test-u32-nfd.c: Likewise.
30013         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30014         * tests/uninorm/test-u32-nfkc.c: Likewise.
30015         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30016         * tests/uninorm/test-u32-nfkd.c: Likewise.
30017         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30018         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30019
30020 2010-03-27  Bruno Haible  <bruno@clisp.org>
30021
30022         Distinguish two kinds of module indicators.
30023         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30024         gl_MODULE_INDICATOR.
30025         (gl_MODULE_INDICATOR): New macro.
30026         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30027         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30028         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30029         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30030         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30031         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30032         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30033         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30034         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30035         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30036         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30037         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30039         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30040         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30042         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30043         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30044         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30045         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30046         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30047         * modules/cloexec (configure.ac): Likewise.
30048         * modules/getopt-gnu (configure.ac): Likewise.
30049         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30050         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30051         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30052         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30053
30054 2010-03-27  Bruno Haible  <bruno@clisp.org>
30055
30056         New module description field 'Comment'.
30057         * gnulib-tool: New option --extract-comment.
30058         (func_usage): Document it.
30059         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30060         (func_get_comment): New function.
30061         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30062
30063 2010-03-27  Bruno Haible  <bruno@clisp.org>
30064
30065         Addendum to 2010-02-07 commit.
30066         * gnulib-tool (func_usage): Document --extract-applicability option.
30067
30068 2010-03-27  Bruno Haible  <bruno@clisp.org>
30069
30070         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30071         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30072         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30073         rather than link errors.
30074
30075 2010-03-27  Bruno Haible  <bruno@clisp.org>
30076
30077         Avoid side effects from tests-related modules on the compilation of lib.
30078         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30079         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30080         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30081         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30082         macro.
30083         (func_import): Define a witness macro. Assign it a value that depends
30084         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30085         tests-related modules.
30086         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30087         Reported by Jim Meyering.
30088
30089 2010-03-27  Bruno Haible  <bruno@clisp.org>
30090
30091         Factorize common .m4 code.
30092         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30093         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30094         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30095         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30096         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30097         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30098         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30099         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30100         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30101         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30102         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30103         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30104         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30105         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30106         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30107         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30108         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30109         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30111         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30112         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30113         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30114         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30115         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30116         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30117         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30118         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30119         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30120         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30121         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30122         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30123         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30124
30125 2010-03-27  Bruno Haible  <bruno@clisp.org>
30126
30127         Fix a compilation error on Cygwin with g++ >= 4.3.
30128         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30129         if it is undefined or if we alias it to chmod.
30130         (lstat): Don't warn about the use of this function if it is undefined
30131         or if we alias it to stat.
30132         Reported by Simon Josefsson.
30133
30134 2010-03-27  Bruno Haible  <bruno@clisp.org>
30135
30136         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30137         * modules/getlogin (configure.ac): Update.
30138
30139         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30140         * modules/getlogin_r (configure.ac): Update.
30141
30142         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30144         * modules/inet_ntop (configure.ac): Update.
30145
30146         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30147         * modules/inet_pton (configure.ac): Update.
30148
30149         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30150         * modules/mbslen (configure.ac): Update.
30151
30152         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30153         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30154         * modules/forkpty (configure.ac): Update.
30155         * modules/openpty (configure.ac): Update.
30156
30157 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30158
30159         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30160         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30161
30162 2010-03-25  Eric Blake  <eblake@redhat.com>
30163
30164         maint: use pragma consistently across replacement headers
30165         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30166         * lib/dirent.in.h (system_header): Likewise.
30167         * lib/errno.in.h (system_header): Likewise.
30168         * lib/float.in.h (system_header): Likewise.
30169         * lib/getopt.in.h (system_header): Likewise.
30170         * lib/iconv.in.h (system_header): Likewise.
30171         * lib/inttypes.in.h (system_header): Likewise.
30172         * lib/langinfo.in.h (system_header): Likewise.
30173         * lib/locale.in.h (system_header): Likewise.
30174         * lib/math.in.h (system_header): Likewise.
30175         * lib/netdb.in.h (system_header): Likewise.
30176         * lib/netinet_in.in.h (system_header): Likewise.
30177         * lib/pty.in.h (system_header): Likewise.
30178         * lib/sched.in.h (system_header): Likewise.
30179         * lib/se-selinux.in.h (system_header): Likewise.
30180         * lib/search.in.h (system_header): Likewise.
30181         * lib/spawn.in.h (system_header): Likewise.
30182         * lib/stdarg.in.h (system_header): Likewise.
30183         * lib/stdint.in.h (system_header): Likewise.
30184         * lib/string.in.h (system_header): Likewise.
30185         * lib/strings.in.h (system_header): Likewise.
30186         * lib/sys_file.in.h (system_header): Likewise.
30187         * lib/sys_ioctl.in.h (system_header): Likewise.
30188         * lib/sys_socket.in.h (system_header): Likewise.
30189         * lib/sys_times.in.h (system_header): Likewise.
30190         * lib/sys_utsname.in.h (system_header): Likewise.
30191         * lib/sys_wait.in.h (system_header): Likewise.
30192         * lib/sysexits.in.h (system_header): Likewise.
30193         * lib/unistd.in.h (system_header): Likewise.
30194         * lib/wctype.in.h (system_header): Likewise.
30195
30196         arpa/inet: fix mingw compilation warning
30197         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30198         Reported by Matthew Bolte.
30199
30200 2010-03-25  Bruno Haible  <bruno@clisp.org>
30201
30202         Avoid collision between gnulib wrapper and libintl wrapper.
30203         * lib/printf.c (printf): Don't define if a printf wrapper is already
30204         defined in intl/printf.c.
30205         Reported by Michel Boaventura <michel@michelboaventura.com>.
30206
30207 2010-03-25  Bruno Haible  <bruno@clisp.org>
30208
30209         Use ANSI C.
30210         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30211
30212 2010-03-25  Bruno Haible  <bruno@clisp.org>
30213
30214         Minor formatting changes.
30215         * lib/acosl.c: Insert space before function argument list.
30216         * lib/argz.c: Likewise.
30217         * lib/asinl.c: Likewise.
30218         * lib/expl.c: Likewise.
30219         * lib/gen-uni-tables.c: Likewise.
30220         * lib/gettext.h: Likewise.
30221         * lib/glthread/lock.h: Likewise.
30222         * lib/tanl.c: Likewise.
30223         * lib/uniname/uniname.c: Likewise.
30224         * tests/test-idpriv-drop.c: Likewise.
30225         * tests/test-idpriv-droptemp.c: Likewise.
30226         * tests/test-lock.c: Likewise.
30227         * tests/test-tls.c: Likewise.
30228         * lib/argp-help.c: Insert space before function-like macro argument
30229         list.
30230         * lib/memcmp.c: Likewise.
30231         * tests/test-base64.c: Likewise.
30232         * lib/localename.c: Insert space before sizeof's argument list.
30233         * lib/safe-alloc.h: Likewise.
30234         * lib/file-set.h: Insert space before macro argument list.
30235         * tests/test-argp.c: Likewise.
30236         * lib/argp-namefrob.h: Insert space before function parameter list.
30237         * lib/getaddrinfo.c: Likewise.
30238         * lib/netdb.in.h: Likewise.
30239         * lib/parse-duration.h: Likewise.
30240         * lib/parse-duration.c: Likewise.
30241         * lib/poll.c: Likewise.
30242         * lib/select.c: Likewise.
30243         * lib/trim.h: Likewise.
30244         * tests/test-usleep.c: Likewise.
30245         * lib/ldexpl.c: Insert space before function parameter list and before
30246         function argument list.
30247         * lib/logl.c: Likewise.
30248         * lib/sqrtl.c: Likewise.
30249         * lib/trim.c: Likewise.
30250         * lib/cosl.c: Use GNU style indentation. Insert space before function
30251         argument list.
30252         * lib/sinl.c: Likewise.
30253         * lib/tsearch.c: Insert space after 'for'.
30254         Reported by Jim Meyering.
30255
30256 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30257
30258         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30259         config header before grepping, as it's not present before
30260         autoreconf/configure are run.  Reported by Simon Josefsson.
30261
30262 2010-03-23  Bruno Haible  <bruno@clisp.org>
30263
30264         pt_chown: Make it work with automake < 1.11.
30265         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30266         Reported by Simon Josefsson.
30267
30268 2010-03-23  Bruno Haible  <bruno@clisp.org>
30269
30270         pt_chown: Don't depend on GPLed modules.
30271         * lib/pt_chown.c: Don't include idpriv.h.
30272         (main): Don't drop privileges.
30273         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30274         Reported by Simon Josefsson.
30275
30276 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30277
30278         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30279         suggestions from karl@freefriends.org (Karl Berry).
30280
30281 2010-03-22  Eric Blake  <eblake@redhat.com>
30282
30283         gethostname: further tweaks
30284         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30285         are overriding gethostname.
30286         Suggested by Bruno Haible.
30287
30288 2010-03-21  Bruno Haible  <bruno@clisp.org>
30289
30290         Fix comments.
30291         * lib/forkpty.c (rpl_forkpty): Fix comment.
30292         * lib/openpty.c (rpl_openpty): Likewise.
30293         Reported by Eric Blake.
30294
30295 2010-03-22  Eric Blake  <eblake@redhat.com>
30296
30297         gethostname: fix build on mingw
30298         * lib/unistd.in.h (includes): Work around fact that mingw
30299         <winsock2.h> re-includes <unistd.h>, by avoiding any
30300         redeclarations if we are being included by <winsock2.h>.
30301         Reported by Matthias Bolte.
30302
30303 2010-03-21  Bruno Haible  <bruno@clisp.org>
30304
30305         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30306         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30307         modifications.
30308         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30309         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30310         provide the replacement.
30311         * modules/forkpty (Depends-on): Add openpty, login_tty.
30312         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30313         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30314         * doc/glibc-functions/forkpty.texi: More supported platforms.
30315         * config/srclist.txt: Add forkpty.c (commented).
30316
30317 2010-03-21  Bruno Haible  <bruno@clisp.org>
30318
30319         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30320         (Makefile.am): Verify that PTY_LIB is defined.
30321
30322         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30323
30324 2010-03-21  Bruno Haible  <bruno@clisp.org>
30325
30326         Tests for module 'login_tty'.
30327         * modules/login_tty-tests: New file.
30328         * tests/test-login_tty.c: New file.
30329
30330         New module 'login_tty'.
30331         * lib/login_tty.c: New file.
30332         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30333         * modules/login_tty: New file.
30334         * doc/glibc-functions/login_tty.texi: Mention the new module.
30335
30336 2010-03-21  Bruno Haible  <bruno@clisp.org>
30337
30338         login_tty: Documentation.
30339         * doc/glibc-functions/login_tty.texi: New file.
30340         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30341
30342 2010-03-21  Bruno Haible  <bruno@clisp.org>
30343
30344         pty: Consistent macro naming.
30345         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30346         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30347         * modules/pty (configure.ac): Update.
30348
30349 2010-03-21  Bruno Haible  <bruno@clisp.org>
30350
30351         Tests for openpty: Make stricter.
30352         * tests/test-openpty.c (main): Add test of canonical processing and
30353         erase.
30354         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30355
30356         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30357         * lib/openpty.c (openpty): New replacement function.
30358         * lib/pty.in.h: Include <termios.h>.
30359         (openpty): Update declaration. Add comments.
30360         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30361         is not declared, arrange to provide the replacement. Check for _getpty
30362         and posix_openpt.
30363         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30364         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30365         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30366         * modules/pty-tests (test_pty_c___LDADD): New variable.
30367         * doc/glibc-functions/openpty.texi: More supported platforms.
30368
30369 2010-03-21  Bruno Haible  <bruno@clisp.org>
30370
30371         setenv: Tweaks.
30372         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30373         the test program.
30374         * doc/posix-functions/setenv.texi: Update platforms list.
30375
30376 2010-03-21  Bruno Haible  <bruno@clisp.org>
30377
30378         New module 'unlockpt'.
30379         * lib/unlockpt.c: New file, from glibc with modifications.
30380         * m4/unlockpt.m4: New file.
30381         * modules/unlockpt: New file.
30382         * lib/stdlib.in.h (unlockpt): New declaration.
30383         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30384         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30385         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30386         HAVE_UNLOCKPT.
30387         * doc/posix-functions/unlockpt.texi: Mention the new module.
30388         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30389         * config/srclist.txt: Add unlockpt.c (commented).
30390
30391 2010-03-21  Jim Meyering  <meyering@redhat.com>
30392
30393         maint.mk: prohibit inclusion of "intprops.h" without use
30394         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30395
30396 2010-03-21  Bruno Haible  <bruno@clisp.org>
30397
30398         New module 'grantpt'.
30399         * lib/grantpt.c: New file, from glibc with modifications.
30400         * m4/grantpt.m4: New file.
30401         * modules/grantpt: New file.
30402         * lib/stdlib.in.h (grantpt): New declaration.
30403         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30404         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30405         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30406         HAVE_GRANTPT.
30407         * doc/posix-functions/grantpt.texi: Mention the new module.
30408         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30409         * config/srclist.txt: Add grantpt.c (commented).
30410
30411 2010-03-21  Bruno Haible  <bruno@clisp.org>
30412
30413         New module 'pt_chown'.
30414         * lib/pt_chown.c: New file, from glibc with modifications.
30415         * lib/pty-private.h: New file, from glibc with modifications.
30416         * modules/pt_chown: New file.
30417         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30418
30419 2010-03-21  Bruno Haible  <bruno@clisp.org>
30420
30421         Tests for module 'ptsname'.
30422         * modules/ptsname-tests: New file.
30423         * tests/test-ptsname.c: New file.
30424
30425         New module 'ptsname'.
30426         * lib/ptsname.c: New file, from glibc with modifications.
30427         * m4/ptsname.m4: New file.
30428         * modules/ptsname: New file.
30429         * lib/stdlib.in.h (ptsname): New declaration.
30430         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30431         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30432         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30433         HAVE_PTSNAME.
30434         * doc/posix-functions/ptsname.texi: Mention the new module.
30435         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30436         * config/srclist.txt: Add ptsname.c (commented).
30437
30438 2010-03-21  Bruno Haible  <bruno@clisp.org>
30439
30440         Tests for module 'ttyname_r'.
30441         * modules/ttyname_r-tests: New file.
30442         * tests/test-ttyname_r.c: New file.
30443
30444         New module 'ttyname_r'.
30445         * lib/ttyname_r.c: New file.
30446         * m4/ttyname_r.m4: New file.
30447         * modules/ttyname_r: New file.
30448         * lib/unistd.in.h (ttyname_r): New declaration.
30449         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30451         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30452         HAVE_TTYNAME_R.
30453         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30454         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30455
30456 2010-03-20  Bruno Haible  <bruno@clisp.org>
30457
30458         signal: Undefine macro definitions in C++ mode.
30459         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30460         sigfillset): Undefine macro definitions from the system header in C++
30461         mode.
30462         Reported by John W. Eaton <jwe@gnu.org>.
30463
30464 2010-03-20  Bruno Haible  <bruno@clisp.org>
30465
30466         Ensure no #include statements inside extern "C" { ... }.
30467         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30468         contain #include statements.
30469         * lib/time.in.h: Likewise.
30470
30471 2010-03-20  Bruno Haible  <bruno@clisp.org>
30472
30473         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30474         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30475         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30476         Reported by John W. Eaton <jwe@gnu.org>.
30477
30478 2010-03-20  Bruno Haible  <bruno@clisp.org>
30479
30480         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30481         Reported by Jim Meyering.
30482
30483 2010-03-20  Bruno Haible  <bruno@clisp.org>
30484
30485         pipe: Set errno upon failure.
30486         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30487         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30488         errno value in error message.
30489
30490 2010-03-20  Bruno Haible  <bruno@clisp.org>
30491             Jim Meyering  <meyering@redhat.com>
30492
30493         lchown: Avoid "unused variable" warning.
30494         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30495
30496 2010-03-20  Bruno Haible  <bruno@clisp.org>
30497
30498         Work around unlink() bug on MacOS X 10.5.6.
30499         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30500         attempting to unlink a parent directory.
30501         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30502         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30503         activate for the replacement function.
30504         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30505
30506 2010-03-20  Bruno Haible  <bruno@clisp.org>
30507
30508         Fix link errors on Solaris 8.
30509         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30510         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30511
30512 2010-03-19  Jim Meyering  <meyering@redhat.com>
30513
30514         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30515         The _LIBC implementation of build_range_exp correctly honors the
30516         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30517         However, the non-_LIBC implementation would ignore that syntax-bit
30518         flag and return REG_ERANGE unconditionally.
30519         This change makes it honor that flag.
30520         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30521         Make two pointer parameters "const".
30522         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30523         (parse_bracket_exp): Update caller.
30524
30525         regex.m4: correct the reversed range endpoint ([b-a]) test
30526         * m4/regex.m4: When requiring that [b-a] evoke failure,
30527         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30528         test pass once again for x86-based systems.
30529
30530 2010-03-19  Bruno Haible  <bruno@clisp.org>
30531
30532         scandir: Fix link error on Solaris 8.
30533         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30534         macros.
30535
30536 2010-03-19  Bruno Haible  <bruno@clisp.org>
30537
30538         getusershell: Fix documentation.
30539         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30540         module.
30541         * doc/glibc-functions/setusershell.texi: Likewise.
30542
30543         getusershell: Provide declaration, missing on Solaris 9.
30544         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30545         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30546         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30547         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30549         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30550         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30551         HAVE_GETUSERSHELL.
30552         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30553
30554 2010-03-19  Bruno Haible  <bruno@clisp.org>
30555
30556         wctype: Provide iswblank function.
30557         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30558         exists and is fine.
30559         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30560         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30561         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30562         * doc/posix-functions/iswblank.texi: Update.
30563
30564 2010-03-19  Bruno Haible  <bruno@clisp.org>
30565
30566         Tests of module 'pty' in C++ mode.
30567         * modules/pty-tests: New file.
30568         * tests/test-pty-c++.cc: New file.
30569         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30570
30571 2010-03-19  Eric Blake  <eblake@redhat.com>
30572
30573         logb: fix documentation
30574         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30575         1.5 declaration bug.
30576
30577         forkpty, openpty: prefer glibc's const-safe prototype
30578         * lib/forkpty.c (rpl_forkpty): New file.
30579         * lib/openpty.c (rpl_openpty): Likewise.
30580         * modules/forkpty (Files): Distribute it.
30581         * modules/openpty (Files): Likewise.
30582         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30583         check...
30584         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30585         replacement for for non-const BSD signature.
30586         * modules/pty (Makefile.am): Substitute witnesses.
30587         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30588         * tests/test-forkpty.c: Update signature check.
30589         * tests/test-openpty.c: Likewise.
30590         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30591         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30592
30593         forkpty, openpty: split functions into new modules
30594         * modules/pty (Makefile.am): Substitute new witnesses.
30595         (Libraries): Move library detection...
30596         * modules/forkpty: ...into new module.
30597         * modules/openpty: Another new module.
30598         * modules/pty-tests: Rename and split...
30599         * modules/forkpty-tests: ...to this...
30600         * modules/openpty-tests: ...and this.
30601         * tests/test-pty.c: Rename and split...
30602         * tests/test-forkpty.c: ...to this...
30603         * tests/test-openpty.c: ...and this.
30604         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30605         (gl_PTY): Split library searching...
30606         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30607         (gl_FORKPTY, gl_OPENPTY): New macros.
30608         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30609         * NEWS: Mention the split.
30610         * MODULES.html.sh (Misc): Document the modules.
30611         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30612         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30613
30614         pty: improve replacement header
30615         * lib/pty.in.h: New file.
30616         * modules/pty (Files): Ship it.
30617         (Makefile.am): Always build replacement.
30618         * m4/pty.m4: Rename...
30619         * m4/pty_h.m4: ...to this.
30620         (gl_PTY): Modernize setting of witness macros; update check of
30621         forkpty to take proper advantage of cache.
30622         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30623
30624         getopt: avoid compiler warning
30625         * lib/getopt.c (attribute_hidden): Remove unused macro.
30626
30627 2010-03-18  Bruno Haible  <bruno@clisp.org>
30628
30629         Fix link errors on Solaris 8.
30630         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30631         * modules/search-tests (test_search_c___LDADD): Likewise.
30632         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30633         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30634         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30635         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30636         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30637         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30638         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30639
30640 2010-03-18  Bruno Haible  <bruno@clisp.org>
30641
30642         Fix bug introduced on 2010-03-14.
30643         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30644         (gl_SPAWN_H): Require it.
30645         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30646         Reported by Simon Josefsson.
30647
30648 2010-03-18  Bruno Haible  <bruno@clisp.org>
30649
30650         Fix typo introduced on 2009-12-31.
30651         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30652         posix_spawn_file_actions_adddup2.
30653
30654 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30655         and Eric Blake  <eblake@redhat.com>
30656
30657         test-vc-list-files-git: make more robust
30658         * tests/test-vc-list-files-git.sh: Unset problematic environment
30659         variables.  Chain commands together.
30660
30661 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30662
30663         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30664         `AC_CHECK_DECL' invocation.
30665
30666 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30667
30668         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30669         appears before executable statements. Suggested by Petr Sumbera
30670         <Petr.Sumbera@Sun.COM>.
30671
30672 2010-03-14  Bruno Haible  <bruno@clisp.org>
30673
30674         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30675         portability problems. Instead use a simpler test.
30676         (main): Check that invalid arguments are rejected only on Linux.
30677
30678 2010-03-14  Bruno Haible  <bruno@clisp.org>
30679
30680         Fix bug introduced on 2009-12-31.
30681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30682         gl_PREREQ_SYS_H_WINSOCK2 always.
30683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30684         SYS_SOCKET_H variable.
30685         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30686         Update comments.
30687         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30688         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30689         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30690         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30691         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30692
30693 2010-03-14  Bruno Haible  <bruno@clisp.org>
30694
30695         Fix values returned by sinl, cosl.
30696         * lib/trigl.h: Add specification comments.
30697         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30698         that combines the values from the precomputed table with the values of
30699         the Chebyshev polynomials.
30700
30701 2010-03-14  Bruno Haible  <bruno@clisp.org>
30702
30703         Fix compilation error when modules 'posix_spawn[p]' are not used.
30704         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30705         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30706
30707 2010-03-14  Bruno Haible  <bruno@clisp.org>
30708
30709         Fix compilation error on mingw when module 'time_r' is not used.
30710         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30711         is 1.
30712         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30713         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30714         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30715         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30716
30717 2010-03-14  Bruno Haible  <bruno@clisp.org>
30718
30719         Fix compilation error with Sun C.
30720         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30721         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30722         instead of GCC specific ULONG_LONG_MAX.
30723         * lib/xstrtoll.c: Likewise.
30724         * lib/xstrtoull.c: Likewise.
30725
30726 2010-03-13  Bruno Haible  <bruno@clisp.org>
30727
30728         Allow the user to disable C++ code and tests.
30729         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30730         (gl_PROG_ANSI_CXX): Require it.
30731
30732 2010-03-13  Bruno Haible  <bruno@clisp.org>
30733
30734         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30735         cases.
30736
30737 2010-03-13  Bruno Haible  <bruno@clisp.org>
30738
30739         Test that gnulib does not break the standard C++ headers.
30740         * tests/test-locale-c++2.cc: New file.
30741         * modules/locale-tests (Files): Add it.
30742         (Makefile.am): Compile it for test-locale-c++.
30743         * tests/test-math-c++2.cc: New file.
30744         * modules/math-tests (Files): Add it.
30745         (Makefile.am): Compile it for test-math-c++.
30746         * tests/test-signal-c++2.cc: New file.
30747         * modules/signal-tests (Files): Add it.
30748         (Makefile.am): Compile it for test-signal-c++.
30749         * tests/test-stdio-c++2.cc: New file.
30750         * modules/stdio-tests (Files): Add it.
30751         (Makefile.am): Compile it for test-stdio-c++.
30752         * tests/test-stdlib-c++2.cc: New file.
30753         * modules/stdlib-tests (Files): Add it.
30754         (Makefile.am): Compile it for test-stdlib-c++.
30755         * tests/test-string-c++2.cc: New file.
30756         * modules/string-tests (Files): Add it.
30757         (Makefile.am): Compile it for test-string-c++.
30758         * tests/test-time-c++2.cc: New file.
30759         * modules/time-tests (Files): Add it.
30760         (Makefile.am): Compile it for test-time-c++.
30761         Reported by John W. Eaton <jwe@gnu.org>.
30762
30763 2010-03-13  Bruno Haible  <bruno@clisp.org>
30764
30765         * gnulib-tool (func_usage): Clarify which options are available for
30766         --create-testdir and --create-megatestdir.
30767
30768 2010-03-13  Bruno Haible  <bruno@clisp.org>
30769
30770         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30771         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30772         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30773         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30774         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30775         when appropriate.
30776         Reported by Jim Meyering.
30777
30778 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30779
30780         * gnulib-tool (func_import): Explain origin of code.
30781
30782 2010-03-12  Bruno Haible  <bruno@clisp.org>
30783
30784         Fix problem with automake's definition of CXXLINK.
30785         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30786         Reported by Simon Josefsson and Ludovic Courtès.
30787
30788 2010-03-12  Bruno Haible  <bruno@clisp.org>
30789
30790         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30791         stable releases.
30792
30793 2010-03-11  Bruno Haible  <bruno@clisp.org>
30794
30795         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30796         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30797         whether the system provides one variant or multiple variants of the
30798         function.
30799         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30800         C++ compilers.
30801         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30802         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30803         Reported by Jim Meyering.
30804
30805 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30806
30807         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30808
30809 2010-03-08  Bruno Haible  <bruno@clisp.org>
30810
30811         gnulib-tool: Add support for --libtool in --create-testdir.
30812         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30813         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30814
30815 2010-03-08  Eric Blake  <eblake@redhat.com>
30816
30817         gnulib-tool.texi: mention possibility of git submodule
30818         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30819         submodules.
30820         * doc/.gitignore: Ignore another generated file.
30821
30822 2010-03-08  Karl Berry  <karl@gnu.org>
30823
30824         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30825         of committing gnulib files while skipping others.
30826
30827 2010-03-07  Bruno Haible  <bruno@clisp.org>
30828
30829         Tests of module 'wctype' in C++ mode.
30830         * tests/test-wctype-c++.cc: New file.
30831         * modules/wctype-tests (Files): Add it and tests/signature.h.
30832         (Depends-on): Add ansi-c++-opt.
30833         (Makefile.am): Arrange to compile and run test-wctype-c++.
30834
30835         Tests of module 'wchar' in C++ mode.
30836         * tests/test-wchar-c++.cc: New file.
30837         * modules/wchar-tests (Files): Add it and tests/signature.h.
30838         (Depends-on): Add ansi-c++-opt.
30839         (Makefile.am): Arrange to compile and run test-wchar-c++.
30840         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30841         gl_MODULE_INDICATOR.
30842
30843         Tests of module 'unistd' in C++ mode.
30844         * tests/test-unistd-c++.cc: New file.
30845         * modules/unistd-tests (Files): Add it and tests/signature.h.
30846         (Depends-on): Add ansi-c++-opt.
30847         (Makefile.am): Arrange to compile and run test-unistd-c++.
30848         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
30849         gl_MODULE_INDICATOR.
30850
30851         Tests of module 'time' in C++ mode.
30852         * tests/test-time-c++.cc: New file.
30853         * modules/time-tests (Files): Add it and tests/signature.h.
30854         (Depends-on): Add ansi-c++-opt.
30855         (Makefile.am): Arrange to compile and run test-time-c++.
30856         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30857
30858         Tests of module 'sys_time' in C++ mode.
30859         * tests/test-sys_time-c++.cc: New file.
30860         * modules/sys_time-tests (Files): Add it and tests/signature.h.
30861         (Depends-on): Add ansi-c++-opt.
30862         (Makefile.am): Arrange to compile and run test-sys_time-c++.
30863         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
30864         gl_MODULE_INDICATOR.
30865
30866         Tests of module 'sys_stat' in C++ mode.
30867         * tests/test-sys_stat-c++.cc: New file.
30868         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
30869         (Depends-on): Add ansi-c++-opt.
30870         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
30871         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
30872         gl_MODULE_INDICATOR.
30873
30874         Tests of module 'sys_socket' in C++ mode.
30875         * tests/test-sys_socket-c++.cc: New file.
30876         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
30877         (Depends-on): Add ansi-c++-opt.
30878         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
30879         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
30880         gl_MODULE_INDICATOR.
30881
30882         Tests of module 'sys_select' in C++ mode.
30883         * tests/test-sys_select-c++.cc: New file.
30884         * modules/sys_select-tests (Files): Add it and tests/signature.h.
30885         (Depends-on): Add ansi-c++-opt.
30886         (Makefile.am): Arrange to compile and run test-sys_select-c++.
30887         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
30888         gl_MODULE_INDICATOR.
30889
30890         Tests of module 'sys_ioctl' in C++ mode.
30891         * tests/test-sys_ioctl-c++.cc: New file.
30892         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
30893         (Depends-on): Add ansi-c++-opt.
30894         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
30895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
30896         gl_MODULE_INDICATOR.
30897
30898         Tests of module 'string' in C++ mode.
30899         * tests/test-string-c++.cc: New file.
30900         * modules/string-tests (Files): Add it and tests/signature.h.
30901         (Depends-on): Add ansi-c++-opt.
30902         (Makefile.am): Arrange to compile and run test-string-c++.
30903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
30904         gl_MODULE_INDICATOR.
30905
30906         Tests of module 'stdlib' in C++ mode.
30907         * tests/test-stdlib-c++.cc: New file.
30908         * modules/stdlib-tests (Files): Add it and tests/signature.h.
30909         (Depends-on): Add ansi-c++-opt.
30910         (Makefile.am): Arrange to compile and run test-stdlib-c++.
30911         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
30912         gl_MODULE_INDICATOR.
30913
30914         Tests of module 'stdio' in C++ mode.
30915         * tests/test-stdio-c++.cc: New file.
30916         * modules/stdio-tests (Files): Add it and tests/signature.h.
30917         (Depends-on): Add ansi-c++-opt.
30918         (Makefile.am): Arrange to compile and run test-stdio-c++.
30919         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
30920         gl_MODULE_INDICATOR.
30921
30922         Tests of module 'spawn' in C++ mode.
30923         * tests/test-spawn-c++.cc: New file.
30924         * modules/spawn-tests (Files): Add it and tests/signature.h.
30925         (Depends-on): Add ansi-c++-opt.
30926         (Makefile.am): Arrange to compile and run test-spawn-c++.
30927         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
30928         gl_MODULE_INDICATOR.
30929
30930         Tests of module 'signal' in C++ mode.
30931         * tests/test-signal-c++.cc: New file.
30932         * modules/signal-tests (Files): Add it and tests/signature.h.
30933         (Depends-on): Add ansi-c++-opt.
30934         (Makefile.am): Arrange to compile and run test-signal-c++.
30935         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
30936         gl_MODULE_INDICATOR.
30937
30938         Tests of module 'search' in C++ mode.
30939         * tests/test-search-c++.cc: New file.
30940         * modules/search-tests (Files): Add it and tests/signature.h.
30941         (Depends-on): Add ansi-c++-opt.
30942         (Makefile.am): Arrange to compile and run test-search-c++.
30943         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
30944         gl_MODULE_INDICATOR.
30945
30946         Tests of module 'math' in C++ mode.
30947         * tests/test-math-c++.cc: New file.
30948         * modules/math-tests (Files): Add it and tests/signature.h.
30949         (Depends-on): Add ansi-c++-opt.
30950         (Makefile.am): Arrange to compile and run test-math-c++.
30951         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30952
30953         Tests of module 'locale' in C++ mode.
30954         * tests/test-locale-c++.cc: New file.
30955         * modules/locale-tests (Files): Add it and tests/signature.h.
30956         (Depends-on): Add ansi-c++-opt.
30957         (Makefile.am): Arrange to compile and run test-locale-c++.
30958         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
30959         gl_MODULE_INDICATOR.
30960
30961         Tests of module 'langinfo' in C++ mode.
30962         * tests/test-langinfo-c++.cc: New file.
30963         * modules/langinfo-tests (Files): Add it and tests/signature.h.
30964         (Depends-on): Add ansi-c++-opt.
30965         (Makefile.am): Arrange to compile and run test-langinfo-c++.
30966         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
30967         gl_MODULE_INDICATOR.
30968
30969         Tests of module 'iconv-h' in C++ mode.
30970         * tests/test-iconv-h-c++.cc: New file.
30971         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
30972         (Depends-on): Add ansi-c++-opt.
30973         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
30974
30975         Tests of module 'glob' in C++ mode.
30976         * tests/test-glob-c++.cc: New file.
30977         * modules/glob-tests (Files): Add it.
30978         (Depends-on): Add ansi-c++-opt.
30979         (Makefile.am): Arrange to compile and run test-glob-c++.
30980
30981         Tests of module 'fcntl-h' in C++ mode.
30982         * tests/test-fcntl-h-c++.cc: New file.
30983         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
30984         (Depends-on): Add ansi-c++-opt.
30985         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
30986         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
30987         gl_MODULE_INDICATOR.
30988
30989         Tests of module 'dirent' in C++ mode.
30990         * tests/test-dirent-c++.cc: New file.
30991         * modules/dirent-tests (Files): Add it and tests/signature.h.
30992         (Depends-on): Add ansi-c++-opt.
30993         (Makefile.am): Arrange to compile and run test-dirent-c++.
30994         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30995         gl_MODULE_INDICATOR.
30996
30997         New module 'ansi-c++-opt'.
30998         * modules/ansi-c++-opt: New file.
30999         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31000
31001         Document C++ namespace mode.
31002         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31003
31004         wctype: Avoid #define replacements in C++ mode.
31005         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31006         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31007         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31008         In C++, define a namespaced alias symbol.
31009         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31010         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31011         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31012         rule.
31013
31014         wchar: Avoid #define replacements in C++ mode.
31015         * lib/wchar.in.h: Include c++defs.h.
31016         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31017         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31018         symbol.
31019         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31020         * modules/wchar (Depends-on): Add c++defs.
31021         (Makefile.am): Update wchar.h rule.
31022
31023         unistd: Avoid #define replacements in C++ mode.
31024         * lib/unistd.in.h: Include c++defs.h.
31025         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31026         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31027         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31028         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31029         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31030         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31031         symbol.
31032         (environ): Update.
31033         * modules/unistd (Depends-on): Add c++defs.
31034         (Makefile.am): Update unistd.h rule.
31035
31036         time: Avoid #define replacements in C++ mode.
31037         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31038         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31039         define a namespaced alias symbol.
31040         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31041         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31042         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31043         * modules/time (Depends-on): Add c++defs, warn-on-use.
31044         (Makefile.am): Update time.h rule.
31045         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31046         * modules/nanosleep (configure.ac): Likewise.
31047         * modules/strptime (configure.ac): Likewise.
31048         * modules/timegm (configure.ac): Likewise.
31049
31050         sys_time: Avoid #define replacements in C++ mode.
31051         * lib/sys_time.in.h: Include c++defs.h.
31052         (gettimeofday): In C++, define a namespaced alias symbol.
31053         * modules/sys_time (Depends-on): Add c++defs.
31054         (Makefile.am): Update sys/time.h rule.
31055
31056         sys_stat: Avoid #define replacements in C++ mode.
31057         * lib/sys_stat.in.h: Include c++defs.h.
31058         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31059         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31060         namespaced alias symbol.
31061         In C++, define a namespaced alias symbol.
31062         * modules/sys_stat (Depends-on): Add c++defs.
31063         (Makefile.am): Update sys/stat.h rule.
31064
31065         sys_socket: Avoid #define replacements in C++ mode.
31066         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31067         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31068         definitions also when the system has a <sys/socket.h>.
31069         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31070         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31071         In C++, define a namespaced alias symbol.
31072         * modules/sys_socket (Depends-on): Add c++defs.
31073         (Makefile.am): Update sys/socket.h rule.
31074
31075         sys_select: Avoid #define replacements in C++ mode.
31076         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31077         definitions also when the system has a <sys/select.h>.
31078         (select): In C++, define a namespaced alias symbol.
31079         * modules/sys_select (Depends-on): Add c++defs.
31080         (Makefile.am): Update sys/select.h rule.
31081
31082         sys_ioctl: Avoid #define replacements in C++ mode.
31083         * lib/sys_ioctl.in.h: Include c++defs.h.
31084         (ioctl): In C++, define a namespaced alias symbol.
31085         * modules/sys_ioctl (Depends-on): Add c++defs.
31086         (Makefile.am): Update sys/ioctl.h rule.
31087
31088         string: Avoid #define replacements in C++ mode.
31089         * lib/string.in.h: Include c++defs.h.
31090         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31091         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31092         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31093         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31094         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31095         * modules/string (Depends-on): Add c++defs.
31096         (Makefile.am): Update string.h rule.
31097
31098         stdlib: Avoid #define replacements in C++ mode.
31099         * lib/stdlib.in.h: Include c++defs.h.
31100         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31101         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31102         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31103         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31104         symbol.
31105         * modules/stdlib (Depends-on): Add c++defs.
31106         (Makefile.am): Update stdlib.h rule.
31107
31108         stdio: Avoid #define replacements in C++ mode.
31109         * lib/stdio.in.h: Include c++defs.h.
31110         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31111         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31112         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31113         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31114         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31115         namespaced alias symbol.
31116         * modules/stdio (Depends-on): Add c++defs.
31117         (Makefile.am): Update stdio.h rule.
31118
31119         spawn: Avoid #define replacements in C++ mode.
31120         * lib/spawn.in.h: Include c++defs.h.
31121         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31122         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31123         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31124         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31125         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31126         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31127         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31128         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31129         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31130         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31131         In C++, define a namespaced alias symbol.
31132         * modules/spawn (Depends-on): Add c++defs.
31133         (Makefile.am): Update spawn.h rule.
31134
31135         signal: Avoid #define replacements in C++ mode.
31136         * lib/signal.in.h: Include c++defs.h.
31137         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31138         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31139         namespaced alias symbol.
31140         * modules/signal (Depends-on): Add c++defs.
31141         (Makefile.am): Update signal.h rule.
31142
31143         search: Avoid #define replacements in C++ mode.
31144         * lib/search.in.h: Include c++defs.h.
31145         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31146         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31147         symbol.
31148         * modules/search (Depends-on): Add c++defs.
31149         (Makefile.am): Update search.h rule.
31150
31151         math: Avoid #define replacements in C++ mode.
31152         * lib/math.in.h: Include c++defs.h.
31153         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31154         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31155         trunc, truncl): In C++, define a namespaced alias symbol.
31156         * modules/math (Depends-on): Add c++defs.
31157         (Makefile.am): Update math.h rule.
31158
31159         locale: Avoid #define replacements in C++ mode.
31160         * lib/locale.in.h: Include c++defs.h.
31161         (duplocale): In C++, define a namespaced alias symbol.
31162         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31163         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31164         * modules/locale (Depends-on): Add c++defs.
31165         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31166
31167         langinfo: Avoid #define replacements in C++ mode.
31168         * lib/langinfo.in.h: Include c++defs.h.
31169         (nl_langinfo): In C++, define a namespaced alias symbol.
31170         * modules/langinfo (Depends-on): Add c++defs.
31171         (Makefile.am): Update langinfo.h rule.
31172
31173         iconv-h: Avoid #define replacements in C++ mode.
31174         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31175         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31176         symbol.
31177         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31178         whenever iconv is present.
31179         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31180         (Makefile.am): Update iconv.h rule.
31181
31182         glob: Avoid #define replacements in C++ mode.
31183         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31184         (_gl_glob_errfunc_fn): New type.
31185         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31186         symbol.
31187         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31188         (Makefile.am): Update glob.h rule.
31189
31190         fcntl-h: Avoid #define replacements in C++ mode.
31191         * lib/fcntl.in.h: Include c++defs.h.
31192         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31193         * modules/fcntl-h (Depends-on): Add c++defs.
31194         (Makefile.am): Update fcntl.h rule.
31195
31196         dirent: Avoid #define replacements in C++ mode.
31197         * lib/dirent.in.h: Include c++defs.h.
31198         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31199         namespaced alias symbol.
31200         (dirfd): Update declaration.
31201         * modules/dirent (Depends-on): Add c++defs.
31202         (Makefile.am): Update dirent.h rule.
31203
31204         ctype: Make it usable in C++ code.
31205         * lib/ctype.in.h: Include c++defs.h.
31206         (isblank): Declare as extern "C".
31207         * modules/ctype (Depends-on): Add c++defs.
31208         (Makefile.am): Update ctype.h rule.
31209
31210         New module 'c++defs'.
31211         * modules/c++defs: New file.
31212         * build-aux/c++defs.h: New file.
31213         Reported by John W. Eaton <jwe@gnu.org>.
31214
31215 2010-03-07  Bruno Haible  <bruno@clisp.org>
31216
31217         logb: Provide missing declaration for Cygwin.
31218         * lib/math.in.h (logb): New declaration.
31219         * m4/logb.m4: New file.
31220         * modules/logb (Files): Add m4/logb.m4.
31221         (Depends-on): Add math.
31222         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31223         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31225         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31226         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31227
31228 2010-03-07  Bruno Haible  <bruno@clisp.org>
31229
31230         Fix test-cond link error.
31231         * tests/test-cond.c: Include <stdio.h>.
31232
31233 2010-03-07  Bruno Haible  <bruno@clisp.org>
31234
31235         Fix test-dirent-safer link error.
31236         * modules/dirent-safer-tests (Makefile.am): Define
31237         test_dirent_safer_LDADD.
31238
31239 2010-03-07  Bruno Haible  <bruno@clisp.org>
31240
31241         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31242         among default module list.
31243
31244 2010-03-07  Bruno Haible  <bruno@clisp.org>
31245
31246         Fix link error on platforms with GNU libiconv.
31247         * modules/unistr/u8-strcoll-tests (Makefile): Define
31248         test_u8_strcoll_LDADD.
31249         * modules/unistr/u16-strcoll-tests (Makefile): Define
31250         test_u16_strcoll_LDADD.
31251         * modules/unistr/u32-strcoll-tests (Makefile): Define
31252         test_u32_strcoll_LDADD.
31253
31254 2010-03-07  Bruno Haible  <bruno@clisp.org>
31255
31256         Use POSIX declarations for socket functions.
31257         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31258         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31259         rpl_sendto): Change declaration to match POSIX.
31260         * lib/connect.c (rpl_connect): Likewise.
31261         * lib/accept.c (rpl_accept): Likewise.
31262         * lib/bind.c (rpl_bind): Likewise.
31263         * lib/getpeername.c (rpl_getpeername): Likewise.
31264         * lib/getsockname.c (rpl_getsockname): Likewise.
31265         * lib/recv.c (rpl_recv): Likewise.
31266         * lib/send.c (rpl_send): Likewise.
31267         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31268         * lib/sendto.c (rpl_sendto): Likewise.
31269
31270 2010-03-06  Bruno Haible  <bruno@clisp.org>
31271
31272         Clarify access, euidaccess, faccessat.
31273         * doc/posix-functions/faccessat.texi: Mention security problem under
31274         "Other problems", not "Portability problems".
31275         * doc/posix-functions/access.texi: Likewise. Mention a related security
31276         problem.
31277         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31278         * lib/euidaccess.c: Add comments about platforms.
31279         * lib/unistd.in.h (access, euidaccess): Add warnings.
31280
31281 2010-03-07  Bruno Haible  <bruno@clisp.org>
31282
31283         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31284         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31285         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31286         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31287         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31288         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31289         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31290         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31291         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31293         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31294         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31295         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31296         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31297         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31298         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31299         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31300         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31301         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31302         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31303         Likewise.
31304         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31305         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31306         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31307         Likewise.
31308         * tests/test-spawn.c (main): Make it work when
31309         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31310
31311 2010-03-07  Bruno Haible  <bruno@clisp.org>
31312
31313         Fix incorrect Makefile.am generation in German locale.
31314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31315         Execute sed command with character range in C locale.
31316
31317 2010-03-06  Bruno Haible  <bruno@clisp.org>
31318
31319         Tests for module 'iconv-h'.
31320         * modules/iconv-h-tests: New file.
31321         * tests/test-iconv-h.c: New file.
31322
31323         New module 'iconv-h'.
31324         * modules/iconv-h: New file.
31325         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31326         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31327         (configure.ac): Remove gl_ICONV_H.
31328         (Makefile.am): Remove rule for iconv.h.
31329
31330 2010-03-06  Bruno Haible  <bruno@clisp.org>
31331
31332         More consistent naming of *.m4 files.
31333         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31334         * modules/wctype (Files): Update.
31335
31336         More consistent naming of *.m4 files.
31337         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31338         * modules/wchar (Files): Update.
31339
31340 2010-03-06  Jim Meyering  <meyering@redhat.com>
31341
31342         euidaccess: relax license to LGPLv2+
31343         * modules/euidaccess (License): Relax to LGPLv2+.
31344
31345 2010-03-06  Bruno Haible  <bruno@clisp.org>
31346
31347         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31348         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31349         (Makefile.am): Augment lib_SOURCES instead.
31350
31351 2010-03-04  Jim Meyering  <meyering@redhat.com>
31352
31353         utime: remove obsolete module
31354         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31355         unnecessary for years, and has been marked as obsolete for 10 months.
31356         * modules/utime: Remove file.
31357         * lib/utime.c: Remove file.
31358         * m4/utime.m4: Remove file.
31359         * m4/utimes-null.m4: Remove file.
31360         * doc/posix-functions/utime.texi (utime): Remove reference to
31361         the module.  Move the sole "fixed by gnulib" item into the
31362         "problems not fixed by Gnulib" list.
31363         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31364
31365 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31366
31367         * modules/exit (License): Relax license to LGPLv2+.
31368         (Status): Mark as obsolete.
31369         * NEWS: Mention deprecated 'exit' module.
31370         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31371         of now obsolete 'exit'.
31372
31373 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31374
31375         fts-lgpl: remove unused module
31376         * modules/fts-lgpl: Remove.
31377         * MODULES.html.sh (func_all_modules): Adjust.
31378         * check-module (find_included_lib_files): Adjust.
31379         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31380
31381 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31382
31383         copy-acl: enhance Solaris ACL error handling
31384         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31385         * lib/set-mode-acl.c (qset_acl): Likewise.
31386
31387 2010-03-02  Bruno Haible  <bruno@clisp.org>
31388
31389         spawn: Don't override the system defined values on FreeBSD 8.
31390         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31391         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31392         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31393         if HAVE_POSIX_SPAWN is 1.
31394         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31395
31396 2010-03-01  Bruno Haible  <bruno@clisp.org>
31397
31398         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31399         regarding Automake.
31400
31401 2010-02-25  Bruno Haible  <bruno@clisp.org>
31402
31403         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31404         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31405         setting, not afterwards.
31406         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31407
31408 2010-02-24  Eric Blake  <eblake@redhat.com>
31409
31410         bootstrap, git-version-gen: use timestamp
31411         * build-aux/git-version-gen (scriptversion): Force UTC.
31412         * build-aux/bootstrap (scriptversion): New variable.
31413
31414         bootstrap: allow older git
31415         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31416         older than 1.6.4.  Requested by the libvirt project.
31417
31418 2010-02-23  Eric Blake  <eblake@redhat.com>
31419
31420         warn-on-use: work with old autoconf
31421         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31422         AS_VAR semantics of autoconf 2.60.
31423         Reported by Bruno Haible.
31424
31425         bootstrap: improve some comments
31426         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31427         clarification comments.
31428
31429         gettimeofday: provide correct function
31430         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31431         when replacement is declared, otherwise provide gettimeofday.
31432         Reported by Michael Goffioul.
31433
31434 2010-02-23  Jim Meyering  <meyering@redhat.com>
31435
31436         lib-ignore: relax license to "unlimited", not LGPLv2+
31437         * modules/lib-ignore (License): Relax to "unlimited".
31438
31439 2010-02-23  Jim Meyering  <meyering@redhat.com>
31440
31441         lib-ignore: relax license to LGPLv2+
31442         * modules/lib-ignore (License): Relax to LGPLv2+.
31443
31444 2010-02-22  Eric Blake  <eblake@redhat.com>
31445
31446         lseek: avoid bash 3.2 broken pipe bug
31447         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31448         warning from bash 3.2.
31449         Reported by Ben Pfaff, with analysis from Bruno Haible.
31450
31451         bootstrap: support non-FSF copyright holder
31452         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31453         bootstrap.conf override of COPYRIGHT_HOLDER.
31454         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31455
31456         bootstrap: interoperate with gettext 0.14.1
31457         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31458
31459         bootstrap: allow for alternate submodule location
31460         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31461         hardcoding submodule location.
31462         (gnulib_mk): Allow direct use of Makefile.am.
31463
31464         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31465         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31466         rather than reconfiguring where the submodule points.
31467
31468         gettimeofday: restore support for platforms that lack function
31469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31470         replacement if function is missing.
31471         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31472         * modules/sys_time (Makefile.am): Substitute it.
31473         * lib/sys_time.in.h (gettimeofday): Check it.
31474         Reported by Michael Goffioul.
31475
31476 2010-02-21  Bruno Haible  <bruno@clisp.org>
31477
31478         * lib/stdio.in.h (obstack_printf): Fix typo.
31479
31480 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31481
31482         vc-list-files: use bzr ls's -R option
31483         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31484         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31485
31486 2010-02-21  Jim Meyering  <meyering@redhat.com>
31487
31488         init.sh: fix EXEEXT shims to work also for names like test-prog
31489         * tests/init.sh: Re-exec a better shell, when needed.
31490         If the current shell lacks support for posix $(...), an init.sh-using
31491         test will now try to find a shell that supports that.  If EXEEXT is
31492         nonempty, we also require support for hyphen-in-alias-name and shell
31493         substitutions like ${var#glob}.  Failure to find such a shell results
31494         in a skipped test.
31495
31496 2010-02-21  Bruno Haible  <bruno@clisp.org>
31497
31498         Really work around around "broken pipe" error message from bash 3.2.
31499         * gnulib-tool (func_reset_sigpipe): Remove function.
31500         (echo): In bash 3.2, define to a function that uses printf.
31501         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31502
31503 2010-02-20  Bruno Haible  <bruno@clisp.org>
31504
31505         Restore support for automake 1.9.6 with autoconf 2.61.
31506         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31507         Reported by James Youngman <jay@gnu.org>.
31508
31509 2010-02-20  Bruno Haible  <bruno@clisp.org>
31510
31511         Improve *printf warning condition.
31512         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31513         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31514         and the function is overridden due to SIGPIPE emulation.
31515
31516 2010-02-20  Bruno Haible  <bruno@clisp.org>
31517
31518         * lib/stdio.in.h: Tweak comments.
31519
31520 2010-02-19  Bruno Haible  <bruno@clisp.org>
31521
31522         Make it easier to find modules. New gnulib-tool option '--find'.
31523         * gnulib-tool: New option --find.
31524         (func_usage): Document it.
31525         (func_sanitize_modulelist): New function, extracted from
31526         func_all_modules.
31527         (func_all_modules): Invoke it.
31528         * doc/gnulib-tool.texi (Which modules?): New node.
31529
31530 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31531
31532         * lib/sys_select.in.h: Provide select replacement even if
31533         sys/select.h exists on a system, for Interix.
31534
31535 2010-02-18  Jim Meyering  <meyering@redhat.com>
31536
31537         init.sh: don't use $(...) just yet
31538         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31539         to accommodate e.g., Solaris' /bin/sh.
31540
31541 2010-02-17  Bruno Haible  <bruno@clisp.org>
31542
31543         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31544         Reported by Ludovic Courtès <ludo@gnu.org>.
31545
31546 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31547
31548         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31549         linking with -lintl.
31550
31551 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31552
31553         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31554         if not provided by the system's netdb.h.  Reported by
31555         ludo@gnu.org (Ludovic Courtès).
31556
31557 2010-02-15  Jim Meyering  <meyering@redhat.com>
31558
31559         init.sh: improve portability and efficiency
31560         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31561         "dummy" in a for loop.
31562         Use '!', not '^' to select the complement of a character set used
31563         in a "case" statement.
31564         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31565         Suggestions from Eric Blake.
31566
31567         init.sh: automatically accommodate programs with the .exe suffix
31568         Automatically arrange for an invocation of "prog" to execute the
31569         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31570         may use the simpler "prog", yet still work when built on a system
31571         that requires specifying the added suffix.
31572         Do this by constructing a function named "prog" that invokes
31573         "prog.exe" for each .exe file in selected directories.
31574         * tests/init.sh (find_exe_basenames_): New function.
31575         (create_exe_shim_functions_): New function.
31576         (path_prepend_): Use it.
31577
31578         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31579         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31580         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31581
31582 2010-02-14  Jim Meyering  <meyering@redhat.com>
31583
31584         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31585         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31586         (sc_prohibit_hash_pjw_without_use): New rule.
31587
31588         maint.mk: allow the default upload destination dir to be overridden
31589         * top/maint.mk (upload_dest_dir_): Define with a default that
31590         preserves the status quo.
31591         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31592         Reported by Peter Simons.
31593
31594         maint.mk: prohibit inclusion of "hash.h" without_use
31595         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31596
31597 2010-02-10  Jim Meyering  <meyering@redhat.com>
31598
31599         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31600         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31601
31602 2010-02-09  Eric Blake  <ebb9@byu.net>
31603         and Bruno Haible  <bruno@clisp.org>
31604
31605         obstack-printf-posix: ensure declaration
31606         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31607         extracted from gl_FUNC_OBSTACK_PRINTF.
31608         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31609         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31610         Likewise.
31611         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31612         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31613         0.
31614
31615 2010-02-08  Bruno Haible  <bruno@clisp.org>
31616
31617         gnulib-tool: Fix typo in 2010-02-07 commit.
31618         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31619         Reported by Eric Blake.
31620
31621 2010-02-07  Bruno Haible  <bruno@clisp.org>
31622
31623         gnulib-tool: Fix up caching patches.
31624         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31625         option --no-cache. Use associative arrays when supported by the shell.
31626         (sed_comments): New variable.
31627         (modcache): Renamed from do_cache.
31628         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31629         abbreviate unnecessarily.
31630         (have_associative): New variable.
31631         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31632         way also for ksh and zsh.
31633         (func_init_sed_convert_to_cache_statements): New function, extracted
31634         from func_cache_lookup_module. Add support for associative arrays.
31635         Don't set the c_MODULE_cached variable here. Ignore all lines before
31636         the first field header. Remove only the final newline, not all trailing
31637         newlines. Support empty fields correctly. Limit the use of 'eval' to
31638         assignments.
31639         (func_get_description, func_get_status, func_get_notice,
31640         func_get_applicability, func_get_filelist, func_get_dependencies,
31641         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31642         func_get_automake_snippet, func_get_include_directive,
31643         func_get_link_directive, func_get_license, func_get_maintainer):
31644         Update documentation. List the unoptimized code first. Add support for
31645         associative arrays. Limit the use of 'eval' to assignments.
31646         (func_get_applicability): Undo stylistic pessimisations.
31647         (func_get_automake_snippet, func_get_include_directive): Reduce code
31648         duplication.
31649         (func_modules_transitive_closure, func_modules_add_dummy,
31650         func_modules_notice, func_modules_to_filelist, func_add_file,
31651         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31652         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31653         func_create_testdir, func_create_megatestdir): Update documentation.
31654
31655 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31656
31657         * gnulib-tool (func_cache_lookup_module): Store the module name
31658         belonging to the cache variable; error out if two different
31659         module names map to the same cache variable name.
31660
31661 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31662
31663         gnulib-tool: Make caching optional.
31664         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31665         Update matching short versions of --no-changelog.
31666         (func_usage): Update.
31667         (sed_extract_cache_prog): Renamed from ...
31668         (sed_extract_prog): ... this; revert to old extraction script.
31669         (func_get_description, func_get_status)
31670         (func_get_notice, func_get_applicability, func_get_filelist)
31671         (func_get_dependencies, func_get_autoconf_early_snippet)
31672         (func_get_autoconf_snippet, func_get_automake_snippet)
31673         (func_get_include_directive, func_get_link_directive)
31674         (func_get_license, func_get_maintainer): If $do_cache is false,
31675         use old, non-caching extraction scripts.
31676         Suggestion by Bruno Haible.
31677
31678 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31679
31680         gnulib-tool: cache module metainformation.
31681         * gnulib-tool (sed_extract_prog): Match newline before each
31682         header, and rewrite header to a shell variable suffix.
31683         (func_cache_var, func_cache_lookup_module): New functions,
31684         to turn a module name into a cache variable prefix, and to
31685         look up and cache module metainformation.
31686         (func_get_description, func_get_status)
31687         (func_get_notice, func_get_applicability, func_get_filelist)
31688         (func_get_dependencies, func_get_autoconf_early_snippet)
31689         (func_get_autoconf_snippet, func_get_automake_snippet)
31690         (func_get_include_directive, func_get_link_directive)
31691         (func_get_license, func_get_maintainer): Use
31692         func_cache_lookup_module.
31693
31694 2010-02-07  Bruno Haible  <bruno@clisp.org>
31695
31696         fnctl: Fix missing dependency.
31697         * modules/fcntl (Depends-on): Add getdtablesize.
31698         Reported by John W. Eaton <jwe@gnu.org>.
31699
31700 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31701
31702         Argp: fix recognition of short alias options.
31703
31704         * lib/argp-parse.c (convert_options): Fix improper use of
31705         `|' between character values.
31706         * tests/test-argp.c (group1_option): New alias option
31707         --read (-r).
31708         (group1_parser): Special handling for 'r'.
31709         (test15): New test case.
31710         (test_fun): Add test15.
31711         * tests/test-argp-2.sh: Update expected --help and --usage
31712         outputs.
31713
31714 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31715
31716         * tests/test-argp.c: Fix indentation.
31717
31718 2010-02-04  Eric Blake  <ebb9@byu.net>
31719
31720         gettimeofday: expose type of second argument
31721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31722         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31723         * tests/test-gettimeofday.c: Use it to silence warning.
31724         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31725         the issue.
31726
31727 2010-02-03  Jim Meyering  <meyering@redhat.com>
31728
31729         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31730         * lib/regcomp.c (TYPE_SIGNED): Define.
31731         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31732
31733         regcomp.c: avoid a new -Wshadow warning
31734         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31735
31736 2010-02-01  Jim Meyering  <meyering@redhat.com>
31737
31738         removing useless parentheses in cpp #define directives
31739         For motivation, see commit c0221df4, "define STREQ(a,b)
31740         consistently, removing useless parentheses"
31741         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31742         * lib/mountlist.c (MNT_IGNORE): Likewise.
31743         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31744
31745 2010-02-01  Eric Blake  <ebb9@byu.net>
31746
31747         sys_time: use link-warning
31748         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31749         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31750         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31751         * modules/sys_time (Depends-on): Add warn-on-use.
31752         (Makefile.am): Always build replacement.
31753         (configure.ac): Update substitutions.
31754         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31755         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31756         bother with SYS_TIME_H.
31757         * modules/gettimeofday (configure.ac): Declare indicator.
31758         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31759         in use.
31760
31761         closein-tests: silence compiler warning
31762         * tests/test-closein.c (main): Ignore fread result.
31763         * modules/closein-tests (Depends-on): Add ignore-value.
31764
31765         tests: silence warning about system return
31766         * tests/test-areadlink-with-size.c (main): Ignore system result.
31767         * tests/test-areadlink.c (main): Likewise.
31768         * tests/test-areadlinkat-with-size.c (main): Likewise.
31769         * tests/test-areadlinkat.c (main): Likewise.
31770         * tests/test-canonicalize-lgpl.c (main): Likewise.
31771         * tests/test-canonicalize.c (main): Likewise.
31772         * tests/test-chown.c (main): Likewise.
31773         * tests/test-fchownat.c (main): Likewise.
31774         * tests/test-fdutimensat.c (main): Likewise.
31775         * tests/test-fstatat.c (main): Likewise.
31776         * tests/test-futimens.c (main): Likewise.
31777         * tests/test-lchown.c (main): Likewise.
31778         * tests/test-link.c (main): Likewise.
31779         * tests/test-linkat.c (main): Likewise.
31780         * tests/test-lstat.c (main): Likewise.
31781         * tests/test-mkdir.c (main): Likewise.
31782         * tests/test-mkdirat.c (main): Likewise.
31783         * tests/test-mkfifo.c (main): Likewise.
31784         * tests/test-mkfifoat.c (main): Likewise.
31785         * tests/test-mknod.c (main): Likewise.
31786         * tests/test-readlink.c (main): Likewise.
31787         * tests/test-remove.c (main): Likewise.
31788         * tests/test-rename.c (main): Likewise.
31789         * tests/test-renameat.c (main): Likewise.
31790         * tests/test-rmdir.c (main): Likewise.
31791         * tests/test-symlink.c (main): Likewise.
31792         * tests/test-symlinkat.c (main): Likewise.
31793         * tests/test-unlink.c (main): Likewise.
31794         * tests/test-unlinkat.c (main): Likewise.
31795         * tests/test-utimens.c (main): Likewise.
31796         * tests/test-utimensat.c (main): Likewise.
31797         * modules/areadlink-tests (Depends-on): Add ignore-value.
31798         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31799         * modules/areadlinkat-tests (Depends-on): Likewise.
31800         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31801         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31802         * modules/canonicalize-tests (Depends-on): Likewise.
31803         * modules/chown-tests (Depends-on): Likewise.
31804         * modules/fdutimensat-tests (Depends-on): Likewise.
31805         * modules/futimens-tests (Depends-on): Likewise.
31806         * modules/lchown-tests (Depends-on): Likewise.
31807         * modules/link-tests (Depends-on): Likewise.
31808         * modules/linkat-tests (Depends-on): Likewise.
31809         * modules/lstat-tests (Depends-on): Likewise.
31810         * modules/mkdir-tests (Depends-on): Likewise.
31811         * modules/mkfifo-tests (Depends-on): Likewise.
31812         * modules/mkfifoat-tests (Depends-on): Likewise.
31813         * modules/mknod-tests (Depends-on): Likewise.
31814         * modules/openat-tests (Depends-on): Likewise.
31815         * modules/readlink-tests (Depends-on): Likewise.
31816         * modules/remove-tests (Depends-on): Likewise.
31817         * modules/rename-tests (Depends-on): Likewise.
31818         * modules/renameat-tests (Depends-on): Likewise.
31819         * modules/rmdir-tests (Depends-on): Likewise.
31820         * modules/symlink-tests (Depends-on): Likewise.
31821         * modules/symlinkat-tests (Depends-on): Likewise.
31822         * modules/unlink-tests (Depends-on): Likewise.
31823         * modules/utimens-tests (Depends-on): Likewise.
31824         * modules/utimensat-tests (Depends-on): Likewise.
31825
31826 2010-01-31  Bruno Haible  <bruno@clisp.org>
31827
31828         Perform the same test for many <math.h> functions.
31829         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31830         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31831         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31832         of gl_MATHFUNC.
31833         * modules/acos (configure.ac): Likewise.
31834         * modules/asin (configure.ac): Likewise.
31835         * modules/atan (configure.ac): Likewise.
31836         * modules/atan2 (configure.ac): Likewise.
31837         * modules/cbrt (configure.ac): Likewise.
31838         * modules/copysign (configure.ac): Likewise.
31839         * modules/cos (configure.ac): Likewise.
31840         * modules/cosh (configure.ac): Likewise.
31841         * modules/erf (configure.ac): Likewise.
31842         * modules/erfc (configure.ac): Likewise.
31843         * modules/exp (configure.ac): Likewise.
31844         * modules/fmod (configure.ac): Likewise.
31845         * modules/hypot (configure.ac): Likewise.
31846         * modules/j0 (configure.ac): Likewise.
31847         * modules/j1 (configure.ac): Likewise.
31848         * modules/jn (configure.ac): Likewise.
31849         * modules/lgamma (configure.ac): Likewise.
31850         * modules/log (configure.ac): Likewise.
31851         * modules/log10 (configure.ac): Likewise.
31852         * modules/log1p (configure.ac): Likewise.
31853         * modules/pow (configure.ac): Likewise.
31854         * modules/remainder (configure.ac): Likewise.
31855         * modules/sin (configure.ac): Likewise.
31856         * modules/sinh (configure.ac): Likewise.
31857         * modules/tan (configure.ac): Likewise.
31858         * modules/tanh (configure.ac): Likewise.
31859         * modules/y0 (configure.ac): Likewise.
31860         * modules/y1 (configure.ac): Likewise.
31861         * modules/yn (configure.ac): Likewise.
31862         Suggested by Paolo Bonzini.
31863
31864 2010-01-31  Bruno Haible  <bruno@clisp.org>
31865
31866         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
31867
31868 2010-01-31  Bruno Haible  <bruno@clisp.org>
31869
31870         Work around getdelim() bug on FreeBSD 8.0.
31871         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
31872         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
31873         not work.
31874         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
31875         is 1.
31876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
31877         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
31878         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
31879         a non-zero size.
31880         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
31881
31882 2010-01-31  Bruno Haible  <bruno@clisp.org>
31883
31884         Work around getline() bug on FreeBSD 8.0.
31885         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
31886         and a non-zero size.
31887         * tests/test-getline.c (main): Likewise.
31888         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
31889         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
31890
31891 2010-01-28  Eric Blake  <ebb9@byu.net>
31892
31893         regex: fix build failure
31894         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
31895         platforms.
31896
31897 2010-01-28  Jim Meyering  <meyering@redhat.com>
31898
31899         regex: do not ignore memory allocation failure
31900         * lib/regex_internal.c (create_cd_newstate): Detect
31901         re_node_set_init_copy failure.   Extracted from glibc commit
31902         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31903
31904         regex: sync more white-space changes from libc
31905         * lib/regex_internal.c: White-space only changes.
31906         * lib/regexec.c: Likewise.
31907
31908         regex: add many uses of __attribute_warn_unused_result__
31909         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
31910         * lib/regexec.c: Likewise.
31911         Extracted from a messy glibc commit.
31912
31913         regcomp.c: spelling and merge-artifact from glibc
31914         * lib/regcomp.c: Merge remainder of glibc's
31915         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31916
31917         regcomp.c: sync white-space changes from glibc
31918         * lib/regcomp.c: Merge to accommodate white space
31919         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31920
31921         regcomp.c: do not ignore internal return values
31922         * lib/regcomp.c: Do not ignore internal return values.
31923         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
31924         but without its white-space changes and spelling fixes.
31925
31926         regex_internal.h: define __attribute_warn_unused_result__
31927         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
31928
31929         maint: add a syntax-check rule to check for vulnerable Makefile.in
31930         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
31931
31932 2010-01-27  Jim Meyering  <meyering@redhat.com>
31933
31934         ncftpput-ftp: clean up spaces
31935         * build-aux/ncftpput-ftp: Make Copyright line consistent.
31936         Remove trailing blanks.
31937
31938 2010-01-27  Simon Josefsson  <simon@josefsson.org>
31939
31940         * build-aux/git-version-gen: Fix copyright statement.
31941         * build-aux/gnupload: Likewise.
31942         * tests/test-arcfour.c: Likewise.
31943         * tests/test-arctwo.c: Likewise.
31944         * tests/test-count-one-bits.c: Likewise.
31945         * tests/test-crc.c: Likewise.
31946         * tests/test-des.c: Likewise.
31947         * tests/test-gc-arcfour.c: Likewise.
31948         * tests/test-gc-arctwo.c: Likewise.
31949         * tests/test-gc-des.c: Likewise.
31950         * tests/test-gc-hmac-md5.c: Likewise.
31951         * tests/test-gc-hmac-sha1.c: Likewise.
31952         * tests/test-gc-md2.c: Likewise.
31953         * tests/test-gc-md4.c: Likewise.
31954         * tests/test-gc-md5.c: Likewise.
31955         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31956         * tests/test-gc-rijndael.c: Likewise.
31957         * tests/test-gc-sha1.c: Likewise.
31958         * tests/test-gc.c: Likewise.
31959         * tests/test-gethostname.c: Likewise.
31960         * tests/test-gettimeofday.c: Likewise.
31961         * tests/test-hash.c: Likewise.
31962         * tests/test-hmac-md5.c: Likewise.
31963         * tests/test-hmac-sha1.c: Likewise.
31964         * tests/test-md2.c: Likewise.
31965         * tests/test-md4.c: Likewise.
31966         * tests/test-md5.c: Likewise.
31967         * tests/test-memchr.c: Likewise.
31968         * tests/test-memchr2.c: Likewise.
31969         * tests/test-memcmp.c: Likewise.
31970         * tests/test-memmem.c: Likewise.
31971         * tests/test-memrchr.c: Likewise.
31972         * tests/test-rawmemchr.c: Likewise.
31973         * tests/test-read-file.c: Likewise.
31974         * tests/test-rijndael.c: Likewise.
31975         * tests/test-sockets.c: Likewise.
31976         * tests/test-strchrnul.c: Likewise.
31977         * tests/test-strstr.c: Likewise.
31978         * tests/test-strtod.c: Likewise.
31979         * build-aux/ncftpput-ftp: Likewise.
31980
31981 2010-01-26  Eric Blake  <ebb9@byu.net>
31982
31983         ignore-value: update recommended header name
31984         * modules/ignore-value (Include): Only use <> for headers that
31985         exist in glibc.
31986
31987 2010-01-26  Jim Meyering  <meyering@redhat.com>
31988
31989         test-userspec.c: avoid compiler warnings
31990         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
31991         and "initialization discards qualifiers..." warnings.
31992         Put the first "uid" in its own scope, and make char* members "const".
31993
31994 2010-01-25  Bruno Haible  <bruno@clisp.org>
31995
31996         gnulib-tool: Make warning diagnostics consistent.
31997         * gnulib-tool (func_warning): New function.
31998         Use it everywhere where gnulib-tool produces output to stderr and it is
31999         not a fatal error.
32000
32001 2010-01-25  Bruno Haible  <bruno@clisp.org>
32002
32003         Fix test dependencies.
32004         * modules/xstrtol-tests (Depends-on): Add inttypes.
32005         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32006
32007 2010-01-25 Pádraig Brady <P@draigBrady.com>
32008
32009         syntax-check: detect incorrect boolean macro values in config.h
32010         * modules/maintainer-makefile (configure.ac): Parameterize the location
32011         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32012         The logic is from Eric Blake and the location indicated by Jim Meyering.
32013         Note the more natural CONFIG_HEADER name is prohibited by automake
32014         for backwards compatibility reasons.
32015         * top/maint.mk (sc_Wundef_boolean): New rule.
32016
32017 2010-01-25  Jim Meyering  <meyering@redhat.com>
32018
32019         bootstrap: detect MacOS 10.6's shasum, too
32020         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32021         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32022
32023 2010-01-23  Jim Meyering  <meyering@redhat.com>
32024
32025         xstrtoll: new module
32026         * modules/xstrtoll: New file.
32027         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32028         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32029         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32030         ./configure fails if you use this module and lack "long long".
32031         * modules/xstrtoll-tests: New module.
32032         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32033         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32034         new init.sh-based test framework.
32035
32036 2010-01-24  Bruno Haible  <bruno@clisp.org>
32037
32038         Tests for module 'yn'.
32039         * modules/yn-tests: New file.
32040         * tests/test-yn.c: New file.
32041
32042         Tests for module 'y1'.
32043         * modules/y1-tests: New file.
32044         * tests/test-y1.c: New file.
32045
32046         Tests for module 'y0'.
32047         * modules/y0-tests: New file.
32048         * tests/test-y0.c: New file.
32049
32050         Tests for module 'tanh'.
32051         * modules/tanh-tests: New file.
32052         * tests/test-tanh.c: New file.
32053
32054         Tests for module 'tan'.
32055         * modules/tan-tests: New file.
32056         * tests/test-tan.c: New file.
32057
32058         Tests for module 'sqrt'.
32059         * modules/sqrt-tests: New file.
32060         * tests/test-sqrt.c: New file.
32061
32062         Tests for module 'sinh'.
32063         * modules/sinh-tests: New file.
32064         * tests/test-sinh.c: New file.
32065
32066         Tests for module 'sin'.
32067         * modules/sin-tests: New file.
32068         * tests/test-sin.c: New file.
32069
32070         Tests for module 'rint'.
32071         * modules/rint-tests: New file.
32072         * tests/test-rint.c: New file.
32073
32074         Tests for module 'remainder'.
32075         * modules/remainder-tests: New file.
32076         * tests/test-remainder.c: New file.
32077
32078         Tests for module 'pow'.
32079         * modules/pow-tests: New file.
32080         * tests/test-pow.c: New file.
32081
32082         Tests for module 'nextafter'.
32083         * modules/nextafter-tests: New file.
32084         * tests/test-nextafter.c: New file.
32085
32086         Tests for module 'modf'.
32087         * modules/modf-tests: New file.
32088         * tests/test-modf.c: New file.
32089
32090         Tests for module 'logb'.
32091         * modules/logb-tests: New file.
32092         * tests/test-logb.c: New file.
32093
32094         Tests for module 'log1p'.
32095         * modules/log1p-tests: New file.
32096         * tests/test-log1p.c: New file.
32097
32098         Tests for module 'log10'.
32099         * modules/log10-tests: New file.
32100         * tests/test-log10.c: New file.
32101
32102         Tests for module 'log'.
32103         * modules/log-tests: New file.
32104         * tests/test-log.c: New file.
32105
32106         Tests for module 'lgamma'.
32107         * modules/lgamma-tests: New file.
32108         * tests/test-lgamma.c: New file.
32109
32110         Tests for module 'ldexp'.
32111         * modules/ldexp-tests: New file.
32112         * tests/test-ldexp.c: New file.
32113
32114         Tests for module 'jn'.
32115         * modules/jn-tests: New file.
32116         * tests/test-jn.c: New file.
32117
32118         Tests for module 'j1'.
32119         * modules/j1-tests: New file.
32120         * tests/test-j1.c: New file.
32121
32122         Tests for module 'j0'.
32123         * modules/j0-tests: New file.
32124         * tests/test-j0.c: New file.
32125
32126         Tests for module 'hypot'.
32127         * modules/hypot-tests: New file.
32128         * tests/test-hypot.c: New file.
32129
32130         Tests for module 'fmod'.
32131         * modules/fmod-tests: New file.
32132         * tests/test-fmod.c: New file.
32133
32134         Tests for module 'fabs'.
32135         * modules/fabs-tests: New file.
32136         * tests/test-fabs.c: New file.
32137
32138         Tests for module 'exp'.
32139         * modules/exp-tests: New file.
32140         * tests/test-exp.c: New file.
32141
32142         Tests for module 'erfc'.
32143         * modules/erfc-tests: New file.
32144         * tests/test-erfc.c: New file.
32145
32146         Tests for module 'erf'.
32147         * modules/erf-tests: New file.
32148         * tests/test-erf.c: New file.
32149
32150         Tests for module 'cosh'.
32151         * modules/cosh-tests: New file.
32152         * tests/test-cosh.c: New file.
32153
32154         Tests for module 'cos'.
32155         * modules/cos-tests: New file.
32156         * tests/test-cos.c: New file.
32157
32158         Tests for module 'copysign'.
32159         * modules/copysign-tests: New file.
32160         * tests/test-copysign.c: New file.
32161
32162         Tests for module 'cbrt'.
32163         * modules/cbrt-tests: New file.
32164         * tests/test-cbrt.c: New file.
32165
32166         Tests for module 'atan2'.
32167         * modules/atan2-tests: New file.
32168         * tests/test-atan2.c: New file.
32169
32170         Tests for module 'atan'.
32171         * modules/atan-tests: New file.
32172         * tests/test-atan.c: New file.
32173
32174         Tests for module 'asin'.
32175         * modules/asin-tests: New file.
32176         * tests/test-asin.c: New file.
32177
32178         Tests for module 'acos'.
32179         * modules/acos-tests: New file.
32180         * tests/test-acos.c: New file.
32181
32182 2010-01-24  Bruno Haible  <bruno@clisp.org>
32183
32184         Fix tests for common <math.h> functions.
32185         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32186         code snippet that references the function pointer, rather than merely
32187         calling the function. Substitute the FUNC_LIBM variable.
32188         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32189         * modules/acos (configure.ac): Likewise.
32190         * modules/asin (configure.ac): Likewise.
32191         * modules/atan (configure.ac): Likewise.
32192         * modules/atan2 (configure.ac): Likewise.
32193         * modules/cbrt (configure.ac): Likewise.
32194         * modules/copysign (configure.ac): Likewise.
32195         * modules/cos (configure.ac): Likewise.
32196         * modules/cosh (configure.ac): Likewise.
32197         * modules/erf (configure.ac): Likewise.
32198         * modules/erfc (configure.ac): Likewise.
32199         * modules/exp (configure.ac): Likewise.
32200         * modules/fabs (configure.ac): Likewise.
32201         * modules/fmod (configure.ac): Likewise.
32202         * modules/hypot (configure.ac): Likewise.
32203         * modules/j0 (configure.ac): Likewise.
32204         * modules/j1 (configure.ac): Likewise.
32205         * modules/jn (configure.ac): Likewise.
32206         * modules/ldexp (configure.ac): Likewise.
32207         * modules/lgamma (configure.ac): Likewise.
32208         * modules/log (configure.ac): Likewise.
32209         * modules/log10 (configure.ac): Likewise.
32210         * modules/log1p (configure.ac): Likewise.
32211         * modules/logb (configure.ac): Likewise.
32212         * modules/modf (configure.ac): Likewise.
32213         * modules/nextafter (configure.ac): Likewise.
32214         * modules/pow (configure.ac): Likewise.
32215         * modules/remainder (configure.ac): Likewise.
32216         * modules/rint (configure.ac): Likewise.
32217         * modules/sin (configure.ac): Likewise.
32218         * modules/sinh (configure.ac): Likewise.
32219         * modules/tan (configure.ac): Likewise.
32220         * modules/tanh (configure.ac): Likewise.
32221         * modules/y0 (configure.ac): Likewise.
32222         * modules/y1 (configure.ac): Likewise.
32223         * modules/yn (configure.ac): Likewise.
32224
32225 2010-01-24  Bruno Haible  <bruno@clisp.org>
32226
32227         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32228         * tests/test-acosl.c (x): New variable.
32229         (main): Store argument in x and fetch it from x.
32230         * tests/test-asinl.c (x): New variable.
32231         (main): Store argument in x and fetch it from x.
32232         * tests/test-atanl.c (x): New variable.
32233         (main): Store argument in x and fetch it from x.
32234         * tests/test-cosl.c (x): New variable.
32235         (main): Store argument in x and fetch it from x.
32236         * tests/test-expl.c (x): New variable.
32237         (main): Store argument in x and fetch it from x.
32238         * tests/test-logl.c (x): New variable.
32239         (main): Store argument in x and fetch it from x.
32240         * tests/test-sinl.c (x): New variable.
32241         (main): Store argument in x and fetch it from x.
32242         * tests/test-sqrtl.c (x): New variable.
32243         (main): Store argument in x and fetch it from x.
32244         * tests/test-tanl.c (x): New variable.
32245         (main): Store argument in x and fetch it from x.
32246
32247 2010-01-24  Bruno Haible  <bruno@clisp.org>
32248
32249         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32250         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32251         assignments to the initial TESTS_ENVIRONMENT.
32252         * doc/gnulib.texi (Unit test modules): Document it.
32253         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32254         TESTS_ENVIRONMENT.
32255         * modules/btowc-tests (Makefile.am): Likewise.
32256         * modules/c-stack-tests (Makefile.am): Likewise.
32257         * modules/c-strcase-tests (Makefile.am): Likewise.
32258         * modules/copy-file-tests (Makefile.am): Likewise.
32259         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32260         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32261         * modules/mbrtowc-tests (Makefile.am): Likewise.
32262         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32263         * modules/mbscasestr-tests (Makefile.am): Likewise.
32264         * modules/mbschr-tests (Makefile.am): Likewise.
32265         * modules/mbscspn-tests (Makefile.am): Likewise.
32266         * modules/mbsinit-tests (Makefile.am): Likewise.
32267         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32268         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32269         * modules/mbspbrk-tests (Makefile.am): Likewise.
32270         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32271         * modules/mbsrchr-tests (Makefile.am): Likewise.
32272         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32273         * modules/mbsspn-tests (Makefile.am): Likewise.
32274         * modules/mbsstr-tests (Makefile.am): Likewise.
32275         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32276         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32277         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32278         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32279         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32280         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32281         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32282         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32283         * modules/wcrtomb-tests (Makefile.am): Likewise.
32284         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32285         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32286         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32287         assignments from TESTS_ENVIRONMENT.
32288         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32289         augmentation.
32290         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32291         * modules/atexit-tests (Makefile.am): Likewise.
32292         * modules/binary-io-tests (Makefile.am): Likewise.
32293         * modules/closein-tests (Makefile.am): Likewise.
32294         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32295         * modules/exclude-tests (Makefile.am): Likewise.
32296         * modules/fflush-tests (Makefile.am): Likewise.
32297         * modules/fpending-tests (Makefile.am): Likewise.
32298         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32299         * modules/freadahead-tests (Makefile.am): Likewise.
32300         * modules/freadptr-tests (Makefile.am): Likewise.
32301         * modules/freadseek-tests (Makefile.am): Likewise.
32302         * modules/fseek-tests (Makefile.am): Likewise.
32303         * modules/fseeko-tests (Makefile.am): Likewise.
32304         * modules/ftell-tests (Makefile.am): Likewise.
32305         * modules/ftello-tests (Makefile.am): Likewise.
32306         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32307         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32308         * modules/lseek-tests (Makefile.am): Likewise.
32309         * modules/parse-duration-tests (Makefile.am): Likewise.
32310         * modules/perror-tests (Makefile.am): Likewise.
32311         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32312         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32313         * modules/pipe-tests (Makefile.am): Likewise.
32314         * modules/pread-tests (Makefile.am): Likewise.
32315         * modules/printf-posix-tests (Makefile.am): Likewise.
32316         * modules/select-tests (Makefile.am): Likewise.
32317         * modules/sigpipe-tests (Makefile.am): Likewise.
32318         * modules/tsearch-tests (Makefile.am): Likewise.
32319         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32320         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32321         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32322         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32323         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32324         * modules/version-etc-tests (Makefile.am): Likewise.
32325         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32326         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32327         * modules/xalloc-die-tests (Makefile.am): Likewise.
32328         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32329         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32330         * modules/xstrtol-tests (Makefile.am): Likewise.
32331         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32332         * modules/yesno-tests (Makefile.am): Likewise.
32333         Suggested by Jim Meyering.
32334
32335 2010-01-24  Bruno Haible  <bruno@clisp.org>
32336
32337         More documentation.
32338         * doc/gnulib.texi (Writing modules): New chapter.
32339         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32340         the new chapter.
32341
32342 2010-01-24  Jim Meyering  <meyering@redhat.com>
32343
32344         maint.mk: do not prepend "./" after filtering
32345         * top/maint.mk (_prepend_srcdir_prefix): New variable
32346         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32347         "./" when $(srcdir) is ".".
32348
32349         define STREQ(a,b) consistently, removing useless parentheses
32350         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32351         since the only risk is that "a" or "b" contains an unparenthesized
32352         comma, but if either did that, STREQ would have 3 or more arguments.
32353         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32354         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32355         * lib/hash-triple.c (STREQ): Likewise.
32356         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32357         * lib/getugroups.c (STREQ): Likewise.
32358
32359 2010-01-23  Jim Meyering  <meyering@redhat.com>
32360
32361         maint.mk: fix syntax-check in a non-srcdir build directory
32362         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32363         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32364
32365 2010-01-22  Jim Meyering  <meyering@redhat.com>
32366
32367         userspec: add unit tests
32368         * tests/test-userspec.c: New file.
32369         * modules/userspec-tests: Likewise.
32370
32371 2010-01-21  Jim Meyering  <meyering@redhat.com>
32372
32373         maint.mk: handle source file names containing "." robustly
32374         * top/maint.mk (_dot_escaped_srcdir): Define.
32375         (VC_LIST): Use it in LHS of sed substitution.
32376
32377 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32378
32379         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32380         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32381         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32382         from a non-srcdir build.
32383
32384 2010-01-20  Eric Blake  <ebb9@byu.net>
32385
32386         warn-on-use: use instead of link-warning
32387         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32388         * modules/unistd (Depends-on, Makefile.am): Likewise.
32389         * modules/arpa_inet (Depends-on): Replace link-warning with
32390         warn-on-use.
32391         (Makefile.am): Update rules accordingly.
32392         * modules/ctype (Depends-on, Makefile.am): Likewise.
32393         * modules/dirent (Depends-on, Makefile.am): Likewise.
32394         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32395         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32396         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32397         * modules/locale (Depends-on, Makefile.am): Likewise.
32398         * modules/math (Depends-on, Makefile.am): Likewise.
32399         * modules/search (Depends-on, Makefile.am): Likewise.
32400         * modules/signal (Depends-on, Makefile.am): Likewise.
32401         * modules/spawn (Depends-on, Makefile.am): Likewise.
32402         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32403         * modules/string (Depends-on, Makefile.am): Likewise.
32404         * modules/strings (Depends-on, Makefile.am): Likewise.
32405         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32406         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32407         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32408         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32409         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32410         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32411         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32412         * modules/wchar (Depends-on, Makefile.am): Likewise.
32413         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32414         should be poisoned.
32415         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32416         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32417         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32418         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32419         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32420         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32421         * m4/math_h.m4 (gl_MATH_H): Likewise.
32422         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32423         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32424         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32425         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32426         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32427         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32428         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32429         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32430         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32431         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32432         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32433         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32434         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32435         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32436         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32437         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32438         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32439         GL_LINK_WARNING.
32440         * lib/ctype.in.h: Likewise.
32441         * lib/dirent.in.h: Likewise.
32442         * lib/fcntl.in.h: Likewise.
32443         * lib/inttypes.in.h: Likewise.
32444         * lib/langinfo.in.h: Likewise.
32445         * lib/locale.in.h: Likewise.
32446         * lib/math.in.h: Likewise.
32447         * lib/search.in.h: Likewise.
32448         * lib/signal.in.h: Likewise.
32449         * lib/spawn.in.h: Likewise.
32450         * lib/stdio.in.h: Likewise.
32451         * lib/stdlib.in.h: Likewise.
32452         * lib/string.in.h: Likewise.
32453         * lib/strings.in.h: Likewise.
32454         * lib/sys_file.in.h: Likewise.
32455         * lib/sys_ioctl.in.h: Likewise.
32456         * lib/sys_select.in.h: Likewise.
32457         * lib/sys_socket.in.h: Likewise.
32458         * lib/sys_stat.in.h: Likewise.
32459         * lib/sys_times.in.h: Likewise.
32460         * lib/sys_utsname.in.h: Likewise.
32461         * lib/unistd.in.h: Likewise.
32462         * lib/wchar.in.h: Likewise.
32463
32464 2010-01-20  Bruno Haible  <bruno@clisp.org>
32465
32466         Avoid duplicate -lm.
32467         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32468         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32469         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32471         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32472         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32473         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32474         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32475         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32476         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32477         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32478         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32479         Reported by Paolo Bonzini.
32480
32481 2010-01-19  Bruno Haible  <bruno@clisp.org>
32482
32483         langinfo, nl_langinfo: Relicense under LGPLv2+.
32484         * modules/langinfo (License): Change to LGPLv2+.
32485         * modules/nl_langinfo (License): Likewise.
32486         Patch by David Lutterkort <lutter@redhat.com>.
32487
32488 2010-01-19  Bruno Haible  <bruno@clisp.org>
32489
32490         Avoid compilation error with cc on OSF/1 5.1.
32491         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32492         statement, not before.
32493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32494
32495 2010-01-18  Bruno Haible  <bruno@clisp.org>
32496
32497         Avoid a link error due to the __printf__ symbol.
32498         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32499         and 2.6.x.
32500         (__format__, __printf__): Remove definitions.
32501         * lib/argp-fmtstream.h: Likewise.
32502         * lib/argp.h: Likewise.
32503         * lib/error.h: Likewise.
32504         * lib/vasnprintf.h: Likewise.
32505         * lib/xprintf.h: Likewise.
32506         * lib/xvasprintf.h: Likewise.
32507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32508
32509 2010-01-18  Bruno Haible  <bruno@clisp.org>
32510
32511         Tests for module 'tanl'.
32512         * modules/tanl-tests: New file.
32513         * tests/test-tanl.c: New file.
32514
32515         Tests for module 'sqrtl'.
32516         * modules/sqrtl-tests: New file.
32517         * tests/test-sqrtl.c: New file.
32518
32519         Tests for module 'sinl'.
32520         * modules/sinl-tests: New file.
32521         * tests/test-sinl.c: New file.
32522
32523         Tests for module 'logl'.
32524         * modules/logl-tests: New file.
32525         * tests/test-logl.c: New file.
32526
32527         Tests for module 'expl'.
32528         * modules/expl-tests: New file.
32529         * tests/test-expl.c: New file.
32530
32531         Tests for module 'cosl'.
32532         * modules/cosl-tests: New file.
32533         * tests/test-cosl.c: New file.
32534
32535         Tests for module 'atanl'.
32536         * modules/atanl-tests: New file.
32537         * tests/test-atanl.c: New file.
32538
32539         Tests for module 'asinl'.
32540         * modules/asinl-tests: New file.
32541         * tests/test-asinl.c: New file.
32542
32543         Tests for module 'acosl'.
32544         * modules/acosl-tests: New file.
32545         * tests/test-acosl.c: New file.
32546
32547         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32548         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32549         tanl): Use the standard gnulib idiom.
32550         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32551         * lib/sinl.c: Likewise.
32552         * lib/tanl.c: Don't include trigl.c.
32553         (kernel_tanl): Make static.
32554         * lib/sincosl.c: Include trigl.h first.
32555         * lib/trigl.c: Likewise.
32556         * m4/acosl.m4: New file.
32557         * m4/asinl.m4: New file.
32558         * m4/atanl.m4: New file.
32559         * m4/cosl.m4: New file.
32560         * m4/expl.m4: New file.
32561         * m4/logl.m4: New file.
32562         * m4/sinl.m4: New file.
32563         * m4/sqrtl.m4: New file.
32564         * m4/tanl.m4: New file.
32565         * m4/mathl.m4: Remove file.
32566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32567         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32568         Don't initialize GNULIB_MATHL.
32569         * modules/acosl: New file.
32570         * modules/asinl: New file.
32571         * modules/atanl: New file.
32572         * modules/cosl: New file.
32573         * modules/expl: New file.
32574         * modules/logl: New file.
32575         * modules/sinl: New file.
32576         * modules/sqrtl: New file.
32577         * modules/tanl: New file.
32578         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32579         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32580         substitute GNULIB_MATHL.
32581         * modules/mathl: Rewritten.
32582         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32583         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32584         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32585         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32586         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32587         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32588         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32589         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32590         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32591
32592 2010-01-18  Bruno Haible  <bruno@clisp.org>
32593
32594         sqrt: Make gl_FUNC_SQRT requirable.
32595         * m4/sqrt.m4: New file.
32596         * modules/sqrt (Files): Add it.
32597         (configure.ac): Invoke gl_FUNC_SQRT.
32598
32599 2010-01-18  Bruno Haible  <bruno@clisp.org>
32600
32601         New modules for common <math.h> functions.
32602         * m4/mathfunc.m4: New file.
32603         * modules/acos: New file.
32604         * modules/asin: New file.
32605         * modules/atan: New file.
32606         * modules/atan2: New file.
32607         * modules/cbrt: New file.
32608         * modules/copysign: New file.
32609         * modules/cos: New file.
32610         * modules/cosh: New file.
32611         * modules/erf: New file.
32612         * modules/erfc: New file.
32613         * modules/exp: New file.
32614         * modules/fabs: New file.
32615         * modules/fmod: New file.
32616         * modules/hypot: New file.
32617         * modules/j0: New file.
32618         * modules/j1: New file.
32619         * modules/jn: New file.
32620         * modules/ldexp: New file.
32621         * modules/lgamma: New file.
32622         * modules/log: New file.
32623         * modules/log10: New file.
32624         * modules/log1p: New file.
32625         * modules/logb: New file.
32626         * modules/modf: New file.
32627         * modules/nextafter: New file.
32628         * modules/pow: New file.
32629         * modules/remainder: New file.
32630         * modules/rint: New file.
32631         * modules/sin: New file.
32632         * modules/sinh: New file.
32633         * modules/sqrt: New file.
32634         * modules/tan: New file.
32635         * modules/tanh: New file.
32636         * modules/y0: New file.
32637         * modules/y1: New file.
32638         * modules/yn: New file.
32639         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32640         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32641         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32642         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32643         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32644         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32645         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32646         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32647         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32648         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32649         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32650         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32651         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32652         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32653         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32654         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32655         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32656         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32657         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32658         * doc/posix-functions/log.texi: Mention the 'log' module.
32659         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32660         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32661         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32662         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32663         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32664         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32665         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32666         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32667         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32668         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32669         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32670         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32671         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32672         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32673         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32674         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32675
32676 2010-01-18  Jim Meyering  <meyering@redhat.com>
32677
32678         ignore-value: relax license to LGPLv2+
32679         * modules/ignore-value (License): Relax to LGPLv2+.
32680
32681         getdate: don't leak when TZ contains two or more '"'s
32682         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32683         double quote in TZ after the first one.
32684
32685         readtokens: do not leak internal token_lengths buffer
32686         * lib/readtokens.c (readtokens): Free the local, lengths,
32687         when the supplied "token_lengths" parameter is NULL.
32688
32689 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32690
32691         Fix a couple of missing LIBTHREAD link failures on AIX.
32692         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32693         $(LIBTHREAD).
32694         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32695
32696         Link test-poll against INET_PTON_LIB.
32697         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32698         for inet_pton on Solaris 10.
32699
32700 2010-01-17  Bruno Haible  <bruno@clisp.org>
32701
32702         unistdio/*-sprintf: Fix typo in module description.
32703         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32704         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32705         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32706         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32707         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32708         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32709         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32711
32712 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32713
32714         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32715         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32716         variables in shell case patterns, for AIX and HP-UX ksh.
32717
32718         Split large sed scripts, for HP-UX sed.
32719         * modules/stdio: Split sed scripts around 50 sed commands,
32720         to avoid HP-UX limit of 99 commands, in the near future.
32721         * modules/string: Likewise.
32722         * modules/unistd: Likewise.
32723
32724         gnulib-tool: avoid writing in the current directory.
32725         * gnulib-tool (func_emit_lib_Makefile_am)
32726         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32727         not in the current directory, so concurrent gnulib-tool
32728         instances do not interfere.
32729
32730 2010-01-16  Jim Meyering  <meyering@redhat.com>
32731
32732         doc: update users.txt
32733         * users.txt: Add grep.
32734         (diffutils, gzip): Update URLs.
32735
32736 2010-01-12  Bruno Haible  <bruno@clisp.org>
32737
32738         posix_spawn: Avoid test failure on Cygwin.
32739         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32740         characters.
32741         Reported by Simon Josefsson.
32742
32743 2010-01-12  Bruno Haible  <bruno@clisp.org>
32744
32745         * tests/test-cond.c (main): When skipping the test, show the reason.
32746
32747 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32748
32749         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32750
32751 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32752
32753         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32754         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32755
32756 2010-01-12  Eric Blake  <ebb9@byu.net>
32757
32758         build: guarantee AS_VAR_IF
32759         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32760         (gl_AS_VAR_IF): Move...
32761         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32762         Reported by Simon Josefsson.
32763
32764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32765
32766         * lib/stdio.in.h: Fix typo.
32767
32768 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32769
32770         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32771         libgpg-error.
32772
32773 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32774
32775         * tests/test-xalloc-die.sh: Use $EXEEXT.
32776
32777 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32778             Bruno Haible  <bruno@clisp.org>
32779
32780         getlogin, getlogin_r: Avoid test failure.
32781         * tests/test-getlogin.c: Include <stdio.h>.
32782         (main): Skip the test when the function fails because stdin is not a
32783         tty.
32784         * tests/test-getlogin_r.c: Include <stdio.h>.
32785         (main): Skip the test when the function fails because stdin is not a
32786         tty.
32787
32788 2010-01-11  Eric Blake  <ebb9@byu.net>
32789
32790         tests: avoid more large file warnings
32791         * tests/test-fflush.c: Avoid warning about ftell use.
32792         * tests/test-fseek.c: Avoid warning about fseek use.
32793
32794 2010-01-10  Bruno Haible  <bruno@clisp.org>
32795
32796         nproc: Work better on Linux when /proc and /sys are not mounted.
32797         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32798         as lower bound when, on glibc/Linux systems,
32799         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32800         Suggested by Pádraig Brady <P@draigbrady.com>.
32801         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32802
32803         nproc: Refactor.
32804         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32805         extracted from num_processors.
32806         (num_processors): Call it.
32807
32808 2010-01-11  Jim Meyering  <meyering@redhat.com>
32809
32810         utimecmp: avoid new warning from upcoming gcc-4.5.0
32811         * lib/utimecmp.c (BILLION): Define using #define rather than an
32812         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32813
32814 2010-01-11  Eric Blake  <ebb9@byu.net>
32815
32816         math: add portability warnings for classification macros
32817         * modules/math (Depends-on): Add warn-on-use.
32818         (Makefile.am): Provide new substitutions.
32819         * m4/math_h.m4 (gl_MATH_H): Require inline.
32820         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32821         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32822         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32823         implement warnings.
32824
32825         unistd: warn on use of environ without module
32826         * modules/unistd (Depends-on): Add warn-on-use.
32827         (Makefile.am): Provide new substitutions.
32828         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32829         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32830
32831         stdio: warn on suspicious uses
32832         * modules/stdio (Depends-on): Add warn-on-use.
32833         (Makefile.am): Provide new substitutions.
32834         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32835         fseeko.
32836         * lib/stdio.in.h (gets): Always warn on use.
32837         (fseek, ftell): Adjust when warnings are issued, and honor
32838         _GL_NO_LARGE_FILES as a way to silence the warning.
32839         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32840         any warning about large file offsets.
32841         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
32842         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
32843         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
32844         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
32845         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
32846         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
32847         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
32848         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
32849
32850         warn-on-use: new module
32851         * modules/warn-on-use: New file.
32852         * build-aux/warn-on-use.h: Likewise.
32853         * m4/warn-on-use.m4: Likewise.
32854         * MODULES.html.sh (Support for building): Mention it.
32855
32856 2010-01-10  Bruno Haible  <bruno@clisp.org>
32857
32858         Tests for module 'unistr/u32-strdup'.
32859         * modules/unistr/u32-strdup-tests: New file.
32860         * tests/unistr/test-u32-strdup.c: New file.
32861
32862         Tests for module 'unistr/u16-strdup'.
32863         * modules/unistr/u16-strdup-tests: New file.
32864         * tests/unistr/test-u16-strdup.c: New file.
32865
32866         Tests for module 'unistr/u8-strdup'.
32867         * modules/unistr/u8-strdup-tests: New file.
32868         * tests/unistr/test-u8-strdup.c: New file.
32869         * tests/unistr/test-strdup.h: New file.
32870
32871         Tests for module 'unistr/u32-strncmp'.
32872         * modules/unistr/u32-strncmp-tests: New file.
32873         * tests/unistr/test-u32-strncmp.c: New file.
32874
32875         Tests for module 'unistr/u16-strncmp'.
32876         * modules/unistr/u16-strncmp-tests: New file.
32877         * tests/unistr/test-u16-strncmp.c: New file.
32878
32879         Tests for module 'unistr/u8-strncmp'.
32880         * modules/unistr/u8-strncmp-tests: New file.
32881         * tests/unistr/test-u8-strncmp.c: New file.
32882         * tests/unistr/test-strncmp.h: New file.
32883
32884         Tests for module 'unistr/u32-strcoll'.
32885         * modules/unistr/u32-strcoll-tests: New file.
32886         * tests/unistr/test-u32-strcoll.c: New file.
32887
32888         Tests for module 'unistr/u16-strcoll'.
32889         * modules/unistr/u16-strcoll-tests: New file.
32890         * tests/unistr/test-u16-strcoll.c: New file.
32891
32892         Tests for module 'unistr/u8-strcoll'.
32893         * modules/unistr/u8-strcoll-tests: New file.
32894         * tests/unistr/test-u8-strcoll.c: New file.
32895
32896         Tests for module 'unistr/u32-strcmp'.
32897         * modules/unistr/u32-strcmp-tests: New file.
32898         * tests/unistr/test-u32-strcmp.c: New file.
32899         * tests/unistr/test-u32-strcmp.h: New file.
32900
32901         Tests for module 'unistr/u16-strcmp'.
32902         * modules/unistr/u16-strcmp-tests: New file.
32903         * tests/unistr/test-u16-strcmp.c: New file.
32904         * tests/unistr/test-u16-strcmp.h: New file.
32905
32906         Tests for module 'unistr/u8-strcmp'.
32907         * modules/unistr/u8-strcmp-tests: New file.
32908         * tests/unistr/test-u8-strcmp.c: New file.
32909         * tests/unistr/test-u8-strcmp.h: New file.
32910         * tests/unistr/test-strcmp.h: New file.
32911
32912         Tests for module 'unistr/u32-strncat'.
32913         * modules/unistr/u32-strncat-tests: New file.
32914         * tests/unistr/test-u32-strncat.c: New file.
32915
32916         Tests for module 'unistr/u16-strncat'.
32917         * modules/unistr/u16-strncat-tests: New file.
32918         * tests/unistr/test-u16-strncat.c: New file.
32919
32920         Tests for module 'unistr/u8-strncat'.
32921         * modules/unistr/u8-strncat-tests: New file.
32922         * tests/unistr/test-u8-strncat.c: New file.
32923         * tests/unistr/test-strncat.h: New file.
32924
32925         Tests for module 'unistr/u32-strcat'.
32926         * modules/unistr/u32-strcat-tests: New file.
32927         * tests/unistr/test-u32-strcat.c: New file.
32928
32929         Tests for module 'unistr/u16-strcat'.
32930         * modules/unistr/u16-strcat-tests: New file.
32931         * tests/unistr/test-u16-strcat.c: New file.
32932
32933         Tests for module 'unistr/u8-strcat'.
32934         * modules/unistr/u8-strcat-tests: New file.
32935         * tests/unistr/test-u8-strcat.c: New file.
32936         * tests/unistr/test-strcat.h: New file.
32937
32938         Tests for module 'unistr/u32-stpncpy'.
32939         * modules/unistr/u32-stpncpy-tests: New file.
32940         * tests/unistr/test-u32-stpncpy.c: New file.
32941
32942         Tests for module 'unistr/u16-stpncpy'.
32943         * modules/unistr/u16-stpncpy-tests: New file.
32944         * tests/unistr/test-u16-stpncpy.c: New file.
32945
32946         Tests for module 'unistr/u8-stpncpy'.
32947         * modules/unistr/u8-stpncpy-tests: New file.
32948         * tests/unistr/test-u8-stpncpy.c: New file.
32949         * tests/unistr/test-stpncpy.h: New file.
32950
32951         Tests for module 'unistr/u32-strncpy'.
32952         * modules/unistr/u32-strncpy-tests: New file.
32953         * tests/unistr/test-u32-strncpy.c: New file.
32954
32955         Tests for module 'unistr/u16-strncpy'.
32956         * modules/unistr/u16-strncpy-tests: New file.
32957         * tests/unistr/test-u16-strncpy.c: New file.
32958
32959         Tests for module 'unistr/u8-strncpy'.
32960         * modules/unistr/u8-strncpy-tests: New file.
32961         * tests/unistr/test-u8-strncpy.c: New file.
32962         * tests/unistr/test-strncpy.h: New file.
32963
32964         Tests for module 'unistr/u32-stpcpy'.
32965         * modules/unistr/u32-stpcpy-tests: New file.
32966         * tests/unistr/test-u32-stpcpy.c: New file.
32967
32968         Tests for module 'unistr/u16-stpcpy'.
32969         * modules/unistr/u16-stpcpy-tests: New file.
32970         * tests/unistr/test-u16-stpcpy.c: New file.
32971
32972         Tests for module 'unistr/u8-stpcpy'.
32973         * modules/unistr/u8-stpcpy-tests: New file.
32974         * tests/unistr/test-u8-stpcpy.c: New file.
32975         * tests/unistr/test-stpcpy.h: New file.
32976
32977         Tests for module 'unistr/u32-strcpy'.
32978         * modules/unistr/u32-strcpy-tests: New file.
32979         * tests/unistr/test-u32-strcpy.c: New file.
32980
32981         Tests for module 'unistr/u16-strcpy'.
32982         * modules/unistr/u16-strcpy-tests: New file.
32983         * tests/unistr/test-u16-strcpy.c: New file.
32984
32985         Tests for module 'unistr/u8-strcpy'.
32986         * modules/unistr/u8-strcpy-tests: New file.
32987         * tests/unistr/test-u8-strcpy.c: New file.
32988         * tests/unistr/test-strcpy.h: New file.
32989
32990         Tests for module 'unistr/u32-strnlen'.
32991         * modules/unistr/u32-strnlen-tests: New file.
32992         * tests/unistr/test-u32-strnlen.c: New file.
32993
32994         Tests for module 'unistr/u16-strnlen'.
32995         * modules/unistr/u16-strnlen-tests: New file.
32996         * tests/unistr/test-u16-strnlen.c: New file.
32997
32998         Tests for module 'unistr/u8-strnlen'.
32999         * modules/unistr/u8-strnlen-tests: New file.
33000         * tests/unistr/test-u8-strnlen.c: New file.
33001         * tests/unistr/test-strnlen.h: New file.
33002
33003         Tests for module 'unistr/u32-strlen'.
33004         * modules/unistr/u32-strlen-tests: New file.
33005         * tests/unistr/test-u32-strlen.c: New file.
33006
33007         Tests for module 'unistr/u16-strlen'.
33008         * modules/unistr/u16-strlen-tests: New file.
33009         * tests/unistr/test-u16-strlen.c: New file.
33010
33011         Tests for module 'unistr/u8-strlen'.
33012         * modules/unistr/u8-strlen-tests: New file.
33013         * tests/unistr/test-u8-strlen.c: New file.
33014
33015         Tests for module 'unistr/u32-prev'.
33016         * modules/unistr/u32-prev-tests: New file.
33017         * tests/unistr/test-u32-prev.c: New file.
33018
33019         Tests for module 'unistr/u16-prev'.
33020         * modules/unistr/u16-prev-tests: New file.
33021         * tests/unistr/test-u16-prev.c: New file.
33022
33023         Tests for module 'unistr/u8-prev'.
33024         * modules/unistr/u8-prev-tests: New file.
33025         * tests/unistr/test-u8-prev.c: New file.
33026
33027         Tests for module 'unistr/u32-next'.
33028         * modules/unistr/u32-next-tests: New file.
33029         * tests/unistr/test-u32-next.c: New file.
33030
33031         Tests for module 'unistr/u16-next'.
33032         * modules/unistr/u16-next-tests: New file.
33033         * tests/unistr/test-u16-next.c: New file.
33034
33035         Tests for module 'unistr/u8-next'.
33036         * modules/unistr/u8-next-tests: New file.
33037         * tests/unistr/test-u8-next.c: New file.
33038
33039         Tests for module 'unistr/u32-strmbtouc'.
33040         * modules/unistr/u32-strmbtouc-tests: New file.
33041         * tests/unistr/test-u32-strmbtouc.c: New file.
33042
33043         Tests for module 'unistr/u16-strmbtouc'.
33044         * modules/unistr/u16-strmbtouc-tests: New file.
33045         * tests/unistr/test-u16-strmbtouc.c: New file.
33046
33047         Tests for module 'unistr/u8-strmbtouc'.
33048         * modules/unistr/u8-strmbtouc-tests: New file.
33049         * tests/unistr/test-u8-strmbtouc.c: New file.
33050
33051         Tests for module 'unistr/u32-strmblen'.
33052         * modules/unistr/u32-strmblen-tests: New file.
33053         * tests/unistr/test-u32-strmblen.c: New file.
33054
33055         Tests for module 'unistr/u16-strmblen'.
33056         * modules/unistr/u16-strmblen-tests: New file.
33057         * tests/unistr/test-u16-strmblen.c: New file.
33058
33059         Tests for module 'unistr/u8-strmblen'.
33060         * modules/unistr/u8-strmblen-tests: New file.
33061         * tests/unistr/test-u8-strmblen.c: New file.
33062
33063         Tests for module 'unistr/u32-cpy-alloc'.
33064         * modules/unistr/u32-cpy-alloc-tests: New file.
33065         * tests/unistr/test-u32-cpy-alloc.c: New file.
33066
33067         Tests for module 'unistr/u16-cpy-alloc'.
33068         * modules/unistr/u16-cpy-alloc-tests: New file.
33069         * tests/unistr/test-u16-cpy-alloc.c: New file.
33070
33071         Tests for module 'unistr/u8-cpy-alloc'.
33072         * modules/unistr/u8-cpy-alloc-tests: New file.
33073         * tests/unistr/test-u8-cpy-alloc.c: New file.
33074         * tests/unistr/test-cpy-alloc.h: New file.
33075
33076         Tests for module 'unistr/u32-mbsnlen'.
33077         * modules/unistr/u32-mbsnlen-tests: New file.
33078         * tests/unistr/test-u32-mbsnlen.c: New file.
33079
33080         Tests for module 'unistr/u16-mbsnlen'.
33081         * modules/unistr/u16-mbsnlen-tests: New file.
33082         * tests/unistr/test-u16-mbsnlen.c: New file.
33083
33084         Tests for module 'unistr/u8-mbsnlen'.
33085         * modules/unistr/u8-mbsnlen-tests: New file.
33086         * tests/unistr/test-u8-mbsnlen.c: New file.
33087
33088         Tests for module 'unistr/u32-chr'.
33089         * modules/unistr/u32-chr-tests: New file.
33090         * tests/unistr/test-u32-chr.c: New file.
33091
33092         Tests for module 'unistr/u16-chr'.
33093         * modules/unistr/u16-chr-tests: New file.
33094         * tests/unistr/test-u16-chr.c: New file.
33095
33096         Tests for module 'unistr/u8-chr'.
33097         * modules/unistr/u8-chr-tests: New file.
33098         * tests/unistr/test-u8-chr.c: New file.
33099         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33100
33101         Tests for module 'unistr/u32-cmp2'.
33102         * modules/unistr/u32-cmp2-tests: New file.
33103         * tests/unistr/test-u32-cmp2.c: New file.
33104
33105         Tests for module 'unistr/u16-cmp2'.
33106         * modules/unistr/u16-cmp2-tests: New file.
33107         * tests/unistr/test-u16-cmp2.c: New file.
33108
33109         Tests for module 'unistr/u8-cmp2'.
33110         * modules/unistr/u8-cmp2-tests: New file.
33111         * tests/unistr/test-u8-cmp2.c: New file.
33112         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33113
33114         Tests for module 'unistr/u32-cmp'.
33115         * modules/unistr/u32-cmp-tests: New file.
33116         * tests/unistr/test-u32-cmp.c: New file.
33117
33118         Tests for module 'unistr/u16-cmp'.
33119         * modules/unistr/u16-cmp-tests: New file.
33120         * tests/unistr/test-u16-cmp.c: New file.
33121
33122         Tests for module 'unistr/u8-cmp'.
33123         * modules/unistr/u8-cmp-tests: New file.
33124         * tests/unistr/test-u8-cmp.c: New file.
33125         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33126
33127         Tests for module 'unistr/u32-set'.
33128         * modules/unistr/u32-set-tests: New file.
33129         * tests/unistr/test-u32-set.c: New file.
33130
33131         Tests for module 'unistr/u16-set'.
33132         * modules/unistr/u16-set-tests: New file.
33133         * tests/unistr/test-u16-set.c: New file.
33134
33135         Tests for module 'unistr/u8-set'.
33136         * modules/unistr/u8-set-tests: New file.
33137         * tests/unistr/test-u8-set.c: New file.
33138         * tests/unistr/test-set.h: New file.
33139
33140         Tests for module 'unistr/u32-move'.
33141         * modules/unistr/u32-move-tests: New file.
33142         * tests/unistr/test-u32-move.c: New file.
33143
33144         Tests for module 'unistr/u16-move'.
33145         * modules/unistr/u16-move-tests: New file.
33146         * tests/unistr/test-u16-move.c: New file.
33147
33148         Tests for module 'unistr/u8-move'.
33149         * modules/unistr/u8-move-tests: New file.
33150         * tests/unistr/test-u8-move.c: New file.
33151         * tests/unistr/test-move.h: New file.
33152
33153         Tests for module 'unistr/u32-cpy'.
33154         * modules/unistr/u32-cpy-tests: New file.
33155         * tests/unistr/test-u32-cpy.c: New file.
33156
33157         Tests for module 'unistr/u16-cpy'.
33158         * modules/unistr/u16-cpy-tests: New file.
33159         * tests/unistr/test-u16-cpy.c: New file.
33160
33161         Tests for module 'unistr/u8-cpy'.
33162         * modules/unistr/u8-cpy-tests: New file.
33163         * tests/unistr/test-u8-cpy.c: New file.
33164         * tests/unistr/test-cpy.h: New file.
33165
33166 2010-01-09  Bruno Haible  <bruno@clisp.org>
33167
33168         Tests for module 'unistr/u32-uctomb'.
33169         * modules/unistr/u32-uctomb-tests: New file.
33170         * tests/unistr/test-u32-uctomb.c: New file.
33171
33172         Tests for module 'unistr/u16-uctomb'.
33173         * modules/unistr/u16-uctomb-tests: New file.
33174         * tests/unistr/test-u16-uctomb.c: New file.
33175
33176         Tests for module 'unistr/u8-uctomb'.
33177         * modules/unistr/u8-uctomb-tests: New file.
33178         * tests/unistr/test-u8-uctomb.c: New file.
33179
33180         Tests for module 'unistr/u32-mbtoucr'.
33181         * modules/unistr/u32-mbtoucr-tests: New file.
33182         * tests/unistr/test-u32-mbtoucr.c: New file.
33183
33184         Tests for module 'unistr/u16-mbtoucr'.
33185         * modules/unistr/u16-mbtoucr-tests: New file.
33186         * tests/unistr/test-u16-mbtoucr.c: New file.
33187
33188         Tests for module 'unistr/u8-mbtoucr'.
33189         * modules/unistr/u8-mbtoucr-tests: New file.
33190         * tests/unistr/test-u8-mbtoucr.c: New file.
33191
33192         Tests for module 'unistr/u32-mbtouc'.
33193         * modules/unistr/u32-mbtouc-tests: New file.
33194         * tests/unistr/test-u32-mbtouc.c: New file.
33195
33196         Tests for module 'unistr/u16-mbtouc'.
33197         * modules/unistr/u16-mbtouc-tests: New file.
33198         * tests/unistr/test-u16-mbtouc.c: New file.
33199
33200         Tests for module 'unistr/u8-mbtouc'.
33201         * modules/unistr/u8-mbtouc-tests: New file.
33202         * tests/unistr/test-u8-mbtouc.c: New file.
33203
33204         Tests for module 'unistr/u32-mbtouc-unsafe'.
33205         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33206         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33207         * tests/unistr/test-u32-mbtouc.h: New file.
33208
33209         Tests for module 'unistr/u16-mbtouc-unsafe'.
33210         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33211         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33212         * tests/unistr/test-u16-mbtouc.h: New file.
33213
33214         Tests for module 'unistr/u8-mbtouc-unsafe'.
33215         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33216         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33217         * tests/unistr/test-u8-mbtouc.h: New file.
33218
33219         Tests for module 'unistr/u32-mblen'.
33220         * modules/unistr/u32-mblen-tests: New file.
33221         * tests/unistr/test-u32-mblen.c: New file.
33222
33223         Tests for module 'unistr/u16-mblen'.
33224         * modules/unistr/u16-mblen-tests: New file.
33225         * tests/unistr/test-u16-mblen.c: New file.
33226
33227         Tests for module 'unistr/u8-mblen'.
33228         * modules/unistr/u8-mblen-tests: New file.
33229         * tests/unistr/test-u8-mblen.c: New file.
33230
33231         Tests for module 'unistr/u32-to-u16'.
33232         * modules/unistr/u32-to-u16-tests: New file.
33233         * tests/unistr/test-u32-to-u16.c: New file.
33234
33235         Tests for module 'unistr/u32-to-u8'.
33236         * modules/unistr/u32-to-u8-tests: New file.
33237         * tests/unistr/test-u32-to-u8.c: New file.
33238
33239         Tests for module 'unistr/u16-to-u32'.
33240         * modules/unistr/u16-to-u32-tests: New file.
33241         * tests/unistr/test-u16-to-u32.c: New file.
33242
33243         Tests for module 'unistr/u16-to-u8'.
33244         * modules/unistr/u16-to-u8-tests: New file.
33245         * tests/unistr/test-u16-to-u8.c: New file.
33246
33247         Tests for module 'unistr/u8-to-u32'.
33248         * modules/unistr/u8-to-u32-tests: New file.
33249         * tests/unistr/test-u8-to-u32.c: New file.
33250
33251         Tests for module 'unistr/u8-to-u16'.
33252         * modules/unistr/u8-to-u16-tests: New file.
33253         * tests/unistr/test-u8-to-u16.c: New file.
33254
33255         Tests for module 'unistr/u32-check'.
33256         * modules/unistr/u32-check-tests: New file.
33257         * tests/unistr/test-u32-check.c: New file.
33258
33259         Tests for module 'unistr/u16-check'.
33260         * modules/unistr/u16-check-tests: New file.
33261         * tests/unistr/test-u16-check.c: New file.
33262
33263         Tests for module 'unistr/u8-check'.
33264         * modules/unistr/u8-check-tests: New file.
33265         * tests/unistr/test-u8-check.c: New file.
33266
33267         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33268         (category_equals): New function.
33269         (main): Add more tests.
33270         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33271
33272         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33273
33274 2010-01-10  Bruno Haible  <bruno@clisp.org>
33275
33276         unistr/u*-strcoll: Try harder to distinguish different strings.
33277         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33278         compare s1 and s2 to see if they are different.
33279
33280 2010-01-10  Bruno Haible  <bruno@clisp.org>
33281
33282         unistr/u*-stpncpy: Fix the return value.
33283         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33284         description of the return value consistent with stpncpy in glibc.
33285         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33286         written non-NUL unit.
33287
33288 2010-01-10  Bruno Haible  <bruno@clisp.org>
33289
33290         unistr/u*-next: Add missing dependencies.
33291         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33292         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33293         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33294
33295 2010-01-10  Bruno Haible  <bruno@clisp.org>
33296
33297         unistr/u8-mbsnlen: Fix return value for incomplete character.
33298         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33299         u8_mblen.
33300         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33301         Remove unistr/u8-mblen.
33302         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33303         u16_mblen.
33304         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33305         Remove unistr/u16-mblen.
33306
33307 2010-01-10  Bruno Haible  <bruno@clisp.org>
33308
33309         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33310         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33311         Reported by Brian Gough <bjg@gnu.org> and
33312         Chris Clayton <chris2553@googlemail.com> via
33313         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33314
33315 2010-01-09  Bruno Haible  <bruno@clisp.org>
33316
33317         unistr/u16-to-u32: Reject invalid input.
33318         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33319         u16_mbtouc.
33320         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33321         Remove unistr/u16-mbtouc.
33322
33323         unistr/u16-to-u8: Reject invalid input.
33324         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33325         u16_mbtouc.
33326         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33327         Remove unistr/u16-mbtouc.
33328
33329         unistr/u8-to-u32: Reject invalid input.
33330         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33331         u8_mbtouc.
33332         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33333         Remove unistr/u8-mbtouc.
33334
33335         unistr/u8-to-u16: Reject invalid input.
33336         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33337         u8_mbtouc.
33338         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33339         Remove unistr/u8-mbtouc.
33340
33341 2010-01-09  Bruno Haible  <bruno@clisp.org>
33342
33343         Tests for module 'getlogin'.
33344         * modules/getlogin-tests: New file.
33345         * tests/test-getlogin.c: New file.
33346
33347         New module 'getlogin'.
33348         * lib/unistd.in.h (getlogin): New declaration.
33349         * lib/getlogin.c: New file.
33350         * m4/getlogin.m4: New file.
33351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33352         HAVE_GETLOGIN.
33353         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33354         HAVE_GETLOGIN.
33355         * modules/getlogin: New file.
33356         * doc/posix-functions/getlogin.texi: Mention the new module.
33357         Reported by John W. Eaton <jwe@gnu.org>.
33358
33359 2010-01-09  Bruno Haible  <bruno@clisp.org>
33360
33361         getlogin_r: Support for native Windows.
33362         * lib/getlogin_r.c: Include <windows.h>
33363         (getlogin_r): Implement for native Windows.
33364         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33365         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33366         via John W. Eaton <jwe@gnu.org>.
33367
33368 2010-01-09  Bruno Haible  <bruno@clisp.org>
33369
33370         getlogin_r: Small fixes.
33371         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33372         succeeds.
33373         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33374         before testing whether getlogin_r is declared. No need to set
33375         HAVE_DECL_GETLOGIN_R to 1.
33376         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33377
33378 2010-01-09  Bruno Haible  <bruno@clisp.org>
33379
33380         * lib/unistd.in.h (getlogin_r): Add comment.
33381
33382 2010-01-09  Bruno Haible  <bruno@clisp.org>
33383
33384         Tests for module 'getlogin_r'.
33385         * modules/getlogin_r-tests: New file.
33386         * tests/test-getlogin_r.c: New file.
33387
33388 2010-01-09  Jim Meyering  <meyering@redhat.com>
33389
33390         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33391         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33392         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33393
33394 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33395
33396         * lib/dup2.c (rpl_dup2): Improve comment.
33397
33398 2010-01-08  Eric Blake  <ebb9@byu.net>
33399
33400         maint.mk: allow packages to add makefile @@ exceptions
33401         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33402         (sc_makefile_check): Rename...
33403         (sc_makefile_at_at_check): ...to this, and use hook.
33404
33405         dup2: work around mingw bug
33406         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33407         Reported by Simon Josefsson.
33408
33409 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33410
33411         glob: Fix C++ compilation.
33412         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33413         C++.
33414
33415 2010-01-07  Bruno Haible  <bruno@clisp.org>
33416
33417         Fix indentation of wctype.in.h, broken since 2007-01-06.
33418         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33419
33420 2010-01-07  Bruno Haible  <bruno@clisp.org>
33421
33422         mbslen: Avoid collision with system function.
33423         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33424         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33425         * m4/mbslen.m4: New file.
33426         * modules/mbslen (Files): Add it.
33427         (configure.ac): Invoke gl_MBSLEN.
33428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33429         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33430         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33431         via Ian Beckwith <ianb@erislabs.net>.
33432
33433 2010-01-07  Bruno Haible  <bruno@clisp.org>
33434
33435         dirent: Document the last fix.
33436         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33437
33438 2010-01-07  Bruno Haible  <bruno@clisp.org>
33439
33440         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33441         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33442         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33443         va_list are defined.
33444         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33445         Reported by Eric Blake.
33446
33447 2010-01-07  Bruno Haible  <bruno@clisp.org>
33448
33449         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33450         * modules/xlist (Depends-on): Add 'list',
33451         * modules/xoset (Depends-on): Add 'oset'.
33452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33453
33454 2010-01-07  Bruno Haible  <bruno@clisp.org>
33455
33456         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33457         * doc/posix-functions/strncasecmp.texi: Likewise.
33458
33459 2010-01-07  Bruno Haible  <bruno@clisp.org>
33460
33461         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33462
33463 2010-01-07  John W. Eaton  <jwe@octave.org>
33464
33465         wctype: allow C++ use
33466         * lib/wctype.in.h: Add extern "C" block for C++.
33467
33468 2010-01-06  Eric Blake  <ebb9@byu.net>
33469
33470         maint.mk: detect incorrect GFDL usage
33471         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33472
33473 2010-01-06  Jim Meyering  <meyering@redhat.com>
33474         and Eric Blake  <ebb9@byu.net>
33475
33476         maint.mk: ignore multi-line copyright in NEWS
33477         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33478
33479 2010-01-06  Eric Blake  <ebb9@byu.net>
33480
33481         select: add missing dependency
33482         * modules/select-tests (Depends-on): Move sockets dependency...
33483         * modules/select (Depends-on): ...here.
33484         Reported by Ian Beckwith.
33485
33486         doc: regenerate INSTALL
33487         * doc/INSTALL: Reflect recent autoconf update.
33488         * doc/INSTALL.ISO: Likewise.
33489         * doc/INSTALL.UTF-8: Likewise.
33490
33491         pread: fix compilation on glibc
33492         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33493         Reported by Ralf Wildenhues.
33494
33495         dirent: fix test failure
33496         * lib/dirent.in.h (includes): Guarantee ino_t.
33497         Reported by Ralf Wildenhues.
33498
33499 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33500
33501         linkat, renameat: avoid bad free
33502         * lib/at-func2.c (at_func2): Fix typo.
33503         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33504
33505 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33506
33507         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33508         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33509         to avoid failure of symlink test later.
33510
33511 2010-01-06  Eric Blake  <ebb9@byu.net>
33512
33513         stdio, unistd: guarantee ssize_t
33514         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33515         2008 are exposed when needed.
33516         * lib/stdio.in.h (includes): Likewise.
33517         Reported by Ralf Wildenhues.
33518
33519 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33520
33521         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33522         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33523         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33524
33525 2010-01-06  Jim Meyering  <meyering@redhat.com>
33526
33527         readtokens: this module *does* require xalloc.h
33528         It uses only functions that were omitted by the old syntax-check rule.
33529         * lib/readtokens.c: Include "xalloc.h" once again.
33530         * modules/readtokens (Depends-on): Add xalloc.
33531         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33532
33533 2010-01-05  Eric Blake  <ebb9@byu.net>
33534
33535         maint: support 'make announcement' from a VPATH build
33536         * top/maint.mk (announcement): Look for correct NEWS file.
33537
33538 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33539
33540         utimens (fdutimens): ignore a negative FD, per contract
33541         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33542         when we have a valid file descriptor.  Otherwise, using a brand
33543         new glibc (with just-patched futimens that now fails with EBADF)
33544         would cause this function to fail with ENOSYS.
33545         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33546         See also http://bugzilla.redhat.com/552320.
33547
33548 2010-01-05  Eric Blake  <ebb9@byu.net>
33549
33550         strcase: document what it provides
33551         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33552         gnulib module.
33553         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33554         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33555
33556 2010-01-05  Jim Meyering  <meyering@redhat.com>
33557
33558         maint: remove useless inclusions of "xalloc.h"
33559         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33560         * lib/readtokens.c: Likewise.
33561         * lib/same.c: Likewise.
33562         * modules/getloadavg (Depends-on): Remove xalloc.
33563         * modules/readtokens: Likewise.
33564         * modules/same: Likewise.
33565
33566         maint.mk: include 4 more function names in alloca.h-checking regexp
33567         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33568         regexp.  Before, we would give a false-positive (saying alloca.h
33569         is included unnecessarily) when the only uses involved omitted symbols.
33570
33571         xalloc.h: use consistent formatting
33572         * lib/xalloc.h: Move declarations to start in the first column.
33573
33574 2010-01-05  Eric Blake  <ebb9@byu.net>
33575
33576         mkdir: avoid xalloc
33577         * lib/mkdir.c (includes): Drop unused header.
33578         Reported by John W. Eaton.
33579
33580 2010-01-04  Jim Meyering  <meyering@redhat.com>
33581
33582         nl_langinfo: avoid configure-time syntax error
33583         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33584         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33585         the empty string.  Don't let that provoke a shell syntax error.
33586
33587         regcomp, regexec, fnmatch: avoid array bounds read error
33588         * lib/regcomp.c (build_equiv_class): From glibc:
33589         Use only the low 24 bits of a findidx return value as an index
33590         into the weights array.  Patch by Ulrich Drepper:
33591         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33592         * lib/regexec.c (check_node_accept_bytes): Likewise.
33593         * lib/fnmatch_loop.c (FCT): Likewise.
33594
33595         regcomp: skip collseq lookup when there are no rules
33596         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33597         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33598
33599         regcomp: recognize ill-formed { } expressions
33600         * lib/regcomp.c (parse_dup_op): From glibc:
33601         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33602
33603         regcomp: fix typo in comment
33604         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33605         s/satisfy/satisfies/.
33606
33607         regcomp: sync from glibc: remove dead store
33608         * lib/regcomp.c (duplicate_node_closure): Remove useless
33609         search_duplicated_node call and dead store.
33610
33611         regcomp: sync from glibc; always use nl_langinfo
33612         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33613         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33614         * modules/regex (Depends-on): Add nl_langinfo.
33615
33616 2010-01-04  Eric Blake  <ebb9@byu.net>
33617
33618         fdopendir: fix configure test
33619         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33620
33621 2010-01-01  Bruno Haible  <bruno@clisp.org>
33622
33623         wchar: Remove unused configure check.
33624         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33625
33626 2010-01-01  Eric Blake  <ebb9@byu.net>
33627
33628         headers: make check of system header explicit
33629         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33630         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33631         ourselves.
33632         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33635         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33636         internals.
33637         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33638         missing.
33639         Suggested by Bruno Haible.
33640
33641 2010-01-01  Jim Meyering  <meyering@redhat.com>
33642
33643         ChangeLog: tweak to eliminate unnecessary copyright line
33644         * ChangeLog: Remove a copyright line that was mistakenly updated
33645         by today's update-copyright run.  Reported by Eric Blake.
33646
33647         test-update-copyright: don't let envvar setting cause test failure
33648         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33649
33650 2010-01-01  Bruno Haible  <bruno@clisp.org>
33651
33652         localename: Avoid gcc warning.
33653         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33654         function if it is not used.
33655
33656 2010-01-01  Jim Meyering  <meyering@redhat.com>
33657
33658         update nearly all FSF copyright year lists to include 2010
33659         Use the same procedure as for 2009, outlined in
33660         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33661
33662         version-etc: set COPYRIGHT_YEAR to 2010
33663         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33664
33665 2009-12-31  Eric Blake  <ebb9@byu.net>
33666
33667         doc: correct availability of cygwin 1.5.x getopt
33668         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33669         variables.
33670         * doc/posix-functions/opterr.texi (opterr): Likewise.
33671         * doc/posix-functions/optind.texi (optind): Likewise.
33672         * doc/posix-functions/optopt.texi (optopt): Likewise.
33673         * doc/posix-functions/tzname.texi (tzname): Likewise.
33674
33675         openat: update maintainer
33676         * modules/openat (Maintainer): Add myself.
33677
33678         utimens: avoid shadowing warning
33679         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33680         buffers into one, to avoid shadowing, as well as avoiding a
33681         redundant stat.
33682         Reported by Jim Meyering.
33683
33684         test-dup2: avoid compiler warning
33685         * tests/test-dup2.c (is_inheritable): Only define if used.
33686
33687 2010-01-01  Bruno Haible  <bruno@clisp.org>
33688
33689         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33690         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33691         defined, use wctomb instead of wcrtomb.
33692
33693 2010-01-01  Bruno Haible  <bruno@clisp.org>
33694
33695         iconv: Reject native Solaris iconv.
33696         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33697         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33698
33699 2009-12-31  Bruno Haible  <bruno@clisp.org>
33700
33701         * tests/test-signal.c (main): Remove test of 'SIG'.
33702
33703 2009-12-31  Bruno Haible  <bruno@clisp.org>
33704
33705         spawn: Fix incomplete fix.
33706         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33707         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33708         warnings for GNULIB_POSIXCHECK again.
33709         Reported by Eric Blake.
33710
33711 2009-12-31  Bruno Haible  <bruno@clisp.org>
33712
33713         Avoid namespace pollution on glibc systems.
33714         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33715         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33716         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33717         glibc systems.
33718
33719 2009-12-31  Bruno Haible  <bruno@clisp.org>
33720
33721         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33722         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33723         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33724         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33725         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33726         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33727         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33728
33729 2009-12-31  Bruno Haible  <bruno@clisp.org>
33730
33731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33732         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33733         afterwards.
33734
33735 2009-12-31  Bruno Haible  <bruno@clisp.org>
33736
33737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33738         SYS_UTSNAME_H.
33739
33740 2009-12-31  Bruno Haible  <bruno@clisp.org>
33741
33742         spawn: Fix misapplied patch.
33743         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33744         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33745         warnings for GNULIB_POSIXCHECK.
33746
33747 2009-12-31  Bruno Haible  <bruno@clisp.org>
33748
33749         times: Update after sys_times changed.
33750         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33751         * modules/times (Files): Add it.
33752         (configure.ac): Invoke gl_FUNC_TIMES.
33753
33754 2009-12-31  Bruno Haible  <bruno@clisp.org>
33755
33756         Use AC_C_INLINE where necessary.
33757         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33758         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33759         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33760         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33761         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33762         * m4/mbiter.m4 (gl_MBITER): Likewise.
33763         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33764         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33765         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33766         * modules/u64 (configure.ac): Likewise.
33767
33768 2009-12-31  Bruno Haible  <bruno@clisp.org>
33769
33770         Use AC_C_INLINE instead of module 'inline' where possible.
33771         * modules/inline (Description): Clarify purpose.
33772         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33773         * modules/count-one-bits (Depends-on): Remove inline.
33774         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33775         * modules/openat (Depends-on): Remove inline.
33776         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33777         instead of depending on module 'inline'.
33778         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33779         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33780         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33781         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33782         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33783         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33784         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33785         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33786         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33787         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33788         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33789         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33790         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33791         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33792         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33793         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33794         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33795         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33796         Likewise.
33797         * modules/unictype/property-ascii-hex-digit (Depends-on,
33798         configure.ac): Likewise.
33799         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33800         configure.ac): Likewise.
33801         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33802         configure.ac): Likewise.
33803         * modules/unictype/property-bidi-block-separator (Depends-on,
33804         configure.ac): Likewise.
33805         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33806         configure.ac): Likewise.
33807         * modules/unictype/property-bidi-common-separator (Depends-on,
33808         configure.ac): Likewise.
33809         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33810         Likewise.
33811         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33812         configure.ac): Likewise.
33813         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33814         configure.ac): Likewise.
33815         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33816         configure.ac): Likewise.
33817         * modules/unictype/property-bidi-european-digit (Depends-on,
33818         configure.ac): Likewise.
33819         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33820         configure.ac): Likewise.
33821         * modules/unictype/property-bidi-left-to-right (Depends-on,
33822         configure.ac): Likewise.
33823         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33824         configure.ac): Likewise.
33825         * modules/unictype/property-bidi-other-neutral (Depends-on,
33826         configure.ac): Likewise.
33827         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33828         Likewise.
33829         * modules/unictype/property-bidi-segment-separator (Depends-on,
33830         configure.ac): Likewise.
33831         * modules/unictype/property-bidi-whitespace (Depends-on,
33832         configure.ac): Likewise.
33833         * modules/unictype/property-combining (Depends-on, configure.ac):
33834         Likewise.
33835         * modules/unictype/property-composite (Depends-on, configure.ac):
33836         Likewise.
33837         * modules/unictype/property-currency-symbol (Depends-on,
33838         configure.ac): Likewise.
33839         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33840         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33841         Likewise.
33842         * modules/unictype/property-default-ignorable-code-point (Depends-on,
33843         configure.ac): Likewise.
33844         * modules/unictype/property-deprecated (Depends-on, configure.ac):
33845         Likewise.
33846         * modules/unictype/property-diacritic (Depends-on, configure.ac):
33847         Likewise.
33848         * modules/unictype/property-extender (Depends-on, configure.ac):
33849         Likewise.
33850         * modules/unictype/property-format-control (Depends-on, configure.ac):
33851         Likewise.
33852         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
33853         Likewise.
33854         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
33855         Likewise.
33856         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
33857         Likewise.
33858         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
33859         Likewise.
33860         * modules/unictype/property-hyphen (Depends-on, configure.ac):
33861         Likewise.
33862         * modules/unictype/property-id-continue (Depends-on, configure.ac):
33863         Likewise.
33864         * modules/unictype/property-id-start (Depends-on, configure.ac):
33865         Likewise.
33866         * modules/unictype/property-ideographic (Depends-on, configure.ac):
33867         Likewise.
33868         * modules/unictype/property-ids-binary-operator (Depends-on,
33869         configure.ac): Likewise.
33870         * modules/unictype/property-ids-trinary-operator (Depends-on,
33871         configure.ac): Likewise.
33872         * modules/unictype/property-ignorable-control (Depends-on,
33873         configure.ac): Likewise.
33874         * modules/unictype/property-iso-control (Depends-on, configure.ac):
33875         Likewise.
33876         * modules/unictype/property-join-control (Depends-on, configure.ac):
33877         Likewise.
33878         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
33879         Likewise.
33880         * modules/unictype/property-line-separator (Depends-on, configure.ac):
33881         Likewise.
33882         * modules/unictype/property-logical-order-exception (Depends-on,
33883         configure.ac): Likewise.
33884         * modules/unictype/property-lowercase (Depends-on, configure.ac):
33885         Likewise.
33886         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
33887         * modules/unictype/property-non-break (Depends-on, configure.ac):
33888         Likewise.
33889         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
33890         Likewise.
33891         * modules/unictype/property-numeric (Depends-on, configure.ac):
33892         Likewise.
33893         * modules/unictype/property-other-alphabetic (Depends-on,
33894         configure.ac): Likewise.
33895         * modules/unictype/property-other-default-ignorable-code-point
33896         (Depends-on, configure.ac): Likewise.
33897         * modules/unictype/property-other-grapheme-extend (Depends-on,
33898         configure.ac): Likewise.
33899         * modules/unictype/property-other-id-continue (Depends-on,
33900         configure.ac): Likewise.
33901         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
33902         Likewise.
33903         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
33904         Likewise.
33905         * modules/unictype/property-other-math (Depends-on, configure.ac):
33906         Likewise.
33907         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
33908         Likewise.
33909         * modules/unictype/property-paired-punctuation (Depends-on,
33910         configure.ac): Likewise.
33911         * modules/unictype/property-paragraph-separator (Depends-on,
33912         configure.ac): Likewise.
33913         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
33914         Likewise.
33915         * modules/unictype/property-pattern-white-space (Depends-on,
33916         configure.ac): Likewise.
33917         * modules/unictype/property-private-use (Depends-on, configure.ac):
33918         Likewise.
33919         * modules/unictype/property-punctuation (Depends-on, configure.ac):
33920         Likewise.
33921         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
33922         Likewise.
33923         * modules/unictype/property-radical (Depends-on, configure.ac):
33924         Likewise.
33925         * modules/unictype/property-sentence-terminal (Depends-on,
33926         configure.ac): Likewise.
33927         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
33928         Likewise.
33929         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
33930         * modules/unictype/property-terminal-punctuation (Depends-on,
33931         configure.ac): Likewise.
33932         * modules/unictype/property-titlecase (Depends-on, configure.ac):
33933         Likewise.
33934         * modules/unictype/property-unassigned-code-value (Depends-on,
33935         configure.ac): Likewise.
33936         * modules/unictype/property-unified-ideograph (Depends-on,
33937         configure.ac): Likewise.
33938         * modules/unictype/property-uppercase (Depends-on, configure.ac):
33939         Likewise.
33940         * modules/unictype/property-variation-selector (Depends-on,
33941         configure.ac): Likewise.
33942         * modules/unictype/property-white-space (Depends-on, configure.ac):
33943         Likewise.
33944         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
33945         Likewise.
33946         * modules/unictype/property-xid-start (Depends-on, configure.ac):
33947         Likewise.
33948         * modules/unictype/property-zero-width (Depends-on, configure.ac):
33949         Likewise.
33950         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
33951         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
33952         Likewise.
33953
33954 2009-12-31  Bruno Haible  <bruno@clisp.org>
33955
33956         Remove unnecessary AC_C_INLINE invocation.
33957         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
33958         since 2009-08-21.
33959
33960 2009-12-31  Jim Meyering  <meyering@redhat.com>
33961
33962         maint.mk: don't require explicit gpg_key_ID in cfg.mk
33963         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
33964         With this change, we can all remove the gpg_key_ID = ... definition
33965         from our respective cfg.mk files.
33966
33967         maint.mk: create announcement template in ~/, not in /tmp
33968         * top/maint.mk (emit_upload_commands): Adjust.
33969         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
33970         Remove temporary file, .ci-msg.
33971
33972 2009-12-31  Eric Blake  <ebb9@byu.net>
33973
33974         link-warning: always build headers with link warnings
33975         * modules/arpa_inet (Makefile.am): Always build replacement
33976         header.
33977         * modules/ctype (Makefile.am): Likewise.
33978         * modules/dirent (Makefile.am): Likewise.
33979         * modules/inttypes (Makefile.am): Likewise.
33980         * modules/langinfo (Makefile.am): Likewise.
33981         * modules/locale (Makefile.am): Likewise.
33982         * modules/spawn (Makefile.am): Likewise.
33983         * modules/sys_file (Makefile.am): Likewise.
33984         * modules/sys_ioctl (Makefile.am): Likewise.
33985         * modules/sys_select (Makefile.am): Likewise.
33986         * modules/sys_socket (Makefile.am): Likewise.
33987         * modules/sys_times (Makefile.am): Likewise.
33988         * modules/sys_utsname (Makefile.am): Likewise.
33989         * modules/sys_wait (Makefile.am): Likewise.
33990         * modules/wchar (Makefile.am): Likewise.
33991         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
33992         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
33993         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
33994         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
33995         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
33996         Likewise.
33997         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33998         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33999         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34000         Likewise.
34001         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34002         Likewise.
34003         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34004         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34005         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34007         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34008         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34009         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34010         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34011         (gl_WCHAR_H_DEFAULTS): Likewise.
34012
34013 2009-12-31  Eric Blake  <ebb9@byu.net>
34014
34015         signal, spawn: use link warnings
34016         * lib/signal.in.h (sigset_t): Make unconditional.
34017         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34018         (sigpending, sigprocmask, sigaction): Add link warnings.
34019         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34020         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34021         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34022         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34023         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34024         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34025         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34026         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34027         (posix_spawn_file_actions_destroy)
34028         (posix_spawn_file_actions_addopen)
34029         (posix_spawn_file_actions_addclose)
34030         (posix_spawn_file_actions_adddup2): Likewise.
34031         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34032         * tests/test-signal.c (main): Enhance test.
34033
34034         spawn: improve wrapper support
34035         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34036         (gl_SPAWN_H_DEFAULTS): New defaults.
34037         * modules/spawn (Makefile.am): Substitute them.
34038         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34039         Only declare if missing or broken.
34040
34041         sys_times, sys_utsname: use include_next
34042         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34043         header.
34044         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34045         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34046         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34047         * modules/sys_times (Depends-on): Add include_next.
34048         (Makefile.am): Substitute additional values.
34049         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34050         * lib/sys_times.in.h (includes): Include native header, if
34051         available.
34052         * lib/sys_utsname.in.h (includes): Likewise.
34053         * tests/test-sys_times.c (main): Enhance test.
34054
34055         fdutimensat: revert prior patch
34056         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34057         utimens.h.
34058         Reported by Bruno Haible.
34059
34060 2009-12-30  Eric Blake  <ebb9@byu.net>
34061
34062         sys_wait: drop link-warning dependency
34063         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34064         link-warning efforts.
34065         * lib/sys_wait.in.h: Likewise.
34066
34067         fdutimensat: remove bogus dependency
34068         * modules/fdutimensat (Depends-on): Drop inline.
34069
34070         unistd: fix typo
34071         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34072
34073 2009-12-30  Bruno Haible  <bruno@clisp.org>
34074
34075         Fix compilation error with Solaris cc.
34076         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34077         * lib/unicase/u16-is-invariant.c: Likewise.
34078         * lib/unicase/u32-is-invariant.c: Likewise.
34079         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34080
34081 2009-12-30  Bruno Haible  <bruno@clisp.org>
34082
34083         Fix test crash.
34084         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34085         locales.
34086         Reported by Simon Josefsson <simon@josefsson.org>.
34087
34088 2009-12-30  Bruno Haible  <bruno@clisp.org>
34089
34090         Fix compilation error on most platforms.
34091         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34092         Reported by Simon Josefsson <simon@josefsson.org>
34093         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34094
34095 2009-12-30  Eric Blake  <ebb9@byu.net>
34096
34097         futimens, utimensat: work around ntfs-3g bug
34098         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34099         a ctime bug is present, and expand workaround to cover ntfs-3g.
34100         * lib/utimens.c (fdutimens, lutimens): Likewise.
34101         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34102         (validate_timespec): Adjust return value.
34103         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34104         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34105         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34106
34107 2009-12-29  Eric Blake  <ebb9@byu.net>
34108
34109         link-warning: make usage consistent
34110         * modules/ctype (Depends-on): Add link-warning.
34111         (Makefile.am): Update rules accordingly.
34112         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34113         * modules/locale (Depends-on, Makefile.am): Likewise.
34114         * modules/sys_file (Makefile.am): Likewise.
34115         * modules/getopt-posix (Makefile.am): Delete unused link warning
34116         efforts.
34117         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34118         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34119         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34120         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34121
34122         stdio: remove unused variables
34123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34125         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34126
34127         tests: test more substitute headers
34128         * modules/ctype-tests: New file.
34129         * modules/dirent-tests: Likewise.
34130         * modules/spawn-tests: Likewise.
34131         * modules/sys_file-tests: Likewise.
34132         * modules/sys_ioctl-tests: Likewise.
34133         * modules/sys_wait-tests: Likewise.
34134         * tests/test-ctype.c: Likewise.
34135         * tests/test-dirent.c: Likewise.
34136         * tests/test-spawn.c: Likewise.
34137         * tests/test-sys_file.c: Likewise.
34138         * tests/test-sys_ioctl.c: Likewise.
34139         * tests/test-sys_wait.c: Likewise.
34140         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34141         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34142         whether or not flock is in use.
34143
34144         tests: remove License section from module
34145         * modules/arpa_inet-tests: Remove unneeded section.
34146         * modules/byteswap-tests: Likewise.
34147         * modules/ceilf-tests: Likewise.
34148         * modules/ceill-tests: Likewise.
34149         * modules/crypto/des-tests: Likewise.
34150         * modules/crypto/gc-arcfour-tests: Likewise.
34151         * modules/crypto/gc-arctwo-tests: Likewise.
34152         * modules/crypto/gc-des-tests: Likewise.
34153         * modules/crypto/gc-hmac-md5-tests: Likewise.
34154         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34155         * modules/crypto/gc-md2-tests: Likewise.
34156         * modules/crypto/gc-md4-tests: Likewise.
34157         * modules/crypto/gc-md5-tests: Likewise.
34158         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34159         * modules/crypto/gc-rijndael-tests: Likewise.
34160         * modules/crypto/gc-sha1-tests: Likewise.
34161         * modules/crypto/gc-tests: Likewise.
34162         * modules/crypto/md2-tests: Likewise.
34163         * modules/crypto/md4-tests: Likewise.
34164         * modules/fcntl-h-tests: Likewise.
34165         * modules/floorf-tests: Likewise.
34166         * modules/floorl-tests: Likewise.
34167         * modules/frexp-nolibm-tests: Likewise.
34168         * modules/frexp-tests: Likewise.
34169         * modules/frexpl-nolibm-tests: Likewise.
34170         * modules/frexpl-tests: Likewise.
34171         * modules/getaddrinfo-tests: Likewise.
34172         * modules/inttypes-tests: Likewise.
34173         * modules/isfinite-tests: Likewise.
34174         * modules/isinf-tests: Likewise.
34175         * modules/ldexpl-tests: Likewise.
34176         * modules/locale-tests: Likewise.
34177         * modules/math-tests: Likewise.
34178         * modules/netdb-tests: Likewise.
34179         * modules/netinet_in-tests: Likewise.
34180         * modules/printf-frexp-tests: Likewise.
34181         * modules/printf-frexpl-tests: Likewise.
34182         * modules/priv-set-tests: Likewise.
34183         * modules/random_r-tests: Likewise.
34184         * modules/round-tests: Likewise.
34185         * modules/roundf-tests: Likewise.
34186         * modules/roundl-tests: Likewise.
34187         * modules/search-tests: Likewise.
34188         * modules/select-tests: Likewise.
34189         * modules/signal-tests: Likewise.
34190         * modules/stdbool-tests: Likewise.
34191         * modules/stddef-tests: Likewise.
34192         * modules/stdint-tests: Likewise.
34193         * modules/stdio-tests: Likewise.
34194         * modules/stdlib-tests: Likewise.
34195         * modules/string-tests: Likewise.
34196         * modules/strings-tests: Likewise.
34197         * modules/sys_select-tests: Likewise.
34198         * modules/sys_socket-tests: Likewise.
34199         * modules/sys_stat-tests: Likewise.
34200         * modules/sys_time-tests: Likewise.
34201         * modules/sys_utsname-tests: Likewise.
34202         * modules/sysexits-tests: Likewise.
34203         * modules/time-tests: Likewise.
34204         * modules/trunc-tests: Likewise.
34205         * modules/truncf-tests: Likewise.
34206         * modules/truncl-tests: Likewise.
34207         * modules/tsearch-tests: Likewise.
34208         * modules/unistd-tests: Likewise.
34209         * modules/wchar-tests: Likewise.
34210         * modules/wctype-tests: Likewise.
34211
34212         tests: fix license on several tests
34213         * tests/test-des.c: Update to GPLv3+.
34214         * tests/test-flock.c: Likewise.
34215         * tests/test-fsync.c: Likewise.
34216         * tests/test-futimens.h: Likewise.
34217         * tests/test-gc-arcfour.c: Likewise.
34218         * tests/test-gc-arctwo.c: Likewise.
34219         * tests/test-gc-des.c: Likewise.
34220         * tests/test-gc-hmac-md5.c: Likewise.
34221         * tests/test-gc-hmac-sha1.c: Likewise.
34222         * tests/test-gc-md2.c: Likewise.
34223         * tests/test-gc-md4.c: Likewise.
34224         * tests/test-gc-md5.c: Likewise.
34225         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34226         * tests/test-gc-rijndael.c: Likewise.
34227         * tests/test-gc-sha1.c: Likewise.
34228         * tests/test-gc.c: Likewise.
34229         * tests/test-getcwd.c: Likewise.
34230         * tests/test-link.c: Likewise.
34231         * tests/test-link.h: Likewise.
34232         * tests/test-lutimens.h: Likewise.
34233         * tests/test-md2.c: Likewise.
34234         * tests/test-md4.c: Likewise.
34235         * tests/test-mkdir.h: Likewise.
34236         * tests/test-rename.c: Likewise.
34237         * tests/test-rename.h: Likewise.
34238         * tests/test-safe-alloc.c: Likewise.
34239         * tests/test-utimens-common.h: Likewise.
34240         * tests/test-utimens.h: Likewise.
34241
34242         maint: sync license texts
34243         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34244         * doc/gpl-3.0.texi: Revert copyright year update.
34245         * doc/lgpl-3.0.texi: Likewise.
34246
34247 2009-12-29  Jim Meyering  <meyering@redhat.com>
34248
34249         update nearly all FSF copyright year lists to include 2009
34250         The files named by the following are exempted:
34251             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34252               test -f "$dst" && { echo "$dst"; continue; }
34253               test -d "$dst" || continue
34254               echo "$dst"/$(basename "$src")
34255             done > exempt
34256             git ls-files tests/unictype >> exempt
34257         In the remaining files, convert to all-interval notation if
34258         - there is already at least one year interval like 2000-2003
34259         - the file is maintained by me
34260         - the file is in lib/uni*/, where that style already prevails
34261         Otherwise, use update-copyright's default.
34262
34263 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34264         and Eric Blake  <ebb9@byu.net>
34265
34266         tests: don't require debug system() to pass
34267         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34268         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34269         * tests/test-unlink.h (test_unlink_func): Likewise.
34270         * tests/test-fstatat.c (main): ...into callers.
34271         * tests/test-lstat.c (main): Likewise.
34272         * tests/test-rmdir.c (main): Likewise.
34273         * tests/test-unlink.c (main): Likewise.
34274         * tests/test-unlinkat.c (main): Likewise.
34275         * tests/test-areadlink-with-size.c (main): Don't require a
34276         debug-only system call to pass, aiding cross-testing to mingw.
34277         * tests/test-areadlink.c (main): Likewise.
34278         * tests/test-areadlinkat-with-size.c (main): Likewise.
34279         * tests/test-areadlinkat.c (main): Likewise.
34280         * tests/test-canonicalize-lgpl.c (main): Likewise.
34281         * tests/test-canonicalize.c (main): Likewise.
34282         * tests/test-chown.c (main): Likewise.
34283         * tests/test-fchownat.c (main): Likewise.
34284         * tests/test-lchown.c (main): Likewise.
34285         * tests/test-fdutimensat.c (main): Likewise.
34286         * tests/test-futimens.c (main): Likewise.
34287         * tests/test-link.c (main): Likewise.
34288         * tests/test-linkat.c (main): Likewise.
34289         * tests/test-mkdir.c (main): Likewise.
34290         * tests/test-mkdirat.c (main): Likewise.
34291         * tests/test-mkfifo.c (main): Likewise.
34292         * tests/test-mkfifoat.c (main): Likewise.
34293         * tests/test-mknod.c (main): Likewise.
34294         * tests/test-readlink.c (main): Likewise.
34295         * tests/test-remove.c (main): Likewise.
34296         * tests/test-rename.c (main): Likewise.
34297         * tests/test-renameat.c (main): Likewise.
34298         * tests/test-symlink.c (main): Likewise.
34299         * tests/test-symlinkat.c (main): Likewise.
34300         * tests/test-utimens.c (main): Likewise.
34301         * tests/test-utimensat.c (main): Likewise.
34302
34303 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34304
34305         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34306         on $(UNUSED_PARAMETER_H) to avoid build failure.
34307
34308 2009-12-28  Jim Meyering  <meyering@redhat.com>
34309
34310         update-copyright: you may specify a max. line length other than 72
34311         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34312
34313         maint: use consistent FSF copyright line syntax
34314         * lib/posixtm.c: Add missing comma in FSF copyright line.
34315         * lib/posixtm.h: Likewise.
34316         * lib/getugroups.c: Add missing ", Inc.".
34317
34318         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34319         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34320         FSF copyright line.  Remove trailing blanks.
34321
34322 2009-12-28  Eric Blake  <ebb9@byu.net>
34323
34324         test-dup2: reduce dependencies
34325         * modules/cloexec (Configure.ac): Set witness.
34326         * modules/dup2-tests (Depends-on): Drop cloexec.
34327         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34328         not present.
34329         Suggested by Bruno Haible.
34330
34331 2009-12-26  Bruno Haible  <bruno@clisp.org>
34332
34333         Remove an unneeded dependency.
34334         * modules/fseterr (Depends-on): Remove dup2.
34335
34336 2009-12-26  Eric Blake  <ebb9@byu.net>
34337
34338         tests: use macros.h in more places
34339         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34340         (ASSERT_STREAM): Provide default of stderr.
34341         * tests/test-dirent-safer.c: Include macros.h, using alternate
34342         stream for assertions.
34343         * tests/test-dup-safer.c: Likewise.
34344         * tests/test-freopen-safer.c: Likewise.
34345         * tests/test-getopt.c: Likewise.
34346         * tests/test-openat-safer.c: Likewise.
34347         * tests/test-pipe.c: Likewise.
34348         * tests/test-popen-safer.c: Likewise.
34349         * modules/dirent-safer-tests (Files): Include macros.h.
34350         * modules/unistd-safer-tests (Files): Likewise.
34351         * modules/freopen-safer-tests (Files): Likewise.
34352         * modules/getopt-posix-tests (Files): Likewise.
34353         * modules/openat-safer-tests (Files): Likewise.
34354         * modules/pipe-tests (Files): Likewise.
34355
34356 2009-12-26  Bruno Haible  <bruno@clisp.org>
34357
34358         javacomp: Portability fix.
34359         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34360         that it also works on Solaris.
34361
34362 2009-12-26  Bruno Haible  <bruno@clisp.org>
34363
34364         localename: Fix storage allocation of gl_locale_name_thread's result.
34365         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34366         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34367         all platforms that have 'uselocale'.
34368         (gl_locale_name_thread_unsafe): New function, extracted from
34369         gl_locale_name_thread.
34370         (gl_locale_name_thread): Call struniq on all platforms that have
34371         'uselocale'.
34372         * tests/test-localename.c (test_locale_name_thread): Check that the
34373         resulting strings are permanently allocated.
34374         * modules/localename-tests (Depends-on): Add strdup.
34375
34376 2009-12-26  Bruno Haible  <bruno@clisp.org>
34377
34378         * tests/test-localename.c (categories): Fill in the strings.
34379
34380 2009-12-26  Jim Meyering  <meyering@redhat.com>
34381
34382         isdir: complete the removal of m4/isdir.m4
34383         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34384
34385         isdir: clean up, since at least grep still uses it
34386         * lib/isdir.c: Include "isdir.h".
34387         (S_ISDIR): Remove now-unneeded definition.
34388         * modules/isdir (Files): Add lib/isdir.h.
34389         * lib/isdir.h: New file, with declaration.
34390         * m4/isdir.m4: Remove file -- unneeded.
34391
34392 2009-12-25  Bruno Haible  <bruno@clisp.org>
34393
34394         selinux-h: Make generated .h files standalone.
34395         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34396         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34397         * lib/se-selinux.in.h: Likewise.
34398         * modules/selinux-h (Depends-on): Add unused-parameter.
34399         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34400         selinux/selinux.h and selinux/context.h.
34401         Suggested by Eric Blake.
34402
34403 2009-12-25  Bruno Haible  <bruno@clisp.org>
34404
34405         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34406         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34407         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34408         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34409         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34410
34411 2009-12-24  Bruno Haible  <bruno@clisp.org>
34412
34413         openat: Fix warning.
34414         * lib/openat-proc.c: Include <unistd.h>.
34415
34416 2009-12-24  Bruno Haible  <bruno@clisp.org>
34417
34418         New module 'unused-parameter'.
34419         * build-aux/unused-parameter.h: New file, extracted from earlier
34420         gnulib-common.m4.
34421         * modules/unused-parameter: New file.
34422         * lib/unistr.h: Include unused-parameter.h.
34423         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34424         _GL_UNUSED.
34425         * modules/unistr/base (Depends-on): Add unused-parameter.
34426
34427 2009-12-24  Bruno Haible  <bruno@clisp.org>
34428
34429         Add missing dependencies to 'extensions' module.
34430         * m4/extensions.m4: Add comment.
34431         * modules/accept4 (Depends-on): Add extensions.
34432         * modules/dup3 (Depends-on): Likewise.
34433         * modules/fcntl (Depends-on): Likewise.
34434         * modules/futimens (Depends-on): Likewise.
34435         * modules/mknod (Depends-on): Likewise.
34436         * modules/pipe2 (Depends-on): Likewise.
34437         * modules/stat-time (Depends-on): Likewise.
34438         * modules/strcasestr-simple (Depends-on): Likewise.
34439         * modules/strsignal (Depends-on): Likewise.
34440         * modules/utimensat (Depends-on): Likewise.
34441         * modules/localcharset (Depends-on): Likewise. Needed because of
34442         gl_FCNTL_O_FLAGS.
34443         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34444         AC_TYPE_MBSTATE_T.
34445         * modules/wcsnrtombs (Depends-on): Likewise.
34446         * modules/wcsrtombs (Depends-on): Likewise.
34447
34448 2009-12-24  Bruno Haible  <bruno@clisp.org>
34449
34450         binary-io: Avoid gcc warning due to SET_BINARY.
34451         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34452         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34453
34454 2009-12-24  Bruno Haible  <bruno@clisp.org>
34455
34456         Avoid future namespace pollution on glibc systems.
34457         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34458         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34459         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34460         glibc systems.
34461
34462 2009-12-24  Bruno Haible  <bruno@clisp.org>
34463
34464         Refactor common macros used in tests.
34465         * tests/macros.h: New file.
34466         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34467         and/or <stdlib.h>, if appropriate.
34468         (ASSERT, SIZEOF): Remove macros.
34469         * tests/test-areadlink-with-size.c: Likewise.
34470         * tests/test-areadlinkat.c: Likewise.
34471         * tests/test-areadlinkat-with-size.c: Likewise.
34472         * tests/test-argmatch.c: Likewise.
34473         * tests/test-argv-iter.c: Likewise.
34474         * tests/test-array-mergesort.c: Likewise.
34475         * tests/test-array_list.c: Likewise.
34476         * tests/test-array_oset.c: Likewise.
34477         * tests/test-avltree_list.c: Likewise.
34478         * tests/test-avltree_oset.c: Likewise.
34479         * tests/test-avltreehash_list.c: Likewise.
34480         * tests/test-base64.c: Likewise.
34481         * tests/test-binary-io.c: Likewise.
34482         * tests/test-bitrotate.c: Likewise.
34483         * tests/test-btowc.c: Likewise.
34484         * tests/test-byteswap.c: Likewise.
34485         * tests/test-c-ctype.c: Likewise.
34486         * tests/test-c-stack.c: Likewise.
34487         * tests/test-c-strcasecmp.c: Likewise.
34488         * tests/test-c-strcasestr.c: Likewise.
34489         * tests/test-c-strncasecmp.c: Likewise.
34490         * tests/test-c-strstr.c: Likewise.
34491         * tests/test-canonicalize-lgpl.c: Likewise.
34492         * tests/test-canonicalize.c: Likewise.
34493         * tests/test-carray_list.c: Likewise.
34494         * tests/test-ceilf1.c: Likewise.
34495         * tests/test-ceilf2.c: Likewise.
34496         * tests/test-ceill.c: Likewise.
34497         * tests/test-chown.c: Likewise.
34498         * tests/test-cloexec.c: Likewise.
34499         * tests/test-copy-acl.c: Likewise.
34500         * tests/test-copy-file.c: Likewise.
34501         * tests/test-count-one-bits.c: Likewise.
34502         * tests/test-dprintf-posix.c: Likewise.
34503         * tests/test-dup2.c: Likewise.
34504         * tests/test-dup3.c: Likewise.
34505         * tests/test-duplocale.c: Likewise.
34506         * tests/test-fbufmode.c: Likewise.
34507         * tests/test-fchdir.c: Likewise.
34508         * tests/test-fchownat.c: Likewise.
34509         * tests/test-fcntl-safer.c: Likewise.
34510         * tests/test-fcntl.c: Likewise.
34511         * tests/test-fdopendir.c: Likewise.
34512         * tests/test-fdutimensat.c: Likewise.
34513         * tests/test-fflush2.c: Likewise.
34514         * tests/test-file-has-acl.c: Likewise.
34515         * tests/test-filevercmp.c: Likewise.
34516         * tests/test-flock.c: Likewise.
34517         * tests/test-floorf1.c: Likewise.
34518         * tests/test-floorf2.c: Likewise.
34519         * tests/test-floorl.c: Likewise.
34520         * tests/test-fnmatch.c: Likewise.
34521         * tests/test-fopen.h: Likewise.
34522         * tests/test-fpending.c: Likewise.
34523         * tests/test-fprintf-posix.c: Likewise.
34524         * tests/test-fpurge.c: Likewise.
34525         * tests/test-freadable.c: Likewise.
34526         * tests/test-freadahead.c: Likewise.
34527         * tests/test-freading.c: Likewise.
34528         * tests/test-freadptr.c: Likewise.
34529         * tests/test-freadptr2.c: Likewise.
34530         * tests/test-freadseek.c: Likewise.
34531         * tests/test-freopen.c: Likewise.
34532         * tests/test-frexp.c: Likewise.
34533         * tests/test-frexpl.c: Likewise.
34534         * tests/test-fseek.c: Likewise.
34535         * tests/test-fseeko.c: Likewise.
34536         * tests/test-fstatat.c: Likewise.
34537         * tests/test-fstrcmp.c: Likewise.
34538         * tests/test-fsync.c: Likewise.
34539         * tests/test-ftell.c: Likewise.
34540         * tests/test-ftello.c: Likewise.
34541         * tests/test-func.c: Likewise.
34542         * tests/test-futimens.c: Likewise.
34543         * tests/test-fwritable.c: Likewise.
34544         * tests/test-fwriting.c: Likewise.
34545         * tests/test-getcwd.c: Likewise.
34546         * tests/test-getdate.c: Likewise.
34547         * tests/test-getdelim.c: Likewise.
34548         * tests/test-getdtablesize.c: Likewise.
34549         * tests/test-getgroups.c: Likewise.
34550         * tests/test-getline.c: Likewise.
34551         * tests/test-getndelim2.c: Likewise.
34552         * tests/test-glob.c: Likewise.
34553         * tests/test-hash.c: Likewise.
34554         * tests/test-i-ring.c: Likewise.
34555         * tests/test-iconv-utf.c: Likewise.
34556         * tests/test-iconv.c: Likewise.
34557         * tests/test-idpriv-drop.c: Likewise.
34558         * tests/test-idpriv-droptemp.c: Likewise.
34559         * tests/test-inet_ntop.c: Likewise.
34560         * tests/test-inet_pton.c: Likewise.
34561         * tests/test-isblank.c: Likewise.
34562         * tests/test-isfinite.c: Likewise.
34563         * tests/test-isinf.c: Likewise.
34564         * tests/test-isnan.c: Likewise.
34565         * tests/test-isnand.h: Likewise.
34566         * tests/test-isnanf.h: Likewise.
34567         * tests/test-isnanl.h: Likewise.
34568         * tests/test-lchown.c: Likewise.
34569         * tests/test-ldexpl.c: Likewise.
34570         * tests/test-link.c: Likewise.
34571         * tests/test-linkat.c: Likewise.
34572         * tests/test-linked_list.c: Likewise.
34573         * tests/test-linkedhash_list.c: Likewise.
34574         * tests/test-localename.c: Likewise.
34575         * tests/test-lseek.c: Likewise.
34576         * tests/test-lstat.c: Likewise.
34577         * tests/test-mbmemcasecmp.c: Likewise.
34578         * tests/test-mbmemcasecoll.c: Likewise.
34579         * tests/test-mbrtowc.c: Likewise.
34580         * tests/test-mbscasecmp.c: Likewise.
34581         * tests/test-mbscasestr1.c: Likewise.
34582         * tests/test-mbscasestr2.c: Likewise.
34583         * tests/test-mbscasestr3.c: Likewise.
34584         * tests/test-mbscasestr4.c: Likewise.
34585         * tests/test-mbschr.c: Likewise.
34586         * tests/test-mbscspn.c: Likewise.
34587         * tests/test-mbsinit.c: Likewise.
34588         * tests/test-mbsncasecmp.c: Likewise.
34589         * tests/test-mbsnrtowcs.c: Likewise.
34590         * tests/test-mbspbrk.c: Likewise.
34591         * tests/test-mbspcasecmp.c: Likewise.
34592         * tests/test-mbsrchr.c: Likewise.
34593         * tests/test-mbsrtowcs.c: Likewise.
34594         * tests/test-mbsspn.c: Likewise.
34595         * tests/test-mbsstr1.c: Likewise.
34596         * tests/test-mbsstr2.c: Likewise.
34597         * tests/test-mbsstr3.c: Likewise.
34598         * tests/test-memchr.c: Likewise.
34599         * tests/test-memchr2.c: Likewise.
34600         * tests/test-memcmp.c: Likewise.
34601         * tests/test-memmem.c: Likewise.
34602         * tests/test-memrchr.c: Likewise.
34603         * tests/test-mkdir.c: Likewise.
34604         * tests/test-mkdirat.c: Likewise.
34605         * tests/test-mkfifo.c: Likewise.
34606         * tests/test-mkfifoat.c: Likewise.
34607         * tests/test-mknod.c: Likewise.
34608         * tests/test-nanosleep.c: Likewise.
34609         * tests/test-nl_langinfo.c: Likewise.
34610         * tests/test-obstack-printf.c: Likewise.
34611         * tests/test-open.c: Likewise.
34612         * tests/test-openat.c: Likewise.
34613         * tests/test-pipe-filter-gi1.c: Likewise.
34614         * tests/test-pipe-filter-gi2-main.c: Likewise.
34615         * tests/test-pipe-filter-ii1.c: Likewise.
34616         * tests/test-pipe-filter-ii2-main.c: Likewise.
34617         * tests/test-pipe2.c: Likewise.
34618         * tests/test-popen.h: Likewise.
34619         * tests/test-posixtm.c: Likewise.
34620         * tests/test-pread.c: Likewise.
34621         * tests/test-printf-frexp.c: Likewise.
34622         * tests/test-printf-frexpl.c: Likewise.
34623         * tests/test-printf-posix.c: Likewise.
34624         * tests/test-priv-set.c: Likewise.
34625         * tests/test-quotearg.c: Likewise.
34626         * tests/test-random_r.c: Likewise.
34627         * tests/test-rawmemchr.c: Likewise.
34628         * tests/test-rbtree_list.c: Likewise.
34629         * tests/test-rbtree_oset.c: Likewise.
34630         * tests/test-rbtreehash_list.c: Likewise.
34631         * tests/test-readlink.c: Likewise.
34632         * tests/test-remove.c: Likewise.
34633         * tests/test-rename.c: Likewise.
34634         * tests/test-renameat.c: Likewise.
34635         * tests/test-rmdir.c: Likewise.
34636         * tests/test-round1.c: Likewise.
34637         * tests/test-roundf1.c: Likewise.
34638         * tests/test-roundl.c: Likewise.
34639         * tests/test-safe-alloc.c: Likewise.
34640         * tests/test-sameacls.c: Likewise.
34641         * tests/test-set-mode-acl.c: Likewise.
34642         * tests/test-setenv.c: Likewise.
34643         * tests/test-sigaction.c: Likewise.
34644         * tests/test-signbit.c: Likewise.
34645         * tests/test-sleep.c: Likewise.
34646         * tests/test-snprintf-posix.c: Likewise.
34647         * tests/test-snprintf.c: Likewise.
34648         * tests/test-sprintf-posix.c: Likewise.
34649         * tests/test-stat-time.c: Likewise.
34650         * tests/test-stat.c: Likewise.
34651         * tests/test-strcasestr.c: Likewise.
34652         * tests/test-strchrnul.c: Likewise.
34653         * tests/test-strerror.c: Likewise.
34654         * tests/test-striconv.c: Likewise.
34655         * tests/test-striconveh.c: Likewise.
34656         * tests/test-striconveha.c: Likewise.
34657         * tests/test-strsignal.c: Likewise.
34658         * tests/test-strstr.c: Likewise.
34659         * tests/test-strtod.c: Likewise.
34660         * tests/test-strverscmp.c: Likewise.
34661         * tests/test-symlink.c: Likewise.
34662         * tests/test-symlinkat.c: Likewise.
34663         * tests/test-trunc1.c: Likewise.
34664         * tests/test-trunc2.c: Likewise.
34665         * tests/test-truncf1.c: Likewise.
34666         * tests/test-truncf2.c: Likewise.
34667         * tests/test-truncl.c: Likewise.
34668         * tests/test-uname.c: Likewise.
34669         * tests/test-unlink.c: Likewise.
34670         * tests/test-unlinkat.c: Likewise.
34671         * tests/test-unsetenv.c: Likewise.
34672         * tests/test-usleep.c: Likewise.
34673         * tests/test-utimens.c: Likewise.
34674         * tests/test-utimensat.c: Likewise.
34675         * tests/test-vasnprintf-posix.c: Likewise.
34676         * tests/test-vasnprintf-posix2.c: Likewise.
34677         * tests/test-vasnprintf.c: Likewise.
34678         * tests/test-vasprintf-posix.c: Likewise.
34679         * tests/test-vasprintf.c: Likewise.
34680         * tests/test-vdprintf-posix.c: Likewise.
34681         * tests/test-vfprintf-posix.c: Likewise.
34682         * tests/test-vprintf-posix.c: Likewise.
34683         * tests/test-vsnprintf-posix.c: Likewise.
34684         * tests/test-vsnprintf.c: Likewise.
34685         * tests/test-vsprintf-posix.c: Likewise.
34686         * tests/test-wcrtomb.c: Likewise.
34687         * tests/test-wcsnrtombs.c: Likewise.
34688         * tests/test-wcsrtombs.c: Likewise.
34689         * tests/test-wctype.c: Likewise.
34690         * tests/test-wcwidth.c: Likewise.
34691         * tests/test-xfprintf-posix.c: Likewise.
34692         * tests/test-xmemdup0.c: Likewise.
34693         * tests/test-xprintf-posix.c: Likewise.
34694         * tests/test-xvasprintf.c: Likewise.
34695         * tests/unicase/test-locale-language.c: Likewise.
34696         * tests/unicase/test-mapping-part1.h: Likewise.
34697         * tests/unicase/test-predicate-part1.h: Likewise.
34698         * tests/unicase/test-u8-casecmp.c: Likewise.
34699         * tests/unicase/test-u8-casecoll.c: Likewise.
34700         * tests/unicase/test-u8-casefold.c: Likewise.
34701         * tests/unicase/test-u8-is-cased.c: Likewise.
34702         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34703         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34704         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34705         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34706         * tests/unicase/test-u8-tolower.c: Likewise.
34707         * tests/unicase/test-u8-totitle.c: Likewise.
34708         * tests/unicase/test-u8-toupper.c: Likewise.
34709         * tests/unicase/test-u16-casecmp.c: Likewise.
34710         * tests/unicase/test-u16-casecoll.c: Likewise.
34711         * tests/unicase/test-u16-casefold.c: Likewise.
34712         * tests/unicase/test-u16-is-cased.c: Likewise.
34713         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34714         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34715         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34716         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34717         * tests/unicase/test-u16-tolower.c: Likewise.
34718         * tests/unicase/test-u16-totitle.c: Likewise.
34719         * tests/unicase/test-u16-toupper.c: Likewise.
34720         * tests/unicase/test-u32-casecmp.c: Likewise.
34721         * tests/unicase/test-u32-casecoll.c: Likewise.
34722         * tests/unicase/test-u32-casefold.c: Likewise.
34723         * tests/unicase/test-u32-is-cased.c: Likewise.
34724         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34725         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34726         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34727         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34728         * tests/unicase/test-u32-tolower.c: Likewise.
34729         * tests/unicase/test-u32-totitle.c: Likewise.
34730         * tests/unicase/test-u32-toupper.c: Likewise.
34731         * tests/unicase/test-ulc-casecmp.c: Likewise.
34732         * tests/unicase/test-ulc-casecoll.c: Likewise.
34733         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34734         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34735         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34736         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34737         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34738         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34739         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34740         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34741         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34742         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34743         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34744         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34745         * tests/unictype/test-bidi_byname.c: Likewise.
34746         * tests/unictype/test-bidi_name.c: Likewise.
34747         * tests/unictype/test-bidi_of.c: Likewise.
34748         * tests/unictype/test-bidi_test.c: Likewise.
34749         * tests/unictype/test-block_list.c: Likewise.
34750         * tests/unictype/test-block_of.c: Likewise.
34751         * tests/unictype/test-block_test.c: Likewise.
34752         * tests/unictype/test-categ_and.c: Likewise.
34753         * tests/unictype/test-categ_and_not.c: Likewise.
34754         * tests/unictype/test-categ_byname.c: Likewise.
34755         * tests/unictype/test-categ_name.c: Likewise.
34756         * tests/unictype/test-categ_none.c: Likewise.
34757         * tests/unictype/test-categ_of.c: Likewise.
34758         * tests/unictype/test-categ_or.c: Likewise.
34759         * tests/unictype/test-categ_test_withtable.c: Likewise.
34760         * tests/unictype/test-combining.c: Likewise.
34761         * tests/unictype/test-decdigit.c: Likewise.
34762         * tests/unictype/test-digit.c: Likewise.
34763         * tests/unictype/test-mirror.c: Likewise.
34764         * tests/unictype/test-numeric.c: Likewise.
34765         * tests/unictype/test-pr_byname.c: Likewise.
34766         * tests/unictype/test-pr_test.c: Likewise.
34767         * tests/unictype/test-predicate-part1.h: Likewise.
34768         * tests/unictype/test-scripts.c: Likewise.
34769         * tests/unictype/test-sy_c_ident.c: Likewise.
34770         * tests/unictype/test-sy_java_ident.c: Likewise.
34771         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34772         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34773         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34774         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34775         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34776         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34777         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34778         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34779         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34780         * tests/uninorm/test-compat-decomposition.c: Likewise.
34781         * tests/uninorm/test-composition.c: Likewise.
34782         * tests/uninorm/test-decomposing-form.c: Likewise.
34783         * tests/uninorm/test-decomposition.c: Likewise.
34784         * tests/uninorm/test-u8-nfc.c: Likewise.
34785         * tests/uninorm/test-u8-nfd.c: Likewise.
34786         * tests/uninorm/test-u8-nfkc.c: Likewise.
34787         * tests/uninorm/test-u8-nfkd.c: Likewise.
34788         * tests/uninorm/test-u8-normcmp.c: Likewise.
34789         * tests/uninorm/test-u8-normcoll.c: Likewise.
34790         * tests/uninorm/test-u16-nfc.c: Likewise.
34791         * tests/uninorm/test-u16-nfd.c: Likewise.
34792         * tests/uninorm/test-u16-nfkc.c: Likewise.
34793         * tests/uninorm/test-u16-nfkd.c: Likewise.
34794         * tests/uninorm/test-u16-normcmp.c: Likewise.
34795         * tests/uninorm/test-u16-normcoll.c: Likewise.
34796         * tests/uninorm/test-u32-nfc.c: Likewise.
34797         * tests/uninorm/test-u32-nfd.c: Likewise.
34798         * tests/uninorm/test-u32-nfkc.c: Likewise.
34799         * tests/uninorm/test-u32-nfkd.c: Likewise.
34800         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34801         * tests/uninorm/test-u32-normcmp.c: Likewise.
34802         * tests/uninorm/test-u32-normcoll.c: Likewise.
34803         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34804         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34805         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34806         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34807         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34808         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34809         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34810         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34811         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34812         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34813         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34814         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34815         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34816         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34817         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34818         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34819         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34820         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34821         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34822         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34823         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34824         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34825         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34826         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34827         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34828         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34829         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34830         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34831         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34832         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34833         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34834         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34835         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34836         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34837         * tests/uniwidth/test-u8-width.c: Likewise.
34838         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34839         * tests/uniwidth/test-u16-width.c: Likewise.
34840         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34841         * tests/uniwidth/test-u32-width.c: Likewise.
34842         * tests/uniwidth/test-uc_width.c: Likewise.
34843         * tests/uniwidth/test-uc_width2.c: Likewise.
34844         * modules/acl-tests (Files): Add tests/macros.h.
34845         * modules/areadlink-tests (Files): Likewise.
34846         * modules/areadlink-with-size-tests (Files): Likewise.
34847         * modules/areadlinkat-tests (Files): Likewise.
34848         * modules/areadlinkat-with-size-tests (Files): Likewise.
34849         * modules/argmatch-tests (Files): Likewise.
34850         * modules/argv-iter-tests (Files): Likewise.
34851         * modules/array-list-tests (Files): Likewise.
34852         * modules/array-mergesort-tests (Files): Likewise.
34853         * modules/array-oset-tests (Files): Likewise.
34854         * modules/avltree-list-tests (Files): Likewise.
34855         * modules/avltree-oset-tests (Files): Likewise.
34856         * modules/avltreehash-list-tests (Files): Likewise.
34857         * modules/base64-tests (Files): Likewise.
34858         * modules/binary-io-tests (Files): Likewise.
34859         * modules/bitrotate-tests (Files): Likewise.
34860         * modules/btowc-tests (Files): Likewise.
34861         * modules/byteswap-tests (Files): Likewise.
34862         * modules/c-ctype-tests (Files): Likewise.
34863         * modules/c-stack-tests (Files): Likewise.
34864         * modules/c-strcase-tests (Files): Likewise.
34865         * modules/c-strcasestr-tests (Files): Likewise.
34866         * modules/c-strstr-tests (Files): Likewise.
34867         * modules/canonicalize-lgpl-tests (Files): Likewise.
34868         * modules/canonicalize-tests (Files): Likewise.
34869         * modules/carray-list-tests (Files): Likewise.
34870         * modules/ceilf-tests (Files): Likewise.
34871         * modules/ceill-tests (Files): Likewise.
34872         * modules/chown-tests (Files): Likewise.
34873         * modules/cloexec-tests (Files): Likewise.
34874         * modules/copy-file-tests (Files): Likewise.
34875         * modules/count-one-bits-tests (Files): Likewise.
34876         * modules/dprintf-posix-tests (Files): Likewise.
34877         * modules/dup2-tests (Files): Likewise.
34878         * modules/dup3-tests (Files): Likewise.
34879         * modules/duplocale-tests (Files): Likewise.
34880         * modules/fbufmode-tests (Files): Likewise.
34881         * modules/fchdir-tests (Files): Likewise.
34882         * modules/fcntl-safer-tests (Files): Likewise.
34883         * modules/fcntl-tests (Files): Likewise.
34884         * modules/fdopendir-tests (Files): Likewise.
34885         * modules/fdutimensat-tests (Files): Likewise.
34886         * modules/fflush-tests (Files): Likewise.
34887         * modules/filevercmp-tests (Files): Likewise.
34888         * modules/flock-tests (Files): Likewise.
34889         * modules/floorf-tests (Files): Likewise.
34890         * modules/floorl-tests (Files): Likewise.
34891         * modules/fnmatch-tests (Files): Likewise.
34892         * modules/fopen-safer-tests (Files): Likewise.
34893         * modules/fopen-tests (Files): Likewise.
34894         * modules/fpending-tests (Files): Likewise.
34895         * modules/fprintf-posix-tests (Files): Likewise.
34896         * modules/fpurge-tests (Files): Likewise.
34897         * modules/freadable-tests (Files): Likewise.
34898         * modules/freadahead-tests (Files): Likewise.
34899         * modules/freading-tests (Files): Likewise.
34900         * modules/freadptr-tests (Files): Likewise.
34901         * modules/freadseek-tests (Files): Likewise.
34902         * modules/freopen-tests (Files): Likewise.
34903         * modules/frexp-nolibm-tests (Files): Likewise.
34904         * modules/frexp-tests (Files): Likewise.
34905         * modules/frexpl-nolibm-tests (Files): Likewise.
34906         * modules/frexpl-tests (Files): Likewise.
34907         * modules/fseek-tests (Files): Likewise.
34908         * modules/fseeko-tests (Files): Likewise.
34909         * modules/fstrcmp-tests (Files): Likewise.
34910         * modules/fsync-tests (Files): Likewise.
34911         * modules/ftell-tests (Files): Likewise.
34912         * modules/ftello-tests (Files): Likewise.
34913         * modules/func-tests (Files): Likewise.
34914         * modules/futimens-tests (Files): Likewise.
34915         * modules/fwritable-tests (Files): Likewise.
34916         * modules/fwriting-tests (Files): Likewise.
34917         * modules/getcwd-tests (Files): Likewise.
34918         * modules/getdate-tests (Files): Likewise.
34919         * modules/getdelim-tests (Files): Likewise.
34920         * modules/getdtablesize-tests (Files): Likewise.
34921         * modules/getgroups-tests (Files): Likewise.
34922         * modules/getline-tests (Files): Likewise.
34923         * modules/getndelim2-tests (Files): Likewise.
34924         * modules/glob-tests (Files): Likewise.
34925         * modules/hash-tests (Files): Likewise.
34926         * modules/i-ring-tests (Files): Likewise.
34927         * modules/iconv-tests (Files): Likewise.
34928         * modules/iconv_open-utf-tests (Files): Likewise.
34929         * modules/idpriv-drop-tests (Files): Likewise.
34930         * modules/idpriv-droptemp-tests (Files): Likewise.
34931         * modules/inet_ntop-tests (Files): Likewise.
34932         * modules/inet_pton-tests (Files): Likewise.
34933         * modules/isblank-tests (Files): Likewise.
34934         * modules/isfinite-tests (Files): Likewise.
34935         * modules/isinf-tests (Files): Likewise.
34936         * modules/isnan-tests (Files): Likewise.
34937         * modules/isnand-nolibm-tests (Files): Likewise.
34938         * modules/isnand-tests (Files): Likewise.
34939         * modules/isnanf-nolibm-tests (Files): Likewise.
34940         * modules/isnanf-tests (Files): Likewise.
34941         * modules/isnanl-nolibm-tests (Files): Likewise.
34942         * modules/isnanl-tests (Files): Likewise.
34943         * modules/lchown-tests (Files): Likewise.
34944         * modules/ldexpl-tests (Files): Likewise.
34945         * modules/link-tests (Files): Likewise.
34946         * modules/linkat-tests (Files): Likewise.
34947         * modules/linked-list-tests (Files): Likewise.
34948         * modules/linkedhash-list-tests (Files): Likewise.
34949         * modules/localename-tests (Files): Likewise.
34950         * modules/lseek-tests (Files): Likewise.
34951         * modules/lstat-tests (Files): Likewise.
34952         * modules/mbmemcasecmp-tests (Files): Likewise.
34953         * modules/mbmemcasecoll-tests (Files): Likewise.
34954         * modules/mbrtowc-tests (Files): Likewise.
34955         * modules/mbscasecmp-tests (Files): Likewise.
34956         * modules/mbscasestr-tests (Files): Likewise.
34957         * modules/mbschr-tests (Files): Likewise.
34958         * modules/mbscspn-tests (Files): Likewise.
34959         * modules/mbsinit-tests (Files): Likewise.
34960         * modules/mbsncasecmp-tests (Files): Likewise.
34961         * modules/mbsnrtowcs-tests (Files): Likewise.
34962         * modules/mbspbrk-tests (Files): Likewise.
34963         * modules/mbspcasecmp-tests (Files): Likewise.
34964         * modules/mbsrchr-tests (Files): Likewise.
34965         * modules/mbsrtowcs-tests (Files): Likewise.
34966         * modules/mbsspn-tests (Files): Likewise.
34967         * modules/mbsstr-tests (Files): Likewise.
34968         * modules/memchr-tests (Files): Likewise.
34969         * modules/memchr2-tests (Files): Likewise.
34970         * modules/memcmp-tests (Files): Likewise.
34971         * modules/memmem-tests (Files): Likewise.
34972         * modules/memrchr-tests (Files): Likewise.
34973         * modules/mkdir-tests (Files): Likewise.
34974         * modules/mkfifo-tests (Files): Likewise.
34975         * modules/mkfifoat-tests (Files): Likewise.
34976         * modules/mknod-tests (Files): Likewise.
34977         * modules/nanosleep-tests (Files): Likewise.
34978         * modules/nl_langinfo-tests (Files): Likewise.
34979         * modules/obstack-printf-tests (Files): Likewise.
34980         * modules/open-tests (Files): Likewise.
34981         * modules/openat-tests (Files): Likewise.
34982         * modules/pipe-filter-gi-tests (Files): Likewise.
34983         * modules/pipe-filter-ii-tests (Files): Likewise.
34984         * modules/pipe2-tests (Files): Likewise.
34985         * modules/popen-safer-tests (Files): Likewise.
34986         * modules/popen-tests (Files): Likewise.
34987         * modules/posixtm-tests (Files): Likewise.
34988         * modules/pread-tests (Files): Likewise.
34989         * modules/printf-frexp-tests (Files): Likewise.
34990         * modules/printf-frexpl-tests (Files): Likewise.
34991         * modules/printf-posix-tests (Files): Likewise.
34992         * modules/priv-set-tests (Files): Likewise.
34993         * modules/quotearg-tests (Files): Likewise.
34994         * modules/random_r-tests (Files): Likewise.
34995         * modules/rawmemchr-tests (Files): Likewise.
34996         * modules/rbtree-list-tests (Files): Likewise.
34997         * modules/rbtree-oset-tests (Files): Likewise.
34998         * modules/rbtreehash-list-tests (Files): Likewise.
34999         * modules/readlink-tests (Files): Likewise.
35000         * modules/remove-tests (Files): Likewise.
35001         * modules/rename-tests (Files): Likewise.
35002         * modules/renameat-tests (Files): Likewise.
35003         * modules/rmdir-tests (Files): Likewise.
35004         * modules/round-tests (Files): Likewise.
35005         * modules/roundf-tests (Files): Likewise.
35006         * modules/roundl-tests (Files): Likewise.
35007         * modules/safe-alloc-tests (Files): Likewise.
35008         * modules/setenv-tests (Files): Likewise.
35009         * modules/sigaction-tests (Files): Likewise.
35010         * modules/signbit-tests (Files): Likewise.
35011         * modules/sleep-tests (Files): Likewise.
35012         * modules/snprintf-posix-tests (Files): Likewise.
35013         * modules/snprintf-tests (Files): Likewise.
35014         * modules/sprintf-posix-tests (Files): Likewise.
35015         * modules/stat-tests (Files): Likewise.
35016         * modules/stat-time-tests (Files): Likewise.
35017         * modules/strcasestr-tests (Files): Likewise.
35018         * modules/strchrnul-tests (Files): Likewise.
35019         * modules/strerror-tests (Files): Likewise.
35020         * modules/striconv-tests (Files): Likewise.
35021         * modules/striconveh-tests (Files): Likewise.
35022         * modules/striconveha-tests (Files): Likewise.
35023         * modules/strsignal-tests (Files): Likewise.
35024         * modules/strstr-tests (Files): Likewise.
35025         * modules/strtod-tests (Files): Likewise.
35026         * modules/strverscmp-tests (Files): Likewise.
35027         * modules/symlink-tests (Files): Likewise.
35028         * modules/symlinkat-tests (Files): Likewise.
35029         * modules/trunc-tests (Files): Likewise.
35030         * modules/truncf-tests (Files): Likewise.
35031         * modules/truncl-tests (Files): Likewise.
35032         * modules/uname-tests (Files): Likewise.
35033         * modules/unicase/cased-tests (Files): Likewise.
35034         * modules/unicase/ignorable-tests (Files): Likewise.
35035         * modules/unicase/locale-language-tests (Files): Likewise.
35036         * modules/unicase/tolower-tests (Files): Likewise.
35037         * modules/unicase/totitle-tests (Files): Likewise.
35038         * modules/unicase/toupper-tests (Files): Likewise.
35039         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35040         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35041         * modules/unicase/u8-casefold-tests (Files): Likewise.
35042         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35043         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35044         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35045         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35046         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35047         * modules/unicase/u8-tolower-tests (Files): Likewise.
35048         * modules/unicase/u8-totitle-tests (Files): Likewise.
35049         * modules/unicase/u8-toupper-tests (Files): Likewise.
35050         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35051         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35052         * modules/unicase/u16-casefold-tests (Files): Likewise.
35053         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35054         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35055         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35056         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35057         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35058         * modules/unicase/u16-tolower-tests (Files): Likewise.
35059         * modules/unicase/u16-totitle-tests (Files): Likewise.
35060         * modules/unicase/u16-toupper-tests (Files): Likewise.
35061         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35062         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35063         * modules/unicase/u32-casefold-tests (Files): Likewise.
35064         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35065         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35066         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35067         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35068         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35069         * modules/unicase/u32-tolower-tests (Files): Likewise.
35070         * modules/unicase/u32-totitle-tests (Files): Likewise.
35071         * modules/unicase/u32-toupper-tests (Files): Likewise.
35072         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35073         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35074         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35075         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35076         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35077         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35078         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35079         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35080         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35081         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35082         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35083         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35084         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35085         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35086         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35087         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35088         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35089         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35090         * modules/unictype/block-list-tests (Files): Likewise.
35091         * modules/unictype/block-of-tests (Files): Likewise.
35092         * modules/unictype/block-test-tests (Files): Likewise.
35093         * modules/unictype/category-C-tests (Files): Likewise.
35094         * modules/unictype/category-Cc-tests (Files): Likewise.
35095         * modules/unictype/category-Cf-tests (Files): Likewise.
35096         * modules/unictype/category-Cn-tests (Files): Likewise.
35097         * modules/unictype/category-Co-tests (Files): Likewise.
35098         * modules/unictype/category-Cs-tests (Files): Likewise.
35099         * modules/unictype/category-L-tests (Files): Likewise.
35100         * modules/unictype/category-Ll-tests (Files): Likewise.
35101         * modules/unictype/category-Lm-tests (Files): Likewise.
35102         * modules/unictype/category-Lo-tests (Files): Likewise.
35103         * modules/unictype/category-Lt-tests (Files): Likewise.
35104         * modules/unictype/category-Lu-tests (Files): Likewise.
35105         * modules/unictype/category-M-tests (Files): Likewise.
35106         * modules/unictype/category-Mc-tests (Files): Likewise.
35107         * modules/unictype/category-Me-tests (Files): Likewise.
35108         * modules/unictype/category-Mn-tests (Files): Likewise.
35109         * modules/unictype/category-N-tests (Files): Likewise.
35110         * modules/unictype/category-Nd-tests (Files): Likewise.
35111         * modules/unictype/category-Nl-tests (Files): Likewise.
35112         * modules/unictype/category-No-tests (Files): Likewise.
35113         * modules/unictype/category-P-tests (Files): Likewise.
35114         * modules/unictype/category-Pc-tests (Files): Likewise.
35115         * modules/unictype/category-Pd-tests (Files): Likewise.
35116         * modules/unictype/category-Pe-tests (Files): Likewise.
35117         * modules/unictype/category-Pf-tests (Files): Likewise.
35118         * modules/unictype/category-Pi-tests (Files): Likewise.
35119         * modules/unictype/category-Po-tests (Files): Likewise.
35120         * modules/unictype/category-Ps-tests (Files): Likewise.
35121         * modules/unictype/category-S-tests (Files): Likewise.
35122         * modules/unictype/category-Sc-tests (Files): Likewise.
35123         * modules/unictype/category-Sk-tests (Files): Likewise.
35124         * modules/unictype/category-Sm-tests (Files): Likewise.
35125         * modules/unictype/category-So-tests (Files): Likewise.
35126         * modules/unictype/category-Z-tests (Files): Likewise.
35127         * modules/unictype/category-Zl-tests (Files): Likewise.
35128         * modules/unictype/category-Zp-tests (Files): Likewise.
35129         * modules/unictype/category-Zs-tests (Files): Likewise.
35130         * modules/unictype/category-and-not-tests (Files): Likewise.
35131         * modules/unictype/category-and-tests (Files): Likewise.
35132         * modules/unictype/category-byname-tests (Files): Likewise.
35133         * modules/unictype/category-name-tests (Files): Likewise.
35134         * modules/unictype/category-none-tests (Files): Likewise.
35135         * modules/unictype/category-of-tests (Files): Likewise.
35136         * modules/unictype/category-or-tests (Files): Likewise.
35137         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35138         * modules/unictype/combining-class-tests (Files): Likewise.
35139         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35140         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35141         * modules/unictype/ctype-blank-tests (Files): Likewise.
35142         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35143         * modules/unictype/ctype-digit-tests (Files): Likewise.
35144         * modules/unictype/ctype-graph-tests (Files): Likewise.
35145         * modules/unictype/ctype-lower-tests (Files): Likewise.
35146         * modules/unictype/ctype-print-tests (Files): Likewise.
35147         * modules/unictype/ctype-punct-tests (Files): Likewise.
35148         * modules/unictype/ctype-space-tests (Files): Likewise.
35149         * modules/unictype/ctype-upper-tests (Files): Likewise.
35150         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35151         * modules/unictype/decimal-digit-tests (Files): Likewise.
35152         * modules/unictype/digit-tests (Files): Likewise.
35153         * modules/unictype/mirror-tests (Files): Likewise.
35154         * modules/unictype/numeric-tests (Files): Likewise.
35155         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35156         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35157         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35158         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35159         Likewise.
35160         * modules/unictype/property-bidi-block-separator-tests (Files):
35161         Likewise.
35162         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35163         Likewise.
35164         * modules/unictype/property-bidi-common-separator-tests (Files):
35165         Likewise.
35166         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35167         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35168         Likewise.
35169         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35170         Likewise.
35171         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35172         Likewise.
35173         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35174         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35175         Likewise.
35176         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35177         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35178         Likewise.
35179         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35180         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35181         * modules/unictype/property-bidi-segment-separator-tests (Files):
35182         Likewise.
35183         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35184         * modules/unictype/property-byname-tests (Files): Likewise.
35185         * modules/unictype/property-combining-tests (Files): Likewise.
35186         * modules/unictype/property-composite-tests (Files): Likewise.
35187         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35188         * modules/unictype/property-dash-tests (Files): Likewise.
35189         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35190         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35191         Likewise.
35192         * modules/unictype/property-deprecated-tests (Files): Likewise.
35193         * modules/unictype/property-diacritic-tests (Files): Likewise.
35194         * modules/unictype/property-extender-tests (Files): Likewise.
35195         * modules/unictype/property-format-control-tests (Files): Likewise.
35196         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35197         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35198         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35199         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35200         * modules/unictype/property-hyphen-tests (Files): Likewise.
35201         * modules/unictype/property-id-continue-tests (Files): Likewise.
35202         * modules/unictype/property-id-start-tests (Files): Likewise.
35203         * modules/unictype/property-ideographic-tests (Files): Likewise.
35204         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35205         * modules/unictype/property-ids-trinary-operator-tests (Files):
35206         Likewise.
35207         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35208         * modules/unictype/property-iso-control-tests (Files): Likewise.
35209         * modules/unictype/property-join-control-tests (Files): Likewise.
35210         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35211         * modules/unictype/property-line-separator-tests (Files): Likewise.
35212         * modules/unictype/property-logical-order-exception-tests (Files):
35213         Likewise.
35214         * modules/unictype/property-lowercase-tests (Files): Likewise.
35215         * modules/unictype/property-math-tests (Files): Likewise.
35216         * modules/unictype/property-non-break-tests (Files): Likewise.
35217         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35218         * modules/unictype/property-numeric-tests (Files): Likewise.
35219         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35220         * modules/unictype/property-other-default-ignorable-code-point-tests
35221         (Files): Likewise.
35222         * modules/unictype/property-other-grapheme-extend-tests (Files):
35223         Likewise.
35224         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35225         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35226         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35227         * modules/unictype/property-other-math-tests (Files): Likewise.
35228         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35229         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35230         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35231         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35232         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35233         * modules/unictype/property-private-use-tests (Files): Likewise.
35234         * modules/unictype/property-punctuation-tests (Files): Likewise.
35235         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35236         * modules/unictype/property-radical-tests (Files): Likewise.
35237         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35238         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35239         * modules/unictype/property-space-tests (Files): Likewise.
35240         * modules/unictype/property-terminal-punctuation-tests (Files):
35241         Likewise.
35242         * modules/unictype/property-test-tests (Files): Likewise.
35243         * modules/unictype/property-titlecase-tests (Files): Likewise.
35244         * modules/unictype/property-unassigned-code-value-tests (Files):
35245         Likewise.
35246         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35247         * modules/unictype/property-uppercase-tests (Files): Likewise.
35248         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35249         * modules/unictype/property-white-space-tests (Files): Likewise.
35250         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35251         * modules/unictype/property-xid-start-tests (Files): Likewise.
35252         * modules/unictype/property-zero-width-tests (Files): Likewise.
35253         * modules/unictype/scripts-tests (Files): Likewise.
35254         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35255         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35256         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35257         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35258         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35259         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35260         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35261         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35262         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35263         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35264         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35265         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35266         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35267         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35268         * modules/uninorm/composition-tests (Files): Likewise.
35269         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35270         * modules/uninorm/decomposition-tests (Files): Likewise.
35271         * modules/uninorm/filter-tests (Files): Likewise.
35272         * modules/uninorm/nfc-tests (Files): Likewise.
35273         * modules/uninorm/nfd-tests (Files): Likewise.
35274         * modules/uninorm/nfkc-tests (Files): Likewise.
35275         * modules/uninorm/nfkd-tests (Files): Likewise.
35276         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35277         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35278         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35279         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35280         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35281         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35282         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35283         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35284         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35285         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35286         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35287         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35288         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35289         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35290         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35291         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35292         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35293         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35294         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35295         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35296         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35297         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35298         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35299         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35300         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35301         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35302         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35303         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35304         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35305         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35306         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35307         * modules/uniwidth/u8-width-tests (Files): Likewise.
35308         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35309         * modules/uniwidth/u16-width-tests (Files): Likewise.
35310         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35311         * modules/uniwidth/u32-width-tests (Files): Likewise.
35312         * modules/uniwidth/width-tests (Files): Likewise.
35313         * modules/unlink-tests (Files): Likewise.
35314         * modules/unsetenv-tests (Files): Likewise.
35315         * modules/usleep-tests (Files): Likewise.
35316         * modules/utimens-tests (Files): Likewise.
35317         * modules/utimensat-tests (Files): Likewise.
35318         * modules/vasnprintf-posix-tests (Files): Likewise.
35319         * modules/vasnprintf-tests (Files): Likewise.
35320         * modules/vasprintf-posix-tests (Files): Likewise.
35321         * modules/vasprintf-tests (Files): Likewise.
35322         * modules/vdprintf-posix-tests (Files): Likewise.
35323         * modules/vfprintf-posix-tests (Files): Likewise.
35324         * modules/vprintf-posix-tests (Files): Likewise.
35325         * modules/vsnprintf-posix-tests (Files): Likewise.
35326         * modules/vsnprintf-tests (Files): Likewise.
35327         * modules/vsprintf-posix-tests (Files): Likewise.
35328         * modules/wcrtomb-tests (Files): Likewise.
35329         * modules/wcsnrtombs-tests (Files): Likewise.
35330         * modules/wcsrtombs-tests (Files): Likewise.
35331         * modules/wctype-tests (Files): Likewise.
35332         * modules/wcwidth-tests (Files): Likewise.
35333         * modules/xmemdup0-tests (Files): Likewise.
35334         * modules/xprintf-posix-tests (Files): Likewise.
35335         * modules/xvasprintf-tests (Files): Likewise.
35336
35337 2009-12-24  Eric Blake  <ebb9@byu.net>
35338
35339         test-nanosleep: fix typo
35340         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35341         patch.
35342         Reported by Bruno Haible.
35343
35344 2009-12-24  Bruno Haible  <bruno@clisp.org>
35345
35346         Reduce namespace pollution on glibc systems.
35347         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35348         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35349         systems.
35350         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35351         <getopt.h> on glibc systems.
35352         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35353         systems.
35354         * lib/fcntl.c: Include <unistd.h> here instead.
35355
35356 2009-12-24  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35359
35360 2009-12-24  Eric Blake  <ebb9@byu.net>
35361
35362         tests: add signature checks
35363         * tests/signature.h (SIGNATURE_CHECK): New file.
35364         * modules/atexit-tests (Files): Use it.
35365         * modules/btowc-tests (Files): Likewise.
35366         * modules/canonicalize-lgpl-tests (Files): Likewise.
35367         * modules/ceilf-tests (Files): Likewise.
35368         * modules/ceill-tests (Files): Likewise.
35369         * modules/chown-tests (Files): Likewise.
35370         * modules/dprintf-posix-tests (Files): Likewise.
35371         * modules/dup2-tests (Files): Likewise.
35372         * modules/dup3-tests (Files): Likewise.
35373         * modules/duplocale-tests (Files): Likewise.
35374         * modules/fchdir-tests (Files): Likewise.
35375         * modules/fcntl-tests (Files): Likewise.
35376         * modules/fdopendir-tests (Files): Likewise.
35377         * modules/fflush-tests (Files): Likewise.
35378         * modules/flock-tests (Files): Likewise.
35379         * modules/floorf-tests (Files): Likewise.
35380         * modules/floorl-tests (Files): Likewise.
35381         * modules/fnmatch-tests (Files): Likewise.
35382         * modules/fopen-tests (Files): Likewise.
35383         * modules/fprintf-posix-tests (Files): Likewise.
35384         * modules/freopen-tests (Files): Likewise.
35385         * modules/frexp-nolibm-tests (Files): Likewise.
35386         * modules/frexp-tests (Files): Likewise.
35387         * modules/frexpl-nolibm-tests (Files): Likewise.
35388         * modules/frexpl-tests (Files): Likewise.
35389         * modules/fseek-tests (Files): Likewise.
35390         * modules/fseeko-tests (Files): Likewise.
35391         * modules/fsync-tests (Files): Likewise.
35392         * modules/ftell-tests (Files): Likewise.
35393         * modules/ftello-tests (Files): Likewise.
35394         * modules/futimens-tests (Files): Likewise.
35395         * modules/getaddrinfo-tests (Files): Likewise.
35396         * modules/getcwd-tests (Files): Likewise.
35397         * modules/getdelim-tests (Files): Likewise.
35398         * modules/getdtablesize-tests (Files): Likewise.
35399         * modules/getgroups-tests (Files): Likewise.
35400         * modules/gethostname-tests (Files): Likewise.
35401         * modules/getline-tests (Files): Likewise.
35402         * modules/getopt-posix-tests (Files): Likewise.
35403         * modules/gettimeofday-tests (Files): Likewise.
35404         * modules/glob-tests (Files): Likewise.
35405         * modules/iconv-tests (Files): Likewise.
35406         * modules/inet_ntop-tests (Files): Likewise.
35407         * modules/inet_pton-tests (Files): Likewise.
35408         * modules/isblank-tests (Files): Likewise.
35409         * modules/lchown-tests (Files): Likewise.
35410         * modules/ldexpl-tests (Files): Likewise.
35411         * modules/link-tests (Files): Likewise.
35412         * modules/linkat-tests (Files): Likewise.
35413         * modules/lseek-tests (Files): Likewise.
35414         * modules/lstat-tests (Files): Likewise.
35415         * modules/mbrtowc-tests (Files): Likewise.
35416         * modules/mbsinit-tests (Files): Likewise.
35417         * modules/mbsnrtowcs-tests (Files): Likewise.
35418         * modules/mbsrtowcs-tests (Files): Likewise.
35419         * modules/memchr-tests (Files): Likewise.
35420         * modules/memcmp-tests (Files): Likewise.
35421         * modules/memmem-tests (Files): Likewise.
35422         * modules/memrchr-tests (Files): Likewise.
35423         * modules/mkdir-tests (Files): Likewise.
35424         * modules/mkfifo-tests (Files): Likewise.
35425         * modules/mkfifoat-tests (Files): Likewise.
35426         * modules/mknod-tests (Files): Likewise.
35427         * modules/nanosleep-tests (Files): Likewise.
35428         * modules/nl_langinfo-tests (Files): Likewise.
35429         * modules/obstack-printf-tests (Files): Likewise.
35430         * modules/open-tests (Files): Likewise.
35431         * modules/openat-tests (Files): Likewise.
35432         * modules/perror-tests (Files): Likewise.
35433         * modules/pipe2-tests (Files): Likewise.
35434         * modules/poll-tests (Files): Likewise.
35435         * modules/popen-tests (Files): Likewise.
35436         * modules/posix_spawn-tests (Files): Likewise.
35437         * modules/posix_spawnp-tests (Files): Likewise.
35438         * modules/pread-tests (Files): Likewise.
35439         * modules/printf-posix-tests (Files): Likewise.
35440         * modules/pty-tests (Files): Likewise.
35441         * modules/random_r-tests (Files): Likewise.
35442         * modules/rawmemchr-tests (Files): Likewise.
35443         * modules/readlink-tests (Files): Likewise.
35444         * modules/remove-tests (Files): Likewise.
35445         * modules/rename-tests (Files): Likewise.
35446         * modules/renameat-tests (Files): Likewise.
35447         * modules/rmdir-tests (Files): Likewise.
35448         * modules/round-tests (Files): Likewise.
35449         * modules/roundf-tests (Files): Likewise.
35450         * modules/roundl-tests (Files): Likewise.
35451         * modules/select-tests (Files): Likewise.
35452         * modules/setenv-tests (Files): Likewise.
35453         * modules/sigaction-tests (Files): Likewise.
35454         * modules/sleep-tests (Files): Likewise.
35455         * modules/snprintf-posix-tests (Files): Likewise.
35456         * modules/snprintf-tests (Files): Likewise.
35457         * modules/sprintf-posix-tests (Files): Likewise.
35458         * modules/stat-tests (Files): Likewise.
35459         * modules/strcasestr-tests (Files): Likewise.
35460         * modules/strchrnul-tests (Files): Likewise.
35461         * modules/strerror-tests (Files): Likewise.
35462         * modules/strsignal-tests (Files): Likewise.
35463         * modules/strstr-tests (Files): Likewise.
35464         * modules/strtod-tests (Files): Likewise.
35465         * modules/strverscmp-tests (Files): Likewise.
35466         * modules/symlink-tests (Files): Likewise.
35467         * modules/symlinkat-tests (Files): Likewise.
35468         * modules/times-tests (Files): Likewise.
35469         * modules/trunc-tests (Files): Likewise.
35470         * modules/truncf-tests (Files): Likewise.
35471         * modules/truncl-tests (Files): Likewise.
35472         * modules/tsearch-tests (Files): Likewise.
35473         * modules/uname-tests (Files): Likewise.
35474         * modules/unlink-tests (Files): Likewise.
35475         * modules/unsetenv-tests (Files): Likewise.
35476         * modules/usleep-tests (Files): Likewise.
35477         * modules/utimensat-tests (Files): Likewise.
35478         * modules/vasprintf-tests (Files): Likewise.
35479         * modules/vdprintf-posix-tests (Files): Likewise.
35480         * modules/vfprintf-posix-tests (Files): Likewise.
35481         * modules/vprintf-posix-tests (Files): Likewise.
35482         * modules/vsnprintf-posix-tests (Files): Likewise.
35483         * modules/vsnprintf-tests (Files): Likewise.
35484         * modules/vsprintf-posix-tests (Files): Likewise.
35485         * modules/wcrtomb-tests (Files): Likewise.
35486         * modules/wcsnrtombs-tests (Files): Likewise.
35487         * modules/wcsrtombs-tests (Files): Likewise.
35488         * modules/wcwidth-tests (Files): Likewise.
35489         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35490         * tests/test-isinf.c (isinf): Likewise.
35491         * tests/test-isnan.c (isnan): Likewise.
35492         * tests/test-signbit.c (signbit): Likewise.
35493         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35494         declaration, either as macro or with correct signature.
35495         (select): Ensure function under test is declared with correct
35496         signature in correct header.
35497         * tests/test-atexit.c (atexit): Likewise.
35498         * tests/test-btowc.c (btowc): Likewise.
35499         * tests/test-canonicalize-lgpl.c (realpath)
35500         (canonicalize_file_name): Likewise.
35501         * tests/test-ceilf1.c (ceilf): Likewise.
35502         * tests/test-ceill.c (ceill): Likewise.
35503         * tests/test-chown.c (chown): Likewise.
35504         * tests/test-dprintf-posix.c (dprintf): Likewise.
35505         * tests/test-dup2.c (dup2): Likewise.
35506         * tests/test-dup3.c (dup3): Likewise.
35507         * tests/test-duplocale.c (duplocale): Likewise.
35508         * tests/test-fchdir.c (fchdir): Likewise.
35509         * tests/test-fchownat.c (fchownat): Likewise.
35510         * tests/test-fcntl.c (fcntl): Likewise.
35511         * tests/test-fdopendir.c (fdopendir): Likewise.
35512         * tests/test-fflush.c (fflush): Likewise.
35513         * tests/test-flock.c (flock): Likewise.
35514         * tests/test-floorf1.c (floorf): Likewise.
35515         * tests/test-floorl.c (floorl): Likewise.
35516         * tests/test-fnmatch.c (fnmatch): Likewise.
35517         * tests/test-fopen.c (fopen): Likewise.
35518         * tests/test-fprintf-posix.c (fprintf): Likewise.
35519         * tests/test-freopen.c (freopen): Likewise.
35520         * tests/test-frexp.c (frexp): Likewise.
35521         * tests/test-frexpl.c (frexpl): Likewise.
35522         * tests/test-fseek.c (fseek): Likewise.
35523         * tests/test-fseeko.c (fseeko): Likewise.
35524         * tests/test-fstatat.c (fstatat): Likewise.
35525         * tests/test-fsync.c (fsync): Likewise.
35526         * tests/test-ftell.c (ftell): Likewise.
35527         * tests/test-ftello.c (ftello): Likewise.
35528         * tests/test-futimens.c (futimens): Likewise.
35529         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35530         (gai_strerror): Likewise.
35531         * tests/test-getcwd.c (getcwd): Likewise.
35532         * tests/test-getdelim.c (getdelim): Likewise.
35533         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35534         * tests/test-getgroups.c (getgroups): Likewise.
35535         * tests/test-gethostname.c (gethostname): Likewise.
35536         * tests/test-getline.c (getline): Likewise.
35537         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35538         Likewise.
35539         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35540         * tests/test-glob.c (glob, globfree): Likewise.
35541         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35542         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35543         * tests/test-inet_pton.c (inet_pton): Likewise.
35544         * tests/test-isblank.c (isblank): Likewise.
35545         * tests/test-lchown.c (lchown): Likewise.
35546         * tests/test-ldexpl.c (ldexpl): Likewise.
35547         * tests/test-link.c (link): Likewise.
35548         * tests/test-linkat.c (linkat): Likewise.
35549         * tests/test-lseek.c (lseek): Likewise.
35550         * tests/test-lstat.c (lstat): Likewise.
35551         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35552         * tests/test-mbsinit.c (mbsinit): Likewise.
35553         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35554         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35555         * tests/test-memchr.c (memchr): Likewise.
35556         * tests/test-memcmp.c (memcmp): Likewise.
35557         * tests/test-memmem.c (memmem): Likewise.
35558         * tests/test-memrchr.c (memrchr): Likewise.
35559         * tests/test-mkdir.c (mkdir): Likewise.
35560         * tests/test-mkdirat.c (mkdirat): Likewise.
35561         * tests/test-mkfifo.c (mkfifo): Likewise.
35562         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35563         * tests/test-mknod.c (mknod): Likewise.
35564         * tests/test-nanosleep.c (nanosleep): Likewise.
35565         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35566         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35567         Likewise.
35568         * tests/test-open.c (open): Likewise.
35569         * tests/test-openat.c (openat): Likewise.
35570         * tests/test-perror.c (perror): Likewise.
35571         * tests/test-pipe2.c (pipe2): Likewise.
35572         * tests/test-poll.c (poll): Likewise.
35573         * tests/test-popen.c (popen, pclose): Likewise.
35574         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35575         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35576         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35577         (posix_spawn_file_actions_destroy)
35578         (posix_spawn_file_actions_addclose)
35579         (posix_spawn_file_actions_addopen)
35580         (posix_spawn_file_actions_adddup2): Likewise.
35581         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35582         * tests/test-pread.c (pread): Likewise.
35583         * tests/test-printf-posix.c (printf): Likewise.
35584         * tests/test-pty.c (openpty, forkpty): Likewise.
35585         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35586         (random_r): Likewise.
35587         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35588         * tests/test-readlink.c (readlink): Likewise.
35589         * tests/test-remove.c (remove): Likewise.
35590         * tests/test-rename.c (rename): Likewise.
35591         * tests/test-renameat.c (renameat): Likewise.
35592         * tests/test-rmdir.c (rmdir): Likewise.
35593         * tests/test-round1.c (round): Likewise.
35594         * tests/test-roundf1.c (roundf): Likewise.
35595         * tests/test-roundl.c (roundl): Likewise.
35596         * tests/test-setenv.c (setenv): Likewise.
35597         * tests/test-sigaction.c (sigaction): Likewise.
35598         * tests/test-sleep.c (sleep): Likewise.
35599         * tests/test-snprintf.c (snprintf): Likewise.
35600         * tests/test-sprintf-posix.c (sprintf): Likewise.
35601         * tests/test-stat.c (stat): Likewise.
35602         * tests/test-stpncpy.c (stpncpy): Likewise.
35603         * tests/test-strcasestr.c (strcasestr): Likewise.
35604         * tests/test-strchrnul.c (strchrnul): Likewise.
35605         * tests/test-strerror.c (strerror): Likewise.
35606         * tests/test-strsignal.c (strsignal): Likewise.
35607         * tests/test-strstr.c (strstr): Likewise.
35608         * tests/test-strtod.c (strtod): Likewise.
35609         * tests/test-strverscmp.c (strverscmp): Likewise.
35610         * tests/test-symlink.c (symlink): Likewise.
35611         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35612         * tests/test-times.c (times): Likewise.
35613         * tests/test-trunc1.c (trunc): Likewise.
35614         * tests/test-truncf1.c (truncf): Likewise.
35615         * tests/test-truncl.c (truncl): Likewise.
35616         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35617         Likewise.
35618         * tests/test-uname.c (uname): Likewise.
35619         * tests/test-unlink.c (unlink): Likewise.
35620         * tests/test-unlinkat.c (unlinkat): Likewise.
35621         * tests/test-unsetenv.c (unsetenv): Likewise.
35622         * tests/test-usleep.c (usleep): Likewise.
35623         * tests/test-utimensat.c (utimensat): Likewise.
35624         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35625         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35626         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35627         * tests/test-vprintf-posix.c (vprintf): Likewise.
35628         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35629         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35630         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35631         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35632         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35633         * tests/test-wcwidth.c (wcwidth): Likewise.
35634
35635         build: pull in conditional headers during GNULIB_POSIXCHECK
35636         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35637         definitions from any conditionally-included headers.
35638         * lib/stdlib.in.h (includes): Likewise.
35639         * lib/unistd.in.h (includes): Likewise.
35640
35641 2009-12-24  Bruno Haible  <bruno@clisp.org>
35642
35643         * tests/test-argv-iter.c: Include header file being tested immediately
35644         after config.h.
35645         * tests/test-base64.c: Likewise.
35646         * tests/test-flock.c: Likewise.
35647         * tests/test-fsync.c: Likewise.
35648         * tests/test-getdate.c: Likewise.
35649         * tests/test-getndelim2.c: Likewise.
35650         * tests/test-isfinite.c: Likewise.
35651         * tests/test-isinf.c: Likewise.
35652         * tests/test-strerror.c: Likewise.
35653         * tests/test-strsignal.c: Likewise.
35654
35655 2009-12-23  Eric Blake  <ebb9@byu.net>
35656
35657         unistd: work around cygwin bug
35658         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35659         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35660         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35661
35662 2009-12-23  Bruno Haible  <bruno@clisp.org>
35663
35664         localename: More tests.
35665         * tests/test-localename.c (SIZEOF): New macro.
35666         (categories): New variable.
35667         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35668         test_locale_name_default): Add test w.r.t. thread locale.
35669         (test_locale_name_thread): New function.
35670         (main): Invoke it.
35671
35672         localename: Make aware of thread locale.
35673         * lib/localename.h (gl_locale_name_thread): New declaration.
35674         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35675         behaviour with respect to thread locale.
35676         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35677         <langinfo.h>, glthread/lock.h.
35678         (SIZE_BITS): New macro.
35679         (string_hash): New function.
35680         (struct hash_node): New type.
35681         (HASH_TABLE_SIZE): New macro.
35682         (struniq_hash_table, struniq_lock): New variables.
35683         (struniq): New function.
35684         (gl_locale_name_thread): New function.
35685         (gl_locale_name): Invoke it.
35686         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35687         * modules/localename (Depends-on): Add lock.
35688         Reported by Mike Gran <spk121@yahoo.com>.
35689
35690 2009-12-23  Eric Blake  <ebb9@byu.net>
35691
35692         va-args: new module
35693         * modules/va-args: New file.
35694         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35695         * MODULES.html.sh (Core language properties): Mention it.
35696
35697         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35698         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35699         named alias for __attribute__((__unused__)).
35700         * lib/chown.c: Update client.
35701         * lib/fchmodat.c: Likewise.
35702         * lib/fts.c: Likewise.
35703         * lib/getdate.y: Likewise.
35704         * lib/getgroups.c: Likewise.
35705         * lib/getopt.c: Likewise.
35706         * lib/getugroups.c: Likewise.
35707         * lib/mkdir.c: Likewise.
35708         * lib/mkfifo.c: Likewise.
35709         * lib/mkfifoat.c: Likewise.
35710         * lib/mknod.c: Likewise.
35711         * lib/mknodat.c: Likewise.
35712         * lib/readlink.c: Likewise.
35713         * lib/se-context.in.h: Likewise.
35714         * lib/se-selinux.in.h: Likewise.
35715         * lib/sockets.c: Likewise.
35716         * lib/symlink.c: Likewise.
35717         * lib/symlinkat.c: Likewise.
35718         * lib/unicodeio.c: Likewise.
35719         * lib/unistr.h: Likewise.
35720         * tests/test-areadlink.c: Likewise.
35721         * tests/test-areadlinkat.c: Likewise.
35722         * tests/test-filenamecat.c: Likewise.
35723         * tests/test-fseeko.c: Likewise.
35724         * tests/test-ftello.c: Likewise.
35725         * tests/test-getdate.c: Likewise.
35726         * tests/test-getgroups.c: Likewise.
35727         * tests/test-gethostname.c: Likewise.
35728         * tests/test-quotearg.c: Likewise.
35729         * tests/test-version-etc.c: Likewise.
35730         * tests/test-xalloc-die.c: Likewise.
35731         * tests/test-xfprintf-posix.c: Likewise.
35732         * tests/test-xprintf-posix.c: Likewise.
35733         * tests/test-xvasprintf.c: Likewise.
35734
35735         tests: avoid compiler warnings
35736         * tests/test-fcntl.c (main): Delete unused parameters.
35737         * tests/test-freopen-safer.c (main): Likewise.
35738         * tests/test-xalloc-die.c (main): Mark unused parameters.
35739         * tests/test-fseeko.c (main): Likewise.
35740         * tests/test-ftello.c (main): Likewise.
35741         * tests/test-nanosleep.c (main): Avoid declaration warning.
35742         * tests/test-sleep.c (main): Likewise.
35743         * tests/test-unsetenv.c (main): Silence warning about string
35744         literal.
35745         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35746
35747 2009-12-23  Bruno Haible  <bruno@clisp.org>
35748
35749         * tests/test-localename.c (test_locale_name): New function, extracted
35750         from main. Also test mixed situations.
35751         (test_locale_name_posix, test_locale_name_environ,
35752         test_locale_name_default): New functions.
35753         (main): Invoke them all.
35754         * modules/localename-tests (configure.ac): Test for newlocale.
35755
35756 2009-12-23  Bruno Haible  <bruno@clisp.org>
35757
35758         unistd: Ensure getcwd gets declared before being overridden.
35759         * lib/unistd.in.h: Conditionally include <io.h>.
35760
35761 2009-12-22  Bruno Haible  <bruno@clisp.org>
35762
35763         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35764         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35765         (gl_WCHAR_H): Invoke it.
35766         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35767         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35768         Reported by Karl Berry <karl@freefriends.org>.
35769
35770 2009-12-22  Eric Blake  <ebb9@byu.net>
35771
35772         math, unistd: avoid redundant includes
35773         * lib/math.in.h (isnan): No need to re-include <math.h>.
35774         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35775
35776         getsubopt: work around cygwin bug
35777         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35778         avoid conflicting with system getsubopt.
35779         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35780         bug.
35781
35782         getopt: synchronize from glibc
35783         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35784         parameter order.  Adjust all callers.
35785         (_getopt_internal_r, main): Adjust quoting in error messages.
35786         Drop considerations for outdated POSIX 1003.2 error message.
35787         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35788         callers.
35789         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35790
35791         test-getopt: test stderr behavior
35792         * modules/getopt-posix-tests (Depends-on): Add dup2.
35793         * tests/test-getopt.c (ASSERT): Avoid stderr.
35794         (main): Move stderr to a temporary file.
35795         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35796         Instead, add parameter to inform caller if output occurred.
35797         (test_getopt): Adjust all existing tests to expect silence, and
35798         add new tests of leading ":".
35799         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35800         glibc shortcomings with leading "-:" or "+:" in optstring.
35801         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35802         Likewise.
35803         * doc/posix-functions/getopt.texi (getopt): Likewise.
35804
35805         test-getopt: enhance test
35806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35807         supports optind=0.
35808         * tests/test-getopt.c (OPTIND_MIN): Move...
35809         * tests/test-getopt.h (OPTIND_MIN): ...here.
35810         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35811         Require that optind=0 works, since modern BSD supports it in
35812         addition to optreset, and since coreutils expects it.
35813         (test_getopt_long_only): New test.
35814         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35815         glibc shortcomings with 'W;', and enforcement of optind=0.
35816         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35817         Likewise.
35818
35819 2009-12-21  Bruno Haible  <bruno@clisp.org>
35820
35821         localename: Improvements for MacOS X and Cygwin.
35822         * lib/localename.h (gl_locale_name_environ): New declaration.
35823         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35824         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35825         (gl_locale_name_posix): Invoke it.
35826         (gl_locale_name_default): Add comments. Use Windows native API also on
35827         Cygwin.
35828
35829 2009-12-21  Bruno Haible  <bruno@clisp.org>
35830
35831         Update list of Win32 locale ids.
35832         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35833         (LANG_SAMI): Renamed from LANG_SAAMI.
35834         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35835         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35836         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35837         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35838         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35839         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35840         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35841         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
35842         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
35843         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
35844         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
35845         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
35846         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
35847         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
35848         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
35849         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
35850         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
35851         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
35852         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
35853         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
35854         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
35855         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
35856         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
35857         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
35858         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
35859         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
35860         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
35861         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
35862         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
35863         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
35864         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
35865         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
35866         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
35867         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
35868         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
35869         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
35870         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
35871         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
35872         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
35873         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
35874         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
35875         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
35876         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
35877         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
35878         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
35879         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
35880         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
35881         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
35882         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
35883         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
35884         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
35885         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
35886         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
35887         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
35888         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
35889         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
35890         Add more languages and countries for Sami, Sorbian. Add more countries
35891         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
35892         for Pashto. Change country for Syriac, Tswana.
35893
35894 2009-12-21  Eric Blake  <ebb9@byu.net>
35895
35896         test-utimens: avoid spurious failure
35897         * tests/test-chown.h (nap): Factor...
35898         * tests/nap.h: ...into new file.
35899         * tests/test-lchown.h (nap): Avoid duplication.
35900         * tests/test-utimens-common.h (nap): Use shared implementation,
35901         necessary on file systems with 1-second resolution.
35902         * modules/chown-tests (Files): Include new file.
35903         * modules/fdutimensat-tests (Files): Likewise.
35904         * modules/futimens-tests (Files): Likewise.
35905         * modules/lchown-tests (Files): Likewise.
35906         * modules/openat-tests (Files): Likewise.
35907         * modules/utimens-tests (Files): Likewise.
35908         * modules/utimensat-tests (Files): Likewise.
35909
35910 2009-12-19  Eric Blake  <ebb9@byu.net>
35911
35912         futimens, utimensat: work around Linux bug
35913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
35914         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35915         * lib/utimensat.c (rpl_utimensat): Work around it.
35916         * lib/futimens.c (rpl_futimens): Adjust comment.
35917
35918         utimens: work around Linux ctime bug
35919         * lib/utimens.c (detect_ctime_bug): New helper function.
35920         (update_timespec): Differentiate between workaround needed for
35921         this bug vs. what is needed for systems that lack utimensat.
35922         (fdutimens, lutimens): Work around bug.
35923
35924         utimens: check for ctime update
35925         * tests/test-utimens-common.h (check_ctime): Define.
35926         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
35927         * tests/test-futimens.h (test_futimens): Likewise.
35928         * tests/test-lutimens.h (test_lutimens): Likewise.
35929         * doc/posix-functions/futimens.texi (futimens): Document the bug.
35930         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35931
35932 2009-12-19  Bruno Haible  <bruno@clisp.org>
35933
35934         dprintf-posix: Check against memory leak fixed on 2009-12-15.
35935         * tests/test-dprintf-posix2.sh: New file.
35936         * tests/test-dprintf-posix2.c: New file.
35937         * modules/dprintf-posix-tests (Files): Add them.
35938         (configure.ac): Check for getrlimit and setrlimit.
35939         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35940
35941 2009-12-19  Bruno Haible  <bruno@clisp.org>
35942
35943         fprintf-posix: Check against memory leak fixed on 2009-12-15.
35944         * tests/test-fprintf-posix3.sh: New file.
35945         * tests/test-fprintf-posix3.c: New file.
35946         * modules/fprintf-posix-tests (Files): Add them.
35947         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35948
35949 2009-12-19  Eric Blake  <ebb9@byu.net>
35950
35951         dirfd: fix prototype
35952         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
35953         * lib/dirfd.c (dirfd): Likewise.
35954
35955         canonicalize: reduce memory usage
35956         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
35957         allocation to size.
35958         Reported by Solar Designer <solar@openwall.com>.
35959
35960 2009-12-19  Bruno Haible  <bruno@clisp.org>
35961
35962         New module attribute 'Applicability'.
35963         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
35964         * gnulib-tool: New option --extract-applicability.
35965         (func_usage): Document it.
35966         (sed_extract_prog): Recognize it.
35967         (func_get_applicability): New function.
35968         (func_import): Generalize handling of 'link-warning' module.
35969         * modules/link-warning (Applicability): New section.
35970         * modules/arg-nonnull (Applicability): New section.
35971         Repoted by Simon Josefsson <simon@josefsson.org>.
35972
35973 2009-12-19  Bruno Haible  <bruno@clisp.org>
35974
35975         fflush: tweak
35976         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
35977         * lib/fseeko.c (rpl_fseeko): Likewise.
35978
35979 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
35980
35981         * lib/gl_list.h: Fix typo in comment.
35982
35983 2009-12-16  Eric Blake  <ebb9@byu.net>
35984
35985         fcntl: use to simplify other modules
35986         * modules/cloexec (Depends-on): Add fcntl.
35987         * modules/fchdir (Depends-on): Likewise.
35988         * modules/fd-safer-flag (Depends-on): Likewise.
35989         * modules/unistd-safer (Depends-on): Likewise.
35990         * modules/dup3 (configure.ac): Set module indicator.
35991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
35992         missing.
35993         * lib/fchdir.c (_gl_register_dup): Fix comment.
35994         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
35995         * lib/dup-safer.c (dup_safer): Likewise.
35996         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
35997         * lib/dup3.c (dup3): Likewise.
35998         * tests/test-fchdir.c (main): Enhance test.
35999         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36000
36001         fcntl: port portions of fcntl to mingw
36002         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36003         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36004         replacement for mingw.
36005         * modules/fcntl (Description): Update.
36006         (Depends-on): Add dup2.
36007         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36008         * modules/fcntl-h (Makefile.am): Substitute it.
36009         * lib/fcntl.in.h (fcntl): Update declaration.
36010         (F_DUPFD, F_GETFD): New macros, when needed.
36011         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36012         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36013         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36014         we now guarantee.
36015
36016         fcntl: work around cygwin bug in F_DUPFD
36017         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36018         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36019         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36020         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36021         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36022
36023         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36024         * modules/fcntl (Files): List new files.
36025         (configure.ac): Run a test.
36026         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36027         * lib/fcntl.c (rpl_fcntl): Likewise.
36028         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36029         (gl_FCNTL_H): Always replace fcntl.h.
36030         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36031         * lib/fcntl.in.h (fcntl): Declare replacement.
36032         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36033         needed, plus a witness.
36034         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36035         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36036         * tests/test-fcntl.c: New file.
36037         * modules/fcntl-tests: Likewise.
36038
36039         binary-io: avoid potential compilation warning
36040         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36041         directives.
36042
36043         fflush: avoid compilation error on NetBSD
36044         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36045         between off_t and fpos_t, since the latter is sometimes a struct.
36046         * lib/fseeko.c (rpl_fseeko): Likewise.
36047         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36048
36049 2009-12-15  Eric Blake  <ebb9@byu.net>
36050
36051         fcntl-h, stdio, sys_ioctl: fix declarations
36052         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36053         function must not take arguments.
36054         * lib/sys_ioctl.in.h (ioctl): Likewise.
36055         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36056         (open): Add a link warning.
36057
36058 2009-12-15  Jim Meyering  <meyering@redhat.com>
36059
36060         areadlink, areadlink-with-size: relax license to LGPLv2+
36061         * modules/areadlink (License): Relax to LGPLv2+.
36062         * modules/areadlink-with-size (License): Likewise.
36063
36064 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36065             Bruno Haible  <bruno@clisp.org>
36066
36067         *printf: Fix memory leak.
36068         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36069         * lib/vfprintf.c (vfprintf): Likewise.
36070         * lib/dprintf.c (dprintf): Likewise.
36071         * lib/vdprintf.c (vdprintf): Likewise.
36072
36073 2009-12-14  Eric Blake  <ebb9@byu.net>
36074
36075         accept4: adjust module dependencies
36076         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36077
36078         utimens: one more try at avoiding compiler warning
36079         * lib/utimens.c (lutimens): Lower scope of result.
36080
36081 2009-12-13  Bruno Haible  <bruno@clisp.org>
36082
36083         Move the malloc checking from module 'list' to new module 'xlist'.
36084         * modules/xlist: New file.
36085         * lib/gl_xlist.h: New file.
36086         * lib/gl_xlist.c: New file.
36087         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36088         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36089         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36090         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36091         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36092         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36093         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36094         gl_sortedlist_nx_add): New declarations.
36095         (struct gl_list_implementation): Rename and change methods accordingly.
36096         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36097         (gl_list_nx_create): Renamed from gl_list_create.
36098         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36099         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36100         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36101         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36102         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36103         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36104         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36105         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36106         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36107         gl_list_create_empty.
36108         (gl_list_nx_create): Renamed from gl_list_create.
36109         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36110         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36111         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36112         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36113         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36114         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36115         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36116         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36117         * lib/gl_array_list.c: Don't include xalloc.h.
36118         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36119         NULL upon out-of-memory.
36120         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36121         out-of-memory.
36122         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36123         Change return type to 'int'.
36124         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36125         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36126         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36127         upon out-of-memory.
36128         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36129         upon out-of-memory.
36130         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36131         upon out-of-memory.
36132         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36133         upon out-of-memory.
36134         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36135         out-of-memory.
36136         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36137         Update.
36138         (gl_array_list_implementation): Update.
36139         * lib/gl_carray_list.c: Don't include xalloc.h.
36140         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36141         Return NULL upon out-of-memory.
36142         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36143         out-of-memory.
36144         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36145         Change return type to 'int'.
36146         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36147         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36148         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36149         upon out-of-memory.
36150         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36151         upon out-of-memory.
36152         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36153         out-of-memory.
36154         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36155         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36156         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36157         Update.
36158         (gl_carray_list_implementation): Update.
36159         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36160         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36161         gl_linked_create_empty. Return NULL upon out-of-memory.
36162         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36163         out-of-memory.
36164         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36165         Change return type to 'int'. Return -1 upon out-of-memory.
36166         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36167         out-of-memory.
36168         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36169         upon out-of-memory.
36170         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36171         upon out-of-memory.
36172         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36173         NULL upon out-of-memory.
36174         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36175         upon out-of-memory.
36176         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36177         out-of-memory.
36178         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36179         Update.
36180         * lib/gl_linked_list.c: Don't include xalloc.h.
36181         (gl_linked_list_implementation): Update.
36182         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36183         (add_to_bucket): Change return type to 'int'.
36184         (gl_linkedhash_list_implementation): Update.
36185         * lib/gl_anytree_list1.h (free_subtree): New function.
36186         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36187         gl_tree_create_empty. Return NULL upon out-of-memory.
36188         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36189         Change return type to 'int'. Return -1 upon out-of-memory.
36190         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36191         out-of-memory.
36192         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36193         (gl_tree_remove_node): New function, moved here from
36194         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36195         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36196         Update.
36197         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36198         malloc, not xmalloc. Return NULL upon out-of-memory.
36199         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36200         out-of-memory.
36201         (gl_tree_remove_node_from_tree): New function, extracted from
36202         gl_tree_remove_node.
36203         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36204         upon out-of-memory.
36205         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36206         out-of-memory.
36207         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36208         upon out-of-memory.
36209         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36210         upon out-of-memory.
36211         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36212         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36213         not xmalloc. Return NULL upon out-of-memory.
36214         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36215         out-of-memory.
36216         (gl_tree_remove_node_from_tree): New function, extracted from
36217         gl_tree_remove_node.
36218         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36219         upon out-of-memory.
36220         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36221         out-of-memory.
36222         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36223         upon out-of-memory.
36224         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36225         upon out-of-memory.
36226         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36227         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36228         gl_anytree_list1.h before gl_anyavltree_list2.h.
36229         (gl_avltree_list_implementation): Update.
36230         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36231         gl_anytree_list1.h before gl_anyavltree_list2.h.
36232         (gl_rbtree_list_implementation): Update.
36233         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36234         Change return type to 'int'. Return -1 upon out-of-memory. Use
36235         __builtin_expect.
36236         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36237         (gl_avltreehash_list_implementation): Update.
36238         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36239         (gl_rbtreehash_list_implementation): Update.
36240         * modules/array-list (Depends-on): Remove xalloc.
36241         * modules/carray-list (Depends-on): Likewise.
36242         * modules/linked-list (Depends-on): Likewise.
36243         * modules/linkedhash-list (Depends-on): Likewise.
36244         * modules/avltree-list (Depends-on): Likewise.
36245         * modules/rbtree-list (Depends-on): Likewise.
36246         * modules/avltreehash-list (Depends-on): Likewise.
36247         * modules/rbtreehash-list (Depends-on): Likewise.
36248
36249         * modules/xsublist: New file.
36250         * lib/gl_xsublist.h: New file.
36251         * lib/gl_xsublist.c: New file.
36252         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36253         (gl_sublist_nx_create): New declaration.
36254         * lib/gl_sublist.c: Don't include xalloc.h.
36255         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36256         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36257         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36258         Change return type to 'int'. Return -1 upon out-of-memory.
36259         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36260         upon out-of-memory.
36261         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36262         NULL upon out-of-memory.
36263         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36264         upon out-of-memory.
36265         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36266         NULL upon out-of-memory.
36267         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36268         NULL upon out-of-memory.
36269         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36270         upon out-of-memory.
36271         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36272         (gl_sublist_list_implementation): Update.
36273         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36274         upon out-of-memory.
36275         * modules/sublist (Depends-on): Remove xalloc.
36276
36277         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36278         * tests/test-carray_list.c: Likewise.
36279         * tests/test-linked_list.c: Likewise.
36280         * tests/test-linkedhash_list.c: Likewise.
36281         * tests/test-avltree_list.c: Likewise.
36282         * tests/test-rbtree_list.c: Likewise.
36283         * tests/test-avltreehash_list.c: Likewise.
36284         * tests/test-rbtreehash_list.c: Likewise.
36285         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36286         * modules/carray-list-tests (Makefile.am): Likewise.
36287         * modules/linked-list-tests (Makefile.am): Likewise.
36288         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36289         * modules/avltree-list-tests (Makefile.am): Likewise.
36290         * modules/rbtree-list-tests (Makefile.am): Likewise.
36291         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36292         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36293
36294         * NEWS: Mention the changes.
36295
36296         * lib/clean-temp.c: Include gl_xlist.h.
36297         * modules/clean-temp (Depends-on): Add xlist.
36298
36299         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36300         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36301
36302         * tests/test-array_oset.c: Include gl_xlist.h.
36303         * modules/array-oset-tests (Depends-on): Add xlist.
36304
36305         Reported by José E. Marchesi <jemarch@gnu.org>.
36306
36307 2009-12-13  Bruno Haible  <bruno@clisp.org>
36308
36309         Move the malloc checking from module 'oset' to new module 'xoset'.
36310         * modules/xoset: New file.
36311         * lib/gl_xoset.h: New file.
36312         * lib/gl_xoset.c: New file.
36313         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36314         declarations.
36315         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36316         (struct gl_oset_implementation): Rename and change methods accordingly.
36317         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36318         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36319         'int'. Mark as __warn_unused_result__.
36320         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36321         gl_oset_create_empty.
36322         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36323         'int'.
36324         * lib/gl_array_oset.c: Don't include xalloc.h.
36325         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36326         malloc, not xmalloc.
36327         (grow): Change return type to 'int'. Don't call xalloc_die.
36328         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36329         to 'int'.
36330         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36331         'int'.
36332         (gl_array_oset_implementation): Update.
36333         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36334         gl_tree_create_empty.
36335         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36336         'int'.
36337         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36338         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36339         xmalloc.
36340         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36341         not xmalloc.
36342         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36343         xmalloc.
36344         (gl_avltree_oset_implementation): Update.
36345         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36346         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36347         xmalloc.
36348         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36349         not xmalloc.
36350         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36351         xmalloc.
36352         (gl_rbtree_oset_implementation): Update.
36353         * modules/array-oset (Depends-on): Remove xalloc.
36354         * modules/avltree-oset (Depends-on): Likewise.
36355         * modules/rbtree-oset (Depends-on): Likewise.
36356         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36357         * tests/test-avltree_oset.c: Likewise.
36358         * tests/test-rbtree_oset.c: Likewise.
36359         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36360         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36361         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36362         * NEWS: Mention the change.
36363
36364 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36365
36366         maint.mk: allow a project to override release-prep commands
36367         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36368         commands into a new rule.
36369         (release-prep): New rule.
36370         (release-prep-hook): New overridable variable.
36371
36372 2009-12-13  Bruno Haible  <bruno@clisp.org>
36373
36374         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36375
36376 2009-12-13  Jim Meyering  <meyering@redhat.com>
36377
36378         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36379         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36380
36381 2009-12-12  Bruno Haible  <bruno@clisp.org>
36382
36383         duplocale: Tweak.
36384         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36385
36386 2009-12-12  Karl Berry  <karl@gnu.org>
36387
36388         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36389
36390 2009-12-12  Bruno Haible  <bruno@clisp.org>
36391
36392         * m4/po.m4: Undo incorrect untabification.
36393
36394 2009-12-12  Bruno Haible  <bruno@clisp.org>
36395
36396         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36397         * modules/c-strtod (Depends-on): Add locale.
36398         * modules/c-strtold (Depends-on): Likewise.
36399
36400 2009-12-12  Bruno Haible  <bruno@clisp.org>
36401
36402         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36403
36404 2009-12-11  Eric Blake  <ebb9@byu.net>
36405
36406         setenv: relax requirement in light of POSIX ruling
36407         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36408         not NULL.
36409         * tests/test-setenv.c (main): Relax test.
36410         * tests/test-unsetenv.c (main): Likewise.
36411         * doc/posix-functions/setenv.texi (setenv): Document this.
36412         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36413
36414 2009-12-11  Bruno Haible  <bruno@clisp.org>
36415
36416         New module 'fd-safer-flag'.
36417         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36418         * lib/dup-safer.c (dup_safer_flag): Remove function.
36419         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36420         * lib/fd-safer.c (fd_safer_flag): Remove function.
36421         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36422         * modules/cloexec (configure.ac): Drop indicator macro.
36423         * modules/fd-safer-flag: New file.
36424         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36425         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36426         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36427
36428 2009-12-11  Bruno Haible  <bruno@clisp.org>
36429
36430         Tests for module 'nl_langinfo'.
36431         * modules/nl_langinfo-tests: New file.
36432         * tests/test-nl_langinfo.sh: New file.
36433         * tests/test-nl_langinfo.c: New file.
36434
36435         New module 'nl_langinfo'.
36436         * lib/nl_langinfo.c: New file.
36437         * m4/nl_langinfo.m4: New file.
36438         * modules/nl_langinfo: New file.
36439         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36440
36441 2009-12-11  Bruno Haible  <bruno@clisp.org>
36442
36443         Tests for module 'langinfo'.
36444         * modules/langinfo-tests: New file.
36445         * tests/test-langinfo.c: New file.
36446
36447         New module 'langinfo'.
36448         * lib/langinfo.in.h: New file.
36449         * m4/langinfo_h.m4: New file.
36450         * modules/langinfo: New file.
36451         * doc/posix-headers/langinfo.texi: Mention the new module.
36452
36453 2009-12-11  Bruno Haible  <bruno@clisp.org>
36454
36455         * lib/config.charset: Untabify.
36456
36457 2009-12-11  Bruno Haible  <bruno@clisp.org>
36458
36459         * modules/unistd-safer (configure.ac): Drop indicator macro.
36460
36461 2009-12-11  Bruno Haible  <bruno@clisp.org>
36462
36463         Move pipe2-safer code to its own file.
36464         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36465         * lib/pipe-safer.c (pipe2_safer): Remove function.
36466         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36467         (Makefile.am): Add it to lib_SOURCES.
36468
36469 2009-12-10  Bruno Haible  <bruno@clisp.org>
36470
36471         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36472
36473 2009-12-10  Bruno Haible  <bruno@clisp.org>
36474
36475         Declare which arguments expect non-NULL values, for GCC and clang.
36476         * build-aux/arg-nonnull.h: New file.
36477         * modules/arg-nonnull: New file.
36478         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36479         (inet_ntop, inet_pton): Use it.
36480         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36481         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36482         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36483         (open, openat): Use it.
36484         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36485         (fnmatch): Use it.
36486         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36487         (getopt, getopt_long, getopt_long_only): Use it.
36488         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36489         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36490         Use it.
36491         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36492         (iconv_open): Use it.
36493         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36494         (strtoimax, strtoumax): Use it.
36495         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36496         (duplocale): Use it.
36497         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36498         (frexp, frexpl): Use it.
36499         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36500         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36501         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36502         (tsearch, tfind, tdelete, twalk): Use it.
36503         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36504         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36505         sigpending): Use it.
36506         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36507         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36508         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36509         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36510         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36511         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36512         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36513         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36514         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36515         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36516         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36517         Use it.
36518         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36519         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36520         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36521         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36522         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36523         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36524         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36525         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36526         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36527         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36528         strtoull, unsetenv): Use it.
36529         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36530         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36531         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36532         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36533         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36534         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36535         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36536         (strcasecmp, strncasecmp): Use it.
36537         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36538         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36539         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36540         rpl_setsockopt): Use it.
36541         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36542         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36543         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36544         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36545         (gettimeofday): Use it.
36546         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36547         (times): Use it.
36548         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36549         (uname): Use it.
36550         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36551         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36552         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36553         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36554         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36555         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36556         unlinkat, write): Use it.
36557         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36558         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36559         * lib/argv-iter.h: Include arg-nonnull.h.
36560         (_ATTRIBUTE_NONNULL_): Remove macro.
36561         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36562         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36563         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36564         optimization.
36565         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36566         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36567         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36568         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36569         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36570         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36571         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36572         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36573         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36574         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36575         * modules/dirent (Depends-on): Add arg-nonnull.
36576         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36577         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36578         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36579         * modules/fnmatch (Depends-on): Add arg-nonnull.
36580         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36581         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36582         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36583         * modules/glob (Depends-on): Add arg-nonnull.
36584         (Makefile.am): Insert arg-nonnull.h into glob.h.
36585         * modules/iconv_open (Depends-on): Add arg-nonnull.
36586         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36587         * modules/inttypes (Depends-on): Add arg-nonnull.
36588         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36589         * modules/locale (Depends-on): Add arg-nonnull.
36590         (Makefile.am): Insert arg-nonnull.h into locale.h.
36591         * modules/math (Depends-on): Add arg-nonnull.
36592         (Makefile.am): Insert arg-nonnull.h into math.h.
36593         * modules/netdb (Depends-on): Add arg-nonnull.
36594         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36595         * modules/search (Depends-on): Add arg-nonnull.
36596         (Makefile.am): Insert arg-nonnull.h into search.h.
36597         * modules/signal (Depends-on): Add arg-nonnull.
36598         (Makefile.am): Insert arg-nonnull.h into signal.h.
36599         * modules/spawn (Depends-on): Add arg-nonnull.
36600         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36601         * modules/stdio (Depends-on): Add arg-nonnull.
36602         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36603         * modules/stdlib (Depends-on): Add arg-nonnull.
36604         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36605         * modules/string (Depends-on): Add arg-nonnull.
36606         (Makefile.am): Insert arg-nonnull.h into string.h.
36607         * modules/strings (Depends-on): Add arg-nonnull.
36608         (Makefile.am): Insert arg-nonnull.h into strings.h.
36609         * modules/sys_socket (Depends-on): Add arg-nonnull.
36610         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36611         * modules/sys_stat (Depends-on): Add arg-nonnull.
36612         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36613         * modules/sys_time (Depends-on): Add arg-nonnull.
36614         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36615         * modules/sys_times (Depends-on): Add arg-nonnull.
36616         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36617         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36618         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36619         * modules/time (Depends-on): Add arg-nonnull.
36620         (Makefile.am): Insert arg-nonnull.h into time.h.
36621         * modules/unistd (Depends-on): Add arg-nonnull.
36622         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36623         * modules/wchar (Depends-on): Add arg-nonnull.
36624         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36625         * modules/argv-iter (Depends-on): Add arg-nonnull.
36626         * tests/test-canonicalize.c (null_ptr): New function.
36627         (main): Use it.
36628         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36629         (main): Use it.
36630         * tests/test-memmem.c (null_ptr): New function.
36631         (main): Use it.
36632         Reported by Jim Meyering.
36633
36634 2009-12-10  Bruno Haible  <bruno@clisp.org>
36635
36636         Use spaces for indentation, not tabs.
36637         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36638         * m4/*.m4: Untabify.
36639         * build-aux/*.h: Untabify.
36640         * tests/**/*.[hc]: Untabify.
36641         * README: New section "Indent with spaces, not TABs", based on
36642         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36643         * NEWS: Mention the change.
36644
36645 2009-12-10  Bruno Haible  <bruno@clisp.org>
36646
36647         pty test: Fix link error.
36648         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36649         test_pty_LDADD.
36650
36651 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36652
36653         * modules/pty: New file.
36654         * modules/pty-tests: New file.
36655         * m4/pty.m4: New file.
36656         * tests/test-pty.c: New file.
36657         * doc/glibc-headers/pty.texi: Modified.
36658         * doc/glibc-functions/forkpty.texi: Modified.
36659         * doc/glibc-functions/openpty.texi: Modified.
36660
36661 2009-12-10  Bruno Haible  <bruno@clisp.org>
36662
36663         Avoid syntax error in C++ mode.
36664         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36665
36666 2009-12-10  Bruno Haible  <bruno@clisp.org>
36667
36668         Use sed with option -e.
36669         * gnulib-tool (func_version, func_emit_copyright_notice,
36670         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36671         option -e to sed.
36672         * modules/link-warning (Makefile.am): Likewise.
36673
36674 2009-12-10  Jim Meyering  <meyering@redhat.com>
36675
36676         mgetgroups: do not write bytes beyond end of malloc'd buffer
36677         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36678         username, we call getgroups with a one-element-shorter buffer,
36679         but still told it the length was original, max_n_groups.
36680
36681 2009-12-09  Eric Blake  <ebb9@byu.net>
36682
36683         cloexec: relax license
36684         * modules/cloexec (Maintainer): Add myself.
36685         (License): Use LGPL, not GPL.
36686
36687         link-warning: optimize generation
36688         * modules/link-warning (Makefile.am): Reduce process usage.
36689
36690 2009-12-09  Bruno Haible  <bruno@clisp.org>
36691
36692         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36693         workaround was added on 2009-11-17.
36694
36695 2009-12-09  Jim Meyering  <meyering@redhat.com>
36696             Bruno Haible  <bruno@clisp.org>
36697
36698         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36699         * modules/link-warning (Makefile.am): Make the comment-removing sed
36700         command more robust in the face of bootstrap-prepended comment lines.
36701
36702 2009-12-09  Bruno Haible  <bruno@clisp.org>
36703
36704         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36705         most one group.
36706
36707 2009-12-09  Simon Josefsson <simon@josefsson.org>
36708             Bruno Haible  <bruno@clisp.org>
36709
36710         * build-aux/link-warning.h: Add copyright notice.
36711         * modules/link-warning (Makefile.am): Generate link-warning.h from
36712         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36713         * NEWS: Mention change in link-warning module.
36714         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36715         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36716         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36717         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36718         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36719         * modules/math (Makefile.am): Add dependency to math.h.
36720         * modules/search (Makefile.am): Add dependency to search.h.
36721         * modules/signal (Makefile.am): Add dependency to signal.h.
36722         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36723         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36724         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36725         * modules/string (Makefile.am): Add dependency to string.h.
36726         * modules/strings (Makefile.am): Add dependency to strings.h.
36727         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36728         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36729         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36730         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36731         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36732         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36733         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36734         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36735         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36736
36737 2009-12-09  Bruno Haible  <bruno@clisp.org>
36738
36739         fchdir: Optimize away rpl_fstat when possible.
36740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36741         REPLACE_OPEN_DIRECTORY.
36742         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36743
36744 2009-12-09  Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/fchdir.c: Update comment.
36747
36748 2009-12-09  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36751
36752 2009-12-08  Eric Blake  <ebb9@byu.net>
36753
36754         fchdir: avoid memory leak on re-registration.
36755         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36756
36757 2009-12-08  Jim Meyering  <meyering@redhat.com>
36758
36759         init.sh: avoid Solaris 10 /bin/sh portability problem
36760         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36761         sourced script:
36762           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36763           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36764           bar
36765         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36766         and two tests used that idiom.
36767         * tests/init.sh: Update suggested usage comments.
36768         (path_prepend_): New function, to be used in place
36769         of the --src-path=DIR option.
36770         (setup_): Move PATH-prepending code into path_prepend_.
36771         * tests/test-pread.sh: Adapt to new usage.
36772         * tests/test-xalloc-die.sh: Likewise.
36773
36774 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36775
36776         * doc/gnulib.texi (Glibc pty.h): Add.
36777         * doc/glibc-functions/forkpty.texi: Add.
36778         * doc/glibc-functions/openpty.texi: Add.
36779         Suggested by Bruno Haible.
36780
36781 2009-12-08  Eric Blake  <ebb9@byu.net>
36782
36783         fchdir: fix logic bugs
36784         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36785         * tests/test-fchdir.c (main): Enhance test.
36786         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36787         is in use.
36788
36789         dup2: fix logic bugs
36790         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36791         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36792         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36793         exists.
36794         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36795
36796 2009-12-07  Eric Blake  <ebb9@byu.net>
36797
36798         unlink: fix m4 detection
36799         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36800
36801         unistd-safer: add unit test
36802         * modules/unistd-safer-tests: New file.
36803         * tests/test-dup-safer.c: Likewise.
36804         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36805         * tests/test-dup2.c (setmode): Likewise.
36806         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36807
36808         cloexec: preserve text vs. binary across dup_cloexec
36809         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36810         mode.
36811         * modules/dup2-tests (Depends-on): Add binary-io.
36812         * modules/cloexec-tests (Depends-on): Likewise.
36813         * tests/test-dup2.c (setmode, is_mode): New helpers.
36814         (main): Add tests that translation mode is preserved.
36815         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36816         Reported by Bruno Haible.
36817
36818         mgetgroups: reduce duplicate listings
36819         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36820         resulting array.
36821         * tests/test-chown.h (test_chown): Simplify client.
36822         * tests/test-lchown.h (test_lchown): Likewise.
36823
36824 2009-12-06  Bruno Haible  <bruno@clisp.org>
36825
36826         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36827         value.
36828
36829 2009-12-06  Bruno Haible  <bruno@clisp.org>
36830
36831         * lib/progname.c: Include stdio.h, stdlib.h.
36832         (set_program_name): Reject a NULL argument.
36833
36834 2009-12-05  Eric Blake  <ebb9@byu.net>
36835
36836         pipe2-safer: new module
36837         * modules/pipe2-safer: New file.
36838         * lib/unistd-safer.h (pipe2_safer): New prototype.
36839         * lib/unistd--.h (pipe2): New wrapper.
36840         * lib/pipe-safer.c (pipe2_safer): New function.
36841         * modules/pipe (Depends-on): Add pipe2-safer.
36842         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
36843
36844         stdlib-safer: preserve cloexec flag for mkostemp[s]
36845         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
36846         fd_safer_flag.
36847
36848         unistd-safer: allow preservation of cloexec status via flag
36849         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
36850         prototypes.
36851         * lib/dup-safer.c (dup_safer_flag): New function.
36852         * lib/fd-safer.c (fd_safer_flag): Likewise.
36853         * modules/cloexec (configure.ac): Set witness.
36854
36855         test-dup2: enhance test
36856         * modules/dup2-tests (Depends-on): Add cloexec.
36857         * tests/test-dup2.c (main): Enhance test.
36858
36859         cloexec: add dup_cloexec
36860         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
36861         header and comments.
36862         * lib/cloexec.c (set_cloexec_flag): Add comments.
36863         (dup_cloexec): New function, with mingw implementation borrowed
36864         from...
36865         * lib/w32spawn.h (dup_noinherit): ...here.
36866         * modules/execute (Depends-on): Add cloexec.
36867         * modules/pipe (Depends-on): Likewise.
36868         * modules/cloexec (Depends-on): Add dup2.
36869         * modules/cloexec-tests (Files): New file.
36870         * tests/test-cloexec.c: Likewise.
36871
36872         test-xalloc-die: fix test for mingw
36873         * modules/xalloc-die-tests (Files): Add tests/init.sh.
36874         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
36875         directory and .exe suffix off argv[0] output.
36876
36877         test-fseeko: fix test for mingw
36878         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
36879         than undefining fseek, so test will pass on mingw.
36880
36881 2009-12-05  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/progname.h (set_program_name): Clarify specification.
36884         * lib/progname.c (set_program_name): Likewise.
36885         Reported by Jim Meyering.
36886
36887 2009-12-05  Jim Meyering  <meyering@redhat.com>
36888
36889         maint.mk: backslash-escape parens in default regexp
36890         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
36891         backslash-escape the literal parentheses.
36892
36893         maint.mk: news-date-check: use grep -E
36894         * top/maint.mk (today): Define a Make variable, not a...
36895         (news-date-check): ...shell variable.
36896         (news-date-regexp): Use the Make variable.
36897         Use grep's -E option.  Change the failing diagnostic to mention
36898         the variable, $(news-date-regexp).
36899
36900 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
36901
36902         maintainer-makefile: allow customization of NEWS entry format
36903         * top/maint.mk (news-date-regexp): New overridable variable.
36904         (news-date-check): Use it.
36905
36906 2009-12-04  Eric Blake  <ebb9@byu.net>
36907
36908         mgetgroups: add xgetgroups, and avoid ENOSYS failures
36909         * lib/mgetgroups.h (xgetgroups): New prototype.
36910         * lib/mgetgroups.c (xgetgroups): New wrapper.
36911         (mgetgroups): Handle ENOSYS.
36912         * modules/mgetgroups (Depends-on): Add realloc.
36913         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
36914
36915         mgetgroups: avoid argument promotion issues with -1
36916         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
36917         for invalid gid_t.
36918         * tests/test-chown.h (getegid, test_chown): Likewise.
36919         * tests/test-lchown.h (getegid, test_lchown): Likewise.
36920
36921 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
36922
36923         exclude: Fix header file problems.
36924         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
36925
36926 2009-12-01  Jim Meyering  <meyering@redhat.com>
36927
36928         fts: fts_open: do not let an empty string cause immediate failure
36929         This is required in support of GNU rm, for which the command
36930         "rm A '' B" must process and remove both A and B, in spite of
36931         the empty string argument.
36932         * lib/fts.c (fts_open): Do not let the presence of an empty string
36933         cause fts_open to fail immediately.  Most fts-using tools must be
36934         able to process all arguments, in order, and can be expected to
36935         diagnose such arguments themselves.
36936
36937 2009-11-30  Eric Blake  <ebb9@byu.net>
36938
36939         utimens: fix compilation error
36940         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
36941         Declare variable at right scope.
36942
36943 2009-11-29  Jim Meyering  <meyering@redhat.com>
36944
36945         bootstrap: handle perl-5.11's changed --version output
36946         * build-aux/bootstrap (get_version): Handle perl separately,
36947         since perl-5.11's --version output is different.
36948
36949 2009-11-28  Jim Meyering  <meyering@redhat.com>
36950
36951         userspec: depend on the inttostr module, too
36952         * modules/userspec (Depends-on): Add inttostr.
36953
36954         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
36955         * lib/userspec.c (parse_with_separator): Do not accept a user ID
36956         number of MAXUID when it evaluates to (uid_t) -1.
36957         Likewise for group ID.  Reported by Matt McCutchen in
36958         <http://savannah.gnu.org/bugs/?28113>
36959
36960         userspec: reformat to use spaces, not TABs
36961         * lib/userspec.c: Expand TABs to spaces.
36962         Add Emacs' "indent-tabs-mode: nil" hint.
36963
36964 2009-11-27  Eric Blake  <ebb9@byu.net>
36965
36966         getopt-gnu: flush out another BSD bug
36967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
36968         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
36969         flush out BSD bug.
36970         * tests/test-getopt.h (test_getopt): End lists with NULL.
36971         * tests/test-getopt_long.h (test_getopt_long): Likewise.
36972         (test_getopt_long_posix): Enhance test.
36973         * modules/getopt-posix-tests (Depends-on): Add stdbool.
36974         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
36975         getopt-gnu.
36976         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36977         Likewise.
36978
36979 2009-11-27  Simon Josefsson  <simon@josefsson.org>
36980
36981         * modules/idpriv-droptemp-tests (Notice): Fix text.
36982
36983 2009-11-27  Jim Meyering  <meyering@redhat.com>
36984
36985         test-xalloc-die: avoid spurious failure due to libtool argv difference
36986         In a libtool-enabled project, this test would fail due to a difference
36987         in the emitted program name, e.g.,
36988         -test-xalloc-die: memory exhausted
36989         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
36990         Use program to avoid that.
36991         * modules/xalloc-die-tests (Depends-on): Add progname.
36992         * tests/test-xalloc-die.c: Include progname.h".
36993         (program_name): Remove decl.
36994         (main): Call set_program_name.
36995         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
36996
36997 2009-11-26  Richard Jones  <rjones@redhat.com>
36998
36999         w32sock: leave win32 error in place.
37000         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37001
37002 2009-11-26  Eric Blake  <ebb9@byu.net>
37003
37004         init.sh: suggest to use skip_ and fail_ functions in comments
37005         * tests/init.sh: Add a sentence.
37006
37007 2009-11-25  Bruno Haible  <bruno@clisp.org>
37008
37009         init.sh: add documentation in comments
37010         * tests/init.sh: Add some developer and user documentation.
37011
37012 2009-11-26  Jim Meyering  <meyering@redhat.com>
37013
37014         init.sh: accommodate even those who specify bogus srcdir manually
37015         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37016         configure-time tests to be sanitized, so that there is no need to
37017         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37018         (with no double quotes) suffices.  However, since tests may be
37019         invoked manually, and since you may explicitly set srcdir to the
37020         name of a directory containing spaces, do quote its uses here.
37021         * tests/test-pread.sh: Likewise.
37022         Suggested by Bruno Haible.
37023
37024         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37025         * tests/test-pread.sh: Write no data into the pipe, because
37026         test-pread actually reads none.  This avoids a diagnostic,
37027         "bash: echo: write error: Broken pipe", that arises in the unusual
37028         event something is ignoring SIGPIPE, and might be interpreted
37029         as some sort of failure.  Reported by Bruno Haible.
37030
37031 2009-11-25  Jim Meyering  <meyering@redhat.com>
37032
37033         test-pread: cover failure with ESPIPE and EINVAL
37034         * tests/test-pread.c (main): Test for failure, too.
37035         * tests/test-pread.sh: Invoke with stdin on a pipe.
37036         Suggested by Eric Blake.
37037
37038         pread: improvement and fix
37039         * modules/pread (Depends-on): Depend on lseek, for portability to
37040         e.g., mingw.  Suggested by Eric Blake.
37041         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37042
37043         unistd.in.h: correct declaration of pread
37044         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37045         Reported by Richard W.M. Jones.
37046
37047         test-pread.sh: distribute the test script
37048         * modules/pread-tests (Files): Include test-pread.sh.
37049
37050         test-pread.sh: clean up
37051         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37052         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37053         That is unnecessary, since it's always ".".
37054         Suggestion from Eric Blake.
37055
37056         test-pread.sh: make executable
37057         * tests/test-pread.sh: Set executable bit.
37058         Reported by Eric Blake.
37059
37060         correct typo in test-pread.sh
37061         * tests/test-pread.sh: Add #! line.
37062
37063         test pread
37064         * tests/test-pread.c: New file.
37065         * tests/test-pread.sh: Likewise.
37066         * modules/pread-tests: Likewise.
37067
37068         pread: new module
37069         * modules/pread: New file.
37070         * lib/unistd.in.h (pread): Define/declare.
37071         * lib/pread.c (pread): New file.
37072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37073         * modules/unistd (Makefile.am): Substitute witnesses.
37074         * doc/posix-functions/pread.texi (pread): Update.
37075         * MODULES.html.sh: Add pread.
37076
37077 2009-11-25  Jim Meyering  <meyering@redhat.com>
37078
37079         tests/init.sh: new file to be used via most *.sh tests
37080         * tests/init.sh: New file.
37081
37082 2009-11-25  Eric Blake  <ebb9@byu.net>
37083
37084         utimens: work around older Linux failure with symlinks
37085         * lib/utimens.c (lutimensat_works_really): New variable.
37086         (fdutimens, lutimens): Use it to manage kernels that support
37087         nanosecond times on files, but not on symlinks.
37088         Reported by OndÅ™ej Vašík.
37089
37090         utimes: fix configure grammar
37091         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37092
37093 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37094
37095         regex: Fix fastmap for multibyte character ranges.
37096         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37097         characters when a multibyte character range is included.
37098
37099 2009-11-22  Andy Wingo  <wingo@pobox.com>
37100
37101         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37102         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37103
37104 2009-11-24  Bruno Haible  <bruno@clisp.org>
37105
37106         doc: Most *_l functions exist in MacOS X 10.5.
37107         * doc/posix-functions/duplocale.texi: Update platforms list.
37108         * doc/posix-functions/freelocale.texi: Likewise.
37109         * doc/posix-functions/newlocale.texi: Likewise.
37110         * doc/posix-functions/uselocale.texi: Likewise.
37111         * doc/posix-functions/isalnum_l.texi: Likewise.
37112         * doc/posix-functions/isalpha_l.texi: Likewise.
37113         * doc/posix-functions/isblank_l.texi: Likewise.
37114         * doc/posix-functions/iscntrl_l.texi: Likewise.
37115         * doc/posix-functions/isdigit_l.texi: Likewise.
37116         * doc/posix-functions/isgraph_l.texi: Likewise.
37117         * doc/posix-functions/islower_l.texi: Likewise.
37118         * doc/posix-functions/isprint_l.texi: Likewise.
37119         * doc/posix-functions/ispunct_l.texi: Likewise.
37120         * doc/posix-functions/isspace_l.texi: Likewise.
37121         * doc/posix-functions/isupper_l.texi: Likewise.
37122         * doc/posix-functions/iswalnum_l.texi: Likewise.
37123         * doc/posix-functions/iswalpha_l.texi: Likewise.
37124         * doc/posix-functions/iswblank_l.texi: Likewise.
37125         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37126         * doc/posix-functions/iswctype_l.texi: Likewise.
37127         * doc/posix-functions/iswdigit_l.texi: Likewise.
37128         * doc/posix-functions/iswgraph_l.texi: Likewise.
37129         * doc/posix-functions/iswlower_l.texi: Likewise.
37130         * doc/posix-functions/iswprint_l.texi: Likewise.
37131         * doc/posix-functions/iswpunct_l.texi: Likewise.
37132         * doc/posix-functions/iswspace_l.texi: Likewise.
37133         * doc/posix-functions/iswupper_l.texi: Likewise.
37134         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37135         * doc/posix-functions/isxdigit_l.texi: Likewise.
37136         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37137         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37138         * doc/posix-functions/strcoll_l.texi: Likewise.
37139         * doc/posix-functions/strfmon_l.texi: Likewise.
37140         * doc/posix-functions/strftime_l.texi: Likewise.
37141         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37142         * doc/posix-functions/strxfrm_l.texi: Likewise.
37143         * doc/posix-functions/tolower_l.texi: Likewise.
37144         * doc/posix-functions/toupper_l.texi: Likewise.
37145         * doc/posix-functions/towctrans_l.texi: Likewise.
37146         * doc/posix-functions/towlower_l.texi: Likewise.
37147         * doc/posix-functions/towupper_l.texi: Likewise.
37148         * doc/posix-functions/wcscoll_l.texi: Likewise.
37149         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37150         * doc/posix-functions/wctrans_l.texi: Likewise.
37151         * doc/posix-functions/wctype_l.texi: Likewise.
37152         * doc/glibc-functions/strptime_l.texi: Likewise.
37153         * doc/glibc-functions/strtod_l.texi: Likewise.
37154         * doc/glibc-functions/strtof_l.texi: Likewise.
37155         * doc/glibc-functions/strtol_l.texi: Likewise.
37156         * doc/glibc-functions/strtold_l.texi: Likewise.
37157         * doc/glibc-functions/strtoll_l.texi: Likewise.
37158         * doc/glibc-functions/strtoul_l.texi: Likewise.
37159         * doc/glibc-functions/strtoull_l.texi: Likewise.
37160         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37161         * doc/glibc-functions/wcstod_l.texi: Likewise.
37162         * doc/glibc-functions/wcstof_l.texi: Likewise.
37163         * doc/glibc-functions/wcstol_l.texi: Likewise.
37164         * doc/glibc-functions/wcstold_l.texi: Likewise.
37165         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37166         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37167         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37168
37169 2009-11-24  Bruno Haible  <bruno@clisp.org>
37170
37171         duplocale: Fix logic bug.
37172         * lib/duplocale.c: Don't include <langinfo.h>.
37173         (_NL_LOCALE_NAME): Remove macro.
37174         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37175         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37176
37177 2009-11-23  Jim Meyering  <meyering@redhat.com>
37178
37179         test-update-copyright: don't hard-code /usr/bin/perl
37180         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37181         perl to print the current year.  Gilles Espinasse reported that
37182         the replaced use of perl was hard-coded as /usr/bin/perl.
37183
37184 2009-11-23  Bruno Haible  <bruno@clisp.org>
37185
37186         duplocale: Add support for glibc 2.3.x.
37187         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37188
37189 2009-11-22  Bruno Haible  <bruno@clisp.org>
37190
37191         vasnprintf: Tiny optimization.
37192         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37193         MacOS X.
37194
37195 2009-11-22  Bruno Haible  <bruno@clisp.org>
37196
37197         Tests for module 'duplocale'.
37198         * modules/duplocale-tests: New file.
37199         * tests/test-duplocale.c: New file.
37200
37201         New module 'duplocale'.
37202         * m4/duplocale.m4: New file.
37203         * lib/locale.in.h (duplocale): New declaration.
37204         * lib/duplocale.c: New file.
37205         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37206         gl_LOCALE_H_DEFAULTS): New macros.
37207         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37208         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37209         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37210         REPLACE_DUPLOCALE.
37211         * modules/duplocale: New file.
37212         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37213
37214 2009-11-22  Bruno Haible  <bruno@clisp.org>
37215
37216         * modules/locale-tests (configure.ac): Test for newlocale function.
37217         * tests/test-locale.c: When the system has extended locale functions,
37218         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37219
37220         locale: Make locale_t available when possible.
37221         * lib/locale.in.h: Include <xlocale.h> when it exists.
37222         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37223         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37224         * modules/locale (Depends-on): Add extensions.
37225         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37226         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37227
37228 2009-11-22  Bruno Haible  <bruno@clisp.org>
37229
37230         Add comments.
37231         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37232         invocation.
37233         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37234         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37235         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37236
37237 2009-11-22  Bruno Haible  <bruno@clisp.org>
37238
37239         error: account for the possibility of freopen (stdout).
37240         * lib/error.c: Include <unistd.h>.
37241         (flush_stdout): New function, extracted from error and error_at_line.
37242         Determine stdout's fd dynamically.
37243         (error, error_at_line): Invoke flush_stdout.
37244         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37245         * modules/error (Depends-on): Add unistd.
37246
37247 2009-11-22  Bruno Haible  <bruno@clisp.org>
37248
37249         diffseq: Add comment.
37250         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37251
37252 2009-11-22  Jim Meyering  <meyering@redhat.com>
37253
37254         c-stack: avoid defining an unused static function
37255         * lib/c-stack.c (find_stack_direction): Do not define this function
37256         when it will not be used.
37257
37258         diffseq: avoid spurious gcc warnings
37259         * lib/diffseq.h (IF_LINT2): Define.
37260         (compareseq): Use it to initialize two members of "part".
37261         This avoids two used-uninitialized warnings.
37262
37263 2009-11-21  Jim Meyering  <meyering@redhat.com>
37264
37265         c-stack: avoid "ignoring return value of `write'" warning
37266         * lib/c-stack.c: Include "ignore-value.h".
37267         (die): Explicitly ignore each write return value.
37268         * modules/c-stack (Depends-on): Add ignore-value.
37269
37270 2009-11-21  Bruno Haible  <bruno@clisp.org>
37271
37272         diffseq: reduce scope of variable 'best'.
37273         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37274         variable, earlier used for two different purposes.
37275
37276 2009-11-21  Jim Meyering  <meyering@redhat.com>
37277
37278         diffseq: remove useless assignment to "best"
37279         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37280         assignment.  At that point "best" is already guaranteed to be zero.
37281
37282 2009-11-20  Eric Blake  <ebb9@byu.net>
37283
37284         build: mention ftp redirector in release announcements
37285         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37286         values that used to come from cfg.mk; mention FTP redirect URL.
37287         * build-aux/announce-gen: Mention the mirror list.
37288         Suggested by Karl Berry.
37289
37290         nanosleep: improve port to mingw
37291         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37293         LIB_NANOSLEEP, but only when needed.
37294         * modules/select (Link): Document LIBSOCKET.
37295         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37296         enough.
37297
37298         nanosleep: work around cygwin bug
37299         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37300         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37301         bug.
37302         (getnow): Delete, not needed.
37303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37304         LIB_CLOCK_GETTIME.
37305         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37306         clock-time, gettime.
37307         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37308         bug.
37309         * modules/nanosleep-tests: New test.
37310         * tests/test-nanosleep.c: New file.
37311
37312         sleep: work around cygwin bug
37313         * lib/sleep.c (rpl_sleep): Work around the bug.
37314         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37315         (gl_PREREQ_SLEEP): Delete unused macro.
37316         * modules/sleep (Depends-on): Add verify.
37317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37318         * modules/unistd (Makefile.am): Substitute witness.
37319         * lib/unistd.in.h (sleep): Update prototype.
37320         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37321         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37322         * modules/sleep-tests (Depends-on): Check for alarm.
37323
37324 2009-11-20  Jim Meyering  <meyering@redhat.com>
37325
37326         maint.mk: improve sc_prohibit_magic_number_exit
37327         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37328         so it does not match uses like System.exit(1).
37329         Add comments showing how to correct all offenders.
37330
37331 2009-11-19  Eric Blake  <ebb9@byu.net>
37332
37333         xalloc-die-tests: add missing library
37334         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37335
37336         test-xvasprintf: silence compiler warnings
37337         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37338         empty string from gcc.
37339
37340 2009-11-19  Jim Meyering  <meyering@redhat.com>
37341
37342         xfreopen: new module, from coreutils
37343         * modules/xfreopen: New module.
37344         * lib/xfreopen.c: New file.
37345         * lib/xfreopen.h: New file.
37346         * MODULES.html.sh (File stream based Input/Output"): Add it.
37347
37348 2009-11-19  Eric Blake  <ebb9@byu.net>
37349
37350         manywarnings: depend on warnings
37351         * modules/manywarnings (Depends-on): Add warnings.
37352
37353         build: avoid compiler warnings
37354         * lib/select.c (rpl_select): Delete unused variable.
37355         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37356
37357 2009-11-18  Eric Blake  <ebb9@byu.net>
37358
37359         tests: avoid false negative with --with-packager
37360         * tests/test-version-etc.sh: Discard packager information.
37361         * tests/test-argp-version-etc-1.sh: Likewise.
37362         Reported by Mike Frysinger.
37363
37364         utimens: fix regression on Solaris
37365         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37366         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37367         can only change fd timestamps via futimesat.  Instead, use an
37368         additional witness macro to avoid BSD bug.
37369         Reported by Jim Meyering.
37370
37371 2009-11-17  Eric Blake  <ebb9@byu.net>
37372
37373         usleep: use it to simplify tests
37374         * modules/stat-time-tests (Depends-on): Add usleep.
37375         (configure.ac): Drop usleep check.
37376         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37377         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37378         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37379         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37380         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37381         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37382         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37383         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37384         Likewise.
37385         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37386         * tests/test-lchown.h (nap): Likewise.
37387         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37388         * tests/test-stat-time.c (nap): Likewise.
37389         * tests/test-utimens-common.h (nap): Update comments.
37390
37391         usleep: new module
37392         * modules/usleep: New file.
37393         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37394         * lib/usleep.c (usleep): Likewise.
37395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37396         * modules/unistd (Makefile.am): Substitute witnesses.
37397         * lib/unistd.in.h (usleep): Add declaration.
37398         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37399         * MODULES.html.sh (Date and time): Likewise.
37400         * modules/usleep-tests (Depends-on): New test.
37401         * tests/test-usleep.c: New file.
37402
37403         chown: work around OpenBSD bug
37404         * lib/chown.c (rpl_chown): Work around the bug.
37405         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37406         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37408         * modules/chown (Depends-on): Add stdbool.
37409         * modules/lchown (Depends-on): Likewise.
37410         * doc/posix-functions/chown.texi (chown): Document the bug.
37411         * doc/posix-functions/lchown.texi (lchown): Likewise.
37412         * tests/test-lchown.h (test_chown): Relax test.
37413
37414         mkstemp: avoid conflict with C++ keyword template
37415         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37416         * lib/mkostemp.c (mkostemp): Likewise.
37417         * lib/mkostemps.c (mkostemps): Likewise.
37418         * lib/mkstemp.c (mkstemp): Likewise.
37419         * lib/mkstemps.c (mkstemps): Likewise.
37420
37421         xalloc-die-tests: optimize
37422         * tests/test-xalloc-die.sh: Reduce number of processes.
37423
37424 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37425
37426         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37427         patch from ludo@gnu.org (Ludovic Courtès).
37428
37429 2009-11-17  Jim Meyering  <meyering@redhat.com>
37430
37431         version-etc: use proper license string
37432         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37433         * modules/version-etc-fsf: Likewise.
37434
37435 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37436
37437         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37438         printed to stdout.  Deal with EOL differences.
37439
37440 2009-11-17  Eric Blake  <ebb9@byu.net>
37441
37442         unsetenv: work around Solaris bug
37443         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37444         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37445         Reported by Jim Meyering.
37446
37447         vasnprintf: avoid compiler warnings
37448         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37449         variables.
37450         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37451
37452 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37453
37454         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37455         settings since xalloc-die is no longer the self test,
37456         xalloc-die.sh is.
37457
37458 2009-11-17  Jim Meyering  <meyering@redhat.com>
37459
37460         test-xalloc-die.sh: make the code agree with the commit log
37461         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37462         at the end, just in case you happen to have a test-xalloc-die
37463         program in some other PATH directory.
37464
37465         test-xalloc-die.sh: fix a portability bug
37466         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37467         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37468         Otherwise, argv[0] (as often seen in diagnostics) would be too
37469         system-dependent, sometimes with, and sometimes without the leading "./".
37470
37471         version-etc-fsf: relax license to LGPLv3+
37472         * modules/version-etc-fsf (License): Relax license.
37473
37474 2009-11-16  Eric Blake  <ebb9@byu.net>
37475
37476         xalloc-die-tests: avoid printing null pointer
37477         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37478         shell script.
37479         * tests/test-xalloc-die.c (program_name): Declare.
37480         * tests/test-xalloc-die.sh (tmpfiles): New file.
37481
37482         setenv, unsetenv: work around various bugs
37483         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37484         (setenv) [HAVE_SETENV]: Work around bugs.
37485         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37486         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37487         for bugs.
37488         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37489         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37491         * modules/stdlib (Makefile.am): Update substitutions.
37492         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37493         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37494         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37495         * modules/setenv-tests: New test.
37496         * modules/unsetenv-tests: Likewise.
37497         * tests/test-setenv.c: New file.
37498         * tests/test-unsetenv.c: Likewise.
37499
37500 2009-11-16  Jim Meyering  <meyering@redhat.com>
37501
37502         version-etc: relax license to LGPLv3+
37503         * modules/version-etc (License): Relax license.
37504
37505         better AC_REQUIRE expanded-before-required-warning avoidance
37506         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37507         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37508         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37509         which is no longer needed.
37510
37511 2009-11-16  Eric Blake  <ebb9@byu.net>
37512
37513         test-freading: clean up temporary file
37514         * tests/test-freading.c (main): Remove file on success, and use
37515         ASSERT more liberally.
37516         Reported by Jim Meyering.
37517
37518 2009-11-16  Jim Meyering  <meyering@redhat.com>
37519
37520         avoid new AC_REQUIRE expanded-before-required warnings
37521         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37522         merely using it.
37523         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37524         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37525
37526 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37527
37528         * tests/test-xalloc-die.c: New file.
37529         * modules/xalloc-die-tests: New file.
37530         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37531         XFAIL_TESTS so it can be appended by modules.
37532
37533 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37534
37535         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37536         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37537
37538 2009-11-14  Eric Blake  <ebb9@byu.net>
37539
37540         fnmatch: avoid compiler warning
37541         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37542         to silence compiler warning about mismatch signedness in ?:.
37543         Reported by Robert Millan.
37544
37545         intprops: add double-inclusion guard
37546         * lib/intprops.h: Allow idempotent includes.
37547         Suggested by Bruce Korb.
37548
37549         openat: detect Solaris fchownat bug
37550         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37551         penalizing glibc chownat when only lchownat is broken.
37552         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37553         trailing slash bugs.
37554         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37555         * modules/openat-tests (Files): Include more files.
37556         (Depends-on): Add mgetgroups, sleep, stat-time.
37557         (configure.ac): Add additional checks.
37558         (Makefile.am): Build new test.
37559         * tests/test-fchownat.c: New file.
37560
37561         lchown: detect Solaris and FreeBSD bug
37562         * lib/lchown.c (rpl_lchown): Work around bug.
37563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37565         * modules/unistd (Makefile.am): Populate it.
37566         * lib/unistd.in.h (lchown): Update declaration.
37567         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37568         * modules/lchown-tests: New file.
37569         * tests/test-lchown.h (test_lchown): Likewise.
37570         * tests/test-lchown.c (main): Likewise.
37571
37572         chown: detect Solaris and FreeBSD bug
37573         * lib/chown.c (rpl_chown): Work around bug.
37574         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37575         (gl_PREREQ_CHOWN): Delete.
37576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37577         * modules/unistd (Makefile.am): Populate it.
37578         * lib/unistd.in.h (chown): Update declaration.
37579         * lib/lchown.c (chown): Update client.
37580         * modules/lchown (Depends-on): Add lstat.
37581         * doc/posix-functions/chown.texi (chown): Document the bug.
37582         * doc/posix-functions/getgroups.texi (getgroups): Document
37583         getgroups pitfall.
37584         * modules/chown-tests: New file.
37585         * tests/test-chown.h (test_chown): Likewise.
37586         * tests/test-chown.c (main): Likewise.
37587
37588 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37589
37590         gnulib-tool: correctly detect absence of m4 directories
37591         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37592
37593 2009-11-14  Jim Meyering  <meyering@redhat.com>
37594
37595         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37596         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37597
37598 2009-11-14  John W. Eaton  <jwe@gnu.org>
37599
37600         strftime.h: wrap funtion declaration in extern "C" block
37601         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37602
37603 2009-11-13  Eric Blake  <ebb9@byu.net>
37604
37605         getgroups: avoid compiler warning
37606         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37607
37608         getgroups: work around FreeBSD bug
37609         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37610         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37611         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37612         * tests/test-getgroups.c (main): Fix buffer overrun.
37613
37614         getgroups: avoid compilation failure
37615         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37616         * modules/getgroups (Depends-on): Add stdint.
37617
37618 2009-11-13  Jim Meyering  <meyering@redhat.com>
37619
37620         test-getgroups: avoid compilation failure
37621         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37622
37623 2009-11-13  Eric Blake  <ebb9@byu.net>
37624
37625         mgetgroups: new module, taken from coreutils
37626         * modules/mgetgroups: New file.
37627         * lib/mgetgroups.h: Likewise.
37628         * lib/mgetgroups.c (mgetgroups): Likewise.
37629         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37630         * MODULES.html.sh (Users and groups): Mention it.
37631
37632         getgroups: don't expose GETGROUPS_T to user
37633         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37634         an element at a time if GETGROUPS_T is wrong size.
37635         * lib/getugroups.h (getugroups): Change signature.
37636         * lib/unistd.in.h (getgroups): Likewise.
37637         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37638         signature needs fixing.
37639         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37640         AC_TYPE_GETGROUPS.
37641         * modules/group-member (Depends-on): Add getgroups.
37642         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37643         (group_member): Rely on getgroups replacement.
37644         * lib/getugroups.c (getugroups): Use gid_t.
37645         * tests/test-getgroups.c (main): Likewise.
37646         * NEWS: Mention the signature change.
37647         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37648         problem with signature.
37649         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37650         GETGROUPS_T is still useful for setgroups.
37651
37652         getgroups, getugroups: provide stubs for mingw
37653         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37654         * lib/getugroups.c (getugroups): Likewise.
37655         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37656         function.  Modernize replacement scheme.
37657         (gl_PREREQ_GETGROUPS): Delete.
37658         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37659         * modules/getgroups (configure.ac): Declare witness.
37660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37661         * modules/unistd (Depends-on): Substitute witness.
37662         * lib/unistd.in.h (getgroups): Declare replacement.
37663
37664         getgroups: avoid calling exit
37665         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37666         drop xalloc.
37667         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37668         dependencies.
37669         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37670         exiting, in the rare case of malloc failure.
37671
37672         getgroups: fix logic error
37673         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37674         has more than 20 groups.
37675         * modules/getgroups-tests: New test.
37676         * tests/test-getgroups.c: New file.
37677
37678 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37679
37680         * tests/test-base64.c: Improve.
37681
37682 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37683
37684         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37685         Blake <ebb9@byu.net>.
37686
37687 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37688
37689         * tests/test-xvasprintf.c: Add %s%s related checks.
37690
37691 2009-11-12  Eric Blake  <ebb9@byu.net>
37692
37693         version-etc: match standards.texi style
37694         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37695         and use <> only for URLs.
37696
37697 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37698
37699         fts: do not fail on a submount during traversal
37700         * lib/fts.c (fts_build): Read the stat info again after opening
37701         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37702         Original report at http://bugzilla.redhat.com/501848.
37703
37704 2009-11-12  Jim Meyering  <meyering@redhat.com>
37705
37706         bootstrap: sync from coreutils
37707         * build-aux/bootstrap (bootstrap_epilogue): New function.
37708         Use git_modules_config in one more place.  This make bootstrap's
37709         --gnulib-srcdir option more useful for testing.
37710
37711         bootstrap: generalize autoheader check
37712         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37713         AC_CONFIG_HEADERS.
37714
37715 2009-11-11  Eric Blake  <ebb9@byu.net>
37716
37717         mkfifoat: use new modules for Solaris and BSD bugs
37718         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37719         * lib/mkfifoat.c (mknodat): Split...
37720         * lib/mknodat.c (mknodat): ...into new file.
37721         * modules/mkfifoat (Files): Ship new file.
37722         (Depends-on): Add mkfifo, mknod.
37723         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37724         (Depends-on): Add symlink.
37725         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37726         redundant with test_mkfifo.h.
37727         (do_mkfifoat, do_mknodat): New helpers.
37728
37729         mknod: new module
37730         * modules/mknod: New file.
37731         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37732         * lib/mknod.c (mknod): Likewise.
37733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37734         defaults.
37735         * modules/sys_stat (Makefile.am): Substitute them.
37736         * lib/sys_stat.in.h (mknod): Declare replacement.
37737         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37738         Document it.
37739         * doc/posix-functions/mknod.texi (mknod): Likewise.
37740         * modules/mknod-tests: New test.
37741         * tests/test-mknod.c: Likewise.
37742
37743         mkfifo: new module
37744         * modules/mkfifo: New file.
37745         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37746         * lib/mkfifo.c (mkfifo): Likewise.
37747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37748         defaults.
37749         * modules/sys_stat (Makefile.am): Substitute them.
37750         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37751         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37752         Document it.
37753         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37754         * modules/mkfifo-tests: New test.
37755         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37756         from test-mkfifoat.c.
37757         * tests/test-mkfifo.c: New file.
37758
37759         readlink: detect FreeBSD bug
37760         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37761         slash on symlink.
37762         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37763         * tests/test-readlink.h (test_readlink): Enhance test.
37764
37765         symlink: detect FreeBSD bug
37766         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37767         slash on symlink.
37768         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37769         * tests/test-symlink.h (test_symlink): Enhance test.
37770
37771 2009-11-10  Eric Blake  <ebb9@byu.net>
37772
37773         link: detect FreeBSD bug
37774         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37775         symlink.
37776         * doc/posix-functions/link.texi (link): Document the bug.
37777         * tests/test-link.h (test_link): Enhance test.
37778         * tests/test-linkat.c (main): Update caller.
37779
37780         unlink, remove: detect FreeBSD bug
37781         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37782         slash on symlink.
37783         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37784         * doc/posix-functions/remove.texi (remove): Likewise.
37785         * tests/test-unlink.h (test_unlink): Enhance test.
37786         * tests/test-remove.c (main): Likewise.
37787
37788 2009-11-09  Eric Blake  <ebb9@byu.net>
37789
37790         rename: detect FreeBSD bug
37791         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37792         slash on symlink.
37793         * modules/renameat-tests (Depends-on): Add filenamecat.
37794         * tests/test-rename.h (test_rename): Allow one more errno.
37795         * tests/test-renameat.c (main): Likewise.
37796         * doc/posix-functions/rename.texi (rename): Document the bug.
37797
37798         open: detect FreeBSD bug
37799         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37800         symlink.
37801         * doc/posix-functions/open.texi (open): Document the bug.
37802         * doc/posix-functions/utimes.texi (utimes): Likewise.
37803         * tests/test-open.h (test_open): Add parameters, and test symlink
37804         handling.
37805         * tests/test-open.c (main): Adjust caller.
37806         * tests/test-fcntl-safer.c (main): Likewise.
37807         * modules/open-tests (Depends-on): Add stdbool, symlink.
37808         * modules/fcntl-safer-tests (Depends-on): Likewise.
37809         * tests/test-openat.c (main): Add test-open tests.
37810
37811         stat: detect FreeBSD bug
37812         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37813         symlink.
37814         * doc/posix-functions/stat.texi (stat): Document the bug.
37815         * tests/test-stat.h (test_stat_func): Add argument.
37816         * tests/test-stat.c (main): Adjust caller.
37817         * tests/test-fstatat.c (main): Likewise.
37818         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37819         Reported by Jim Meyering.
37820
37821 2009-11-09  James Youngman  <jay@gnu.org>
37822
37823         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37824         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37825
37826 2009-11-08  Jim Meyering  <meyering@redhat.com>
37827
37828         utimens: remove invalid futimesat call
37829         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37830         It used the file descriptor of the target file as the DIR_FD
37831         parameter and NULL as the file name.  That caused failure with
37832         errno == EFAULT on FreeBSD-8.0-rc2
37833
37834 2009-11-07  Eric Blake  <ebb9@byu.net>
37835
37836         fflush, freadseek: use fseeko, not fseek
37837         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37838         (clear_ungetc_buffer): Avoid potential problems on large files.
37839         * lib/freadseek.c (freadseek): Likewise.
37840         * modules/freadseek (Depends-on): Add fseeko.
37841         * modules/fseek (configure.ac): Set a witness.
37842         * tests/test-fflush.c (main): Use fseeko.
37843         * tests/test-fpurge.c (fseek): Disable link warning.
37844         * tests/test-freadable.c (fseek): Likewise.
37845         * tests/test-freading.c (fseek): Likewise.
37846         * tests/test-fseeko.c (fseek): Likewise.
37847         * tests/test-ftell.c (fseek): Likewise.
37848         * tests/test-ftello.c (fseek): Likewise.
37849         * tests/test-fwritable.c (fseek): Likewise.
37850         * tests/test-fwriting.c (fseek): Likewise.
37851
37852 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37853
37854         * modules/memchr (Depends-on): Drop getpagesize dependency.
37855
37856 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37857
37858         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
37859         Reported by Ludovic Courtès.
37860         * build-aux/pmccabe2html: Improve example usage.
37861         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
37862
37863 2009-11-06  Jim Meyering  <meyering@redhat.com>
37864
37865         do-release-commit-and-tag: New module.
37866         Automate the release-commit and tag process.
37867         * build-aux/do-release-commit-and-tag: New script, from coreutils.
37868         * modules/do-release-commit-and-tag: New file.
37869         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37870
37871 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37872
37873         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
37874         because test-select.c uses inet_pton.
37875
37876 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37877
37878         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
37879         GETADDRINFO_LIB.  Bump serial number.
37880         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
37881         Suggested by Eric Blake <ebb9@byu.net>.
37882
37883 2009-11-05  Eric Blake  <ebb9@byu.net>
37884
37885         strtod: detect darwin bug
37886         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
37887         Reported by Leo Davis.
37888
37889         freopen-safer: new module
37890         * modules/freopen-safer: New module.
37891         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
37892         * lib/freopen-safer.c (freopen_safer): New file.
37893         * lib/stdio-safer.h (freopen_safer): New declaration.
37894         * lib/stdio--.h (freopen): New override.
37895         * MODULES.html.sh (File stream based Input/Output): Mention it.
37896         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
37897         freopen-safer module.
37898         * doc/posix-functions/stderr.texi (stderr): Likewise.
37899         * doc/posix-functions/stdin.texi (stdin): Likewise.
37900         * doc/posix-functions/stdout.texi (stdout): Likewise.
37901         * modules/freopen-safer-tests: New test.
37902         * tests/test-reopen-safer.c: New file.
37903
37904 2009-11-05  Jim Meyering  <meyering@redhat.com>
37905
37906         maint.mk: Prohibit inclusion of "close-stream.h" without use.
37907         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37908
37909 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37910
37911         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
37912
37913 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37914
37915         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
37916
37917 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37918
37919         Fix link error.
37920         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37921         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37922
37923 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37924
37925         * tests/test-func.c: Also test value of __func__.
37926
37927 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37928
37929         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
37930         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
37931
37932 2009-11-05  Bruno Haible  <bruno@clisp.org>
37933
37934         Fix link error.
37935         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37936         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37937         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
37938
37939 2009-11-05  Bruno Haible  <bruno@clisp.org>
37940
37941         Tests for module 'inet_pton'.
37942         * modules/inet_pton-tests: New file.
37943         * tests/test-inet_pton.c: New file.
37944
37945 2009-11-05  Bruno Haible  <bruno@clisp.org>
37946
37947         Tests for module 'inet_ntop'.
37948         * modules/inet_ntop-tests: New file.
37949         * tests/test-inet_ntop.c: New file.
37950
37951 2009-11-04  Eric Blake  <ebb9@byu.net>
37952
37953         stdlib-safer: wrap all mkstemp variants
37954         * modules/mkostemp (configure.ac): Set witness.
37955         * modules/mkostemps (configure.ac): Likewise.
37956         * modules/mkstemps (configure.ac): Likewise.
37957         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
37958         (mkstemps_safer): Wrap more functions.
37959         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
37960         wrapping.
37961         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
37962         (mkstemps_safer): Implement the wrappers.
37963
37964         mkstemps, mkostemps: new modules
37965         * modules/mkostemps: New module.
37966         * modules/mkstemps: Likewise.
37967         * lib/mkostemps.c (mkostemps): New file.
37968         * lib/mkstemps.c (mkstemps): Likewise.
37969         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
37970         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
37971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
37972         * modules/stdlib (Makefile.am): Substitute them.
37973         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
37974         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
37975         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
37976         * doc/gnulib.texi (Glibc stdlib.h): Include them.
37977         * MODULES.html.sh (File system functions): Mention them.
37978
37979         tempname: resync from glibc
37980         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
37981         same values for __GT_FILE as glibc.  Abort even when assertions
37982         are disabled.
37983         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
37984         match its value otherwise.  Allow idempotent inclusion.
37985         * lib/mkdtemp.c (mkdtemp): Adjust caller.
37986         * lib/mkostemp.c (mkostemp): Likewise.
37987         * lib/mkstemp.c (mkstemp): Likewise.
37988         * lib/tmpfile.c (tmpfile): Likewise.
37989         * NEWS: Document this.
37990
37991         utimens: fix use of futimens on older Linux
37992         * lib/utimens.c (fdutimens): Use updated, rather than original,
37993         timespec to avoid bug in older Linux kernel.
37994         Reported by Simon Josefsson.
37995
37996 2009-11-04  Bruno Haible  <bruno@clisp.org>
37997
37998         Make num_processors more flexible and consistent.
37999         * lib/nproc.h (enum nproc_query): New type.
38000         (num_processors): Add a 'query' argument.
38001         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38002         (num_processors): Add a 'query' argument. Test the value of the
38003         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38004         mingw, count the number of CPUs available for the current process.
38005         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38006         Check for sched_getaffinity and sched_getaffinity_np.
38007         * modules/nproc (Depends-on): Add c-ctype, extensions.
38008         * NEWS: Mention the change.
38009
38010 2009-11-03  Bruno Haible  <bruno@clisp.org>
38011
38012         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38013
38014 2009-11-03  Jim Meyering  <meyering@redhat.com>
38015
38016         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38017         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38018         if it is defined.
38019
38020 2009-11-02  Eric Blake  <ebb9@byu.net>
38021
38022         mktime, timegm: share common declaration
38023         * lib/mktime-internal.h: New file.
38024         * lib/mktime.c: Use it rather than open-coding a declaration.
38025         * lib/timegm.c: Likewise.
38026         * modules/mktime (Files): Ship it.
38027         * modules/timegm (Files): Likewise.
38028         Suggested by Bruno Haible.
38029
38030         test-update-copyright: update test to match script changes
38031         * tests/test-update-copyright.sh: Avoid hard-coding perl
38032         location.  Don't update *.bak created by earlier runs.
38033
38034 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38035             Simon Josefsson  <simon@josefsson.org>
38036             Bruno Haible  <bruno@clisp.org>
38037
38038         Fix link error on Solaris 8.
38039         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38040         also in libnsl. Define also INET_PTON_LIB.
38041         * modules/inet_pton (Link): New section.
38042
38043 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38044             Bruno Haible  <bruno@clisp.org>
38045
38046         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38047         * modules/inet_ntop (Link): New section.
38048         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38049
38050 2009-11-02  Eric Blake  <ebb9@byu.net>
38051
38052         maint: avoid compiler warnings in m4 macros
38053         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38055
38056 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38057
38058         * m4/pmccabe2html.m4: Remove file.
38059         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38060         function.  Change maintainer.
38061         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38062         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38063         Courtès).
38064
38065 2009-10-31  Eric Blake  <ebb9@byu.net>
38066
38067         fseeko: fix m4 regression
38068         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38069         regression from 2009-10-27.
38070         Reported by Ralf Wildenhues.
38071
38072 2009-10-31  Jim Meyering  <meyering@redhat.com>
38073
38074         inttostr: aesthetics and improved (compile-time) safety
38075         Define inttype_is_signed rather than inttype_is_unsigned,
38076         since the sole use is via "#if inttype_is_signed".
38077         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38078         inttype_is_unsigned.
38079         * lib/offtostr.c (inttype_is_signed): Likewise.
38080         * lib/uinttostr.c (inttype_is_signed): Likewise.
38081         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38082         * lib/inttostr.c (inttostr): Use verify to cross-check the
38083         inttype_is_signed value and the signedness of the actual type.
38084         * modules/inttostr (Depends-on): Add verify.
38085
38086 2009-10-30  Eric Blake  <ebb9@byu.net>
38087
38088         build: avoid compiler warnings
38089         * lib/fchmodat.c (lchmod): Mark unused variables.
38090         * lib/getopt.c (_getopt_initialize): Likewise.
38091         * lib/mktime.c (__mktime_internal): Provide prototype.
38092         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38093         older gcc that do not understand #pragma GCC diagnostic.
38094         * lib/uinttostr.c (inttype_is_unsigned): Define.
38095         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38096
38097 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38098
38099         stat: fix compilation on AIX
38100         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38101         only see struct stat64.
38102
38103 2009-10-30  Eric Blake  <ebb9@byu.net>
38104
38105         exclude: make more robust
38106         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38107         rather than masking a coding bug.
38108         Suggested by Bruno Haible.
38109
38110 2009-10-30  Jim Meyering  <meyering@redhat.com>
38111
38112         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38113         Rather than putting #!/usr/bin/perl on the first line,
38114         start with a variant of what's recommended by "man perlrun" that
38115         invokes the first "perl" program from your shell's search path.
38116         * build-aux/gitlog-to-changelog: Replace #!... as above.
38117         Add a "Local Variables" perl mode setting.
38118         Prompted by a patch from Ludovic Courtès.
38119         Improved by Eric Blake.
38120         * build-aux/useless-if-before-free: Likewise.
38121         * build-aux/announce-gen: Likewise.
38122         * build-aux/update-copyright: Likewise.
38123
38124 2009-10-29  Eric Blake  <ebb9@byu.net>
38125
38126         filenamecat-lgpl: adjust clients
38127         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38128         filenamecat.
38129         * modules/renameat (Depends-on): Likewise.
38130
38131         filenamecat: split into filenamecat-lgpl
38132         * modules/filenamecat-lgpl: New module.
38133         * modules/filenamecat (Files): Move library-safe files into
38134         filenamecat-lgpl.
38135         (Depends-on): Add filenamecat-lgpl.
38136         (configure.ac): Declare witness.
38137         * lib/filenamecat.h (file_name_concat): Only declare when using
38138         GPL module.
38139         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38140         Move...
38141         * lib/filenamecat-lgpl.c: ...into new file.
38142         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38143         (gl_FILE_NAME_CONCAT): Use it.
38144         * MODULES.html.sh (File system functions): Mention new module.
38145
38146         argp: avoid memory leak
38147         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38148         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38149         base_name, since the latter malloc()s and can call exit().
38150         Leak introduced 2006-07-03.
38151
38152         dirname-lgpl: adjust clients that don't need full dirname
38153         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38154         * modules/filenamecat (Depends-on): Likewise.
38155         * modules/linkat (Depends-on): Likewise.
38156         * modules/mkancesdirs (Depends-on): Likewise.
38157         * modules/mkdir (Depends-on): Likewise.
38158         * modules/openat (Depends-on): Likewise.
38159         * modules/savewd (Depends-on): Likewise.
38160         * modules/rename (Depends-on): Likewise.
38161         (License): Relax license.
38162         * modules/mkdir-tests (Depends-on): Drop progname.
38163         (Makefile.am): Delete unneeded LDADD.
38164         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38165
38166         dirname: split into dirname-lgpl
38167         * modules/dirname-lgpl: New module.
38168         * modules/dirname (Files): Move library-safe files into
38169         dirname-lgpl.
38170         (Depends-on): Add dirname-lgpl.
38171         (configure.ac): Declare witness.
38172         * modules/double-slash-root (License): Relax license.
38173         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38174         module.
38175         * lib/dirname.c (dir_len, mdir_name): Move...
38176         * lib/dirname-lgpl.c: ...into new file.
38177         * lib/basename.c (last_component, base_len): Move...
38178         * lib/basename-lgpl.c: ...into new file.
38179         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38180         (gl_DIRNAME): Use it.
38181         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38182         Mention new module.
38183         * modules/dirname-tests (Depends-on): Add progname.
38184         * tests/test-dirname.c (program_name): Delete.
38185
38186         mkdir: make safe for libraries
38187         * modules/mkdir (Depends-on): Drop xalloc.
38188         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38189         exit.
38190
38191         tests: avoid some compiler warnings
38192         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38193         literals.
38194         * tests/test-memchr.c (main): Avoid type mismatch.
38195         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38196         * tests/test-base64.c (main): Likewise.
38197         * tests/test-getdelim.c (main): Likewise.
38198         * tests/test-gethostname.c (main): Likewise.
38199         * tests/test-getline.c (main): Likewise.
38200         * tests/test-netinet_in.c (main): Likewise.
38201         * tests/test-select.c (open_server_socket, main): Likewise.
38202         * tests/test-select-stdin.c (main): Likewise.
38203         * tests/test-sockets.c (main): Likewise.
38204         * tests/test-strsignal.c (main): Likewise.
38205         * tests/test-sys_select.c (main): Likewise.
38206         * tests/test-sys_socket.c (main): Likewise.
38207         * tests/test-u64.c (main): Likewise.
38208         * tests/test-xfprintf-posix.c (main): Likewise.
38209         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38210
38211         sockets: avoid compiler warning
38212         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38213
38214         maint: detect usage(1) and other suspicious exits
38215         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38216
38217 2009-10-29  Jim Meyering  <meyering@redhat.com>
38218
38219         timespec: long-to-int truncation could make timespec_cmp malfunction
38220         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38221         a multiple of 2^32 nanoseconds as no difference.
38222
38223 2009-10-28  Jim Meyering  <meyering@redhat.com>
38224
38225         fprintftime: wrap macro code argument in "do {...} while(0)"
38226         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38227         cpy macro must be a statement that can be followed by a semicolon.
38228         Now that the else clause contains a comment and is hence longer
38229         than one line, I require curly braces.  That in turn requires
38230         that we wrap this code block in the standard do...while(0).
38231
38232         fprintftime: remove stray semicolon from previous change
38233         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38234
38235         fprintftime: avoid a warning about ignored fwrite return value
38236         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38237         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38238         that is unsafe.
38239         * modules/fprintftime (Depends-on): Add ignore-value.
38240
38241         exclude: avoid an unwarranted warning
38242         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38243
38244 2009-10-27  Eric Blake  <ebb9@byu.net>
38245
38246         fseek: avoid compilation failure when fflush is replaced
38247         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38248         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38249         module is in use.
38250         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38251         module is not in use; since REPLACE_FSEEK worked otherwise.
38252         (GNULIB_FTELLO): Likewise for ftell.
38253         Reported by Ian Beckwith and others.
38254
38255 2009-10-27  Bruno Haible  <bruno@clisp.org>
38256
38257         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38258         Reported by Jim Meyering.
38259
38260 2009-10-27  Jim Meyering  <jim@meyering.net>
38261             Bruno Haible  <bruno@clisp.org>
38262
38263         Avoid warning despite dropping the return value of fwrite.
38264         * lib/unicodeio.c: Include ignore-value.h.
38265         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38266         * modules/unicodeio (Depends-on): Add ignore-value.
38267
38268 2009-10-26  Eric Blake  <ebb9@byu.net>
38269
38270         areadlinkat: fix fallback path
38271         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38272         pointer and zero.
38273
38274 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38275
38276         Use a better IO block size for modern systems
38277         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38278         * lib/md2.c: Likewise.
38279         * lib/md4.c: Likewise.
38280         * lib/md5.c: Likewise.
38281         * lib/sha1.c: Likewise.
38282         * lib/sha256.c: Likewise.
38283         * lib/sha512.c: Likewise.
38284
38285 2009-10-22  Eric Blake  <ebb9@byu.net>
38286
38287         tests: avoid several compiler warnings
38288         * tests/test-getcwd.c (main): Avoid buffer underflow.
38289         * tests/test-getdate.c (main): String literals are not safe with
38290         putenv, so use setenv.  Declare unused argument.
38291         * modules/getdate-tests (Depends-on): Add setenv.
38292         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38293         problems with string literals in char *.
38294         * tests/test-hash.c (main): Avoid shadowing declaration.
38295         (insert_new): Treat string literals as char const *.
38296         * tests/test-getopt.h (test_getopt): Likewise.
38297         (getopt_loop): Alter types to minimize casting elsewhere.
38298         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38299         (test_getopt_long_posix): Likewise.
38300         (do_getopt_long): Add wrapper to minimize casting.
38301         * tests/test-atexit.c (clear_temp_file): Use void.
38302         * tests/test-areadlink-with-size.c (main): Declare unused
38303         arguments.
38304         * tests/test-areadlink.c (main): Likewise.
38305         * tests/test-areadlinkat-with-size.c (main): Likewise.
38306         * tests/test-areadlinkat.c (main): Likewise.
38307         * tests/test-canonicalize-lgpl.c (main): Likewise.
38308         * tests/test-canonicalize.c (main): Likewise.
38309         * tests/test-dirent-safer.c (main): Likewise.
38310         * tests/test-dirname.c (main): Likewise.
38311         * tests/test-dup2.c (main): Likewise.
38312         * tests/test-fchdir.c (main): Likewise.
38313         * tests/test-fcntl-h.c (main): Likewise.
38314         * tests/test-fcntl-safer.c (main): Likewise.
38315         * tests/test-fdopendir.c (main): Likewise.
38316         * tests/test-fdutimensat.c (main): Likewise.
38317         * tests/test-fflush.c (main): Likewise.
38318         * tests/test-filenamecat.c (main): Likewise.
38319         * tests/test-filevercmp.c (main): Likewise.
38320         * tests/test-fopen-safer.c (main): Likewise.
38321         * tests/test-fopen.c (main): Likewise.
38322         * tests/test-fpending.c (main): Likewise.
38323         * tests/test-fpurge.c (main): Likewise.
38324         * tests/test-freading.c (main): Likewise.
38325         * tests/test-fstatat.c (main): Likewise.
38326         * tests/test-fsync.c (main): Likewise.
38327         * tests/test-futimens.c (main): Likewise.
38328         * tests/test-getndelim2.c (main): Likewise.
38329         * tests/test-gettimeofday.c (main): Likewise.
38330         * tests/test-getopt.c (main): Likewise.
38331         * tests/test-i-ring.c (main): Likewise.
38332         * tests/test-inttypes.c (main): Likewise.
38333         * tests/test-link.c (main): Likewise.
38334         * tests/test-lstat.c (main): Likewise.
38335         * tests/test-math.c (main): Likewise.
38336         * tests/test-md5.c (main): Likewise.
38337         * tests/test-memchr2.c (main): Likewise.
38338         * tests/test-memrchr.c (main): Likewise.
38339         * tests/test-mkdir.c (main): Likewise.
38340         * tests/test-mkdirat.c (main): Likewise.
38341         * tests/test-mkfifoat.c (main): Likewise.
38342         * tests/test-open.c (main): Likewise.
38343         * tests/test-openat-safer.c (main): Likewise.
38344         * tests/test-openat.c (main): Likewise.
38345         * tests/test-quotearg.c (main): Likewise.
38346         * tests/test-rawmemchr.c (main): Likewise.
38347         * tests/test-readlink.c (main): Likewise.
38348         * tests/test-remove.c (main): Likewise.
38349         * tests/test-rename.c (main): Likewise.
38350         * tests/test-renameat.c (main): Likewise.
38351         * tests/test-rmdir.c (main): Likewise.
38352         * tests/test-sha1.c (main): Likewise.
38353         * tests/test-signal.c (main): Likewise.
38354         * tests/test-sigaction.c (main): Likewise.
38355         * tests/test-stat.c (main): Likewise.
38356         * tests/test-stat-time.c (main): Likewise.
38357         * tests/test-stddef.c (main): Likewise.
38358         * tests/test-stdint.c (main): Likewise.
38359         * tests/test-stdio.c (main): Likewise.
38360         * tests/test-stdlib.c (main): Likewise.
38361         * tests/test-strchrnul.c (main): Likewise.
38362         * tests/test-strerror.c (main): Likewise.
38363         * tests/test-string.c (main): Likewise.
38364         * tests/test-strtod.c (main): Likewise.
38365         * tests/test-strverscmp.c (main): Likewise.
38366         * tests/test-symlink.c (main): Likewise.
38367         * tests/test-symlinkat.c (main): Likewise.
38368         * tests/test-sys_stat.c (main): Likewise.
38369         * tests/test-sys_time.c (main): Likewise.
38370         * tests/test-time.c (main): Likewise.
38371         * tests/test-unistd.c (main): Likewise.
38372         * tests/test-unlink.c (main): Likewise.
38373         * tests/test-unlinkat.c (main): Likewise.
38374         * tests/test-utimens.c (main): Likewise.
38375         * tests/test-utimensat.c (main): Likewise.
38376         * tests/test-version-etc.c (main): Likewise.
38377         * tests/test-wchar.c (main): Likewise.
38378         * tests/test-wctype.c (main): Likewise.
38379         * tests/test-xprintf-posix.c (main): Likewise.
38380         * tests/test-posixtm.c (main): Likewise.
38381         (STREQ): Delete unused macro.
38382         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38383         shadowed variables.
38384         * tests/test-memchr.c (main): Likewise.
38385
38386 2009-10-21  Eric Blake  <ebb9@byu.net>
38387
38388         areadlinkat: avoid failure on older glibc
38389         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38390         rather than mis-comparing 0 against FUNC_RESULT of char*.
38391
38392 2009-10-21  Bruno Haible  <bruno@clisp.org>
38393
38394         * modules/stpncpy (License): Relicense under LGPLv2+.
38395         Reported by David Lutterkort <lutter@redhat.com>.
38396
38397 2009-10-20  Eric Blake  <ebb9@byu.net>
38398
38399         utimensat: work around Solaris 9 bug
38400         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38401         has trailing slash bugs.
38402         * tests/test-lutimens.h (test_lutimens): Enhance test.
38403         * tests/test-utimens.h (test_utimens): Likewise.
38404         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38405         * doc/posix-functions/utimes.texi (utimes): Likewise.
38406         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38407         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38408         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38409         * doc/posix-functions/futimens.texi (futimens): Likewise.
38410
38411         fdutimensat: new module
38412         * modules/fdutimensat: New file.
38413         * lib/fdutimensat.c (fdutimensat): Likewise.
38414         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38415         * MODULES.html.sh (File system functions): Mention module.
38416         * modules/fdutimensat-tests: New test.
38417         * tests/test-fdutimensat.c: Likewise.
38418
38419         doc: regenerate INSTALL
38420         * doc/INSTALL: Reflect recent autoconf update.
38421         * doc/INSTALL.ISO: Likewise.
38422         * doc/INSTALL.UTF-8: Likewise.
38423
38424 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38425
38426         acl: warn if ACL support is not detected
38427         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38428
38429 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38430
38431         * lib/nproc.h: Add extern "C" block for C++.
38432
38433 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38434             Bruno Haible  <bruno@clisp.org>
38435
38436         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38437         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38438         * doc/posix-functions/isalpha.texi: Likewise.
38439         * doc/posix-functions/isblank.texi: Likewise.
38440         * doc/posix-functions/iscntrl.texi: Likewise.
38441         * doc/posix-functions/isdigit.texi: Likewise.
38442         * doc/posix-functions/isgraph.texi: Likewise.
38443         * doc/posix-functions/islower.texi: Likewise.
38444         * doc/posix-functions/isprint.texi: Likewise.
38445         * doc/posix-functions/ispunct.texi: Likewise.
38446         * doc/posix-functions/isspace.texi: Likewise.
38447         * doc/posix-functions/isupper.texi: Likewise.
38448         * doc/posix-functions/isxdigit.texi: Likewise.
38449
38450 2009-10-18  Bruno Haible  <bruno@clisp.org>
38451
38452         Tests for module 'isblank'.
38453         * modules/isblank-tests: New file.
38454         * tests/test-isblank.c: New file.
38455
38456         New module 'isblank'.
38457         * lib/isblank.c: New file.
38458         * m4/isblank.m4: New file.
38459         * modules/isblank: New file.
38460         * doc/posix-functions/isblank.texi: Mention the new module.
38461
38462 2009-10-18  Bruno Haible  <bruno@clisp.org>
38463
38464         New module 'ctype'.
38465         * lib/ctype.in.h: New file.
38466         * m4/ctype.m4: New file.
38467         * modules/ctype: New file.
38468         * doc/posix-headers/ctype.texi: Mention the new module.
38469
38470 2009-10-18  Jim Meyering  <meyering@redhat.com>
38471
38472         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38473         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38474         right after its initialization, rather than farther down.
38475         Keeping these in close proximity makes it easier to ensure
38476         that each such variable is initialized.  E.g.,
38477
38478             LIB_CLOCK_GETTIME=
38479             AC_SUBST([LIB_CLOCK_GETTIME])
38480
38481         This change also increments these serial numbers.
38482         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38483         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38485
38486 2009-10-18  Bruno Haible  <bruno@clisp.org>
38487
38488         Don't let environment variables perturb build.
38489         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38490         (gl_PREREQ_GETHRXTIME): ... not here.
38491
38492 2009-10-18  Bruno Haible  <bruno@clisp.org>
38493
38494         Avoid symlink attack in localcharset module.
38495         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38496         (O_NOFOLLOW): Define fallback.
38497         (get_charset_aliases): Don't open the file if it is a symbolic link.
38498         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38499         gl_FCNTL_H.
38500         (gl_FCNTL_H): Require it.
38501         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38502         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38503         Reported by Fergal Glynn <fglynn@veracode.com>.
38504
38505 2009-10-18  Bruno Haible  <bruno@clisp.org>
38506
38507         Implement nproc for mingw.
38508         * lib/nproc.c: Include <windows.h>
38509         (num_processors): On native Windows platforms, try GetSystemInfo.
38510
38511 2009-10-18  Bruno Haible  <bruno@clisp.org>
38512
38513         Implement nproc for IRIX.
38514         * lib/nproc.c: Include <sys/sysmp.h>.
38515         (num_processors): On IRIX systems, try sysmp.
38516         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38517
38518 2009-10-18  Bruno Haible  <bruno@clisp.org>
38519
38520         Implement nproc for HP-UX.
38521         * lib/nproc.c: Include <sys/pstat.h>
38522         (num_processors): On HP-UX systems, try pstat_getdynamic.
38523         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38524         pstat_getdynamic.
38525
38526 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38527             Bruno Haible  <bruno@clisp.org>
38528
38529         Implement nproc for NetBSD, OpenBSD.
38530         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38531         (ARRAY_SIZE): New macro.
38532         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38533         * m4/nproc.m4: New file.
38534         * modules/nproc (Files): Add m4/nproc.m4.
38535         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38536         (Makefile.am): Instead, augment lib_SOURCES.
38537
38538 2009-10-18  Bruno Haible  <bruno@clisp.org>
38539
38540         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38541         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38542         sys/param.h.
38543
38544 2009-10-16  Eric Blake  <ebb9@byu.net>
38545
38546         utimensat: new module
38547         * modules/utimensat: New file.
38548         * lib/utimensat.c (utimensat): Likewise.
38549         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38550         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38551         so we can work around Linux bugs.
38552         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38553         * modules/sys_stat (Makefile.am): Substitute them.
38554         * lib/sys_stat.in.h (utimensat): Declare it.
38555         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38556         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38557         * modules/utimensat-tests: New test.
38558         * tests/test-utimensat.c: Likewise.
38559
38560         utimens: let lutimens work on non-symlinks
38561         * lib/utimens.c (lutimens): Fall back to utimens rather than
38562         failing with ENOSYS, when file is not a symlink.
38563         (utimens): Reduce redirection.
38564         * tests/test-lutimens.h (test_lutimens): Update test to cover
38565         non-symlinks.
38566         * tests/test-utimens.h (test_utimens): Update test to cover
38567         symlinks.
38568         * tests/test-utimens.c (main): Update caller.
38569
38570         utimens: cache whether utimensat syscall works
38571         * lib/utimens.c (utimensat_works_really): New cache variable.
38572         (fdutimens, lutimens): Use it to avoid failing syscall.
38573
38574         test-stat-time, test-utimens: improve portability
38575         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38576         ext4 on alpha, and for cygwin.
38577         * tests/test-utimens-common.h: New file.
38578         (nap): Factor delays into single function.
38579         * tests/test-lutimens.h (test_lutimens): Use new header.
38580         * tests/test-futimens.h (test_futimens): Likewise.
38581         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38582         timestamps to occur from same machine, as was done previously for
38583         test_utimens.
38584         * modules/utimens-tests (Files): Ship new file.
38585         * modules/futimens-tests (Files): Likewise.
38586         Reported in part by Jim Meyering.
38587
38588         sys_stat: sort replacement declarations
38589         * lib/sys_stat.in.h: Sort declarations.
38590         * lib/futimens.c (futimens): Fix typo.
38591
38592 2009-10-15  Jim Meyering  <meyering@redhat.com>
38593
38594         don't let environment settings perturb build
38595         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38596         could cause a configure-time and/or build-time malfunction.
38597         Typically, a configure-time function-in-library test is performed
38598         via code like this:
38599
38600           LIB_VAR=
38601           AC_SUBST([LIB_VAR])
38602           prefix_saved_LIBS=$LIBS
38603             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38604                        [test "$ac_cv_search_FUNC" = "none required" ||
38605                         LIB_VAR=$ac_cv_search_FUNC])
38606           LIBS=$prefix_saved_LIBS
38607
38608         However, in each of the files affected by this change, the LIB_VAR=
38609         initialization was omitted.  Thus, when set in the environment, its
38610         value would propagate into generated Makefiles when FUNC is not found
38611         in LIB_NAME.
38612         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38613         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38615
38616 2009-10-14  Eric Blake  <ebb9@byu.net>
38617
38618         fchdir: avoid infinite recursion in mingw
38619         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38620         recursing.
38621
38622         test-stat-time: port to mingw
38623         * tests/test-stat-time.c (force_unlink): Return a value.
38624         (test_ctime) [W32]: Fix compilation error.
38625         (nap): Don't call usleep with too large an argument.  Use
38626         force_unlink.
38627         * doc/pastposix-functions/usleep.texi (usleep): Document the
38628         portability issue.
38629
38630 2009-10-13  Jim Meyering  <meyering@redhat.com>
38631
38632         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38633         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38634         * modules/pipe-filter-ii: Likewise.
38635         * modules/sys_socket-tests: Likewise.
38636         * modules/tsearch-tests: Likewise.
38637         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38638         (check): Depend on it.
38639
38640 2009-10-12  Eric Blake  <ebb9@byu.net>
38641
38642         utimens-tests: port to NFS file systems
38643         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38644         comparisons to avoid spurious failures from timestamp drift
38645         between NFS machines.
38646
38647 2009-10-12  Eric Blake  <ebb9@byu.net>
38648
38649         stat-time-tests: minor cleanups
38650         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38651         * tests/test-stat-time.c (nap): Separate assignment from call.
38652         Suggested by Paolo Bonzini and Bruno Haible.
38653
38654         sys_stat: guarantee struct timespec
38655         * lib/sys_stat.in.h (includes): Always include <time.h>
38656         * modules/sys_stat (Depends-on): Add time.
38657         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38658         mode_t permission values.
38659         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38660         get at subsecond timestamps.
38661
38662 2009-10-10  Eric Blake  <ebb9@byu.net>
38663
38664         futimens: new module
38665         * modules/futimens: New file.
38666         * lib/futimens.c (futimens): Likewise.
38667         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38668         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38669         we can work around Linux bugs.
38670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38671         * modules/sys_stat (Makefile.am): Substitute them.
38672         * lib/sys_stat.in.h (futimens): Declare it.
38673         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38674         * doc/posix-functions/futimens.texi (futimens): Likewise.
38675         * modules/futimens-tests: New test.
38676         * tests/test-futimens.c: Likewise.
38677
38678         utimens: introduce fdutimens
38679         * lib/utimens.h (fdutimens): New prototype.
38680         * lib/utimens.c (gl_futimens): Move guts...
38681         (fdutimens): ...to new interface.
38682         * tests/test-utimens.c (do_fdutimens): Use it.
38683
38684         utimens: add UTIME_NOW and UTIME_OMIT support
38685         * lib/utimens.c (validate_timespec, update_timespec): New helper
38686         functions.
38687         (gl_futimens, lutimens): Use them.
38688         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38689         stdbool, sys_stat.
38690         (Link): Mention resulting library dependency.
38691         * modules/utimecmp (Link): Likewise.
38692         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38693         (Makefile.am): Pick up library dependency.
38694         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38695         definition.
38696         * tests/test-sys_stat.c: Test the definitions.
38697         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38698         * NEWS: Document library dependency.
38699
38700         utimecmp: support symlink timestamps
38701         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38702         hashing when possible.  Use pathconf when available.
38703         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38704         * modules/utimecmp (Depends-on): Add lstat.
38705
38706         utimens: add lutimens interface
38707         * lib/utimens.c (lutimens): New function.
38708         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38709         * lib/utimens.h (lutimens): Declare new interface.
38710         * tests/test-utimens.c (main): Enhance test.
38711         * tests/test-lutimens.h (test_lutimens): New file.
38712         * modules/utimens-tests (Files): Distribute it.
38713         (Depends-on): Add symlink.
38714         (configure.ac): Check for usleep.
38715
38716         utimens: validate futimens usage
38717         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38718         fewer syscalls on failure later on.  Avoid compiler warning on
38719         mingw.
38720         * modules/utimens (Depends-on): Add dup2.
38721
38722         utimens: add test
38723         * modules/utimens-tests: New test.
38724         * tests/test-utimens.h: New file.
38725         * tests/test-futimens.h: Likewise.
38726         * tests/test-utimens.c: Likewise.
38727
38728         doc: mention timestamp portability issues
38729         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38730         instead.
38731         * doc/posix-functions/utime.texi (utime): Likewise.
38732         * doc/posix-functions/utimes.texi (utimes): Likewise.
38733         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38734         instead.
38735         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38736         module.
38737         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38738         Mention weakness with symlink timestamps.
38739         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38740         to utimensat/futimens instead.
38741         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38742
38743         test-dup2: enhance test
38744         * tests/test-dup2.c (main): Also check AT_FDCWD.
38745
38746         test-stat-time: avoid more spurious failures
38747         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38748         xfs; and avoid race if the two timestamps cross quantization edge.
38749
38750         relocatable: prefer 'file system' over 'filesystem'
38751         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38752         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38753         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38754         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38755         * lib/relocatable.c (compute_curr_prefix): Likewise.
38756
38757 2009-10-10  Jim Meyering  <meyering@redhat.com>
38758
38759         stat-time-tests: check for the usleep function
38760         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38761
38762 2009-10-10  Bruno Haible  <bruno@clisp.org>
38763
38764         * modules/xnanosleep: Put the Link section after the Include section.
38765
38766 2009-10-09  Eric Blake  <ebb9@byu.net>
38767
38768         dup2: work around FreeBSD 6.1 bug
38769         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38770         * doc/posix-functions/dup2.texi (dup2): Document it.
38771         Reported by Nelson H. F. Beebe and Jim Meyering.
38772
38773         test-stat-time: port to buggy NFS clients
38774         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38775         (test_ctime): Also skip test if mtime and ctime are skewed.
38776
38777         maint: prefer 'file system' over 'filesystem'
38778         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38779         * doc/posix-functions/lstat.texi (lstat): Likewise.
38780         * lib/file-has-acl.c (file_has_acl): Likewise.
38781         * lib/fwriteerror.c [TEST]: Likewise.
38782         * tests/test-areadlink.h (test_areadlink): Likewise.
38783         * tests/test-areadlinkat-with-size.c (main): Likewise.
38784         * tests/test-areadlinkat.c (main): Likewise.
38785         * tests/test-canonicalize-lgpl.c (main): Likewise.
38786         * tests/test-canonicalize.c (main): Likewise.
38787         * tests/test-fstatat.c (main): Likewise.
38788         * tests/test-linkat.c (main): Likewise.
38789         * tests/test-lstat.h (test_lstat_func): Likewise.
38790         * tests/test-mkdir.h (test_mkdir): Likewise.
38791         * tests/test-readlink.h (test_readlink): Likewise.
38792         * tests/test-remove.c (main): Likewise.
38793         * tests/test-rename.h (test_rename): Likewise.
38794         * tests/test-renameat.c (main): Likewise.
38795         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38796         * tests/test-symlink.h (test_symlink): Likewise.
38797         * tests/test-symlinkat.c (main): Likewise.
38798         * tests/test-unlink.h (test_unlink_func): Likewise.
38799         * tests/test-unlinkat.c (main): Likewise.
38800
38801         maint: make realtime library usage explicit
38802         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38803         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38804         * modules/settime (Link): Likewise.
38805         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38806
38807         test-stat-time: speed up execution
38808         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38809         warning on mingw.
38810         (nap): New helper function.
38811         (prepare_test): Use it to reduce sleep time.
38812         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38813         execution.
38814         * modules/stat-time-tests (configure.ac): Check for usleep.
38815
38816 2009-10-09  Jim Meyering  <meyering@redhat.com>
38817
38818         selinux-h: always use getfilecon wrappers
38819         * lib/getfilecon.c: New file.
38820         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38821         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38822         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38823         (fgetfilecon): Provide a stub.
38824         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38825         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38826         file unconditionally.
38827         When <selinux/selinux.h> is found, arrange to use wrappers.
38828         * modules/selinux-h (Files): Add getfilecon.c.
38829         (Makefile.am): Substitute include-next-related bits
38830         into the now-always-generated selinux/selinux.h file.
38831         * doc/glibc-functions/lgetfilecon.texi: New file.
38832         * doc/glibc-functions/fgetfilecon.texi: New file.
38833         * doc/glibc-functions/getfilecon.texi: New file.
38834         * doc/glibc-functions/getfilecon-desc.texi: New file.
38835         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38836         which to pull in the new files.
38837         * MODULES.html.sh (Misc): Add selinux-h.
38838
38839 2009-10-08  Jim Meyering  <meyering@redhat.com>
38840
38841         unistd: fix comment typo
38842         * lib/unistd.in.h (euidaccess): Fix a comment typo.
38843
38844 2009-10-08  Eric Blake  <ebb9@byu.net>
38845
38846         areadlink: use SIZE_MAX consistently
38847         * modules/areadlink (Depends-on): Add stdint.
38848         * modules/areadlink-with-size (Depends-on): Likewise.
38849         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
38850         gives NULL; drop sys/types, since unistd gives size_t; and add
38851         stdint for SIZE_MAX.
38852         (SIZE_MAX): Rely on headers.
38853         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
38854         and add stdint.
38855         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
38856         (SIZE_MAX): Likewise.
38857         (INITIAL_BUF_SIZE): Turn into enum.
38858         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
38859
38860 2009-10-08  Jim Meyering  <meyering@redhat.com>
38861
38862         areadlinkat: avoid compilation failure
38863         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
38864         Fix typo in comment.
38865
38866 2009-10-07  Eric Blake  <ebb9@byu.net>
38867
38868         areadlinkat-with-size: new module
38869         * modules/areadlinkat-with-size: New module.
38870         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
38871         * lib/areadlink.h (areadlinkat): Declare it.
38872         * MODULES.html.sh (File system functions): Mention it.
38873         * modules/areadlinkat-with-size-tests: New test.
38874         * tests/test-areadlinkat-with-size.c: New file.
38875
38876         xreadlinkat: new module
38877         * modules/xreadlinkat: New module.
38878         * lib/xreadlinkat.c (xreadlinkat): New file.
38879         * lib/xreadlink.h (xreadlinkat): Declare it.
38880         * MODULES.html.sh (File system functions): Mention it.
38881
38882         areadlinkat: new module
38883         * lib/at-func.c (FUNC_FAIL): New define.
38884         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
38885         * modules/areadlinkat: New module.
38886         * lib/linkat.c (areadlinkat): Move...
38887         * lib/areadlinkat.c (areadlinkat): ...to new file.
38888         * lib/areadlink.h (areadlinkat): Declare it.
38889         * modules/linkat (Depends-on): Add areadlinkat.
38890         * MODULES.html.sh (File system functions): Mention it.
38891         * modules/areadlinkat-tests: New test.
38892         * tests/test-areadlinkat.c: New file.
38893
38894         areadlink, areadlink-with-size: add tests
38895         * modules/areadlink-tests: New test.
38896         * modules/areadlink-with-size-tests: Likewise.
38897         * tests/test-areadlink.h: New file.
38898         * tests/test-areadlink.c: Likewise.
38899         * tests/test-areadlink-with-size.c: Likewise.
38900
38901         maint: minor cleanups
38902         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
38903         _UNUSED_PARAMETER_ instead.
38904         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
38905         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
38906         * modules/linkat-tests (Files): Distribute test-link.h.
38907
38908         openat, utimens: whitespace cleanup
38909         * lib/openat.c: Prefer space throughout, rather than mix of 8
38910         spaces vs. tabs.
38911         * lib/at-func.c: Likewise.
38912         * lib/utimens.c: Likewise.
38913
38914         openat: avoid using wrong fd
38915         * lib/openat.c (openat_permissive): Reject user's fd if saving the
38916         working directory chooses same fd.
38917         * lib/at-func.c (AT_FUNC_NAME): Likewise.
38918
38919         mkdir, mkdirat: fix cygwin 1.5.x bug
38920         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
38921         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
38922         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
38923         bug.
38924         (gl_PREREQ_MKDIR): Delete unused macro.
38925         * modules/mkdir (Files): Track file rename.
38926         (configure.ac): Update macro name.
38927         * modules/openat (Depends-on): Add mkdir.
38928         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
38929
38930         mkdir, mkdirat: add tests
38931         * modules/mkdir-tests: New test.
38932         * tests/test-mkdir.h: New file.
38933         * tests/test-mkdir.c: Likewise.
38934         * tests/test-mkdirat.c: Likewise.
38935         * modules/openat-tests (Files): Add new files.
38936         (Makefile.am): Run new test.
38937
38938 2009-10-06  Eric Blake  <ebb9@byu.net>
38939
38940         doc: tweak *at function documentation
38941         * doc/posix-functions/faccessat.texi (faccessat): Mention
38942         known issue with replacement.
38943         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
38944         * doc/posix-functions/linkat.texi (linkat): Likewise.
38945         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38946         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38947         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38948         * doc/posix-functions/renameat.texi (renameat): Likewise.
38949         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38950
38951         openat: fix GNU/Hurd bug in unlinkat
38952         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
38953         broken.
38954         * doc/posix-functions/unlink.texi (unlink): Document this.
38955         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
38956
38957         fdopendir: fix GNU/Hurd bug
38958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
38959         allowing non-directory fds.
38960         * lib/fdopendir.c (rpl_fdopendir): Work around it.
38961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
38962         * modules/dirent (Makefile.am): Substitute it.
38963         * lib/dirent.in.h (fdopendir): Declare replacement.
38964         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
38965         * tests/test-fdopendir.c (main): Test something other than
38966         /dev/null, since on Hurd that behaves like a directory.
38967
38968         test-symlink: port to GNU/Hurd
38969         * tests/test-symlink.h (test_symlink): Relax expected errno.
38970
38971         doc: tweak more cygwin information
38972         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
38973         now compatible with glibc.
38974         * doc/posix-functions/getopt.texi (getopt): Likewise.
38975
38976         getopt-gnu: add another test
38977         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
38978         guarantee behavior relied on by m4.
38979         * tests/test-getopt.c (main): Use it.
38980         * modules/getopt-posix-tests (Depends-on): Add setenv.
38981         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
38982
38983         getopt: fix compilation on darwin
38984         * lib/getopt.in.h (includes): Leave breadcrumbs during system
38985         include.
38986         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
38987         Reported by Ludovic Courtès.
38988
38989 2009-10-06  Bruno Haible  <bruno@clisp.org>
38990
38991         * modules/size_max (Description): Discourage its use.
38992         Reported by Simon Josefsson.
38993
38994 2009-10-06  Jim Meyering  <meyering@redhat.com>
38995
38996         linkat: avoid compilation failure
38997         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
38998
38999 2009-10-05  Eric Blake  <ebb9@byu.net>
39000
39001         linkat: support Linux 2.6.17
39002         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39003         linkat on Linux, but allow cache variable override.
39004         * lib/linkat.c (rpl_linkat): Define override.
39005         * modules/linkat (Depends-on): Add symlinkat.
39006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39007         * modules/unistd (Makefile.am): Substitute it.
39008         * lib/unistd.in.h (linkat): Declare replacement.
39009         Reported by Pádraig Brady.
39010
39011         quotearg: port test to systems with C.UTF-8 locale
39012         * tests/test-quotearg.c (struct result_strings): Add another
39013         member, differentiating between C.ASCII and C.UTF-8 handling.
39014         (compare_strings): Add parameter.
39015         (main): Adjust all callers.
39016
39017         getopt: avoid clash with FreeBSD _getopt_internal
39018         * lib/getopt.in.h (_getopt_internal): Override the name.
39019         * lib/getopt_int.h (includes): Pick up any overrides.
39020         Reported by Reuben Thomas.
39021
39022         hash: allow C89 compilation
39023         * lib/hash.c (check_tuning): Move declaration before statement.
39024         Reported by Reuben Thomas.
39025
39026 2009-10-05  Karl Berry  <karl@gnu.org>
39027
39028         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39029
39030 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39031             Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/uname.c (uname): Use a table-driven algorithm to compute
39034         Windows NT versions.
39035
39036 2009-10-04  Bruno Haible  <bruno@clisp.org>
39037
39038         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39039         program_invocation_short_name.
39040         * modules/progname (configure.ac): Test for presence of
39041         program_invocation_short_name.
39042         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39043
39044 2009-10-04  Bruno Haible  <bruno@clisp.org>
39045
39046         * lib/progname.c (set_program_name): Fix comment.
39047         Reported by Jim Meyering.
39048
39049 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39050             Bruno Haible  <bruno@clisp.org>
39051
39052         * lib/uname.c: Include <string.h>.
39053         (uname): Do only one call to GetVersionEx in the common case.
39054
39055 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39056             Bruno Haible  <bruno@clisp.org>
39057
39058         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39059         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39060         (uname): Add support for Windows CE and various non-x86 CPU types.
39061
39062 2009-10-03  Bruno Haible  <bruno@clisp.org>
39063
39064         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39065         invocation to tests/configure.ac.
39066         Reported by Ian Beckwith <ianb@erislabs.net>.
39067
39068 2009-10-02  Eric Blake  <ebb9@byu.net>
39069
39070         fchdir: avoid compiler warning
39071         * lib/fchdir.c (canonicalize_file_name)
39072         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39073
39074         test-open: support mingw errno values
39075         * tests/test-open.h (test_open): Relax test.
39076         * tests/test-fopen.h (test_fopen): Likewise.
39077         * tests/test-openat-safer.c (main): Likewise.
39078
39079         open: fix opening directory on mingw
39080         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39081
39082         test-open: on GNU/Hurd, /dev/null is a directory
39083         * tests/test-fopen.h (main): Rename...
39084         (test_fopen): ...to this.  Use a guaranteed non-directory when
39085         confirming open behavior on trailing slash.
39086         * tests/test-openat-safer.c (main): Likewise.
39087         * tests/test-open.h (main): Likewise....
39088         (test_open): ...to this.
39089         * tests/test-fopen.c (main): Adjust caller.
39090         * tests/test-fopen-safer.c (main): Likewise.
39091         * tests/test-open.c (main): Likewise.
39092         * tests/test-fcntl-safer.c (main): Likewise.
39093         Reported by Samuel Thibault.
39094
39095         rename, fchdir: don't ignore chdir failure
39096         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39097         * lib/rename.c (rpl_rename) [W32]: Likewise.
39098         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39099         an empty destination directory if source cannot be renamed,
39100         although there is still possibility for failure.
39101         * doc/posix-functions/rename.texi (rename): Document the race.
39102         Reported by Jim Meyering.
39103
39104         maint: cleanup whitespace in recent commits
39105         * lib/rename.c (rpl_rename): Remove tabs.
39106         * tests/test-link.h (test_link): Likewise.
39107         * lib/fchdir.c (get_name): Likewise.
39108         Reported by Jim Meyering.
39109
39110 2009-10-02  Ben Pfaff  <blp@gnu.org>
39111
39112         relocatable-prog-wrapper: Add missing dependency on
39113         double-slash-root.
39114         * modules/relocatable-prog-wrapper: Add dependency.
39115         Reported by Ian Beckwith <ianb@erislabs.net>.
39116
39117 2009-10-02  Eric Blake  <ebb9@byu.net>
39118
39119         renameat: fix Solaris bugs
39120         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39121         needed fixing.
39122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39123         * modules/stdio (Makefile.am): Substitute it.
39124         * lib/stdio.in.h (renameat): Declare replacement.
39125         * lib/renameat.c (rpl_renameat): Implement fix.
39126
39127         renameat: new module
39128         * modules/renameat: New file.
39129         * lib/renameat.c (renameat): Likewise.
39130         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39132         * modules/stdio (Makefile.am): Substitute them.
39133         * lib/stdio.in.h (renameat): Declare it.
39134         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39135         * doc/posix-functions/renameat.texi (renameat): Likewise.
39136         * modules/renameat-tests: New test.
39137         * tests/test-renameat.c: Likewise.
39138
39139         rename: fix mingw bugs
39140         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39141         directory overwrite bugs.
39142
39143         rename: fix another cygwin 1.5 bug
39144         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39145         checks.
39146         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39147         unnecessary cygwin workarounds.  Also work around bug with moving
39148         full directory onto an empty one.
39149         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39150
39151         rename-dest-slash: merge into rename module
39152         * modules/rename-dest-slash (Status): Mark obsolete.
39153         (Depends-on): Add rename.
39154         (Files): Let rename do it all.
39155         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39156         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39157         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39158         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39159         * lib/rename.c (rpl_rename): Update comments.
39160
39161         rename: fix cygwin 1.5.x bugs
39162         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39163         * lib/rename.c (rpl_rename): Work around them.
39164         * modules/rename (Depends-on): Add same-inode.
39165
39166         rename: fix Solaris 10 bug
39167         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39168         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39169         was the only bug.
39170
39171         rename: fix Solaris 9 bug
39172         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39173         on non-directory.  Avoid calling exit.
39174         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39175         strdup.
39176         * modules/rename-tests (Depends-on): Drop lstat.
39177         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39178         (gl_PREREQ_RENAME): Delete unused macro.
39179
39180         rename-dest-slash: fix NetBSD bug
39181         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39182         links.
39183         * modules/rename-dest-slash (Depends-on): Add same-inode.
39184
39185         rename-tests: new test, exposes several platform bugs
39186         * modules/rename-tests: New file.
39187         * tests/test-rename.h: Likewise.
39188         * tests/test-rename.c: Likewise.
39189         * doc/posix-functions/rename.texi (rename): Improve documentation,
39190         including bugs that will eventually be fixed in gnulib.
39191
39192 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39193
39194         * lib/uname.c: Include <stdlib.h>
39195         (uname): Assume version info is available.
39196
39197 2009-10-02  Jim Meyering  <meyering@redhat.com>
39198
39199         gnu-web-doc-update: correct --help output
39200         * build-aux/gnu-web-doc-update: Make --help output relevant.
39201
39202         gnu-web-doc-update: add standard options
39203         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39204
39205         gnu-web-doc-update: New module.
39206         Use this script to automatically update the on-line web documentation
39207         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39208         * modules/gnu-web-doc-update: New file, from coreutils.
39209         * build-aux/gnu-web-doc-update: New script.
39210
39211 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39212
39213         link: LoadLibrary is not needed.
39214         * lib/link.c: Use GetModuleHandle.
39215
39216 2009-10-01  Eric Blake  <ebb9@byu.net>
39217
39218         getopt: bump serial number
39219         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39220         change.
39221
39222         tests: tighten link, rmdir, and remove tests
39223         * tests/test-link.h (includes): No need to use <config.h> here.
39224         Clean up if directory hard link was created, otherwise test for
39225         trailing '.'.
39226         * tests/test-linkat.c (main): Simplify.
39227         * tests/test-remove.c (main): Enhance test for trailing '.'.
39228         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39229
39230 2009-10-01  Jim Meyering  <meyering@redhat.com>
39231
39232         maint.mk: requiring "make major" was annoying, for a "minor" release.
39233         What is intended is "stable", to contrast with alpha and beta,
39234         so require "make stable", not "make major".
39235         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39236         (get_tool_versions): Likewise.
39237         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39238
39239 2009-09-30  Ben Pfaff  <blp@gnu.org>
39240
39241         Fix broken build of replacement for Windows tmpfile().
39242         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39243         flags argument added along with the 'mkostemp' module.
39244
39245 2009-09-28  Bruno Haible  <bruno@clisp.org>
39246
39247         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39248         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39249         to 'remove_elt'.
39250         (gl_list_remove): Update.
39251         * lib/gl_list.c (gl_list_remove): Update.
39252         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39253         to 'remove_elt'.
39254         (gl_oset_remove): Update.
39255         * lib/gl_list.c (gl_oset_remove): Update.
39256         Reported by Eric Blake.
39257
39258 2009-09-28  Eric Blake  <ebb9@byu.net>
39259
39260         doc: mention yet more cygwin 1.7 status
39261         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39262         cygwin.
39263         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39264         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39265
39266         argp: fix test failure
39267         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39268         that are not upper-case.  Pass correct range to tolower.
39269
39270 2009-09-27  Jim Meyering  <meyering@redhat.com>
39271
39272         test-yesno: work around sparc-dash here-document infelicity
39273         Without this change, the literal \177 byte in a here document
39274         would make dash 0.5.5.1-3 access uninitialized memory.
39275         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39276         Instead, use a marker, "@", and filter through tr to create the desired
39277         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39278
39279 2009-09-27  Bruno Haible  <bruno@clisp.org>
39280
39281         Disable untested support for new flavours of ACLs on AIX.
39282         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39283         progress.
39284         * lib/set-mode-acl.c (qset_acl): Likewise.
39285
39286 2008-12-07  Bruno Haible  <bruno@clisp.org>
39287
39288         Add support for new flavours of ACLs on AIX. (Untested.)
39289         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39290         (file_has_acl): Add support for newer AIX.
39291         * lib/set-mode-acl.c (qset_acl): Likewise.
39292         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39293         Rainer Tammer <tammer@tammer.net>.
39294
39295 2009-09-26  Eric Blake  <ebb9@byu.net>
39296
39297         argp: fix compilation of getopt
39298         * lib/getopt.in.h (includes): Use different guard than glibc.
39299         Reported by Sergey Poznyakoff.
39300
39301         doc: mention more cygwin 1.7 status
39302         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39303         bug.
39304         * doc/posix-functions/execl.texi (execl): Likewise.
39305         * doc/posix-functions/execle.texi (execle): Likewise.
39306         * doc/posix-functions/execlp.texi (execlp): Likewise.
39307         * doc/posix-functions/execv.texi (execv): Likewise.
39308         * doc/posix-functions/execve.texi (execve): Likewise.
39309         * doc/posix-functions/execvp.texi (execvp): Likewise.
39310         * doc/glibc-functions/canonicalize_file_name.texi
39311         (canonicalize_file_name): Cygwin 1.7 now provides this.
39312         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39313         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39314         on AT_SYMLINK_NOFOLLOW.
39315
39316 2009-09-24  Eric Blake  <ebb9@byu.net>
39317
39318         test-linkat: make test more robust
39319         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39320
39321         getopt: fix inclusion guards for cygwin
39322         * modules/getopt-posix (Depends-on): Add include-next.
39323         (Makefile.am): Substitute more items in replacement header.
39324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39325         <getopt.h>.
39326         * lib/getopt.in.h (includes): Use split inclusion guard, and
39327         prefer <getopt.h> over include <unistd.h> when one is present.
39328         (option): Also override name of 'struct option'.
39329
39330         same-inode: revert prior change; it is not yet ready
39331         * NEWS: Undo mention of this change.
39332         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39333         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39334         * lib/cycle-check.c (cycle_check): Likewise.
39335         * lib/same.c (same_name): Likewise.
39336         * lib/at-func2.c (at_func2): Likewise.
39337
39338 2009-09-23  Eric Blake  <ebb9@byu.net>
39339
39340         linkat: new module
39341         * modules/linkat: New file.
39342         * lib/at-func2.c (at_func2): Likewise.
39343         * lib/linkat.c (linkat): Likewise.
39344         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39345         * lib/openat-priv.h (at_func2): Add declaration.
39346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39347         * modules/unistd (Makefile.am): Substitute them.
39348         * lib/unistd.in.h (linkat): Declare it.
39349         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39350         * doc/posix-functions/linkat.texi (linkat): Likewise.
39351         * doc/posix-functions/link.texi (link): Tweak wording.
39352         * tests/test-link.c (main): Move guts...
39353         * tests/test-link.h (test_link): ...into new file.
39354         * modules/linkat-tests: New test.
39355         * tests/test-linkat.c: Likewise.
39356         * modules/link-tests (Files): Ship new file.
39357         (Depends-on): Add stdbool.
39358
39359         dirname: add library-safe mdir_name
39360         * lib/dirname.h (mdir_name): New prototype.
39361         * lib/dirname.c (dir_name): Move guts...
39362         (mdir_name): ...to new function that avoids xalloc_die.
39363
39364         fchdir: another mingw fix
39365         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39366         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39367         on mingw (where it has not yet been ported), and make it optional
39368         elsewhere.
39369         (_gl_register_fd): Use it.
39370
39371         same-inode: make SAME_INODE tri-state, to port to mingw
39372         * NEWS: Mention this change.
39373         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39374         st_ino always being 0.
39375         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39376         * lib/cycle-check.c (cycle_check): Likewise.
39377         * lib/same.c (same_name): Likewise.
39378
39379         lstat: avoid mingw compilation error
39380         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39381         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39382         lstat ourselves.
39383         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39384         was adequate.
39385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39386         the checks for lstat.
39387         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39388
39389         link: fix test failure on Solaris 9
39390         * lib/link.c (rpl_link): Don't assume link will catch bogus
39391         trailing slash on source.
39392
39393         test-symlinkat: enhance test
39394         * tests/test-readlink.c (main): Move guts...
39395         * tests/test-readlink.h (test_readlink): ...into new file.
39396         * tests/test-symlink.c (main): Move guts...
39397         * tests/test-symlink.h (test_symlink): ...into new file.
39398         * tests/test-symlinkat.c (main): Use new files for further
39399         coverage.
39400         (do_symlink, do_readlink): New helper functions.
39401         * modules/symlink-tests (Files): Ship new file.
39402         (Depends-on): Add stdbool.
39403         * modules/readlink-tests (Files): Ship new file.
39404         (Depends-on): Add stdbool.
39405         * modules/symlinkat-tests (Files): Use new files.
39406
39407 2009-09-23  Eric Blake  <ebb9@byu.net>
39408
39409         readlink: document portability issue with symlink length
39410         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39411         systems have bogus st_size on symlinks, and mention the
39412         areadlink-with-size module.
39413         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39414         * doc/posix-functions/readlink.texi (readlink): Mention the
39415         areadlink module, and ERANGE failure.
39416         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39417         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39418
39419         readlink: fix Solaris 9 bug with trailing slash
39420         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39421         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39422         * doc/posix-functions/readlink.texi (readlink): Document this.
39423         * modules/readlink-tests: New test.
39424         * tests/test-readlink.c: Likewise.
39425
39426         readlink: fix cygwin 1.5.x bug with return type
39427         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39428         * lib/unistd.in.h (readlink): Use ssize_t.
39429         * lib/readlink.c (readlink): Likewise.
39430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39431         * modules/unistd (Makefile.am): Substitute it.
39432         * lib/unistd.in.h (readlink): Declare replacement.
39433         * doc/posix-functions/readlink.texi (readlink): Document this.
39434
39435         symlink: use throughout gnulib
39436         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39437         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39438         symlink is not used.
39439         * modules/symlinkat (Depends-on): Add symlink.
39440         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39441         * modules/canonicalize-tests (Depends-on): Likewise.
39442         * modules/lstat-tests (Depends-on): Likewise.
39443         * modules/openat-tests (Depends-on): Likewise.
39444         * modules/remove-tests (Depends-on): Likewise.
39445         * modules/rmdir-tests (Depends-on): Likewise.
39446         * modules/unlink-tests (Depends-on): Likewise.
39447         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39448         * tests/test-canonicalize.c (symlink): Likewise.
39449         * tests/test-fstatat.c (symlink): Likewise.
39450         * tests/test-lstat.c (symlink): Likewise.
39451         * tests/test-remove.c (symlink): Likewise.
39452         * tests/test-rmdir.c (symlink): Likewise.
39453         * tests/test-unlink.c (symlink): Likewise.
39454         * tests/test-unlinkat.c (symlink): Likewise.
39455
39456         symlink: new module, for Solaris 9 bug
39457         * modules/symlink: New file.
39458         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39459         * lib/symlink.c: Likewise.
39460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39461         * modules/unistd (Makefile.am): Substitute them.
39462         * lib/unistd.in.h (symlink): Declare replacement.
39463         * MODULES.html.sh (File system functions): Mention it.
39464         * doc/posix-functions/symlink.texi (symlink): Likewise.
39465         * modules/symlink-tests: New test.
39466         * tests/test-symlink.c: Likewise.
39467
39468 2009-09-23  Bruno Haible  <bruno@clisp.org>
39469
39470         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39471         when needed.
39472         Test case: gnulib-tool --import --with-tests atexit inttypes.
39473         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39474
39475 2009-09-23  Bruno Haible  <bruno@clisp.org>
39476
39477         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39478         subcommand, not in a subshell.
39479
39480 2009-09-22  Eric Blake  <ebb9@byu.net>
39481
39482         unistd: sort replacement declarations
39483         * lib/unistd.in.h: Sort declarations.
39484
39485         open, openat: minor optimization
39486         * lib/open.c (open): If open succeeded, len is non-zero.
39487         * lib/openat.c (rpl_openat): Likewise.
39488
39489         link-follow: ensure correct result
39490         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39491         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39492         distinguish between possible failures.
39493
39494 2009-09-21  Eric Blake  <ebb9@byu.net>
39495
39496         fts: avoid compiler warning
39497         * lib/fts.c (dirent_inode_sort_may_be_useful)
39498         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39499
39500 2009-09-19  Bruno Haible  <bruno@clisp.org>
39501
39502         * lib/progreloc.c (canonicalize_file_name): New declaration.
39503
39504 2009-09-19  Eric Blake  <ebb9@byu.net>
39505
39506         link: fix quoting
39507         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39508
39509         openat: fix openat bugs on Solaris 9
39510         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39511         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39512         * modules/openat (Depends-on): Add open.
39513         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39514         * modules/fcntl-h (Makefile.am): Substitute it.
39515         * lib/fcntl.in.h (openat): Declare replacement.
39516         * doc/posix-functions/openat.texi (openat): Document this.
39517
39518         openat: move fstatat and unlinkat into correct files
39519         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39520         compiled.
39521         * lib/openat.c (fstatat, unlinkat): Move...
39522         * lib/fstatat.c (fstatat): ...into correct files.
39523         * lib/unlinkat.c (unlinkat): Likewise.
39524
39525         openat: fix unlinkat bugs on Solaris 9
39526         * lib/unlinkat.c (unlinkat): New file.
39527         * modules/openat (Depends-on): Add unlink.
39528         (Files): Distribute it.
39529         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39530         trailing slash behavior is broken.
39531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39532         * modules/unistd (Makefile.am): Substitute it.
39533         * lib/unistd.in.h (unlinkat): Declare replacement.
39534         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39535
39536         openat: fix fstatat bugs on Solaris 9
39537         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39538         stat.
39539         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39540
39541         test-unlinkat: enhance test, to expose Solaris 9 bug
39542         * tests/test-unlink.c (main): Factor guts...
39543         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39544         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39545         * tests/test-rmdir.c (main): Adjust caller.
39546         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39547         (unlinker): New helper function.
39548         (rmdirat): Enhance check.
39549         * modules/rmdir-tests (Depends-on): Add stdbool.
39550         * modules/unlink-tests (Depends-on): Likewise.
39551         (Files): Add test-unlink.h.
39552         * modules/openat-tests (Files): Likewise.
39553         (Depends-on): Add unlinkdir.
39554
39555         test-fstatat: new test, to expose Solaris 9 bugs
39556         * tests/test-stat.c (main): Factor guts...
39557         * tests/test-stat.h (test_stat_func): ...into new file.
39558         * tests/test-lstat.c (main): Factor guts...
39559         * tests/test-lstat.h (test_lstat_func): ...into new file.
39560         * tests/test-fstatat.c: New file.
39561         * modules/stat-tests (Files): Add test-stat.h.
39562         * modules/lstat-tests (Files): Add test-lstat.h.
39563         (Depends-on): Add stdbool.
39564         * modules/openat-tests (Depends-on): Add pathmax.
39565         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39566         (Makefile.am): Run new test.
39567
39568         remove: new module, for mingw and Solaris 9 bugs
39569         * modules/remove: New file.
39570         * lib/remove.c: Likewise.
39571         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39573         * modules/stdio (Makefile.am): Use them.
39574         * lib/stdio.in.h (remove): Declare replacement.
39575         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39576         * doc/posix-functions/remove.texi (remove): Likewise.
39577         * modules/remove-tests: New test.
39578         * tests/test-remove.c: Likewise.
39579
39580         unlink: new module, for Solaris 9 bug
39581         * modules/unlink: New file.
39582         * lib/unlink.c: Likewise.
39583         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39585         * modules/unistd (Makefile.am): Use them.
39586         * lib/unistd.in.h (stat): Declare replacement.
39587         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39588         * doc/posix-functions/unlink.texi (unlink): Likewise.
39589         * modules/unlink-tests: New test.
39590         * tests/test-unlink.c: Likewise.
39591
39592         lstat: fix Solaris 9 bug
39593         * lib/lstat.c (lstat): Also check for trailing slash on
39594         non-symlink, non-directories.  Use stat module to simplify logic.
39595         * doc/posix-functions/lstat.texi (lstat): Document it.
39596         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39597         (configure.ac): Check for symlink.
39598         * tests/test-lstat.c (main): Add more tests.
39599
39600         stat: add as dependency to other modules
39601         * modules/chown (Depends-on): Add stat.
39602         * modules/euidaccess (Depends-on): Likewise.
39603         * modules/fchdir (Depends-on): Likewise.
39604         * modules/isdir (Depends-on): Likewise.
39605         * modules/link (Depends-on): Likewise.
39606         * modules/lstat (Depends-on): Likewise.
39607         * modules/mkdir-p (Depends-on): Likewise.
39608         * modules/modechange (Depends-on): Likewise.
39609         * modules/open (Depends-on): Likewise.
39610         * modules/readlink (Depends-on): Likewise.
39611         * modules/same (Depends-on): Likewise.
39612
39613         stat: fix Solaris 9 bug
39614         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39615         slash.
39616         * lib/stat.c (rpl_stat): Work around it.
39617         * doc/posix-functions/stat.texi (stat): Update documentation.
39618
39619         stat: new module, for mingw bug
39620         * modules/stat: New file.
39621         * lib/stat.c: Likewise.
39622         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39624         * modules/sys_stat (Makefile.am): Use them.
39625         * lib/sys_stat.in.h (stat): Declare replacement.
39626         * lib/openat.c (fstatat): Deal with lstat and stat being function
39627         macros.
39628         * modules/openat (Depends-on): Add inline.
39629         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39630         * doc/posix-functions/stat.texi (stat): Likewise.
39631         * modules/stat-tests: New test.
39632         * tests/test-stat.c: Likewise.
39633
39634 2009-09-19  Jim Meyering  <meyering@redhat.com>
39635
39636         syntax-check: detect unnecessary inclusion of canonicalize.h
39637         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39638
39639 2009-09-19  Eric Blake  <ebb9@byu.net>
39640
39641         canonicalize-lgpl: adjust clients to use correct header
39642         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39643         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39644         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39645         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39646         * lib/progreloc.c (includes): Likewise.
39647
39648 2009-09-19  Jim Meyering  <meyering@redhat.com>
39649
39650         test-posixtm.c: correct a comment
39651         * tests/test-posixtm.c: Correct first-line comment.
39652         Spotted by Eric Blake.
39653
39654 2009-09-16  Jim Meyering  <meyering@redhat.com>
39655
39656         posixtm-tests: make T const-correct; add a test case
39657         * tests/test-posixtm.c (T): Declare const.
39658         Add a test for -(2^31+1).
39659         Remove useless can-succeed-only-in-2002 test.
39660
39661         posixtm-tests: adjust the sole failing test
39662         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39663         expected output matches what mktime now produces.  Cross-checked via
39664         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39665
39666         posixtm: move #ifdef'd tests into a new module
39667         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39668         * tests/test-posixtm.c: ... this new file.
39669         * modules/posixtm-tests: New module.
39670
39671 2009-09-19  Eric Blake  <ebb9@byu.net>
39672
39673         openat: simplify use of at-func.c
39674         * lib/at-func.c (includes): Include prerequisites here, to
39675         simplify requirements on client files.
39676         * lib/openat-priv.h: Add double-inclusion guard.
39677         * lib/faccessat.c (includes): Simplify.
39678         * lib/fchmodat.c (includes): Likewise.
39679         * lib/fchownat.c (includes): Likewise.
39680         * lib/mkdirat.c (includes): Likewise.
39681         * lib/mkfifoat.c (includes): Likewise.
39682         * lib/symlinkat.c (includes): Likewise.
39683
39684         openat: allow return of fd 0
39685         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39686         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39687         unistd-safer.
39688         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39689         <fcntl.h>; this module does not leak fds.
39690         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39691         must be allowed to return 0, leaving openat_safer to add the
39692         safety.
39693         (openat_permissive): Avoid writing to just-opened fd 2 if
39694         restoring the current directory fails.
39695         * lib/openat-die.c (openat_restore_fail): Add comment.
39696         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39697         (save_cwd): Guarantee safe fd, but without use of open_safer.
39698         * tests/test-openat.c: New test.
39699         * modules/openat-tests (Files, Makefile.am): Distribute and build
39700         new file.
39701
39702         relocatable-prog-wrapper: fix build
39703         * modules/relocatable-prog-wrapper (Files): Update name of
39704         canonicalize m4 file, broken on 2009-09-17.
39705         Reported by emad hajjar <aleppos@hotmail.com>.
39706
39707 2009-09-19  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39710         * lib/safe-alloc.c: Likewise.
39711         Reported by Ian Beckwith <ianb@erislabs.net>.
39712
39713 2009-09-18  Bruno Haible  <bruno@clisp.org>
39714
39715         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39716         Reported by <erobles@sensacd.com.mx>.
39717
39718 2009-09-17  Eric Blake  <ebb9@byu.net>
39719
39720         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39721         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39722         slashes when checking if last component is missing.
39723         * tests/test-canonicalize.c (main): Test this.
39724
39725         canonicalize, canonicalize-lgpl: honor // if distinct from /
39726         * modules/canonicalize (Files): Add double-slash-root.m4.
39727         * modules/canonicalize-lgpl (Files): Likewise.
39728         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39729         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39730         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39731         fallback definition.
39732         (canonicalize_filename_mode): Use it to protect //.
39733         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39734         (__realpath): Likewise.
39735         * tests/test-canonicalize.c (main): Test this.
39736         * tests/test-canonicalize-lgpl.c (main): Likewise.
39737         * modules/canonicalize-tests (Depends-on): Add same-inode.
39738         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39739
39740         canonicalize-lgpl: fix glibc bug with trailing slash
39741         * m4/canonicalize-lgpl.m4: Move contents...
39742         * m4/canonicalize.m4: ...here.
39743         (gl_CANONICALIZE_LGPL): Factor realpath check...
39744         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39745         glibc 2.3.5 bug, fixed 2005-04-27.
39746         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39747         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39748         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39749         * modules/canonicalize-lgpl (Files): Manage file rename.
39750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39751         * modules/stdlib (Makefile.am): Substitute witness.
39752         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39753         is needed.
39754         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39755         replacement is required.
39756         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39757         * doc/glibc-functions/canonicalize_file_name.texi
39758         (canonicalize_file_name): Document this.
39759         * doc/posix-functions/realpath.texi (realpath): Likewise.
39760
39761         canonicalize-lgpl: reject non-directory with trailing slash
39762         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39763         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39764         catches failures in glibc 2.3.5.
39765         * tests/test-canonicalize.c (main): Likewise.
39766
39767         canonicalize-lgpl: use native realpath if it works
39768         * lib/canonicalize-lgpl.c (realpath): Guard with
39769         FUNC_REALPATH_WORKS.
39770         * lib/stdlib.in.h (realpath): Make declaration optional based on
39771         HAVE_REALPATH.
39772         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39773         native realpath works.
39774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39775         * modules/stdlib (Makefile.am): Substitute witness.
39776
39777         canonicalize, canonicalize-lgpl: use <stdlib.h>
39778         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39779         (Include): Mention <stdlib.h>.
39780         (configure.ac): Mention functions we provide.
39781         * modules/canonicalize (configure.ac): Likewise.
39782         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39783         realpath if canonicalize_file_name is missing.
39784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39785         * modules/stdlib (Makefile.am): Substitute witnesses.
39786         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39787         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39788         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39789         * NEWS: Document this.
39790         * doc/glibc-functions/canonicalize_file_name.texi
39791         (canonicalize_file_name): Likewise.
39792         * doc/posix-functions/realpath.texi (realpath): Likewise.
39793         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39794
39795         test-canonicalize: consolidate into single C program
39796         * tests/test-canonicalize.sh: Delete; move setup into...
39797         * tests/test-canonicalize.c (main): ...the program, making it
39798         easier to run in debugger.  Add some tests.
39799         * modules/canonicalize-tests (Files): Remove unused file.
39800         (Depends-on): Add progname.
39801         (configure.ac, Makefile.am): Simplify.
39802
39803         test-canonicalize-lgpl: consolidate into single C program
39804         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39805         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39806         easier to run in debugger.  Add some tests.
39807         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39808         (configure.ac, Makefile.am): Simplify.
39809
39810         canonicalize: avoid resolvepath
39811         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39812         unnecessary checks.
39813         * lib/canonicalize.c (includes): Simplify.
39814         (canonicalize_file_name): Drop resolvepath implementation.
39815         * modules/canonicalize (Depends-on): Drop filenamecat.
39816
39817         canonicalize: don't lose errno
39818         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39819         over calls to free.
39820
39821         canonicalize: simplify errno handling
39822         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39823         assignment.
39824
39825         canonicalize, canonicalize-lgpl: update module dependencies
39826         * modules/canonicalize (Depends-on): Add extensions, lstat,
39827         pathmax, stdlib.
39828         (Files): Drop pathmax.h.
39829         (configure.ac): Adjust macro name.
39830         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39831         lstat, stdlib, sys_stat.
39832         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39833         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39834         extensions.
39835         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39836         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39837         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39838         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39839         declaration, if available.
39840         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39841         we can rely on the readlink module.
39842         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
39843         (includes): Use <unistd.h> unconditionally.
39844
39845 2009-09-17  Eric Blake  <ebb9@byu.net>
39846
39847         maint: make Include sections of modules consistent
39848         * modules/alloca: Use only header name; no need to list #include.
39849         * modules/alloca-opt: Likewise.
39850         * modules/arpa_inet: Likewise.
39851         * modules/canon-host: Likewise.
39852         * modules/configmake: Likewise.
39853         * modules/dirent: Likewise.
39854         * modules/eealloc: Likewise.
39855         * modules/environ: Likewise.
39856         * modules/fchdir: Likewise.
39857         * modules/fcntl: Likewise.
39858         * modules/fcntl-h: Likewise.
39859         * modules/gethrxtime: Likewise.
39860         * modules/gettime: Likewise.
39861         * modules/ignore-value: Likewise.
39862         * modules/inet_ntop: Likewise.
39863         * modules/inet_pton: Likewise.
39864         * modules/inttypes: Likewise.
39865         * modules/isnand-nolibm: Likewise.
39866         * modules/isnanf-nolibm: Likewise.
39867         * modules/mbchar: Likewise.
39868         * modules/mbfile: Likewise.
39869         * modules/mbiter: Likewise.
39870         * modules/mbuiter: Likewise.
39871         * modules/netdb: Likewise.
39872         * modules/netinet_in: Likewise.
39873         * modules/nproc: Likewise.
39874         * modules/pagealign_alloc: Likewise.
39875         * modules/poll: Likewise.
39876         * modules/printf-frexp: Likewise.
39877         * modules/pthread: Likewise.
39878         * modules/putenv: Likewise.
39879         * modules/random_r: Likewise.
39880         * modules/relocatable-prog: Likewise.
39881         * modules/search: Likewise.
39882         * modules/select: Likewise.
39883         * modules/selinux-h: Likewise.
39884         * modules/settime: Likewise.
39885         * modules/signal: Likewise.
39886         * modules/size_max: Likewise.
39887         * modules/socklen: Likewise.
39888         * modules/ssize_t: Likewise.
39889         * modules/stdarg: Likewise.
39890         * modules/stdbool: Likewise.
39891         * modules/stddef: Likewise.
39892         * modules/stdint: Likewise.
39893         * modules/stdio: Likewise.
39894         * modules/stdlib: Likewise.
39895         * modules/string: Likewise.
39896         * modules/strings: Likewise.
39897         * modules/sys_file: Likewise.
39898         * modules/sys_ioctl: Likewise.
39899         * modules/sys_select: Likewise.
39900         * modules/sys_socket: Likewise.
39901         * modules/sys_stat: Likewise.
39902         * modules/sys_time: Likewise.
39903         * modules/sys_times: Likewise.
39904         * modules/sys_utsname: Likewise.
39905         * modules/sys_wait: Likewise.
39906         * modules/sysexits: Likewise.
39907         * modules/time: Likewise.
39908         * modules/times: Likewise.
39909         * modules/tmpfile: Likewise.
39910         * modules/trim: Likewise.
39911         * modules/unistd: Likewise.
39912         * modules/wchar: Likewise.
39913         * modules/wctype: Likewise.
39914
39915 2009-09-17  Bruno Haible  <bruno@clisp.org>
39916
39917         Make getdate.y compile on QNX and NetBSD 5 / i386.
39918         * m4/getdate.m4 (gl_GETDATE): Conditionally define
39919         TIME_T_FITS_IN_LONG_INT.
39920         * lib/getdate.y (long_time_t): New type.
39921         (relative_time): Change type of 'seconds' field to long_time_t.
39922         (get_date): Update types of local variables. Check against overflow
39923         during conversion from long_time_t to time_t.
39924         Reported by Matt Kraai <kraai@ftbfs.org>
39925         and Hasso Tepper <hasso@netbsd.org>.
39926
39927 2009-09-17  Bruno Haible  <bruno@clisp.org>
39928
39929         * modules/COPYING: Update copyright years.
39930         * modules/README: Likeiwse.
39931         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
39932         Reported by Ian Beckwith <ianb@erislabs.net>.
39933
39934 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39935
39936         * users.txt: Update references for gnuit package.
39937
39938 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39939
39940         * m4/getdelim.m4: Fix typo in copyright line.
39941
39942 2009-09-17  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/atoll.c: Use the standard header with GPL copyright.
39945         * lib/argz.in.h: Likewise.
39946         * lib/glob.c: Likewise.
39947         * lib/glob-libc.h: Likewise.
39948         * lib/random_r.c: Likewise.
39949         * lib/siglist.h: Likewise.
39950         * lib/strsignal.c: Likewise.
39951         Reported by Ian Beckwith <ianb@erislabs.net>.
39952
39953 2009-09-17  Eric Blake  <ebb9@byu.net>
39954
39955         rmdir: ensure correct dependency order
39956         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
39957
39958 2009-09-17  Bruno Haible  <bruno@clisp.org>
39959
39960         Disable assertion that fails on NetBSD 5 / i386.
39961         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
39962         Reported by Sam Steingold <sds@gnu.org>
39963         and Hasso Tepper <hasso@netbsd.org>.
39964
39965 2009-09-16  Eric Blake  <ebb9@byu.net>
39966
39967         unlinkdir: port to mingw
39968         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
39969         on which no one can unlink a directory.
39970
39971         stdlib: sort witness names
39972         * modules/stdlib (Makefile.am): Sort replacements.
39973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39974         * lib/stdlib.in.h: Likewise.
39975
39976         parse-duration-tests: avoid link failure
39977         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
39978         LIBINTL.
39979         Reported by Tom G. Christensen.
39980
39981         openat-tests: ensure unlinkat behaves like rmdir
39982         * tests/test-rmdir.c (main): Factor guts...
39983         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
39984         * modules/rmdir-tests (Files): Ship new file.
39985         * modules/openat-tests: New test.
39986         * tests/test-unlinkat.c: Likewise.
39987
39988         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
39989         * modules/rmdir-errno (Status, Notice): Now obsolete.
39990
39991         rmdir: work around cygwin 1.5.x and mingw bugs
39992         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
39993         * lib/rmdir.c (rmdir): Work around it.
39994         * modules/rmdir (Status, Notice): No longer obsolete.
39995         (Files): Add dos.m4.
39996         (Depends-on): Add unistd.
39997         (configure.ac): Set witnesses.
39998         (License): Relax to LGPLv2+.
39999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40000         * modules/unistd (Makefile.am): Substitute witnesses.
40001         * lib/unistd.in.h (rmdir): Declare replacement.
40002         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40003         * modules/rmdir-tests: New tests.
40004         * tests/test-rmdir.c: Likewise.
40005
40006 2009-09-15  Eric Blake  <ebb9@byu.net>
40007
40008         fchdir: improve use of replacement functions
40009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40010         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40011         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40012         REPLACE_CLOSEDIR.
40013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40014         * modules/sys_stat (Makefile.am): Substitute correct witness.
40015         * modules/dirent (Makefile.am): Likewise.
40016         * modules/unistd (Makefile.am): Likewise.
40017         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40018         * lib/unistd.in.h (dup): Likewise.
40019         * lib/sys_stat.in.h (fstat): Likewise.
40020
40021         maint: ignore gnulib-tool temp files
40022         * .gitignore: Ignore files created during gnulib-tool --test.
40023
40024 2009-09-13  Jim Meyering  <meyering@redhat.com>
40025
40026         posixtm: don't reject a time that specify "60" as the number of seconds
40027         * lib/posixtm.c (posixtime): The code to reject invalid dates
40028         would also reject a time specified with the .60 suffix.
40029         But POSIX allows that, in order to accommodate leap seconds.
40030         So don't reject it.
40031         (main): Adjust tests accordingly.
40032         * modules/posixtm (Depends-on): Add stpcpy.
40033
40034 2009-09-11  Jim Meyering  <meyering@redhat.com>
40035
40036         announce-gen: include [$release_type] in emitted Subject:
40037         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40038         e.g., [stable] in the emitted Subject: line.
40039
40040 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40041
40042         Remove obsolete macros from several modules.
40043         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40044         obsolete Autoconf macros with their modern counterparts.
40045         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40046         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40048         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40049         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40050         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40052         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40053         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40054         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40055         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40057         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40058         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40059         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40060         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40061         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40062         * m4/time_r.m4 (gl_TIME_R): Likewise.
40063         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40064         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40065         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40066
40067         Fix copyright header in build-aux scripts.
40068         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40069         recommendation.
40070         * build-aux/ncftpput-ftp: Likewise.
40071         * build-aux/update-copyright: Likewise.
40072
40073 2009-09-09  Eric Blake  <ebb9@byu.net>
40074
40075         test-link: allow Linux choice of errno
40076         * tests/test-link.c (main): Relax test for alternate error.
40077
40078         strndup: fix improper m4 caching
40079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40080         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40081         (gl_PREREQ_STRNDUP): Delete.
40082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40083         * modules/string (Makefile.am): Substitute it.
40084         * lib/string.in.h (strndup): Modernize prototype.
40085
40086         getcwd: port to mingw
40087         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40088         different from the POSIX assumptions made throughout the getcwd
40089         module; fortunately, the mingw getcwd does not need replacement.
40090         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40091         * modules/getcwd-tests: New test.
40092         * tests/test-getcwd.c: Likewise.
40093
40094         link: fix platform bugs
40095         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40096         * lib/link.c (link): Work around them.  Fix related mingw bug.
40097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40098         * modules/unistd (Makefile.am): Substitute it.
40099         * lib/unistd.in.h (link): Declare replacement.
40100         * doc/posix-functions/link.texi (link): Document this.
40101         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40102
40103         test-link: consolidate into single C program, test more cases
40104         * tests/test-link.sh: Delete.
40105         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40106         at least Cygwin and Solaris.
40107         * modules/link-tests (Files): Remove unused file.
40108         (Depends-on): Add errno, sys_stat.
40109         (Makefile.am): Simplify.
40110
40111 2009-09-08  Bruno Haible  <bruno@clisp.org>
40112
40113         Work around towlower, towupper bug on mingw.
40114         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40115         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40116         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40117         * doc/posix-functions/towupper.texi: Likewise.
40118         Reported by Eric Blake.
40119
40120 2009-09-08  Jim Meyering  <meyering@redhat.com>
40121
40122         build: don't try to run autoheader if we don't use it
40123         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40124         is not used in configure.ac.
40125
40126 2009-09-08  Eric Blake  <ebb9@byu.net>
40127
40128         euidaccess: fix compilation error
40129         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40130
40131         rawmemchr: relax license
40132         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40133         okay.
40134         Reported by Jim Meyering.
40135
40136         mkfifoat: new module
40137         * modules/mkfifoat: New file.
40138         * lib/mkfifoat.c: Likewise.
40139         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40140         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40141         * modules/sys_stat (Makefile.am): Use them.
40142         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40143         * MODULES.html.sh (File system functions): Mention module.
40144         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40145         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40146         * modules/mkfifoat-tests: New test.
40147         * tests/test-mkfifoat.c: Likewise.
40148
40149         strchrnul: relax license
40150         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40151         okay.
40152         Reported by Jim Meyering.
40153
40154 2009-09-08  Eric Blake  <ebb9@byu.net>
40155
40156         fstatat: fix compilation on Solaris
40157         * lib/fstatat.c (includes): Add fcntl.h.
40158         Reported by Pádraig Brady.
40159
40160 2009-09-07  Eric Blake  <ebb9@byu.net>
40161
40162         rename: modernize replacement
40163         * modules/rename (Depends-on): Add stdio.
40164         (configure.ac): Declare witness.
40165         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40166         stdio take care of replacement.
40167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40168         * modules/stdio (Makefile.am): Substitute them.
40169         * lib/stdio.in.h (rename): Declare replacement.
40170         * lib/rename.c (includes): Allow cross-compilation to non-windows
40171         machines.
40172         * doc/posix-functions/rename.texi (rename): Improve
40173         documentation.
40174
40175         stdio: sort witness names
40176         * modules/stdio (Makefile.am): Sort replacements.
40177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40178         * lib/stdio.in.h: Likewise.
40179
40180         getcwd: minor cleanups
40181         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40182         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40183
40184         openat: provide more convenience names
40185         * modules/faccessat (configure.ac): Add C witness.
40186         * lib/unistd.in.h (readlinkat): Fix typo.
40187         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40188         convenience wrappers.
40189         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40190         wrappers in syntax checks.
40191
40192 2009-09-06  Eric Blake  <ebb9@byu.net>
40193
40194         doc: fix comments in recent patches
40195         * lib/faccessat.c: Mention correct function.
40196         * lib/fchmodat.c: Likewise.
40197         * lib/fchownat.c: Likewise.
40198         * lib/symlinkat.c: Likewise.
40199         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40200         constants.
40201
40202         faccessat, symlinkat: continue cleanup of previous patch
40203         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40204         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40205         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40207         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40208         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40209         set.
40210
40211 2009-09-06  Bruno Haible  <bruno@clisp.org>
40212
40213         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40214         (fstatat): Declare if GNULIB_FSTATAT is set.
40215         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40216         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40217         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40218         * modules/fcntl-h (Files): Remove m4/openat.m4.
40219         * modules/sys_stat (Files): Remove m4/openat.m4.
40220         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40221         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40222         * modules/unistd (Files): Remove m4/openat.m4.
40223         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40224         GNULIB_OPENAT.
40225         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40226         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40228         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40229         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40230         gl_OPENAT_DEFAULTS.
40231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40232         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40233         Don't require gl_OPENAT_DEFAULTS.
40234         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40235         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40236         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40237         (gl_OPENAT_DEFAULTS): Remove macro.
40238
40239 2009-09-06  Bruno Haible  <bruno@clisp.org>
40240
40241         * modules/openat (configure.ac): Remove unneeded witness.
40242
40243 2009-09-06  Bruno Haible  <bruno@clisp.org>
40244
40245         Set errno to ENOSYS when a function is entirely unsupported.
40246         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40247         EOPNOTSUPP.
40248         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40249         * modules/chown (Depends-on): Remove errno.
40250
40251 2009-09-06  Bruno Haible  <bruno@clisp.org>
40252
40253         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40254
40255 2009-09-06  Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40258
40259 2009-09-06  Ben Pfaff  <blp@gnu.org>
40260             Bruno Haible  <bruno@clisp.org>
40261
40262         Work around a glibc bug in strtok_r.
40263         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40264         Undefine if UNDEFINE_STRTOK_R is set.
40265         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40267         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40268         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40269         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40270         UNDEFINE_STRTOK_R.
40271         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40272
40273 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40274
40275         exclude: minor fix
40276         * lib/exclude.c: Include wctype.h
40277
40278 2009-09-06  Akim Demaille  <demaille@gostai.com>
40279
40280         bootstrap: improve error message
40281         * build-aux/bootstrap (find_tool): Upon failure, report the list
40282         of candidates.
40283         Honor the initial value of the envvar.
40284
40285 2009-09-05  Eric Blake  <ebb9@byu.net>
40286
40287         symlinkat: new module
40288         * modules/symlinkat: New file.
40289         * lib/symlinkat.c: Likewise.
40290         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40292         * modules/unistd (Makefile.am): Use them.
40293         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40294         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40295         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40296         * MODULES.html.sh (File system functions): Mention module.
40297         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40298         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40299         * modules/symlinkat-tests: New test.
40300         * tests/test-symlinkat.c: Likewise.
40301
40302         test-openat-safer: add more checks
40303         * tests/test-openat-safer.c (main): Check more code paths.
40304
40305 2009-09-05  Jim Meyering  <meyering@redhat.com>
40306
40307         syntax-check: detect unnecessary inclusion of openat.h
40308         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40309
40310 2009-09-05  Bruno Haible  <bruno@clisp.org>
40311
40312         Support towlower, towupper.
40313         * doc/posix-functions/towlower.texi: Mention module wctype.
40314         * doc/posix-functions/towupper.texi: Likewise.
40315         * lib/wctype.in.h (towlower, towupper): New functions.
40316         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40317         (ASSERT): New macro.
40318         (e): New variable.
40319         (main): Test also towlower, towupper. Test WEOF argument.
40320         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40321
40322 2009-09-05  Bruno Haible  <bruno@clisp.org>
40323
40324         Fix conversion behaviour when the input is invalid.
40325         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40326         mark occurring in first pass of indirect conversion.
40327         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40328         input.
40329         Found by clang's static analyzer.
40330
40331 2009-09-05  Bruno Haible  <bruno@clisp.org>
40332
40333         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40334         where direct conversion is possible.
40335
40336 2009-09-04  Eric Blake  <ebb9@byu.net>
40337
40338         openat: fail with ENOENT on empty name
40339         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40340         buffer.
40341
40342         link-follow: fix logic bug in prior patch
40343         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40344         reversed sense of yes and no in prior patch.  Avoid confusing
40345         compilation failure with desired semantics.
40346
40347         link-follow: accomodate mingw and cross-compilation
40348         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40349         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40350         cross-compilation results to -1, to make linkat easier to
40351         implement when cross-compiling.  Trivially support mingw.
40352         * modules/link-follow (configure.ac): Call new name.
40353         * NEWS: Mention this.
40354
40355 2009-09-03  Eric Blake  <ebb9@byu.net>
40356
40357         faccessat: compile replacement
40358         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40359         needed.
40360
40361         fts: fix compilation error
40362         * lib/fts.c (includes): Re-add "openat.h", for
40363         openat_needs_fchdir.
40364
40365         faccessat: new module
40366         * modules/faccessat: New file.
40367         * lib/faccessat.c: Likewise.
40368         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40370         * modules/unistd (Makefile.am): Use it.
40371         * lib/unistd.in.h (faccessat): Declare it.
40372         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40373         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40374         * MODULES.html.sh (File system functions): Mention it.
40375         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40376         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40377
40378         euidaccess: prefer POSIX over non-standard implementation
40379         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40380         * lib/euidaccess.c (euidaccess): Use it if available.
40381
40382         openat: make template easier to use
40383         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40384         AT_FUNC_F2 to be undefined.
40385         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40386         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40387         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40388         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40389         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40390         Likewise.
40391         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40392         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40393         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40394         Likewise.
40395
40396         openat: declare in POSIX headers
40397         * NEWS: Mention this.
40398         * modules/openat (configure.ac): Declare witnesses.
40399         (Depends-on): Add fcntl-h, sys_stat, unistd.
40400         (Include): Mention correct headers.
40401         * modules/fcntl-h (Depends-on): Add link-warning.
40402         (Files): Add openat.m4.
40403         (Makefile.am): Substitute witnesses.
40404         * modules/sys_stat (Files, Makefile.am): Likewise.
40405         * modules/unistd (Files, Makefile.am): Likewise.
40406         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40407         (gl_OPENAT_DEFAULTS): New macro.
40408         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40410         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40411         (SYS_STAT_H): Remove unused variable.
40412         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40413         * lib/fcntl--.h (includes): Remove unneeded header.
40414         * lib/openat-safer.c (includes): Likewise.
40415         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40416         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40417         appropriate headers.
40418         (__OPENAT_PREFIX): Delete.
40419         * lib/fcntl.in.h (openat): Provide declaration.
40420         (AT_FDCWD): Fix Solaris bug.
40421         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40422         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40423         * lib/fchmodat.c (includes):  Adjust to find declaration.
40424         * lib/fchownat.c (includes): Likewise.
40425         * lib/mkdirat.c (includes): Likewise.
40426         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40427         still visible.
40428
40429 2009-09-02  Eric Blake  <ebb9@byu.net>
40430
40431         errno: use consistently
40432         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40433         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40434         * lib/canonicalize.c (ELOOP): Likewise.
40435         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40436         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40437         * lib/lchown.c (EOPNOTSUPP): Likewise.
40438         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40439         * lib/savewd.c (ESTALE): Likewise.
40440         * lib/settime.c (ENOSYS): Likewise.
40441         * lib/utimens.c (ENOSYS): Likewise.
40442         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40443         * lib/chdir-safer.c (ELOOP): Likewise.
40444         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40445         * modules/c-stack (Depends-on): Add errno.
40446         * modules/canonicalize (Depends-on): Likewise.
40447         * modules/chdir-safer (Depends-on): Likewise.
40448         * modules/fdopendir (Depends-on): Likewise.
40449         * modules/inet_ntop (Depends-on): Likewise.
40450         * modules/inet_pton (Depends-on): Likewise.
40451         * modules/lchown (Depends-on): Likewise.
40452         * modules/openat (Depends-on): Likewise.
40453         * modules/savewd (Depends-on): Likewise.
40454         * modules/settime (Depends-on): Likewise.
40455         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40456
40457         fts: avoid leaking fds
40458         * modules/fts (Depends-on): Add cloexec.
40459         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40460         flag.
40461
40462         fts: make directory fds more robust
40463         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40464         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40465
40466         backupfile, chdir-long, fts, savedir: make safer
40467         * lib/backupfile.c (includes): Use "dirent--.h", since
40468         numbered_backup can write to stderr during readdir.
40469         * lib/savedir.c (includes): Likewise.
40470         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40471         emulation can write to stderr on failure.
40472         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40473         * lib/getcwd.c: Document why opendir_safer is unused.
40474         * lib/glob.c: Likewise.
40475         * lib/scandir.c: Likewise.
40476         * lib/openat-proc.c: Likewise, for open_safer.
40477         * modules/backupfile (Depends-on): Add dirent-safer.
40478         * modules/savedir (Depends-on): Likewise.
40479         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40480         * modules/chdir-long (Depends-on): Add openat-safer.
40481
40482         openat-safer: new module
40483         * modules/openat-safer: New file.
40484         * lib/openat-safer.c: Likewise.
40485         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40486         * lib/fcntl-safer.h (openat_safer): Declare.
40487         * lib/fcntl--.h (openat): Override.
40488         * MODULES.html.sh (File descriptor based I/O): Mention it.
40489         * lib/openat.h: Add double-inclusion guards.
40490         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40491         "fcntl--.h", so we can implement openat.
40492         * modules/openat-safer-tests: New test.
40493         * tests/test-openat-safer.c: New file.
40494
40495         dirent-safer: new module
40496         * modules/dirent-safer: New file.
40497         * lib/dirent--.h: Likewise.
40498         * lib/dirent-safer.h: Likewise.
40499         * lib/opendir-safer.c: Likewise.
40500         * m4/dirent-safer.m4: Likewise.
40501         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40502         * modules/dirent-safer-tests: New test.
40503         * tests/test-dirent-safer.c: New file.
40504         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40505
40506         fdopendir: optimize on mingw
40507         * lib/unistd.in.h (_gl_directory_name): New prototype.
40508         * lib/fchdir.c (_gl_directory_name): Implement it.
40509         (fchdir): Use it to simplify implementation.
40510         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40511         fchdir, when available, to avoid calling [f]chdir().
40512
40513         fdopendir: split into its own module
40514         * lib/openat.c (fdopendir): Move...
40515         * lib/fdopendir.c: ...into new file.
40516         * modules/fdopendir: New module.
40517         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40518         * modules/openat (Depends-on): Add fdopendir.
40519         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40520         fdopendir here.
40521         * modules/savedir (Depends-on): Only need fdopendir, not full
40522         openat.
40523         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40524         * lib/openat.h (fdopendir): Drop prototype.
40525         * lib/dirent.in.h (fdopendir): Provide prototype.
40526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40527         * modules/dirent (Makefile.am): Substitute them.
40528         * MODULES.html.sh (File system functions): Mention it.
40529         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40530         * modules/fdopendir-tests: New file.
40531         * tests/test-fdopendir.c: Likewise.
40532
40533         fchdir: use more consistent macro convention
40534         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40535         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40536         REPLACE_FCHDIR, rather than relying on config.h macros.
40537         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40538         inside a single make-time REPLACE_FCHDIR block, rather than using
40539         the config.h FCHDIR_REPLACEMENT.
40540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40541         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40542         Manage fstat replacement.
40543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40544         REPLACE_FCHDIR.
40545         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40546         (Makefile.am): Substitute REPLACE_FCHDIR.
40547         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40548         FCHDIR_REPLACEMENT.
40549         * lib/dup-safer.c (dup_safer): Likewise.
40550         * lib/dup2.c (rpl_dup2): Likewise.
40551         * lib/dup3.c (rpl_dup3): Likewise.
40552         * lib/open.c (rpl_open): Likewise.
40553
40554         fchdir: simplify error handling, and support dup3
40555         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40556         stdbool, malloc-posix, realloc-posix.
40557         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40558         (ensure_dirs_slot): Return false on allocation failure.
40559         (rpl_dup2): Delete.
40560         (_gl_register_dup): New function.
40561         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40562         (_gl_register_fd): Close fd on allocation failure.
40563         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40564         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40565         prototype.
40566         (rpl_dup2_fchdir): Delete prototype.
40567         * lib/open.c (open): Update caller.
40568         * lib/dup2.c (dup2): Track fchdir metadata.
40569         * lib/dup3.c (dup3): Likewise.
40570         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40572
40573 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40574
40575         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40576         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40577         don't pass arguments to AC_OUTPUT.
40578
40579 2009-09-02  Bruno Haible  <bruno@clisp.org>
40580
40581         * modules/mkdtemp (License): Relicense under LGPLv2+.
40582         Reported by Paolo Bonzini.
40583
40584 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40585
40586         Replace uses of obsolete autoconf macros in Jim's modules.
40587         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40588         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40589         can evoke a warning from autoconf when run with -Wobsolete
40590         enabled.  They were declared obsolete for good reasons (see
40591         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40592         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40593         should not continue using the deprecated macros.
40594         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40595         obsolete Autoconf macros with modern counterparts.
40596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40597         * m4/dos.m4 (gl_AC_DOS): Likewise.
40598         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40600         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40601         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40602         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40603         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40604         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40605         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40606         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40607         Likewise.
40608         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40609         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40610         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40611         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40612         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40613         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40614
40615 2009-09-01  Eric Blake  <ebb9@byu.net>
40616
40617         fchdir: fix off-by-one bug in previous patch
40618         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40619         (_gl_unregister_fd): Delete useless if.
40620
40621 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40622
40623         maint.mk: sort the list of syntax-check rules
40624         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40625         easier to get a sense of progress when the rules are run sequentially
40626         and take a long time.
40627
40628 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40629
40630         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40631         * modules/netinet_in: Likewise.
40632         * modules/sys_file: Likewise.
40633         * modules/sys_ioctl: Likewise.
40634         * modules/sys_select: Likewise.
40635         * modules/sys_socket: Likewise.
40636         * modules/sys_stat: Likewise.
40637         * modules/sys_time: Likewise.
40638         * modules/sys_times: Likewise.
40639         * modules/sys_utsname: Likewise.
40640         * modules/sys_wait: Likewise.
40641
40642 2009-09-01  Jim Meyering  <meyering@redhat.com>
40643
40644         fts: help ensure that return values are not ignored
40645         * lib/fts_.h (__GNUC_PREREQ): Define.
40646         (__attribute_warn_unused_result__): Define.
40647         (fts_children, fts_close, fts_open, fts_read): Declare with
40648         __attribute_warn_unused_result__.
40649
40650         fts: fts_close now fails also when closing a dir file descriptor fails
40651         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40652         and propagate to caller, along with errno.
40653
40654         announce-gen: correct formatting in --help output
40655         * build-aux/announce-gen (usage): Move the one-line description in
40656         --help output "up", to where it belongs, just after Usage:.
40657
40658 2009-08-31  Eric Blake  <ebb9@byu.net>
40659
40660         fchdir: port to mingw
40661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40662         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40663         opened, then use a substitute.
40664         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40665         replacement.
40666         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40667         (_gl_register_fd): No need to check stat if open already filters
40668         all directories.
40669         (fchdir): Fix error condition to match POSIX.
40670         * modules/fchdir (Depends-on): Add sys_stat.
40671         * doc/posix-functions/open.texi (open): Document the limitation.
40672         * modules/fchdir-tests: New file.
40673         * tests/test-fchdir.c: Likewise.
40674
40675         canonicalize: allow cross-testing from cygwin to mingw
40676         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40677         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40678         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40679         Likewise.
40680         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40681         target does not support symlinks.
40682         * tests/test-canonicalize-lgpl.sh: Likewise.
40683
40684         chown: avoid compilation warning on mingw
40685         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40686         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40687         mingw.
40688         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40689         * modules/chown (Depends-on): Add errno.
40690
40691 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40692
40693         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40694         command.
40695
40696 2009-08-31  Jim Meyering  <meyering@redhat.com>
40697
40698         canonicalize: remove useless initialization
40699         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40700         initialization of local, "end".
40701
40702 2009-08-30  Bruno Haible  <bruno@clisp.org>
40703
40704         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40705         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40706         ENOSYS.
40707
40708 2009-08-30  Bruno Haible  <bruno@clisp.org>
40709
40710         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40711         /usr/xpg4/bin/tr when it exists.
40712         * tests/test-pipe-filter-gi1.sh: Likewise.
40713
40714 2009-08-30  Bruno Haible  <bruno@clisp.org>
40715
40716         Work around deficient /usr/bin/id program on Solaris.
40717         * tests/test-file-has-acl.sh (ID): New variable.
40718         * tests/test-set-mode-acl.sh (ID): Likewise.
40719         * tests/test-copy-acl.sh (ID): Likewise.
40720         * tests/test-copy-file.sh (ID): Likewise.
40721
40722 2009-08-30  Bruno Haible  <bruno@clisp.org>
40723
40724         New module 'xstriconveh'.
40725         * lib/xstriconveh.h: New file.
40726         * lib/xstriconveh.c: New file.
40727         * modules/xstriconveh: New file.
40728
40729 2009-08-30  Bruno Haible  <bruno@clisp.org>
40730
40731         Make it easier to use mem_cd_iconveh.
40732         * lib/striconveh.h (iconveh_t): New type.
40733         (iconveh_open, iconveh_close): New declarations.
40734         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40735         with a single 'const iconveh_t *' argument.
40736         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40737         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40738         with a single 'const iconveh_t *' argument.
40739         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40740         * tests/test-striconveh.c (main): Update.
40741         * NEWS: Mention the change.
40742
40743 2009-08-30  Bruno Haible  <bruno@clisp.org>
40744
40745         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40746         problem.
40747
40748 2009-08-30  Bruno Haible  <bruno@clisp.org>
40749
40750         Work around iconv_open problem on Solaris.
40751         * lib/iconv_open-solaris.gperf: New file.
40752         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40754         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40755         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40756         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40757         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40758
40759 2009-08-29  Jim Meyering  <meyering@redhat.com>
40760
40761         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40762         * top/maint.mk (cvs-check): Remove target; it was just an alias
40763         to the better-named vc-diff-check.
40764         (maintainer-distcheck): Remove rule.  It was used only from
40765         the (alpha/beta/major) target, and all of its commands but one
40766         were coreutils-specific.
40767         (vc-dist): Remove rule.
40768         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40769         Run vc-diff-check, not vc-dist.
40770         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40771
40772 2009-08-27  Bruno Haible  <bruno@clisp.org>
40773
40774         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40775         of 0.
40776
40777 2009-08-27  Bruno Haible  <bruno@clisp.org>
40778
40779         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40780         compilers.
40781         * doc/func.texi: Document the SunPRO C bug.
40782
40783 2009-08-27  Bruno Haible  <bruno@clisp.org>
40784
40785         Fix link error on Solaris.
40786         * tests/test-parse-duration.c (xstrdup): Remove function.
40787
40788 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40789
40790         ignore-value: handle pointer types, too
40791         * lib/ignore-value.h (__attribute__): Remove definition.
40792         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40793         of a more concise and more-often effective "(void) i" statement.
40794         (ignore_ptr): New function to suppress warnings from functions that
40795         return pointers, and to make it explicit that one function doesn't
40796         handle all cases.
40797
40798 2009-08-25  Bruno Haible  <bruno@clisp.org>
40799
40800         dup2: work around a Linux bug.
40801         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40802         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40803         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40804         Reported by Simon Josefsson.
40805
40806 2009-08-25  Jim Meyering  <meyering@redhat.com>
40807
40808         libguestfs uses gnulib
40809         * users.txt: Add libguestfs.
40810
40811 2009-08-24  Eric Blake  <ebb9@byu.net>
40812
40813         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40814         * lib/pipe2.c (includes): Add binary-io.h.
40815         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40816
40817 2009-08-24  Bruno Haible  <bruno@clisp.org>
40818
40819         Tolerate declared but missing accept4 syscall.
40820         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40821         available.
40822         * lib/sys_socket.in.h (accept4): If the function is already present,
40823         override it.
40824         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40825         * modules/accept4 (Makefile.am): Compile accept4.c always.
40826         Reported by Paolo Bonzini and Eric Blake.
40827
40828 2009-08-23  Bruno Haible  <bruno@clisp.org>
40829
40830         New module 'accept4'.
40831         * lib/sys_socket.in.h (accept4): New declaration.
40832         * lib/accept4.c: New file.
40833         * m4/accept4.m4: New file.
40834         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40835         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40836         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40837         HAVE_ACCEPT4.
40838         * modules/accept4: New file.
40839         * doc/glibc-functions/accept4.texi: Mention the new module.
40840
40841 2009-08-24  Jim Meyering  <meyering@redhat.com>
40842
40843         progname: also set global program_invocation_name, when possible
40844         Before this change, a libtool-enabled program that calls glibc's
40845         error function would report the program name as
40846         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
40847         * modules/progname (configure.ac): Check for a declaration of
40848         program_invocation_name.
40849         * lib/progname.c:  Include <errno.h>.
40850         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
40851         Set program_invocation_name.
40852
40853 2009-08-23  Bruno Haible  <bruno@clisp.org>
40854
40855         * lib/dup3.c: Include <string.h>.
40856
40857 2009-08-23  Bruno Haible  <bruno@clisp.org>
40858
40859         * lib/dup3.c (dup3): Test only once whether the system actually exists.
40860         * lib/pipe2.c (pipe2): Likewise.
40861         Suggested by Eric Blake.
40862
40863 2009-08-23  Bruno Haible  <bruno@clisp.org>
40864
40865         Tolerate declared but missing dup3 syscall.
40866         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
40867         * lib/unistd.in.h (dup3): If the function is already present,
40868         override it.
40869         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
40870         * modules/dup3 (Makefile.am): Compile dup3.c always.
40871         Reported by Paolo Bonzini.
40872
40873 2009-08-23  Bruno Haible  <bruno@clisp.org>
40874
40875         Tolerate declared but missing pipe2 syscall.
40876         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
40877         available.
40878         * lib/unistd.in.h (pipe2): If the function is already present,
40879         override it.
40880         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
40881         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
40882         Reported by Paolo Bonzini.
40883
40884 2009-08-23  Bruno Haible  <bruno@clisp.org>
40885
40886         * lib/pipe2.c (pipe2): Move #ifs inside function.
40887
40888 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40889
40890         quotearg: document limitations of quote_these_too
40891         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
40892         those limitations are created.
40893         * lib/quotearg.h (set_char_quoting): Document that digits and
40894         letters that are special after backslash are not permitted.
40895         (quotearg_char): Cross-reference set_char_quoting documentation.
40896
40897 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
40898
40899         quotearg: implement custom_quoting_style
40900         * lib/quotearg.c: (struct quoting_options): Add left_quote and
40901         right_quote fields.
40902         (set_custom_quoting): New public function.
40903         (quotearg_buffer_restyled): Add left_quote and right_quote
40904         arguments, handle them very much like locale quoting, and update
40905         all uses.
40906         (quotearg_n_custom): New public function.
40907         (quotearg_n_custom_mem): New public function.
40908         (quotearg_custom): New public function.
40909         (quotearg_custom_mem): New public function.
40910         * lib/quotearg.h: Prototype and document new public functions.
40911         (enum quoting_style): For escape_quoting_style and
40912         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
40913         ignored even though they're otherwise like c_quoting_style.
40914         Add custom_quoting_style member and document with comparison to
40915         clocale_quoting_style.
40916         * tests/test-quotearg.c (custom_quotes): New array.
40917         (custom_results): New array.
40918         (main): Extend to test custom quoting.
40919
40920 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40921
40922         quotearg: fix right quote escaping when it's in quote_these_too
40923         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
40924         quote, be sure to prepend only one backslash.
40925         * tests/test-quotearg.c (use_quote_double_quotes): New function.
40926         (main): Test it.
40927
40928 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40929
40930         quotearg-tests: test escaping of embedded locale quotes
40931         * tests/test-quotearg.c (struct result_strings): Add member for
40932         new input.
40933         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
40934         (inputs): Add new input.
40935         (results_g): Add expected results.
40936         (flag_results): Likewise.
40937         (locale_results): Likewise.
40938         (compare_strings): Check those.
40939
40940 2009-08-23  Bruno Haible  <bruno@clisp.org>
40941
40942         Tests for module 'dup3'.
40943         * modules/dup3-tests: New file.
40944         * tests/test-dup3.c: New file.
40945
40946         New module 'dup3'.
40947         * lib/unistd.in.h (dup3): New declaration.
40948         * lib/dup3.c: New file.
40949         * m4/dup3.m4: New file.
40950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
40951         HAVE_DUP3.
40952         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
40953         * modules/dup3: New file.
40954         * doc/glibc-functions/dup3.texi: Mention the new module.
40955
40956 2009-08-23  Bruno Haible  <bruno@clisp.org>
40957
40958         Tweak the dup2 test.
40959         * tests/test-dup2.c (main): Create the test file empty. Verify that an
40960         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
40961         the test file is still empty. Fix argument order of lseek.
40962
40963 2009-08-23  Bruno Haible  <bruno@clisp.org>
40964
40965         Avoid test link errors when the modules getopt-gnu, gettext are used.
40966         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
40967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40968
40969 2009-08-23  Bruno Haible  <bruno@clisp.org>
40970
40971         Fix getdtablesize() on mingw.
40972         * lib/getdtablesize.c (getdtablesize): Implement differently.
40973         * lib/unistd.in.h (getdtablesize): Improve comment.
40974
40975 2009-08-23  Bruno Haible  <bruno@clisp.org>
40976
40977         New module 'mkostemp'.
40978         Based on Ulrich Drepper's 2007-08-10 change in glibc.
40979         * lib/stdlib.in.h (mksotemp): New declaration.
40980         * lib/mkostemp.c: New file, from glibc with modifications.
40981         * lib/tempname.h (GT_FILE): Remove outdated comment.
40982         (gen_tempname): Add flags argument.
40983         * lib/tempname.c (__GT_BIGFILE): Remove macro.
40984         (__GT_FILE): Map to 1.
40985         (small_open, large_open): Remove macros.
40986         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
40987         * lib/mkstemp.c (mkstemp): Update.
40988         * lib/mkdtemp.c (mkdtemp): Likewise.
40989         * m4/mkostemp.m4: New file.
40990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
40991         HAVE_MKOSTEMP.
40992         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
40993         HAVE_MKOSTEMP.
40994         * modules/mkostemp: New file, based on modules/mkstemp.
40995         * doc/glibc-functions/mkostemp.texi: Mention the new module.
40996         * NEWS: Mention the change.
40997
40998 2009-08-23  Bruno Haible  <bruno@clisp.org>
40999
41000         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41001         Reported by Eric Blake.
41002
41003 2009-08-23  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41006         Reported by Eric Blake.
41007
41008 2009-08-23  Bruno Haible  <bruno@clisp.org>
41009
41010         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41011         * modules/pipe2 (Depends-on): Likewise.
41012
41013 2009-08-23  Eric Blake  <ebb9@byu.net>
41014
41015         fcntl-h: add O_TTY_INIT support
41016         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41017         * tests/test-fcntl-h.c (o): Test it.
41018         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41019
41020         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41021         * modules/fcntl: Move <fcntl.h> header replacement...
41022         * modules/fcntl-h: ...to new name, so as not to collide with
41023         like-named function.
41024         * tests/test-fcntl.c: Rename...
41025         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41026         * modules/fcntl-tests: Rename...
41027         * modules/fcntl-h-tests: ...to this.  Update test file name.
41028         * modules/chdir-long (Depends-on): Update clients.
41029         * modules/chdir-safer (Depends-on): Likewise.
41030         * modules/fcntl-safer (Depends-on): Likewise.
41031         * modules/fts (Depends-on): Likewise.
41032         * modules/mkancesdirs (Depends-on): Likewise.
41033         * modules/mkdir-p (Depends-on): Likewise.
41034         * modules/open (Depends-on): Likewise.
41035         * modules/savewd (Depends-on): Likewise.
41036         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41037         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41038
41039 2009-08-22  Bruno Haible  <bruno@clisp.org>
41040
41041         * modules/binary-io (License): Relicense under LGPL.
41042         * modules/pipe2 (License): Likewise.
41043
41044 2009-08-22  Bruno Haible  <bruno@clisp.org>
41045
41046         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41047         return value.
41048         * lib/pipe-filter-gi.c (filter_init): Likewise.
41049         Reported by Eric Blake.
41050
41051 2009-08-22  Bruno Haible  <bruno@clisp.org>
41052
41053         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41054         * modules/pipe (Depends-on): Add pipe2.
41055
41056 2009-08-22  Bruno Haible  <bruno@clisp.org>
41057
41058         Tests for module 'pipe2'.
41059         * modules/pipe2-tests: New file.
41060         * tests/test-pipe2.c: New file.
41061
41062         New module 'pipe2'.
41063         * lib/unistd.in.h (pipe2): New declaration.
41064         * lib/pipe2.c: New file.
41065         * m4/pipe2.m4: New file.
41066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41067         HAVE_PIPE2.
41068         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41069         * modules/pipe2: New file.
41070         * doc/glibc-functions/pipe2.texi: Mention the new module.
41071
41072 2009-08-22  Bruno Haible  <bruno@clisp.org>
41073
41074         Reference some new glibc functions.
41075         * doc/glibc-functions/accept4.texi: New file.
41076         * doc/glibc-functions/dup3.texi: New file.
41077         * doc/glibc-functions/mkostemp.texi: New file.
41078         * doc/glibc-functions/pipe2.texi: New file.
41079         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41080         (Glibc sys/socket.h): Refer to accept4.
41081         (Glibc unistd.h): Refer to dup3, pipe2.
41082         Reported by Eric Blake.
41083
41084 2009-08-22  Jim Meyering  <meyering@redhat.com>
41085             Bruno Haible  <bruno@clisp.org>
41086
41087         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41088         This makes it so packages using automake-1.11's silent-rules option
41089         can print e.g., a single "GEN    configmake.h" line, rather than
41090         the 30+ statements that perform the job.  If you want to see the
41091         actual commands, you can still run "make V=1".
41092         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41093         so that make output is abbreviated when those variables are defined
41094         appropriately.
41095         * modules/argz: Likewise.
41096         * modules/arpa_inet: Likewise.
41097         * modules/byteswap: Likewise.
41098         * modules/configmake: Likewise.
41099         * modules/dirent: Likewise.
41100         * modules/errno: Likewise.
41101         * modules/fcntl: Likewise.
41102         * modules/float: Likewise.
41103         * modules/fnmatch: Likewise.
41104         * modules/getopt-posix: Likewise.
41105         * modules/glob: Likewise.
41106         * modules/iconv_open: Likewise.
41107         * modules/inttypes: Likewise.
41108         * modules/localcharset: Likewise.
41109         * modules/locale: Likewise.
41110         * modules/math: Likewise.
41111         * modules/netdb: Likewise.
41112         * modules/netinet_in: Likewise.
41113         * modules/poll: Likewise.
41114         * modules/posix_spawnp-tests: Likewise.
41115         * modules/sched: Likewise.
41116         * modules/search: Likewise.
41117         * modules/selinux-h: Likewise.
41118         * modules/signal: Likewise.
41119         * modules/spawn: Likewise.
41120         * modules/stdarg: Likewise.
41121         * modules/stdbool: Likewise.
41122         * modules/stddef: Likewise.
41123         * modules/stdint: Likewise.
41124         * modules/stdio: Likewise.
41125         * modules/stdlib: Likewise.
41126         * modules/string: Likewise.
41127         * modules/strings: Likewise.
41128         * modules/sys_file: Likewise.
41129         * modules/sys_ioctl: Likewise.
41130         * modules/sys_select: Likewise.
41131         * modules/sys_socket: Likewise.
41132         * modules/sys_stat: Likewise.
41133         * modules/sys_time: Likewise.
41134         * modules/sys_times: Likewise.
41135         * modules/sys_utsname: Likewise.
41136         * modules/sys_wait: Likewise.
41137         * modules/sysexits: Likewise.
41138         * modules/time: Likewise.
41139         * modules/unistd: Likewise.
41140         * modules/wchar: Likewise.
41141         * modules/wctype: Likewise.
41142
41143 2009-08-22  Jim Meyering  <meyering@redhat.com>
41144
41145         announce-gen: detect write failure
41146         * build-aux/announce-gen: Add Coda at end.
41147         Remove equivalent-but-more-verbose block at top.
41148
41149 2009-08-19  Akim Demaille  <demaille@gostai.com>
41150
41151         bootstrap: --help to stdout.
41152         * bootstrap (usage): Don't send --help to stderr.
41153         Use a here doc instead of a long string.
41154
41155 2009-08-21  Eric Blake  <ebb9@byu.net>
41156
41157         test-popen-safer: split from test-popen
41158         * tests/test-popen.c (main): Move...
41159         * tests/test-popen.h: ...into new file.
41160         * tests/test-popen-safer2.c: New file.
41161         * modules/popen-tests (Files): Add test-popen.h.
41162         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41163         Suggested by Bruno Haible.
41164
41165         test-fcntl-safer: split from test-open
41166         * tests/test-open.c (main): Move...
41167         * tests/test-open.h: ...into new file.
41168         * tests/test-fcntl-safer.c: New file.
41169         * modules/open-tests (Files): Add test-open.h.
41170         * modules/fcntl-safer-tests: New file.
41171         Suggested by Bruno Haible.
41172
41173         test-fopen-safer: split from test-fopen
41174         * tests/test-fopen.c (main): Move...
41175         * tests/test-fopen.h: ...into new file.
41176         * tests/test-fopen-safer.c: New file.
41177         * modules/fopen-tests (Files): Add test-fopen.h.
41178         * modules/fopen-safer-tests: New file.
41179         Suggested by Bruno Haible.
41180
41181 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41182
41183         popen-safer: test O_CLOEXEC at run-time.
41184         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41185
41186 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41187
41188         fcntl: move more flags to the header
41189         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41190         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41191         * lib/fcntl.in.h: Do both things here.
41192
41193 2009-08-21  Jim Meyering  <meyering@redhat.com>
41194
41195         consistently remove $@-t before redirecting to it
41196         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41197         * modules/alloca-opt: Likewise.
41198         * modules/byteswap: Likewise.
41199         * modules/fnmatch: Likewise.
41200         * modules/getopt-posix: Likewise.
41201         * modules/glob: Likewise.
41202         * modules/poll: Likewise.
41203         * modules/posix_spawnp-tests: Likewise.
41204         * modules/sys_socket: Likewise.
41205         * modules/sysexits: Likewise.
41206
41207 2009-08-21  Eric Blake  <ebb9@byu.net>
41208
41209         popen: simplify access to original popen
41210         * lib/popen.c (rpl_popen): No need to worry about popen being a
41211         macro.
41212         Reported by Bruno Haible.
41213
41214 2009-08-20  Eric Blake  <ebb9@byu.net>
41215
41216         build: avoid some compiler warnings
41217         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41218         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41219         type.
41220         (new_exclude_segment, excluded_file_pattern_p)
41221         (excluded_file_name_p): Reduce scope.
41222         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41223         old-style declaration.
41224
41225 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41226
41227         * tests/test-exclude1.sh: Handle Windows EOL.
41228         * tests/test-exclude2.sh: Likewise.
41229         * tests/test-exclude3.sh: Likewise.
41230         * tests/test-exclude4.sh: Likewise.
41231         * tests/test-exclude5.sh: Likewise.
41232         * tests/test-exclude6.sh: Likewise.
41233         * tests/test-exclude7.sh: Likewise.
41234
41235 2009-08-19  Akim Demaille  <demaille@gostai.com>
41236
41237         bootstrap: find sha1sum when named gsha1sum.
41238         * bootstrap (find_tool): New.
41239         ($SHA1SUM): New.
41240         Use it.
41241
41242 2009-08-20  Jim Meyering  <meyering@redhat.com>
41243
41244         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41245         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41246         expression that converts "." in a file name to "\." in the resulting
41247         regexp.  Start with a dummy statement, so that prior shell variable
41248         definitions are expanded portably.  Reported by Simon Josefsson.
41249
41250 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41251
41252         Fix polling for writeability of a screen buffer.
41253         * lib/poll.c: Distinguish input and screen buffers for the
41254         Win32 implementation.
41255         * lib/select.c: Likewise.
41256
41257 2009-08-19  Eric Blake  <ebb9@byu.net>
41258
41259         popen-safer: prevent popen from clobbering std descriptors
41260         * modules/popen-safer: New file.
41261         * lib/popen-safer.c: Likewise.
41262         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41263         * lib/stdio--.h (popen): Provide override.
41264         * lib/stdio-safer.h (popen_safer): Provide declaration.
41265         * tests/test-popen.c (includes): Partially test this.
41266         * modules/popen-safer-tests: New file, for more tests.
41267         * tests/test-popen-safer.c: Likewise.
41268         * MODULES.html.sh (file stream based Input/Output): Mention it.
41269
41270         tests: test some of the *-safer modules
41271         * modules/fopen-safer (Depends-on): Add fopen.
41272         * modules/fcntl-safer (Depends-on): Add fcntl.
41273         * modules/stdlib-safer (Depends-on): Add stdlib.
41274         (configure.ac): Set indicator.
41275         * modules/unistd-safer (configure.ac): Likewise.
41276         * modules/tmpfile-safer (configure.ac): Likewise.
41277         (Depends-on): Add tmpfile.
41278         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41279         active.
41280         * tests/test-fopen.c (includes): Test safer versions when they are
41281         in use.
41282         * tests/test-open.c (includes): Likewise.
41283
41284         popen: fix cygwin 1.5 bug when stdin closed
41285         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41286         * modules/popen: New file.
41287         * modules/popen-tests: Likewise.
41288         * tests/test-popen.c: Likewise.
41289         * m4/popen.m4: Likewise.
41290         * lib/popen.c: Likewise.
41291         * lib/stdio.in.h (popen): New declaration.
41292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41293         * modules/stdio (Makefile.am): Likewise.
41294         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41295
41296 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41297
41298         maint.mk: give full control over update-copyright exclusions
41299         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41300         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41301         (update-copyright): Don't force inclusion of top-level
41302         ChangeLog.  Don't force exclusion of all COPYING files, but make
41303         them the default exclusion instead.
41304
41305 2009-08-16  Bruno Haible  <bruno@clisp.org>
41306
41307         Fix test failures on Solaris 10.
41308         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41309         tests when Solaris iconv() is used.
41310         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41311         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41312         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41313         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41314         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41315
41316 2009-08-16  Bruno Haible  <bruno@clisp.org>
41317
41318         Fix test failures on Solaris 10.
41319         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41320         'tr' program and pass it as first argument.
41321         * tests/test-pipe-filter-gi1.sh: Likewise.
41322         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41323         program as first argument.
41324         * tests/test-pipe-filter-gi1.c (main): Likewise.
41325
41326 2009-08-16  Eric Blake  <ebb9@byu.net>
41327
41328         fpurge: fix previous commits
41329         * modules/fpurge (Makefile.am): Make replacement conditional,
41330         partially reverting 2007-04-29 change; missed in previous
41331         attempt.
41332         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41333         is missing.
41334
41335 2009-08-16  Bruno Haible  <bruno@clisp.org>
41336
41337         Clarify fpurge's effect on the file position.
41338         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41339         * tests/test-fpurge.c (main): Make a second pass for checking the file
41340         position.
41341
41342 2009-08-16  Bruno Haible  <bruno@clisp.org>
41343
41344         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41345         declaration of fpurge is missing.
41346         * tests/test-fpurge.c (main): Check that the file has not more contents
41347         than expected. Close the file before removing it.
41348
41349 2009-08-15  Eric Blake  <ebb9@byu.net>
41350
41351         fpurge: don't wrap working cygwin implementation
41352         * lib/fpurge.c (fpurge): Fix comment typo.
41353         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41354         1.7 to avoid replacement.
41355         * tests/test-fpurge.c (main): Enhance test.
41356
41357 2009-08-15  Eric Blake  <ebb9@byu.net>
41358         and Jim Meyering  <meyering@redhat.com>
41359
41360         test-update-copyright: skip if perl is insufficient
41361         * tests/test-update-copyright.sh: Failure to run maintainer tool
41362         should not cause testsuite failure on cygwin 1.5.
41363
41364 2009-08-14  Eric Blake  <ebb9@byu.net>
41365
41366         doc: mention more functions added in cygwin 1.7.0
41367         * doc/posix-headers/limits.texi (limits.h): Update for recent
41368         cygwin additions.
41369         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41370         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41371         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41372         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41373         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41374
41375 2009-08-14  Eric Blake  <ebb9@byu.net>
41376
41377         maint.mk: simplify update-copyright rule
41378         * top/maint.mk (update-copyright-local): Delete, and document how
41379         to do it in cfg.mk instead.
41380         (update-copyright-exclude-regexp): Delete, and document how to do
41381         it in .x-update-copyright instead.
41382         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41383         exclude ChangeLog.
41384
41385 2009-08-14  Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41388
41389 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41390
41391         maint.mk: support update-copyright-env
41392         * top/maint.mk (update-copyright-env): Define place-holder.
41393         (update-copyright): Expand $(update-copyright-env) before
41394         invoking update-copyright.
41395
41396 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41397
41398         update-copyright: implement forced reformatting
41399         * build-aux/update-copyright: Implement and document
41400         UPDATE_COPYRIGHT_FORCE.
41401         * tests/test-update-copyright.sh: Test it.
41402
41403 2009-08-14  Eric Blake  <ebb9@byu.net>
41404         and Bruno Haible  <bruno@clisp.org>
41405
41406         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41407         * tests/test-locale.c: Revert previous patch related to NULL.
41408         * tests/test-stdio.c: Likewise.
41409         * tests/test-stdlib.c: Likewise.
41410         * tests/test-string.c: Likewise.
41411         * tests/test-unistd.c: Likewise.
41412         * modules/time-tests (Depends-on): Add verify.
41413         * modules/wchar-tests (Depends-on): Likewise.
41414         * tests/test-time.c: Test for NULL compliance.
41415         * tests/test-wchar.c: Likewise.
41416         * modules/locale (Depends-on): Add stddef.
41417         * modules/stdio (Depends-on): Likewise.
41418         * modules/stdlib (Depends-on): Likewise.
41419         * modules/string (Depends-on): Likewise.
41420         * modules/time (Depends-on): Likewise.
41421         * modules/unistd (Depends-on): Likewise.
41422         * modules/wchar (Depends-on): Likewise.
41423         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41424         * lib/stdlib.in.h (includes): Likewise.
41425         * lib/string.in.h (includes): Likewise.
41426         * lib/time.in.h (includes): Likewise.
41427         * lib/unistd.in.h (includes): Likewise.
41428         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41429         replaced.
41430         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41431         * m4/stddef_h.m4: New file.
41432         * modules/stddef: Likewise.
41433         * lib/stddef.in.h: Likewise.
41434         * modules/stddef-tests: Likewise.
41435         * tests/test-stddef.c: Likewise.
41436         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41437         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41438         * doc/posix-headers/locale.texi (locale.h): Likewise.
41439         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41440         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41441         * doc/posix-headers/string.texi (string.h): Likewise.
41442         * doc/posix-headers/time.texi (time.h): Likewise.
41443         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41444         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41445
41446 2009-08-14  Eric Blake  <ebb9@byu.net>
41447
41448         doc: improve git diff of texinfo files
41449         * .gitattributes: Add rule for *.texi files, with hint on how to
41450         use it.
41451         Copied from m4, and based on a report by Bruno Haible.
41452
41453 2009-08-14  Bruno Haible  <bruno@clisp.org>
41454
41455         Disable multithread support by default on Cygwin 1.5.x for real.
41456         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41457
41458 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41459
41460         update-copyright: much ado about intervals
41461         * build-aux/update-copyright: Implement and document
41462         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41463         of copyright year intervals.
41464         Also, document UPDATE_COPYRIGHT_YEAR.
41465         * tests/test-update-copyright.sh: Test it.
41466
41467         update-copyright: convert 2-digit to 4-digit years
41468         * build-aux/update-copyright: Implement and document.
41469         * tests/test-update-copyright.sh: Update.
41470
41471 2009-08-14  Jim Meyering  <meyering@redhat.com>
41472
41473         test-exclude: avoid coreutils "make check" failure
41474         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41475         just as in test-argmatch.c.
41476
41477 2009-08-13  Eric Blake  <ebb9@byu.net>
41478
41479         test-dup2: fix bad assumption
41480         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41481         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41482
41483         test-version-etc: fix CRLF portability issue
41484         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41485         recognize \r.
41486         * tests/test-argp-version-etc-1.sh: Likewise.
41487
41488         getopt: update client modules
41489         * modules/argp (Depends-on): Use getopt-gnu.
41490         * modules/git-merge-changelog (Depends-on): Likewise.
41491         * modules/long-options (Depends-on): Likewise.
41492         * modules/xstrtol (Depends-on): Likewise.
41493
41494 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41495
41496         * tests/test-version-etc.sh: Don't fail on different
41497         project/version.  Don't fail on CRLF differences.  Rewrite to use
41498         multiple -e instead of multiple sed forks, suggested by Eric Blake
41499         <ebb9@byu.net>.
41500         * tests/test-argp-version-etc-1.sh: Likewise.
41501
41502 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41503
41504         * tests/test-version-etc.sh: Don't fail on different
41505         project/version.
41506
41507 2009-08-12  Bruno Haible  <bruno@clisp.org>
41508
41509         Tests for modules 'getopt-posix', 'getopt-gnu'.
41510         * modules/getopt-posix-tests: New file.
41511         * tests/test-getopt.c: New file.
41512         * tests/test-getopt.h: New file.
41513         * tests/test-getopt_long.h: New file.
41514
41515         New modules 'getopt-posix', 'getopt-gnu'.
41516         * modules/getopt-gnu: New file, renamed from modules/getopt.
41517         * modules/getopt-posix: New file.
41518         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41519         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41520         (gl_GETOPT): Remove macro.
41521         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41522         Disable the test against BSD systems that declare optreset. Test
41523         against mingw bug. Test against lack of support of optional arguments
41524         on many platforms.
41525         * doc/glibc-headers/getopt.texi: Update module name and list of
41526         relevant platforms.
41527         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41528         'getopt-gnu' and more portability problems.
41529         * NEWS: Mention the changes.
41530
41531 2009-08-12  Bruno Haible  <bruno@clisp.org>
41532
41533         Ensure that optarg etc. get declared by <unistd.h>.
41534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41535         AC_USE_SYSTEM_EXTENSIONS.
41536         * modules/getopt (Depends-on): Add 'extensions'.
41537
41538 2009-08-12  Bruno Haible  <bruno@clisp.org>
41539
41540         Avoid test link errors.
41541         * modules/pipe-filter-ii-tests (Makefile.am): Define
41542         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41543         * modules/pipe-filter-gi-tests (Makefile.am): Define
41544         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41546
41547 2009-08-12  Bruno Haible  <bruno@clisp.org>
41548
41549         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41550         gl_GETOPT_SUBSTITUTE before.
41551         (gl_GETOPT): Use it.
41552         * m4/argp.m4 (gl_ARGP): Update.
41553         Reported by Sergey Poznyakoff.
41554
41555         * m4/getopt.m4: Reorder macros.
41556         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41557         (gl_GETOPT_SUBSTITUTE): Remove macro.
41558
41559 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41560
41561         Minor improvement in gitlog-to-changelog
41562
41563         * build-aux/gitlog-to-changelog: New option `--format' makes
41564         output format string configurable.
41565
41566 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41567
41568         Optimize exclude: use hash tables for non-wildcard patterns.
41569
41570         * lib/exclude.c: Include hash.h and mbuiter.h
41571         (struct exclude_pattern, exclude_segment): New data types.
41572         (struct exclude): Rewrite.
41573         (fnmatch_pattern_has_wildcards): New function.
41574         (new_exclude_segment, free_exclude_segment): New functions.
41575         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41576         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41577         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41578         * modules/exclude: Depend on hash and mbuiter.
41579
41580         * modules/exclude-tests: New file.
41581         * tests/test-exclude.c: New file.
41582         * tests/test-exclude1.sh: New file.
41583         * tests/test-exclude2.sh: New file.
41584         * tests/test-exclude3.sh: New file.
41585         * tests/test-exclude4.sh: New file.
41586         * tests/test-exclude5.sh: New file.
41587         * tests/test-exclude6.sh: New file.
41588         * tests/test-exclude7.sh: New file.
41589
41590 2009-08-12  Bruno Haible  <bruno@clisp.org>
41591
41592         Ensure that getopt() gets declared by <unistd.h>.
41593         * lib/unistd.in.h: Conditionally include getopt.h.
41594         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41595         Set GNULIB_UNISTD_H_GETOPT.
41596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41597         GNULIB_UNISTD_H_GETOPT.
41598         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41599
41600 2009-08-12  Bruno Haible  <bruno@clisp.org>
41601
41602         Clarify logic.
41603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41604         gl_replace_getopt instead of GETOPT_H.
41605
41606 2009-08-12  Bruno Haible  <bruno@clisp.org>
41607
41608         * m4/getopt.m4: Add comments.
41609
41610 2009-08-12  Bruno Haible  <bruno@clisp.org>
41611
41612         Disable multithread support by default on Cygwin 1.5.x.
41613         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41614         set gl_use_threads=no if not specified otherwise.
41615
41616 2009-08-11  Bruno Haible  <bruno@clisp.org>
41617
41618         Avoid compilation error on NetBSD 5.0.
41619         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41620         * tests/test-stdio.c: Likewise.
41621         * tests/test-stdlib.c: Likewise.
41622         * tests/test-string.c: Likewise.
41623         * tests/test-unistd.c: Likewise.
41624         Reported by Greg Troxel <gdt@ir.bbn.com>
41625         at <https://savannah.gnu.org/support/?106973>.
41626
41627 2009-08-11  Bruno Haible  <bruno@clisp.org>
41628
41629         * modules/dup2-tests (Depends-on): Remove close.
41630
41631         Undo 2009-07-19 commit.
41632         * modules/acl-tests (Depends-on): Remove close.
41633         * modules/binary-io-tests (Depends-on): Likewise.
41634         * modules/closein-tests (Depends-on): Likewise.
41635         * modules/flock-tests (Depends-on): Likewise.
41636         * modules/fsync-tests (Depends-on): Likewise.
41637         * modules/lseek-tests (Depends-on): Likewise.
41638         * modules/pipe-tests (Depends-on): Likewise.
41639         * modules/posix_spawn-tests (Depends-on): Likewise.
41640         * modules/posix_spawnp-tests (Depends-on): Likewise.
41641         * modules/stat-time-tests (Depends-on): Likewise.
41642         * modules/yesno-tests (Depends-on): Likewise.
41643
41644 2009-08-10  Bruno Haible  <bruno@clisp.org>
41645
41646         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41647
41648 2009-08-10  Bruno Haible  <bruno@clisp.org>
41649
41650         Fix a gcc warning.
41651         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41652
41653 2009-08-10  Bruno Haible  <bruno@clisp.org>
41654
41655         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41656         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41657         not only the first time.
41658         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41659         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41660         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41661         is 1, not only the the first time.
41662
41663 2009-08-10  Bruno Haible  <bruno@clisp.org>
41664
41665         Make it possible to use module 'gethostname' without module 'close'.
41666         * lib/unistd.in.h (close): Evoke a link error only if
41667         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41669         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41670         * modules/unistd (Makefile.am): Substitute
41671         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41672         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41673         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41675         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41676         * modules/sys_ioctl (Makefile.am): Substitute
41677         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41678         * modules/socket (configure.ac): On native Windows, set
41679         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41680         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41681         Reported by Sam Steingold <sds@gnu.org>.
41682
41683 2009-08-10  Bruno Haible  <bruno@clisp.org>
41684
41685         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41686         * modules/ioctl (configure.ac): Likewise.
41687
41688 2009-08-10  Bruno Haible  <bruno@clisp.org>
41689
41690         Avoid collision between gnulib wrapper and libintl wrapper.
41691         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41692         already defined in intl/printf.c.
41693         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41694         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41695
41696 2009-08-09  Bruno Haible  <bruno@clisp.org>
41697
41698         Make <sys/select.h> really self-contained, also on Solaris 10.
41699         * lib/sys_select.in.h: Include <string.h>.
41700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41701         Solaris 10 problem.
41702         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41703         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41704         Reported by Jim Meyering.
41705
41706 2009-08-09  Bruno Haible  <bruno@clisp.org>
41707
41708         Avoid warnings from 'aclocal' that are due to a use of macro name
41709         AM_XGETTEXT_OPTION that is not defined in automake.
41710         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41711         automake.
41712         * modules/error (configure.ac): Likewise.
41713         * modules/propername (configure.ac): Likewise.
41714         * modules/vasprintf (configure.ac): Likewise.
41715         * modules/verror (configure.ac): Likewise.
41716         * modules/xprintf (configure.ac): Likewise.
41717         * modules/xvasprintf (configure.ac): Likewise.
41718
41719 2009-08-08  Bruno Haible  <bruno@clisp.org>
41720
41721         Avoid compilation error in C++ mode.
41722         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41723         Reported by Sam Steingold <sds@gnu.org>.
41724
41725 2009-08-08  Bruno Haible  <bruno@clisp.org>
41726
41727         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41728         for the various Unix platforms.
41729         * doc/posix-headers/limits.texi: Update platforms list regarding
41730         HOST_NAME_MAX.
41731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41732
41733 2009-08-07  Jim Meyering  <meyering@redhat.com>
41734
41735         selinux-at: fix typo in a comment
41736         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41737         Spotted by Paolo Bonzini.
41738
41739         selinux-at: remove redundant m4 code, add documentation
41740         * modules/selinux-at (configure.ac): Remove redundant code.
41741         LIB_SELINUX is already set via the dependent module, selinux-h.
41742         (Include): Add quotes around selinux-at.h.
41743         * lib/selinux-at.h: Add documentation.
41744         Reported by Bruno Haible in
41745         http://marc.info/?l=gnulib-bug&m=124958988300749
41746
41747 2009-08-07  Bruno Haible  <bruno@clisp.org>
41748
41749         Avoid link error on MacOS X 10.3 and 10.4.
41750         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41751         on non-ELF systems.
41752         * lib/argp-pv.c (argp_program_version): Likewise.
41753         Reported by Simon Josefsson.
41754
41755 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41756
41757         * tests/test-version-etc.sh: Use $EXEEXT.
41758
41759 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41760
41761         update-copyright: update documentation to point to maint.mk
41762         * build-aux/update-copyright: Here.
41763
41764 2009-08-06  Jim Meyering  <meyering@redhat.com>
41765
41766         maint.mk: support update-copyright-local
41767         * top/maint.mk (update-copyright-local): Define place-holder.
41768         (update-copyright): Depend on $(update-copyright-local).
41769
41770 2009-08-06  Jim Meyering  <meyering@redhat.com>
41771
41772         selinux-at: new module
41773         Initially written for coreutils, this module will soon be
41774         used by findutils, too.
41775         * MODULES.html.sh [Misc]: Add selinux-at.
41776         * lib/selinux-at.h: New file, from coreutils.
41777         * lib/selinux-at.c: Likewise.
41778         * modules/selinux-at: Likewise.
41779         (License): Change from LGPL to GPL, since it depends
41780         on the GPL'd openat module.
41781
41782         doc: update README
41783         * README: Remove references to cogito.
41784         Remove cvs-repo-updating instructions from 2007.
41785         Don't imply that CVS is better if you have limited disk space.
41786
41787 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41788
41789         update-copyright: support C-style comments
41790         * build-aux/update-copyright: Implement and document.
41791         * tests/test-update-copyright.sh: Test.
41792
41793 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41794
41795         update-copyright: support omitted "(C)"
41796         * build-aux/update-copyright: Implement and document.  Also,
41797         allow variable whitespace before "(C)".
41798         * tests/test-update-copyright.sh: Test.
41799
41800 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41801
41802         update-copyright: don't trip on non-FSF copyright statements
41803         * build-aux/update-copyright: Fix so that the first correctly
41804         formatted FSF copyright statement is recognized no matter what
41805         appears before it.  Update documentation.
41806         * tests/test-update-copyright.sh: Test that.
41807
41808 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41809
41810         update-copyright: clean up code a little
41811         * build-aux/update-copyright: Append "_re" to the name of any
41812         variable holding a regular expression.
41813         Replace "old" and "new" with "stmt" in variable names.
41814         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41815         handled correctly.
41816         Format code more consistently.
41817
41818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41819
41820         update-copyright-tests: improve portability
41821         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41822         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41823
41824 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41825
41826         update-copyright: support @copyright{} and &copy;
41827         * build-aux/update-copyright: Implement and document.
41828         * tests/test-update-copyright.sh: Test.
41829
41830 2009-08-04  Jim Meyering  <meyering@redhat.com>
41831
41832         update-copyright-tests: correctly test EOL=\r\n handling
41833         * tests/test-update-copyright.sh: Put \r at the end of some lines
41834         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41835
41836         maint.mk: make update-copyright exclusion list more configurable
41837         * top/maint.mk (update-copyright): Default to excluding COPYING,
41838         but allow an override, in case someone does want to update that file.
41839
41840         maint.mk: don't update copyright date in COPYING
41841         * top/maint.mk (update-copyright): Exclude COPYING.
41842
41843         maint.mk: add a copyright-updating rule
41844         * top/maint.mk (update-copyright): New rule.
41845         Derived from coreutils/Makefile.am.
41846
41847         update-copyright: rename some variables
41848         * build-aux/update-copyright: Rename a few variables for clarity.
41849         Tweak syntax.  List Joel E. Denny as coauthor.
41850
41851 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41852
41853         update-copyright: fix bug for 2-digit last year and add tests
41854         * build-aux/update-copyright: Fix bug.
41855         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
41856         specified.
41857         * modules/update-copyright-tests: New
41858         * tests/test-update-copyright.sh: New.
41859
41860 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41861
41862         update-copyright: handle leading tabs in line prefix
41863         * build-aux/update-copyright: Count leading tabs as 8 spaces
41864         when computing margin.  This helps with the formatting of
41865         ChangeLogs, for example.
41866         Fix documentation a little.
41867
41868 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41869
41870         update-copyright: support EOL=\r\n
41871         * build-aux/update-copyright: Implement that.
41872
41873 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41874
41875         update-copyright: automatically format copyright statements
41876         * build-aux/update-copyright: Implement that.
41877         Also, be a little more predictable and safer by always failing
41878         when the full copyright format is not perfectly recognized as an
41879         unbroken whole.  Discussed at
41880         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
41881         Rewrite documentation.
41882
41883 2009-08-03  Bruno Haible  <bruno@clisp.org>
41884
41885         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
41886
41887 2009-08-02  Bruno Haible  <bruno@clisp.org>
41888
41889         Tests for module 'uname'.
41890         * modules/uname-tests: New file.
41891         * tests/test-uname.c: New file.
41892
41893         New module 'uname'.
41894         * lib/uname.c: New file.
41895         * m4/uname.m4: New file.
41896         * modules/uname: New file.
41897         * doc/posix-functions/uname.texi: Mention the new module.
41898
41899 2009-08-02  Bruno Haible  <bruno@clisp.org>
41900
41901         Tests for module 'sys_utsname'.
41902         * modules/sys_utsname-tests: New file.
41903         * tests/test-sys_utsname.c: New file.
41904
41905         New module 'sys_utsname'.
41906         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
41907         * m4/sys_utsname_h.m4: New file.
41908         * modules/sys_utsname: New file.
41909         * doc/posix-headers/sys_utsname.texi: Mention the new module.
41910
41911 2009-08-02  Bruno Haible  <bruno@clisp.org>
41912
41913         Implicitly initialize the sockets library.
41914         * lib/gethostname.c: Include sockets.h.
41915         (rpl_gethostname): Invoke gl_sockets_startup.
41916         * lib/socket.c: Include sockets.h.
41917         (rpl_socket): Invoke gl_sockets_startup.
41918         * modules/gethostname (Depends-on): Add sockets.
41919         * modules/socket (Depends-on): Likewise.
41920         * tests/test-poll.c: Don't include sockets.h.
41921         (main): Don't invoke gl_sockets_startup.
41922         * tests/test-select.c: Don't include sockets.h.
41923         (main): Don't invoke gl_sockets_startup.
41924
41925 2009-08-02  Bruno Haible  <bruno@clisp.org>
41926
41927         Allow multiple calls to gl_sockets_startup.
41928         * lib/sockets.c (initialized_sockets_version): New variable.
41929         (gl_sockets_startup): Do nothing if already called for this or a higher
41930         version.
41931         (gl_sockets_cleanup): Reset initialized_sockets_version.
41932
41933 2009-08-03  Simon Josefsson  <simon@josefsson.org>
41934
41935         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
41936         different project/version.
41937
41938 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
41939             Bruno Haible  <bruno@clisp.org>
41940
41941         Tests for module 'pipe-filter-gi'.
41942         * modules/pipe-filter-gi-tests: New file.
41943         * tests/test-pipe-filter-gi1.sh: New file.
41944         * tests/test-pipe-filter-gi1.c: New file.
41945         * tests/test-pipe-filter-gi2.sh: New file.
41946         * tests/test-pipe-filter-gi2-main.c: New file.
41947         * tests/test-pipe-filter-gi2-child.c: New file.
41948
41949         New module 'pipe-filter-gi'.
41950         * lib/pipe-filter-gi.c: New file.
41951         * modules/pipe-filter-gi: New file.
41952
41953 2009-08-02  Bruno Haible  <bruno@clisp.org>
41954             Paolo Bonzini  <bonzini@gnu.org>
41955
41956         Tests for module 'pipe-filter-ii'.
41957         * modules/pipe-filter-ii-tests: New file.
41958         * tests/test-pipe-filter-ii1.sh: New file.
41959         * tests/test-pipe-filter-ii1.c: New file.
41960         * tests/test-pipe-filter-ii2.sh: New file.
41961         * tests/test-pipe-filter-ii2-main.c: New file.
41962         * tests/test-pipe-filter-ii2-child.c: New file.
41963
41964         New module 'pipe-filter-ii'.
41965         * lib/pipe-filter.h: New file.
41966         * lib/pipe-filter-ii.c: New file.
41967         * lib/pipe-filter-aux.h: New file.
41968         * modules/pipe-filter-ii: New file.
41969
41970 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41971
41972         * lib/gc-libgcrypt.c: Change copyright to FSF.
41973         * lib/gc-gnulib.c: Likewise.
41974
41975 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
41976
41977         * lib/gethostname.c: Include limits.h.
41978
41979 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41980             Bruno Haible  <bruno@clisp.org>
41981
41982         Ensure HOST_NAME_MAX as part of the gethostname module.
41983         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
41984         define also HOST_NAME_MAX.
41985         * tests/test-gethostname.c: Include <limits.h>.
41986         (main): Check also HOST_NAME_MAX.
41987         * doc/posix-headers/limits.texi: Document the mingw problem.
41988
41989 2009-08-02  Bruno Haible  <bruno@clisp.org>
41990
41991         * lib/gethostname.c (gethostname): Fix handling of large len argument.
41992         Add comments.
41993
41994 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41995
41996         * lib/gethostname.c: Add Windows wrapper.
41997         * m4/gethostname.m4: Look for gethostname in -lws2_32.
41998         * modules/gethostname: Depend on sys_socket & errno, for also
41999         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42000         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42001
42002 2009-07-31  Jim Meyering  <meyering@redhat.com>
42003
42004         getloadavg: fix symbol name in comment
42005         * lib/getloadavg.c: Correct a typo I introduced when adding
42006         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42007         Matt Kraai spotted the problem.
42008
42009 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42010
42011         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42012         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42013         code also if ! defined N_NAME_POINTER.
42014         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42015         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42016         but the n_name member is a 12-byte array.
42017
42018 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42019
42020         update-copyright: generalize comment handling
42021         * build-aux/update-copyright: Handle copyright statements
42022         within more comment styles.
42023         Document usage.
42024         Report any file with an external copyright holder or parse failure.
42025
42026 2009-07-29  Jim Meyering  <meyering@redhat.com>
42027
42028         mktime: correct setting of REPLACE_MKTIME
42029         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42030
42031         update-copyright: new module
42032         * modules/update-copyright: New file.
42033         * build-aux/update-copyright: New file.
42034         * MODULES.html.sh (maint+release support): Add update-copyright.
42035
42036 2009-07-27  Bruno Haible  <bruno@clisp.org>
42037
42038         Fix compilation error when <ctime> is used and mktime is replaced.
42039         * lib/time.in.h (mktime): New declaration.
42040         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42041         REPLACE_MKTIME instead of defining mktime in config.h.
42042         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42043         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42044         Reported by Ross McFarland <rwmcfa1@neces.com>.
42045
42046 2009-07-27  Bruno Haible  <bruno@clisp.org>
42047
42048         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42049         Reported by Matt Kraai <mkraai@beckman.com>.
42050
42051 2009-07-25  Jim Meyering  <meyering@redhat.com>
42052
42053         maint.mk: avoid warnings about missing files
42054         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42055         diagnostic when .prev-version does not exist.
42056         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42057         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42058         nonexistent cfg.mk.
42059         Suggestions from Simon Josefsson.
42060
42061 2009-07-25  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42064         defined as macros. Needed on QNX 6.4.1.
42065         Reported by Matt Kraai <mkraai@beckman.com>.
42066
42067 2009-07-23  Jim Meyering  <meyering@redhat.com>
42068
42069         maint.mk: invoke "make dist" with a working value of XZ_OPT
42070         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42071
42072 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42073
42074         Make fseeko.c compile on QNX.
42075         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42076
42077 2009-07-22  Peter Simons  <simons@cryp.to>
42078
42079         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42080         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42081         * lib/md4.h: Likewise.
42082         * lib/md5.h: Likewise.
42083         * lib/sha1.h: Likewise.
42084         * lib/sha256.h: Likewise.
42085         * lib/sha512.h: Likewise.
42086
42087         tests-sha1: don't assign literal string to 'char *' variable
42088         * tests/test-sha1.c (main): Declare locals with "const" to match
42089         attributes of the right hand side.
42090
42091 2009-07-21  Eric Blake  <ebb9@byu.net>
42092
42093         dup2: fix more mingw problems
42094         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42095         fd to itself.
42096         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42097         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42098         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42099         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42100         care of mingw bugs.
42101
42102 2009-07-21  Jim Meyering  <meyering@redhat.com>
42103
42104         vc-list-files: avoid failure when /bin/sh is dash
42105         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42106         On some Debian based systems, /bin/sh is a symlink to dash, and running
42107         this command would omit the "/" following each 'tests' prefix:
42108           dash -x build-aux/vc-list-files -C . tests
42109         That is because bash and dash work differently:
42110           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42111           bash ok
42112           dash odd
42113
42114 2009-07-21  Eric Blake  <ebb9@byu.net>
42115
42116         dup2-tests: test previous patch
42117         * modules/dup2-tests: New file.
42118         * tests/test-dup2.c: Likewise.
42119         * tests/test-open.c (main): Avoid unspecified behavior.
42120         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42121         test.
42122
42123         dup2: work around mingw and cygwin 1.5 bug
42124         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42126         * modules/unistd (Makefile.am): Substitute it.
42127         * lib/unistd.in.h (dup2): Declare the replacement.
42128         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42129         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42130         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42131         * modules/execute (Depends-on): Add dup2.
42132         * modules/fseterr (Depends-on): Likewise.
42133         * modules/pipe (Depends-on): Likewise.
42134         * modules/posix_spawn-internal (Depends-on): Likewise.
42135
42136 2009-07-21  Bruno Haible  <bruno@clisp.org>
42137
42138         * modules/.gitattributes: New file.
42139
42140 2009-07-20  Bruno Haible  <bruno@clisp.org>
42141
42142         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42143         (main): Use it.
42144
42145 2009-07-20  Eric Blake  <ebb9@byu.net>
42146
42147         test-pipe: make a bit more robust.
42148         * tests/test-pipe.c (myerr): Allow error messages regardless of
42149         what we do to stderr.
42150         (test_pipe): Rearrange to avoid deadlock.
42151         (child_main): Try a larger read, to ensure we avoided deadlock.
42152         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42153         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42154         if misused.
42155
42156 2009-07-19  Jim Meyering  <meyering@redhat.com>
42157
42158         fts: avoid false-positive cycle-detection
42159         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42160         for each new command line argument.
42161
42162 2009-07-19  Bruno Haible  <bruno@clisp.org>
42163
42164         Fix build error on mingw with the modules sys_select and unistd.
42165         * modules/acl-tests (Depends-on): Add close.
42166         * modules/binary-io-tests (Depends-on): Likewise.
42167         * modules/closein-tests (Depends-on): Likewise.
42168         * modules/flock-tests (Depends-on): Likewise.
42169         * modules/fsync-tests (Depends-on): Likewise.
42170         * modules/lseek-tests (Depends-on): Likewise.
42171         * modules/pipe-tests (Depends-on): Likewise.
42172         * modules/posix_spawn-tests (Depends-on): Likewise.
42173         * modules/posix_spawnp-tests (Depends-on): Likewise.
42174         * modules/stat-time-tests (Depends-on): Likewise.
42175         * modules/yesno-tests (Depends-on): Likewise.
42176
42177 2009-07-19  Bruno Haible  <bruno@clisp.org>
42178
42179         Unify conditionals.
42180         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42181         macros, not at the compiler macros.
42182         * lib/pipe.c: Likewise.
42183         * lib/execute.c: Likewise.
42184         * lib/spawni.c: Likewise.
42185
42186 2009-07-19  Bruno Haible  <bruno@clisp.org>
42187
42188         Fix handling of closed stdin/stdout/stderr on mingw.
42189         * lib/w32spawn.h: Include unistd.h.
42190         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42191         file descriptor with O_NOINHERIT flag.
42192         (fd_safer_noinherit): New function, based on fd-safer.c.
42193         (dup_safer_noinherit): New function, based on dup-safer.c.
42194         (undup_safer_noinherit): New function.
42195         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42196         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42197         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42198         instead of fd_safer.
42199         * tests/test-pipe.c: Include <windows.h>.
42200         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42201         result.
42202
42203         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42204         from main.
42205         (test_pipe): Pass an extra argument for disambiguation.
42206         (main): Invoke parent_main or child_main.
42207
42208         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42209         consistently.
42210
42211 2009-07-18  Eric Blake  <ebb9@byu.net>
42212
42213         test-pipe: fix mingw build
42214         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42215
42216 2009-07-18  Bruno Haible  <bruno@clisp.org>
42217
42218         * modules/pipe-tests (Makefile.am): Fix typo.
42219
42220 2009-07-18  Eric Blake  <ebb9@byu.net>
42221
42222         error: fix mingw build
42223         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42224         Reported by Bruno Haible.
42225
42226         error: avoid undefined use of stdout
42227         * lib/error.c (error, error_at_line): Check that fd 1 is open
42228         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42229         is handling faults and the close_stdout module wants to report the
42230         detection of closed stdout as an error.
42231
42232 2009-07-17  Eric Blake  <ebb9@byu.net>
42233
42234         pipe: be robust in face of closed fds
42235         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42236         should cause child to misbehave.
42237         * modules/pipe-tests: New module.
42238         * tests/test-pipe.c: New file.
42239         * tests/test-pipe.sh: New file.
42240         Reported by Akim Demaille.
42241
42242 2009-07-14  Bruno Haible  <bruno@clisp.org>
42243
42244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42245         Reported by anonymous kc.
42246
42247 2009-07-07  Jim Meyering  <meyering@redhat.com>
42248
42249         maint.mk: don't look for translatable strings in *.m4 or *.mk
42250         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42251         when searching for translatable strings.
42252
42253 2009-07-05  Jim Meyering  <meyering@redhat.com>
42254
42255         remove superfluous parentheses in STREQ definition
42256         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42257         * lib/getugroups.c (STREQ): Likewise.
42258         * lib/fnmatch.c (STREQ): Likewise.
42259         Spotted by Bruno Haible.
42260
42261 2009-07-04  Jim Meyering  <meyering@redhat.com>
42262
42263         argv-iter: new module
42264         * MODULES.html.sh: Add argv-iter.
42265         * lib/argv-iter.c, lib/argv-iter.h: New files.
42266         * modules/argv-iter: New file.
42267         * modules/argv-iter-tests: New file.
42268         * tests/test-argv-iter.c: Test it.
42269
42270 2009-07-04  Bruno Haible  <bruno@clisp.org>
42271
42272         Fix assertion.
42273         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42274         contains more exact copies of a given entry than file2, leave the extra
42275         copies unpaired rather than aborting.
42276         Reported by Eric Blake.
42277
42278 2009-07-02  Bruno Haible  <bruno@clisp.org>
42279
42280         Speedup git-merge-changelog for git cherry-pick.
42281         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42282         (entries_mapping_get): New function, extracted from compute_mapping.
42283         (entries_mapping_reverse_get): New function.
42284         (compute_mapping): Add a 'full' argument. Return the result in a
42285         'struct entries_mapping'.
42286         (main): Update. Access the mappings through entries_mapping_get.
42287         Reported by Eric Blake.
42288
42289 2009-07-02  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42292         best_i.
42293
42294 2009-07-02  Bruno Haible  <bruno@clisp.org>
42295
42296         Speed up approximate search for matching ChangeLog entries.
42297         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42298         argument. Call fstrcmp_bounded instead of fstrcmp.
42299         (compute_mapping, try_split_merged_entry, main): Update callers.
42300
42301 2009-07-02  Bruno Haible  <bruno@clisp.org>
42302
42303         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42304
42305 2009-06-30  Bruno Haible  <bruno@clisp.org>
42306
42307         Reduce the number of uc_is_cased calls.
42308         * lib/unicase.h (casing_suffix_context_t): Add
42309         'first_char_except_ignorable' field.
42310         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42311         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42312         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42313         Update initializer.
42314         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42315         case-ignorable characters.
42316         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42317         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42318         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42319         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42320         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42321
42322 2009-06-30  Bruno Haible  <bruno@clisp.org>
42323
42324         Tests for module 'unicase/ignorable'.
42325         * modules/unicase/ignorable-tests: New file.
42326         * tests/unicase/test-ignorable.c: New file, generated by
42327         gen-uni-tables.
42328
42329         Tests for module 'unicase/cased'.
42330         * modules/unicase/cased-tests: New file.
42331         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42332         * tests/unicase/test-predicate-part1.h: New file, derived from
42333         tests/unictype/test-predicate-part1.h.
42334         * tests/unicase/test-predicate-part2.h: New file, same as
42335         tests/unictype/test-predicate-part2.h.
42336
42337         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42338         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42339         (output_casing_properties): New function.
42340         (main): Call it.
42341         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42342         * lib/unicase/cased.c: Include unictype/bitmap.h.
42343         (uc_is_cased): Define through a bitmap lookup.
42344         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42345         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42346         (uc_is_case_ignorable): Define through a bitmap lookup.
42347         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42348         lib/unictype/bitmap.h.
42349         (Depends-on): Add inline. Clean up.
42350         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42351         lib/unictype/bitmap.h.
42352         (Depends-on): Add inline. Clean up.
42353         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42354         recognition.
42355         * tests/unicase/test-u16-tolower.c (main): Likewise.
42356         * tests/unicase/test-u32-tolower.c (main): Likewise.
42357
42358 2009-06-30  Bruno Haible  <bruno@clisp.org>
42359
42360         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42361         * lib/unicase/u16-casemap.c: Likewise.
42362         * lib/unicase/u32-casemap.c: Likewise.
42363
42364 2009-06-29  Bruno Haible  <bruno@clisp.org>
42365
42366         Define u32_casefold as a wrapper around u32_ct_casefold.
42367         * lib/unicase/u32-casefold.c: Update.
42368         * modules/unicase/u32-casefold (Depends-on): Add
42369         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42370         unicase/empty-suffix-context. Clean up.
42371
42372         Define u16_casefold as a wrapper around u16_ct_casefold.
42373         * lib/unicase/u16-casefold.c: Update.
42374         * modules/unicase/u16-casefold (Depends-on): Add
42375         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42376         unicase/empty-suffix-context. Clean up.
42377
42378         Define u8_casefold as a wrapper around u8_ct_casefold.
42379         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42380         * lib/unicase/u8-casefold.c: Update.
42381         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42382         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42383
42384         Define u32_totitle as a wrapper around u32_ct_totitle.
42385         * lib/unicase/u32-totitle.c: Update.
42386         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42387         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42388
42389         Define u16_totitle as a wrapper around u16_ct_totitle.
42390         * lib/unicase/u16-totitle.c: Update.
42391         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42392         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42393
42394         Define u8_totitle as a wrapper around u8_ct_totitle.
42395         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42396         functions.
42397         (FUNC): Delegate to U_CT_TOTITLE.
42398         * lib/unicase/u8-totitle.c: Update.
42399         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42400         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42401
42402         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42403         invocation.
42404         * modules/unicase/u32-tolower (Depends-on): Add
42405         unicase/empty-prefix-context, unicase/empty-suffix-context.
42406
42407         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42408         invocation.
42409         * modules/unicase/u16-tolower (Depends-on): Add
42410         unicase/empty-prefix-context, unicase/empty-suffix-context.
42411
42412         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42413         * modules/unicase/u8-tolower (Depends-on): Add
42414         unicase/empty-prefix-context, unicase/empty-suffix-context.
42415
42416         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42417         invocation.
42418         * modules/unicase/u32-toupper (Depends-on): Add
42419         unicase/empty-prefix-context, unicase/empty-suffix-context.
42420
42421         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42422         invocation.
42423         * modules/unicase/u16-toupper (Depends-on): Add
42424         unicase/empty-prefix-context, unicase/empty-suffix-context.
42425
42426         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42427         * modules/unicase/u8-toupper (Depends-on): Add
42428         unicase/empty-prefix-context, unicase/empty-suffix-context.
42429
42430         New module 'unicase/u32-ct-casefold'.
42431         * lib/unicase/u32-ct-casefold.c: New file.
42432         * modules/unicase/u32-ct-casefold: New file.
42433
42434         New module 'unicase/u16-ct-casefold'.
42435         * lib/unicase/u16-ct-casefold.c: New file.
42436         * modules/unicase/u16-ct-casefold: New file.
42437
42438         New module 'unicase/u8-ct-casefold'.
42439         * lib/unicase/u8-ct-casefold.c: New file.
42440         * lib/unicase/u-ct-casefold.h: New file, derived from
42441         lib/unicase/u-casefold.h.
42442         * modules/unicase/u8-ct-casefold: New file.
42443
42444         New module 'unicase/u32-ct-totitle'.
42445         * lib/unicase/u32-ct-totitle.c: New file.
42446         * modules/unicase/u32-ct-totitle: New file.
42447
42448         New module 'unicase/u16-ct-totitle'.
42449         * lib/unicase/u16-ct-totitle.c: New file.
42450         * modules/unicase/u16-ct-totitle: New file.
42451
42452         New module 'unicase/u8-ct-totitle'.
42453         * lib/unicase/u8-ct-totitle.c: New file.
42454         * lib/unicase/u-ct-totitle.h: New file, derived from
42455         lib/unicase/u-totitle.h.
42456         * modules/unicase/u8-ct-totitle: New file.
42457
42458         New module 'unicase/u32-ct-tolower'.
42459         * lib/unicase/u32-ct-tolower.c: New file.
42460         * modules/unicase/u32-ct-tolower: New file.
42461
42462         New module 'unicase/u16-ct-tolower'.
42463         * lib/unicase/u16-ct-tolower.c: New file.
42464         * modules/unicase/u16-ct-tolower: New file.
42465
42466         New module 'unicase/u8-ct-tolower'.
42467         * lib/unicase/u8-ct-tolower.c: New file.
42468         * modules/unicase/u8-ct-tolower: New file.
42469
42470         New module 'unicase/u32-ct-toupper'.
42471         * lib/unicase/u32-ct-toupper.c: New file.
42472         * modules/unicase/u32-ct-toupper: New file.
42473
42474         New module 'unicase/u16-ct-toupper'.
42475         * lib/unicase/u16-ct-toupper.c: New file.
42476         * modules/unicase/u16-ct-toupper: New file.
42477
42478         New module 'unicase/u8-ct-toupper'.
42479         * lib/unicase/u8-ct-toupper.c: New file.
42480         * modules/unicase/u8-ct-toupper: New file.
42481
42482         Add context arguments to u*_casemap functions.
42483         * lib/unicase/unicasemap.h: Include unicase.h.
42484         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42485         suffix_context arguments.
42486         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42487         functions.
42488         (FUNC): Add prefix_context and suffix_context arguments. Use
42489         uc_is_cased and uc_is_case_ignorable.
42490         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42491         * lib/unicase/u16-casemap.c: Likewise.
42492         * lib/unicase/u32-casemap.c: Likewise.
42493         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42494         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42495         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42496         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42497         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42498         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42499
42500         New module 'unicase/u32-suffix-context'.
42501         * lib/unicase/u32-suffix-context.c: New file.
42502         * modules/unicase/u32-suffix-context: New file.
42503
42504         New module 'unicase/u16-suffix-context'.
42505         * lib/unicase/u16-suffix-context.c: New file.
42506         * modules/unicase/u16-suffix-context: New file.
42507
42508         New module 'unicase/u8-suffix-context'.
42509         * lib/unicase/u8-suffix-context.c: New file.
42510         * lib/unicase/u-suffix-context.h: New file.
42511         * modules/unicase/u8-suffix-context: New file.
42512
42513         New module 'unicase/empty-suffix-context'.
42514         * lib/unicase/empty-suffix-context.c: New file.
42515         * modules/unicase/empty-suffix-context: New file.
42516
42517         New module 'unicase/u32-prefix-context'.
42518         * lib/unicase/u32-prefix-context.c: New file.
42519         * modules/unicase/u32-prefix-context: New file.
42520
42521         New module 'unicase/u16-prefix-context'.
42522         * lib/unicase/u16-prefix-context.c: New file.
42523         * modules/unicase/u16-prefix-context: New file.
42524
42525         New module 'unicase/u8-prefix-context'.
42526         * lib/unicase/u8-prefix-context.c: New file.
42527         * lib/unicase/u-prefix-context.h: New file.
42528         * lib/unicase/context.h: New file.
42529         * modules/unicase/u8-prefix-context: New file.
42530
42531         New module 'unicase/empty-prefix-context'.
42532         * lib/unicase/empty-prefix-context.c: New file.
42533         * modules/unicase/empty-prefix-context: New file.
42534
42535         New module 'unicase/ignorable'.
42536         * lib/unicase/ignorable.c: New file.
42537         * modules/unicase/ignorable: New file.
42538
42539         New module 'unicase/cased'.
42540         * lib/unicase/caseprop.h: New file.
42541         * lib/unicase/cased.c: New file.
42542         * modules/unicase/cased: New file.
42543
42544         New functions for case mapping of substrings.
42545         * lib/unicase.h (casing_prefix_context_t): New type.
42546         (unicase_empty_prefix_context): New variable.
42547         (u8_casing_prefix_context, u16_casing_prefix_context,
42548         u32_casing_prefix_context, u8_casing_prefixes_context,
42549         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42550         declarations.
42551         (casing_suffix_context_t): New type.
42552         (unicase_empty_suffix_context): New variable.
42553         (u8_casing_suffix_context, u16_casing_suffix_context,
42554         u32_casing_suffix_context, u8_casing_suffixes_context,
42555         u16_casing_suffixes_context, u32_casing_suffixes_context,
42556         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42557         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42558         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42559         declarations.
42560
42561 2009-06-28  Jim Meyering  <meyering@redhat.com>
42562
42563         boostrap: indent only with spaces
42564         * build-aux/bootstrap: Indent only with spaces, never TABs.
42565
42566         bootstrap: split long lines
42567         * build-aux/bootstrap: Keep line length < 80.
42568
42569         bootstrap: sync from coreutils
42570         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42571         just as autoreconf does.  Verify a list of prerequisite
42572         package-name,version-number pairs if defined in bootstrap.conf.
42573         Refer to README-prereq, if prerequisites are not satisfied.
42574
42575 2009-06-27  Eric Blake  <ebb9@byu.net>
42576
42577         tests: add test for bogus NULL definition
42578         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42579         * tests/test-stdlib.c: Likewise.
42580         * tests/test-string.c: Likewise.
42581         * tests/test-locale.c: Likewise.
42582         * tests/test-unistd.c: Likewise.
42583         * modules/stdio-tests (Depends-on): Add verify.
42584         * modules/stdlib-tests (Depends-on): Likewise.
42585         * modules/string-tests (Depends-on): Likewise.
42586         * modules/locale-tests (Depends-on): Likewise.
42587         * modules/unistd-tests (Depends-on): Likewise.
42588
42589 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42590
42591         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42592         self-explaining comment.
42593         * m4/selinux-selinux-h: Update serial.
42594         (gl_LIBSELINUX): New macro, adding a warning for missing development
42595         packages to code extracted from...
42596         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42597         Add warning for missing development packages here, too.
42598
42599 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42600
42601         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42602
42603 2009-06-25  Eric Blake  <ebb9@byu.net>
42604
42605         version-etc: fix regression
42606         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42607         gcc.
42608         (version_etc): Use it, to catch bugs with trailing NULL.
42609         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42610         (version_etc_va): Fix logic bug.
42611         * modules/version-etc-tests: Add test.
42612         * tests/test-version-etc.c: New file.
42613         * tests/test-version-etc.sh: Likewise.
42614
42615 2009-06-25  Sam Steingold  <sds@gnu.org>
42616
42617         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42618         mbtowc declaration.
42619
42620 2009-06-25  Eric Blake  <ebb9@byu.net>
42621
42622         fpurge: migrate into <stdio.h>
42623         * lib/fpurge.h: Delete...
42624         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42625         * lib/fpurge.c (fpurge): Change declaring header.
42626         * modules/fpurge (Files): Drop deleted file.
42627         (Depends-on): Add stdio.
42628         (configure.ac): Set witness.
42629         * modules/stdio (Makefile.am): Support fpurge macros.
42630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42631         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42632         * lib/fflush.c: Update client.
42633         * tests/test-fpurge.c: Likewise.
42634         * NEWS: Mention the change.
42635
42636 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42637
42638         * lib/argp-version-etc.c (program_authors): Add const
42639         qualifier.
42640         * lib/version-etc.c: Fix typos in the comments.
42641         * modules/argp-version-etc: Depends on version-etc.
42642
42643 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42644
42645         argp-version-etc: new module.
42646
42647         * lib/argp-version-etc.c: New file.
42648         * lib/argp-version-etc.h: New file.
42649         * modules/argp-version-etc: New file.
42650         * modules/argp-version-etc-tests: New file.
42651         * tests/test-argp-version-etc.c: New test.
42652         * tests/test-argp-version-etc-1.sh: New test.
42653
42654 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42655
42656         Provide additional interfaces and documentation for version-etc
42657         module.
42658
42659         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42660         interfaces.
42661         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42662         prototypes.
42663
42664 2009-06-24  Bruno Haible  <bruno@clisp.org>
42665
42666         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42667         HAVE_LIB${NAME} macro.
42668         Reported by Sam Steingold <sds@gnu.org>.
42669
42670 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42671
42672         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42673         needed.
42674
42675 2009-06-21  Bruno Haible  <bruno@clisp.org>
42676
42677         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42678         work.
42679         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42680         together with LIB${NAME}, LTLIB${NAME}.
42681         Reported by Sam Steingold <sds@gnu.org>.
42682
42683 2009-06-20  Jim Meyering  <meyering@redhat.com>
42684
42685         tests: make sc_require_test_exit_idiom more generic
42686         * top/maint.mk (Exit_witness_file): New overridable variable.
42687         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42688         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42689
42690 2009-06-19  Jim Meyering  <meyering@redhat.com>
42691
42692         hash: reverse order of src/dst parameters in an internal interface
42693         * lib/hash.c (transfer_entries): Reverse order of parameters to
42694         put DST before SRC.  Adjust callers.
42695
42696         tests: test-hash: avoid wholesale duplication
42697         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42698         Instead, use a loop and add a single conditional.
42699
42700         tests: test-hash: allow seed selection via a command line argument
42701         * tests/test-hash.c (get_seed): New function.
42702         (main): Use it.
42703
42704 2009-06-19  Eric Blake  <ebb9@byu.net>
42705
42706         hash: avoid memory leak on allocation failure
42707         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42708         failure.  Factor repeated algorithm...
42709         (transfer_entries): ...into new helper routine.
42710         (hash_delete): React to hash_rehash return value.
42711
42712         hash: reduce memory pressure in hash_rehash no-op case
42713         * lib/hash.c (next_prime): Avoid overflow.
42714         (hash_initialize): Factor bucket size computation...
42715         (compute_bucket_size): ...into new helper function.
42716         (hash_rehash): Use new function and open coding to reduce memory
42717         pressure, and avoid a memory leak in USE_OBSTACK code.
42718         Reported by Jim Meyering.
42719
42720 2009-06-18  Eric Blake  <ebb9@byu.net>
42721
42722         hash: make rotation more obvious
42723         * modules/hash (Depends-on): Add bitrotate and stdint.
42724         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42725         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42726         (SIZE_MAX): Rely on headers for definition.
42727         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42728         (raw_hasher): Use rotr_sz.
42729         Suggested by Jim Meyering.
42730
42731         hash: fix memory leak in last patch
42732         * lib/hash.c (hash_rehash): Avoid memory leak.
42733
42734         hash: avoid no-op rehashing
42735         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42736
42737         hash: provide default callback functions
42738         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42739         (hash_initialize): Use them as defaults.
42740         * tests/test-hash.c (main): Test this.
42741
42742         hash: minor optimization
42743         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42744         when possible.
42745         (hash_initialize): Document this promise.
42746         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42747         * tests/test-hash.c (hash_compare_strings): Test this.
42748
42749 2009-06-18  Bruno Haible  <bruno@clisp.org>
42750
42751         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42752         going to be replaced anyway.
42753
42754 2009-06-18  Bruno Haible  <bruno@clisp.org>
42755
42756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42757         in one place.
42758         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42759         be replaced anyway.
42760
42761 2009-06-18  Eric Blake  <ebb9@byu.net>
42762
42763         hash: check for resize before insertion
42764         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42765         threshold before insertion, so that a pathological hash_rehash
42766         that fills every bucket can still trigger another rehash.
42767
42768 2009-06-18  Jim Meyering  <meyering@redhat.com>
42769
42770         hash-tests: add a loop around the small tests
42771         * tests/test-hash.c (main): Repeat small tests with selected
42772         small initial table sizes.
42773
42774 2009-06-17  Eric Blake  <ebb9@byu.net>
42775
42776         hash: minor cleanups
42777         * lib/hash.h (hash_entry): Make opaque, by moving...
42778         * lib/hash.c (hash_entry): ...here.
42779         (hash_insert): Clarify restrictions on what can be inserted.
42780         (hash_get_next): Clarify when it is safe to remove an element
42781         during traversal.
42782         (check_tuning): Skip verification when tuning is known safe.
42783         (hash_initialize): Clarify restrictions on tuning.
42784
42785 2009-06-17  Jim Meyering  <jim@meyering.net>
42786         and Eric Blake  <ebb9@byu.net>
42787
42788         hash-tests: new module
42789         * modules/hash-tests: New file.
42790         * tests/test-hash.c: New file.
42791
42792 2009-06-17  Eric Blake  <ebb9@byu.net>
42793
42794         strstr-simple: document new module
42795         * MODULES.html.sh: Document new module.
42796
42797         strstr, strcasestr: replace on platforms with broken memchr
42798         * modules/strstr: Split into...
42799         * modules/strstr-simple: ...new module that does not care about
42800         performance, but does care about glibc bug.
42801         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42802         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42803         if platform memchr is broken, per Debian bug 521737.
42804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42805         memchr.
42806         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42807         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42808         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42809         * modules/mountlist (Depends-on): Add strstr-simple.
42810         * modules/gen-uni-tables (Depends-on): Likewise.
42811         * modules/argz (Depends-on): Add strstr.
42812
42813 2009-06-17  Bruno Haible  <bruno@clisp.org>
42814
42815         * modules/posix_spawn-internal (Depends-on): Add errno.
42816
42817 2009-06-17  Bruno Haible  <bruno@clisp.org>
42818
42819         Define missing ESTALE on Interix 3.5.
42820         * lib/errno.in.h (ESTALE): Assign a value if missing.
42821         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42822         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42823         missing.
42824         * doc/posix-headers/errno.texi: Mention the Interix bug.
42825         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42826
42827 2009-06-15  Eric Blake  <ebb9@byu.net>
42828
42829         memchr, memchr2: add valgrind exception
42830         * lib/memchr.valgrind: New file.
42831         * lib/memchr2.valgrind: New file.
42832         * modules/memchr (Files): Distribute valgrind file.
42833         * modules/memchr2 (Files): Likewise.
42834
42835         docs: memchr is no longer obsolete
42836         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42837         * lib/string.in.h (memchr): Simplify logic.
42838
42839 2009-06-14  Jim Meyering  <meyering@redhat.com>
42840
42841         link-follow: fix the "checking..." message to not mention trailing slash
42842         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
42843         never considered trailing slashes.
42844
42845 2009-06-14  Bruno Haible  <bruno@clisp.org>
42846
42847         * m4/memchr.m4: Mention also the bug on IA-64.
42848         * doc/posix-functions/memchr.texi: Likewise.
42849
42850 2009-06-12  Eric Blake  <ebb9@byu.net>
42851
42852         memchr: detect broken x86_64 and alpha implementations
42853         * modules/memchr-tests (Depends-on): Move mmap detection...
42854         * modules/memchr (Depends-on): ...here.
42855         (configure.ac): Set indicator.
42856         * lib/string.in.h (memchr): Declare replacement.
42857         * modules/string (Makefile.am): Trigger replacement.
42858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42859         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
42860         bugs.
42861         * doc/posix-functions/memchr.texi (memchr): Document the bug.
42862         * modules/getpagesize (License): Relax license.
42863
42864 2009-06-11  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/idpriv.h: Add more references.
42867
42868 2009-06-08  Bruno Haible  <bruno@clisp.org>
42869
42870         Tests for module 'idpriv-droptemp'.
42871         * modules/idpriv-droptemp-tests: New file.
42872         * tests/test-idpriv-droptemp.sh: New file.
42873         * tests/test-idpriv-droptemp.su.sh: New file.
42874         * tests/test-idpriv-droptemp.c: New file.
42875
42876         New module 'idpriv-droptemp'.
42877         * lib/idpriv-droptemp.c: New file.
42878         * modules/idpriv-droptemp: New file.
42879
42880 2009-06-08  Bruno Haible  <bruno@clisp.org>
42881
42882         Tests for module 'idpriv-drop'.
42883         * modules/idpriv-drop-tests: New file.
42884         * tests/test-idpriv-drop.sh: New file.
42885         * tests/test-idpriv-drop.su.sh: New file.
42886         * tests/test-idpriv-drop.c: New file.
42887
42888         New module 'idpriv-drop'.
42889         * lib/idpriv.h: New file.
42890         * lib-idpriv-drop.c: New file.
42891         * m4/idpriv.m4: New file.
42892         * modules/idpriv-drop: New file.
42893
42894 2009-06-08  Bruno Haible  <bruno@clisp.org>
42895
42896         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
42897         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42898         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42899         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42900         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42901         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42902         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42903
42904 2009-06-08  Eric Blake  <ebb9@byu.net>
42905
42906         test-strstr: use memory fence, when possible
42907         * tests/test-strstr.c (main): Use memory fence, in order to be
42908         more likely to trigger Debian bug 521737.
42909         * modules/strstr-tests (Files): Pull in additional files.
42910
42911         memchr: no longer obsolete, for wider field testing
42912         * modules/memchr (Status, Notice): Delete, this module is no
42913         longer obsolete.
42914         * modules/vasnprintf (Depends-on): Add memchr.
42915
42916 2009-06-07  Jim Meyering  <meyering@redhat.com>
42917
42918         hash: declare some functions with the warn_unused_result attribute
42919         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
42920
42921 2009-06-07  Bruno Haible  <bruno@clisp.org>
42922
42923         * tests/test-alignof.c: Don't test int64_t if it does not exist.
42924         Reported by Eric Blake.
42925
42926 2009-06-06  Eric Blake  <ebb9@byu.net>
42927
42928         test-alignof: fix typo with long double
42929         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
42930         compiler error.
42931
42932 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
42933
42934         Escape non-texinfo { and }s.
42935         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
42936         markup error.
42937
42938 2009-06-04  Jim Meyering  <meyering@redhat.com>
42939
42940         gitlog-to-changelog: don't infloop on an empty commit log
42941         * build-aux/gitlog-to-changelog: Warn about an empty log message.
42942         Reported by Boris Petersen <transacid@centerim.org>.
42943
42944 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
42945
42946         version-etc: extend for packagers
42947         Add three new configure options, intended for packagers:
42948           --with-packager="packager name"
42949           --with-packager-version="packager-specific version"
42950           --with-packager-bug-reports="packager bug reporting"
42951         An example with coreutils:
42952           $ ./configure \
42953             --with-packager=Gentoo \
42954             --with-packager-bug-report=http://bugs.gentoo.org/ \
42955             --with-packager-version="patchset 1.6"
42956           $ ./src/ls --version | head -n2
42957           ls (GNU coreutils) 7.1-dirty
42958           Packaged by Gentoo (patchset 1.6)
42959         Note that the bug reporting info via --help doesn't show up because
42960         coreutils uses its own custom emit_bug_reporting_address() implementation
42961         in src/system.h.  If it didn't, it'd look like:
42962           $ ./src/ls --help | tail -n4
42963           Report bugs to <bug-coreutils@gnu.org>.
42964           Report Gentoo bugs to <http://bugs.gentoo.org/>.
42965           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
42966           General help using GNU software: <http://www.gnu.org/gethelp/>.
42967         * lib/version-etc.c: Print new information, if provided.
42968         * m4/version-etc.m4: New file.
42969         * modules/version-etc (Files): Add m4/version-etc.m4.
42970         (configure.ac): Add gl_VERSION_ETC.
42971
42972 2009-05-31  Bruno Haible  <bruno@clisp.org>
42973
42974         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
42975         and 'int64_t'.
42976         * modules/alignof-tests (Dependencies): Add stdint.
42977         Reported by Eric Blake.
42978
42979 2009-05-31  Bruno Haible  <bruno@clisp.org>
42980
42981         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
42982         restriction due to compiler bugs.
42983         Reported by Eric Blake.
42984
42985 2009-05-31  Simon Josefsson  <simon@josefsson.org>
42986             Bruno Haible  <bruno@clisp.org>
42987
42988         Fix test-alignof failure.
42989         * lib/alignof.h (alignof_slot): New macro.
42990         (alignof_type): New macro, with the same semantics as the previous
42991         'alignof'.
42992         (alignof): Alias to alignof_slot.
42993         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
42994         check that the results are usable as constant expressions.
42995
42996 2009-05-31  Bruno Haible  <bruno@clisp.org>
42997
42998         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
42999         * tests/test-memchr.c (main): Check that memchr does not read past the
43000         first occurrence of the byte.
43001         * tests/test-strstr.c (main): Update comment.
43002         Suggested by Eric Blake.
43003
43004 2009-05-30  Bruno Haible  <bruno@clisp.org>
43005
43006         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43007         detail how to use dumpbin.
43008         Reported by David Byron <dbyron@dbyron.com>.
43009
43010 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43011
43012         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43013
43014 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43015
43016         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43017
43018 2009-05-28  Bruno Haible  <bruno@clisp.org>
43019
43020         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43021         build-aux/ files.
43022
43023 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43024
43025         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43026
43027 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43028
43029         * gnulib-tool (sed_transform_main_lib_file)
43030         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43031         regexps.
43032
43033 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43034
43035         * tests/test-strstr.c: Add another self-test.
43036         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43037         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43038
43039 2009-05-23  Bruno Haible  <bruno@clisp.org>
43040
43041         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43042         change.
43043
43044 2009-05-21  Bruno Haible  <bruno@clisp.org>
43045
43046         Simplify use of mode_t varargs.
43047         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43048         uses 'mode_t' or 'int'.
43049         * lib/openat.c (openat): Likewise.
43050         * lib/open-safer.c (open_safer): Likewise.
43051         * m4/mode_t.m4: New file.
43052         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43053         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43054         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43055         * modules/open (Files): Add m4/mode_t.m4.
43056         * modules/openat (Files): Likewise.
43057         * modules/fcntl-safer (Files): Likewise.
43058         Suggested by Eric Blake.
43059
43060 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43061
43062         * doc/glibc-functions/fallocate.texi: New file.
43063         * doc/gnulib.texi: Include it.
43064
43065 2009-05-21  Eric Blake  <ebb9@byu.net>
43066             Bruno Haible  <bruno@clisp.org>
43067
43068         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43069         invocations.
43070         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43071
43072 2009-05-21  Eric Blake  <ebb9@byu.net>
43073             Bruno Haible  <bruno@clisp.org>
43074
43075         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43076         include_next. Fix of 2008-11-20 commit.
43077         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43078         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43079         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43080         NEXT_MATH_H.
43081         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43082         instead of NEXT_MATH_H.
43083
43084 2009-05-21  Bruno Haible  <bruno@clisp.org>
43085
43086         Avoid redefinition warnings for SIZE_MAX.
43087         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43088         Reported by Simon Josefsson.
43089
43090 2009-05-21  Bruno Haible  <bruno@clisp.org>
43091
43092         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43093         AC_CACHE_VAL.
43094
43095 2009-05-20  Bruno Haible  <bruno@clisp.org>
43096
43097         Make zeroptr.h work on mingw.
43098         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43099         mprotect.
43100         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43101         * modules/memchr2-tests (configure.ac): Likewise.
43102         * modules/memcmp-tests (configure.ac): Likewise.
43103         * modules/memmem-tests (configure.ac): Likewise.
43104         * modules/memrchr-tests (configure.ac): Likewise.
43105         Reported by Simon Josefsson.
43106
43107 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43108
43109         * tests/test-glob.c: Include string.h for strcmp prototype.
43110
43111 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43112
43113         * modules/getdelim (Depends-on): Add explicit stdint, although it
43114         was implicitly already pulled in via realloc-posix.
43115         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43116
43117 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43118
43119         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43120         G. Christensen" <tgc@jupiterrise.com>.
43121         * m4/sys_socket_h.m4: Check for sa_family_t.
43122         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43123         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43124         * tests/test-sys_socket.c: Check that sa_family_t works.
43125
43126 2009-05-18  Eric Blake  <ebb9@byu.net>
43127
43128         maint.mk: allow gnulib_dir in VPATH build
43129         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43130
43131 2009-05-15  Jim Meyering  <meyering@redhat.com>
43132
43133         maint.mk: Give gnulib_dir a default definition.
43134         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43135         Thus, most packages no longer need to specify this variable in cfg.mk
43136
43137 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43138
43139         rename.m4: fix typos that would make non-mingw cross-configure fail
43140         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43141
43142 2009-05-13  Eric Blake  <ebb9@byu.net>
43143
43144         mmap-anon: avoid out-of-order autoconf expansion
43145         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43146         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43147         * modules/memchr-tests (Depends-on): Add extensions.
43148         * modules/memchr2-tests (Depends-on): Add extensions.
43149         * modules/memcmp-tests (Depends-on): Add extensions.
43150         * modules/memmem-tests (Depends-on): Add extensions.
43151         * modules/memrchr-tests (Depends-on): Add extensions.
43152
43153 2009-05-13  Bruno Haible  <bruno@clisp.org>
43154
43155         Make some tests ISO C 99 compliant.
43156         * tests/zerosize-ptr.h: New file.
43157         * tests/test-memchr.c: Include zerosize-ptr.h.
43158         (main): Use a zero-size object pointer instead of NULL.
43159         * tests/test-memchr2.c: Include zerosize-ptr.h.
43160         (main): Use a zero-size object pointer instead of NULL.
43161         * tests/test-memcmp.c: Include zerosize-ptr.h.
43162         (main): Use a zero-size object pointer instead of NULL.
43163         * tests/test-memmem.c: Include zerosize-ptr.h.
43164         (main): Use a zero-size object pointer instead of NULL.
43165         * tests/test-memrchr.c: Include zerosize-ptr.h.
43166         (main): Use a zero-size object pointer instead of NULL.
43167         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43168         m4/mmap-anon.m4.
43169         (Depends-on): Add getpagesize.
43170         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43171         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43172         m4/mmap-anon.m4.
43173         (Depends-on): Add getpagesize.
43174         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43175         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43176         m4/mmap-anon.m4.
43177         (Depends-on): Add getpagesize.
43178         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43179         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43180         m4/mmap-anon.m4.
43181         (Depends-on): Add getpagesize.
43182         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43183         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43184         m4/mmap-anon.m4.
43185         (Depends-on): Add getpagesize.
43186         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43187
43188 2009-05-12  Bruno Haible  <bruno@clisp.org>
43189
43190         Tests for module 'alignof'.
43191         * modules/alignof-tests: New file.
43192         * tests/test-alignof.c: New file.
43193
43194 2009-05-12  Bruno Haible  <bruno@clisp.org>
43195
43196         Fix alignof macro.
43197         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43198         vendor compilers that are always correct.
43199
43200 2009-05-12  Bruno Haible  <bruno@clisp.org>
43201
43202         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43203         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43204         not whether its fully works.
43205
43206 2009-05-12  Bruno Haible  <bruno@clisp.org>
43207
43208         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43209
43210 2009-05-12  Jim Meyering  <meyering@redhat.com>
43211
43212         * top/maint.mk: Adjust backslash alignment.
43213
43214 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43215
43216         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43217
43218 2009-05-11  Eric Blake  <ebb9@byu.net>
43219
43220         argp: avoid undefined behavior
43221         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43222         macros.
43223
43224 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43225
43226         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43227         user.name to prevent git commit from complaining.
43228
43229 2009-05-10  Bruno Haible  <bruno@clisp.org>
43230
43231         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43232         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43233         it rewrites every file name only once.
43234         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43235
43236 2009-05-08  Bruno Haible  <bruno@clisp.org>
43237
43238         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43239         instead of 'max'.
43240
43241 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43242
43243         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43244         sockaddr_storage test.
43245
43246 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43247
43248         * modules/sys_socket (Makefile.am): Substitute
43249         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43250         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43251         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43252         * tests/test-sys_socket.c: Check sockaddr_storage.
43253
43254 2009-05-08  Bruno Haible  <bruno@clisp.org>
43255
43256         New module 'alignof'.
43257         * lib/alignof.h: New file.
43258         * modules/alignof: New file.
43259
43260 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43261             Bruno Haible  <bruno@clisp.org>
43262
43263         Fix test-file-has-acl on FreeBSD.
43264         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43265         mask is implicitly added.
43266         * tests/test-file-has-acl.c: Include <signal.h>.
43267         (main): Terminate the test after 5 seconds.
43268         * modules/acl-tests (configure.ac): Check for alarm function.
43269
43270 2009-05-04  Bruno Haible  <bruno@clisp.org>
43271
43272         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43273         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43274         * modules/errno (configure.ac): Drop AC_REQUIRE.
43275         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43276         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43277
43278 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43279
43280         * modules/glob-tests: New module.
43281         * tests/test-glob.c: Add.
43282
43283 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43284
43285         * modules/fnmatch-tests: New module.
43286         * tests/test-fnmatch.c: Add.
43287
43288 2009-05-04  Eric Blake  <ebb9@byu.net>
43289
43290         maint: make the new no-submodule-changes rule VPATH-safe
43291         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43292
43293 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43294             Bruno Haible  <bruno@clisp.org>
43295
43296         acl: Fix infinite loop on FreeBSD.
43297         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43298         of return value from acl_get_entry.
43299         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43300         Likewise.
43301
43302 2009-05-03  Bruno Haible  <bruno@clisp.org>
43303
43304         * lib/acl-internal.h (acl_entries): Clarify return value.
43305         * lib/acl_entries.c (acl_entries): Likewise.
43306
43307 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43308
43309         Bug fix in acl module.
43310         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43311
43312 2009-05-03  Bruno Haible  <bruno@clisp.org>
43313
43314         Create gperf-generated file in the source dir, not in the build dir.
43315         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43316         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43317         * modules/unicase/locale-language (unicase/locale-languages.h):
43318         Likewise.
43319         * modules/unicase/special-casing (unicase/special-casing-table.h):
43320         Likewise.
43321         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43322         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43323         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43324         Reported by Ralf Wildenhues.
43325
43326 2009-05-03  Bruno Haible  <bruno@clisp.org>
43327
43328         * modules/fnmatch (Description, configure.ac): Taken from
43329         fnmatch-posix.
43330         * modules/fnmatch-posix: Turn into a symbolic reference to the
43331         'fnmatch' module, and deprecate.
43332         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43333
43334 2009-05-03  Bruno Haible  <bruno@clisp.org>
43335
43336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43337         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43338         Reported by Ralf Wildenhues.
43339
43340 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43341
43342         * m4/fnmatch.m4: Fix fnmatch re-define.
43343
43344 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43345
43346         priv-set: new module and tests; adapt write-any-file
43347         * lib/priv-set.c: New file.
43348         * lib/priv-set.h: New file.
43349         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43350         * lib/write-any-file.c: Simplify by using priv-set module.
43351         * m4/priv-set.m4: New file.
43352         * modules/priv-set: New file.
43353         * modules/unlinkdir: Add dependency on priv-set module.
43354         * modules/write-any-file: Likewise.
43355
43356         Tests for module 'priv-set'.
43357         * modules/priv-set-tests: New file.
43358         * tests/test-priv-set.c: New file.
43359
43360 2009-05-03  Jim Meyering  <meyering@redhat.com>
43361             Bruno Haible  <bruno@clisp.org>
43362
43363         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43364         use the converted UTF-8 variant of the name instead.
43365
43366 2009-05-03  Jim Meyering  <meyering@redhat.com>
43367
43368         tests: tighten some getdate tests
43369         * tests/test-getdate.c (main): Tighten tests: require equality,
43370         not just greater than.  Set TZ envvar to UTC0.
43371
43372 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43373
43374         getdate: correctly interpret "next monday" when run on a Monday
43375         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43376         that e.g., "next tues" (when run on a tuesday) results in a date
43377         that is one week in the future, and not today's date.
43378         I.e., add a week when the wday is the same as the current one.
43379         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43380         and earlier by Martin Bernreuther and Jan Minář.
43381         * tests/test-getdate.c (main): Check that "next DAY" is always in
43382         the future and that "last DAY" is always in the past.
43383
43384 2009-05-02  Jim Meyering  <meyering@redhat.com>
43385
43386         build: ensure that a release build fails when a submodule is unclean
43387         * top/maint.mk (no-submodule-changes): New rule.
43388         (alpha beta major): Depend on it.
43389
43390 2009-05-02  Bruno Haible  <bruno@clisp.org>
43391
43392         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43393         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43394         shell variable gl_fnmatch_required to detect which variant is
43395         requested.
43396         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43397         gl_FUNC_FNMATCH_POSIX.
43398         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43399         exclude fnmatch-posix.
43400
43401 2009-05-02  Bruno Haible  <bruno@clisp.org>
43402
43403         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43404         * modules/mbsrtowcs (License): Change to LGPLv2+.
43405         * modules/strnlen1 (License): Likewise.
43406         Reported by Simon Josefsson.
43407
43408 2009-05-02  Bruno Haible  <bruno@clisp.org>
43409
43410         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43411         "cross".
43412         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43413         gnulib-tool was called with option --source-base=lib.
43414
43415 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43416
43417         Use automake *-local hooks without commands, for extensibility.
43418         * modules/localcharset (Makefile.am): Rename install-exec-local
43419         rule to install-exec-localcharset, and make it a prerequisite of
43420         install-exec-local.  Likewise, rename the uninstall-local rule to
43421         uninstall-localcharset, and make it a prerequisite of the former.
43422
43423 2009-05-01  Bruno Haible  <bruno@clisp.org>
43424
43425         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43426         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43427         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43429         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43430         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43431         m4/locale-zh.m4, m4/codeset.m4.
43432
43433         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43434         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43435         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43436         m4/locale-zh.m4.
43437
43438         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43439         REPLACE_WCRTOMB if mbstate_t must be replaced.
43440         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43441         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43442
43443 2009-05-01  Bruno Haible  <bruno@clisp.org>
43444
43445         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43446         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43447         dngettext, dcngettext, textdomain, bindtextdomain,
43448         bind_textdomain_codeset): Undefine before redefining.
43449
43450 2009-04-30  Bruno Haible  <bruno@clisp.org>
43451
43452         Fix bug introduced on 2009-04-25.
43453         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43454         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43455         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43456         is defined.
43457         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43458         is defined.
43459         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43460         is defined.
43461         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43462
43463 2009-04-28  Bruno Haible  <bruno@clisp.org>
43464
43465         Comment tweaks.
43466         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43467         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43468         * lib/unicase.h (u*_casexfrm): Likewise.
43469         Reported by Paolo Bonzini.
43470
43471 2009-04-28  Bruno Haible  <bruno@clisp.org>
43472
43473         Fix a compilation error.
43474         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43475         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43476         Reported by Jim Meyering.
43477
43478 2009-04-27  Bruno Haible  <bruno@clisp.org>
43479
43480         New module 'libunistring'.
43481         * modules/libunistring: New file.
43482         * m4/libunistring.m4: New file.
43483         * MODULES.html.sh (Unicode string functions): Add it.
43484
43485 2009-04-27  Eric Blake  <ebb9@byu.net>
43486
43487         maint.mk: allow package-specific header to provide <config.h>
43488         * top/maint.mk (sc_require_config_h): New variable.
43489         (sc_require_config_h, sc_require_config_h_first): Use it.
43490
43491 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43492
43493         * top/maint.mk (sc_avoid_if_before_free): Except
43494         useless-if-before-free script.
43495
43496 2009-04-27  Eric Blake  <ebb9@byu.net>
43497
43498         maintainer-makefile: depend on all required helper scripts
43499         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43500         useless-if-before-free.
43501         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43502         version, rather than assuming gnulib checkout is available.
43503         Reported by Simen Josefsson.
43504
43505 2009-04-26  Bruno Haible  <bruno@clisp.org>
43506
43507         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43508         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43509         "../" or "..".
43510
43511 2009-04-26  Bruno Haible  <bruno@clisp.org>
43512
43513         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43514         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43515         AC_LIB_HAVE_LINKFLAGS.
43516
43517 2009-04-26  Bruno Haible  <bruno@clisp.org>
43518
43519         Simplify calling convention of u*_conv_from_encoding.
43520         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43521         u32_conv_from_encoding): Expect a resultbuf argument and return the
43522         result directly as a pointer.
43523         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43524         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43525         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43526         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43527         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43528         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43529         Update.
43530         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43531         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43532         * lib/vasnprintf.c (VASNPRINTF): Update.
43533         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43534         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43535         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43536         * NEWS: Mention the change.
43537
43538 2009-04-26  Bruno Haible  <bruno@clisp.org>
43539
43540         Simplify calling convention of u*_conv_to_encoding.
43541         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43542         u32_conv_to_encoding): Expect a resultbuf argument and return the
43543         result directly as a pointer.
43544         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43545         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43546         freeing scaled_offsets if mem_iconveha failed.
43547         * lib/unicase/u-casexfrm.h (FUNC): Update.
43548         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43549         * lib/vasnprintf.c (VASNPRINTF): Update.
43550         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43551         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43552         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43553         * NEWS: Mention the change.
43554
43555 2009-04-26  Bruno Haible  <bruno@clisp.org>
43556
43557         Avoid test failures on AIX and OSF/1.
43558         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43559         malloc(0).
43560         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43561         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43562         Likewise.
43563         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43564         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43565         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43566         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43567         * doc/posix-functions/malloc.texi: Document the portability problem
43568         related to malloc(0).
43569
43570 2009-04-26  Bruno Haible  <bruno@clisp.org>
43571
43572         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43573         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43574         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43575
43576 2009-04-25  Bruno Haible  <bruno@clisp.org>
43577
43578         Avoid link error when creating a namespace clean library.
43579         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43580         as macro with arguments if already defined as an alias.
43581         * lib/signbitf.c (gl_signbitf): Don't undefine.
43582         * lib/signbitd.c (gl_signbitd): Don't undefine.
43583         * lib/signbitl.c (gl_signbitl): Don't undefine.
43584
43585 2009-04-25  Jim Meyering  <meyering@redhat.com>
43586
43587         vc-list-files: fix another quoting bug
43588         * build-aux/vc-list-files: Avoid sed backslash expansion
43589         of pathological directory names.
43590
43591 2009-04-25  Eric Blake  <ebb9@byu.net>
43592
43593         vc-list-files: fix shell quoting error
43594         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43595         timestamp.
43596
43597 2009-04-25  Jim Meyering  <meyering@redhat.com>
43598
43599         vc-list-files: restore lost functionality with subdir argument
43600         * build-aux/vc-list-files: When given a non-"." sub-directory
43601         argument, substitute the $dir/ prefix back onto each resulting name.
43602         Otherwise, coreutils' root_tests check would fail.
43603
43604 2009-04-24  Eric Blake  <ebb9@byu.net>
43605
43606         vc-list-files: ignore git symlinks
43607         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43608         than ls-files, to ignore git symlinks.
43609
43610         maint.mk: import improvements from m4
43611         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43612         (move_if_change): Delete unused macro.
43613         (news-date-check, vc-diff-check): Support VPATH builds.
43614         (announcement): Likewise.  Split --bootstrap-tools list...
43615         (boostrap-tools): ...into separate list, which can be overridden
43616         in cfg.mk.
43617         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43618         requiring dependency on useless-if-before-free module.
43619         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43620         Support VPATH builds.
43621
43622 2009-04-24  Jim Meyering  <meyering@redhat.com>
43623
43624         maint.mk: remove coreutils-specific rules and variables
43625         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43626         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43627         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43628
43629         maint.mk: remove obsolete rule
43630         * top/maint.mk (rel-check): Remove rule.
43631         (WGET, WGETFLAGS): Remove now-unused variables.
43632
43633 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43634
43635         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43636         consistency.
43637
43638         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43639         '$(PATH_SEPARATOR)' instead of ':'.
43640
43641 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43642
43643         * lib/getopt1.c (main): Use 'const' for static array.
43644
43645 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43646
43647         * top/maint.mk: Sync with coreutils.
43648         * NEWS: Explain incompatibilities.
43649
43650 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43651             Bruno Haible  <bruno@clisp.org>
43652
43653         Fix cross-compilation results.
43654         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43655         statement, as third argument of AC_TRY_RUN.
43656         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43657         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43658         Likewise.
43659         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43660         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43661         Likewise.
43662         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43664         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43665
43666 2009-04-20  Bruno Haible  <bruno@clisp.org>
43667
43668         Avoid test failure on mingw.
43669         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43670
43671 2009-04-20  Bruno Haible  <bruno@clisp.org>
43672
43673         Avoid compilation error on mingw.
43674         * modules/localename-tests (Depends-on): Add locale.
43675
43676 2009-04-19  Bruno Haible  <bruno@clisp.org>
43677
43678         Support for building a shared library on Windows platforms.
43679         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43680         (main): Test the presence of UNINORM_NFC here.
43681         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43682         (main): Test the presence of UNINORM_NFD here.
43683         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43684         (main): Test the presence of UNINORM_NFKC here.
43685         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43686         (main): Test the presence of UNINORM_NFKD here.
43687
43688 2009-04-19  Bruno Haible  <bruno@clisp.org>
43689
43690         Avoid a compiler warning.
43691         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43692         Change type of variable 'sequence'.
43693
43694 2009-04-19  Bruno Haible  <bruno@clisp.org>
43695
43696         * modules/configmake (Makefile.am): When the contents of configmake.h
43697         does not change, arrange to preserve its modification time.
43698
43699 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43700
43701         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43702         gettext domain.
43703
43704 2009-04-16  Jim Meyering  <meyering@redhat.com>
43705
43706         useless-if-before-free: improve conversion code
43707         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43708         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43709
43710 2009-04-14  Bruno Haible  <bruno@clisp.org>
43711
43712         * modules/fcntl (Depends-on): Add extensions.
43713         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43714
43715 2009-04-12  Ben Pfaff  <blp@gnu.org>
43716
43717         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43718         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43719
43720 2009-03-20  Ben Pfaff  <blp@gnu.org>
43721
43722         Make rename replace existing destinations on Windows.
43723         * m4/rename.m4: Add test for Mingw.
43724         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43725         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43726         * doc/posix-functions/rename.texi: Document.
43727
43728 2009-04-10  Bruno Haible  <bruno@clisp.org>
43729
43730         New include file "iconveh.h".
43731         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43732         * lib/striconveh.h: Include it.
43733         (enum iconv_ilseq_handler): Remove definition.
43734         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43735         striconveh.h.
43736         * lib/striconveha.c: Include striconveh.h.
43737         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43738         * modules/striconveh (Files): Add lib/iconveh.h.
43739         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43740         lib/striconveh.h.
43741
43742 2009-04-10  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/uniconv.h: Update comment.
43745
43746 2009-04-10  Bruno Haible  <bruno@clisp.org>
43747
43748         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43749         always.
43750         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43751         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43752         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43753         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43754         "unistring-notinline.h", so that the function gets defined always.
43755         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43756         * lib/unistr/u8-uctomb.c: Likewise.
43757         * lib/unistr/u16-mbtouc.c: Likewise.
43758         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43759         * lib/unistr/u16-uctomb.c: Likewise.
43760         * lib/unistr/u32-mbtouc.c: Likewise.
43761         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43762         * lib/unistr/u32-uctomb.c: Likewise.
43763
43764 2009-04-10  Bruno Haible  <bruno@clisp.org>
43765
43766         Mark 'utime' obsolete.
43767         * modules/utime (Status, Notice): New sections.
43768         Suggested by Jim Meyering.
43769
43770         Fix cross-compile guess for utime test.
43771         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43772         autoconf.
43773         * doc/posix-functions/utime.texi: Give more precisions.
43774         Reported by Jan <ipif@ymail.com>.
43775
43776 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43777
43778         filevercmp: correct today's change
43779         * lib/filevercmp.c: Also handle coreutils' test inputs.
43780         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43781
43782         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43783         for reporting it.
43784         * lib/filevercmp.c: Special handle for "", "." and "..".
43785         * tests/test-filevercmp.c: Enlarge the set suite.
43786
43787 2009-04-07  Jim Meyering  <meyering@redhat.com>
43788
43789         useless-if-before-free: show how to remove braced useless free, too
43790         * build-aux/useless-if-before-free: still only in a comment, though.
43791
43792 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43793
43794         maint.mk: import changes to syntax-check macros from coreutils
43795         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43796         Use them in the relevant macros.
43797
43798 2009-04-06  Bruno Haible  <bruno@clisp.org>
43799
43800         Fix unportable use of bit-fields.
43801         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43802         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43803         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43804
43805 2009-04-06  Bruno Haible  <bruno@clisp.org>
43806
43807         Avoid test failures on AIX and OSF/1.
43808         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43809         that malloc(0) = NULL.
43810         * tests/unicase/test-u8-tolower.c (check): Likewise.
43811         * tests/unicase/test-u8-totitle.c (check): Likewise.
43812         * tests/unicase/test-u8-toupper.c (check): Likewise.
43813         * tests/unicase/test-u16-casefold.c (check): Likewise.
43814         * tests/unicase/test-u16-tolower.c (check): Likewise.
43815         * tests/unicase/test-u16-totitle.c (check): Likewise.
43816         * tests/unicase/test-u16-toupper.c (check): Likewise.
43817         * tests/unicase/test-u32-casefold.c (check): Likewise.
43818         * tests/unicase/test-u32-tolower.c (check): Likewise.
43819         * tests/unicase/test-u32-totitle.c (check): Likewise.
43820         * tests/unicase/test-u32-toupper.c (check): Likewise.
43821         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43822         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43823         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43824         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43825         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43826         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43827         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43828         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43829         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43830         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43831         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43832         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43833
43834 2009-04-05  Bruno Haible  <bruno@clisp.org>
43835
43836         Work around an autoconf limitation.
43837         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43838         comment line if it would be longer than 3 KB.
43839
43840 2009-04-05  Bruno Haible  <bruno@clisp.org>
43841
43842         Avoid test failure with libiconv-1.13.
43843         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
43844         of the expected test results.
43845
43846 2009-04-05  Bruno Haible  <bruno@clisp.org>
43847
43848         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
43849         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
43850         that it should be installed.
43851
43852 2009-04-05  Bruno Haible  <bruno@clisp.org>
43853
43854         * gnulib-tool: New option --copy-file.
43855         (func_usage): Document it.
43856         (func_dest_tmpfilename): Moved out of func_import.
43857         (func_add_file, func_update_file): New functions, extracted from
43858         func_import.
43859         (func_import): Update.
43860
43861 2009-04-05  Karl Berry  <karl@gnu.org>
43862
43863         * README: prominently mention gnulib-tool.
43864         Rearrange sections so getting the code is near the top.
43865
43866 2009-04-05  Bruno Haible  <bruno@clisp.org>
43867
43868         * lib/unicase.h: Mention u*_cmp2.
43869         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43870         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
43871         * lib/unicase/ulc-casecmp.c: Likewise.
43872         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
43873         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
43874         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
43875         unistr/u8-cmp.
43876         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
43877         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
43878         unistr/u16-cmp.
43879         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
43880         unistr/u32-cmp.
43881
43882         * lib/uninorm.h: Mention u*_cmp2.
43883         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43884         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
43885         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
43886         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
43887         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
43888         unistr/u8-cmp.
43889         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
43890         unistr/u16-cmp.
43891         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
43892         unistr/u32-cmp.
43893
43894         New module 'unistr/u32-cmp2'.
43895         * lib/unistr/u32-cmp2.c: New file.
43896         * modules/unistr/u32-cmp2: New file.
43897
43898         New module 'unistr/u16-cmp2'.
43899         * lib/unistr/u16-cmp2.c: New file.
43900         * modules/unistr/u16-cmp2: New file.
43901
43902         New module 'unistr/u8-cmp2'.
43903         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
43904         * lib/unistr/u8-cmp2.c: New file.
43905         * lib/unistr/u-cmp2.h: New file.
43906         * modules/unistr/u8-cmp2: New file.
43907
43908 2009-04-05  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/unictype.h (uc_property_is_valid): New macro.
43911         * tests/unictype/test-pr_byname.c (main): Use it.
43912
43913         * lib/unistr.h: Doc fixes.
43914         * lib/uniconv.h: Doc fixes.
43915         * lib/unictype.h: Doc fixes.
43916
43917 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
43918
43919         Port coreutils 7.2 to Solaris 8.
43920
43921         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
43922         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
43923         for Solaris 8.  This is a bit of a hack, as it means it's the
43924         caller's responsibility to add -lnsl if needed, but most likely it
43925         won't be needed since only getaddrinfo uses this and getaddrinfo
43926         isn't needed on Solaris 8.
43927
43928         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
43929         problem to Solaris 8 encountered with coreutils 7.2, which
43930         resulted in a message "fnmatch.c:292: warning: passing argument 4
43931         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
43932         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
43933
43934 2009-04-03  Simon Josefsson  <simon@josefsson.org>
43935
43936         * m4/ld-version-script.m4: Add FIXME comment.
43937
43938 2009-04-02  Simon Josefsson  <simon@josefsson.org>
43939
43940         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
43941         SOVERSION variable.
43942
43943 2009-04-02  Bruno Haible  <bruno@clisp.org>
43944
43945         * Makefile (info, html, dvi, pdf): Combine the rules.
43946         Suggested by Jim Meyering.
43947
43948 2009-04-01  Bruno Haible  <bruno@clisp.org>
43949
43950         * Makefile (info, html, dvi, pdf): New targets.
43951         Reported by Reuben Thomas <rrt@sc3d.org>.
43952
43953 2009-04-01  Bruno Haible  <bruno@clisp.org>
43954
43955         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
43956         can be put into PATH.
43957         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
43958
43959 2009-04-01  Bruno Haible  <bruno@clisp.org>
43960
43961         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
43962
43963 2009-04-01  Bruno Haible  <bruno@clisp.org>
43964
43965         Rename module 'visibility'.
43966         * modules/lib-symbol-visibility: Renamed from modules/visibility.
43967         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
43968         * doc/gnulib.texi: Update.
43969         * MODULES.html.sh (Misc): Update.
43970         * NEWS: Mention the change.
43971
43972 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43973
43974         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
43975         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
43976         Eric Blake <ebb9@byu.net> for review.
43977         * MODULES.html.sh: Add lib-msvc-compat.
43978         * doc/gnulib.texi: Link to new section.
43979         * m4/ld-output-def.m4: New file.
43980         * doc/ld-output-def.texi: New file.
43981
43982 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43983
43984         Rename ld-version-script to lib-symbol-versions.  Suggested by
43985         Bruno Haible <bruno@clisp.org>.
43986         * modules/ld-version-script: Renamed to lib-symbol-versions.
43987         * doc/ld-version-script.texi: Fix module name.
43988         * MODULES.html.sh: Add lib-symbol-versions.
43989
43990 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43991
43992         * modules/u64-tests: New file.
43993         * tests/test-u64.c: New file.
43994
43995 2009-03-04  Simon Josefsson  <simon@josefsson.org>
43996
43997         * MODULES.html.sh: Mention u64.
43998         * modules/u64: New module.
43999         * modules/crypto/sha512: Depend on u64 module instead of providing
44000         u64.h.
44001
44002 2009-03-27  Eric Blake  <ebb9@byu.net>
44003
44004         test-strerror: make debugging EAI_SYSTEM easier
44005         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44006         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44007         failure was EAI_SYSTEM.
44008
44009 2009-03-25  Bruno Haible  <bruno@clisp.org>
44010
44011         Fix a problem with --enable-relocatable on Solaris 7.
44012         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44013         since 2008-02-24.
44014
44015 2009-03-25  Eric Blake  <ebb9@byu.net>
44016
44017         test-sockets: avoid gcc warning
44018         * tests/test-sockets.c (main): Silence compiler warning.
44019
44020 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44021
44022         New modules nproc, pthread, contributed by Glen Lenker.
44023
44024         * MODULES.html.sh: Add pthread, nproc.
44025         * lib/nproc.c: New file.
44026         * lib/nproc.h: New file.
44027         * lib/pthread.in.h: New file.
44028         * m4/pthread.m4: New file.
44029         * modules/nproc: New file.
44030         * modules/pthread: New file.
44031
44032 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44033
44034         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44035         New variable.
44036
44037 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44038
44039         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44040         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44041         * tests/test-filevercmp.c: Add tests for backup suffixes.
44042
44043 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44044
44045         * modules/stdlib (Depends-on): Add stdint, needed when defining
44046         struct random_data on, for example, HP-UX 10.20.  Reported by
44047         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44048
44049 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44050
44051         * lib/readline.c (readline): Call fflush on stdout after printing
44052         prompt.
44053
44054 2009-03-20  Bruno Haible  <bruno@clisp.org>
44055
44056         Remove dependency from 'close' module to -lws2_32 on native Windows.
44057         * lib/close-hook.h: New file.
44058         * lib/close-hook.c: New file.
44059         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44060         w32sock.h.
44061         (_gl_close_fd_maybe_socket): Remove function.
44062         (rpl_close): Invoke execute_all_close_hooks instead of
44063         _gl_close_fd_maybe_socket.
44064         * lib/sockets.c: Include close-hook.h, w32sock.h.
44065         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44066         (close_sockets_hook): New variable.
44067         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44068         (gl_sockets_cleanup): Unregister it.
44069         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44070         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44071         * modules/close-hook: New file.
44072         * modules/close (Files): Remove lib/w32sock.h.
44073         (Depends-on): Add close-hook.
44074         (Link): Remove section.
44075         * modules/sockets (Files): Add lib/w32sock.h.
44076         (Depends-on): Add close-hook.
44077         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44078         invocation.
44079         * NEWS: Mention that LIB_CLOSE is gone.
44080
44081 2009-03-23  Eric Blake  <ebb9@byu.net>
44082
44083         signal-tests: test previous patch
44084         * tests/test-signal.c: New file.
44085         * modules/signal-tests: Likewise.
44086
44087         signal.h: always support 'volatile sig_atomic_t'
44088         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44089         (gl_SIGNAL_H_DEFAULTS): Add a default.
44090         * modules/signal (Makefile.am): Substitute if needed.
44091         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44092         users can blindly add volatile.
44093         * doc/posix-headers/signal.texi (signal.h): Document it.
44094         Reported by Matthew Woehlke.
44095
44096 2009-03-23  Jim Meyering  <meyering@redhat.com>
44097
44098         pathmax: PATH_MAX: use pathconf only when available
44099         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44100         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44101         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44102         This avoids a link failure in a PSP cross-compilation environment
44103         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44104
44105         * lib/vasnprintf.c (divide): Fix typo in comment.
44106
44107 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44108
44109         * gnulib-tool (func_filter_filelist): Fix comment.
44110
44111 2009-03-20  Bruno Haible  <bruno@clisp.org>
44112
44113         Make sockets.h self-contained.
44114         * lib/sockets.c: Include sockets.h first.
44115         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44116
44117 2009-03-19  Eric Blake  <ebb9@byu.net>
44118
44119         doc: mention more functions added in cygwin 1.7.0
44120         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44121         addition.
44122         * doc/posix-functions/log2f.texi: Likewise.
44123
44124 2009-03-19  Jim Meyering  <meyering@redhat.com>
44125
44126         fsusage: avoid syntax error due to statement-before-declaration
44127         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44128         after all declarations.  Reported by Matthew Woehlke in
44129         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44130
44131 2009-03-18  Eric Blake  <ebb9@byu.net>
44132
44133         build-aux/compile: sync from automake
44134         * build-aux/compile: New file, from automake.
44135         * config/srclist.txt: Mention build-aux/compile.
44136
44137 2009-03-17  Bruno Haible  <bruno@clisp.org>
44138
44139         * lib/git-merge-changelog.c: Fix typo in comment.
44140         Reported by Reuben Thomas <rrt@sc3d.org>.
44141
44142 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44143
44144         * m4/regex.m4: update and improve help for
44145         --without-included-regex.
44146
44147 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44148
44149         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44150         failure on missing include files.
44151
44152 2009-03-17  Eric Blake  <ebb9@byu.net>
44153
44154         doc: mention more functions added in cygwin 1.7.0
44155         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44156         addition.
44157         * doc/posix-functions/fwscanf.texi: Likewise.
44158         * doc/posix-functions/swprintf.texi: Likewise.
44159         * doc/posix-functions/swscanf.texi: Likewise.
44160         * doc/posix-functions/vfwprintf.texi: Likewise.
44161         * doc/posix-functions/vfwscanf.texi: Likewise.
44162         * doc/posix-functions/vswprintf.texi: Likewise.
44163         * doc/posix-functions/vswscanf.texi: Likewise.
44164         * doc/posix-functions/vwprintf.texi: Likewise.
44165         * doc/posix-functions/vwscanf.texi: Likewise.
44166         * doc/posix-functions/wcscasecmp.texi: Likewise.
44167         * doc/posix-functions/wcsdup.texi: Likewise.
44168         * doc/posix-functions/wcsftime.texi: Likewise.
44169         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44170         * doc/posix-functions/wprintf.texi: Likewise.
44171         * doc/posix-functions/wscanf.texi: Likewise.
44172         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44173
44174 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44175
44176         maint.mk: really add $(AM_MAKEFLAGS)
44177         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44178         was inadvertently omitted in the last commit.
44179         Spotted by Bruno Haible.
44180
44181         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44182         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44183         $(AM_MAKEFLAGS)' rather than plain `make'.
44184
44185         gnulib-tool: execute $MAKE not make
44186         * gnulib-tool: Default $MAKE to 'make'.
44187         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44188         than make.  Initialize $MAKE in the do-autobuild script.
44189
44190         gnulib-tool: use $MAKE not make in generated files
44191         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44192         make, in generated files.  Initialize $MAKE in the do-autobuild
44193         script.
44194
44195         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44196
44197         GNUmakefile: disable parallelism only for multiple, recursive targets
44198         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44199         additions in the Makefile.
44200         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44201         by Automake.
44202         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44203         are listed on the command line and at least one of them is
44204         listed in $(ALL_RECURSIVE_TARGETS).
44205
44206 2009-03-14  Bruno Haible  <bruno@clisp.org>
44207
44208         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44209         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44210         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44211         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44212         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44213         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44214         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44215         unistr/u8-uctomb.
44216         * modules/unistr/u8-strchr (Depends-on): Likewise.
44217         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44218         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44219         unistr/u16-uctomb.
44220         * modules/unistr/u16-strchr (Depends-on): Likewise.
44221         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44222
44223 2009-03-12  Bruno Haible  <bruno@clisp.org>
44224
44225         Work around select() bug on Interix 3.5.
44226         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44227         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44228         * m4/select.m4: New file.
44229         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44230         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44231         * modules/select (Files): Add m4/select.m4.
44232         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44233         * modules/nanosleep (Depends-on): Add select.
44234         * modules/poll (Depends-on): Likewise.
44235         * doc/posix-functions/select.texi: Mention the Interix bug.
44236         Reported by Markus Duft <mduft@gentoo.org>.
44237
44238         * lib/select.c: Renamed from lib/winsock-select.c.
44239         * modules/select (Files): Add lib/select.c, remove
44240         lib/winsock-select.c.
44241         (configure.ac): Update.
44242
44243 2009-03-12  Jim Meyering  <meyering@redhat.com>
44244
44245         avoid gcc warnings about unused macro definitions
44246         * lib/readtokens.c (STREQ): Remove unused definition.
44247         * lib/xmalloc.c (SIZE_MAX): Likewise.
44248         * lib/openat-die.c (N_): Likewise.
44249         * lib/mountlist.c (SIZE_MAX): Remove definition.
44250         Instead, include <stdint.h>.
44251         * lib/readutmp.c: Likewise.
44252         * modules/readutmp (Depends-on): Add stdint.
44253         * modules/mountlist (Depends-on): Add stdint.
44254         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44255
44256 2009-03-10  Bruno Haible  <bruno@clisp.org>
44257
44258         Tests for module 'mbmemcasecoll'.
44259         * modules/mbmemcasecoll-tests: New file.
44260         * tests/test-mbmemcasecoll1.sh: New file.
44261         * tests/test-mbmemcasecoll2.sh: New file.
44262         * tests/test-mbmemcasecoll3.sh: New file.
44263         * tests/test-mbmemcasecoll.c: New file.
44264
44265         New module 'mbmemcasecoll'.
44266         * lib/mbmemcasecoll.h: New file.
44267         * lib/mbmemcasecoll.c: New file.
44268         * modules/mbmemcasecoll: New file.
44269
44270         * tests/test-mbmemcasecmp.h: New file, extracted from
44271         tests/test-mbmemcasecmp.c.
44272         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44273         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44274         (main): Update.
44275         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44276
44277 2009-03-09  Bruno Haible  <bruno@clisp.org>
44278
44279         Tests for module 'mbmemcasecmp'.
44280         * modules/mbmemcasecmp-tests: New file.
44281         * tests/test-mbmemcasecmp1.sh: New file.
44282         * tests/test-mbmemcasecmp2.sh: New file.
44283         * tests/test-mbmemcasecmp3.sh: New file.
44284         * tests/test-mbmemcasecmp.c: New file.
44285
44286         New module 'mbmemcasecmp'.
44287         * lib/mbmemcasecmp.h: New file.
44288         * lib/mbmemcasecmp.c: New file.
44289         * modules/mbmemcasecmp: New file.
44290
44291 2009-03-09  Bruno Haible  <bruno@clisp.org>
44292
44293         Tests for module 'unicase/ulc-casecoll'.
44294         * modules/unicase/ulc-casecoll-tests: New file.
44295         * tests/unicase/test-ulc-casecoll1.sh: New file.
44296         * tests/unicase/test-ulc-casecoll2.sh: New file.
44297         * tests/unicase/test-ulc-casecoll.c: New file.
44298
44299         New module 'unicase/ulc-casecoll'.
44300         * lib/unicase.h (ulc_casecoll): New declaration.
44301         * lib/unicase/ulc-casecoll.c: New file.
44302         * modules/unicase/ulc-casecoll: New file.
44303
44304         New module 'unicase/ulc-casexfrm'.
44305         * lib/unicase.h (ulc_casexfrm): New declaration.
44306         * lib/unicase/ulc-casexfrm.c: New file.
44307         * modules/unicase/ulc-casexfrm: New file.
44308
44309 2009-03-09  Bruno Haible  <bruno@clisp.org>
44310
44311         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44312         invocations.
44313
44314         * m4/mbscasecmp.m4: Remove file.
44315         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44316         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44317
44318         * m4/mbscasestr.m4: Remove file.
44319         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44320         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44321
44322         * m4/mbschr.m4: Remove file.
44323         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44324         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44325
44326         * m4/mbscspn.m4: Remove file.
44327         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44328         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44329
44330         * m4/mbslen.m4: Remove file.
44331         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44332         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44333
44334         * m4/mbsncasecmp.m4: Remove file.
44335         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44336         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44337
44338         * m4/mbsnlen.m4: Remove file.
44339         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44340         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44341
44342         * m4/mbspbrk.m4: Remove file.
44343         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44344         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44345
44346         * m4/mbspcasecmp.m4: Remove file.
44347         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44348         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44349
44350         * m4/mbsrchr.m4: Remove file.
44351         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44352         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44353
44354         * m4/mbssep.m4: Remove file.
44355         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44356         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44357
44358         * m4/mbsspn.m4: Remove file.
44359         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44360         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44361
44362         * m4/mbsstr.m4: Remove file.
44363         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44364         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44365
44366         * m4/mbstok_r.m4: Remove file.
44367         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44368         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44369
44370         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44371
44372         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44373         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44374
44375         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44376
44377 2009-03-08  Bruno Haible  <bruno@clisp.org>
44378
44379         Tests for module 'unicase/ulc-casecmp'.
44380         * modules/unicase/ulc-casecmp-tests: New file.
44381         * tests/unicase/test-ulc-casecmp1.sh: New file.
44382         * tests/unicase/test-ulc-casecmp2.sh: New file.
44383         * tests/unicase/test-ulc-casecmp.c: New file.
44384
44385         New module 'unicase/ulc-casecmp'.
44386         * lib/unicase.h (ulc_casecmp): New declaration.
44387         * lib/unicase/ulc-casecmp.c: New file.
44388         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44389         'const SRC_UNIT *'.
44390         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44391         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44392         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44393         * modules/unicase/ulc-casecmp: New file.
44394
44395         Tests for module 'unicase/u32-is-cased'.
44396         * modules/unicase/u32-is-cased-tests: New file.
44397         * tests/unicase/test-u32-is-cased.c: New file.
44398
44399         Tests for module 'unicase/u16-is-cased'.
44400         * modules/unicase/u16-is-cased-tests: New file.
44401         * tests/unicase/test-u16-is-cased.c: New file.
44402
44403         Tests for module 'unicase/u8-is-cased'.
44404         * modules/unicase/u8-is-cased-tests: New file.
44405         * tests/unicase/test-u8-is-cased.c: New file.
44406         * tests/unicase/test-is-cased.h: New file.
44407
44408         New module 'unicase/u32-is-cased'.
44409         * lib/unicase/u32-is-cased.c: New file.
44410         * modules/unicase/u32-is-cased: New file.
44411
44412         New module 'unicase/u16-is-cased'.
44413         * lib/unicase/u16-is-cased.c: New file.
44414         * modules/unicase/u16-is-cased: New file.
44415
44416         New module 'unicase/u8-is-cased'.
44417         * lib/unicase/u8-is-cased.c: New file.
44418         * lib/unicase/u-is-cased.h: New file.
44419         * modules/unicase/u8-is-cased: New file.
44420
44421         Tests for module 'unicase/u32-is-casefolded'.
44422         * modules/unicase/u32-is-casefolded-tests: New file.
44423         * tests/unicase/test-u32-is-casefolded.c: New file.
44424
44425         Tests for module 'unicase/u16-is-casefolded'.
44426         * modules/unicase/u16-is-casefolded-tests: New file.
44427         * tests/unicase/test-u16-is-casefolded.c: New file.
44428
44429         Tests for module 'unicase/u8-is-casefolded'.
44430         * modules/unicase/u8-is-casefolded-tests: New file.
44431         * tests/unicase/test-u8-is-casefolded.c: New file.
44432         * tests/unicase/test-is-casefolded.h: New file.
44433
44434         New module 'unicase/u32-is-casefolded'.
44435         * lib/unicase/u32-is-casefolded.c: New file.
44436         * modules/unicase/u32-is-casefolded: New file.
44437
44438         New module 'unicase/u16-is-casefolded'.
44439         * lib/unicase/u16-is-casefolded.c: New file.
44440         * modules/unicase/u16-is-casefolded: New file.
44441
44442         New module 'unicase/u8-is-casefolded'.
44443         * lib/unicase/u8-is-casefolded.c: New file.
44444         * modules/unicase/u8-is-casefolded: New file.
44445
44446         Tests for module 'unicase/u32-is-titlecase'.
44447         * modules/unicase/u32-is-titlecase-tests: New file.
44448         * tests/unicase/test-u32-is-titlecase.c: New file.
44449
44450         Tests for module 'unicase/u16-is-titlecase'.
44451         * modules/unicase/u16-is-titlecase-tests: New file.
44452         * tests/unicase/test-u16-is-titlecase.c: New file.
44453
44454         Tests for module 'unicase/u8-is-titlecase'.
44455         * modules/unicase/u8-is-titlecase-tests: New file.
44456         * tests/unicase/test-u8-is-titlecase.c: New file.
44457         * tests/unicase/test-is-titlecase.h: New file.
44458
44459         New module 'unicase/u32-is-titlecase'.
44460         * lib/unicase/u32-is-titlecase.c: New file.
44461         * modules/unicase/u32-is-titlecase: New file.
44462
44463         New module 'unicase/u16-is-titlecase'.
44464         * lib/unicase/u16-is-titlecase.c: New file.
44465         * modules/unicase/u16-is-titlecase: New file.
44466
44467         New module 'unicase/u8-is-titlecase'.
44468         * lib/unicase/u8-is-titlecase.c: New file.
44469         * modules/unicase/u8-is-titlecase: New file.
44470
44471         Tests for module 'unicase/u32-is-lowercase'.
44472         * modules/unicase/u32-is-lowercase-tests: New file.
44473         * tests/unicase/test-u32-is-lowercase.c: New file.
44474
44475         Tests for module 'unicase/u16-is-lowercase'.
44476         * modules/unicase/u16-is-lowercase-tests: New file.
44477         * tests/unicase/test-u16-is-lowercase.c: New file.
44478
44479         Tests for module 'unicase/u8-is-lowercase'.
44480         * modules/unicase/u8-is-lowercase-tests: New file.
44481         * tests/unicase/test-u8-is-lowercase.c: New file.
44482         * tests/unicase/test-is-lowercase.h: New file.
44483
44484         New module 'unicase/u32-is-lowercase'.
44485         * lib/unicase/u32-is-lowercase.c: New file.
44486         * modules/unicase/u32-is-lowercase: New file.
44487
44488         New module 'unicase/u16-is-lowercase'.
44489         * lib/unicase/u16-is-lowercase.c: New file.
44490         * modules/unicase/u16-is-lowercase: New file.
44491
44492         New module 'unicase/u8-is-lowercase'.
44493         * lib/unicase/u8-is-lowercase.c: New file.
44494         * modules/unicase/u8-is-lowercase: New file.
44495
44496         Tests for module 'unicase/u32-is-uppercase'.
44497         * modules/unicase/u32-is-uppercase-tests: New file.
44498         * tests/unicase/test-u32-is-uppercase.c: New file.
44499
44500         Tests for module 'unicase/u16-is-uppercase'.
44501         * modules/unicase/u16-is-uppercase-tests: New file.
44502         * tests/unicase/test-u16-is-uppercase.c: New file.
44503
44504         Tests for module 'unicase/u8-is-uppercase'.
44505         * modules/unicase/u8-is-uppercase-tests: New file.
44506         * tests/unicase/test-u8-is-uppercase.c: New file.
44507         * tests/unicase/test-is-uppercase.h: New file.
44508
44509         New module 'unicase/u32-is-uppercase'.
44510         * lib/unicase/u32-is-uppercase.c: New file.
44511         * modules/unicase/u32-is-uppercase: New file.
44512
44513         New module 'unicase/u16-is-uppercase'.
44514         * lib/unicase/u16-is-uppercase.c: New file.
44515         * modules/unicase/u16-is-uppercase: New file.
44516
44517         New module 'unicase/u8-is-uppercase'.
44518         * lib/unicase/u8-is-uppercase.c: New file.
44519         * modules/unicase/u8-is-uppercase: New file.
44520
44521         New module 'unicase/u32-is-invariant'.
44522         * lib/unicase/u32-is-invariant.c: New file.
44523         * modules/unicase/u32-is-invariant: New file.
44524
44525         New module 'unicase/u16-is-invariant'.
44526         * lib/unicase/u16-is-invariant.c: New file.
44527         * modules/unicase/u16-is-invariant: New file.
44528
44529         New module 'unicase/u8-is-invariant'.
44530         * lib/unicase/u8-is-invariant.c: New file.
44531         * lib/unicase/invariant.h: New file.
44532         * lib/unicase/u-is-invariant.h: New file.
44533         * modules/unicase/u8-is-invariant: New file.
44534
44535         Tests for module 'unicase/u32-casecoll'.
44536         * modules/unicase/u32-casecoll-tests: New file.
44537         * tests/unicase/test-u32-casecoll.c: New file.
44538
44539         Tests for module 'unicase/u16-casecoll'.
44540         * modules/unicase/u16-casecoll-tests: New file.
44541         * tests/unicase/test-u16-casecoll.c: New file.
44542
44543         Tests for module 'unicase/u8-casecoll'.
44544         * modules/unicase/u8-casecoll-tests: New file.
44545         * tests/unicase/test-u8-casecoll.c: New file.
44546
44547         New module 'unicase/u32-casecoll'.
44548         * lib/unicase/u32-casecoll.c: New file.
44549         * modules/unicase/u32-casecoll: New file.
44550
44551         New module 'unicase/u16-casecoll'.
44552         * lib/unicase/u16-casecoll.c: New file.
44553         * modules/unicase/u16-casecoll: New file.
44554
44555         New module 'unicase/u8-casecoll'.
44556         * lib/unicase/u8-casecoll.c: New file.
44557         * lib/unicase/u-casecoll.h: New file.
44558         * modules/unicase/u8-casecoll: New file.
44559
44560         New module 'unicase/u32-casexfrm'.
44561         * lib/unicase/u32-casexfrm.c: New file.
44562         * modules/unicase/u32-casexfrm: New file.
44563
44564         New module 'unicase/u16-casexfrm'.
44565         * lib/unicase/u16-casexfrm.c: New file.
44566         * modules/unicase/u16-casexfrm: New file.
44567
44568         New module 'unicase/u8-casexfrm'.
44569         * lib/unicase/u8-casexfrm.c: New file.
44570         * lib/unicase/u-casexfrm.h: New file.
44571         * modules/unicase/u8-casexfrm: New file.
44572
44573         Tests for module 'unicase/u32-casecmp'.
44574         * modules/unicase/u32-casecmp-tests: New file.
44575         * tests/unicase/test-u32-casecmp.c: New file.
44576
44577         Tests for module 'unicase/u16-casecmp'.
44578         * modules/unicase/u16-casecmp-tests: New file.
44579         * tests/unicase/test-u16-casecmp.c: New file.
44580
44581         Tests for module 'unicase/u8-casecmp'.
44582         * modules/unicase/u8-casecmp-tests: New file.
44583         * tests/unicase/test-u8-casecmp.c: New file.
44584         * tests/unicase/test-casecmp.h: New file.
44585
44586         New module 'unicase/u32-casecmp'.
44587         * lib/unicase/u32-casecmp.c: New file.
44588         * modules/unicase/u32-casecmp: New file.
44589
44590         New module 'unicase/u16-casecmp'.
44591         * lib/unicase/u16-casecmp.c: New file.
44592         * modules/unicase/u16-casecmp: New file.
44593
44594         New module 'unicase/u8-casecmp'.
44595         * lib/unicase/u8-casecmp.c: New file.
44596         * lib/unicase/u-casecmp.h: New file.
44597         * modules/unicase/u8-casecmp: New file.
44598
44599         Tests for module 'unicase/u32-casefold'.
44600         * modules/unicase/u32-casefold-tests: New file.
44601         * tests/unicase/test-u32-casefold.c: New file.
44602
44603         Tests for module 'unicase/u16-casefold'.
44604         * modules/unicase/u16-casefold-tests: New file.
44605         * tests/unicase/test-u16-casefold.c: New file.
44606
44607         Tests for module 'unicase/u8-casefold'.
44608         * modules/unicase/u8-casefold-tests: New file.
44609         * tests/unicase/test-u8-casefold.c: New file.
44610
44611         New module 'unicase/u32-casefold'.
44612         * lib/unicase/u32-casefold.c: New file.
44613         * modules/unicase/u32-casefold: New file.
44614
44615         New module 'unicase/u16-casefold'.
44616         * lib/unicase/u16-casefold.c: New file.
44617         * modules/unicase/u16-casefold: New file.
44618
44619         New module 'unicase/u8-casefold'.
44620         * lib/unicase/u8-casefold.c: New file.
44621         * lib/unicase/u-casefold.h: New file.
44622         * modules/unicase/u8-casefold: New file.
44623
44624         New module 'unicase/tocasefold'.
44625         * lib/unicase/casefold.h: New file.
44626         * lib/unicase/tocasefold.c: New file.
44627         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44628         * modules/unicase/tocasefold: New file.
44629
44630         Tests for module 'unicase/u32-totitle'.
44631         * modules/unicase/u32-totitle-tests: New file.
44632         * tests/unicase/test-u32-totitle.c: New file.
44633
44634         Tests for module 'unicase/u16-totitle'.
44635         * modules/unicase/u16-totitle-tests: New file.
44636         * tests/unicase/test-u16-totitle.c: New file.
44637
44638         Tests for module 'unicase/u8-totitle'.
44639         * modules/unicase/u8-totitle-tests: New file.
44640         * tests/unicase/test-u8-totitle.c: New file.
44641
44642         New module 'unicase/u32-totitle'.
44643         * lib/unicase/u32-totitle.c: New file.
44644         * modules/unicase/u32-totitle: New file.
44645
44646         New module 'unicase/u16-totitle'.
44647         * lib/unicase/u16-totitle.c: New file.
44648         * modules/unicase/u16-totitle: New file.
44649
44650         New module 'unicase/u8-totitle'.
44651         * lib/unicase/u8-totitle.c: New file.
44652         * lib/unicase/u-totitle.h: New file.
44653         * modules/unicase/u8-totitle: New file.
44654
44655         Tests for module 'unicase/u32-tolower'.
44656         * modules/unicase/u32-tolower-tests: New file.
44657         * tests/unicase/test-u32-tolower.c: New file.
44658
44659         Tests for module 'unicase/u16-tolower'.
44660         * modules/unicase/u16-tolower-tests: New file.
44661         * tests/unicase/test-u16-tolower.c: New file.
44662
44663         Tests for module 'unicase/u8-tolower'.
44664         * modules/unicase/u8-tolower-tests: New file.
44665         * tests/unicase/test-u8-tolower.c: New file.
44666
44667         New module 'unicase/u32-tolower'.
44668         * lib/unicase/u32-tolower.c: New file.
44669         * modules/unicase/u32-tolower: New file.
44670
44671         New module 'unicase/u16-tolower'.
44672         * lib/unicase/u16-tolower.c: New file.
44673         * modules/unicase/u16-tolower: New file.
44674
44675         New module 'unicase/u8-tolower'.
44676         * lib/unicase/u8-tolower.c: New file.
44677         * modules/unicase/u8-tolower: New file.
44678
44679         Tests for module 'unicase/u32-toupper'.
44680         * modules/unicase/u32-toupper-tests: New file.
44681         * tests/unicase/test-u32-toupper.c: New file.
44682
44683         Tests for module 'unicase/u16-toupper'.
44684         * modules/unicase/u16-toupper-tests: New file.
44685         * tests/unicase/test-u16-toupper.c: New file.
44686
44687         Tests for module 'unicase/u8-toupper'.
44688         * modules/unicase/u8-toupper-tests: New file.
44689         * tests/unicase/test-u8-toupper.c: New file.
44690
44691         New module 'unicase/u32-toupper'.
44692         * lib/unicase/u32-toupper.c: New file.
44693         * modules/unicase/u32-toupper: New file.
44694
44695         New module 'unicase/u16-toupper'.
44696         * lib/unicase/u16-toupper.c: New file.
44697         * modules/unicase/u16-toupper: New file.
44698
44699         New module 'unicase/u8-toupper'.
44700         * lib/unicase/u8-toupper.c: New file.
44701         * modules/unicase/u8-toupper: New file.
44702
44703         New module 'unicase/u32-casemap'.
44704         * lib/unicase/u32-casemap.c: New file.
44705         * modules/unicase/u32-casemap: New file.
44706
44707         New module 'unicase/u16-casemap'.
44708         * lib/unicase/u16-casemap.c: New file.
44709         * modules/unicase/u16-casemap: New file.
44710
44711         New module 'unicase/u8-casemap'.
44712         * lib/unicase/unicasemap.h: New file.
44713         * lib/unicase/u8-casemap.c: New file.
44714         * lib/unicase/u-casemap.h: New file.
44715         * modules/unicase/u8-casemap: New file.
44716
44717         New module 'unicase/special-casing'.
44718         * lib/unicase/special-casing.h: New file.
44719         * lib/unicase/special-casing.c: New file.
44720         * lib/unicase/special-casing-table.gperf: New file, generated by
44721         gen-uni-tables.c.
44722         * modules/unicase/special-casing: New file.
44723
44724         Tests for module 'unicase/locale-language'.
44725         * modules/unicase/locale-language-tests: New file.
44726         * tests/unicase/test-locale-language.sh: New file.
44727         * tests/unicase/test-locale-language.c: New file.
44728
44729         New module 'unicase/locale-language'.
44730         * lib/unicase/locale-language.c: New file.
44731         * lib/unicase/locale-languages.gperf: New file.
44732         * modules/unicase/locale-language: New file.
44733
44734         Generate more tables for case conversion and case folding.
44735         * lib/gen-uni-tables.c (SCC_*): New enum items.
44736         (struct special_casing_rule): New type.
44737         (casing_rules, num_casing_rules, allocated_casing_rules): New
44738         variables.
44739         (add_casing_rule, fill_casing_rules): New functions.
44740         (struct casefold_rule): New type.
44741         (casefolding_rules, num_casefolding_rules,
44742         allocated_casefolding_rules): New variables.
44743         (fill_casefolding_rules): New function.
44744         (unicode_casefold): New variable.
44745         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44746         sort_casing_rules, output_casing_rules): New functions.
44747         (main): Accept to more arguments: SpecialCasing.txt and
44748         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44749         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44750         Output mapping for casefolding.
44751
44752         * lib/unicase.h: Include stdbool.h, uninorm.h.
44753         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44754         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44755         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44756         arguments.
44757         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44758         resultp arguments.
44759         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44760         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44761         resultp arguments.
44762         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44763         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44764         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44765         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44766         declarations.
44767         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44768
44769 2009-03-08  Bruno Haible  <bruno@clisp.org>
44770
44771         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44772         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44773         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44774         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44775
44776 2009-03-07  Bruno Haible  <bruno@clisp.org>
44777
44778         Adjust u*_normcmp, u*_normcoll API.
44779         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44780         u16_normcoll, u32_normcoll): Change failure conventions.
44781         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44782         errno and return -1.
44783         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44784
44785 2009-03-07  Bruno Haible  <bruno@clisp.org>
44786
44787         Tests for module 'uninorm/u32-normcoll'.
44788         * modules/uninorm/u32-normcoll-tests: New file.
44789         * tests/uninorm/test-u32-normcoll.c: New file.
44790
44791         Tests for module 'uninorm/u16-normcoll'.
44792         * modules/uninorm/u16-normcoll-tests: New file.
44793         * tests/uninorm/test-u16-normcoll.c: New file.
44794
44795         Tests for module 'uninorm/u8-normcoll'.
44796         * modules/uninorm/u8-normcoll-tests: New file.
44797         * tests/uninorm/test-u8-normcoll.c: New file.
44798
44799 2009-03-07  Bruno Haible  <bruno@clisp.org>
44800
44801         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44802         tests/uninorm/test-u32-normcmp.c.
44803         * tests/uninorm/test-u32-normcmp.c: Include it.
44804         (test_nonascii): New function, extracted from main. Add some more
44805         tests.
44806         (main): Invoke test_ascii and test_nonascii.
44807         * modules/uninorm/u32-normcmp-tests (Files): Add
44808         tests/uninorm/test-u32-normcmp.h.
44809         (Depends-on): Remove uninorm/u32-normcmp.
44810
44811         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44812         tests/uninorm/test-u16-normcmp.c.
44813         * tests/uninorm/test-u16-normcmp.c: Include it.
44814         (test_nonascii): New function, extracted from main. Add some more
44815         tests.
44816         (main): Invoke test_ascii and test_nonascii.
44817         * modules/uninorm/u16-normcmp-tests (Files): Add
44818         tests/uninorm/test-u16-normcmp.h.
44819         (Depends-on): Remove uninorm/u16-normcmp.
44820
44821         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44822         tests/uninorm/test-u8-normcmp.c.
44823         * tests/uninorm/test-u8-normcmp.c: Include it.
44824         (test_nonascii): New function, extracted from main. Add some more
44825         tests.
44826         (main): Invoke test_ascii and test_nonascii.
44827         * modules/uninorm/u8-normcmp-tests (Files): Add
44828         tests/uninorm/test-u8-normcmp.h.
44829         (Depends-on): Remove uninorm/u8-normcmp.
44830
44831 2009-03-07  Bruno Haible  <bruno@clisp.org>
44832
44833         New module 'uninorm/u32-normcoll'.
44834         * lib/uninorm/u32-normcoll.c: New file.
44835         * modules/uninorm/u32-normcoll: New file.
44836
44837         New module 'uninorm/u16-normcoll'.
44838         * lib/uninorm/u16-normcoll.c: New file.
44839         * modules/uninorm/u16-normcoll: New file.
44840
44841         New module 'uninorm/u8-normcoll'.
44842         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
44843         declarations.
44844         * lib/uninorm/u8-normcoll.c: New file.
44845         * lib/uninorm/u-normcoll.h: New file.
44846         * modules/uninorm/u8-normcoll: New file.
44847
44848         New module 'uninorm/u32-normxfrm'.
44849         * lib/uninorm/u32-normxfrm.c: New file.
44850         * modules/uninorm/u32-normxfrm: New file.
44851
44852         New module 'uninorm/u16-normxfrm'.
44853         * lib/uninorm/u16-normxfrm.c: New file.
44854         * modules/uninorm/u16-normxfrm: New file.
44855
44856         New module 'uninorm/u8-normxfrm'.
44857         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
44858         declarations.
44859         * lib/uninorm/u8-normxfrm.c: New file.
44860         * lib/uninorm/u-normxfrm.h: New file.
44861         * modules/uninorm/u8-normxfrm: New file.
44862
44863 2009-03-07  Bruno Haible  <bruno@clisp.org>
44864
44865         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
44866         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
44867         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
44868
44869 2009-03-07  Bruno Haible  <bruno@clisp.org>
44870
44871         New module 'memxfrm'.
44872         * lib/memxfrm.h: New file.
44873         * lib/memxfrm.c: New file.
44874         * modules/memxfrm: New file.
44875
44876 2009-03-07  Bruno Haible  <bruno@clisp.org>
44877
44878         New module 'memcmp2'.
44879         * lib/memcmp2.h: New file.
44880         * lib/memcmp2.c: New file.
44881         * modules/memcmp2: New file.
44882
44883 2009-03-07  Bruno Haible  <bruno@clisp.org>
44884
44885         Tests for module 'uninorm/decomposing-form'.
44886         * modules/uninorm/decomposing-form-tests: New file.
44887         * tests/uninorm/test-decomposing-form.c: New file.
44888
44889         New module 'uninorm/decomposing-form'.
44890         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
44891         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
44892         Add 'decomposing_variant' field.
44893         * lib/uninorm/decomposing-form.c: New file.
44894         * lib/uninorm/nfc.c (uninorm_nfc): Update.
44895         * lib/uninorm/nfd.c (uninorm_nfd): Update.
44896         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
44897         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
44898         * modules/uninorm/decomposing-form: New file.
44899         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
44900         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
44901
44902 2009-03-07  Bruno Haible  <bruno@clisp.org>
44903
44904         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
44905         strings.
44906
44907 2009-03-06  Bruno Haible  <bruno@clisp.org>
44908
44909         Tests for module 'uninorm/u32-normcmp'.
44910         * tests/uninorm/test-u32-normcmp.c: New file.
44911         * modules/uninorm/u32-normcmp-tests: New file.
44912
44913         Tests for module 'uninorm/u16-normcmp'.
44914         * tests/uninorm/test-u16-normcmp.c: New file.
44915         * modules/uninorm/u16-normcmp-tests: New file.
44916
44917         Tests for module 'uninorm/u8-normcmp'.
44918         * tests/uninorm/test-u8-normcmp.c: New file.
44919         * modules/uninorm/u8-normcmp-tests: New file.
44920
44921         New module 'uninorm/u32-normcmp'.
44922         * lib/uninorm/u32-normcmp.c: New file.
44923         * modules/uninorm/u32-normcmp: New file.
44924
44925         New module 'uninorm/u16-normcmp'.
44926         * lib/uninorm/u16-normcmp.c: New file.
44927         * modules/uninorm/u16-normcmp: New file.
44928
44929         New module 'uninorm/u8-normcmp'.
44930         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
44931         declarations.
44932         * lib/uninorm/u8-normcmp.c: New file.
44933         * lib/uninorm/u-normcmp.h: New file.
44934         * modules/uninorm/u8-normcmp: New file.
44935
44936 2009-03-06  Bruno Haible  <bruno@clisp.org>
44937
44938         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
44939         Reported by Eric Blake.
44940
44941 2009-03-06  Eric Blake  <ebb9@byu.net>
44942             Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
44945         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
44946         condition.
44947         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44948         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
44949         condition.
44950         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44951
44952 2009-03-06  Eric Blake  <ebb9@byu.net>
44953
44954         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
44955         to avoid compiler warnings.
44956         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
44957
44958 2009-03-05  Bruno Haible  <bruno@clisp.org>
44959
44960         * tests/test-ftell.c (main): Disable test beyond end of file on
44961         FreeMiNT.
44962         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44963
44964 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
44965
44966         * lib/filevercmp.c: Move hidden files up in ordering.
44967         * tests/test-filevercmp.c: Add tests for hidden files.
44968
44969 2009-03-04  Bruno Haible  <bruno@clisp.org>
44970
44971         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
44972         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
44973         AM_CFLAGS.
44974         Reported by Simon Josefsson.
44975
44976 2009-03-03  Bruno Haible  <bruno@clisp.org>
44977
44978         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
44979         Reported by Simon Josefsson.
44980
44981         * doc/ld-version-script.texi: Update node reference.
44982
44983 2009-03-03  Bruno Haible  <bruno@clisp.org>
44984
44985         * modules/visibility (License): Change to 'unlimited'.
44986         Suggested by Simon Josefsson.
44987
44988 2009-03-03  Jim Meyering  <meyering@redhat.com>
44989
44990         unlinkdir: cannot_unlink_dir may modify process state
44991         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
44992         it's neither thread-safe nor appropriate for use in a library.
44993
44994 2009-03-03  Eric Blake  <ebb9@byu.net>
44995
44996         test-closein: silence test under Darwin
44997         * tests/test-closein.sh: Ignore stderr from cat, since we don't
44998         care if it dies from EPIPE or EBADF.
44999
45000 2009-03-03  Bruno Haible  <bruno@clisp.org>
45001
45002         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45003         earlier.
45004         * doc/visibility.texi: Fix @node and @section.
45005
45006 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45007
45008         * doc/gnulib.texi: Link to sections for ld version script and
45009         visibility.
45010         * doc/visibility.texi: Add @node and @section.
45011         * modules/ld-version-script: New module.
45012         * m4/ld-version-script.m4: New file.
45013         * doc/ld-version-script.texi: New file.
45014
45015 2009-03-02  David Lutterkort  <lutter@redhat.com>
45016
45017         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45019
45020 2009-03-02  Bruno Haible  <bruno@clisp.org>
45021
45022         * doc/visibility.texi: Mention libtool's -export-symbols option.
45023
45024 2009-03-02  Jim Meyering  <meyering@redhat.com>
45025
45026         announce-gen: new option: --no-print-checksums
45027         * build-aux/announce-gen (usage): Describe it.
45028         (print_checksums): Print a newline here, not in the [*] footnote.
45029         (main): Honor it.
45030
45031 2009-03-01  Bruno Haible  <bruno@clisp.org>
45032
45033         Use socklen_t in the native Windows replacements prototypes.
45034         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45035         instead of 'int'.
45036         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45037         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45038         * modules/getsockopt (Depends-on): Add socklen.
45039         * modules/setsockopt (Depends-on): Add socklen.
45040
45041 2009-03-01  Bruno Haible  <bruno@clisp.org>
45042
45043         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45044         least 4.2.
45045
45046 2009-03-01  Eric Blake  <ebb9@byu.net>
45047             Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45050         error messages.
45051         * lib/wait-process.c (wait_subprocess): Omit error message about
45052         deadly signal sent to the child of termsigp != NULL.
45053
45054 2009-03-01  Eric Blake  <ebb9@byu.net>
45055
45056         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45057
45058 2009-03-01  Bruno Haible  <bruno@clisp.org>
45059
45060         Avoid a gcc warning.
45061         * tests/test-sched.c (b): Make global.
45062         Reported by Eric Blake.
45063
45064 2009-01-19  Martin Lambers  <marlam@marlam.de>
45065
45066         Provide POSIX semantics for socket timeout options on W32.
45067         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45068         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45069         * modules/setsockopt: Depend on sys_time module for struct timeval.
45070         * modules/getsockopt: Depend on sys_time module for struct timeval.
45071
45072 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45073
45074         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45075         __USE_GNU, for consistency with netdb.in.h.
45076         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45077
45078 2009-03-01  Bruno Haible  <bruno@clisp.org>
45079
45080         More support for FreeMiNT.
45081         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45082         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45083
45084 2009-03-01  Bruno Haible  <bruno@clisp.org>
45085
45086         More support for FreeMiNT.
45087         * lib/fpurge.c (fpurge): Correct last commit.
45088         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45089
45090 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45091
45092         Fix unportable awk script in vc-list-files.
45093         * build-aux/vc-list-files: In the replacement awk script, use
45094         substr with a second argument of 1, not zero.
45095         Report by Simon Josefsson.
45096
45097 2009-02-28  Bruno Haible  <bruno@clisp.org>
45098
45099         More support for FreeMiNT.
45100         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45101         to FreeMiNT today.
45102         * lib/fwriting.c (fwriting): Likewise.
45103         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45104
45105 2009-02-28  Bruno Haible  <bruno@clisp.org>
45106
45107         * tests/test-freadseek.c (main): Disable test beyond end of file on
45108         FreeMiNT.
45109         * tests/test-ftello.c (main): Likewise.
45110         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45111
45112 2009-02-28  Bruno Haible  <bruno@clisp.org>
45113
45114         Add tentative support for FreeMiNT.
45115         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45116         * lib/fpurge.c (fpurge): Likewise.
45117         * lib/freadable.c (freadable): Likewise.
45118         * lib/freading.c (freading): Likewise.
45119         * lib/freadptr.c (freadptr): Likewise.
45120         * lib/freadseek.c (freadptrinc): Likewise.
45121         * lib/fseeko.c (rpl_fseeko): Likewise.
45122         * lib/fseterr.c (fseterr): Likewise.
45123         * lib/fwritable.c (fwritable): Likewise.
45124         * lib/fwriting.c (fwriting): Likewise.
45125         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45126         Hourihane.
45127         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45128
45129 2009-02-28  Bruno Haible  <bruno@clisp.org>
45130
45131         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45132         SIGCHLD.
45133         Reported by Jim Meyering.
45134
45135 2009-02-28  Bruno Haible  <bruno@clisp.org>
45136
45137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45138         Mention the results of these tests on various platforms.
45139         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45140         order.
45141         * doc/posix-functions/printf.texi: Likewise.
45142         * doc/posix-functions/snprintf.texi: Likewise.
45143         * doc/posix-functions/sprintf.texi: Likewise.
45144         * doc/posix-functions/vfprintf.texi: Likewise.
45145         * doc/posix-functions/vprintf.texi: Likewise.
45146         * doc/posix-functions/vsnprintf.texi: Likewise.
45147         * doc/posix-functions/vsprintf.texi: Likewise.
45148         * doc/glibc-functions/obstack_printf.texi: Likewise.
45149         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45150
45151 2009-02-28  Bruno Haible  <bruno@clisp.org>
45152
45153         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45154         Reported by Loïc Minier <lool@dooz.org>.
45155
45156 2009-02-27  Bruno Haible  <bruno@clisp.org>
45157
45158         * gnulib-tool (func_import): Make the sed expression used to create the
45159         sed script for updating the .gitignore file POSIX compliant.
45160         Reported by Eric Blake.
45161
45162 2009-02-27  Bruno Haible  <bruno@clisp.org>
45163
45164         * gnulib-tool (sed): Don't alias as "sed --posix".
45165         Reported by Eric Blake.
45166
45167 2009-02-27  Bruno Haible  <bruno@clisp.org>
45168
45169         Avoid test link errors.
45170         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45171         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45172         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45173         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45175
45176 2009-02-27  Bruno Haible  <bruno@clisp.org>
45177
45178         Avoid spurious "(cached)" in configure output.
45179         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45180         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45181         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45182         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45183         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45184         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45185         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45186         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45187         Reported by Eric Blake.
45188
45189 2009-02-27  Eric Blake  <ebb9@byu.net>
45190
45191         printf: fix regression in previous patch
45192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45193
45194 2009-02-27  Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45197         value.
45198         * lib/stdint.in.h: Likewise.
45199         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45200
45201 2009-02-27  Eric Blake  <ebb9@byu.net>
45202
45203         doc: mention more functions added in cygwin 1.7.0
45204         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45205         addition.
45206         * doc/posix-functions/open_wmemstream.texi: Likewise.
45207         * doc/posix-functions/wcsnlen.texi: Likewise.
45208         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45209         * doc/posix-functions/wcstod.texi: Likewise.
45210         * doc/posix-functions/wcstof.texi: Likewise.
45211         * doc/posix-functions/wcstoimax.texi: Likewise.
45212         * doc/posix-functions/wcstok.texi: Likewise.
45213         * doc/posix-functions/wcstoumax.texi: Likewise.
45214
45215         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45216         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45217         * doc/posix-functions/fprintf.texi: Update.
45218         * doc/posix-functions/printf.texi: Update.
45219         * doc/posix-functions/snprintf.texi: Update.
45220         * doc/posix-functions/sprintf.texi: Update.
45221         * doc/posix-functions/vfprintf.texi: Update.
45222         * doc/posix-functions/vprintf.texi: Update.
45223         * doc/posix-functions/vsnprintf.texi: Update.
45224         * doc/posix-functions/vsprintf.texi: Update.
45225         * doc/glibc-functions/obstack_printf.texi: Update.
45226         * doc/glibc-functions/obstack_vprintf.texi: Update.
45227
45228 2009-02-26  Eric Blake  <ebb9@byu.net>
45229
45230         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45231         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45232         compilation bug by using runtime conversion.
45233         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45234         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45235         * modules/ceill-tests (Files): Use nan.h.
45236         * modules/floorl-tests (Files): Likewise.
45237         * modules/frexpl-tests (Files): Likewise.
45238         * modules/isnanl-tests (Files): Likewise.
45239         * modules/ldexpl-tests (Files): Likewise.
45240         * modules/roundl-tests (Files): Likewise.
45241         * modules/truncl-tests (Files): Likewise.
45242         * tests/test-ceill.c (main): Use a working NaN.
45243         * tests/test-floorl.c (main): Likewise.
45244         * tests/test-frexpl.c (main): Likewise.
45245         * tests/test-isnan.c (test_long_double): Likewise.
45246         * tests/test-isnanl.h (main): Likewise.
45247         * tests/test-ldexpl.h (main): Likewise.
45248         * tests/test-roundl.h (main): Likewise.
45249         * tests/test-truncl.h (main): Likewise.
45250         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45251
45252 2009-02-26  Eric Blake  <ebb9@byu.net>
45253             Bruno Haible  <bruno@clisp.org>
45254
45255         Work around a *printf bug with %ls on Solaris.
45256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45257         precision is specified, sprintf stops converting the wide string
45258         argument when the number of bytes that have been produced by this
45259         conversion equals or exceeds the precision.
45260         * doc/posix-functions/fprintf.texi: Update.
45261         * doc/posix-functions/printf.texi: Update.
45262         * doc/posix-functions/snprintf.texi: Update.
45263         * doc/posix-functions/sprintf.texi: Update.
45264         * doc/posix-functions/vfprintf.texi: Update.
45265         * doc/posix-functions/vprintf.texi: Update.
45266         * doc/posix-functions/vsnprintf.texi: Update.
45267         * doc/posix-functions/vsprintf.texi: Update.
45268         * doc/glibc-functions/obstack_printf.texi: Update.
45269         * doc/glibc-functions/obstack_vprintf.texi: Update.
45270
45271 2009-02-26  Eric Blake  <ebb9@byu.net>
45272
45273         stdlib: favor compiler check of random.h
45274         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45275         to avoid an ObjC random.h installed by Swarm.
45276
45277 2009-02-26  Bruno Haible  <bruno@clisp.org>
45278
45279         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45280         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45281         Reported by Gary V. Vaughan <gary@gnu.org>.
45282
45283 2009-02-26  Bruno Haible  <bruno@clisp.org>
45284
45285         Fix *printf behaviour regarding the %ls directive.
45286         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45287         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45288         NEED_PRINTF_DIRECTIVE_LS.
45289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45290         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45292         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45293         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45294         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45295         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45300         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45304         * doc/posix-functions/fprintf.texi: Update.
45305         * doc/posix-functions/printf.texi: Update.
45306         * doc/posix-functions/snprintf.texi: Update.
45307         * doc/posix-functions/sprintf.texi: Update.
45308         * doc/posix-functions/vfprintf.texi: Update.
45309         * doc/posix-functions/vprintf.texi: Update.
45310         * doc/posix-functions/vsnprintf.texi: Update.
45311         * doc/posix-functions/vsprintf.texi: Update.
45312         * doc/glibc-functions/obstack_printf.texi: Update.
45313         * doc/glibc-functions/obstack_vprintf.texi: Update.
45314         Reported by Eric Blake.
45315
45316 2009-02-25  Bruno Haible  <bruno@clisp.org>
45317
45318         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45319         with known value.
45320         Reported by Gary V. Vaughan <gary@gnu.org>.
45321
45322 2009-02-25  Bruno Haible  <bruno@clisp.org>
45323
45324         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45325         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45326         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45327         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45328         Reported by Gary V. Vaughan <gary@gnu.org>.
45329
45330 2009-02-25  Bruno Haible  <bruno@clisp.org>
45331
45332         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45333         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45334         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45335         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45336         Reported by Gary V. Vaughan <gary@gnu.org>.
45337
45338 2009-02-25  Eric Blake  <ebb9@byu.net>
45339
45340         tests: skip fseek/ftell tests if ungetc is broken
45341         * m4/ungetc.m4: New file.
45342         * modules/fseek-tests: Split test, so ungetc dependency is
45343         separate from rest of test.
45344         * modules/fseeko-tests: Likewise.
45345         * modules/ftell-tests: Likewise.
45346         * modules/ftello-tests: Likewise.
45347         * tests/test-fseek.c (main): Isolate ungetc dependency.
45348         * tests/test-fseeko.c (main): Likewise.
45349         * tests/test-ftell.c (main): Likewise.
45350         * tests/test-ftello.c (main): Likewise.
45351         * tests/test-fseek2.sh: New file.
45352         * tests/test-fseeko2.sh: Likewise.
45353         * tests/test-ftell2.sh: Likewise.
45354         * tests/test-ftello2.sh: Likewise.
45355
45356 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45357
45358         test-getaddrinfo: fix usage of skip return code 77
45359         * tests/test-gettaddrinfo.c: Return skip code 77 only
45360         for first occurance of skip (4x77 is not 77)
45361
45362 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45363
45364         strtod: avoid C99 decl-after-statement
45365         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45366
45367 2009-02-24  Eric Blake  <ebb9@byu.net>
45368
45369         strtod: detect HP-UX 11.31 bug
45370         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45371         Reported by Gary V. Vaughan.
45372
45373 2009-02-23  Bruno Haible  <bruno@clisp.org>
45374
45375         Fix invalid read past end of memory block.
45376         * lib/vasnprintf.c (DCHAR_SET): Define.
45377         (local_wcslen): Define only when needed.
45378         (local_strnlen, local_wcsnlen): New functions.
45379         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45380         directives that involve a conversion ourselves.
45381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45382         wcsnlen, mbrtowc, wcrtomb.
45383         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45384         * tests/test-vasprintf-posix.c (test_function): Likewise.
45385         * tests/test-snprintf-posix.h (test_function): Likewise.
45386         * tests/test-sprintf-posix.h (test_function): Likewise.
45387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45388
45389 2009-02-22  Bruno Haible  <bruno@clisp.org>
45390
45391         Implement new clarified decomposition of Hangul syllables.
45392         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45393         of type LTV, return only a pairwise decomposition.
45394         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45395         Likewise.
45396         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45397         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45398         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45399
45400 2009-02-22  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45403         zero-length results and shrink excess allocated memory.
45404         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45405         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45406         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45407         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45408         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45409         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45410         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45411         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45412         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45413         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45414         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45415         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45416
45417 2009-02-21  Bruno Haible  <bruno@clisp.org>
45418
45419         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45420         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45421         spaces after a period. Put a space between a macro name and its
45422         argument list. Trivial rewordings.
45423         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45424         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45425         (main): Return 0 explicitly.
45426
45427 2009-02-21  Bruno Haible  <bruno@clisp.org>
45428
45429         Tests for module 'uninorm/filter'.
45430         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45431         * modules/uninorm/filter-tests: New file.
45432
45433         New module 'uninorm/filter'.
45434         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45435         uninorm_filter_flush, uninorm_filter_free): New declarations.
45436         * lib/uninorm/uninorm-filter.c: New file.
45437         * modules/uninorm/filter: New file.
45438
45439 2009-02-21  Bruno Haible  <bruno@clisp.org>
45440
45441         Tests for module 'uninorm/nfkc'.
45442         * tests/uninorm/test-nfkc.c: New file.
45443         * tests/uninorm/test-u8-nfkc.c: New file.
45444         * tests/uninorm/test-u16-nfkc.c: New file.
45445         * tests/uninorm/test-u32-nfkc.c: New file.
45446         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45447         * tests/uninorm/test-u32-nfkc-big.c: New file.
45448         * modules/uninorm/nfkc-tests: New file.
45449
45450         New module 'uninorm/nfkc'.
45451         * lib/uninorm/nfkc.c: New file.
45452         * modules/uninorm/nfkc: New file.
45453
45454         Tests for module 'uninorm/nfkd'.
45455         * tests/uninorm/test-nfkd.c: New file.
45456         * tests/uninorm/test-u8-nfkd.c: New file.
45457         * tests/uninorm/test-u16-nfkd.c: New file.
45458         * tests/uninorm/test-u32-nfkd.c: New file.
45459         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45460         * tests/uninorm/test-u32-nfkd-big.c: New file.
45461         * modules/uninorm/nfkd-tests: New file.
45462
45463         New module 'uninorm/nfkd'.
45464         * lib/uninorm/nfkd.c: New file.
45465         * modules/uninorm/nfkd: New file.
45466
45467         Tests for module 'uninorm/nfc'.
45468         * tests/uninorm/test-nfc.c: New file.
45469         * tests/uninorm/test-u8-nfc.c: New file.
45470         * tests/uninorm/test-u16-nfc.c: New file.
45471         * tests/uninorm/test-u32-nfc.c: New file.
45472         * tests/uninorm/test-u32-nfc-big.sh: New file.
45473         * tests/uninorm/test-u32-nfc-big.c: New file.
45474         * modules/uninorm/nfc-tests: New file.
45475
45476         New module 'uninorm/nfc'.
45477         * lib/uninorm/nfc.c: New file.
45478         * modules/uninorm/nfc: New file.
45479
45480         Tests for module 'uninorm/nfd'.
45481         * tests/uninorm/test-nfd.c: New file.
45482         * tests/uninorm/test-u8-nfd.c: New file.
45483         * tests/uninorm/test-u16-nfd.c: New file.
45484         * tests/uninorm/test-u32-nfd.c: New file.
45485         * tests/uninorm/test-u32-nfd-big.sh: New file.
45486         * tests/uninorm/test-u32-nfd-big.c: New file.
45487         * tests/uninorm/test-u32-normalize-big.h: New file.
45488         * tests/uninorm/test-u32-normalize-big.c: New file.
45489         * tests/uninorm/NormalizationTest.txt: New file, created from
45490         Unicode 5.1.0 NormalizationTest.txt.
45491         * modules/uninorm/nfd-tests: New file.
45492
45493         New module 'uninorm/nfd'.
45494         * lib/uninorm/nfd.c: New file.
45495         * modules/uninorm/nfd: New file.
45496
45497         New module 'uninorm/u32-normalize'.
45498         * lib/uninorm/u32-normalize.c: New file.
45499         * modules/uninorm/u32-normalize: New file.
45500
45501         New module 'uninorm/u16-normalize'.
45502         * lib/uninorm/u16-normalize.c: New file.
45503         * modules/uninorm/u16-normalize: New file.
45504
45505         New module 'uninorm/u8-normalize'.
45506         * lib/uninorm/u8-normalize.c: New file.
45507         * lib/uninorm/normalize-internal.h: New file.
45508         * lib/uninorm/u-normalize-internal.h: New file.
45509         * modules/uninorm/u8-normalize: New file.
45510
45511         New module 'uninorm/decompose-internal'.
45512         * lib/uninorm/decompose-internal.c: New file.
45513         * modules/uninorm/decompose-internal: New file.
45514
45515         Tests for module 'uninorm/composition'.
45516         * tests/uninorm/test-composition.c: New file.
45517         * modules/uninorm/composition-tests: New file.
45518
45519         New module 'uninorm/composition'.
45520         * lib/uninorm/composition.c: New file.
45521         * lib/uninorm/composition-table.gperf: New file, generated by
45522         gen-uni-tables.
45523         * modules/uninorm/composition: New file.
45524
45525         Tests for module 'uninorm/compat-decomposition'.
45526         * tests/uninorm/test-compat-decomposition.c: New file.
45527         * modules/uninorm/compat-decomposition-tests: New file.
45528
45529         New module 'uninorm/compat-decomposition'.
45530         * lib/uninorm/decompose-internal.h: New file.
45531         * lib/uninorm/compat-decomposition.c: New file.
45532         * modules/uninorm/compat-decomposition: New file.
45533
45534         Tests for module 'uninorm/canonical-decomposition'.
45535         * tests/uninorm/test-canonical-decomposition.c: New file.
45536         * modules/uninorm/canonical-decomposition-tests: New file.
45537
45538         New module 'uninorm/canonical-decomposition'.
45539         * lib/uninorm/canonical-decomposition.c: New file.
45540         * modules/uninorm/canonical-decomposition: New file.
45541
45542         Tests for module 'uninorm/decomposition'.
45543         * tests/uninorm/test-decomposition.c: New file.
45544         * modules/uninorm/decomposition-tests: New file.
45545
45546         New module 'uninorm/decomposition'.
45547         * lib/uninorm/decomposition.c: New file.
45548         * modules/uninorm/decomposition: New file.
45549
45550         New module 'uninorm/decomposition-table'.
45551         * lib/uninorm/decomposition-table.h: New file.
45552         * lib/uninorm/decomposition-table.c: New file.
45553         * lib/uninorm/decomposition-table1.h: New file, generated by
45554         gen-uni-tables.
45555         * lib/uninorm/decomposition-table2.h: New file, generated by
45556         gen-uni-tables.
45557         * modules/uninorm/decomposition-table: New file.
45558
45559         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45560         (UC_DECOMP_*): New enumeration items.
45561         (get_decomposition): New function.
45562         (struct decomp_table): New type.
45563         (output_decomposition, output_decomposition_tables): New functions.
45564         (unicode_composition_exclusions): New variable.
45565         (fill_composition_exclusions, debug_output_composition_tables): New
45566         functions.
45567         (main): Accept one more argument. Invoke fill_composition_exclusions.
45568         Output decomposition and composition tables.
45569
45570         New module 'uninorm/base'.
45571         * lib/uninorm.h: New file.
45572         * lib/unictype.h: Update comment.
45573         * modules/uninorm/base: New file.
45574
45575 2009-02-21  David Lutterkort  <lutter@redhat.com>
45576
45577         Tests for module 'safe-alloc'.
45578         * tests/test-safe-alloc.c: New file.
45579         * modules/safe-alloc-tests: New file.
45580
45581         New module 'safe-alloc'.
45582         * lib/safe-alloc.h: New file.
45583         * lib/safe-alloc.c: New file.
45584         * m4/safe-alloc.m4: New file.
45585         * modules/safe-alloc: New file.
45586         * doc/safe-alloc.texi: New file.
45587         * doc/gnulib.texi: Include it.
45588         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45589         safe-alloc.
45590
45591 2009-02-18  Bruno Haible  <bruno@clisp.org>
45592
45593         Fix link error on non-glibc systems.
45594         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45595         variable.
45596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45597
45598 2009-02-18  Jim Meyering  <meyering@redhat.com>
45599
45600         fts: avoid used-uninitialized error due to recent change
45601         * lib/fts.c (fts_read): Guard uses of the new member,
45602         parent->fts_n_dirs_remaining, since it's not relevant for
45603         the parent of a directory specified on the command-line.
45604
45605 2009-02-17  James Youngman  <jay@gnu.org>
45606             Bruno Haible  <bruno@clisp.org>
45607
45608         * m4/include_next.m4: Reformulate comment.
45609
45610 2009-02-16  Jim Meyering  <meyering@redhat.com>
45611
45612         fts: add #if guards so that the fts_lgpl module still builds
45613         * lib/fts.c: Guard just-added hash-table-using parts with
45614         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45615         Reported by Simon Josefsson.
45616
45617 2009-02-15  Bruno Haible  <bruno@clisp.org>
45618
45619         * modules/array-mergesort-tests: New file.
45620         * tests/test-array-mergesort.c: New file.
45621
45622         New module 'array-mergesort'.
45623         * modules/array-mergesort: New file.
45624         * lib/array-mergesort.h: New file.
45625
45626 2009-02-15  Bruno Haible  <bruno@clisp.org>
45627
45628         Fix 2009-02-07 commit.
45629         * lib/gen-uni-tables.c (output_predicate, output_category,
45630         output_combclass, output_bidi_category, output_decimal_digit,
45631         output_digit, output_numeric, output_mirror, output_scripts,
45632         output_ident_category, output_simple_mapping): Fix format directives.
45633         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45634
45635 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45636
45637         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45638         fixes are available from IBM.
45639
45640 2009-02-13  Jim Meyering  <meyering@redhat.com>
45641
45642         fts: arrange not to stat non-directories in more cases
45643         This makes GNU find (when it doesn't need to stat each file)
45644         *much* more efficient at traversing reiserfs file systems.
45645         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45646         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45647         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45648         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45649         (leaf_optimization_applies): New function.
45650         (LCO_hash, LCO_compare): New helper functions.
45651         (link_count_optimize_ok): New function.
45652         (fts_stat): Initialize new member (if dir).
45653         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45654         we've just stat'ed a directory.  Skip the stat call when possible.
45655         ---
45656         Note this AFS-related exchange:
45657         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45658         and note find's pioctl call in find/fstype.c.
45659         But that is necessary only if you want to enable the
45660         optimization for AFS, and for now, I don't.
45661
45662         fts: move a function definition "up" (no semantic change)
45663         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45664         "up" to precede upcoming use of a related function.
45665
45666 2009-02-11  Jim Meyering  <meyering@redhat.com>
45667
45668         fts: correct internal computation of nlinks (optimization-related)
45669         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45670         whether the current entry is a directory, so don't test it.
45671
45672 2009-02-10  Bruno Haible  <bruno@clisp.org>
45673
45674         Tests for module 'uniwbrk/ulc-wordbreaks'.
45675         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45676         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45677         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45678
45679         Tests for module 'uniwbrk/u32-wordbreaks'.
45680         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45681         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45682
45683         Tests for module 'uniwbrk/u16-wordbreaks'.
45684         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45685         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45686
45687         Tests for module 'uniwbrk/u8-wordbreaks'.
45688         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45689         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45690
45691 2009-02-10  Bruno Haible  <bruno@clisp.org>
45692
45693         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45694         property.
45695         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45696         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45697         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45698
45699 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45700
45701         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45702         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45703
45704 2009-02-10  Bruno Haible  <bruno@clisp.org>
45705
45706         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45707         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45708         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45709         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45710         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45711         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45712
45713 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45714
45715         * lib/sockets.h (gl_fd_to_handle): New function.
45716
45717         * tests/test-sockets.c: Call gl_fd_to_handle.
45718
45719 2009-02-09  Bruno Haible  <bruno@clisp.org>
45720
45721         * doc/havelib.texi: Document the conventions on bi-arch systems.
45722
45723 2009-02-08  Bruno Haible  <bruno@clisp.org>
45724
45725         Document the AC_LIB_LINKFLAGS macro.
45726         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45727         * doc/gnulib.texi: Include it.
45728
45729 2009-02-08  Bruno Haible  <bruno@clisp.org>
45730
45731         Fix wrong order of sections, compared to TOC.
45732         * doc/gnulib.texi: Include relocatable-maint.texi after the
45733         "Regular expressions" node, not before.
45734
45735 2009-02-08  Bruno Haible  <bruno@clisp.org>
45736
45737         Tests for module 'unicase/totitle'.
45738         * modules/unicase/totitle-tests: New file.
45739
45740         Tests for module 'unicase/tolower'.
45741         * modules/unicase/tolower-tests: New file.
45742
45743         Tests for module 'unicase/toupper'.
45744         * modules/unicase/toupper-tests: New file.
45745         * tests/unicase/test-mapping-part1.h: New file.
45746         * tests/unicase/test-mapping-part2.h: New file.
45747
45748         New module 'unicase/totitle'.
45749         * modules/unicase/totitle: New file.
45750         * lib/unicase/totitle.c: New file.
45751
45752         New module 'unicase/tolower'.
45753         * modules/unicase/tolower: New file.
45754         * lib/unicase/tolower.c: New file.
45755
45756         New module 'unicase/toupper'.
45757         * modules/unicase/toupper: New file.
45758         * lib/unicase/toupper.c: New file.
45759         * lib/unicase/simple-mapping.h: New file.
45760
45761         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45762         (mapping_table): New structure.
45763         (output_simple_mapping): New function.
45764         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45765         * modules/gen-uni-tables (Description): Update.
45766         * lib/unicase/toupper.h: New file, automatically generated by
45767         gen-uni-tables.
45768         * lib/unicase/tolower.h: New file, automatically generated by
45769         gen-uni-tables.
45770         * lib/unicase/totitle.h: New file, automatically generated by
45771         gen-uni-tables.
45772         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45773         gen-uni-tables.
45774         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45775         gen-uni-tables.
45776         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45777         gen-uni-tables.
45778
45779         New module 'unicase/base'.
45780         * modules/unicase/base: New file.
45781         * lib/unicase.h: New file.
45782
45783 2009-02-08  Bruno Haible  <bruno@clisp.org>
45784
45785         New module 'uniwbrk/ulc-wordbreaks'.
45786         * modules/uniwbrk/ulc-wordbreaks: New file.
45787         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45788
45789         New module 'uniwbrk/u32-wordbreaks'.
45790         * modules/uniwbrk/u32-wordbreaks: New file.
45791         * lib/uniwbrk/u32-wordbreaks.c: New file.
45792
45793         New module 'uniwbrk/u16-wordbreaks'.
45794         * modules/uniwbrk/u16-wordbreaks: New file.
45795         * lib/uniwbrk/u16-wordbreaks.c: New file.
45796
45797         New module 'uniwbrk/u8-wordbreaks'.
45798         * modules/uniwbrk/u8-wordbreaks: New file.
45799         * lib/uniwbrk/u8-wordbreaks.c: New file.
45800         * lib/uniwbrk/u-wordbreaks.h: New file.
45801
45802         New module 'uniwbrk/table'.
45803         * modules/uniwbrk/table: New file.
45804         * lib/uniwbrk/wbrktable.h: New file.
45805         * lib/uniwbrk/wbrktable.c: New file.
45806
45807         New module 'uniwbrk/wordbreak-property'.
45808         * modules/uniwbrk/wordbreak-property: New file.
45809         * lib/uniwbrk/wordbreak-property.c: New file.
45810
45811         * lib/gen-uni-tables.c (WBP_*): New enum items.
45812         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45813         (unicode_org_wbp): New variable.
45814         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45815         New functions.
45816         (wbp_table): New structure.
45817         (output_wbp, output_wbrk_tables): New functions.
45818         (main): Accept additional argument. Invoke fill_org_wbp,
45819         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45820         output_wbrk_tables.
45821         * modules/gen-uni-tables (Description): Update.
45822         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45823         gen-uni-tables.
45824
45825         New module 'uniwbrk/base'.
45826         * modules/uniwbrk/base: New file.
45827         * lib/uniwbrk.h: New file.
45828
45829 2009-02-08  Bruno Haible  <bruno@clisp.org>
45830
45831         Update to Unicode 5.1.0.
45832         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45833         U+2185..U+2188.
45834         (is_property_default_ignorable_code_point): Don't include characters
45835         of category Cc or Cs and not-a-characters.
45836         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45837         U+0D79, U+109E, U+109F, U+A60C.
45838         * lib/unictype/bidi_of.h: Regenerated.
45839         * lib/unictype/blocks.h: Regenerated.
45840         * lib/unictype/categ_C.h: Regenerated.
45841         * lib/unictype/categ_Cf.h: Regenerated.
45842         * lib/unictype/categ_Cn.h: Regenerated.
45843         * lib/unictype/categ_L.h: Regenerated.
45844         * lib/unictype/categ_Ll.h: Regenerated.
45845         * lib/unictype/categ_Lm.h: Regenerated.
45846         * lib/unictype/categ_Lo.h: Regenerated.
45847         * lib/unictype/categ_Lu.h: Regenerated.
45848         * lib/unictype/categ_M.h: Regenerated.
45849         * lib/unictype/categ_Mc.h: Regenerated.
45850         * lib/unictype/categ_Me.h: Regenerated.
45851         * lib/unictype/categ_Mn.h: Regenerated.
45852         * lib/unictype/categ_N.h: Regenerated.
45853         * lib/unictype/categ_Nd.h: Regenerated.
45854         * lib/unictype/categ_Nl.h: Regenerated.
45855         * lib/unictype/categ_No.h: Regenerated.
45856         * lib/unictype/categ_P.h: Regenerated.
45857         * lib/unictype/categ_Pd.h: Regenerated.
45858         * lib/unictype/categ_Pe.h: Regenerated.
45859         * lib/unictype/categ_Pf.h: Regenerated.
45860         * lib/unictype/categ_Pi.h: Regenerated.
45861         * lib/unictype/categ_Po.h: Regenerated.
45862         * lib/unictype/categ_Ps.h: Regenerated.
45863         * lib/unictype/categ_S.h: Regenerated.
45864         * lib/unictype/categ_Sk.h: Regenerated.
45865         * lib/unictype/categ_Sm.h: Regenerated.
45866         * lib/unictype/categ_So.h: Regenerated.
45867         * lib/unictype/categ_of.h: Regenerated.
45868         * lib/unictype/combining.h: Regenerated.
45869         * lib/unictype/ctype_alnum.h: Regenerated.
45870         * lib/unictype/ctype_alpha.h: Regenerated.
45871         * lib/unictype/ctype_graph.h: Regenerated.
45872         * lib/unictype/ctype_lower.h: Regenerated.
45873         * lib/unictype/ctype_print.h: Regenerated.
45874         * lib/unictype/ctype_punct.h: Regenerated.
45875         * lib/unictype/ctype_upper.h: Regenerated.
45876         * lib/unictype/decdigit.h: Regenerated.
45877         * lib/unictype/digit.h: Regenerated.
45878         * lib/unictype/mirror.h: Regenerated.
45879         * lib/unictype/numeric.h: Regenerated.
45880         * lib/unictype/pr_alphabetic.h: Regenerated.
45881         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
45882         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
45883         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
45884         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
45885         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
45886         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
45887         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
45888         * lib/unictype/pr_combining.h: Regenerated.
45889         * lib/unictype/pr_dash.h: Regenerated.
45890         * lib/unictype/pr_decimal_digit.h: Regenerated.
45891         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
45892         * lib/unictype/pr_deprecated.h: Regenerated.
45893         * lib/unictype/pr_diacritic.h: Regenerated.
45894         * lib/unictype/pr_extender.h: Regenerated.
45895         * lib/unictype/pr_format_control.h: Regenerated.
45896         * lib/unictype/pr_grapheme_base.h: Regenerated.
45897         * lib/unictype/pr_grapheme_extend.h: Regenerated.
45898         * lib/unictype/pr_grapheme_link.h: Regenerated.
45899         * lib/unictype/pr_id_continue.h: Regenerated.
45900         * lib/unictype/pr_id_start.h: Regenerated.
45901         * lib/unictype/pr_ideographic.h: Regenerated.
45902         * lib/unictype/pr_ignorable_control.h: Regenerated.
45903         * lib/unictype/pr_lowercase.h: Regenerated.
45904         * lib/unictype/pr_math.h: Regenerated.
45905         * lib/unictype/pr_numeric.h: Regenerated.
45906         * lib/unictype/pr_other_alphabetic.h: Regenerated.
45907         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
45908         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
45909         * lib/unictype/pr_other_id_continue.h: Regenerated.
45910         * lib/unictype/pr_other_lowercase.h: Regenerated.
45911         * lib/unictype/pr_other_math.h: Regenerated.
45912         * lib/unictype/pr_punctuation.h: Regenerated.
45913         * lib/unictype/pr_sentence_terminal.h: Regenerated.
45914         * lib/unictype/pr_soft_dotted.h: Regenerated.
45915         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
45916         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
45917         * lib/unictype/pr_unified_ideograph.h: Regenerated.
45918         * lib/unictype/pr_uppercase.h: Regenerated.
45919         * lib/unictype/pr_xid_continue.h: Regenerated.
45920         * lib/unictype/pr_xid_start.h: Regenerated.
45921         * lib/unictype/pr_zero_width.h: Regenerated.
45922         * lib/unictype/scripts.h: Regenerated.
45923         * lib/unictype/scripts_byname.gperf: Regenerated.
45924         * lib/unictype/sy_java_ident.h: Regenerated.
45925         * lib/unilbrk/lbrkprop1.h: Regenerated.
45926         * lib/unilbrk/lbrkprop2.h: Regenerated.
45927         * tests/unictype/test-categ_C.c: Regenerated.
45928         * tests/unictype/test-categ_Cf.c: Regenerated.
45929         * tests/unictype/test-categ_Cn.c: Regenerated.
45930         * tests/unictype/test-categ_L.c: Regenerated.
45931         * tests/unictype/test-categ_Ll.c: Regenerated.
45932         * tests/unictype/test-categ_Lm.c: Regenerated.
45933         * tests/unictype/test-categ_Lo.c: Regenerated.
45934         * tests/unictype/test-categ_Lu.c: Regenerated.
45935         * tests/unictype/test-categ_M.c: Regenerated.
45936         * tests/unictype/test-categ_Mc.c: Regenerated.
45937         * tests/unictype/test-categ_Me.c: Regenerated.
45938         * tests/unictype/test-categ_Mn.c: Regenerated.
45939         * tests/unictype/test-categ_N.c: Regenerated.
45940         * tests/unictype/test-categ_Nd.c: Regenerated.
45941         * tests/unictype/test-categ_Nl.c: Regenerated.
45942         * tests/unictype/test-categ_No.c: Regenerated.
45943         * tests/unictype/test-categ_P.c: Regenerated.
45944         * tests/unictype/test-categ_Pd.c: Regenerated.
45945         * tests/unictype/test-categ_Pe.c: Regenerated.
45946         * tests/unictype/test-categ_Pf.c: Regenerated.
45947         * tests/unictype/test-categ_Pi.c: Regenerated.
45948         * tests/unictype/test-categ_Po.c: Regenerated.
45949         * tests/unictype/test-categ_Ps.c: Regenerated.
45950         * tests/unictype/test-categ_S.c: Regenerated.
45951         * tests/unictype/test-categ_Sk.c: Regenerated.
45952         * tests/unictype/test-categ_Sm.c: Regenerated.
45953         * tests/unictype/test-categ_So.c: Regenerated.
45954         * tests/unictype/test-ctype_alnum.c: Regenerated.
45955         * tests/unictype/test-ctype_alpha.c: Regenerated.
45956         * tests/unictype/test-ctype_graph.c: Regenerated.
45957         * tests/unictype/test-ctype_lower.c: Regenerated.
45958         * tests/unictype/test-ctype_print.c: Regenerated.
45959         * tests/unictype/test-ctype_punct.c: Regenerated.
45960         * tests/unictype/test-ctype_upper.c: Regenerated.
45961         * tests/unictype/test-decdigit.h: Regenerated.
45962         * tests/unictype/test-digit.h: Regenerated.
45963         * tests/unictype/test-numeric.h: Regenerated.
45964         * tests/unictype/test-pr_alphabetic.c: Regenerated.
45965         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
45966         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
45967         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
45968         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
45969         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
45970         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
45971         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
45972         * tests/unictype/test-pr_combining.c: Regenerated.
45973         * tests/unictype/test-pr_dash.c: Regenerated.
45974         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
45975         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
45976         * tests/unictype/test-pr_deprecated.c: Regenerated.
45977         * tests/unictype/test-pr_diacritic.c: Regenerated.
45978         * tests/unictype/test-pr_extender.c: Regenerated.
45979         * tests/unictype/test-pr_format_control.c: Regenerated.
45980         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
45981         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
45982         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
45983         * tests/unictype/test-pr_id_continue.c: Regenerated.
45984         * tests/unictype/test-pr_id_start.c: Regenerated.
45985         * tests/unictype/test-pr_ideographic.c: Regenerated.
45986         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
45987         * tests/unictype/test-pr_lowercase.c: Regenerated.
45988         * tests/unictype/test-pr_math.c: Regenerated.
45989         * tests/unictype/test-pr_numeric.c: Regenerated.
45990         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
45991         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
45992         Regenerated.
45993         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
45994         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
45995         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
45996         * tests/unictype/test-pr_other_math.c: Regenerated.
45997         * tests/unictype/test-pr_punctuation.c: Regenerated.
45998         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
45999         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46000         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46001         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46002         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46003         * tests/unictype/test-pr_uppercase.c: Regenerated.
46004         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46005         * tests/unictype/test-pr_xid_start.c: Regenerated.
46006         * tests/unictype/test-pr_zero_width.c: Regenerated.
46007
46008         Update to Unicode 5.1.0.
46009         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46010         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46011         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46012         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46013         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46014         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46015         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46016         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46017         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46018         (nonspacing_table_ind): Update.
46019         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46020
46021         Update to Unicode 5.1.0.
46022         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46023         code transform.
46024         * lib/uniname/uniname.c (unicode_character_name,
46025         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46026         * lib/uniname/uninames.h: Regenerated.
46027         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46028
46029 2009-02-07  Bruno Haible  <bruno@clisp.org>
46030
46031         Merge gen-ctype and gen-lbrk into a single program.
46032         * lib/gen-uni-tables.c: New file, incorporating
46033         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46034         Add directory prefixes to the names of the generated files.
46035         * lib/unictype/gen-ctype.c: Remove file.
46036         * lib/unilbrk/gen-lbrk.c: Remove file.
46037         * modules/gen-uni-tables: New file.
46038         * modules/unictype/gen-ctype: Remove file.
46039         * modules/unilbrk/gen-lbrk: Remove file.
46040
46041 2009-02-07  Bruno Haible  <bruno@clisp.org>
46042
46043         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46044
46045         New module 'unistr/u32-strcoll'.
46046         * modules/unistr/u32-strcoll: New file.
46047         * lib/unistr/u32-strcoll.c: New file.
46048
46049         New module 'unistr/u16-strcoll'.
46050         * modules/unistr/u16-strcoll: New file.
46051         * lib/unistr/u16-strcoll.c: New file.
46052
46053         New module 'unistr/u8-strcoll'.
46054         * modules/unistr/u8-strcoll: New file.
46055         * lib/unistr/u8-strcoll.c: New file.
46056         * lib/unistr/u-strcoll.h: New file.
46057
46058 2009-02-07  Bruno Haible  <bruno@clisp.org>
46059
46060         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46061         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46062         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46063         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46064         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46065         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46066
46067 2009-02-07  Bruno Haible  <bruno@clisp.org>
46068
46069         Make 64-bit clean.
46070         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46071         output_combclass, output_bidi_category, output_decimal_digit,
46072         output_digit, output_numeric, output_mirror, output_scripts,
46073         output_ident_category): Use proper width specifier in format strings.
46074
46075 2009-02-07  Bruno Haible  <bruno@clisp.org>
46076
46077         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46078         failure behaviour.
46079
46080 2009-02-07  Jim Meyering  <meyering@redhat.com>
46081
46082         regex: avoid compilation failure with upcoming gcc-4.4
46083         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46084         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46085         "... error: integer overflow in preprocessor expression".
46086
46087 2009-02-05  Ben Pfaff  <blp@gnu.org>
46088
46089         Fix link errors on Windows when close module is used.
46090         * modules/close: Add $(LIB_CLOSE) to Link section.
46091         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46092         $(LIB_CLOSE) on Windows.
46093
46094 2009-02-05  Jim Meyering  <meyering@redhat.com>
46095
46096         still avoid unused-parameter warnings, but do it cleanly
46097         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46098         (get_fs_usage): Cast to void instead.
46099         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46100         (dev_from_mount_options, read_file_system_list): Cast to void.
46101         Prompted by Bruno Haible.
46102
46103 2009-02-04  Jim Meyering  <meyering@redhat.com>
46104
46105         fsusage.c: correct copyright year
46106         * lib/fsusage.c: Reflect year in which the change is pushed into
46107
46108         avoid misc. warnings
46109         * lib/fsusage.c (UNUSED_PARAM): Define.
46110         (get_fs_usage): Mark parameter "disk" as unused.
46111         * lib/getugroups.c (getgrent): Use "void" in prototype.
46112         * lib/mountlist.c: Mark unused parameters.
46113         (read_file_system_list): Declare a local with "const".
46114         * lib/nanosleep.c (getnow): Declare static.
46115         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46116
46117         dirfd: set errno upon failure
46118         * lib/dirfd.c: Include <errno.h>.
46119         Set errno to ENOTSUP when returning -1.
46120         * modules/dirfd (Depends-on): Add errno.
46121         Suggested by John Kodis <kodis@comcast.net>.
46122
46123 2009-02-01  Bruno Haible  <bruno@clisp.org>
46124
46125         Don't assume sizeof (long) >= sizeof (void *).
46126         * lib/memcmp.c: Include stdint.h.
46127         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46128         srcp2 to 'const byte *'.
46129         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46130         types to uintptr_t.
46131         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46132         * modules/memcmp (Depends-on): Add stdint.
46133         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46134
46135 2009-01-30  Eric Blake  <ebb9@byu.net>
46136
46137         fix more require-before-expand issues
46138         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46139         expand, AC_PROG_AWK.
46140         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46141
46142 2009-01-28  Eric Blake  <ebb9@byu.net>
46143
46144         version-etc: use consistent URL formatting
46145         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46146         Improve formatting.  Use fputs for string without %.
46147
46148 2009-01-28  Jim Meyering  <meyering@redhat.com>
46149
46150         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46151         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46152         "underquoted definition of NAME" from autoconf-2.59.
46153
46154 2009-01-28  Bruno Haible  <bruno@clisp.org>
46155
46156         * doc/gnulib.texi: Add "Obsolete modules" to index.
46157
46158 2009-01-28  Jim Meyering  <meyering@redhat.com>
46159
46160         useless-if-before-free: recognize more variants
46161         * build-aux/useless-if-before-free: Also recognize e.g.,
46162         if (NULL != p) free (p);
46163
46164 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46165
46166         test-getaddrinfo: skip (don't fail) this test when there's no network
46167         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46168         on the presumption that it means you lack network access.
46169
46170 2009-01-26  Jim Meyering  <meyering@redhat.com>
46171
46172         fflush: avoid warnings on modern systems
46173         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46174         pos and result, into scopes where they're used.
46175
46176 2009-01-26  Eric Blake  <ebb9@byu.net>
46177
46178         Silence warning reintroduced by recent extensions patch.
46179         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46180         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46181         autoconf.
46182
46183         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46184         * m4/00gnulib.m4: New file.
46185         * gnulib-tool (func_get_filelist): Always use it.
46186         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46187         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46188
46189 2009-01-25  Bruno Haible  <bruno@clisp.org>
46190
46191         Make test-quotearg work on MacOS X and AIX.
46192         * tests/test-quotearg.sh: New file.
46193         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46194         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46195         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46196         include <libintl.h>.
46197         (fake_locale): Remove variable.
46198         (gettext, dgettext, dcgettext): Remove functions.
46199         (main): Instead of setting a fake locale, set a real locale. Call
46200         textdomain and bindtextdomain.
46201         * modules/quotearg-tests (Files): Add the new files.
46202         (Depends-on): Add gettext, setenv, unsetenv.
46203         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46204         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46205         Augment TESTS_ENVIRONMENT.
46206
46207 2009-01-25  Bruno Haible  <bruno@clisp.org>
46208
46209         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46210         fr_FR.ISO8859-1 locale on MacOS X.
46211         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46212         ja_JP.eucJP locale on MacOS X.
46213         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46214         zh_CN.GB18030 locale on MacOS X.
46215
46216 2009-01-25  Bruno Haible  <bruno@clisp.org>
46217
46218         Avoid link errors on MacOS X 10.3.
46219         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46220         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46221
46222 2009-01-25  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46225         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46226         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46227         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46228         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46229         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46230         posix_spawnattr_init, posix_spawnattr_setsigmask,
46231         posix_spawnattr_setflags, posix_spawnattr_destroy.
46232
46233         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46234         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46235         * modules/execute (Files): Remove m4/posix_spawn.m4.
46236         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46237         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46238         posix_spawnattr_init, posix_spawnattr_setsigmask,
46239         posix_spawnattr_setflags, posix_spawnattr_destroy.
46240
46241 2009-01-25  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/glthread/threadlib.c: Include <stdlib.h>.
46244
46245 2009-01-25  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/glthread/threadlib.c (dummy): New declaration.
46248
46249 2009-01-25  Bruno Haible  <bruno@clisp.org>
46250
46251         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46252         multibyte characters also for the GB18030 encoding. Don't crash when
46253         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46254
46255 2009-01-25  Bruno Haible  <bruno@clisp.org>
46256
46257         Avoid redefining 'struct random_data' on OSF/1 5.1.
46258         * lib/stdlib.in.h: Include <random.h> if it exists.
46259         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46260         HAVE_RANDOM_H. Include <random.h> when testing whether
46261         'struct random_data' exists.
46262         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46263
46264 2009-01-25  Bruno Haible  <bruno@clisp.org>
46265
46266         Don't install charset.alias on MacOS X >= 10.3.
46267         * lib/localcharset.c (DARWIN7): New macro.
46268         (get_charset_aliases): Hardcode the result for Darwin7.
46269         * modules/localcharset (install-exec-local): Don't install
46270         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46271
46272 2009-01-25  Bruno Haible  <bruno@clisp.org>
46273
46274         Don't install charset.alias on mingw and Cygwin.
46275         * modules/localcharset (install-exec-local): Don't install
46276         charset.alias on mingw and Cygwin, if the file does not yet exist.
46277         The result for these platforms is hardcoded in localcharset.c.
46278
46279 2009-01-25  Bruno Haible  <bruno@clisp.org>
46280
46281         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46283         before requiring AC_USE_SYSTEM_EXTENSIONS.
46284
46285 2009-01-25  Jim Meyering  <meyering@redhat.com>
46286
46287         c-strtod: avoid warnings
46288         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46289         "assignment discards qualifiers from pointer target type" warnings.
46290
46291 2009-01-24  Bruno Haible  <bruno@clisp.org>
46292
46293         Add support for non-UTF-8 locales on MacOS X.
46294         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46295         canonical encodings. For Darwin 7 and newer, don't map traditional
46296         encodings to UTF-8.
46297         Reported by Vincent Lefevre <vincent@vinc17.org>
46298         at <http://savannah.gnu.org/bugs/?25235>.
46299
46300 2009-01-24  Bruno Haible  <bruno@clisp.org>
46301
46302         * doc/gnulib.texi (Obsolete modules): New section.
46303         Reported by Mike Frysinger <vapier@gentoo.org>.
46304
46305 2009-01-24  Bruno Haible  <bruno@clisp.org>
46306
46307         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46308         (%.dvi): New rule.
46309
46310 2009-01-24  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46313         Reported by Eric Blake.
46314
46315 2009-01-24  Bruno Haible  <bruno@clisp.org>
46316
46317         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46318         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46319         Reported by Gary V. Vaughan <gary@gnu.org>.
46320
46321 2009-01-24  Bruno Haible  <bruno@clisp.org>
46322
46323         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46324
46325 2009-01-23  Bruno Haible  <bruno@clisp.org>
46326
46327         Make c-strtod, c-strtold usable in libraries.
46328         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46329         (C_STRTOD): Call strdup instead of xstrdup.
46330         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46331         * modules/c-strtold (Depends-on): Likewise.
46332         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46333         * NEWS: Mention the change.
46334         Reported by Michael Gold <mgold@ncf.ca>.
46335
46336 2009-01-23  Jim Meyering  <meyering@redhat.com>
46337
46338         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46339         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46340         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46341
46342 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46343
46344         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46345         GNU CoreUtils.
46346         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46347         * modules/version-etc (Description): Update.
46348
46349 2009-01-22  Bruno Haible  <bruno@clisp.org>
46350
46351         Cache the C locale object.
46352         * lib/c-strtod.c (c_locale_cache): New variable.
46353         (c_locale): New function.
46354         (C_STRTOD): Use it, and don't call freelocale.
46355         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46356         Suggested by Paolo Bonzini.
46357
46358 2009-01-21  Bruno Haible  <bruno@clisp.org>
46359
46360         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46361         conditions other than overflow.
46362
46363 2009-01-21  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/c-strtod.c: Include errno.h.
46366         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46367         value from STRTOD_L and STRTOD.
46368
46369 2009-01-21  Bruno Haible  <bruno@clisp.org>
46370         and Jim Meyering  <meyering@redhat.com>
46371
46372         nanosleep: skip configure test (fail it) for apple universal builds
46373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46374         universal builds, assume that nanosleep does not work.
46375         * modules/nanosleep (Depends-on): Add multiarch.
46376
46377         mktime: skip configure test (fail it) for apple universal builds
46378         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46379         universal builds, assume that mktime does not work.
46380         * modules/mktime (Depends-on): Add multiarch.
46381
46382 2009-01-21  Eric Blake  <ebb9@byu.net>
46383
46384         multiarch: avoid expand-before-require warning
46385         * modules/multiarch (configure.ac): Require, rather than expand,
46386         gl_MULTIARCH.
46387         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46388         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46389         enforce that all clients require it.  Partial reversion of
46390         2008-12-29 patch.
46391
46392         error: avoid expand-before-require warning
46393         * modules/errno (configure.ac): Require, rather than expand,
46394         gl_HEADER_ERRNO_H.
46395         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46396         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46397         enforce that all clients require it.
46398
46399         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46400         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46401         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46402         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46403
46404 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46405
46406         Revert:
46407         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46408
46409         regex: do not depend on obsolete modules.
46410         * modules/regex: Remove memcmp and memmove.
46411
46412 2009-01-20  Bruno Haible  <bruno@clisp.org>
46413
46414         Make the 'link' module link on Windows NT 4.
46415         * lib/link.c (_WIN32_WINNT): Don't define.
46416         (CreateHardLinkFuncType): New type.
46417         (CreateHardLinkFunc, initialized): New variables.
46418         (initialize): New function.
46419         (link): Invoke CreateHardLink indirectly through the function pointer.
46420
46421 2009-01-20  Bruno Haible  <bruno@clisp.org>
46422
46423         Fix compilation failure on mingw.
46424         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46425
46426 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46427
46428         * doc/c-strtod.texi: Mention a couple of restrictions.
46429
46430 2009-01-20  Jim Meyering  <meyering@redhat.com>
46431
46432         gettimeofday: move more declarations out of functions
46433         * lib/gettimeofday.c: Move extern declarations of tzset and
46434         gmtime out of containing functions.  Prompted by Bruno Haible.
46435
46436 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46437
46438         regex: do not depend on obsolete modules.
46439         * modules/regex: Remove memcmp and memmove.
46440
46441 2009-01-19  Bruno Haible  <bruno@clisp.org>
46442
46443         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46444         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46445         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46446         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46447         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46448
46449 2009-01-19  Bruno Haible  <bruno@clisp.org>
46450
46451         * tests/test-link.c: Include <errno.h>.
46452         (main): Exit with code 77 when a hard link cannot be created due to
46453         the file system.
46454         * tests/test-link.sh: Skip test when a hard link cannot be created due
46455         to the file system.
46456         Suggested by Eric Blake.
46457
46458 2009-01-19  Martin Lambers  <marlam@marlam.de>
46459
46460         * modules/link-tests: New file.
46461         * tests/test-link.sh: New file.
46462         * tests/test-link.c: New file.
46463
46464 2009-01-19  Eric Blake  <ebb9@byu.net>
46465
46466         doc: mention another function added in cygwin 1.7.0
46467         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46468         Another new function in cygwin 1.7.
46469
46470 2009-01-19  Bruno Haible  <bruno@clisp.org>
46471
46472         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46473         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46474         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46475         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46476         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46477         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46478         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46479         * m4/md4.m4 (gl_MD4): Likewise.
46480         * m4/md5.m4 (gl_MD5): Likewise.
46481         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46482         * m4/sha1.m4 (gl_SHA1): Likewise.
46483         * m4/sha256.m4 (gl_SHA256): Likewise.
46484         * m4/sha512.m4 (gl_SHA512): Likewise.
46485
46486 2009-01-19  Bruno Haible  <bruno@clisp.org>
46487
46488         * modules/uniname/uniname-tests (Depends-on): Add progname.
46489         * tests/uniname/test-uninames.c: Include progname.h.
46490         (main): Call set_program_name.
46491
46492         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46493         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46494         (main): Call set_program_name.
46495
46496         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46497         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46498         (main): Call set_program_name.
46499
46500         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46501         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46502         (main): Call set_program_name.
46503
46504         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46505         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46506         (main): Call set_program_name.
46507
46508         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46509         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46510         (main): Call set_program_name.
46511
46512         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46513         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46514         (main): Call set_program_name.
46515
46516         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46517         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46518         (main): Call set_program_name.
46519
46520         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46521         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46522         (main): Call set_program_name.
46523
46524 2009-01-19  Eric Blake  <ebb9@byu.net>
46525
46526         test-unistd: test previous patch
46527         * tests/test-unistd.c: Test *_FILENO macros.
46528
46529         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46530         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46531         Guarantee a definition.
46532         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46533         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46534         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46535         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46536         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46537         Likewise.
46538         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46539         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46540         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46541         Likewise.
46542         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46543         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46544         (STDERR_FILENO): Likewise.
46545         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46546         (STDERR_FILENO): Likewise.
46547         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46548         (STDERR_FILENO): Likewise.
46549         Reported by Elbert Pol.
46550
46551 2009-01-19  Eric Blake  <ebb9@byu.net>
46552
46553         doc: mention more functions added in cygwin 1.7.0
46554         * doc/posix-functions/abort.texi (abort): Update wording related
46555         to cygwin.
46556         * doc/posix-functions/daylight.texi (daylight): Likewise.
46557         * doc/posix-functions/optarg.texi (optarg): Likewise.
46558         * doc/posix-functions/optarg.texi (opterr): Likewise.
46559         * doc/posix-functions/optarg.texi (optind): Likewise.
46560         * doc/posix-functions/optarg.texi (optopt): Likewise.
46561         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46562         worked in 1.5.x, and was withdrawn in 1.7.
46563         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46564         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46565         cygwin versions.
46566         * doc/posix-functions/perror.texi (perror): Likewise.
46567         * doc/posix-functions/printf.texi (printf): Likewise.
46568         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46569         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46570         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46571         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46572         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46573         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46574         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46575         Likewise.
46576         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46577         Likewise.
46578         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46579         this function.
46580         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46581         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46582         Likewise.
46583         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46584         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46585         * doc/posix-functions/confstr.texi (confstr): Likewise.
46586         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46587         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46588         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46589         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46590         * doc/posix-functions/fputws.texi (fputws): Likewise.
46591         * doc/posix-functions/fwide.texi (fwide): Likewise.
46592         * doc/posix-functions/getwc.texi (getwc): Likewise.
46593         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46594         * doc/posix-functions/putwc.texi (putwc): Likewise.
46595         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46596         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46597         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46598         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46599         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46600         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46601         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46602         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46603         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46604         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46605         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46606
46607 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46608
46609         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46610         * lib/ioctl.c: Include <sys/ioctl.h>.
46611
46612 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46613
46614         * modules/getdate-tests (Depends-on): Add progname.
46615         * tests/test-getdate.c: Use progname module, to avoid link errors
46616         on non-glibc systems.
46617
46618 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46619
46620         * modules/filenamecat-tests (Depends-on): Add progname.
46621         * modules/fstrcmp-tests (Depends-on): Likewise.
46622
46623         * tests/test-filenamecat.c: Use progname module, to avoid link
46624         errors on non-glibc systems.
46625         * tests/test-fstrcmp.c: Likewise.
46626
46627 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46628
46629         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46630         * lib/gettimeofday.c: Move extern declaration out of function.
46631
46632 2009-01-18  Bruno Haible  <bruno@clisp.org>
46633
46634         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46635         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46636         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46637
46638 2009-01-18  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/strftime.c (MEMPCPY): Remove unused macro.
46641         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46642
46643 2009-01-18  Martin Lambers  <marlam@marlam.de>
46644
46645         New module 'link'.
46646         * lib/unistd.in.h (link): New declaration.
46647         * lib/link.c: New file.
46648         * m4/link.m4: New file.
46649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46650         HAVE_LINK.
46651         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46652         * modules/link: New file.
46653         * doc/posix-functions/link.texi: Mention the new module.
46654
46655 2009-01-18  Bruno Haible  <bruno@clisp.org>
46656
46657         * tests/test-avltree_list.c (main): Call set_program_name.
46658         * tests/test-avltree_oset.c (main): Likewise.
46659         * tests/test-obstack-printf.c: Include progname.h.
46660         (main): Call set_program_name.
46661         * tests/test-quotearg.c: Include progname.h.
46662         (main): Call set_program_name.
46663         * tests/test-xmemdup0.c: Include progname.h.
46664         (main): Call set_program_name.
46665
46666 2009-01-18  Bruno Haible  <bruno@clisp.org>
46667
46668         New module 'alphasort'.
46669         * lib/dirent.in.h (alphasort): New declaration.
46670         * lib/alphasort.c: New file, from glibc with modifications.
46671         * m4/alphasort.m4: New file.
46672         * modules/alphasort: New file.
46673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46674         HAVE_ALPHASORT.
46675         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46676         HAVE_ALPHASORT.
46677         * doc/posix-functions/alphasort.texi: Mention the new module and the
46678         portability problems.
46679
46680 2009-01-18  Bruno Haible  <bruno@clisp.org>
46681
46682         New module 'scandir'.
46683         * lib/dirent.in.h (scandir): New declaration.
46684         * lib/scandir.c: New file, from glibc with modifications.
46685         * m4/scandir.m4: New file.
46686         * modules/scandir: New file.
46687         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46688         HAVE_SCANDIR.
46689         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46690         HAVE_SCANDIR.
46691         * doc/posix-functions/scandir.texi: Mention the new module and the
46692         portability problems.
46693
46694 2009-01-17  Bruno Haible  <bruno@clisp.org>
46695
46696         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46697         Update documentation.
46698         (func_remove_suffix): Escape all dots in the suffix. Update
46699         documentation.
46700         (func_filter_filelist): Update documentation.
46701         Reported by Ralf Wildenhues.
46702
46703 2009-01-17  Bruno Haible  <bruno@clisp.org>
46704
46705         * modules/dprintf-posix-tests: New file.
46706         * tests/test-dprintf-posix.sh: New file.
46707         * tests/test-dprintf-posix.c: New file.
46708
46709         New modules 'dprintf', 'dprintf-posix'.
46710         * lib/stdio.in.h (dprintf): New declaration.
46711         * lib/dprintf.c: New file.
46712         * m4/dprintf.m4: New file.
46713         * m4/dprintf-posix.m4: New file.
46714         * modules/dprintf: New file.
46715         * modules/dprintf-posix: New file.
46716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46717         HAVE_DPRINTF, REPLACE_DPRINTF.
46718         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46719         HAVE_DPRINTF, REPLACE_DPRINTF.
46720         * doc/posix-functions/dprintf.texi: Mention the new modules.
46721
46722 2009-01-17  Bruno Haible  <bruno@clisp.org>
46723
46724         * modules/vdprintf-posix-tests: New file.
46725         * tests/test-vdprintf-posix.sh: New file.
46726         * tests/test-vdprintf-posix.c: New file.
46727
46728         New modules 'vdprintf', 'vdprintf-posix'.
46729         * lib/stdio.in.h (vdprintf): New declaration.
46730         * lib/vdprintf.c: New file.
46731         * m4/vdprintf.m4: New file.
46732         * m4/vdprintf-posix.m4: New file.
46733         * modules/vdprintf: New file.
46734         * modules/vdprintf-posix: New file.
46735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46736         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46737         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46738         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46739         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46740
46741 2009-01-17  Bruno Haible  <bruno@clisp.org>
46742
46743         Fix replacement of fopen on mingw.
46744         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46745         mingw.
46746
46747 2009-01-17  Bruno Haible  <bruno@clisp.org>
46748
46749         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46750         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46751
46752 2009-01-17  Bruno Haible  <bruno@clisp.org>
46753
46754         Avoid test-fflush2.sh failure on mingw.
46755         * tests/test-fflush2.c: Include binary-io.h.
46756         (main): Put standard input into binary mode.
46757         * modules/fflush-tests (Depends-on): Add binary-io.
46758
46759 2009-01-17  Bruno Haible  <bruno@clisp.org>
46760
46761         * lib/wchar.in.h: In another particular situation, include only the
46762         system's <wchar.h> file.
46763         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46764         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46765         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46766
46767 2009-01-17  Bruno Haible  <bruno@clisp.org>
46768
46769         Support for stripping executables in --enable-relocatable.
46770         * build-aux/install-reloc: Expect one more argument, or an environment
46771         variable RELOC_STRIP_PROG. If set, strip the destination program and
46772         its wrapper.
46773         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46774         RELOC_STRIP_PROG.
46775         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46776         to set RELOCATABLE_STRIP.
46777         * NEWS: Mention the new Makefile requirement.
46778
46779 2009-01-17  Bruno Haible  <bruno@clisp.org>
46780
46781         * build-aux/install-reloc: Remove debugging information left over by
46782         C compiler on MacOS X.
46783
46784 2009-01-17  Bruno Haible  <bruno@clisp.org>
46785
46786         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46787         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46788         _NSGetExecutablePath.
46789
46790 2009-01-16  Jim Meyering  <meyering@redhat.com>
46791
46792         strerror: avoid warnings about discarding "const"
46793         * lib/strerror.c (rpl_strerror): Instead of returning a const
46794         string from each and every "case", use a variable, and add a single
46795         cast after the switch.
46796
46797 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46798
46799         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46800
46801 2009-01-16  Bruno Haible  <bruno@clisp.org>
46802
46803         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46804         array initializer syntax that also works in C++ mode.
46805         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46806
46807 2009-01-16  Jim Meyering  <meyering@redhat.com>
46808
46809         poll: suppress a warning
46810         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46811         to ignore "...unsigned expression < 0 is always false" warnings.
46812
46813 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46814
46815         poll: remove declarations of unused variables
46816         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46817         sockbuf and optlen.
46818
46819 2009-01-15  Bruno Haible  <bruno@clisp.org>
46820
46821         Make fflush-after-ungetc POSIX compliant on BSD systems.
46822         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46823         (clear_ungetc_buffer): Implement also for other systems.
46824         (rpl_fflush): On glibc systems, invoke
46825         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46826         clear_ungetc_buffer after fetching the stream's position, not before.
46827
46828 2009-01-15  Bruno Haible  <bruno@clisp.org>
46829
46830         Make fflush-after-ungetc POSIX compliant on glibc systems.
46831         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46832         after ungetc.
46833         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46834         (rpl_fflush): On glibc systems, simply call the system's fflush
46835         function after clearing the ungetc buffer.
46836         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46837         Instead, lseek only to the end of file, then use the system's fseeko
46838         for the rest. On glibc systems, reset the EOF indicator bit.
46839
46840 2009-01-15  Jim Meyering  <meyering@redhat.com>
46841
46842         openmp.m4: revert quote-adding change, for portability to older autoconf
46843         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
46844         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
46845         Simon Josefsson noticed the problem when using autoconf-2.61.
46846
46847 2009-01-15  Bruno Haible  <bruno@clisp.org>
46848
46849         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
46850         * tests/test-fflush2.c (ASSERT): Always fail.
46851         (main): Add two tests for fflush() after ungetc(), taking into account
46852         the Austin Group's clarification.
46853         Suggested by Eric Blake.
46854
46855 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
46856
46857         mktime.m4: remove K&R-style function prototypes
46858         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
46859         for the Sun C++ compiler.
46860
46861 2009-01-14  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
46864         while including <wchar.h>.
46865         * lib/wchar.in.h: In two particular situations on HP-UX, include only
46866         the system's <wchar.h> file.
46867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46868
46869 2009-01-14  Bruno Haible  <bruno@clisp.org>
46870
46871         * m4/csharp.m4: Don't mention gettext on the serial number line.
46872         * m4/csharpexec.m4: Likewise.
46873         * m4/eaccess.m4: Likewise.
46874         * m4/javaexec.m4: Likewise.
46875         * m4/sig_atomic_t.m4: Likewise.
46876         * m4/tmpdir.m4: Likewise.
46877         * m4/intldir.m4: Bump gettext version.
46878         * m4/lib-ld.m4: Likewise.
46879
46880 2009-01-14  Bruno Haible  <bruno@clisp.org>
46881
46882         * lib/progname.c (set_program_name): Add more comments.
46883         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
46884
46885 2009-01-14  Simon Josefsson  <simon@josefsson.org>
46886
46887         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
46888         were sys/stat.h does not define it.
46889
46890 2009-01-14  Jim Meyering  <meyering@redhat.com>
46891
46892         many *.m4 files: improve m4 quoting
46893         99% of this change was performed by running the following commands:
46894         git ls-files | grep '\.m4$' | xargs perl -pi \
46895           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
46896           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46897           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46898           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
46899         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
46900         The remainder were to add Copyright dates, increment serial numbers,
46901         undo some changes in comments, exclude m4/intl.m4, and add quotes
46902         around the "1" in ",1" where the unusual spacing prohibited the
46903         above regexps from doing the job.  For more details, see
46904         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
46905         * m4/acl.m4: Modified.
46906         * m4/afs.m4: Likewise.
46907         * m4/alloca.m4: Likewise.
46908         * m4/argp.m4: Likewise.
46909         * m4/argz.m4: Likewise.
46910         * m4/atexit.m4: Likewise.
46911         * m4/bison-i18n.m4: Likewise.
46912         * m4/bison.m4: Likewise.
46913         * m4/byteswap.m4: Likewise.
46914         * m4/c-stack.m4: Likewise.
46915         * m4/c-strtod.m4: Likewise.
46916         * m4/calloc.m4: Likewise.
46917         * m4/canonicalize-lgpl.m4: Likewise.
46918         * m4/chown.m4: Likewise.
46919         * m4/clock_time.m4: Likewise.
46920         * m4/codeset.m4: Likewise.
46921         * m4/copy-file.m4: Likewise.
46922         * m4/csharp.m4: Likewise.
46923         * m4/csharpcomp.m4: Likewise.
46924         * m4/csharpexec.m4: Likewise.
46925         * m4/d-ino.m4: Likewise.
46926         * m4/d-type.m4: Likewise.
46927         * m4/dirfd.m4: Likewise.
46928         * m4/double-slash-root.m4: Likewise.
46929         * m4/eaccess.m4: Likewise.
46930         * m4/eealloc.m4: Likewise.
46931         * m4/environ.m4: Likewise.
46932         * m4/errno_h.m4: Likewise.
46933         * m4/euidaccess.m4: Likewise.
46934         * m4/execute.m4: Likewise.
46935         * m4/fatal-signal.m4: Likewise.
46936         * m4/fchdir.m4: Likewise.
46937         * m4/fcntl_h.m4: Likewise.
46938         * m4/fileblocks.m4: Likewise.
46939         * m4/filenamecat.m4: Likewise.
46940         * m4/findprog.m4: Likewise.
46941         * m4/flexmember.m4: Likewise.
46942         * m4/fnmatch.m4: Likewise.
46943         * m4/fopen.m4: Likewise.
46944         * m4/fpending.m4: Likewise.
46945         * m4/fprintf-posix.m4: Likewise.
46946         * m4/free.m4: Likewise.
46947         * m4/frexp.m4: Likewise.
46948         * m4/frexpl.m4: Likewise.
46949         * m4/fsusage.m4: Likewise.
46950         * m4/ftruncate.m4: Likewise.
46951         * m4/gc-camellia.m4: Likewise.
46952         * m4/gc-random.m4: Likewise.
46953         * m4/gc.m4: Likewise.
46954         * m4/getaddrinfo.m4: Likewise.
46955         * m4/getcwd-abort-bug.m4: Likewise.
46956         * m4/getcwd-path-max.m4: Likewise.
46957         * m4/getdate.m4: Likewise.
46958         * m4/getdomainname.m4: Likewise.
46959         * m4/getgroups.m4: Likewise.
46960         * m4/gethostname.m4: Likewise.
46961         * m4/gethrxtime.m4: Likewise.
46962         * m4/getline.m4: Likewise.
46963         * m4/getloadavg.m4: Likewise.
46964         * m4/getndelim2.m4: Likewise.
46965         * m4/getpass.m4: Likewise.
46966         * m4/gettext.m4: Likewise.
46967         * m4/gettime.m4: Likewise.
46968         * m4/gettimeofday.m4: Likewise.
46969         * m4/gnulib-common.m4: Likewise.
46970         * m4/group-member.m4: Likewise.
46971         * m4/host-os.m4: Likewise.
46972         * m4/iconv.m4: Likewise.
46973         * m4/iconv_open.m4: Likewise.
46974         * m4/inet_ntop.m4: Likewise.
46975         * m4/inet_pton.m4: Likewise.
46976         * m4/inline.m4: Likewise.
46977         * m4/intldir.m4: Likewise.
46978         * m4/intlmacosx.m4: Likewise.
46979         * m4/intmax.m4: Likewise.
46980         * m4/intmax_t.m4: Likewise.
46981         * m4/inttypes.m4: Likewise.
46982         * m4/inttypes_h.m4: Likewise.
46983         * m4/inttypes-pri.m4: Likewise.
46984         * m4/isapipe.m4: Likewise.
46985         * m4/isnand.m4: Likewise.
46986         * m4/isnanf.m4: Likewise.
46987         * m4/isnanl.m4: Likewise.
46988         * m4/javacomp.m4: Likewise.
46989         * m4/javaexec.m4: Likewise.
46990         * m4/jm-winsz1.m4: Likewise.
46991         * m4/jm-winsz2.m4: Likewise.
46992         * m4/lchown.m4: Likewise.
46993         * m4/lcmessage.m4: Likewise.
46994         * m4/ldexpl.m4: Likewise.
46995         * m4/lib-ld.m4: Likewise.
46996         * m4/lib-link.m4: Likewise.
46997         * m4/libsigsegv.m4: Likewise.
46998         * m4/link-follow.m4: Likewise.
46999         * m4/localcharset.m4: Likewise.
47000         * m4/locale-fr.m4: Likewise.
47001         * m4/locale-ja.m4: Likewise.
47002         * m4/locale-tr.m4: Likewise.
47003         * m4/locale-zh.m4: Likewise.
47004         * m4/lock.m4: Likewise.
47005         * m4/longlong.m4: Likewise.
47006         * m4/ls-mntd-fs.m4: Likewise.
47007         * m4/lstat.m4: Likewise.
47008         * m4/malloc.m4: Likewise.
47009         * m4/mathl.m4: Likewise.
47010         * m4/mbrtowc.m4: Likewise.
47011         * m4/mbstate_t.m4: Likewise.
47012         * m4/mbswidth.m4: Likewise.
47013         * m4/memchr.m4: Likewise.
47014         * m4/memcmp.m4: Likewise.
47015         * m4/memcpy.m4: Likewise.
47016         * m4/memmem.m4: Likewise.
47017         * m4/memmove.m4: Likewise.
47018         * m4/mempcpy.m4: Likewise.
47019         * m4/memrchr.m4: Likewise.
47020         * m4/memset.m4: Likewise.
47021         * m4/minmax.m4: Likewise.
47022         * m4/mkdir-slash.m4: Likewise.
47023         * m4/mkdtemp.m4: Likewise.
47024         * m4/mktime.m4: Likewise.
47025         * m4/mmap-anon.m4: Likewise.
47026         * m4/mountlist.m4: Likewise.
47027         * m4/nanosleep.m4: Likewise.
47028         * m4/nls.m4: Likewise.
47029         * m4/nocrash.m4: Likewise.
47030         * m4/open.m4: Likewise.
47031         * m4/openat.m4: Likewise.
47032         * m4/openmp.m4: Likewise.
47033         * m4/pathmax.m4: Likewise.
47034         * m4/perl.m4: Likewise.
47035         * m4/physmem.m4: Likewise.
47036         * m4/pipe.m4: Likewise.
47037         * m4/po.m4: Likewise.
47038         * m4/poll.m4: Likewise.
47039         * m4/posixtm.m4: Likewise.
47040         * m4/posixver.m4: Likewise.
47041         * m4/printf-frexp.m4: Likewise.
47042         * m4/printf-frexpl.m4: Likewise.
47043         * m4/printf-posix.m4: Likewise.
47044         * m4/printf-posix-rpl.m4: Likewise.
47045         * m4/printf.m4: Likewise.
47046         * m4/progtest.m4: Likewise.
47047         * m4/putenv.m4: Likewise.
47048         * m4/readline.m4: Likewise.
47049         * m4/readlink.m4: Likewise.
47050         * m4/readutmp.m4: Likewise.
47051         * m4/realloc.m4: Likewise.
47052         * m4/regex.m4: Likewise.
47053         * m4/relocatable.m4: Likewise.
47054         * m4/relocatable-lib.m4: Likewise.
47055         * m4/rename-dest-slash.m4: Likewise.
47056         * m4/rename.m4: Likewise.
47057         * m4/rmdir-errno.m4: Likewise.
47058         * m4/rmdir.m4: Likewise.
47059         * m4/roundf.m4: Likewise.
47060         * m4/roundl.m4: Likewise.
47061         * m4/rpmatch.m4: Likewise.
47062         * m4/save-cwd.m4: Likewise.
47063         * m4/selinux-selinux-h.m4: Likewise.
47064         * m4/setenv.m4: Likewise.
47065         * m4/settime.m4: Likewise.
47066         * m4/sig2str.m4: Likewise.
47067         * m4/sig_atomic_t.m4: Likewise.
47068         * m4/signalblocking.m4: Likewise.
47069         * m4/signbit.m4: Likewise.
47070         * m4/sigpipe.m4: Likewise.
47071         * m4/sockets.m4: Likewise.
47072         * m4/sockpfaf.m4: Likewise.
47073         * m4/st_dm_mode.m4: Likewise.
47074         * m4/stat-time.m4: Likewise.
47075         * m4/stdbool.m4: Likewise.
47076         * m4/stdint.m4: Likewise.
47077         * m4/stdint_h.m4: Likewise.
47078         * m4/stpcpy.m4: Likewise.
47079         * m4/stpncpy.m4: Likewise.
47080         * m4/strcase.m4: Likewise.
47081         * m4/strchrnul.m4: Likewise.
47082         * m4/strcspn.m4: Likewise.
47083         * m4/strdup.m4: Likewise.
47084         * m4/strftime.m4: Likewise.
47085         * m4/strndup.m4: Likewise.
47086         * m4/strnlen.m4: Likewise.
47087         * m4/strpbrk.m4: Likewise.
47088         * m4/strptime.m4: Likewise.
47089         * m4/strsep.m4: Likewise.
47090         * m4/strtod.m4: Likewise.
47091         * m4/strtoimax.m4: Likewise.
47092         * m4/strtok_r.m4: Likewise.
47093         * m4/strtol.m4: Likewise.
47094         * m4/strtoll.m4: Likewise.
47095         * m4/strtoul.m4: Likewise.
47096         * m4/strtoull.m4: Likewise.
47097         * m4/strtoumax.m4: Likewise.
47098         * m4/strverscmp.m4: Likewise.
47099         * m4/threadlib.m4: Likewise.
47100         * m4/timegm.m4: Likewise.
47101         * m4/tm_gmtoff.m4: Likewise.
47102         * m4/tmpdir.m4: Likewise.
47103         * m4/tmpfile.m4: Likewise.
47104         * m4/tzset.m4: Likewise.
47105         * m4/uintmax_t.m4: Likewise.
47106         * m4/unlinkdir.m4: Likewise.
47107         * m4/unlocked-io.m4: Likewise.
47108         * m4/uptime.m4: Likewise.
47109         * m4/userspec.m4: Likewise.
47110         * m4/utimbuf.m4: Likewise.
47111         * m4/utime.m4: Likewise.
47112         * m4/utimes-null.m4: Likewise.
47113         * m4/utimes.m4: Likewise.
47114         * m4/vararrays.m4: Likewise.
47115         * m4/vasnprintf.m4: Likewise.
47116         * m4/vfprintf-posix.m4: Likewise.
47117         * m4/vprintf-posix.m4: Likewise.
47118         * m4/wait-process.m4: Likewise.
47119         * m4/wchar_t.m4: Likewise.
47120         * m4/wint_t.m4: Likewise.
47121         * m4/write-any-file.m4: Likewise.
47122         * m4/yield.m4: Likewise.
47123
47124 2009-01-13  Bruno Haible  <bruno@clisp.org>
47125
47126         Avoid test-copy-file.sh failures when ACL support insufficient.
47127         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47128         TESTS_ENVIRONMENT.
47129         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47130         Reported by Jim Meyering.
47131
47132 2009-01-13  Bruno Haible  <bruno@clisp.org>
47133
47134         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47135         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47136         * modules/unistdio/u8-printf-parse (Files): Likewise.
47137         * modules/unistdio/u32-printf-parse (Files): Likewise.
47138         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47139
47140 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47141
47142         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47143         and m4/inttypes_h.m4 too.
47144
47145 2009-01-12  Eric Blake  <ebb9@byu.net>
47146
47147         tests: IRIX 6.2 cc can't compile -0.0 into .data
47148         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47149         rather than at compile-time.
47150         * tests/test-floorl.c (minus_zero): Likewise.
47151         * tests/test-frexpl.c (minus_zero): Likewise.
47152         * tests/test-isnan.c (minus_zerol): Likewise.
47153         * tests/test-isnanl.h (minus_zero): Likewise.
47154         * tests/test-ldexpl.c (minus_zero): Likewise.
47155         * tests/test-roundl.c (minus_zero): Likewise.
47156         * tests/test-signbit.c (minus_zerol): Likewise.
47157         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47158         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47159         * tests/test-truncl.c (minus_zero): Likewise.
47160         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47161         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47162         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47163
47164 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47165
47166         regex: fix glibc bug 9697
47167         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47168         handling.
47169
47170 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47171
47172         regex: fix glibc bug 697
47173         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47174         being NULL also if there are no backreferences.
47175
47176 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47177
47178         regex: merge glibc changes
47179         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47180         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47181         re_string_skip_chars, re_string_reconstruct): Likewise.
47182         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47183
47184 2009-01-07  Jim Meyering  <meyering@redhat.com>
47185
47186         poll: filter through cppi
47187         * lib/poll.c: Indent cpp directives to reflect nesting.
47188
47189 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47190
47191         poll: don't return uninitialized
47192         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47193
47194 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47195
47196         avoid compile failure on AIX 6.1
47197         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47198         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47199
47200 2009-01-04  Jim Meyering  <meyering@redhat.com>
47201
47202         remove duplicate inclusion of <stdio.h>
47203         * tests/test-fprintf-posix.c: Likewise.
47204         * tests/test-printf-posix.c: Likewise.
47205         * tests/test-snprintf-posix.c: Likewise.
47206         * tests/test-sprintf-posix.c: Likewise.
47207         * tests/test-vasprintf-posix.c: Likewise.
47208         * tests/test-vfprintf-posix.c: Likewise.
47209         * tests/test-vprintf-posix.c: Likewise.
47210         * tests/test-vsnprintf-posix.c: Likewise.
47211         * tests/test-vsprintf-posix.c: Likewise.
47212
47213 2009-01-03  Jim Meyering  <meyering@redhat.com>
47214
47215         gnulib-tool: fix sed-based filtering
47216         * gnulib-tool (func_filter_filelist): Remove extra backslash
47217         in sed_fff_filter definition.
47218
47219 2009-01-02  Jim Meyering  <meyering@redhat.com>
47220
47221         strftime: avoid compilation failure on Solaris 2.6
47222         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47223         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47224         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47225         be available.  Reported by Tom G. Christensen.  Details in
47226         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47227
47228 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47229             Bruno Haible  <bruno@clisp.org>
47230
47231         Speed up gnulib-tool by doing more string processing through shell
47232         built-ins.
47233         * gnulib-tool (fast_func_append): New variable.
47234         (func_remove_prefix, func_remove_suffix): New functions.
47235         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47236         (func_filter_filelist): New function.
47237         (func_get_dependencies): Use func_remove_suffix instead of sed.
47238         (func_get_automake_snippet): Use func_filter_filelist instead of a
47239         subshell and sed invocation.
47240
47241 2009-01-01  Bruno Haible  <bruno@clisp.org>
47242
47243         Fix a security bug.
47244         * gnulib-tool (func_import, import, update): Don't allow the characters
47245         '"', '$', '`', '\' in macro arguments that become part of commands that
47246         are evaluated.
47247
47248 2009-01-01  Bruno Haible  <bruno@clisp.org>
47249
47250         * gnulib-tool (func_reset_sigpipe): Add more comments.
47251
47252 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47253
47254         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47255         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47256         already know the answer.
47257
47258 2009-01-01  Jim Meyering  <meyering@redhat.com>
47259
47260         * lib/version-etc.c (version_etc_va): Update copyright year.
47261
47262 2008-12-30  Bruno Haible  <bruno@clisp.org>
47263
47264         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47265         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47266         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47267
47268 2008-12-29  Eric Blake  <ebb9@byu.net>
47269
47270         multiarch: avoid autoconf AC_REQUIRE bug
47271         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47272         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47273         2.63 and older.
47274         Reported by Bruno Haible, and analyzed in
47275         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47276
47277 2008-12-29  Bruno Haible  <bruno@clisp.org>
47278
47279         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47280         files in subdirectories correctly.
47281         Reported by Ralf Wildenhues.
47282
47283 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47284
47285         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47286         rather than 'join FILE -', for Solaris join.
47287
47288 2008-12-29  Bruno Haible  <bruno@clisp.org>
47289
47290         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47291         quoting.
47292         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47293         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47294         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47295         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47296         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47297         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47298         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47299         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47300         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47301         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47302         * m4/nls.m4 (AM_NLS): Likewise.
47303         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47304         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47305         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47306         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47307         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47308         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47309         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47310         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47311         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47312         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47313         * m4/xsize.m4 (gl_XSIZE): Likewise.
47314         Suggested by Jim Meyering.
47315
47316 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47317
47318         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47319         * lib/parse-duration.c: use a switch instead of cascading if's.
47320
47321 2008-12-29  Eric Blake  <ebb9@byu.net>
47322
47323         wchar.h: supply WEOF on Irix 5.3
47324         * lib/wchar.in.h (wint_t): Also supply WEOF.
47325         * lib/wctype.in.h (wint_t): Likewise.
47326         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47327         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47328         Reported by Tom G. Christensen.
47329
47330 2008-12-26  Bruno Haible  <bruno@clisp.org>
47331
47332         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47333         i486, i586, i686.
47334
47335 2008-12-26  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47338
47339 2008-12-26  Bruno Haible  <bruno@clisp.org>
47340
47341         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47342         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47343         not __STDC_CONSTANT_MACROS.
47344         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47345
47346 2008-12-25  Bruno Haible  <bruno@clisp.org>
47347
47348         Add support for universal builds to vasnprintf.
47349         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47350         universal builds, guess no.
47351         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47352         * modules/vasprintf-posix (Depends-on): Likewise.
47353         * modules/fprintf-posix (Depends-on): Likewise.
47354         * modules/vfprintf-posix (Depends-on): Likewise.
47355         * modules/snprintf-posix (Depends-on): Likewise.
47356         * modules/vsnprintf-posix (Depends-on): Likewise.
47357         * modules/sprintf-posix (Depends-on): Likewise.
47358         * modules/vsprintf-posix (Depends-on): Likewise.
47359         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47360         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47361         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47362         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47363         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47364         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47365         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47366
47367         Add support for universal builds to <inttypes.h>.
47368         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47369         _SCNu64_PREFIX): In Apple
47370         universal builds, define directly, using _LP64.
47371         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47372         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47373         * modules/inttypes (Depends-on): Add multiarch.
47374         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47375
47376         Add support for universal builds to <stdint.h>.
47377         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47378         universal builds, define directly, using _LP64.
47379         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47380         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47381         and size_t.
47382         * modules/stdint (Depends-on): Add multiarch.
47383         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47384
47385         New module 'multiarch'.
47386         * modules/multiarch: New file.
47387         * m4/multiarch.m4: New file.
47388
47389 2008-12-25  Bruno Haible  <bruno@clisp.org>
47390
47391         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47392
47393 2008-12-25  Bruno Haible  <bruno@clisp.org>
47394
47395         * modules/btowc (License): Relicense under LGPLv2+.
47396         * modules/mbsinit (License): Likewise.
47397         * modules/mbrtowc (License): Likewise.
47398         * modules/wcrtomb (License): Likewise.
47399         * modules/streq (License): Likewise.
47400         Reported by David Lutterkort <lutter@redhat.com>.
47401
47402 2008-12-23  Bruno Haible  <bruno@clisp.org>
47403
47404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47405
47406 2008-12-23  Bruno Haible  <bruno@clisp.org>
47407
47408         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47410         GETADDRINFO_LIB, not in LIBS.
47411         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47412         * modules/canon-host (Link): Likewise.
47413         * NEWS: Mention the change.
47414         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47415         GETADDRINFO_LIB.
47416
47417 2008-12-22  Bruno Haible  <bruno@clisp.org>
47418
47419         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47420         * doc/posix-functions/iswalpha_l.texi: Likewise.
47421         * doc/posix-functions/iswblank_l.texi: Likewise.
47422         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47423         * doc/posix-functions/iswctype_l.texi: Likewise.
47424         * doc/posix-functions/iswdigit_l.texi: Likewise.
47425         * doc/posix-functions/iswgraph_l.texi: Likewise.
47426         * doc/posix-functions/iswlower_l.texi: Likewise.
47427         * doc/posix-functions/iswprint_l.texi: Likewise.
47428         * doc/posix-functions/iswpunct_l.texi: Likewise.
47429         * doc/posix-functions/iswspace_l.texi: Likewise.
47430         * doc/posix-functions/iswupper_l.texi: Likewise.
47431         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47432         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47433         * doc/posix-functions/open_wmemstream.texi: Likewise.
47434         * doc/posix-functions/swscanf.texi: Likewise.
47435         * doc/posix-functions/towctrans_l.texi: Likewise.
47436         * doc/posix-functions/towlower.texi: Likewise.
47437         * doc/posix-functions/towlower_l.texi: Likewise.
47438         * doc/posix-functions/towupper.texi: Likewise.
47439         * doc/posix-functions/towupper_l.texi: Likewise.
47440         * doc/posix-functions/vfwprintf.texi: Likewise.
47441         * doc/posix-functions/vfwscanf.texi: Likewise.
47442         * doc/posix-functions/vswscanf.texi: Likewise.
47443         * doc/posix-functions/vwprintf.texi: Likewise.
47444         * doc/posix-functions/vwscanf.texi: Likewise.
47445         * doc/posix-functions/wcpcpy.texi: Likewise.
47446         * doc/posix-functions/wcpncpy.texi: Likewise.
47447         * doc/posix-functions/wcscasecmp.texi: Likewise.
47448         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47449         * doc/posix-functions/wcscoll_l.texi: Likewise.
47450         * doc/posix-functions/wcsdup.texi: Likewise.
47451         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47452         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47453         * doc/posix-functions/wcsnlen.texi: Likewise.
47454         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47455         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47456         * doc/posix-functions/wctrans_l.texi: Likewise.
47457         * doc/posix-functions/wctype_l.texi: Likewise.
47458         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47459         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47460         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47461         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47462         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47463         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47464         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47465         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47466         * doc/glibc-functions/wcschrnul.texi: Likewise.
47467         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47468         * doc/glibc-functions/wcstod_l.texi: Likewise.
47469         * doc/glibc-functions/wcstof_l.texi: Likewise.
47470         * doc/glibc-functions/wcstol_l.texi: Likewise.
47471         * doc/glibc-functions/wcstold_l.texi: Likewise.
47472         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47473         * doc/glibc-functions/wcstoq.texi: Likewise.
47474         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47475         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47476         * doc/glibc-functions/wcstouq.texi: Likewise.
47477         * doc/glibc-functions/wmempcpy.texi: Likewise.
47478
47479 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47480             Eric Blake  <ebb9@byu.net>
47481             Paolo Bonzini  <bonzini@gnu.org>
47482             Bruno Haible  <bruno@clisp.org>
47483
47484         Make c-stack work on Haiku.
47485         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47486         (c_stack_action): Use SA_ONSTACK flag.
47487
47488 2008-12-22  Bruno Haible  <bruno@clisp.org>
47489
47490         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47491
47492 2008-12-22  Bruno Haible  <bruno@clisp.org>
47493
47494         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47495         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47496         being overridden.
47497         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47498         New macros.
47499         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47501         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47502         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47503
47504 2008-12-22  Bruno Haible  <bruno@clisp.org>
47505
47506         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47507         from test code.
47508
47509 2008-12-22  Eric Blake  <ebb9@byu.net>
47510
47511         Avoid gcc warnings on cygwin.
47512         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47513         Avoid unused variable.
47514         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47515         Likewise.
47516
47517 2008-12-22  Bruno Haible  <bruno@clisp.org>
47518
47519         Remove HAVE_MBRTOWC conditionals.
47520         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47521         (mbscasecmp): Assume mbrtowc function.
47522         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47523         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47524         * lib/mbschr.c: Include mbuiter.h unconditionally.
47525         (mbschr): Assume mbrtowc function.
47526         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47527         (mbscspn): Assume mbrtowc function.
47528         * lib/mbslen.c: Include mbuiter.h unconditionally.
47529         (mbslen): Assume mbrtowc function.
47530         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47531         (mbsncasecmp): Assume mbrtowc function.
47532         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47533         (mbsnlen): Assume mbrtowc function.
47534         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47535         (mbspbrk): Assume mbrtowc function.
47536         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47537         (mbspcasecmp): Assume mbrtowc function.
47538         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47539         (mbsrchr): Assume mbrtowc function.
47540         * lib/mbssep.c: Include mbuiter.h unconditionally.
47541         (mbssep): Assume mbrtowc function.
47542         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47543         (mbsspn): Assume mbrtowc function.
47544         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47545         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47546         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47547         (mbstok_r): Assume mbrtowc function.
47548         * lib/propername.c: Include mbuiter.h unconditionally.
47549         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47550         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47551         (trim2): Assume mbrtowc function.
47552         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47553         (mbsnwidth): Assume mbrtowc function.
47554         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47555         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47556         fallback definitions.
47557         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47558
47559 2008-12-22  Bruno Haible  <bruno@clisp.org>
47560
47561         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47562
47563 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47564
47565         * modules/regex: Request emulations for the mb*/wc* functions we need.
47566         * m4/regex.m4: Don't look for those functions here.
47567         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47568
47569 2008-12-22  Bruno Haible  <bruno@clisp.org>
47570
47571         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47572
47573 2008-12-21  Bruno Haible  <bruno@clisp.org>
47574
47575         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47576         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47577         (Include): Remove conditionalization.
47578         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47579         (Include): Remove conditionalization.
47580         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47581         (Include): Remove conditionalization.
47582         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47583         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47584         * NEWS: Mention the change.
47585         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47586         via Sergey Poznyakoff <gray@gnu.org.ua>.
47587
47588 2008-12-21  Bruno Haible  <bruno@clisp.org>
47589
47590         * MODULES.html.sh (Extended multibyte and wide character utilities
47591         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47592         wcrtomb, wcsrtombs.
47593         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47594         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47595         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47596         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47597
47598 2008-12-21  Bruno Haible  <bruno@clisp.org>
47599
47600         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47601
47602 2008-12-21  Bruno Haible  <bruno@clisp.org>
47603
47604         * modules/wcsnrtombs-tests: New file.
47605         * tests/test-wcsnrtombs1.sh: New file.
47606         * tests/test-wcsnrtombs2.sh: New file.
47607         * tests/test-wcsnrtombs3.sh: New file.
47608         * tests/test-wcsnrtombs4.sh: New file.
47609         * tests/test-wcsnrtombs.c: New file.
47610
47611         New module 'wcsnrtombs'.
47612         * lib/wchar.in.h (wcsnrtombs): New declaration.
47613         * lib/wcsnrtombs.c: New file.
47614         * lib/wcsrtombs-state.c: New file.
47615         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47616         (internal_state): Remove variable.
47617         * m4/wcsnrtombs.m4: New file.
47618         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47619         compilation units.
47620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47621         HAVE_WCSNRTOMBS.
47622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47623         HAVE_WCSNRTOMBS.
47624         * modules/wcsnrtombs: New file.
47625         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47626         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47627
47628 2008-12-21  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/wcsrtombs-tests: New file.
47631         * tests/test-wcsrtombs1.sh: New file.
47632         * tests/test-wcsrtombs2.sh: New file.
47633         * tests/test-wcsrtombs3.sh: New file.
47634         * tests/test-wcsrtombs4.sh: New file.
47635         * tests/test-wcsrtombs.c: New file.
47636
47637         New module 'wcsrtombs'.
47638         * lib/wchar.in.h (wcsrtombs): New declaration.
47639         * lib/wcsrtombs.c: New file.
47640         * m4/wcsrtombs.m4: New file.
47641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47642         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47644         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47645         * modules/wcsrtombs: New file.
47646         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47647         bugs.
47648
47649 2008-12-21  Bruno Haible  <bruno@clisp.org>
47650
47651         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47652         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47654         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47655         if not correct.
47656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47657         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47658         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47659         m4/locale-zh.m4, m4/codeset.m4.
47660         * doc/posix-functions/wcrtomb.texi: Document the bug.
47661
47662 2008-12-21  Bruno Haible  <bruno@clisp.org>
47663
47664         Work around a btowc() bug on IRIX 6.5.
47665         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47666         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47667         REPLACE_WTOBC if not.
47668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47669         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47670         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47671
47672 2008-12-21  Bruno Haible  <bruno@clisp.org>
47673
47674         * modules/wcrtomb-tests: New file.
47675         * tests/test-wcrtomb.sh: New file.
47676         * tests/test-wcrtomb.c: New file.
47677
47678         New module 'wcrtomb'.
47679         * lib/wchar.in.h (wcrtomb): New declaration.
47680         * lib/wcrtomb.c: New file.
47681         * m4/wcrtomb.m4: New file.
47682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47683         HAVE_WCRTOMB.
47684         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47685         HAVE_WCRTOMB.
47686         * modules/wcrtomb: New file.
47687         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47688
47689 2008-12-21  Bruno Haible  <bruno@clisp.org>
47690
47691         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47692         * modules/mbsrtowcs (Files): Likewise.
47693         * modules/wctob (Files): Likewise.
47694         * modules/c-strcase-tests (Files): Likewise.
47695         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47696         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47697         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47698         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47699         * modules/vasnprintf-posix-tests (Files): Likewise.
47700
47701 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47702
47703         gitlog-to-changelog: pass all command-line arguments to git-log
47704         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47705         it is sometimes convenient to filter the commits in various ways.
47706         gitlog-to-changelog only allows --since to specify a start date,
47707         but git-log itself supports many other filtering mechanisms.
47708         At the moment, I want to filter by branch name.  Rather than
47709         adding a --branch option to gitlog-to-changelog, it seems more
47710         flexible to simply pass all options directly to git-log and let
47711         git do the work.  Notice that this effectively makes --since a
47712         redundant option for gitlog-to-changelog, but removing it would
47713         require current usage to change since calls would then require
47714         an additional '--'.
47715
47716 2008-12-21  Bruno Haible  <bruno@clisp.org>
47717
47718         * modules/mbsnrtowcs-tests: New file.
47719         * tests/test-mbsnrtowcs1.sh: New file.
47720         * tests/test-mbsnrtowcs2.sh: New file.
47721         * tests/test-mbsnrtowcs3.sh: New file.
47722         * tests/test-mbsnrtowcs4.sh: New file.
47723         * tests/test-mbsnrtowcs.c: New file.
47724
47725         New module 'mbsnrtowcs'.
47726         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47727         * lib/mbsnrtowcs.c: New file.
47728         * lib/mbsrtowcs-state.c: New file.
47729         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47730         (internal_state): Remove variable.
47731         * m4/mbsnrtowcs.m4: New file.
47732         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47733         compilation units.
47734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47735         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47736         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47737         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47738         * modules/mbsnrtowcs: New file.
47739         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47740         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47741         portability problem.
47742
47743 2008-12-21  Bruno Haible  <bruno@clisp.org>
47744
47745         Work around mbsrtowcs bug.
47746         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47747         (gl_FUNC_MBSRTOWCS): Invoke it.
47748         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47749         m4/locale-zh.m4.
47750         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47751
47752 2008-12-21  Bruno Haible  <bruno@clisp.org>
47753
47754         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47755
47756 2008-12-21  Bruno Haible  <bruno@clisp.org>
47757
47758         Update doc for AIX.
47759         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47760         16-bit wchar_t type.
47761         * doc/posix-functions/btowc.texi: Likewise.
47762         * doc/posix-functions/fgetwc.texi: Likewise.
47763         * doc/posix-functions/fgetws.texi: Likewise.
47764         * doc/posix-functions/fputwc.texi: Likewise.
47765         * doc/posix-functions/fputws.texi: Likewise.
47766         * doc/posix-functions/fwide.texi: Likewise.
47767         * doc/posix-functions/fwprintf.texi: Likewise.
47768         * doc/posix-functions/fwscanf.texi: Likewise.
47769         * doc/posix-functions/getwchar.texi: Likewise.
47770         * doc/posix-functions/getwc.texi: Likewise.
47771         * doc/posix-functions/iswalnum.texi: Likewise.
47772         * doc/posix-functions/iswalpha.texi: Likewise.
47773         * doc/posix-functions/iswblank.texi: Likewise.
47774         * doc/posix-functions/iswcntrl.texi: Likewise.
47775         * doc/posix-functions/iswctype.texi: Likewise.
47776         * doc/posix-functions/iswdigit.texi: Likewise.
47777         * doc/posix-functions/iswgraph.texi: Likewise.
47778         * doc/posix-functions/iswlower.texi: Likewise.
47779         * doc/posix-functions/iswprint.texi: Likewise.
47780         * doc/posix-functions/iswpunct.texi: Likewise.
47781         * doc/posix-functions/iswspace.texi: Likewise.
47782         * doc/posix-functions/iswupper.texi: Likewise.
47783         * doc/posix-functions/iswxdigit.texi: Likewise.
47784         * doc/posix-functions/mbrtowc.texi: Likewise.
47785         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47786         * doc/posix-functions/mbstowcs.texi: Likewise.
47787         * doc/posix-functions/mbtowc.texi: Likewise.
47788         * doc/posix-functions/putwchar.texi: Likewise.
47789         * doc/posix-functions/putwc.texi: Likewise.
47790         * doc/posix-functions/swprintf.texi: Likewise.
47791         * doc/posix-functions/tolower.texi: Likewise.
47792         * doc/posix-functions/toupper.texi: Likewise.
47793         * doc/posix-functions/towctrans.texi: Likewise.
47794         * doc/posix-functions/ungetwc.texi: Likewise.
47795         * doc/posix-functions/vswprintf.texi: Likewise.
47796         * doc/posix-functions/wcrtomb.texi: Likewise.
47797         * doc/posix-functions/wcscat.texi: Likewise.
47798         * doc/posix-functions/wcschr.texi: Likewise.
47799         * doc/posix-functions/wcscmp.texi: Likewise.
47800         * doc/posix-functions/wcscoll.texi: Likewise.
47801         * doc/posix-functions/wcscpy.texi: Likewise.
47802         * doc/posix-functions/wcscspn.texi: Likewise.
47803         * doc/posix-functions/wcsftime.texi: Likewise.
47804         * doc/posix-functions/wcslen.texi: Likewise.
47805         * doc/posix-functions/wcsncat.texi: Likewise.
47806         * doc/posix-functions/wcsncmp.texi: Likewise.
47807         * doc/posix-functions/wcsncpy.texi: Likewise.
47808         * doc/posix-functions/wcspbrk.texi: Likewise.
47809         * doc/posix-functions/wcsrchr.texi: Likewise.
47810         * doc/posix-functions/wcsrtombs.texi: Likewise.
47811         * doc/posix-functions/wcsspn.texi: Likewise.
47812         * doc/posix-functions/wcsstr.texi: Likewise.
47813         * doc/posix-functions/wcstod.texi: Likewise.
47814         * doc/posix-functions/wcstof.texi: Likewise.
47815         * doc/posix-functions/wcstoimax.texi: Likewise.
47816         * doc/posix-functions/wcstok.texi: Likewise.
47817         * doc/posix-functions/wcstold.texi: Likewise.
47818         * doc/posix-functions/wcstoll.texi: Likewise.
47819         * doc/posix-functions/wcstol.texi: Likewise.
47820         * doc/posix-functions/wcstombs.texi: Likewise.
47821         * doc/posix-functions/wcstoull.texi: Likewise.
47822         * doc/posix-functions/wcstoul.texi: Likewise.
47823         * doc/posix-functions/wcstoumax.texi: Likewise.
47824         * doc/posix-functions/wcswidth.texi: Likewise.
47825         * doc/posix-functions/wcsxfrm.texi: Likewise.
47826         * doc/posix-functions/wctob.texi: Likewise.
47827         * doc/posix-functions/wctomb.texi: Likewise.
47828         * doc/posix-functions/wctrans.texi: Likewise.
47829         * doc/posix-functions/wctype.texi: Likewise.
47830         * doc/posix-functions/wcwidth.texi: Likewise.
47831         * doc/posix-functions/wmemchr.texi: Likewise.
47832         * doc/posix-functions/wmemcmp.texi: Likewise.
47833         * doc/posix-functions/wmemcpy.texi: Likewise.
47834         * doc/posix-functions/wmemmove.texi: Likewise.
47835         * doc/posix-functions/wmemset.texi: Likewise.
47836         * doc/posix-functions/wprintf.texi: Likewise.
47837         * doc/posix-functions/wscanf.texi: Likewise.
47838
47839 2008-12-21  Bruno Haible  <bruno@clisp.org>
47840
47841         Update doc for HP-UX 11.11.
47842         * doc/posix-functions/btowc.texi: Clarify that the function is missing
47843         in HP-UX version 11.00, not in all versions of HP-UX 11.
47844         * doc/posix-functions/fwide.texi: Likewise.
47845         * doc/posix-functions/fwprintf.texi: Likewise.
47846         * doc/posix-functions/fwscanf.texi: Likewise.
47847         * doc/posix-functions/inet_ntop.texi: Likewise.
47848         * doc/posix-functions/inet_pton.texi: Likewise.
47849         * doc/posix-functions/mbrlen.texi: Likewise.
47850         * doc/posix-functions/mbrtowc.texi: Likewise.
47851         * doc/posix-functions/mbsinit.texi: Likewise.
47852         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47853         * doc/posix-functions/swprintf.texi: Likewise.
47854         * doc/posix-functions/swscanf.texi: Likewise.
47855         * doc/posix-functions/towctrans.texi: Likewise.
47856         * doc/posix-functions/vfwprintf.texi: Likewise.
47857         * doc/posix-functions/vswprintf.texi: Likewise.
47858         * doc/posix-functions/vwprintf.texi: Likewise.
47859         * doc/posix-functions/wcrtomb.texi: Likewise.
47860         * doc/posix-functions/wcsrtombs.texi: Likewise.
47861         * doc/posix-functions/wcsstr.texi: Likewise.
47862         * doc/posix-functions/wctob.texi: Likewise.
47863         * doc/posix-functions/wctrans.texi: Likewise.
47864         * doc/posix-functions/wmemchr.texi: Likewise.
47865         * doc/posix-functions/wmemcmp.texi: Likewise.
47866         * doc/posix-functions/wmemcpy.texi: Likewise.
47867         * doc/posix-functions/wmemmove.texi: Likewise.
47868         * doc/posix-functions/wmemset.texi: Likewise.
47869         * doc/posix-functions/wprintf.texi: Likewise.
47870         * doc/posix-functions/wscanf.texi: Likewise.
47871
47872 2008-12-21  Bruno Haible  <bruno@clisp.org>
47873
47874         Work around a portability problem.
47875         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
47876         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
47877
47878 2008-12-20  Bruno Haible  <bruno@clisp.org>
47879
47880         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
47881         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
47882         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
47883         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
47884         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
47885
47886         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
47887         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
47888         set.
47889         (GNULIB_defined_mbstate_t): New macro.
47890         (mbsinit): Redefine if REPLACE_MBSINIT is set.
47891         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
47892         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
47893         reuses the system's mbrtowc function but works around the bugs.
47894         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
47895         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
47896         macros.
47897         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
47898         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
47899         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
47900         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
47901         REPLACE_MBSINIT if mbsinit needs to be overridden.
47902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
47903         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47904         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
47905         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47906         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47907         m4/locale-zh.m4.
47908         (Depends): Add mbsinit.
47909         * modules/mbsinit (Depends): Add mbrtowc.
47910         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
47911
47912 2008-12-20  Bruno Haible  <bruno@clisp.org>
47913
47914         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
47915         so that there are no conversion errors on AIX.
47916         * tests/test-mbsrtowcs.c (main): LIkewise.
47917
47918 2008-12-20  Bruno Haible  <bruno@clisp.org>
47919
47920         Work around wctob bug on Solaris <= 9.
47921         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
47922         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
47923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
47924         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
47925         * modules/wctob (Files): Add m4/locale-fr.m4.
47926         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
47927
47928 2008-12-20  Bruno Haible  <bruno@clisp.org>
47929
47930         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
47931         /dev/null.
47932         * tests/test-select-in.sh: Likewise.
47933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47934
47935 2008-12-20  Bruno Haible  <bruno@clisp.org>
47936
47937         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
47938         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
47939         Cygwin 1.5.x.
47940
47941 2008-12-20  Bruno Haible  <bruno@clisp.org>
47942
47943         Ensure mbstate_t is defined on HP-UX 11.11.
47944         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
47945         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
47946         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
47947         AC_USE_SYSTEM_EXTENSIONS.
47948         * modules/fnmatch (Depends-on): Add extensions.
47949         * modules/mbrlen (Depends-on): Likewise.
47950         * modules/mbrtowc (Depends-on): Likewise.
47951         * modules/mbsinit (Depends-on): Likewise.
47952         * modules/mbsrtowcs (Depends-on): Likewise.
47953         * modules/mbswidth (Depends-on): Likewise.
47954         * modules/quotearg (Depends-on): Likewise.
47955         * modules/strftime (Depends-on): Likewise.
47956
47957 2008-12-20  Bruno Haible  <bruno@clisp.org>
47958
47959         Ensure wctob is declared on IRIX 6.5.
47960         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
47961         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
47962         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
47963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
47964         of HAVE_WCTOB.
47965         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
47966         HAVE_WCTOB.
47967         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
47968
47969 2008-12-19  Bruno Haible  <bruno@clisp.org>
47970
47971         * modules/mbsrtowcs-tests: New file.
47972         * tests/test-mbsrtowcs1.sh: New file.
47973         * tests/test-mbsrtowcs2.sh: New file.
47974         * tests/test-mbsrtowcs3.sh: New file.
47975         * tests/test-mbsrtowcs4.sh: New file.
47976         * tests/test-mbsrtowcs.c: New file.
47977
47978         New module 'mbsrtowcs'.
47979         * lib/wchar.in.h (mbsrtowcs): New declaration.
47980         * lib/mbsrtowcs.c: New file.
47981         * m4/mbsrtowcs.m4: New file.
47982         * modules/mbsrtowcs: New file.
47983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
47984         HAVE_MBSRTOWCS.
47985         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
47986         HAVE_MBSRTOWCS.
47987         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
47988
47989 2008-12-19  Bruno Haible  <bruno@clisp.org>
47990
47991         New module 'mbrlen'.
47992         * lib/wchar.in.h (mbrlen): New declaration.
47993         * lib/mbrlen.c: New file.
47994         * m4/mbrlen.m4: New file.
47995         * modules/mbrlen: New file.
47996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
47997         HAVE_MBRLEN.
47998         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
47999         HAVE_MBRLEN.
48000         * doc/posix-functions/mbrlen.texi: Document the new module.
48001
48002 2008-12-19  Bruno Haible  <bruno@clisp.org>
48003
48004         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48005         * modules/mbrtowc (Depends-on): Add verify.
48006         Suggested by Paul Eggert.
48007
48008 2008-12-18  Bruno Haible  <bruno@clisp.org>
48009
48010         * modules/mbsinit-tests: New file.
48011         * tests/test-mbsinit.sh: New file.
48012         * tests/test-mbsinit.c: New file.
48013
48014 2008-12-18  Bruno Haible  <bruno@clisp.org>
48015
48016         * modules/mbrtowc-tests: New file.
48017         * tests/test-mbrtowc1.sh: New file.
48018         * tests/test-mbrtowc2.sh: New file.
48019         * tests/test-mbrtowc3.sh: New file.
48020         * tests/test-mbrtowc4.sh: New file.
48021         * tests/test-mbrtowc.c: New file.
48022
48023         New module 'mbrtowc'.
48024         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48025         mbsinit and mbrtowc.
48026         (mbrtowc): New declaration.
48027         * lib/mbrtowc.c: New file.
48028         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48029         * modules/mbrtowc: New file.
48030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48031         HAVE_MBRTOWC.
48032         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48033         HAVE_MBRTOWC.
48034         * doc/posix-functions/mbrtowc.texi: Document the new module.
48035
48036 2008-12-18  Bruno Haible  <bruno@clisp.org>
48037
48038         New module 'wctob'.
48039         * lib/wchar.in.h (wctob): New declaration.
48040         * lib/wctob.c: New file.
48041         * m4/wctob.m4: New file.
48042         * modules/wctob: New file.
48043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48044         HAVE_WCTOB.
48045         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48046         * doc/posix-functions/wctob.texi: Document the new module.
48047
48048 2008-12-18  Bruno Haible  <bruno@clisp.org>
48049
48050         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48051         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48052
48053 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48054
48055         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48056         G. Christensen" <tgc@jupiterrise.com>.
48057
48058         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48059         G. Christensen" <tgc@jupiterrise.com>.
48060
48061         * lib/flock.c: Need to include string.h.  Reported by "Tom
48062         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48063         <ebb9@byu.net>.
48064
48065 2008-12-18  Bruno Haible  <bruno@clisp.org>
48066
48067         * m4/locale-ja.m4: New file, from GNU gettext.
48068
48069 2008-12-17  Bruno Haible  <bruno@clisp.org>
48070
48071         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48072         Suggested by Eric Blake.
48073
48074 2008-12-17  Bruno Haible  <bruno@clisp.org>
48075
48076         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48077
48078 2008-12-17  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48081         * modules/mbsinit (Depends-on): Add verify.
48082         Suggested by Paul Eggert.
48083
48084 2008-12-17  Bruno Haible  <bruno@clisp.org>
48085
48086         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48087         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48088         gl_FUNC_MBRTOWC.
48089         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48090         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48091         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48092         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48093         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48094         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48095         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48096         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48097         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48098         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48099         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48100         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48101         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48102         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48103         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48104         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48105         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48106         * modules/trim (configure.ac): Likewise.
48107
48108 2008-12-17  Bruno Haible  <bruno@clisp.org>
48109
48110         * modules/btowc-tests: New file.
48111         * tests/test-btowc1.sh: New file.
48112         * tests/test-btowc2.sh: New file.
48113         * tests/test-btowc.c: New file.
48114
48115         New module 'btowc'.
48116         * lib/wchar.in.h (btowc): New declaration.
48117         * lib/btowc.c: New file.
48118         * m4/btowc.m4: New file.
48119         * modules/btowc: New file.
48120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48121         HAVE_BTOWC.
48122         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48123         * doc/posix-functions/btowc.texi: Document the new module.
48124
48125 2008-12-17  Bruno Haible  <bruno@clisp.org>
48126
48127         New module 'mbsinit'.
48128         * lib/wchar.in.h (mbsinit): New declaration.
48129         * lib/mbsinit.c: New file.
48130         * m4/mbsinit.m4: New file.
48131         * modules/mbsinit: New file.
48132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48133         HAVE_MBSINIT.
48134         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48135         HAVE_MBSINIT.
48136         * doc/posix-functions/mbsinit.texi: Document the new module.
48137
48138 2008-12-16  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/unistd.in.h: Add comment.
48141         * tests/test-environ.c: Don't include <stdlib.h>.
48142
48143 2008-12-16  Bruno Haible  <bruno@clisp.org>
48144
48145         * lib/parse-duration.h (parse_duration): Document return value
48146         convention.
48147         * lib/parse-duration.c: Include specification header first. Add
48148         comments.
48149         (_): Remove macro.
48150         (parse_year_month_day, parse_hour_minute_second): Move side effects
48151         outside of strchr call.
48152         (parse_non_iso8601): Move side effects outside of isspace call.
48153         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48154         call.
48155
48156 2008-12-16  Bruno Haible  <bruno@clisp.org>
48157
48158         * tests/test-parse-duration.sh: Produce no output when the test
48159         succeeds.
48160
48161 2008-12-16  Bruno Haible  <bruno@clisp.org>
48162
48163         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48164         expressions.
48165
48166 2008-12-15  Bruno Haible  <bruno@clisp.org>
48167
48168         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48169         * doc/glibc-functions/flistxattr.texi: Likewise.
48170         * doc/glibc-functions/fopencookie.texi: Likewise.
48171         * doc/glibc-functions/fremovexattr.texi: Likewise.
48172         * doc/glibc-functions/fsetxattr.texi: Likewise.
48173         * doc/glibc-functions/getxattr.texi: Likewise.
48174         * doc/glibc-functions/lgetxattr.texi: Likewise.
48175         * doc/glibc-functions/listxattr.texi: Likewise.
48176         * doc/glibc-functions/llistxattr.texi: Likewise.
48177         * doc/glibc-functions/lremovexattr.texi: Likewise.
48178         * doc/glibc-functions/lsetxattr.texi: Likewise.
48179         * doc/glibc-functions/removexattr.texi: Likewise.
48180         * doc/glibc-functions/setxattr.texi: Likewise.
48181         * doc/posix-functions/open_memstream.texi: Likewise.
48182
48183 2008-12-15  Eric Blake  <ebb9@byu.net>
48184
48185         Update doc for cygwin 1.7.
48186         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48187         functions.
48188         * doc/posix-functions/fchmodat.texi: Likewise.
48189         * doc/posix-functions/fchownat.texi: Likewise.
48190         * doc/posix-functions/fdopendir.texi: Likewise.
48191         * doc/posix-functions/fmemopen.texi: Likewise.
48192         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48193         * doc/posix-functions/fstatat.texi: Likewise.
48194         * doc/posix-functions/futimens.texi: Likewise.
48195         * doc/posix-functions/gai_strerror.texi: Likewise.
48196         * doc/posix-functions/getaddrinfo.texi: Likewise.
48197         * doc/posix-functions/getnameinfo.texi: Likewise.
48198         * doc/posix-functions/if_freenameindex.texi: Likewise.
48199         * doc/posix-functions/if_indextoname.texi: Likewise.
48200         * doc/posix-functions/if_nameindex.texi: Likewise.
48201         * doc/posix-functions/if_nametoindex.texi: Likewise.
48202         * doc/posix-functions/insque.texi: Likewise.
48203         * doc/posix-functions/linkat.texi: Likewise.
48204         * doc/posix-functions/llrint.texi: Likewise.
48205         * doc/posix-functions/llrintf.texi: Likewise.
48206         * doc/posix-functions/llrintl.texi: Likewise.
48207         * doc/posix-functions/lockf.texi: Likewise.
48208         * doc/posix-functions/lrintl.texi: Likewise.
48209         * doc/posix-functions/mkdirat.texi: Likewise.
48210         * doc/posix-functions/mkfifoat.texi: Likewise.
48211         * doc/posix-functions/mknodat.texi: Likewise.
48212         * doc/posix-functions/mq_close.texi: Likewise.
48213         * doc/posix-functions/mq_getattr.texi: Likewise.
48214         * doc/posix-functions/mq_notify.texi: Likewise.
48215         * doc/posix-functions/mq_open.texi: Likewise.
48216         * doc/posix-functions/mq_receive.texi: Likewise.
48217         * doc/posix-functions/mq_send.texi: Likewise.
48218         * doc/posix-functions/mq_setattr.texi: Likewise.
48219         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48220         * doc/posix-functions/mq_timedsend.texi: Likewise.
48221         * doc/posix-functions/mq_unlink.texi: Likewise.
48222         * doc/posix-functions/open_memstream.texi: Likewise.
48223         * doc/posix-functions/openat.texi: Likewise.
48224         * doc/posix-functions/posix_fadvise.texi: Likewise.
48225         * doc/posix-functions/posix_fallocate.texi: Likewise.
48226         * doc/posix-functions/posix_madvise.texi: Likewise.
48227         * doc/posix-functions/posix_memalign.texi: Likewise.
48228         * doc/posix-functions/posix_openpt.texi: Likewise.
48229         * doc/posix-functions/readlinkat.texi: Likewise.
48230         * doc/posix-functions/remque.texi: Likewise.
48231         * doc/posix-functions/renameat.texi: Likewise.
48232         * doc/posix-functions/rintl.texi: Likewise.
48233         * doc/posix-functions/sem_unlink.texi: Likewise.
48234         * doc/posix-functions/shm_open.texi: Likewise.
48235         * doc/posix-functions/shm_unlink.texi: Likewise.
48236         * doc/posix-functions/signgam.texi: Likewise.
48237         * doc/posix-functions/sigset.texi: Likewise.
48238         * doc/posix-functions/stpcpy.texi: Likewise.
48239         * doc/posix-functions/stpncpy.texi: Likewise.
48240         * doc/posix-functions/strerror.texi: Likewise.
48241         * doc/posix-functions/strtod.texi: Likewise.
48242         * doc/posix-functions/symlinkat.texi: Likewise.
48243         * doc/posix-functions/unlinkat.texi: Likewise.
48244         * doc/posix-functions/utimensat.texi: Likewise.
48245         * doc/glibc-functions/bindresvport.texi: Likewise.
48246         * doc/glibc-functions/dn_expand.texi: Likewise.
48247         * doc/glibc-functions/exp10.texi: Likewise.
48248         * doc/glibc-functions/exp10f.texi: Likewise.
48249         * doc/glibc-functions/fgetxattr.texi: Likewise.
48250         * doc/glibc-functions/flistxattr.texi: Likewise.
48251         * doc/glibc-functions/fopencookie.texi: Likewise.
48252         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48253         * doc/glibc-functions/fremovexattr.texi: Likewise.
48254         * doc/glibc-functions/fsetxattr.texi: Likewise.
48255         * doc/glibc-functions/getifaddrs.texi: Likewise.
48256         * doc/glibc-functions/getxattr.texi: Likewise.
48257         * doc/glibc-functions/lgetxattr.texi: Likewise.
48258         * doc/glibc-functions/listxattr.texi: Likewise.
48259         * doc/glibc-functions/llistxattr.texi: Likewise.
48260         * doc/glibc-functions/lremovexattr.texi: Likewise.
48261         * doc/glibc-functions/lsetxattr.texi: Likewise.
48262         * doc/glibc-functions/pow10.texi: Likewise.
48263         * doc/glibc-functions/pow10f.texi: Likewise.
48264         * doc/glibc-functions/rcmd_af.texi: Likewise.
48265         * doc/glibc-functions/removexattr.texi: Likewise.
48266         * doc/glibc-functions/res_init.texi: Likewise.
48267         * doc/glibc-functions/res_mkquery.texi: Likewise.
48268         * doc/glibc-functions/res_query.texi: Likewise.
48269         * doc/glibc-functions/res_querydomain.texi: Likewise.
48270         * doc/glibc-functions/res_send.texi: Likewise.
48271         * doc/glibc-functions/rresvport_af.texi: Likewise.
48272         * doc/glibc-functions/setxattr.texi: Likewise.
48273         * doc/glibc-functions/strcasestr.texi: Likewise.
48274
48275 2008-12-15  Bruno Haible  <bruno@clisp.org>
48276
48277         Fix compilation error on OSF/1 4.0.
48278         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48279         <sys/time.h>, simply delegate to the system header.
48280         Reported by Daniel Richard G. <oss@teragram.com>.
48281
48282 2008-12-15  Bruno Haible  <bruno@clisp.org>
48283
48284         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48285         * doc/posix-functions/fchmodat.texi: Likewise.
48286         * doc/posix-functions/fchownat.texi: Likewise.
48287         * doc/posix-functions/fdopendir.texi: Likewise.
48288         * doc/posix-functions/fstatat.texi: Likewise.
48289         * doc/posix-functions/mkdirat.texi: Likewise.
48290         * doc/posix-functions/unlinkat.texi: Likewise.
48291
48292 2008-12-14  Bruno Haible  <bruno@clisp.org>
48293
48294         Update doc for POSIX:2008.
48295         * doc/posix-functions/faccessat.texi: New file.
48296         * doc/posix-functions/fchmodat.texi: New file.
48297         * doc/posix-functions/fchownat.texi: New file.
48298         * doc/posix-functions/fdopendir.texi: New file.
48299         * doc/posix-functions/fstatat.texi: New file.
48300         * doc/posix-functions/futimens.texi: New file.
48301         * doc/posix-functions/linkat.texi: New file.
48302         * doc/posix-functions/mkdirat.texi: New file.
48303         * doc/posix-functions/mkfifoat.texi: New file.
48304         * doc/posix-functions/mknodat.texi: New file.
48305         * doc/posix-functions/open_wmemstream.texi: New file.
48306         * doc/posix-functions/openat.texi: New file.
48307         * doc/posix-functions/psiginfo.texi: New file.
48308         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48309         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48310         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48311         * doc/posix-functions/readlinkat.texi: New file.
48312         * doc/posix-functions/renameat.texi: New file.
48313         * doc/posix-functions/strerror_l.texi: New file.
48314         * doc/posix-functions/symlinkat.texi: New file.
48315         * doc/posix-functions/unlinkat.texi: New file.
48316         * doc/posix-functions/utimensat.texi: New file.
48317         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48318
48319 2008-12-14  Bruno Haible  <bruno@clisp.org>
48320
48321         Update doc for POSIX:2008.
48322         * doc/posix-functions/alphasort.texi: Renamed from
48323         doc/glibc-functions/alphasort.texi.
48324         * doc/posix-functions/dirfd.texi: Renamed from
48325         doc/glibc-functions/dirfd.texi.
48326         * doc/posix-functions/dprintf.texi: Renamed from
48327         doc/glibc-functions/dprintf.texi.
48328         * doc/posix-functions/duplocale.texi: Renamed from
48329         doc/glibc-functions/duplocale.texi.
48330         * doc/posix-functions/fexecve.texi: Renamed from
48331         doc/glibc-functions/fexecve.texi.
48332         * doc/posix-functions/fmemopen.texi: Renamed from
48333         doc/glibc-functions/fmemopen.texi.
48334         * doc/posix-functions/freelocale.texi: Renamed from
48335         doc/glibc-functions/freelocale.texi.
48336         * doc/posix-functions/getdate_err.texi: Renamed from
48337         doc/glibc-functions/getdate_err.texi.
48338         * doc/posix-functions/isalnum_l.texi: Renamed from
48339         doc/glibc-functions/isalnum_l.texi.
48340         * doc/posix-functions/isalpha_l.texi: Renamed from
48341         doc/glibc-functions/isalpha_l.texi.
48342         * doc/posix-functions/isblank_l.texi: Renamed from
48343         doc/glibc-functions/isblank_l.texi.
48344         * doc/posix-functions/iscntrl_l.texi: Renamed from
48345         doc/glibc-functions/iscntrl_l.texi.
48346         * doc/posix-functions/isdigit_l.texi: Renamed from
48347         doc/glibc-functions/isdigit_l.texi.
48348         * doc/posix-functions/isgraph_l.texi: Renamed from
48349         doc/glibc-functions/isgraph_l.texi.
48350         * doc/posix-functions/islower_l.texi: Renamed from
48351         doc/glibc-functions/islower_l.texi.
48352         * doc/posix-functions/isprint_l.texi: Renamed from
48353         doc/glibc-functions/isprint_l.texi.
48354         * doc/posix-functions/ispunct_l.texi: Renamed from
48355         doc/glibc-functions/ispunct_l.texi.
48356         * doc/posix-functions/isspace_l.texi: Renamed from
48357         doc/glibc-functions/isspace_l.texi.
48358         * doc/posix-functions/isupper_l.texi: Renamed from
48359         doc/glibc-functions/isupper_l.texi.
48360         * doc/posix-functions/iswalnum_l.texi: Renamed from
48361         doc/glibc-functions/iswalnum_l.texi.
48362         * doc/posix-functions/iswalpha_l.texi: Renamed from
48363         doc/glibc-functions/iswalpha_l.texi.
48364         * doc/posix-functions/iswblank_l.texi: Renamed from
48365         doc/glibc-functions/iswblank_l.texi.
48366         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48367         doc/glibc-functions/iswcntrl_l.texi.
48368         * doc/posix-functions/iswctype_l.texi: Renamed from
48369         doc/glibc-functions/iswctype_l.texi.
48370         * doc/posix-functions/iswdigit_l.texi: Renamed from
48371         doc/glibc-functions/iswdigit_l.texi.
48372         * doc/posix-functions/iswgraph_l.texi: Renamed from
48373         doc/glibc-functions/iswgraph_l.texi.
48374         * doc/posix-functions/iswlower_l.texi: Renamed from
48375         doc/glibc-functions/iswlower_l.texi.
48376         * doc/posix-functions/iswprint_l.texi: Renamed from
48377         doc/glibc-functions/iswprint_l.texi.
48378         * doc/posix-functions/iswpunct_l.texi: Renamed from
48379         doc/glibc-functions/iswpunct_l.texi.
48380         * doc/posix-functions/iswspace_l.texi: Renamed from
48381         doc/glibc-functions/iswspace_l.texi.
48382         * doc/posix-functions/iswupper_l.texi: Renamed from
48383         doc/glibc-functions/iswupper_l.texi.
48384         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48385         doc/glibc-functions/iswxdigit_l.texi.
48386         * doc/posix-functions/isxdigit_l.texi: Renamed from
48387         doc/glibc-functions/isxdigit_l.texi.
48388         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48389         doc/glibc-functions/mbsnrtowcs.texi.
48390         * doc/posix-functions/mkdtemp.texi: Renamed from
48391         doc/glibc-functions/mkdtemp.texi.
48392         * doc/posix-functions/newlocale.texi: Renamed from
48393         doc/glibc-functions/newlocale.texi.
48394         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48395         doc/glibc-functions/nl_langinfo_l.texi.
48396         * doc/posix-functions/open_memstream.texi: Renamed from
48397         doc/glibc-functions/open_memstream.texi.
48398         * doc/posix-functions/opterr.texi: Renamed from
48399         doc/glibc-functions/opterr.texi.
48400         * doc/posix-functions/optind.texi: Renamed from
48401         doc/glibc-functions/optind.texi.
48402         * doc/posix-functions/optopt.texi: Renamed from
48403         doc/glibc-functions/optopt.texi.
48404         * doc/posix-functions/psignal.texi: Renamed from
48405         doc/glibc-functions/psignal.texi.
48406         * doc/posix-functions/scandir.texi: Renamed from
48407         doc/glibc-functions/scandir.texi.
48408         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48409         doc/glibc-functions/sched_get_priority_min.texi.
48410         * doc/posix-functions/signgam.texi: Renamed from
48411         doc/glibc-functions/signgam.texi.
48412         * doc/posix-functions/stpcpy.texi: Renamed from
48413         doc/glibc-functions/stpcpy.texi.
48414         * doc/posix-functions/stpncpy.texi: Renamed from
48415         doc/glibc-functions/stpncpy.texi.
48416         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48417         doc/glibc-functions/strcasecmp_l.texi.
48418         * doc/posix-functions/strcoll_l.texi: Renamed from
48419         doc/glibc-functions/strcoll_l.texi.
48420         * doc/posix-functions/strfmon_l.texi: Renamed from
48421         doc/glibc-functions/strfmon_l.texi.
48422         * doc/posix-functions/strftime_l.texi: Renamed from
48423         doc/glibc-functions/strftime_l.texi.
48424         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48425         doc/glibc-functions/strncasecmp_l.texi.
48426         * doc/posix-functions/strndup.texi: Renamed from
48427         doc/glibc-functions/strndup.texi.
48428         * doc/posix-functions/strnlen.texi: Renamed from
48429         doc/glibc-functions/strnlen.texi.
48430         * doc/posix-functions/strsignal.texi: Renamed from
48431         doc/glibc-functions/strsignal.texi.
48432         * doc/posix-functions/strxfrm_l.texi: Renamed from
48433         doc/glibc-functions/strxfrm_l.texi.
48434         * doc/posix-functions/timer_gettime.texi: Renamed from
48435         doc/glibc-functions/timer_gettime.texi.
48436         * doc/posix-functions/tolower_l.texi: Renamed from
48437         doc/glibc-functions/tolower_l.texi.
48438         * doc/posix-functions/toupper_l.texi: Renamed from
48439         doc/glibc-functions/toupper_l.texi.
48440         * doc/posix-functions/towctrans_l.texi: Renamed from
48441         doc/glibc-functions/towctrans_l.texi.
48442         * doc/posix-functions/towlower_l.texi: Renamed from
48443         doc/glibc-functions/towlower_l.texi.
48444         * doc/posix-functions/towupper_l.texi: Renamed from
48445         doc/glibc-functions/towupper_l.texi.
48446         * doc/posix-functions/uselocale.texi: Renamed from
48447         doc/glibc-functions/uselocale.texi.
48448         * doc/posix-functions/vdprintf.texi: Renamed from
48449         doc/glibc-functions/vdprintf.texi.
48450         * doc/posix-functions/wcpcpy.texi:
48451         Renamed from doc/glibc-functions/wcpcpy.texi.
48452         * doc/posix-functions/wcpncpy.texi: Renamed from
48453         doc/glibc-functions/wcpncpy.texi.
48454         * doc/posix-functions/wcscasecmp.texi: Renamed from
48455         doc/glibc-functions/wcscasecmp.texi.
48456         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48457         doc/glibc-functions/wcscasecmp_l.texi.
48458         * doc/posix-functions/wcscoll_l.texi: Renamed from
48459         doc/glibc-functions/wcscoll_l.texi.
48460         * doc/posix-functions/wcsdup.texi: Renamed from
48461         doc/glibc-functions/wcsdup.texi.
48462         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48463         doc/glibc-functions/wcsncasecmp.texi.
48464         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48465         doc/glibc-functions/wcsncasecmp_l.texi.
48466         * doc/posix-functions/wcsnlen.texi: Renamed from
48467         doc/glibc-functions/wcsnlen.texi.
48468         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48469         doc/glibc-functions/wcsnrtombs.texi.
48470         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48471         doc/glibc-functions/wcsxfrm_l.texi.
48472         * doc/posix-functions/wctrans_l.texi: Renamed from
48473         doc/glibc-functions/wctrans_l.texi.
48474         * doc/posix-functions/wctype_l.texi: Renamed from
48475         doc/glibc-functions/wctype_l.texi.
48476         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48477         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48478         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48479         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48480         these subsections.
48481         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48482         Remove sections.
48483
48484 2008-12-14  Bruno Haible  <bruno@clisp.org>
48485
48486         Update doc for POSIX:2008.
48487         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48488
48489 2008-12-14  Bruno Haible  <bruno@clisp.org>
48490
48491         Update doc for POSIX:2008.
48492         * doc/pastposix-functions/bcmp.texi: Renamed from
48493         doc/posix-functions/bcmp.texi.
48494         * doc/pastposix-functions/bcopy.texi: Renamed from
48495         doc/posix-functions/bcopy.texi.
48496         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48497         doc/posix-functions/bsd_signal.texi.
48498         * doc/pastposix-functions/bzero.texi: Renamed from
48499         doc/posix-functions/bzero.texi.
48500         * doc/pastposix-functions/ecvt.texi: Renamed from
48501         doc/posix-functions/ecvt.texi.
48502         * doc/pastposix-functions/fcvt.texi: Renamed from
48503         doc/posix-functions/fcvt.texi.
48504         * doc/pastposix-functions/ftime.texi: Renamed from
48505         doc/posix-functions/ftime.texi.
48506         * doc/pastposix-functions/gcvt.texi: Renamed from
48507         doc/posix-functions/gcvt.texi.
48508         * doc/pastposix-functions/getcontext.texi: Renamed from
48509         doc/posix-functions/getcontext.texi.
48510         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48511         doc/posix-functions/gethostbyaddr.texi.
48512         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48513         doc/posix-functions/gethostbyname.texi.
48514         * doc/pastposix-functions/getwd.texi: Renamed from
48515         doc/posix-functions/getwd.texi.
48516         * doc/pastposix-functions/h_errno.texi: Renamed from
48517         doc/posix-functions/h_errno.texi.
48518         * doc/pastposix-functions/index.texi: Renamed from
48519         doc/posix-functions/index.texi.
48520         * doc/pastposix-functions/makecontext.texi: Renamed from
48521         doc/posix-functions/makecontext.texi.
48522         * doc/pastposix-functions/mktemp.texi: Renamed from
48523         doc/posix-functions/mktemp.texi.
48524         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48525         doc/posix-functions/pthread_attr_getstackaddr.texi.
48526         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48527         doc/posix-functions/pthread_attr_setstackaddr.texi.
48528         * doc/pastposix-functions/rindex.texi: Renamed from
48529         doc/posix-functions/rindex.texi.
48530         * doc/pastposix-functions/scalb.texi: Renamed from
48531         doc/posix-functions/scalb.texi.
48532         * doc/pastposix-functions/setcontext.texi: Renamed from
48533         doc/posix-functions/setcontext.texi.
48534         * doc/pastposix-functions/swapcontext.texi: Renamed from
48535         doc/posix-functions/swapcontext.texi.
48536         * doc/pastposix-functions/ualarm.texi: Renamed from
48537         doc/posix-functions/ualarm.texi.
48538         * doc/pastposix-functions/usleep.texi: Renamed from
48539         doc/posix-functions/usleep.texi.
48540         * doc/pastposix-functions/vfork.texi: Renamed from
48541         doc/posix-functions/vfork.texi.
48542         * doc/pastposix-functions/wcswcs.texi: Renamed from
48543         doc/posix-functions/wcswcs.texi.
48544         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48545         (Function Substitutes): Update.
48546
48547 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48548
48549         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48550         m4/strerror.m4.
48551
48552 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48553             Bruno Haible  <bruno@clisp.org>
48554
48555         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48556
48557 2008-12-13  Bruno Haible  <bruno@clisp.org>
48558
48559         * modules/strtoull (Depends-on): Remove unistd.
48560
48561 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48562
48563         * modules/strtoull (Depends-on): Add stdlib.
48564
48565 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48566
48567         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48568
48569 2008-12-10  Jim Meyering  <meyering@redhat.com>
48570
48571         gl_ASSERT: don't say assertions are disabled when they're not
48572         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48573         "checking whether to enable assertions... no", when they are in
48574         fact enabled.  This is solely a bug in the output of configure.
48575         In spite of saying "no", NDEBUG was not defined in that case.
48576         Also, as noted by Eric Blake, leave assertions enabled upon
48577         --enable-assert=INVALID.
48578
48579 2008-12-10  Bruno Haible  <bruno@clisp.org>
48580
48581         Change MODULES.html to refer to POSIX:2008 where possible.
48582         * MODULES.html.sh (POSIX2008_URL): New variable.
48583         (posix_headers): Remove sys/timeb, ucontext.
48584         (posix2001_headers): New variable.
48585         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48586         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48587         index, makecontext, mktemp, pthread_attr_getstackaddr,
48588         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48589         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48590         (posix2001_functions): New variable.
48591         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48592         otherwise.
48593
48594 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48595
48596         add missing include to parse-duration.c
48597         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48598         * modules/parse-duration (Depends-on): Add xalloc.
48599
48600         fix sed script reading maint.mk
48601         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48602         (syntax-check-rules): Use it.
48603
48604 2008-12-09  Bruno Haible  <bruno@clisp.org>
48605
48606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48607         MacOS X 10.4/PowerPC.
48608         Reported by Simon Josefsson.
48609
48610 2008-12-08  Jim Meyering  <meyering@redhat.com>
48611
48612         work around mingw's lack of some S_IF definitions
48613         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48614         Reported by Simon Josefsson.
48615
48616 2008-12-08  Bruno Haible  <bruno@clisp.org>
48617
48618         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48619         applied to variables. Needed on MacOS X 10.4/PowerPC.
48620         Reported by Simon Josefsson.
48621
48622 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48623         and Eric Blake  <ebb9@byu.net>
48624
48625         assert: honor --enable-assert
48626         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48627         order to honor --enable-assert, rather than treating it as a
48628         synonym for --disable-assert.
48629
48630 2008-12-08  Jim Meyering  <meyering@redhat.com>
48631
48632         * lib/posixtm.c: Remove now-useless declaration of mktime.
48633
48634         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48635
48636 2008-12-07  Bruno Haible  <bruno@clisp.org>
48637
48638         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48639         test_once): Mark functions as static.
48640         * tests/test-tls.c (test_tls): Likewise.
48641
48642 2008-12-07  Bruno Haible  <bruno@clisp.org>
48643
48644         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48645         iconv_register_autodetect.
48646
48647 2008-12-07  Jim Meyering  <meyering@redhat.com>
48648
48649         posixtm.c: avoid a warning
48650         * lib/posixtm.c (posixtime): Don't initialize tm0.
48651         It's no longer needed to placate gcc4's -Wuninitialized,
48652         and the attempt to placate would elicit a new warning.
48653
48654         unicodeio.c: mark unused parameters
48655         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48656         (fallback_failure_callback): Likewise.
48657
48658 2008-12-07  Bruno Haible  <bruno@clisp.org>
48659
48660         * gnulib-tool (func_create_testdir): When building the tests
48661         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48662         Reported by Simon Josefsson.
48663
48664 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48665
48666         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48667
48668 2008-12-06  Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48671         Suggested by Eric Blake.
48672
48673 2008-12-06  Bruno Haible  <bruno@clisp.org>
48674
48675         Fix a c-stack test failure on MacOS X.
48676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48677         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48678         handler for SIGBUS as well.
48679         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48680         install a signal handler for SIGBUS as well.
48681         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48682
48683 2008-12-06  Bruno Haible  <bruno@clisp.org>
48684
48685         Advocacy documentation.
48686         * doc/gnulib-intro.texi (Benefits): New section.
48687         * doc/gnulib.texi: Update.
48688
48689 2008-12-06  Bruno Haible  <bruno@clisp.org>
48690
48691         Document the 'manywarnings' module.
48692         * doc/manywarnings.texi: New file.
48693         * doc/gnulib.texi: Include it.
48694
48695 2008-12-05  Eric Blake  <ebb9@byu.net>
48696
48697         tests: silence some gcc warnings
48698         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48699         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48700         type mismatches.
48701
48702 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48703             Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48706
48707 2008-11-29  Jim Meyering  <meyering@redhat.com>
48708
48709         unicodeio.c: mark unused parameters
48710         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48711         (fallback_failure_callback): Likewise.
48712
48713         fts: fix a thinko
48714         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48715         (set_stat_type): Return S_IF*-valued "type" directly.
48716         Prompted by James Youngman's spotting a related bug.
48717         Confirmed by further testing through find.
48718
48719         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48720         * lib/fts.c (D_TYPE): Define.
48721         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48722         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48723         (s_ifmt_shift_bits): New function.
48724         (set_stat_type): New function.
48725         (fts_build): When not calling fts_stat, call set_stat_type
48726         to propagate dirent.d_type info to fts_read caller.
48727         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48728         fts_statp->st_mode type information may be valid.
48729
48730 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48731
48732         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48733         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48734         <sds@gnu.org>.
48735
48736 2008-11-20  Bruno Haible  <bruno@clisp.org>
48737
48738         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48739         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48740         INCLUDE_NEXT.
48741         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48742         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48743         * modules/math (Makefile.am): Substitute
48744         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48745         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48746
48747 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48748             Bruno Haible  <bruno@clisp.org>
48749
48750         * lib/stdint.in.h: Define all type macros so that their expansion is
48751         a single typedef'ed token. Fixes a compilation failure in Boost which
48752         does "using ::int8_t;".
48753
48754 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48755
48756         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48757         gl_MANYWARN_ALL_GCC.
48758         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48759         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48760         * modules/manywarnings: New file.
48761         * MODULES.html.sh: Mention manywarnings module.
48762
48763 2008-11-18  Bruno Haible  <bruno@clisp.org>
48764
48765         * doc/gnulib-tool.texi (Unit tests): New section.
48766
48767 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48768
48769         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48770         paths like 'lib/po/foo.po'.
48771
48772 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48773
48774         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48775         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48776
48777 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48778
48779         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48780         parameter works.
48781
48782 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48783
48784         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48785
48786 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48787
48788         * modules/parse-duration-tests: New file.
48789         * tests/test-parse-duration.sh: New file.
48790         * tests/test-parse-duration.c: New file.
48791
48792         New module 'parse-duration'.
48793         * lib/parse-duration.h: New file.
48794         * lib/parse-duration.c: New file.
48795         * modules/parse-duration: New file.
48796
48797 2008-11-17  Bruno Haible  <bruno@clisp.org>
48798
48799         * tests/test-select-out.sh: Comment out the first pipe test.
48800         Reported by Simon Josefsson.
48801
48802 2008-11-17  Bruno Haible  <bruno@clisp.org>
48803
48804         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48805         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48806         gl_HOSTENT.
48807
48808 2008-11-17  Bruno Haible  <bruno@clisp.org>
48809
48810         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48811         -lnetwork and -lnet. Needed for Haiku and BeOS.
48812
48813 2008-11-16  Bruno Haible  <bruno@clisp.org>
48814
48815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48816
48817 2008-11-16  Bruno Haible  <bruno@clisp.org>
48818
48819         Avoid test failure on Haiku.
48820         * tests/test-fsync.c: Include <errno.h>.
48821         (main): Don't require that fsync (0) fails.
48822
48823 2008-11-15  Bruno Haible  <bruno@clisp.org>
48824
48825         New module 'hostent'.
48826         * modules/hostent: New file.
48827         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48828
48829 2008-11-15  Bruno Haible  <bruno@clisp.org>
48830
48831         New module 'servent'.
48832         * modules/servent: New file.
48833         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48834
48835 2008-11-15  Bruno Haible  <bruno@clisp.org>
48836
48837         Avoid generating same test program with two different rules.
48838         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48839         test-frexp to test-frexp-nolibm.
48840         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48841         test-frexpl to test-frexpl-nolibm.
48842
48843 2008-11-15  Bruno Haible  <bruno@clisp.org>
48844
48845         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
48846         $(FREXPL_LIBM).
48847
48848 2008-11-15  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/netdb.in.h: Activate the definitions also when the system's
48851         <netdb.h> has 'struct addrinfo'.
48852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
48853         EAI_OVERFLOW or AI_NUMERICSERV.
48854         * doc/posix-headers/netdb.texi: Document the problem.
48855
48856 2008-11-15  Bruno Haible  <bruno@clisp.org>
48857
48858         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
48859
48860         Make the 'sched' module work on platforms where <sched.h> exists but
48861         is incomplete (such as Haiku).
48862         * lib/sched.in.h; Include the system's <sched.h> if it exists.
48863         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
48864         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
48865         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
48866         HAVE_STRUCT_SCHED_PARAM.
48867         * modules/sched (Depends-on): Add include_next.
48868         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
48869         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
48870         * doc/posix-headers/sched.texi: Document the issue.
48871
48872 2008-11-13  Jim Meyering  <meyering@redhat.com>
48873
48874         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
48875         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
48876         test would fail due to the difference in the Report bugs to ...
48877         line.  The expected address is empty, "<>", while the actual
48878         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
48879
48880 2008-11-12  Bruno Haible  <bruno@clisp.org>
48881
48882         lstat: don't compile lstat.c on systems lacking lstat
48883         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
48884         which don't have lstat; this is handled by lib/sys_stat.in.h already.
48885         Reported by Daniel P. Berrange via Jim Meyering.
48886
48887 2008-11-12  Jim Meyering  <meyering@redhat.com>
48888
48889         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
48890
48891 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48892
48893         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
48894         instead.
48895
48896 2008-11-12  Bruno Haible  <bruno@clisp.org>
48897
48898         * lib/unicodeio.c: Include unistr.h.
48899         (utf8_wctomb): Remove function.
48900         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
48901
48902 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48903
48904         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
48905         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
48906         <bruno@clisp.org>.
48907         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
48908
48909 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48910
48911         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
48912         * doc/gnulib.texi: Add section for warnings.
48913
48914 2008-11-11  Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/sockets.h: Add a comment.
48917
48918 2008-11-11  Karl Berry  <karl@gnu.org>
48919
48920         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
48921
48922 2008-11-11  Eric Blake  <ebb9@byu.net>
48923
48924         fdl.texi: avoid git symlinks
48925         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
48926
48927 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48928
48929         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
48930
48931 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48932
48933         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
48934         (gl_WARN_ADD): Substitute $2 if literal.
48935
48936 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48937
48938         * m4/warning.m4: Remove.
48939
48940 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48941
48942         * m4/warnings.m4: Almost complete rewrite. :-)
48943
48944 2008-11-10  Simon Josefsson  <simon@josefsson.org>
48945
48946         * modules/warnings: New module.
48947         * m4/warnings.m4: New file.
48948         * MODULES.html.sh: Mention warnings module.
48949         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
48950         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48951
48952 2008-11-10  Eric Blake  <ebb9@byu.net>
48953
48954         fdl.texi: make a symlink to the latest version
48955         * doc/standards.texi: Revert today's earlier change.
48956         * doc/fdl-1.2.texi: Rename from old fdl.texi...
48957         * doc/fdl.texi: ...and replace this with a symlink to the newer
48958         fdl-1.3.texi.
48959
48960 2008-11-10  Bruno Haible  <bruno@clisp.org>
48961
48962         * tests/test-select-fd.c (main): Accept the result file name as fourth
48963         argument.
48964         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
48965         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
48966
48967 2008-11-10  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
48970         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
48971         as autoconf-substituted macros.
48972         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
48973         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
48974         gl_NETDB_H_DEFAULTS. Set these variables.
48975         * modules/netdb (Makefile.am): Substitute these variables.
48976
48977 2008-11-10  Eric Blake  <ebb9@byu.net>
48978
48979         standards.texi: include correct file for FDL 1.3
48980         * doc/standards.texi (GNU Free Documentation License): Change
48981         include file to pull in FDL 1.3, not 1.2.
48982
48983         fdl.texi: revert accidental change to license
48984         * doc/fdl.texi: This is FDL 1.2, not 1.3.
48985
48986 2008-11-10  Bruno Haible  <bruno@clisp.org>
48987
48988         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
48989         cross-compiling guesses also when the native compile gives no result.
48990
48991 2008-11-10  Bruno Haible  <bruno@clisp.org>
48992
48993         * lib/spawni.c (__spawni): Force variable into the stack.
48994
48995 2008-11-10  Bruno Haible  <bruno@clisp.org>
48996
48997         Add support for Haiku.
48998         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
48999         glibc and BeOS, but also on Haiku.
49000         * lib/fpurge.c (fpurge): Likewise.
49001         * lib/freadable.c (freadable): Likewise.
49002         * lib/freadahead.c (freadahead): Likewise.
49003         * lib/freading.c (freading): Likewise.
49004         * lib/freadptr.c (freadptr): Likewise.
49005         * lib/freadseek.c (freadptrinc): Likewise.
49006         * lib/fseeko.c (rpl_fseeko): Likewise.
49007         * lib/fseterr.c (fseterr): Likewise.
49008         * lib/fwritable.c (fwritable): Likewise.
49009         * lib/fwriting.c (fwriting): Likewise.
49010         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49011
49012 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49013
49014         * lib/config.charset: Treat Haiku like BeOS.
49015
49016 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49017
49018         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49019         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49020
49021 2008-11-08  Bruno Haible  <bruno@clisp.org>
49022
49023         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49024         AC_CACHE_CHECK.
49025
49026 2008-11-08  Bruno Haible  <bruno@clisp.org>
49027
49028         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49029
49030 2008-11-08  Bruno Haible  <bruno@clisp.org>
49031
49032         * tests/test-select-fd.c: New file.
49033         * tests/test-select-in.sh: New file.
49034         * tests/test-select-out.sh: New file.
49035         * tests/test-select-stdin.c: New file.
49036         * modules/select-tests (Files): Add the new files.
49037         (Depends-on): Add gettimeofday.
49038         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49039         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49040         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49041
49042 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49043             Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49046
49047 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49048
49049         * build-aux/pmccabe2html: Added support for C++ source files.
49050
49051 2008-11-05  Ben Pfaff  <blp@gnu.org>
49052
49053         Fix lib/close.c build on Windows.
49054         * modules/close (Files): Add lib/w32sock.h.
49055
49056 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49057
49058         Accept Bison's NEWS format.
49059         * build-aux/announce-gen (print_news_deltas): Tweak
49060         $re_prefix.
49061
49062 2008-11-04  Bruno Haible  <bruno@clisp.org>
49063
49064         * modules/random_r (Maintainer): Add glibc.
49065
49066 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49067
49068         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49069         by karl@freefriends.org (Karl Berry).
49070         * doc/alloca.texi: Likewise.
49071         * doc/c-ctype.texi: Likewise.
49072         * doc/c-strcase.texi: Likewise.
49073         * doc/c-strcaseeq.texi: Likewise.
49074         * doc/c-strcasestr.texi: Likewise.
49075         * doc/c-strstr.texi: Likewise.
49076         * doc/c-strtod.texi: Likewise.
49077         * doc/c-strtold.texi: Likewise.
49078         * doc/ctime.texi: Likewise.
49079         * doc/error.texi: Likewise.
49080         * doc/fdl.texi: Likewise.
49081         * doc/gcd.texi: Likewise.
49082         * doc/getdate.texi: Likewise.
49083         * doc/gnulib-intro.texi: Likewise.
49084         * doc/gnulib-tool.texi: Likewise.
49085         * doc/gnulib.texi: Likewise.
49086         * doc/inet_ntoa.texi: Likewise.
49087         * doc/maintain.texi: Likewise.
49088         * doc/make-stds.texi: Likewise.
49089         * doc/quote.texi: Likewise.
49090         * doc/regexprops-generic.texi: Likewise.
49091         * doc/standards.texi: Likewise.
49092         * doc/verify.texi: Likewise.
49093         * doc/visibility.texi: Likewise.
49094         * doc/gnulib.texi (GNU Free Documentation License): Include
49095         fdl-1.3.texi instead of fdl.texi.
49096
49097 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49098
49099         * doc/fdl-1.3.texi: New file, from
49100         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49101         * modules/fdl-1.3: Add.
49102         * MODULES.html.sh: Add fdl-1.3.
49103
49104 2008-11-03  Bruno Haible  <bruno@clisp.org>
49105
49106         Make determination of absolute name of header file work with AIX xlc.
49107         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49108         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49109         preprocessing.
49110         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49111         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49112
49113 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49114
49115         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49116         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49117         <ludo@gnu.org>.
49118
49119 2008-11-02  Bruno Haible  <bruno@clisp.org>
49120
49121         Mark 'strpbrk' obsolete.
49122         * modules/strpbrk (Status, Notice): New sections.
49123         * modules/strtok_r (Depends-on): Add strpbrk.
49124
49125 2008-11-02  Bruno Haible  <bruno@clisp.org>
49126
49127         Mark 'strdup' obsolete.
49128         * modules/strdup (Status, Notice): New sections.
49129         * modules/findprog (Depends-on): Add strdup.
49130         * modules/getaddrinfo (Depends-on): Likewise.
49131         * modules/localename (Depends-on): Likewise.
49132         * modules/relocatable-lib (Depends-on): Likewise.
49133         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49134         * modules/relocatable-prog (Depends-on): Likewise.
49135         * modules/trim (Depends-on): Likewise.
49136         * modules/unictype/gen-ctype (Depends-on): Likewise.
49137         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49138
49139 2008-11-02  Bruno Haible  <bruno@clisp.org>
49140
49141         Mark 'strcspn' obsolete.
49142         * modules/strcspn (Status, Notice): New sections.
49143
49144 2008-11-02  Bruno Haible  <bruno@clisp.org>
49145
49146         Mark 'rmdir' obsolete.
49147         * modules/rmdir (Status, Notice): New sections.
49148         * modules/clean-temp (Depends-on): Add rmdir.
49149         * modules/openat (Depends-on): Likewise.
49150
49151 2008-11-02  Bruno Haible  <bruno@clisp.org>
49152
49153         Mark 'raise' obsolete.
49154         * modules/raise (Status, Notice): New sections.
49155         (Include): Specify <signal.h>.
49156         * modules/stdio (Depends-on): Add raise.
49157         * modules/write (Depends-on): Likewise.
49158
49159 2008-11-02  Bruno Haible  <bruno@clisp.org>
49160
49161         Mark 'memset' obsolete.
49162         * modules/memset (Status, Notice): New sections.
49163
49164 2008-11-02  Bruno Haible  <bruno@clisp.org>
49165
49166         Mark 'memmove' obsolete.
49167         * modules/memmove (Status, Notice): New sections.
49168         * modules/argp (Depends-on): Add memmove.
49169         * modules/argz (Depends-on): Likewise.
49170         * modules/canonicalize (Depends-on): Likewise.
49171         * modules/canonicalize-lgpl (Depends-on): Likewise.
49172         * modules/fts (Depends-on): Likewise.
49173         * modules/getcwd (Depends-on): Likewise.
49174         * modules/human (Depends-on): Likewise.
49175         * modules/regex (Depends-on): Likewise.
49176         * modules/striconveh (Depends-on): Likewise.
49177         * modules/trim (Depends-on): Likewise.
49178         * modules/unistr/u8-move (Depends-on): Likewise.
49179         * modules/unistr/u16-move (Depends-on): Likewise.
49180         * modules/unistr/u32-move (Depends-on): Likewise.
49181
49182 2008-11-02  Bruno Haible  <bruno@clisp.org>
49183
49184         Mark 'memcpy' obsolete.
49185         * modules/memcpy (Status, Notice): New sections.
49186
49187 2008-11-02  Bruno Haible  <bruno@clisp.org>
49188
49189         Mark 'memcmp' obsolete.
49190         * modules/memcmp (Status, Notice): New sections.
49191         * modules/argmatch (Depends-on): Add memchr.
49192         * modules/backupfile (Depends-on): Likewise.
49193         * modules/c-strcasestr (Depends-on): Likewise.
49194         * modules/crypto/des (Depends-on): Likewise.
49195         * modules/csharpcomp (Depends-on): Likewise.
49196         * modules/fnmatch (Depends-on): Likewise.
49197         * modules/git-merge-changelog (Depends-on): Likewise.
49198         * modules/isnand (Depends-on): Likewise.
49199         * modules/isnand-nolibm (Depends-on): Likewise.
49200         * modules/isnanf (Depends-on): Likewise.
49201         * modules/isnanf-nolibm (Depends-on): Likewise.
49202         * modules/isnanl (Depends-on): Likewise.
49203         * modules/isnanl-nolibm (Depends-on): Likewise.
49204         * modules/mbchar (Depends-on): Likewise.
49205         * modules/memcoll (Depends-on): Likewise.
49206         * modules/quotearg (Depends-on): Likewise.
49207         * modules/regex (Depends-on): Likewise.
49208         * modules/relocatable-prog (Depends-on): Likewise.
49209         * modules/same (Depends-on): Likewise.
49210         * modules/signbit (Depends-on): Likewise.
49211         * modules/strcasestr-simple (Depends-on): Likewise.
49212         * modules/unictype/gen-ctype (Depends-on): Likewise.
49213         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49214         * modules/uniname/uniname (Depends-on): Likewise.
49215         * modules/unistr/u8-cmp (Depends-on): Likewise.
49216
49217 2008-11-02  Bruno Haible  <bruno@clisp.org>
49218
49219         Mark 'memchr' obsolete.
49220         * modules/memchr (Status, Notice): New sections.
49221         * modules/argp (Depends-on): Add memchr.
49222         * modules/base64 (Depends-on): Likewise.
49223         * modules/c-strcasestr (Depends-on): Likewise.
49224         * modules/chdir-long (Depends-on): Likewise.
49225         * modules/fnmatch (Depends-on): Likewise.
49226         * modules/getsubopt (Depends-on): Likewise.
49227         * modules/git-merge-changelog (Depends-on): Likewise.
49228         * modules/glob (Depends-on): Likewise.
49229         * modules/strcasestr-simple (Depends-on): Likewise.
49230         * modules/strnlen (Depends-on): Likewise.
49231
49232 2008-11-02  Bruno Haible  <bruno@clisp.org>
49233
49234         Mark 'atexit' obsolete.
49235         * modules/atexit (Status, Notice): New sections.
49236         * modules/chdir-long (Depends-on): Add atexit.
49237         * modules/wait-process (Depends-on): Likewise.
49238
49239 2008-11-02  Bruno Haible  <bruno@clisp.org>
49240
49241         * gnulib-tool: New option --with-obsolete.
49242         (func_usage): Document it.
49243         (func_modules_transitive_closure): Drop obsolete dependencies if
49244         incobsolete is not true.
49245         (func_import): Read and save the incobsolete variable to the cache.
49246
49247 2008-11-02  Bruno Haible  <bruno@clisp.org>
49248
49249         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49250         * gnulib-tool: New option --extract-status.
49251         (func_usage): Document it.
49252         (sed_extract_prog): Recognize it.
49253         (func_get_status): New function.
49254
49255 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49256
49257         * modules/sockets (License): Change from LGPL to LGPLv2+.
49258
49259 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49260
49261         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49262
49263 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49264
49265         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49266         Mention times and sys_times.
49267         * modules/sys_times, modules/sys_times-tests: New modules.
49268         * modules/times, modules/times-tests: Likewise
49269         * m4/sys_times_h.m4: New file.
49270         * lib/sys_times.in.h: Likewise
49271         * lib/times.c: Likewise.
49272         * tests/test-sys_times.c: Likewise.
49273         * tests/test-times.c: Likewise.
49274         * doc/posix-headers/sys_times.texi: Update.
49275         * doc/posix-functions/times.texi: Update.
49276
49277 2008-10-28  Jim Meyering  <meyering@redhat.com>
49278
49279         * modules/tempname (Depends-on): Add lstat.
49280
49281         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49282
49283 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49284
49285         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49286         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49287         using idiom used elsewhere in gnulib.
49288
49289 2008-10-27  Jim Meyering  <meyering@redhat.com>
49290
49291         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49292
49293 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49294
49295         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49296         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49297         programs.
49298         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49299
49300 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49301
49302         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49303
49304 2008-10-27  Bruno Haible  <bruno@clisp.org>
49305
49306         * tests/test-lstat.c: Include <stdio.h>.
49307
49308 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49309
49310         * modules/lstat-tests: New module.
49311         * tests/test-lstat.c: New file.
49312
49313 2008-10-26  Jim Meyering  <meyering@redhat.com>
49314
49315         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49316
49317 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49318             Bruno Haible  <bruno@clisp.org>
49319
49320         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49321         * modules/configmake (Include): Add a note that the include must come
49322         after all system headers.
49323         * lib/javaversion.c: Include configmake.h after all other includes.
49324
49325 2008-10-26  Bruno Haible  <bruno@clisp.org>
49326
49327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49328         HAVE_STRUCT_RANDOM_DATA to 1.
49329         (gl_STDLIB_H): Simplify.
49330
49331 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49332
49333         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49334         substitute HAVE_STRUCT_RANDOM_DATA.
49335         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49336         random_data.
49337         * modules/stdlib (Makefile.am): Substitute
49338         HAVE_STRUCT_RANDOM_DATA.
49339
49340 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49341
49342         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49343         * doc/gnulib-intro.texi (Copyright): Likewise.
49344
49345 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49346
49347         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49348         findings.
49349
49350 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49351             Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/unistd.in.h: Include <winsock2.h>.
49354         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49355         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49356         Provide dummy declarations.
49357         (gethostname): Override.
49358         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49360         gl_PREREQ_SYS_H_WINSOCK2.
49361         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49362         * doc/posix-functions/gethostname.texi: More details.
49363
49364 2008-10-25  Bruno Haible  <bruno@clisp.org>
49365
49366         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49367         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49368         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49369
49370         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49371         here ...
49372         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49373         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49374         gl_UNISTD_H_DEFAULTS.
49375
49376 2008-10-25  Eric Blake  <ebb9@byu.net>
49377
49378         signbit: avoid spurious compiler failure
49379         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49380         declarations inside function.
49381
49382 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49383             Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49386         * modules/random_r (Depends-on): Add stdint.
49387
49388 2008-10-24  Bruno Haible  <bruno@clisp.org>
49389
49390         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49391         Eggert.
49392         * modules/strerror (License): Likewise.
49393
49394 2008-10-24  Jim Meyering  <meyering@redhat.com>
49395
49396         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49397         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49398
49399 2008-10-24  Eric Blake  <ebb9@byu.net>
49400
49401         getgroups: fix compilation when getgroups is available
49402         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49403         but with <config.h> override of getgroups disabled.
49404
49405 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49406
49407         * doc/gnulib.texi (Header files): Add note about C++ problems.
49408         Explained by Bruno Haible <bruno@clisp.org>.
49409
49410 2008-10-23  Bruno Haible  <bruno@clisp.org>
49411
49412         Define a dummy SA_NODEFER macro on Interix.
49413         * lib/signal.in.h (SA_NODEFER): Define fallback.
49414         Reported by Aleksey Cheusov <cheusov@tut.by> via
49415         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49416
49417 2008-10-23  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/freadahead (License): Change to LGPLv2+.
49420         Suggested by Simon Josefsson.
49421
49422 2008-10-23  Jim Meyering  <meyering@redhat.com>
49423
49424         random_r: new module
49425         * modules/random_r: New file.
49426         * m4/random_r.m4: New file.
49427         * lib/random_r.c: New file, from glibc.
49428         * modules/random_r-tests: New file.
49429         * tests/test-random_r.c: New file.
49430         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49431          Declare.
49432         (RAND_MAX): Define.
49433         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49434         * modules/stdlib: Substitute them, too.
49435         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49436         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49437         * doc/glibc-functions/random_r.texi: Likewise.
49438         * doc/glibc-functions/setstate_r.texi: Likewise.
49439         * doc/glibc-functions/srandom_r.texi: Likewise.
49440         * config/srclist.txt: Mention it.
49441
49442 2008-10-23  David Lutterkort  <lutter@redhat.com>
49443
49444         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49445         link requirement
49446
49447 2008-10-23  Jim Meyering  <meyering@redhat.com>
49448
49449         selinux-h: mark parameters of stub functions as intentionally unused
49450         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49451         * lib/se-context.in.h: Likewise.
49452
49453 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49454
49455         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49456
49457 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49458
49459         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49460
49461 2008-10-22  Eric Blake  <ebb9@byu.net>
49462
49463         glthread/thread: avoid compiler warning
49464         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49465         Add unreachable abort to silence compiler.
49466
49467 2008-10-22  Eric Blake  <ebb9@byu.net>
49468
49469         netdb: also supply struct addrinfo for cygwin 1.5.x
49470         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49471         older cygwin.
49472         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49473         cygwin.
49474         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49475
49476 2008-10-22  Bruno Haible  <bruno@clisp.org>
49477
49478         * users.txt: Update entry about pspp.
49479
49480 2008-10-21  Bruno Haible  <bruno@clisp.org>
49481
49482         Simplification.
49483         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49484         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49485
49486         Simplification.
49487         * lib/ioctl.c (ioctl): Don't undefine.
49488         * lib/socket.c (socket): Don't undefine.
49489
49490         Remove unused module indicator macros.
49491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49492         GNULIB_$1 as a C macro.
49493
49494         * doc/posix-functions/close.texi: Undo last change.
49495         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49496         Windows platforms.
49497
49498 2008-10-21  Bruno Haible  <bruno@clisp.org>
49499
49500         Add gethostname() declaration to <unistd.h>.
49501         * lib/unistd.in.h (gethostname): New declaration.
49502         * lib/gethostname.c: Include <unistd.h>.
49503         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49504         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49506         and HAVE_GETHOSTNAME.
49507         * modules/gethostname (Depends-on): Add unistd.
49508         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49509         (Include): Specify <unistd.h>.
49510         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49511         HAVE_GETHOSTNAME.
49512         * tests/test-gethostname.c: Include <unistd.h> first.
49513
49514 2008-10-21  Bruno Haible  <bruno@clisp.org>
49515
49516         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49517         * modules/select-tests (Depends-on): Likewise.
49518         Reported by Simon Josefsson.
49519
49520 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49521
49522         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49523         * lib/accept.c: New file, based on winsock.c.
49524         * lib/bind.c: New file, based on winsock.c.
49525         * lib/connect.c: New file, based on winsock.c.
49526         * lib/getpeername.c: New file, based on winsock.c.
49527         * lib/getsockname.c: New file, based on winsock.c.
49528         * lib/getsockopt.c: New file, based on winsock.c.
49529         * lib/ioctl.c: New file, based on winsock.c.
49530         * lib/listen.c: New file, based on winsock.c.
49531         * lib/recv.c: New file, based on winsock.c.
49532         * lib/recvfrom.c: New file, based on winsock.c.
49533         * lib/send.c: New file, based on winsock.c.
49534         * lib/sendto.c: New file, based on winsock.c.
49535         * lib/setsockopt.c: New file, based on winsock.c.
49536         * lib/shutdown.c: New file, based on winsock.c.
49537         * lib/socket.c: New file, based on winsock.c.
49538         * lib/w32sock.h: New file, based on winsock.c.
49539         * lib/winsock.c: Remove file.
49540         * modules/accept: Likewise.
49541         * modules/bind: Likewise.
49542         * modules/connect: Likewise.
49543         * modules/getpeername: Likewise.
49544         * modules/getsockname: Likewise.
49545         * modules/getsockopt: Likewise.
49546         * modules/ioctl: Likewise.
49547         * modules/listen: Likewise.
49548         * modules/recv: Likewise.
49549         * modules/recvfrom: Likewise.
49550         * modules/send: Likewise.
49551         * modules/sendto: Likewise.
49552         * modules/setsockopt: Likewise.
49553         * modules/shutdown: Likewise.
49554         * modules/socket: Use socket.c instead of winsock.c.
49555         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49556         * doc/posix-functions/accept.texi: Doc fix.
49557         * doc/posix-functions/bind.texi: Doc fix.
49558         * doc/posix-functions/close.texi: Doc fix.
49559         * doc/posix-functions/connect.texi: Doc fix.
49560         * doc/posix-functions/getpeername.texi: Doc fix.
49561         * doc/posix-functions/getsockname.texi: Doc fix.
49562         * doc/posix-functions/getsockopt.texi: Doc fix.
49563         * doc/posix-functions/ioctl.texi: Doc fix.
49564         * doc/posix-functions/listen.texi: Doc fix.
49565         * doc/posix-functions/recv.texi: Doc fix.
49566         * doc/posix-functions/recvfrom.texi: Doc fix.
49567         * doc/posix-functions/send.texi: Doc fix.
49568         * doc/posix-functions/sendto.texi: Doc fix.
49569         * doc/posix-functions/setsockopt.texi: Doc fix.
49570         * doc/posix-functions/shutdown.texi: Doc fix.
49571         * doc/posix-functions/socket.texi: Doc fix.
49572
49573 2008-10-20  Bruno Haible  <bruno@clisp.org>
49574
49575         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49576         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49577         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49578         as an alias for SIGABRT.
49579         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49580         (sigaction): Map it to SIGABRT.
49581         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49582
49583 2008-10-20  Bruno Haible  <bruno@clisp.org>
49584
49585         * lib/fts.c: Don't include lstat.h.
49586         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49587
49588         Move the lstat() declaration to <sys/stat.h>.
49589         * lib/lstat.h: Remove file.
49590         * lib/sys_stat.in.h: Add special invocation convention.
49591         (lstat): New declaration.
49592         * lib/lstat.c (orig_lstat): New function.
49593         (rpl_lstat): Use orig_lstat instead of lstat.
49594         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49595         AC_C_INLINE. Set REPLACE_LSTAT.
49596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49597         and REPLACE_LSTAT.
49598         * modules/lstat (Files): Remove lib/lstat.h.
49599         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49600         (Include): Specify <sys/stat.h> instead of lstat.h.
49601         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49602         REPLACE_LSTAT.
49603         * NEWS: Mention the change.
49604
49605 2008-10-20  Bruno Haible  <bruno@clisp.org>
49606
49607         * modules/posix_spawn-tests: New file.
49608         * tests/test-posix_spawn3.c: New file.
49609
49610 2008-10-20  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49613         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49614         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49615         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49616         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49617
49618 2008-10-20  Bruno Haible  <bruno@clisp.org>
49619
49620         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49621         of posix_spawn on AIX 5.3.
49622
49623 2008-10-20  Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49626
49627 2008-10-20  Bruno Haible  <bruno@clisp.org>
49628
49629         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49630         of AC_LANG_PROGRAM.
49631
49632 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49633
49634         * lib/netdb.in.h: Don't define GNU specific constants until they
49635         are supported or needed.  Reported by Bruno Haible
49636         <bruno@clisp.org>.
49637
49638 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49639
49640         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49641
49642 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49643
49644         * lib/getaddrinfo.h: Remove file.
49645         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49646         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49647         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49648         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49649         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49650         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49651         * tests/test-getaddrinfo.c: Likewise.
49652         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49653         * NEWS: Mention change.
49654
49655 2008-10-19  Bruno Haible  <bruno@clisp.org>
49656
49657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49658
49659 2008-10-19  Bruno Haible  <bruno@clisp.org>
49660
49661         * lib/wait-process.c: Include simply <sys/wait.h>.
49662         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49663         WIFSTOPPED): Remove fallback definitions.
49664         * modules/wait-process (Depends-on): Add sys_wait.
49665
49666         New module 'sys_wait'.
49667         * modules/sys_wait: New file.
49668         * lib/sys_wait.in.h: New file, partially copied from
49669         lib/wait-process.c.
49670         * m4/sys_wait_h.m4: New file.
49671         * doc/posix-headers/sys_wait.texi: Mention the new module.
49672
49673 2008-10-19  Bruno Haible  <bruno@clisp.org>
49674
49675         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49676
49677 2008-10-19  Bruno Haible  <bruno@clisp.org>
49678
49679         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49680         * lib/wait-process.c (WAIT_T): Remove type.
49681         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49682         (wait_subprocess): Update.
49683
49684 2008-10-19  Bruno Haible  <bruno@clisp.org>
49685
49686         New module 'atoll'.
49687         * modules/atoll: New file.
49688         * lib/stdlib.in.h (atoll): New declaration.
49689         * lib/atoll.c: New file, from glibc with modifications.
49690         * m4/atoll.m4: New file.
49691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49692         HAVE_ATOLL.
49693         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49694         * doc/posix-functions/atoll.texi: Mention the new module.
49695
49696 2008-10-19  Bruno Haible  <bruno@clisp.org>
49697
49698         Add strtoull() declaration to <stdlib.h>.
49699         * lib/stdlib.in.h (strtoull): New declaration.
49700         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49701         Set HAVE_STRTOULL.
49702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49703         HAVE_STRTOULL.
49704         * modules/strtoull (Depends-on): Add stdlib.
49705         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49706         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49707         HAVE_STRTOULL.
49708
49709 2008-10-19  Bruno Haible  <bruno@clisp.org>
49710
49711         Add strtoll() declaration to <stdlib.h>.
49712         * lib/stdlib.in.h (strtoll): New declaration.
49713         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49714         Set HAVE_STRTOLL.
49715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49716         HAVE_STRTOLL.
49717         * modules/strtoll (Depends-on): Add stdlib.
49718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49719         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49720
49721 2008-10-19  Bruno Haible  <bruno@clisp.org>
49722
49723         * modules/bcopy (Depends-on): Add strings.
49724         (Include): Specify <strings.h>.
49725
49726 2008-10-19  Bruno Haible  <bruno@clisp.org>
49727
49728         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49729
49730 2008-10-19  Bruno Haible  <bruno@clisp.org>
49731
49732         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49733         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49734         mingw.
49735
49736 2008-10-19  Bruno Haible  <bruno@clisp.org>
49737
49738         * lib/atanl.c: Don't include isnanl.h.
49739         * lib/cosl.c: Likewise.
49740         * lib/ldexpl.c: Likewise.
49741         * lib/logl.c: Likewise.
49742         * lib/sinl.c: Likewise.
49743         * lib/sqrtl.c: Likewise.
49744         * lib/tanl.c: Likewise.
49745
49746         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49747         * lib/isnanf.h: Remove file.
49748         * lib/isnand.h: Remove file.
49749         * lib/isnanl.h: Remove file.
49750         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49751         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49752         macros.
49753         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49754         HAVE_ISNANF, don't define it as a C macro.
49755         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49756         HAVE_ISNAND, don't define it as a C macro.
49757         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49758         HAVE_ISNANL, don't define it as a C macro.
49759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49760         HAVE_ISNAN[FDL].
49761         * modules/isnanf (Files): Remove lib/isnanf.h.
49762         (Depends-on): Add math.
49763         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49764         (Include): Specify <math.h> instead of isnanf.h.
49765         * modules/isnand (Files): Remove lib/isnand.h.
49766         (Depends-on): Add math.
49767         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49768         (Include): Specify <math.h> instead of isnand.h.
49769         * modules/isnanl (Files): Remove lib/isnanl.h.
49770         (Depends-on): Add math.
49771         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49772         (Include): Specify <math.h> instead of isnanl.h.
49773         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49774         HAVE_ISNAN[FDL].
49775         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49776         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49777         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49778         * NEWS: Mention the change.
49779
49780 2008-10-18  Bruno Haible  <bruno@clisp.org>
49781
49782         Add getusershell(), setusershell(), endusershell() declarations to
49783         <unistd.h>.
49784         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49785         declarations.
49786         * lib/getusershell.c: Include unistd.h.
49787         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49788         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49789         HAVE_GETUSERSHELL.
49790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49791         and HAVE_GETUSERSHELL.
49792         * modules/getusershell (Depends-on): Add unistd, extensions.
49793         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49794         (Include): Specify <unistd.h>.
49795         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49796         HAVE_GETUSERSHELL.
49797
49798 2008-10-18  Bruno Haible  <bruno@clisp.org>
49799
49800         Add a getloadavg() declaration to <stdlib.h>.
49801         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49802         getloadavg declaration.
49803         (getloadavg): New declaration.
49804         * lib/getloadavg.c: Include <stdlib.h> first.
49805         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49806         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49807         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49809         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49810         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49811         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49812         (Include): Specify <stdlib.h>.
49813         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49814         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49815
49816 2008-10-18  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/dirchownmod.c: Don't include lchmod.h.
49819
49820         Move the lchmod() declaration to <sys/stat.h>.
49821         * lib/lchmod.h: Remove file.
49822         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49823         (lchmod): New declaration, moved here from lib/lchown.h.
49824         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49825         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49827         and HAVE_LCHMOD.
49828         * modules/lchmod (Files): Remove lib/lchmod.h.
49829         (Depends-on): Add sys_stat, extensions.
49830         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49831         (Include): Specify <sys/stat.h> instead of lchmod.h.
49832         * modules/sys_stat (Depends-on): Add link-warning.
49833         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49834         definition of GL_LINK_WARNING.
49835         * NEWS: Mention the change.
49836
49837 2008-10-18  Bruno Haible  <bruno@clisp.org>
49838
49839         * lib/fchdir.c: Don't include dirfd.h.
49840         * lib/fts.c: Likewise.
49841         * lib/getcwd.c: Likewise.
49842         * lib/glob.c: Likewise.
49843
49844         Move the dirfd() declaration to <dirent.h>.
49845         * lib/dirfd.h: Remove file.
49846         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
49847         (dirfd): New declaration.
49848         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
49849         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
49850         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
49851         HAVE_DECL_DIRFD.
49852         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
49853         HAVE_DECL_DIRFD.
49854         * modules/dirfd (Files): Remove lib/dirfd.h.
49855         (Depends-on): Add dirent, extensions.
49856         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
49857         (Include): Specify <dirent.h> instead of dirfd.h.
49858         * modules/dirent (Depends-on): Add link-warning.
49859         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
49860         definition of GL_LINK_WARNING.
49861         * NEWS: Mention the change.
49862
49863 2008-10-18  Bruno Haible  <bruno@clisp.org>
49864
49865         Move the euidaccess() declaration to <unistd.h>.
49866         * lib/euidaccess.h: Remove file.
49867         * lib/unistd.in.h (euidaccess): New declaration.
49868         * lib/euidaccess.c: Don't include euidaccess.h.
49869         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
49870         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
49871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
49872         and HAVE_EUIDACCESS.
49873         * modules/euidaccess (Files): Remove lib/euidaccess.h.
49874         (Depends-on): Add unistd.
49875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49876         (Include): Specify <unistd.h> instead of euidaccess.h.
49877         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
49878         HAVE_EUIDACCESS.
49879         * NEWS: Mention the change.
49880
49881 2008-10-18  Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
49884
49885         Move the getdomainname() declaration to <unistd.h>.
49886         * lib/getdomainname.h: Remove file.
49887         * lib/unistd.in.h (getdomainname): New declaration.
49888         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
49889         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
49890         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49891         HAVE_GETDOMAINNAME.
49892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49893         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
49894         * modules/getdomainname (Files): Remove lib/getdomainname.h.
49895         (Depends-on): Add unistd, extensions.
49896         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49897         (Includes): Specify <unistd.h> instead of getdomainname.h.
49898         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
49899         HAVE_GETDOMAINNAME.
49900         * NEWS: Mention the change.
49901
49902 2008-10-18  Bruno Haible  <bruno@clisp.org>
49903
49904         * modules/dirent: New file.
49905         * m4/dirent_h.m4: New file.
49906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
49907         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
49908         * modules/fchdir (Files): Remove lib/dirent.in.h.
49909         (Depends-on): Add dirent.
49910         (Makefile.am): Move rules to modules/dirent.
49911         * doc/posix-headers/dirent.texi: Mention the new module.
49912
49913 2008-10-18  Bruno Haible  <bruno@clisp.org>
49914
49915         Avoid -Wunused-parameter warnings in public gnulib header files.
49916         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
49917         macro.
49918         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
49919
49920 2008-10-18  Bruno Haible  <bruno@clisp.org>
49921
49922         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
49923         * doc/glibc-functions/error.texi: Mention the module 'error'.
49924         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
49925         * doc/glibc-functions/getdomainname.texi: Mention the module
49926         'getdomainname'.
49927         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
49928         * doc/glibc-functions/getpagesize.texi: Mention the module
49929         'getpagesize'.
49930         * doc/glibc-functions/getusershell.texi: Mention the module
49931         'getusershell'.
49932         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
49933         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
49934         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
49935         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
49936         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
49937         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
49938         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
49939         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
49940         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
49941         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
49942         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
49943         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
49944         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
49945         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
49946
49947 2008-10-17  Bruno Haible  <bruno@clisp.org>
49948
49949         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
49950         HP-UX and IRIX, use -0.0L.
49951         * tests/test-ceill.c (minus_zero): Likewise.
49952         * tests/test-floorl.c (minus_zero): Likewise.
49953         * tests/test-frexpl.c (minus_zero): Likewise.
49954         * tests/test-isnan.c (minus_zerol): Likewise.
49955         * tests/test-isnanl.h (minus_zero): Likewise.
49956         * tests/test-ldexpl.c (minus_zero): Likewise.
49957         * tests/test-roundl.c (minus_zero): Likewise.
49958         * tests/test-signbit.c (minus_zerol): Likewise.
49959         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49960         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49961         * tests/test-truncl.c (minus_zero): Likewise.
49962         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49963         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49964         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
49965         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49966
49967 2008-10-17  Bruno Haible  <bruno@clisp.org>
49968
49969         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
49970         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
49971         that it gets activated only for gcc >= 3.0.
49972         * lib/dirent.in.h: Likewise.
49973         * lib/errno.in.h: Likewise.
49974         * lib/fcntl.in.h: Likewise.
49975         * lib/float.in.h: Likewise.
49976         * lib/iconv.in.h: Likewise.
49977         * lib/inttypes.in.h: Likewise.
49978         * lib/locale.in.h: Likewise.
49979         * lib/math.in.h: Likewise.
49980         * lib/netdb.in.h: Likewise.
49981         * lib/netinet_in.in.h: Likewise.
49982         * lib/search.in.h: Likewise.
49983         * lib/signal.in.h: Likewise.
49984         * lib/spawn.in.h: Likewise.
49985         * lib/stdarg.in.h: Likewise.
49986         * lib/stdint.in.h: Likewise.
49987         * lib/stdio.in.h: Likewise.
49988         * lib/stdlib.in.h: Likewise.
49989         * lib/string.in.h: Likewise.
49990         * lib/strings.in.h: Likewise.
49991         * lib/sys_file.in.h: Likewise.
49992         * lib/sys_ioctl.in.h: Likewise.
49993         * lib/sys_select.in.h: Likewise.
49994         * lib/sys_socket.in.h: Likewise.
49995         * lib/sys_stat.in.h: Likewise.
49996         * lib/sys_time.in.h: Likewise.
49997         * lib/sysexits.in.h: Likewise.
49998         * lib/time.in.h: Likewise.
49999         * lib/unistd.in.h: Likewise.
50000         * lib/wchar.in.h: Likewise.
50001         * lib/wctype.in.h: Likewise.
50002         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50003
50004 2008-10-17  Jim Meyering  <meyering@redhat.com>
50005
50006         ignore-value: don't depend on inline module
50007         * modules/ignore-value (Depends-on): Remove 'inline'.
50008         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50009         Suggestion from Bruno Haible.
50010
50011 2008-10-17  Bruno Haible  <bruno@clisp.org>
50012
50013         New implementation of condition variables for Win32.
50014         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50015         (gl_linked_waitqueue_t): New type.
50016         (gl_cond_t): Use it.
50017         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50018         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50019         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50020         (glthread_cond_init_func, glthread_cond_wait_func,
50021         glthread_cond_timedwait_func, glthread_cond_signal_func,
50022         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50023         Reimplemented on the basis of gl_linked_waitqueue_t.
50024         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50025         gl_waitqueue_t.
50026         (gl_rwlock_t): Update.
50027         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50028
50029 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50030
50031         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50032         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50033
50034 2008-10-17  Jim Meyering  <meyering@redhat.com>
50035
50036         ignore-value: new module
50037         * modules/ignore-value: New file.
50038         * lib/ignore-value.h: New file.
50039         * MODULES.html.sh (Compiler warning management): New section,
50040         just for this module.  More to come.
50041
50042 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50043
50044         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50045         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50046         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50047
50048 2008-10-16  Jim Meyering  <meyering@redhat.com>
50049
50050         openat-die.c: avoid 'no previous prototype' warning
50051         * lib/openat-die.c: Include "openat.h".
50052         Reported by Reuben Thomas <rrt@sc3d.org>.
50053
50054 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50055
50056         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50057         * lib/netdb.in.h: Fix typo.
50058         Reported by Bruno Haible  <bruno@clisp.org>
50059
50060         * lib/netdb.in.h: Include sys/socket.h for platforms without
50061         netdb.h, to get structures like hostent on MinGW.
50062         * modules/netdb (Depends-on): Add sys_socket.
50063
50064 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50065
50066         * modules/netdb, modules/netdb-tests: New file.
50067         * m4/netdb_h.m4: New file.
50068         * lib/netdb.in.h: Add, currently just an empty file pending
50069         definitions.
50070         * tests/test-netdb.c: New file.
50071         * doc/posix-headers/netdb.texi: Mention that we replace it if
50072         needed.
50073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50074         netdb.
50075
50076 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50077
50078         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50079         with code.
50080
50081 2008-10-13  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/glthread/cond.c (glthread_cond_wait_func,
50084         glthread_cond_timedwait_func): Add a comment.
50085
50086 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50087
50088         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50089         * tests/test-select.c: Likewise,
50090
50091 2008-10-13  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/glthread/cond.c (glthread_cond_wait_func,
50094         glthread_cond_timedwait_func): Fix variable name.
50095         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50096
50097 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50098
50099         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50101         struct sockaddr.sa_len.
50102         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50103
50104 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50105
50106         * build-aux/pmccabe2html: Add css and css_url parameters.
50107
50108 2008-10-12  Bruno Haible  <bruno@clisp.org>
50109
50110         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50111         calling aclx_get.
50112         Reported by Rainer Tammer <tammer@tammer.net>.
50113
50114 2008-10-12  Bruno Haible  <bruno@clisp.org>
50115
50116         Use msvcrt aware primitives for creation/termination of Win32 threads.
50117         * lib/glthread/thread.c: Include <process.h>.
50118         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50119         (wrapper_func): Update signature.
50120         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50121
50122 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50123             Bruno Haible  <bruno@clisp.org>
50124
50125         Provide a Win32 implementation of the 'cond' module.
50126         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50127         * lib/glthread/cond.c (glthread_cond_init_func,
50128         glthread_cond_wait_func, glthread_cond_timedwait_func,
50129         glthread_cond_signal_func, glthread_cond_broadcast_func,
50130         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50131         * modules/cond (Dependencies): Add gettimeofday.
50132
50133 2008-10-11  Bruno Haible  <bruno@clisp.org>
50134
50135         Make sleep work on older versions of mingw.
50136         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50137         only whether it exists.
50138         * doc/posix-functions/sleep.texi: Mention the problem with older
50139         versions of mingw.
50140
50141 2008-10-11  Bruno Haible  <bruno@clisp.org>
50142
50143         New module 'shutdown'.
50144         * modules/shutdown: New file.
50145         * lib/sys_socket.in.h (shutdown): New declaration.
50146         * lib/winsock.c (shutdown): New function.
50147         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50148         GNULIB_SHUTDOWN.
50149         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50150         * doc/posix-functions/shutdown.texi: Document the new module.
50151
50152 2008-10-11  Jim Meyering  <meyering@redhat.com>
50153
50154         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50155
50156 2008-10-11  Bruno Haible  <bruno@clisp.org>
50157
50158         New module 'fclose'.
50159         * modules/fclose: New file.
50160         * lib/stdio.in.h (fclose): New declaration.
50161         * lib/fclose.c: New file.
50162         * m4/fclose.m4: New file.
50163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50164         REPLACE_FCLOSE.
50165         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50166         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50167         REPLACE_FCLOSE.
50168         * modules/close (Depends-on): fclose.
50169         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50170
50171 2008-10-11  Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50174         set errno and don't call _close.
50175
50176 2008-10-10  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50179         ACL, not afterwards. Fixes test failure on Cygwin.
50180
50181 2008-10-09  Ben Pfaff  <blp@gnu.org>
50182
50183         * build-aux/announce-gen: Fix gnulib version related part of usage
50184         message.  Die with a useful error message if no tarballs are
50185         found.
50186
50187 2008-10-10  Jim Meyering  <meyering@redhat.com>
50188
50189         bootstrap: use git's --depth=N option only if it's supported
50190         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50191         recognize the --depth option.  Reported by Pádraig Brady.
50192
50193 2008-10-09  Bruno Haible  <bruno@clisp.org>
50194
50195         New module 'ioctl'.
50196         * modules/ioctl: New file.
50197         * lib/sys_socket.in.h (ioctl): Remove declaration.
50198         * lib/winsock.c: Include <sys/ioctl.h>.
50199         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50200         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50201         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50202         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50203         * doc/posix-functions/ioctl.texi: Mention the new module.
50204
50205 2008-10-09  Bruno Haible  <bruno@clisp.org>
50206
50207         New module 'sys_ioctl'.
50208         * lib/sys_ioctl.in.h: New file.
50209         * m4/sys_ioctl_h.m4: New file.
50210         * modules/sys_ioctl: New file.
50211         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50212
50213 2008-10-09  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50216         * lib/winsock.c: Include <stdarg.h>.
50217         (rpl_ioctl): Change to second argument 'int' and then varargs.
50218
50219 2008-10-09  Bruno Haible  <bruno@clisp.org>
50220
50221         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50222         when the sys_socket module is present and the system has <winsock2.h>.
50223
50224 2008-10-09  Bruno Haible  <bruno@clisp.org>
50225
50226         * doc/posix-functions/close.texi: Mention module 'close' instead of
50227         module 'sys_socket'.
50228
50229 2008-10-09  Bruno Haible  <bruno@clisp.org>
50230
50231         * doc/glibc-headers/sys_ioctl.texi: New file.
50232         * doc/gnulib.texi: Include it.
50233
50234 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50235             Bruno Haible  <bruno@clisp.org>
50236
50237         Combine the two replacements of 'close'.
50238         * lib/sys_socket.in.h (close): Define to a reminder to include
50239         <unistd.h>.
50240         (_gl_close_fd_maybe_socket): New declaration.
50241         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50242         * lib/winsock.c (close): Remove undefinition.
50243         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50244         needed for the gnulib module 'close'.
50245         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50246         define to an error symbol or to a warning, if suitable.
50247         * lib/close.c: Include <sys/socket.h>.
50248         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50249         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50250         UNISTD_H_HAVE_WINSOCK2_H.
50251         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50253         UNISTD_H_HAVE_WINSOCK2_H.
50254         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50255         (configure.ac): Set a module indicator.
50256         (Makefile.am): Substitute GNULIB_CLOSE.
50257         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50258         * modules/poll-tests (Depends-on): Add close.
50259         * modules/select-tests (Depends-on): Likewise.
50260
50261 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50262             Bruno Haible  <bruno@clisp.org>
50263
50264         New module 'close'.
50265         * modules/close: New file.
50266         * lib/unistd.in.h (close): Move declaration out of the
50267         FCHDIR_REPLACEMENT scope.
50268         (_gl_unregister_fd): New declaration.
50269         * lib/close.c: New file.
50270         * lib/fchdir.c (rpl_close): Remove function.
50271         * m4/close.m4: New file.
50272         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50273         close.
50274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50275         REPLACE_CLOSE.
50276         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50277         REPLACE_CLOSE.
50278         * modules/fchdir (Depends-on): Add close.
50279
50280 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50281             Bruno Haible  <bruno@clisp.org>
50282
50283         * lib/fcntl.in.h (open): Simplify conditionals.
50284         (_gl_register_fd): New declaration.
50285         * lib/fchdir.c (rpl_open): Remove function.
50286         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50287         also.
50288         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50290         open.
50291
50292 2008-10-09  Jim Meyering  <meyering@redhat.com>
50293
50294         GNUmakefile: use the more name-space-friendly "_version"
50295         * top/GNUmakefile (_dummy): Update.
50296         (_version): Rename from "version".
50297
50298 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50299             Bruno Haible  <bruno@clisp.org>
50300
50301         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50302         rpl_close.
50303         (_gl_register_fd): New function, extracted from rpl_open.
50304         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50305         (rpl_open, rpl_opendir): Use _gl_register_fd.
50306
50307 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50308
50309         Fix organization of 'open' replacement.
50310         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50311         (gl_FUNC_OPEN): Use it.
50312         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50313
50314 2008-10-08  Bruno Haible  <bruno@clisp.org>
50315
50316         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50317
50318 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50319
50320         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50321         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50322         listen).
50323
50324 2008-10-08  Eric Blake  <ebb9@byu.net>
50325
50326         GNUmakefile: add 'make version' target
50327         * top/GNUmakefile (_curr-ver): Split version update rules...
50328         (version): ...into a target.
50329
50330 2008-10-07  Bruno Haible  <bruno@clisp.org>
50331
50332         Use a more portable replacement expression for -0.0L.
50333         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50334         instead of -0.0L. Fix m4 quotation.
50335
50336         * tests/test-signbit.c: Include <float.h>.
50337         (minus_zero): New variable.
50338         (test_signbitl): Use minus_zero instead of -zero.
50339         * modules/signbit-tests (Depends-on): Add float.
50340
50341         * tests/test-ceill.c: Include <float.h>.
50342         (zero): Remove variable.
50343         (minus_zero): New variable.
50344         (main): Use minus_zero instead of -zero.
50345         * modules/ceill-tests (Depends-on): Add float.
50346
50347         * tests/test-floorl.c: Include <float.h>.
50348         (zero): Remove variable.
50349         (minus_zero): New variable.
50350         (main): Use minus_zero instead of -zero.
50351         * modules/floorl-tests (Depends-on): Add float.
50352
50353         * tests/test-roundl.c: Include <float.h>.
50354         (zero): Remove variable.
50355         (minus_zero): New variable.
50356         (main): Use minus_zero instead of -zero.
50357         * modules/roundl-tests (Depends-on): Add float.
50358
50359         * tests/test-truncl.c: Include <float.h>.
50360         (zero): Remove variable.
50361         (minus_zero): New variable.
50362         (main): Use minus_zero instead of -zero.
50363         * modules/truncl-tests (Depends-on): Add float.
50364
50365         * tests/test-frexpl.c (zero): Remove variable.
50366         (minus_zero): New variable.
50367         (main): Use minus_zero instead of -zero.
50368         * modules/frexpl-tests (Depends-on): Add float.
50369
50370         * tests/test-isnan.c (zerol): Remove variable.
50371         (minus_zerol): New variable.
50372         (test_long_double): Use minus_zerol instead of -zerol.
50373         * modules/isnan-tests (Depends-on): Add float.
50374
50375         * tests/test-isnanl.h (zero): Remove variable.
50376         (minus_zero): New variable.
50377         (main): Use minus_zero instead of -zero.
50378         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50379         * modules/isnanl-tests (Depends-on): Add float.
50380
50381         * tests/test-ldexpl.c (zero): Remove variable.
50382         (minus_zero): New variable.
50383         (main): Use minus_zero instead of -zero.
50384         * modules/ldexpl-tests (Depends-on): Add float.
50385
50386         * tests/test-snprintf-posix.h (zerol): Remove variable.
50387         (minus_zerol): New variable.
50388         (test_function): Use minus_zerol instead of -zerol.
50389         * modules/snprintf-posix-tests (Depends-on): Add float.
50390         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50391
50392         * tests/test-sprintf-posix.h (zerol): Remove variable.
50393         (minus_zerol): New variable.
50394         (test_function): Use minus_zerol instead of -zerol.
50395         * modules/sprintf-posix-tests (Depends-on): Add float.
50396         * modules/vsprintf-posix-tests (Depends-on): Add float.
50397
50398         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50399         (minus_zerol): New variable.
50400         (test_function): Use minus_zerol instead of -zerol.
50401         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50402
50403         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50404         (minus_zerol): New variable.
50405         (test_function): Use minus_zerol instead of -zerol.
50406         * modules/vasprintf-posix-tests (Depends-on): Add float.
50407
50408 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50409
50410         * MODULES.html.sh (Support for building documentation): Mention
50411         pmccabe2html.  Sort entries.
50412
50413         Add pmccabe2html module, from gnupdf.
50414         * build-aux/pmccabe.css: New file.
50415         * build-aux/pmccabe2html: New file.
50416         * m4/pmccabe2html.m4: New file.
50417         * modules/pmccabe2html: New file.
50418
50419 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50420
50421         flock: new module
50422         * MODULES.html.sh: Add to list of modules.
50423         * lib/flock.c: flock implementation for Windows and Unix systems
50424         which have fcntl.
50425         * doc/glibc-functions/flock.texi: Update documentation.
50426         * lib/sys_file.in.h: <sys/file.h> header file.
50427         * m4/flock.m4: M4 macros.
50428         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50429         * modules/flock: flock module.
50430         * modules/flock-tests: flock tests module.
50431         * modules/sys_file: sys/file.h module.
50432         * tests/test-flock.c: test suite for flock.
50433
50434 2008-10-06  Jim Meyering  <meyering@redhat.com>
50435
50436         bootstrap: check for LT_INIT more portably still ;-)
50437         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50438         Spotted by Bruno Haible.
50439
50440 2008-10-06  Eric Blake  <ebb9@byu.net>
50441
50442         test-signbit: avoid tripping Irix cc bug on -0.0L
50443         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50444         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50445         entire testsuite consistent and avoids an Irix 6.2 bug.
50446
50447 2008-10-05  Bruno Haible  <bruno@clisp.org>
50448             Jim Meyering  <jim@meyering.net>
50449
50450         Add an option for ignoring EPIPE during close_stdout.
50451         * lib/closeout.h: Include <stdbool.h>.
50452         (close_stdout_set_ignore_EPIPE): New declaration.
50453         * lib/closeout.c: Include <stdbool.h>.
50454         (ignore_EPIPE): New variable.
50455         (close_stdout_set_ignore_EPIPE): New function.
50456         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50457         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50458         failure.
50459         * modules/closeout (Depends-on): Add stdbool.
50460
50461 2008-10-05  Bruno Haible  <bruno@clisp.org>
50462
50463         * modules/accept: New file.
50464         * modules/bind: New file.
50465         * modules/connect: New file.
50466         * modules/getpeername: New file.
50467         * modules/getsockname: New file.
50468         * modules/getsockopt: New file.
50469         * modules/listen: New file.
50470         * modules/recv: New file.
50471         * modules/recvfrom: New file.
50472         * modules/send: New file.
50473         * modules/sendto: New file.
50474         * modules/setsockopt: New file.
50475         * modules/socket: New file.
50476         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50477         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50478         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50479         the particular module is requested. Add a link warning when the
50480         particular module is not requested.
50481         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50482         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50483         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50484         the particular module is requested.
50485         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50486         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50487         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50488         * modules/sys_socket (Depends-on): Add link-warning.
50489         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50490         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50491         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50492         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50493         GL_LINK_WARNING.
50494         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50495         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50496         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50497         * doc/posix-functions/getpeername.texi: Mention the new module
50498         'getpeername'.
50499         * doc/posix-functions/getsockname.texi: Mention the new module
50500         'getsockname'.
50501         * doc/posix-functions/getsockopt.texi: Mention the new module
50502         'getsockopt'.
50503         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50504         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50505         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50506         * doc/posix-functions/send.texi: Mention the new module 'send'.
50507         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50508         * doc/posix-functions/setsockopt.texi: Mention the new module
50509         'setsockopt'.
50510         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50511         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50512         listen, connect, accept.
50513         * modules/select-tests (Depends-on): Likewise.
50514
50515 2008-10-05  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/winsock.c (strerror): Remove unused #undef.
50518         (rpl_close): Remove unused local variable.
50519
50520         * modules/sys_socket (Depends-on); Add errno.
50521
50522 2008-10-05  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50525         (select): Add a link warning when the 'select' module is not used.
50526         * modules/sys_select (Depends-on): Add link-warning.
50527         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50528         Suggested by Paolo Bonzini.
50529
50530 2008-10-05  Jim Meyering  <meyering@redhat.com>
50531
50532         bootstrap: check for LT_INIT more portably
50533         * build-aux/bootstrap: Avoid using grep -E, since it's not
50534         portable enough.  Suggestion from Bruno Haible.
50535
50536 2008-10-05  Bruno Haible  <bruno@clisp.org>
50537
50538         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50539         as being fixed by gnulib.
50540
50541 2008-10-05  Bruno Haible  <bruno@clisp.org>
50542
50543         * modules/select-tests: New file, mostly copied from
50544         modules/sys_select-tests.
50545         * tests/test-select.c: New file, mostly copied from
50546         tests/test-sys_select.c.
50547         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50548         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50549         (Makefile.am): Remove test_sys_select_LDADD.
50550
50551         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50552         to an undefined symbol, for an error message.
50553         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50554         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50555         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50556         winsock-select.c here.
50557         * modules/sys_select (Files): Remove lib/winsock-select.c.
50558         (Depends-on): Remove alloca.
50559         (Makefile.am): Substitute GNULIB_SELECT.
50560         * modules/select: New file.
50561         * doc/posix-functions/select.texi: Update.
50562
50563 2008-10-05  Bruno Haible  <bruno@clisp.org>
50564
50565         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50566         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50567         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50568         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50569         getdtablesize.
50570         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50571         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50572
50573 2008-10-05  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/getdtablesize-tests: New file.
50576         * tests/test-getdtablesize.c: New file.
50577
50578         New module 'getdtablesize'.
50579         * lib/unistd.in.h (getdtablesize): New declaration.
50580         * lib/getdtablesize.c: New file.
50581         * m4/getdtablesize.m4: New file.
50582         * modules/getdtablesize: New file.
50583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50584         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50585         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50586         HAVE_GETDTABLESIZE.
50587         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50588
50589 2008-10-05  Bruno Haible  <bruno@clisp.org>
50590
50591         * modules/sched (Makefile.am): Fix typo.
50592         Reported by Simon Josefsson.
50593
50594 2008-10-05  Jim Meyering  <meyering@redhat.com>
50595
50596         bootstrap: check for LT_INIT, too
50597         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50598         are deprecated.  Suggestion from Ralf Wildenhues.
50599
50600 2008-10-05  Bruno Haible  <bruno@clisp.org>
50601
50602         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50603         overriding them by ours.
50604         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50605
50606 2008-10-05  Jim Meyering  <meyering@redhat.com>
50607
50608         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50609         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50610         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50611
50612 2008-10-04  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/dup2 (License): Change to LGPLv2+.
50615         * modules/sleep (License): Likewise.
50616         * modules/perror (License): Likewise.
50617         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50618         Blake.
50619         * modules/signal (License): Likewise.
50620         * modules/sigprocmask (License): Likewise.
50621         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50622         Meyering.
50623
50624 2008-10-04  Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50627         Reported by Rainer Tammer <tammer@tammer.net>.
50628
50629 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50630             Bruno Haible  <bruno@clisp.org>
50631
50632         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50633         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50634         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50635
50636 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50637
50638         filevercmp: new module
50639         * lib/filevercmp.h: New function filevercmp comparing version strings.
50640         * lib/filevercmp.c: Implementation of filevercmp function.
50641         * modules/filevercmp: Module metadata.
50642         * tests/test-filevercmp.c: Unit test for new module.
50643         * modules/filevercmp-tests: Unit test metadata.
50644         * MODULES.html.sh: Add filevercmp module.
50645
50646 2008-10-03  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/c-ctype.h: Add comment.
50649         Reported by Jim Meyering.
50650
50651 2008-10-02  Bruno Haible  <bruno@clisp.org>
50652
50653         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50654
50655 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50656
50657         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50658         name of bootstrap.conf accordingly.
50659
50660 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50661
50662         * build-aux/bootstrap: Install git-merge-changelog configuration
50663         items into .gitconfig if needed.
50664
50665 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50666
50667         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50668         git repository, and initialize/update it accordingly.
50669
50670 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50671
50672         * modules/fsync-tests: New file.
50673         * tests/test-fsync.c: New file.
50674
50675         New module 'fsync'.
50676         * lib/fsync.c: New file.
50677         * m4/fsync.m4: New file.
50678         * modules/fsync: New file.
50679         * lib/unistd.in.h (fsync): New declaration.
50680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50681         GNULIB_FSYNC and HAVE_FSYNC.
50682         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50683         * MODULES.html.sh (posix_functions): Add fsync.
50684         * doc/posix-functions/fsync.texi: Mention the new module.
50685
50686 2008-10-02  Jim Meyering  <meyering@redhat.com>
50687
50688         fts.c: sync with similar code from coreutils' remove.c
50689         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50690         Guard also with "#if defined __linux__", since for now at least,
50691         this code is Linux-kernel-specific.
50692
50693 2008-10-02  Jim Meyering  <meyering@redhat.com>
50694
50695         fts: bug fixes
50696         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50697         Include <sys/vfs.h>, not <sys/statfs.h>.
50698
50699         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50700         Include <sys/vfs.h>, not <sys/statfs.h>.
50701
50702 2008-10-01  Bruno Haible  <bruno@clisp.org>
50703
50704         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50705         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50706         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50707         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50708         * doc/posix-functions/posix_spawnp.texi: Likewise.
50709         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50710         whether posix_spawn actually works.
50711         * m4/pipe.m4 (gl_PIPE): Likewise.
50712         * modules/execute (Files): Add m4/posix_spawn.m4.
50713         * modules/pipe (Files): Add m4/posix_spawn.m4.
50714         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50715
50716 2008-10-01  Jim Meyering  <meyering@redhat.com>
50717
50718         remove trailing spaces
50719         * NEWS: Likewise.
50720         * lib/poll.c (poll): Likewise.
50721         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50722         * lib/winsock.c (rpl_close): Likewise.
50723         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50724         * modules/yield: Likewise.
50725         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50726         * tests/test-sys_select.c (connect_to_socket): Likewise.
50727
50728         fts.c: adjust a new interface to be more generally useful
50729         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50730         (fts_build): Adjust caller.
50731
50732 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50733
50734         * modules/cond-tests: New file.
50735         * tests/test-cond.c: New file.
50736
50737 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50738             Bruno Haible  <bruno@clisp.org>
50739
50740         * modules/cond (Dependencies): Add errno, time.
50741         * lib/glthread/cond.h: Include <time.h>.
50742         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50743         across platforms.
50744
50745 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50746             Bruno Haible  <bruno@clisp.org>
50747
50748         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50749
50750 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50751             Bruno Haible  <bruno@clisp.org>
50752
50753         * modules/tls-tests (Depends-on): Add thread, yield.
50754         (configure.ac): Remove all checks.
50755         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50756         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50757         gl_thread_self): Remove definitions. Include glthread/thread.h and
50758         glthread/yield.h instead.
50759         (test_tls): Pass an additional NULL argument to gl_thread_join.
50760
50761 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50762             Bruno Haible  <bruno@clisp.org>
50763
50764         * modules/lock-tests (Depends-on): Add thread, yield.
50765         (configure.ac): Remove all checks.
50766         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50767         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50768         gl_thread_self): Remove definitions. Include glthread/thread.h and
50769         glthread/yield.h instead.
50770         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50771         additional NULL argument to gl_thread_join.
50772
50773 2008-09-30  Bruno Haible  <bruno@clisp.org>
50774
50775         Fix the Win32 implementation of the 'thread' module.
50776         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50777         pointer type.
50778         (gl_thread_self): Invoke gl_thread_self_func.
50779         (gl_thread_self_func): New declaration.
50780         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50781         (do_init_self_key, init_self_key): New functions.
50782         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50783         Remove some fields.
50784         (running_threads, running_lock): Remove variables.
50785         (get_current_thread_handle): New function.
50786         (gl_thread_self_func, wrapper_func, glthread_create_func,
50787         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50788         simplified.
50789
50790 2008-09-30  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50793         files.
50794
50795 2008-09-30  Jim Meyering  <meyering@redhat.com>
50796
50797         fts.m4: correct the test for statfs.f_type
50798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50799         when checking for statfs.f_type.
50800
50801 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50802
50803         tests: avoid some compiler warnings
50804         * tests/test-memchr.c (main): Pass NULL indirectly.
50805         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50806
50807 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
50808
50809         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50810         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50811         exactly specified dayshifts.
50812         (dayshift): New rule.
50813         (rel): Add dayshift.
50814         (relative_time_table) [tomorrow, yesterday, today, now]:
50815         Use tDAY_SHIFT in place of tDAY_UNIT.
50816         * tests/test-getdate.c: Add tests for now-disallowed countable
50817         dayshifts, e.g., "4 yesterday ago".
50818
50819 2008-09-29  Bruno Haible  <bruno@clisp.org>
50820
50821         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50822         * tests/test-posix_spawn1.in.sh: Renamed from
50823         tests/test-posix_spawn.in.sh.
50824         * tests/test-posix_spawn2.c: New file.
50825         * tests/test-posix_spawn2.in.sh: New file.
50826         * modules/posix_spawnp-tests (Files): Update.
50827         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50828
50829 2008-09-29  Bruno Haible  <bruno@clisp.org>
50830
50831         Propagate effects of putenv/setenv/unsetenv to child processes.
50832         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50833         * lib/pipe.c (create_pipe): Likewise.
50834
50835 2008-09-29  Bruno Haible  <bruno@clisp.org>
50836
50837         Enable use of shell scripts as executables in mingw.
50838         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50839         run the program as a shell script.
50840         * lib/pipe.c (create_pipe): Likewise.
50841         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
50842         resulting array.
50843
50844 2008-09-29  Eric Blake  <ebb9@byu.net>
50845
50846         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
50847
50848 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
50849
50850         * doc/posix-functions/accept.texi: Update mingw problems.
50851         * doc/posix-functions/bind.texi: Update mingw problems.
50852         * doc/posix-functions/close.texi: Update mingw problems.
50853         * doc/posix-functions/connect.texi: Update mingw problems.
50854         * doc/posix-functions/getpeername.texi: Update mingw problems.
50855         * doc/posix-functions/getsockname.texi: Update mingw problems.
50856         * doc/posix-functions/getsockopt.texi: Update mingw problems.
50857         * doc/posix-functions/ioctl.texi: Update mingw problems.
50858         * doc/posix-functions/listen.texi: Update mingw problems.
50859         * doc/posix-functions/recv.texi: Update mingw problems.
50860         * doc/posix-functions/recvfrom.texi: Update mingw problems.
50861         * doc/posix-functions/select.texi: Update mingw problems.
50862         * doc/posix-functions/send.texi: Update mingw problems.
50863         * doc/posix-functions/sendto.texi: Update mingw problems.
50864         * doc/posix-functions/setsockopt.texi: Update mingw problems.
50865         * doc/posix-functions/socket.texi: Update mingw problems.
50866
50867 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
50868             Bruno Haible  <bruno@clisp.org>
50869
50870         * lib/sys_select.in.h: Include sys/time.h.
50871         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
50872         * modules/sys_select: Depend on sys_time.
50873         * tests/test-sys_select.c: Test that sys/select.h defines struct
50874         timeval fully.
50875
50876 2008-09-29  Bruno Haible  <bruno@clisp.org>
50877
50878         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
50879         * lib/sys_select.in.h: Likewise.
50880
50881 2008-09-29  Bruno Haible  <bruno@clisp.org>
50882
50883         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
50884
50885 2008-09-29  Bruno Haible  <bruno@clisp.org>
50886
50887         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
50888         Set LIBSOCKET instead of augmenting LIBS.
50889         * modules/sockets (Link): New section.
50890         * modules/sockets-tests (test_sockets_LDADD): New variable.
50891         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
50892         * modules/poll-tests (test_poll_LDADD): New variable.
50893         * NEWS: Document the change.
50894
50895 2008-09-29  Bruno Haible  <bruno@clisp.org>
50896
50897         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
50898         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
50899         ARPA_INET_H directly.
50900         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50901
50902 2008-09-28  Bruno Haible  <bruno@clisp.org>
50903
50904         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
50905         from gl_HEADER_SYS_SOCKET.
50906         (gl_HEADER_SYS_SOCKET): Invoke it.
50907         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50908
50909 2008-09-28  Bruno Haible  <bruno@clisp.org>
50910
50911         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
50912         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
50913         Needed on OSF/1 4.0.
50914
50915 2008-09-28  Bruno Haible  <bruno@clisp.org>
50916
50917         Override open more carefully.
50918         * lib/open.c (orig_open): New function.
50919         (rpl_open): Use orig_open instead of open.
50920         * lib/fcntl.in.h: Add special invocation convention.
50921         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
50922         (gl_FUNC_OPEN): Invoke it.
50923
50924         Override freopen more carefully.
50925         * lib/freopen.c (orig_freopen): New function.
50926         (rpl_freopen): Use orig_freopen instead of freopen.
50927         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
50928         (gl_FUNC_FREOPEN): Invoke it.
50929
50930         Override fopen more carefully.
50931         * lib/fopen.c (orig_fopen): New function.
50932         (rpl_fopen): Use orig_fopen instead of fopen.
50933         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
50934         (gl_FUNC_FOPEN): Invoke it.
50935         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
50936
50937 2008-09-28  Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
50940         SIGPIPE.
50941
50942 2008-09-28  Bruno Haible  <bruno@clisp.org>
50943
50944         * tests/test-sigaction.c (handler, main): Disable the check whether
50945         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
50946         glibc systems with LinuxThreads.
50947
50948 2008-09-28  Bruno Haible  <bruno@clisp.org>
50949
50950         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
50951
50952         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
50953         with AIX xlc.
50954         * lib/fcntl.in.h (open): Likewise.
50955         Reported by Rainer Tammer <tammer@tammer.net>.
50956
50957 2008-09-28  Bruno Haible  <bruno@clisp.org>
50958
50959         * modules/posix_spawnp-tests: New file.
50960         * tests/test-posix_spawn.c: New file.
50961         * tests/test-posix_spawn.in.sh: New file.
50962
50963         New module 'posix_spawnp'.
50964         * modules/posix_spawnp: New file.
50965         * lib/spawnp.c: New file, from GNU libc with modifications.
50966         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
50967
50968         New module 'posix_spawn'.
50969         * modules/posix_spawn: New file.
50970         * lib/spawn.c: New file, from GNU libc with modifications.
50971         * doc/posix-functions/posix_spawn.texi: Mention the new module.
50972
50973         New module 'posix_spawnattr_destroy'.
50974         * modules/posix_spawnattr_destroy: New file.
50975         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
50976         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
50977         module.
50978
50979         New module 'posix_spawnattr_setsigmask'.
50980         * modules/posix_spawnattr_setsigmask: New file.
50981         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
50982         modifications.
50983         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
50984         new module.
50985
50986         New module 'posix_spawnattr_getsigmask'.
50987         * modules/posix_spawnattr_getsigmask: New file.
50988         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
50989         modifications.
50990         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
50991         new module.
50992
50993         New module 'posix_spawnattr_setsigdefault'.
50994         * modules/posix_spawnattr_setsigdefault: New file.
50995         * lib/spawnattr_setdefault.c: New file, from GNU libc with
50996         modifications.
50997         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
50998         new module.
50999
51000         New module 'posix_spawnattr_getsigdefault'.
51001         * modules/posix_spawnattr_getsigdefault: New file.
51002         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51003         modifications.
51004         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51005         new module.
51006
51007         New module 'posix_spawnattr_setschedpolicy'.
51008         * modules/posix_spawnattr_setschedpolicy: New file.
51009         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51010         modifications.
51011         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51012         new module.
51013
51014         New module 'posix_spawnattr_getschedpolicy'.
51015         * modules/posix_spawnattr_getschedpolicy: New file.
51016         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51017         modifications.
51018         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51019         new module.
51020
51021         New module 'posix_spawnattr_setschedparam'.
51022         * modules/posix_spawnattr_setschedparam: New file.
51023         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51024         modifications.
51025         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51026         new module.
51027
51028         New module 'posix_spawnattr_getschedparam'.
51029         * modules/posix_spawnattr_getschedparam: New file.
51030         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51031         modifications.
51032         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51033         new module.
51034
51035         New module 'posix_spawnattr_setpgroup'.
51036         * modules/posix_spawnattr_setpgroup: New file.
51037         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51038         modifications.
51039         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51040         module.
51041
51042         New module 'posix_spawnattr_getpgroup'.
51043         * modules/posix_spawnattr_getpgroup: New file.
51044         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51045         modifications.
51046         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51047         module.
51048
51049         New module 'posix_spawnattr_setflags'.
51050         * modules/posix_spawnattr_setflags: New file.
51051         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51052         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51053         module.
51054
51055         New module 'posix_spawnattr_getflags'.
51056         * modules/posix_spawnattr_getflags: New file.
51057         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51058         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51059         module.
51060
51061         New module 'posix_spawnattr_init'.
51062         * modules/posix_spawnattr_init: New file.
51063         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51064         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51065         module.
51066
51067         New module 'posix_spawn_file_actions_destroy'.
51068         * modules/posix_spawn_file_actions_destroy: New file.
51069         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51070         modifications.
51071         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51072         the new module.
51073
51074         New module 'posix_spawn_file_actions_addopen'.
51075         * modules/posix_spawn_file_actions_addopen: New file.
51076         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51077         modifications.
51078         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51079         the new module.
51080
51081         New module 'posix_spawn_file_actions_adddup2'.
51082         * modules/posix_spawn_file_actions_adddup2: New file.
51083         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51084         modifications.
51085         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51086         the new module.
51087
51088         New module 'posix_spawn_file_actions_addclose'.
51089         * modules/posix_spawn_file_actions_addclose: New file.
51090         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51091         modifications.
51092         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51093         the new module.
51094
51095         New module 'posix_spawn_file_actions_init'.
51096         * modules/posix_spawn_file_actions_init: New file.
51097         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51098         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51099         new module.
51100
51101         New module 'posix_spawn-internal'.
51102         * modules/posix_spawn-internal: New file.
51103         * lib/spawn_int.h: New file, from GNU libc with modifications.
51104         * lib/spawni.c: New file, from GNU libc with modifications.
51105         * m4/posix_spawn.m4: New file.
51106
51107         New module 'spawn'.
51108         * modules/spawn: New file.
51109         * lib/spawn.in.h: New file, from GNU libc with modifications.
51110         * m4/spawn_h.m4: New file.
51111         * doc/posix-headers/spawn.texi: Mention the new module.
51112
51113 2008-09-28  Bruno Haible  <bruno@clisp.org>
51114
51115         * modules/sched-tests: New file.
51116         * tests/test-sched.c: New file.
51117
51118         New module 'sched'.
51119         * modules/sched: New file.
51120         * lib/sched.in.h: New file.
51121         * m4/sched_h.m4: New file.
51122         * doc/posix-headers/sched.texi: Mention the new module.
51123
51124 2008-09-27  Eric Blake  <ebb9@byu.net>
51125
51126         Fix previous patch, and tweak references to $0.
51127         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51128         (func_version, func_gnulib_dir): Don't call this program
51129         gnulib-tool.
51130         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51131         with using $0 in function.
51132         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51133         (func_fatal_error): Reuse the name the user invoked us with.
51134
51135 2008-09-27  Bruno Haible  <bruno@clisp.org>
51136
51137         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51138         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51139         (gl_ICONV_H): Not here.
51140         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51141         instead of assigning ICONV_H directly.
51142
51143         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51145         WCHAR_H directly.
51146
51147 2008-09-27  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51150         * modules/arpa_inet (Depends-on): Add link-warning.
51151         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51152         * modules/unistd (Makefile.am): Likewise.
51153
51154 2008-09-26  Bruno Haible  <bruno@clisp.org>
51155
51156         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51157         variables.
51158         (func_version): Essentially copied from gnulib-tool.
51159         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51160         func_readlink): Copied from gnulib-tool.
51161
51162 2008-09-26  Bruno Haible  <bruno@clisp.org>
51163
51164         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51165         invoking git-version-gen.
51166
51167 2008-09-26  Bruno Haible  <bruno@clisp.org>
51168
51169         * posix-modules: Update to directory names changed on 2008-01-19.
51170         Remove commas in output before splitting into words. No more need to
51171         avoid 'ftruncate' since 2007-02-19.
51172
51173 2008-09-26  Bruno Haible  <bruno@clisp.org>
51174
51175         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51176
51177 2008-09-26  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51180         * modules/fwriteerror (Depends-on): Add errno.
51181
51182 2008-09-26  Bruno Haible  <bruno@clisp.org>
51183
51184         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51185         * tests/test-vc-list-files-cvs.sh: Likewise.
51186
51187 2008-09-26  Bruno Haible  <bruno@clisp.org>
51188
51189         * doc/posix-headers/sys_resource.texi: Reorder items.
51190
51191 2008-09-26  Jim Meyering  <meyering@redhat.com>
51192
51193         fts: tweak inode comparison function
51194         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51195         inode numbers, as documented.
51196
51197         fts: sort dirent entries on inode number before traversing
51198         This avoids a quadratic, seek-related performance penalty when
51199         operating on a directory containing many entries (measurable at 10k;
51200         3.5 hours at 2 million entries with a cold cache) on certain types
51201         of file systems, including ext3 and ext4, but not tmpfs.
51202         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51203         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51204         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51205         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51206         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51207         (fts_build): Set the stat.st_ino member from D_INO.
51208         If it is likely to be useful, sort dirent entries on inode number.
51209
51210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51211         and the struct statfs.f_type member.
51212         * modules/fts (Depends-on): Add d-ino.
51213
51214 2008-09-26  Bruno Haible  <bruno@clisp.org>
51215
51216         * modules/sigpipe-die (Depends-on): Add sigpipe.
51217
51218         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51219         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51220         and GNULIB_STDIO_H_SIGPIPE are set.
51221         * lib/stdio-write.c: New file.
51222         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51223         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51224         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51225         REPLACE_STDIO_WRITE_FUNCS.
51226         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51227         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51228         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51229         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51230         * modules/stdio (Files): Add lib/stdio-write.c.
51231         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51232         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51233         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51234         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51235         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51236         REPLACE_FPRINTF_POSIX.
51237         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51238         REPLACE_PRINTF_POSIX.
51239         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51240         REPLACE_VFPRINTF_POSIX.
51241         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51242         REPLACE_VPRINTF_POSIX.
51243         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51244         SIGPIPE issue.
51245         * doc/posix-functions/fputc.texi: Likewise.
51246         * doc/posix-functions/fputs.texi: Likewise.
51247         * doc/posix-functions/fwrite.texi: Likewise.
51248         * doc/posix-functions/printf.texi: Likewise.
51249         * doc/posix-functions/putc.texi: Likewise.
51250         * doc/posix-functions/putchar.texi: Likewise.
51251         * doc/posix-functions/puts.texi: Likewise.
51252         * doc/posix-functions/vfprintf.texi: Likewise.
51253         * doc/posix-functions/vprintf.texi: Likewise.
51254
51255         * modules/safe-write (Depends-on): Add write.
51256
51257         * modules/sigpipe-tests: New file.
51258         * tests/test-sigpipe.c: New file.
51259         * tests/test-sigpipe.sh: New file.
51260
51261         * modules/write: New file.
51262         * lib/unistd.in.h: Include <sys/types.h>.
51263         (write): New declaration.
51264         * lib/write.c: New file.
51265         * m4/write.m4: New file.
51266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51267         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51268         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51269         GNULIB_WRITE, REPLACE_WRITE.
51270         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51271         and the SIGPIPE issue.
51272
51273         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51274         (raise): New declaration.
51275         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51276         (ext_signal): New function.
51277         (rpl_raise): New function.
51278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51279         GNULIB_SIGNAL_H_SIGPIPE.
51280         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51281         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51282
51283         * modules/sigpipe: New file.
51284         * m4/sigpipe.m4: New file.
51285
51286 2008-09-25  Derek Price  <derek@ximbiot.com>
51287             Bruno Haible  <bruno@clisp.org>
51288
51289         * gnulib-tool (func_import): Report all license incompatibilities, not
51290         just the first one.
51291
51292 2008-09-25  Bruno Haible  <bruno@clisp.org>
51293
51294         * gnulib-tool (func_import): When computing the edits, consider not
51295         only the Makefile.ams that exist but also those that will be generated.
51296
51297 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51298
51299         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51300         fixes gnulib-tool --test warning about duplicate dependency.
51301
51302 2008-09-25  Bruno Haible  <bruno@clisp.org>
51303
51304         * gnulib-tool: Don't ask the user to perform edits in the generated
51305         Makefile.ams.
51306         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51307         apply to the Makefile.am being generated.
51308         (func_emit_tests_Makefile_am): Execute edits that apply to the
51309         Makefile.am being generated.
51310         (func_import): Setup list of Makefile.am edits before emitting the
51311         Makefile.ams, not at the end.
51312         (func_create_testdir): Update.
51313         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51314
51315 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51316
51317         * gnulib-tool (func_import): Store the --tests-base option in the
51318         comment in gnulib-cache.m4.
51319
51320 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51321
51322         * NEWS: Document increased portability that sys_select now provides.
51323
51324         * lib/sys_select.in.h: Install select wrapper.
51325         * lib/sys_socket.in.h: Use more descriptive name when there is no
51326         select wrapper.
51327         * lib/winsock-select.c: New.
51328         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51329         Require gl_HEADER_SYS_SOCKET.
51330         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51331         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51332         * tests/test-sys_select.c: Add functional tests.
51333
51334 2008-09-24  Eric Blake  <ebb9@byu.net>
51335
51336         open, fopen: close fd leak in last patch
51337         * lib/open.c (rpl_open): Close fd before returning error.
51338         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51339         * doc/posix-functions/open.texi (open): Document that Irix also
51340         has the bug.
51341         * doc/posix-functions/fopen.texi (fopen): Likewise.
51342         Reported by Paolo Bonzini.
51343
51344 2008-09-24  Bruno Haible  <bruno@clisp.org>
51345
51346         Ensure that a filename ending in a slash cannot be used to access a
51347         non-directory.
51348         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51349         to check whether it's really a directory.
51350         * lib/fopen.c: Include fcntl.h, unistd.h.
51351         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51352         and fdopen().
51353         * modules/fopen (Depends-on): Add unistd.
51354         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51355         * tests/test-fopen.c (main): Likewise.
51356         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51357         * doc/posix-functions/fopen.texi: Likewise.
51358         Reported by Eric Blake.
51359
51360 2008-09-23  Eric Blake  <ebb9@byu.net>
51361
51362         c-stack: avoid compiler optimizations when provoking overflow
51363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51364         recursion harder to optimize, to ensure a stack overflow occurs.
51365         * tests/test-c-stack.c (recurse): Likewise.
51366         Borrowed from libsigsegv.
51367
51368         c-stack: work around Irix sigaltstack bug
51369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51370         whether sigaltstack uses wrong end of stack_t (copied in part from
51371         libsigsegv).
51372         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51373         Irix bug, without requiring an over-allocation.
51374         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51375         bug.
51376
51377         fopen: document mingw bug on directories
51378         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51379         not allowing a stream visiting a directory, even though reading
51380         from such a stream is not portable.
51381
51382 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51383
51384         * lib/poll.c: Rewrite.
51385         * modules/poll: Depend on alloca.
51386
51387 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51388
51389         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51390         instead define prototypes for a full set of wrappers.  Ensure
51391         that Cygwin does not use the compatibility code, which is only
51392         for MinGW.
51393         * lib/winsock.c: New.
51394         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51395         * modules/sys_socket: Add lib/winsock.c.
51396
51397         * modules/poll-tests: Add errno and perror.
51398         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51399
51400 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51401
51402         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51403
51404 2008-09-23  Bruno Haible  <bruno@clisp.org>
51405
51406         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51407         * doc/glibc-functions/*: Likewise.
51408
51409 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51410
51411         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51412         success.
51413
51414 2008-09-22  Eric Blake  <ebb9@byu.net>
51415             Bruno Haible  <bruno@clisp.org>
51416
51417         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51418         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51419         supply %A but mishandle pseudo-NaN.
51420         Reported by Simon Josefsson.
51421
51422 2008-09-21  Bruno Haible  <bruno@clisp.org>
51423
51424         * tests/test-lock.c (main): Tweak skip message.
51425         * tests/test-tls.c (main): Likewise.
51426
51427 2008-09-21  Bruno Haible  <bruno@clisp.org>
51428
51429         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51430         whether 'struct sigaction' has sa_sigaction here...
51431         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51432         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51433
51434 2008-09-21  Bruno Haible  <bruno@clisp.org>
51435
51436         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51437         section.
51438         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51439         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51440         the new section.
51441         (Support for obsolete systems lacking POSIX:2001): New section.
51442         (String handling <string.h>): Move strdup to the new section.
51443         Suggested by Simon Josefsson and Paolo Bonzini.
51444
51445 2008-09-21  Bruno Haible  <bruno@clisp.org>
51446
51447         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51448         exponents in %e and %g results on 'long double'. Needed for mingw's
51449         improved *printf functions.
51450         * tests/test-vasprintf-posix.c (test_function): Likewise.
51451         * tests/test-snprintf-posix.h (test_function): Likewise.
51452         * tests/test-sprintf-posix.h (test_function): Likewise.
51453         Reported by Eric Blake.
51454
51455 2008-09-21  Bruno Haible  <bruno@clisp.org>
51456
51457         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51458         * tests/test-sprintf-posix.h (test_function): Likewise.
51459
51460 2008-09-21  Bruno Haible  <bruno@clisp.org>
51461
51462         * modules/getpass (Depends-on): Add strdup-posix.
51463
51464         New module 'strdup-posix'.
51465         * modules/strdup-posix: New file.
51466         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51467         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51469         REPLACE_STRDUP.
51470         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51471         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51472         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51473         strdup-posix.
51474
51475         * modules/strdup (Depends-on): Remove malloc-posix.
51476
51477 2008-09-20  Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51480         Wildenhues.
51481
51482 2008-09-20  Bruno Haible  <bruno@clisp.org>
51483
51484         Ensure that wint_t gets defined on IRIX 5.3.
51485         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51486         * lib/wctype.in.h (wint_t): Likewise.
51487         (__wctype_wint_t): Remove type.
51488         (isw*): Use wint_t instead of __wctype_wint_t.
51489         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51490         * modules/wchar (Files): Add m4/wint_t.m4.
51491         (Makefile.am): Substitute HAVE_WINT_T.
51492         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51493         * tests/test-wctype.c: Check that wint_t is defined.
51494         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51495         * doc/posix-headers/wctype.texi: Likewise.
51496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51497
51498 2008-09-18  Bruno Haible  <bruno@clisp.org>
51499
51500         * gnulib-tool (func_exit): Update comment.
51501
51502 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51503
51504         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51505         assumes strdup exists and does not depend on strdup to return
51506         ENOMEM on out of memory conditions.
51507
51508 2008-09-18  Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
51511         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51512         digits for the exponent.
51513
51514 2008-09-18  Jim Meyering  <meyering@redhat.com>
51515             Bruno Haible  <bruno@clisp.org>
51516
51517         * lib/vasnprintf.c (decimal_point_char): Define also if
51518         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51519
51520 2008-09-16  Bruno Haible  <bruno@clisp.org>
51521         and Eric Blake  <ebb9@byu.net>
51522
51523         vasnprintf: support Irix 5.3
51524         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51525         that mishandle long double infinity.
51526         Reported by Tom G. Christensen.
51527
51528 2008-09-16  Bruno Haible  <bruno@clisp.org>
51529
51530         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51531         Solaris 9.
51532         * doc/glibc-functions/alphasort.texi: Likewise.
51533         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51534
51535 2008-09-16  Jim Meyering  <meyering@redhat.com>
51536
51537         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51538         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51539         a umask modification leak out of a subshell.  Otherwise, the
51540         opensolaris /bin/sh would be accepted and thus cause unwarranted
51541         failures in the coreutils test suite.
51542
51543 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51544
51545         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51546         to succeed.
51547
51548 2008-09-16  Jim Meyering  <meyering@redhat.com>
51549
51550         avoid spurious test failure when library is built without ACL support
51551         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51552         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51553         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51554         * tests/test-copy-acl.sh: Likewise.
51555
51556 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51557
51558         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51559         based on character occurrence counts.
51560
51561 2008-09-15  Eric Blake  <ebb9@byu.net>
51562
51563         tests: avoid some compiler warnings
51564         * tests/test-memchr.c (main): Pass NULL indirectly.
51565         * tests/test-closein.c (main): Avoid unused variable.
51566
51567 2008-09-15  Bruno Haible  <bruno@clisp.org>
51568
51569         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51570         are missing on OpenBSD 4.0 individually.
51571         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51572
51573 2008-09-15  Bruno Haible  <bruno@clisp.org>
51574
51575         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51576         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51577         * doc/posix-functions/perror.texi: Likewise.
51578         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51579         is missing.
51580         Reported by Eric Blake.
51581
51582         * lib/errno.in.h: Use replacement values >= 2000.
51583         Reported by Eric Blake.
51584
51585 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51586
51587         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51588         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51589         limit.
51590         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51591         compareseq was aborted.
51592
51593 2008-09-14  Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51596         yvec_edit_count.
51597         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51598         (fstrcmp_bounded): Simplify result computation accordingly.
51599
51600 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51601
51602         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51603         (fstrcmp): Define in terms of fstrcmp_bounded.
51604         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51605         lower_bound argument.
51606         Return quickly if the result is certainly < lower_bound.
51607         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51608
51609 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51610
51611         * lib/diffseq.h (EARLY_ABORT): New macro.
51612         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51613         evaluates to true.
51614
51615 2008-09-14  Bruno Haible  <bruno@clisp.org>
51616
51617         * modules/perror-tests: New file.
51618         * tests/test-perror.sh: New file.
51619         * tests/test-perror.c: New file.
51620
51621         New module 'perror'.
51622         * lib/stdio.in.h (perror): New declaration.
51623         * lib/perror.c: New file.
51624         * m4/perror.m4: New file.
51625         * modules/perror: New file.
51626         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51627         * doc/posix-functions/perror.texi: Mention the perror module.
51628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51629         REPLACE_PERROR.
51630         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51631         REPLACE_PERROR.
51632
51633 2008-09-14  Bruno Haible  <bruno@clisp.org>
51634
51635         * modules/stdio (Makefile.am): Reorder to match the order in
51636         lib/stdio.in.h.
51637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51638
51639 2008-09-13  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51642
51643 2008-09-13  Bruno Haible  <bruno@clisp.org>
51644
51645         Extend strerror to cover the added errno values.
51646         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51647         (rpl_strerror): Provide error messages for the added errno values and
51648         for the WSA* values.
51649         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51650         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51651         strerror.
51652         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51653         * modules/strerror (Depends-on): Add errno.
51654         * doc/posix-functions/strerror.texi: Document the change.
51655         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51656         and EOVERFLOW.
51657
51658 2008-09-13  Bruno Haible  <bruno@clisp.org>
51659
51660         * modules/EOVERFLOW: Remove file.
51661         * m4/eoverflow.m4: Remove file.
51662         * modules/EOVERFLOW-tests: Remove file.
51663         * tests/test-EOVERFLOW.c: Remove file.
51664         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51665         * modules/ftell (Depends-on): Likewise.
51666         * modules/getdelim (Depends-on): Likewise.
51667         * modules/getugroups (Depends-on): Likewise.
51668         * modules/poll (Depends-on): Likewise.
51669         * modules/snprintf (Depends-on): Likewise.
51670         * modules/sprintf-posix (Depends-on): Likewise.
51671         * modules/vasnprintf (Depends-on): Likewise.
51672         * modules/vasprintf (Depends-on): Likewise.
51673         * modules/vfprintf-posix (Depends-on): Likewise.
51674         * modules/vsnprintf (Depends-on): Likewise.
51675         * modules/vsprintf-posix (Depends-on): Likewise.
51676         * modules/xvasprintf (Depends-on): Likewise.
51677         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51678         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51679         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51680         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51681         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51682         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51683         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51684         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51685         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51686         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51687         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51688         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51690         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51691         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51692         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51693         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51694         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51695         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51696         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51697         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51698         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51699         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51700         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51701         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51702         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51703         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51704         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51705         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51706         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51707         * MODULES.html.sh: Remove EOVERFLOW.
51708         * NEWS: Mention the change.
51709
51710 2008-09-13  Bruno Haible  <bruno@clisp.org>
51711
51712         * modules/errno-tests: New file.
51713         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51714
51715         * lib/errno.in.h: New file.
51716         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51717         * modules/errno: New file.
51718         * doc/posix-headers/errno.texi: Update documentation.
51719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51720
51721 2008-09-13  Bruno Haible  <bruno@clisp.org>
51722
51723         * tests/test-poll.c: Use #if for native Windows, rather than testing
51724         __MSVCRT__.
51725
51726 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51727             Bruno Haible  <bruno@clisp.org>
51728
51729         * lib/glob.c: Don't include <pwd.h> on native Windows.
51730         (WINDOWS32): New macro.
51731         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51732
51733 2008-09-13  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51736         (ETIMEDOUT): Remove macro.
51737         (glthread_cond_timedwait_multithreaded): New declaration.
51738         (glthread_cond_timedwait): Use it.
51739         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51740         (glthread_cond_timedwait_multithreaded): New function.
51741
51742 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51743
51744         * modules/poll-tests: Do not check for io.h.
51745         * tests/test-poll.c: Check for __MSVCRT__ instead.
51746
51747 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51748
51749         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51750         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51751         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51752
51753 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51754
51755         * modules/poll-tests: New.
51756         * tests/test-poll.c: New.
51757
51758 2008-09-12  Eric Blake  <ebb9@byu.net>
51759
51760         frexp: test for NetBSD failure on -0.0
51761         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51762         not all, bugs from NetBSD 3.0 have been fixed.
51763         * doc/posix-functions/frexp.texi (frexp): Document bug.
51764         Reported by Thomas Klausner.
51765
51766         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51767         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51768         literal -0.0.
51769         Reported by Jonathan C. Patschke <jp@centtech.com>.
51770
51771 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51772
51773         * lib/glthread/cond.h: Use dummy implementation also if
51774         USE_WIN32_THREADS.
51775
51776 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51777
51778         * modules/fnmatch-posix (License): Change to LGPLv2+.
51779         * modules/fnmatch-gnu (License): Likewise.
51780
51781 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51782
51783         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51784
51785 2008-09-11  Jim Meyering  <meyering@redhat.com>
51786
51787         * users.txt: Add gtk-vnc.
51788
51789 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51790
51791         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51792         rotate amounts.
51793
51794         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51795         required for 16-bit and 8-bit rotates.
51796         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51797         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51798         UINT8_MAX instead of hard-coded constants.
51799         Suggested by Paul Eggert.
51800
51801 2008-09-07  Bruno Haible  <bruno@clisp.org>
51802
51803         * tests/test-striconveh.c (main): Check behaviour when converting from
51804         UTF-7.
51805
51806         Make striconveh work better with stateful encodings.
51807         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51808         that iconv does not increment the inptr when returning -1/EINVAL.
51809
51810 2008-09-07  Bruno Haible  <bruno@clisp.org>
51811
51812         * build-aux/config.rpath: Update according to libtool-2.2.6.
51813         * build-aux/config.libpath: Likewise.
51814
51815 2008-09-06  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51818         * lib/freadptr.c (freadptr): Likewise.
51819         * lib/freadseek.c (freadptrinc): Likewise.
51820         Reported by Simon Josefsson.
51821
51822 2008-09-06  Bruno Haible  <bruno@clisp.org>
51823
51824         * modules/freadptr (License): Change to LGPLv2+.
51825         * modules/freadseek (License): Likewise.
51826         Suggested by Eric Blake.
51827
51828         * modules/memchr2 (License): Change to LGPLv2+.
51829         Approved by Eric Blake.
51830
51831 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51832             Bruno Haible  <bruno@clisp.org>
51833
51834         Make gnulib-tool work with native 'sed' on AIX.
51835         * gnulib-tool (sed_noop): New variable.
51836         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51837         func_add_or_update, func_create_testdir): Use it to initialize sed
51838         script variables.
51839         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51840
51841 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
51842             Bruno Haible  <bruno@clisp.org>
51843
51844         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
51845         also works after #include directives.
51846
51847 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
51848
51849         getdate.y: reject an out-of-range timezone value
51850         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
51851         the range [-24...+24].  When specified with only one or two digits,
51852         * tests/test-getdate.c: Tests for the fix.
51853         * doc/getdate.texi: Document this change.
51854
51855 2008-09-03  Bruno Haible  <bruno@clisp.org>
51856
51857         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
51858
51859 2008-09-02  Simon Josefsson  <simon@josefsson.org>
51860
51861         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
51862         <bruce.korb@gmail.com> with ideas from Ben Pfaff
51863         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
51864         Blake <ebb9@byu.net>.
51865
51866         * tests/test-bitrotate.c: Add more test vectors.
51867
51868 2008-09-02  Eric Blake  <ebb9@byu.net>
51869
51870         vasnprintf-posix: handle large precision via %.*d
51871         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
51872         when handling it ourselves.
51873         * tests/test-vasnprintf-posix.c (test_function): Add test.
51874         * tests/test-snprintf-posix.h (test_function): Likewise.
51875         * tests/test-sprintf-posix.h (test_function): Likewise.
51876         * tests/test-vasprintf-posix.c (test_function): Likewise.
51877         Reported by Alain Guibert.
51878
51879 2008-09-01  Eric Blake  <ebb9@byu.net>
51880
51881         c-stack: make configure-time check more robust
51882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
51883         successful sigaction call.
51884         Reported by Tom G. Christensen.
51885
51886 2008-09-01  Bruno Haible  <bruno@clisp.org>
51887
51888         New module 'findprog-lgpl'.
51889         * modules/findprog-lgpl: New file.
51890         * lib/findprog-lgpl.c: New file.
51891         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
51892         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
51893         to decide whether to use strdup or xstrdup, concatenated_filename or
51894         xconcatenated_filename.
51895
51896 2008-09-01  Bruno Haible  <bruno@clisp.org>
51897
51898         Split module 'concat-filename' into 'concat-filename' (LGPL) and
51899         'xconcat-filename' (GPL).
51900         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
51901         (License): Change to LGPLv2+.
51902         * modules/xconcat-filename: New file.
51903         * lib/concat-filename.h (concatenated_filename): Change specification.
51904         (xconcatenated_filename): New declaration.
51905         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
51906         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
51907         memory situations.
51908         * lib/xconcat-filename.c: New file.
51909         * NEWS: Mention the change.
51910         * lib/findprog.c: Include concat-filename.h, not filename.h.
51911         (find_in_path): Use xconcatenated_filename instead of
51912         concatenated_filename.
51913         * lib/javacomp.c: Include concat-filename.h, not filename.h.
51914         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51915         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51916         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51917         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
51918         instead of concatenated_filename.
51919         * lib/javaexec.c: Include concat-filename.h, not filename.h.
51920         (execute_java_class): Use xconcatenated_filename instead of
51921         concatenated_filename.
51922         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
51923         * modules/javacomp (Depends-on): Likewise.
51924         * modules/javaexec (Depends-on): Likewise.
51925
51926 2008-09-01  Bruno Haible  <bruno@clisp.org>
51927
51928         Split module 'filename' into 'filename' and 'concat-filename'.
51929         * modules/filename: Keep only lib/filename.h.
51930         (License): Change to LGPLv2+.
51931         * modules/concat-filename: New file, extracted from modules/filename.
51932         * lib/filename.h (concatenated_filename): Remove declaration.
51933         * lib/concat-filename.h: New file, extracted from lib/filename.h.
51934         * lib/concat-filename.c: Include concat-filename.h.
51935         * NEWS: Mention the change.
51936
51937 2008-09-01  Simon Josefsson  <simon@josefsson.org>
51938
51939         * lib/bitrotate.h (rotl8, rotr8): Add.
51940
51941         * modules/bitrotate (configure.ac): Need
51942         AC_REQUIRE([AC_C_INLINE]).
51943         (Description): Mention stdint.h.  Reported by Bruno Haible
51944         <bruno@clisp.org>.
51945
51946         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
51947         Paolo Bonzini <bonzini@gnu.org>.
51948
51949 2008-08-31  Bruno Haible  <bruno@clisp.org>
51950
51951         Assume Solaris specific bi-arch conventions on Solaris systems.
51952         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
51953         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
51954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
51955         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
51956         like acl_libdirstem.
51957         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
51958         acl_libdirstem.
51959         * NEWS: Mention the change.
51960         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
51961
51962 2008-08-31  Jim Meyering  <meyering@redhat.com>
51963
51964         * lib/strftime.h: Add comments describing the two added arguments.
51965
51966         remove duplicate #include directives
51967         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
51968         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
51969
51970 2008-08-31  Bruno Haible  <bruno@clisp.org>
51971
51972         New module 'sigpipe-die'.
51973         * modules/sigpipe-die: New file.
51974         * lib/sigpipe-die.h: New file.
51975         * lib/sigpipe-die.c: New file.
51976         * MODULES.html.sh (Signal handling): Add sigpipe-die.
51977
51978 2008-08-31  Bruno Haible  <bruno@clisp.org>
51979
51980         Don't override previously installed signal handlers.
51981         * lib/fatal-signal.c (saved_sigactions): New variable.
51982         (uninstall_handlers): Reset the signal to the saved handler, not
51983         to SIG_DFL (except when ignored).
51984         (install_handlers): Save the previous handlers.
51985
51986 2008-08-30  Bruno Haible  <bruno@clisp.org>
51987
51988         * gnulib-tool (func_reset_sigpipe): New function.
51989         (func_get_automake_snippet, func_modules_transitive_closure,
51990         func_import): Invoke it before a join command that reads from stdin,
51991         to avoid "echo: write error: Broken pipe" error messages on stderr.
51992         Reported by Sam Steingold <sds@gnu.org>.
51993
51994 2008-08-30  Bruno Haible  <bruno@clisp.org>
51995
51996         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
51997         Code copied from m4/open.m4.
51998         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
51999         access and the filename ends in a slash. Code copied from lib/open.c.
52000         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52001         * tests/test-fopen.c (main): Check against bug with trailing slash.
52002
52003 2008-08-29  Bruno Haible  <bruno@clisp.org>
52004
52005         Avoid some "gcc -pedantic" warnings.
52006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52007         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52008         * lib/dirent.in.h: Likewise.
52009         * lib/fcntl.in.h: Likewise.
52010         * lib/float.in.h: Likewise.
52011         * lib/iconv.in.h: Likewise.
52012         * lib/inttypes.in.h: Likewise.
52013         * lib/locale.in.h: Likewise.
52014         * lib/math.in.h: Likewise.
52015         * lib/netinet_in.in.h: Likewise.
52016         * lib/search.in.h: Likewise.
52017         * lib/signal.in.h: Likewise.
52018         * lib/stdarg.in.h: Likewise.
52019         * lib/stdint.in.h: Likewise.
52020         * lib/stdio.in.h: Likewise.
52021         * lib/stdlib.in.h: Likewise.
52022         * lib/string.in.h: Likewise.
52023         * lib/strings.in.h: Likewise.
52024         * lib/sys_select.in.h: Likewise.
52025         * lib/sys_socket.in.h: Likewise.
52026         * lib/sys_stat.in.h: Likewise.
52027         * lib/sys_time.in.h: Likewise.
52028         * lib/sysexits.in.h: Likewise.
52029         * lib/time.in.h: Likewise.
52030         * lib/unistd.in.h: Likewise.
52031         * lib/wchar.in.h: Likewise.
52032         * lib/wctype.in.h: Likewise.
52033         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52034         * modules/fchdir (Makefile.am): Likewise.
52035         * modules/fcntl (Makefile.am): Likewise.
52036         * modules/float (Makefile.am): Likewise.
52037         * modules/iconv_open (Makefile.am): Likewise.
52038         * modules/inttypes (Makefile.am): Likewise.
52039         * modules/locale (Makefile.am): Likewise.
52040         * modules/math (Makefile.am): Likewise.
52041         * modules/netinet_in (Makefile.am): Likewise.
52042         * modules/search (Makefile.am): Likewise.
52043         * modules/signal (Makefile.am): Likewise.
52044         * modules/stdarg (Makefile.am): Likewise.
52045         * modules/stdint (Makefile.am): Likewise.
52046         * modules/stdio (Makefile.am): Likewise.
52047         * modules/stdlib (Makefile.am): Likewise.
52048         * modules/string (Makefile.am): Likewise.
52049         * modules/strings (Makefile.am): Likewise.
52050         * modules/sys_select (Makefile.am): Likewise.
52051         * modules/sys_socket (Makefile.am): Likewise.
52052         * modules/sys_stat (Makefile.am): Likewise.
52053         * modules/sys_time (Makefile.am): Likewise.
52054         * modules/sysexits (Makefile.am): Likewise.
52055         * modules/time (Makefile.am): Likewise.
52056         * modules/unistd (Makefile.am): Likewise.
52057         * modules/wchar (Makefile.am): Likewise.
52058         * modules/wctype (Makefile.am): Likewise.
52059         Reported by Reuben Thomas <rrt@sc3d.org>.
52060
52061 2008-08-29  Bruno Haible  <bruno@clisp.org>
52062
52063         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52064         any more.
52065
52066 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52067
52068         * MODULES.html.sh (Misc): Add bitrotate.
52069
52070         * modules/bitrotate: New file.
52071
52072         * lib/bitrotate.h: New file.
52073
52074         * modules/bitrotate-tests: New file.
52075
52076         * tests/test-bitrotate.c: New file.
52077
52078         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52079         on the bitrotate module.
52080
52081         * lib/arctwo.c: Use new bitrotate module.
52082
52083 2008-08-29  Jim Meyering  <meyering@redhat.com>
52084
52085         bootstrap: merge changes from coreutils
52086         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52087         of copied files.  Remove a kludge, now that this is fixed.
52088         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52089         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52090         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52091
52092 2008-08-29  Bruno Haible  <bruno@clisp.org>
52093
52094         * MODULES.html.sh: Remove --cvs-urls option.
52095
52096 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52097
52098         maint.mk: adjust to file name change
52099         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52100
52101 2008-08-28  Jim Meyering  <meyering@redhat.com>
52102
52103         * modules/getndelim2 (License): Relicense to LGPLv2+.
52104         Approved by Richard Stallman for the version of 1995, and by
52105         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52106
52107 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52108
52109         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52110         dummy if one is not available.  Do not touch them if
52111         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52112         (getc_maybe_unlocked): New.
52113         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52114
52115 2008-08-26  Eric Blake  <ebb9@byu.net>
52116
52117         doc/INSTALL: resync from autoconf
52118         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52119         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52120         moving...
52121         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52122         * INSTALL: Regenerate.
52123         * INSTALL.ISO: New file.
52124         * INSTALL.UTF-8: Likewise.
52125
52126 2008-08-26  Jim Meyering  <meyering@redhat.com>
52127
52128         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52129         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52130         these definitions conditional, so that they may be overridden, too.
52131
52132 2008-08-26  Bruno Haible  <bruno@clisp.org>
52133
52134         Generate INSTALL file variants with prettier quotes.
52135         * doc/Makefile (INSTALL_PRELUDE): New macro.
52136         (INSTALL): Use it.
52137         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52138
52139 2008-08-26  Bruno Haible  <bruno@clisp.org>
52140
52141         Run makeinfo in an English locale.
52142         * doc/Makefile (MAKEINFO): New variable.
52143
52144 2008-08-26  Bruno Haible  <bruno@clisp.org>
52145
52146         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52147         Suggested by Eric Blake.
52148
52149 2008-08-25  Bruno Haible  <bruno@clisp.org>
52150
52151         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52152
52153 2008-08-25  Eric Blake  <ebb9@byu.net>
52154
52155         c-stack: test that stack overflow can be caught
52156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52157         that platform allows handling stack overflow; at least OS/2 EMX
52158         has sigaltstack, but crashes before transferring control to
52159         handler on stack overflow.
52160         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52161         check for HAVE_STACK_OVERFLOW_HANDLING.
52162         Reported by Elbert Pol.
52163
52164 2008-08-25  Bruno Haible  <bruno@clisp.org>
52165
52166         * doc/posix-functions/strftime.texi: Fix description of strftime
52167         module.
52168
52169 2008-08-24  Bruno Haible  <bruno@clisp.org>
52170
52171         * tests/uniwidth/test-uc_width2.c: New file.
52172         * tests/uniwidth/test-uc_width2.sh: New file.
52173         * modules/uniwidth/width-tests (Files): Add the new files.
52174         (TESTS): Add uniwidth/test-uc_width2.sh.
52175         (TESTS_ENVIRONMENT): New variable.
52176         (check_PROGRAMS): Add test-uc_width2.
52177         (test_uc_width2_SOURCES): New variable.
52178
52179         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52180         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52181         not 0x00AB.
52182         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52183
52184 2008-08-22  Eric Blake  <ebb9@byu.net>
52185
52186         test-lock, test-tls: mention why a test is skipped
52187         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52188         skipped.
52189         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52190
52191         count-one-bits: relax license
52192         * modules/count-one-bits (License): Relicense to LGPLv2+.
52193         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52194
52195 2008-08-22  Andreas Schwab  <schwab@suse.de>
52196
52197         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52198         Remove spurious space in assignment.
52199
52200 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52201
52202         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52203         Paul Eggert <eggert@CS.UCLA.EDU>.
52204
52205 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52206
52207         * modules/gettext: Add m4/threadlib.m4.
52208
52209 2008-08-19  Eric Blake  <ebb9@byu.net>
52210
52211         test-c-stack: fix compilation failure on FreeBSD 5.0
52212         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52213         headers before <sys/resource.h>.
52214         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52215         the bug.
52216         Reported by Nelson H. F. Beebe.
52217
52218         strverscmp: migrate from "strverscmp.h" to <string.h>
52219         * modules/string (Makefile.am): Add new hooks.
52220         * modules/strverscmp (Files): Remove strverscmp.h.
52221         (Depends-on): Add string.
52222         (configure.ac): Add indicator.
52223         (Include): Mention new header.
52224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52225         defaults.
52226         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52227         results.
52228         * lib/strverscmp.h: Delete.
52229         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52230         * tests/test-strverscmp.c (includes): Adjust client.
52231         * lib/check-version.c (includes): Likewise.
52232         * NEWS: Document the change.
52233
52234         strverscmp: add unit test
52235         * modules/strverscmp-tests: New file.
52236         * tests/test-strverscmp.c: Likewise.
52237
52238 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52239
52240         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52241         regarding Windows crypto stuff, from Mono.
52242
52243 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52244
52245         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52246         if present, for intel RND.  Return error on failures.
52247
52248 2008-08-18  Ben Pfaff  <blp@gnu.org>
52249
52250         gitlog-to-changelog: give better diagnostic for failed pipe-open
52251         * build-aux/gitlog-to-changelog: Improve error message: suggest
52252         that the version of Git may be too old.
52253
52254 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52255
52256         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52257         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52258
52259 2008-08-18  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52262         pthread_in_use().
52263
52264 2008-08-18  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/glthread/threadlib.c: Include <pthread.h>.
52267
52268 2008-08-18  Bruno Haible  <bruno@clisp.org>
52269
52270         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52271         glthread_recursive_lock_* macros.
52272         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52273         Fix syntax error.
52274
52275 2008-08-18  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/glthread/thread.c: Avoid forcing a context switch right after
52278         thread creation.
52279
52280 2008-08-17  Bruno Haible  <bruno@clisp.org>
52281
52282         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52283         * lib/glthread/thread.h: Provide Win32 specific implementation.
52284         * modules/thread (Files): Add lib/glthread/thread.c.
52285         (Depends-on): Add lock.
52286         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52287
52288 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52289
52290         New module 'yield'.
52291         * modules/yield: New file.
52292         * lib/glthread/yield.h: New file.
52293         * m4/yield.m4: New file.
52294         * MODULES.html.sh (Multithreading): Add yield.
52295
52296 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52297
52298         New module 'thread'.
52299         * modules/thread: New file.
52300         * lib/glthread/thread.h: New file.
52301         * m4/thread.m4: New file.
52302         * MODULES.html.sh (Multithreading): Add thread.
52303
52304 2008-08-17  Bruno Haible  <bruno@clisp.org>
52305
52306         * lib/glthread/lock.h: Include <stdlib.h> always.
52307         * lib/glthread/tls.h: Likewise.
52308         * lib/glthread/cond.h: Likewise.
52309
52310 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52311
52312         New module 'cond'.
52313         * modules/cond: New file.
52314         * lib/glthread/cond.h: New file.
52315         * lib/glthread/cond.c: New file.
52316         * m4/cond.m4: New file.
52317         * MODULES.html.sh (Multithreading): Add cond.
52318
52319 2008-08-16  Eric Blake  <ebb9@byu.net>
52320
52321         c-stack: fix regression on Irix 5.3 from 2008-06-21
52322         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52323         sa_sigaction...
52324         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52325         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52326         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52327         * modules/signal (Makefile.am): Use the value.
52328         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52329         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52330         * doc/posix-headers/signal.texi (signal.h): Document this
52331         portability issue.
52332         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52333         Reported by Tom G. Christensen.
52334
52335 2008-08-17  Bruno Haible  <bruno@clisp.org>
52336
52337         New module 'threadlib'.
52338         * modules/threadlib: New file.
52339         * lib/glthread/threadlib.c: New file, extracted from
52340         lib/glthread/lock.c.
52341         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52342         functions.
52343         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52344         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52345         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52346         macros.
52347         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52348         (gl_DISABLE_THREADS): Remove macro.
52349         * modules/lock (Files): Remove build-aux/config.rpath.
52350         (Depends-on): Remove havelib. Add threadlib.
52351         (configure.ac-early): Remove section.
52352         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52353         * modules/tls (Depends-on): Remove lock. Add threadlib.
52354         (Link): New section, copied from threadlib.
52355         * MODULES.html.sh (Multithreading): Add threadlib.
52356
52357 2008-08-14  Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52360         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52361         glthread_rwlock_unlock, glthread_rwlock_destroy,
52362         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52363         glthread_recursive_lock_destroy): Define as macros always.
52364         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52365         glthread_lock_lock.
52366         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52367         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52368         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52369         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52370         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52371         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52372         (glthread_recursive_lock_lock_func): Renamed from
52373         glthread_recursive_lock_lock.
52374         (glthread_recursive_lock_unlock_func): Renamed from
52375         glthread_recursive_lock_unlock.
52376         (glthread_recursive_lock_destroy_func): Renamed from
52377         glthread_recursive_lock_destroy.
52378
52379 2008-08-14  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/glthread/lock.h: Renamed from lib/lock.h.
52382         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52383         * lib/glthread/tls.h: Renamed from lib/tls.h.
52384         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52385         * lib/fstrcmp.c: Update includes.
52386         * lib/strsignal.c: Update includes.
52387         * modules/lock (Files, Makefile.am): Update.
52388         (Include): Change to "glthread/lock.h".
52389         * modules/tls (Files, Makefile.am): Update.
52390         (Include): Change to "glthread/tls.h".
52391         * tests/test-lock.c: Update includes.
52392         * tests/test-tls.c: Update includes.
52393         * NEWS: Mention the renamed header files.
52394
52395 2008-08-11  Jim Meyering  <meyering@redhat.com>
52396
52397         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52398
52399 2008-08-11  Eric Blake  <ebb9@byu.net>
52400
52401         test-c-stack: avoid C99-ism
52402         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52403         before statement.
52404         Reported by Alain Guibert.
52405
52406 2008-08-10  Jim Meyering  <meyering@redhat.com>
52407
52408         ensure that return value of uinttostr et al are not ignored
52409         * lib/inttostr.h (__GNUC_PREREQ): Define.
52410         (__attribute_warn_unused_result__): Define.
52411         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52412
52413 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52414
52415         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52416         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52417
52418 2008-08-07  Jim Meyering  <meyering@redhat.com>
52419
52420         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52421
52422         * modules/mkstemp (License): Relicense under LGPLv2+.
52423         * modules/tempname (License): Likewise.
52424
52425 2008-08-06  Bruno Haible  <bruno@clisp.org>
52426
52427         * lib/poll.c (poll): Further micro-optimization.
52428
52429 2008-08-06  Jim Meyering  <meyering@redhat.com>
52430
52431         inet_pton.c: use locale-independent tolower
52432         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52433         (inet_pton6): Use c_tolower rather than tolower.
52434         * modules/inet_pton (Depends-on): Add c-ctype.
52435
52436 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52437
52438         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52439         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52440
52441 2008-08-06  Jim Meyering  <meyering@redhat.com>
52442
52443         * modules/inet_pton (License): Relicense under LGPLv2+.
52444
52445 2008-08-03  Bruno Haible  <bruno@clisp.org>
52446
52447         Additional non-aborting API for lock and tls.
52448         * lib/lock.h: Include <errno.h>.
52449         (glthread_lock_init): New macro/function.
52450         (gl_lock_init): Define as wrapper around glthread_lock_init.
52451         (glthread_lock_lock): New macro/function.
52452         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52453         (glthread_lock_unlock): New macro/function.
52454         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52455         (glthread_lock_destroy): New macro/function.
52456         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52457         (glthread_rwlock_init): New macro/function.
52458         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52459         (glthread_rwlock_rdlock): New macro/function.
52460         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52461         (glthread_rwlock_wrlock): New macro/function.
52462         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52463         (glthread_rwlock_unlock): New macro/function.
52464         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52465         (glthread_rwlock_destroy): New macro/function.
52466         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52467         (glthread_recursive_lock_init): New macro/function.
52468         (gl_recursive_lock_init): Define as wrapper around
52469         glthread_recursive_lock_init.
52470         (glthread_recursive_lock_lock): New macro/function.
52471         (gl_recursive_lock_lock): Define as wrapper around
52472         glthread_recursive_lock_lock.
52473         (glthread_recursive_lock_unlock): New macro/function.
52474         (gl_recursive_lock_unlock): Define as wrapper around
52475         glthread_recursive_lock_unlock.
52476         (glthread_recursive_lock_destroy): New macro/function.
52477         (gl_recursive_lock_destroy): Define as wrapper around
52478         glthread_recursive_lock_destroy.
52479         (glthread_once): New macro/function.
52480         (gl_once): Define as wrapper around glthread_once.
52481         Update function declarations.
52482         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52483         glthread_rwlock_init. Return error code.
52484         (glthread_rwlock_rdlock_multithreaded): Renamed from
52485         glthread_rwlock_rdlock. Return error code.
52486         (glthread_rwlock_wrlock_multithreaded): Renamed from
52487         glthread_rwlock_wrlock. Return error code.
52488         (glthread_rwlock_unlock_multithreaded): Renamed from
52489         glthread_rwlock_unlock. Return error code.
52490         (glthread_rwlock_destroy_multithreaded): Renamed from
52491         glthread_rwlock_destroy. Return error code.
52492         (glthread_recursive_lock_init_multithreaded): Renamed from
52493         glthread_recursive_lock_init. Return error code.
52494         (glthread_recursive_lock_lock_multithreaded): Renamed from
52495         glthread_recursive_lock_lock. Return error code.
52496         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52497         glthread_recursive_lock_unlock. Return error code.
52498         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52499         glthread_recursive_lock_destroy. Return error code.
52500         (glthread_once_call): Make static.
52501         (glthread_once_multithreaded): Renamed from glthread_once.
52502         * lib/tls.h: Include <errno.h>.
52503         (glthread_tls_key_init): New macro/function.
52504         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52505         (glthread_tls_set): New macro/function.
52506         (gl_tls_set): Define as wrapper around glthread_tls_set.
52507         (glthread_tls_key_destroy): New macro/function.
52508         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52509         Update function declarations.
52510         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52511         glthread_tls_get.
52512         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52513
52514 2008-08-04  Eric Blake  <ebb9@byu.net>
52515
52516         gnumakefile: use space, not TAB, outside of targets
52517         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52518
52519 2008-08-02  Jim Meyering  <meyering@redhat.com>
52520
52521         getdate.y: avoid locale-dependent date parsing failure
52522         In Turkish locales, getdate would fail to recognize keywords
52523         containing a lowercase "i".  The solution is not to rely on
52524         locale-sensitive case-conversion.
52525         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52526         (lookup_word): Use c_toupper in place of toupper.
52527         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52528         Reported by Vefa Bicakci <bicave@superonline.com> in
52529         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52530         * modules/getdate (Depends-on): Add c-ctype.
52531
52532 2008-08-02  Bruno Haible  <bruno@clisp.org>
52533
52534         * gnulib-tool (func_import): When updating or creating a .gitignore
52535         file, prepend each added line with a slash, and ignore leading slashes
52536         from the existing lines.
52537         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52538
52539 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52540
52541         Portability fix for GNU make 3.79.1.
52542         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52543         versions do not understand.
52544
52545 2008-08-01  Bruno Haible  <bruno@clisp.org>
52546
52547         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52548         * tests/test-isnanf.h (zero): New variable.
52549         (main): Avoid literal -0.0f.
52550         * tests/test-isnand.h (zero): New variable.
52551         (main): Avoid literal -0.0.
52552         * tests/test-isnanl.h (zero): New variable.
52553         (main): Avoid literal -0.0L.
52554         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52555         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52556         -0.0, -0.0L.
52557         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52558         (test_signbitd): Avoid literal -0.0.
52559         (test_signbitl): Avoid literal -0.0L.
52560         * tests/test-ceilf1.c (zero): New variable.
52561         (main): Avoid literal -0.0f.
52562         * tests/test-ceill.c (zero): New variable.
52563         (main): Avoid literal -0.0L.
52564         * tests/test-floorf1.c (zero): New variable.
52565         (main): Avoid literal -0.0f.
52566         * tests/test-floorl.c (zero): New variable.
52567         (main): Avoid literal -0.0L.
52568         * tests/test-roundf1.c (zero): New variable.
52569         (main): Avoid literal -0.0f.
52570         * tests/test-round1.c (zero): New variable.
52571         (main): Avoid literal -0.0.
52572         * tests/test-roundl.c (zero): New variable.
52573         (main): Avoid literal -0.0L.
52574         * tests/test-truncf1.c (zero): New variable.
52575         (main): Avoid literal -0.0f.
52576         * tests/test-trunc1.c (zero): New variable.
52577         (main): Avoid literal -0.0.
52578         * tests/test-truncl.c (zero): New variable.
52579         (main): Avoid literal -0.0L.
52580         * tests/test-frexp.c (zero): New variable.
52581         (main): Avoid literal -0.0.
52582         * tests/test-frexpl.c (zero): New variable.
52583         (main): Avoid literal -0.0L.
52584         * tests/test-ldexpl.c (zero): New variable.
52585         (main): Avoid literal -0.0L.
52586         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52587         (zerod, zerol): New variables.
52588         (test_function): Avoid literals -0.0, -0.0L.
52589         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52590         (zerod, zerol): New variables.
52591         (test_function): Avoid literals -0.0, -0.0L.
52592         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52593         (zerod, zerol): New variables.
52594         (test_function): Avoid literals -0.0, -0.0L.
52595         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52596         (zerod, zerol): New variables.
52597         (test_function): Avoid literals -0.0, -0.0L.
52598         * tests/test-strtod.c (zero): New variable.
52599         (main): Avoid literal -0.0.
52600         Reported by Jonathan C. Patschke <jp@centtech.com>.
52601
52602 2008-07-31  Jim Meyering  <meyering@redhat.com>
52603
52604         sha256.h: correct definition of SHA224_DIGEST_SIZE
52605         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52606         Reported by Paulie Pena IV <paulie4@gmail.com>.
52607         Define as 224 / 8, rather than as a literal.
52608         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52609         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52610         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52611
52612 2008-07-31  Bruno Haible  <bruno@clisp.org>
52613
52614         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52615         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52616         Reported by Jonathan Patschke <jp@centtech.com>.
52617
52618 2008-07-31  Bruno Haible  <bruno@clisp.org>
52619
52620         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52621         Reported by Paolo Bonzini <bonzini@gnu.org>.
52622
52623 2008-07-30  Eric Blake  <ebb9@byu.net>
52624
52625         test-strtod: allow compilation without -lm
52626         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52627         Reported by Dennis Clarke <blastwave@gmail.com>.
52628
52629 2008-07-28  Jim Meyering  <meyering@redhat.com>
52630
52631         bootstrap: work also when there are no .po files in po/
52632         * build-aux/bootstrap (update_po_files): Complete the change
52633         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52634
52635 2008-07-27  Jim Meyering  <meyering@redhat.com>
52636
52637         * users.txt: Add zile.
52638
52639 2008-07-26  Ben Pfaff  <blp@gnu.org>
52640
52641         Add missing dependencies on new m4/exponent[fdl].m4 files.
52642         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52643         * modules/isnand-nolibm: Add m4/exponentd.m4.
52644         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52645         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52646         m4/isnan[fdl].m4, because the macros actually used moved.
52647         Reported by Jim Meyering.
52648
52649 2008-07-14  Ben Pfaff  <blp@gnu.org>
52650
52651         Add isinf module.
52652         * lib/isinf.c: New file.
52653         * lib/math.in.h: Define isinf macro if we have decided to replace
52654         it.
52655         * m4/isinf.m4: New file.
52656         * m4/math_h.m4: Initialize and substitute variables for isinf
52657         module.
52658         * modules/isinf: New file.
52659         * modules/isinf-tests: New file.
52660         * modules/math: Add substitutions for new module.
52661         * tests/test-isinf.c: New file.
52662         * doc/posix-functions/isinf.texi: Mention new module.
52663         * MODULES.html.sh: Mention new module.
52664
52665 2008-07-14  Ben Pfaff  <blp@gnu.org>
52666
52667         Factor out some macros for use by additional modules.
52668         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52669         exponentf.m4.
52670         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52671         exponentd.m4.
52672         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52673         file exponentl.m4.
52674         * m4/exponentf.m4: New file.
52675         * m4/exponentd.m4: New file.
52676         * m4/exponentl.m4: New file.
52677         * modules/isnanf: Use new file m4/exponentf.m4.
52678         * modules/isnand: Use new file m4/exponentd.m4.
52679         * modules/isnanl: Use new file m4/exponentl.m4.
52680
52681 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52682
52683         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52684         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52685         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52686         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52687
52688         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52689         readlink on platforms without PATH_MAX.
52690
52691 2008-07-21  Eric Blake  <ebb9@byu.net>
52692
52693         Warn, not fail, on stale version.
52694         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52695
52696         Don't allow installation with stale devel version number.
52697         * top/GNUmakefile (_is-install-target): New macro.
52698         (_curr-ver): Forbid installation with stale version number.
52699
52700 2008-07-20  Bruno Haible  <bruno@clisp.org>
52701
52702         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52703         TESTS_ENVIRONMENT.
52704         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52705
52706 2008-07-20  Bruno Haible  <bruno@clisp.org>
52707
52708         * lib/c-stack.h (c_stack_action): Add documentation.
52709         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52710
52711 2008-07-20  Bruno Haible  <bruno@clisp.org>
52712
52713         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52714         * modules/readlink (License): Likewise.
52715
52716 2008-07-17  Eric Blake  <ebb9@byu.net>
52717
52718         * modules/c-stack (Link): Fix typo.
52719
52720         Make c-stack use libsigsegv, when available.
52721         * modules/c-stack (Depends-on): Add libsigsegv.
52722         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52723         needed.
52724         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52725         (segv_handler, overflow_handler, c_stack_action)
52726         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52727         implementation when libsigsegv is available, but only when using
52728         the library is necessary.
52729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52730         comment, explaining why XSI check fails on Linux.
52731         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52732         * tests/test-c-stack2.sh: Tweak skip message.
52733         * NEWS: Document new link-time requirements.
52734
52735 2008-07-16  Eric Blake  <ebb9@byu.net>
52736
52737         c-stack: Expose false positives when not using libsigsegv.
52738         * modules/c-stack-tests (Files): Expand test.
52739         * tests/test-c-stack.c (main): Add means to conditionally trigger
52740         non-overflow SIGSEGV.
52741         * tests/test-c-stack2.sh: New file.
52742
52743 2008-07-14  Bruno Haible  <bruno@clisp.org>
52744
52745         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52746         Reported by Eric Blake.
52747
52748 2008-07-14  Sam Steingold  <sds@gnu.org>
52749             Bruno Haible  <bruno@clisp.org>
52750
52751         New module libsigsegv.
52752         * modules/libsigsegv: New file.
52753         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52754         modifications.
52755         * MODULES.html.sh (Signal handling): New section.
52756
52757 2008-07-14  Bruno Haible  <bruno@clisp.org>
52758
52759         * modules/unictype/ctype-* (Description): Add the word "function".
52760         Improves the resulting doc in MODULES.html.
52761
52762 2008-07-12  Ben Pfaff  <blp@gnu.org>
52763
52764         Add longlong module.
52765         * modules/longlong: New file.
52766
52767 2008-07-12  Bruno Haible  <bruno@clisp.org>
52768
52769         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52770         to empty.
52771
52772 2008-07-10  Ben Pfaff  <blp@gnu.org>
52773
52774         Add isnan module.
52775         * doc/posix-functions/isnan.texi: Mention new module.
52776         * lib/math.in.h: Define isnan macro if we have decided to replace
52777         it.
52778         * m4/isnan.m4: New file.
52779         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52780         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52781         also.
52782         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52783         redundancy.
52784         * m4/math_h.m4: Initialize and substitute variables for isnan
52785         module.
52786         * modules/isnan: New file.
52787         * modules/isnan-tests: New file.
52788         * modules/math: Add substitutions for new module.
52789         * tests/test-isnan.c: New file.
52790         * MODULES.html.sh: Mention new module.
52791
52792 2008-07-10  Ben Pfaff  <blp@gnu.org>
52793
52794         Add isnanf module.
52795         * lib/isnanf.m4: New file.
52796         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52797         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52798         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52799         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52800         * modules/isnanf: New file.
52801         * modules/isnanf-tests: New file.
52802         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52803         files.
52804         * tests/test-isnanf-nolibm.c: factored most of its contents into
52805         new file tests/test-isnanf.h.
52806         * tests/test-isnanf.h: New file.
52807         * tests/test-isnanf.c: New file.
52808         * MODULES.html.sh: Mention new module.
52809         * doc/glibc-functions/isnanf.texi: Mention new module.
52810
52811 2008-07-10  Ben Pfaff  <blp@gnu.org>
52812
52813         Add isnand module.
52814         * lib/isnand.h: New file.
52815         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52816         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52817         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52818         functionality also.
52819         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52820         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52821         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52822         * modules/isnand: New file.
52823         * modules/isnand-tests: New file.
52824         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52825         files.
52826         * tests/test-isnand-nolibm.c: factored most of its contents into
52827         new file tests/test-isnand.h.
52828         * tests/test-isnand.h: New file.
52829         * tests/test-isnand.c: New file.
52830         * MODULES.html.sh: Mention new module.
52831
52832 2008-07-10  Ben Pfaff  <blp@gnu.org>
52833
52834         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52835         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52836         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52837         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52838         * modules/isnanf-nolibm: Update references to renamed files.
52839         * modules/isnand-nolibm: Likewise.
52840         * modules/isnanf-nolibm-tests: Likewise.
52841         * modules/isnand-nolibm-tests: Likewise.
52842         * lib/frexp.c: Likewise.
52843         * lib/isfinite.c: Likewise.
52844         * lib/signbitd.c: Likewise.
52845         * lib/signbitf.c: Likewise.
52846         * lib/vasnprintf.c: Likewise.
52847         * tests/test-ceilf1.c: Likewise.
52848         * tests/test-ceilf2.c: Likewise.
52849         * tests/test-floorf1.c: Likewise.
52850         * tests/test-floorf2.c: Likewise.
52851         * tests/test-frexp.c: Likewise.
52852         * tests/test-round1.c: Likewise.
52853         * tests/test-round2.c: Likewise.
52854         * tests/test-roundf1.c: Likewise.
52855         * tests/test-strtod.c: Likewise.
52856         * tests/test-trunc1.c: Likewise.
52857         * tests/test-trunc2.c: Likewise.
52858         * tests/test-truncf1.c: Likewise.
52859         * tests/test-truncf2.c: Likewise.
52860         * NEWS: Mention the renamed header files.
52861
52862 2008-07-11  Jim Meyering  <meyering@redhat.com>
52863
52864         vc-list-files: make the last-resort awk code more portable
52865         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
52866         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
52867         does not support it.
52868
52869 2008-07-10  Eric Blake  <ebb9@byu.net>
52870
52871         Work with tar's bootstrap.
52872         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
52873         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
52874         an m4 comment.
52875
52876 2008-07-09  Jim Meyering  <meyering@redhat.com>
52877
52878         posix-shell.m4: fix typo that made this test malfunction
52879         * m4/posix-shell.m4: Remove capitalization in variable name.
52880
52881 2008-07-08  Bruno Haible  <bruno@clisp.org>
52882
52883         * m4/onceonly.m4: Update comments.
52884         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52885
52886 2008-07-04  Jim Meyering  <meyering@redhat.com>
52887
52888         * users.txt: Add vc-dwim.
52889         (bison, coreutils): Use the gitweb URL.
52890
52891 2008-07-03  Jim Meyering  <meyering@redhat.com>
52892
52893         * users.txt: Add libffcall.  From Sam Steingold.
52894
52895 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
52896
52897         getdate.y: do not ignore TZ with relative day, month or year offset
52898         * lib/getdate.y (get_date): Move the tz-handling block to follow the
52899         relative-date-handling, since otherwise, the latter would clobber the
52900         sole output (an updated Start value) of the tz-handling block.
52901         * tests/test-getdate.c: Tests for the fix
52902
52903 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52904
52905         Recognize 'foo_LIBRARIES += libgnu.a'.
52906         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
52907         makefile snippet has already specified an installation location,
52908         also using '+='.
52909
52910 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
52911
52912         getdate.y: factor out common actions
52913         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
52914         Use them in place of open-coded actions.
52915
52916 2008-07-01  Simon Josefsson  <simon@josefsson.org>
52917
52918         Add self-test for getdate module.
52919         * modules/getdate-tests: New file.
52920         * tests/test-getdate.c: New file.
52921
52922 2008-06-29  Bruno Haible  <bruno@clisp.org>
52923
52924         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
52925         .gitignore.
52926         Reported by Sylvain Beucler <beuc@beuc.net>.
52927
52928 2008-06-29  Bruno Haible  <bruno@clisp.org>
52929
52930         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
52931         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
52932
52933 2008-06-29  Bruno Haible  <bruno@clisp.org>
52934
52935         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
52936         EXTRA_DIST.
52937         Reported by Sylvain Beucler <beuc@beuc.net>.
52938
52939 2008-06-26  Jim Meyering  <meyering@redhat.com>
52940
52941         make several modules depend on the "open" module
52942         This provides slightly increased consistency when opening-for-write
52943         the name of a non-directory spelled with a trailing slash.
52944         * modules/chdir-safer: Likewise.
52945         * modules/chown: Likewise.
52946         * modules/clean-temp: Likewise.
52947         * modules/copy-file: Likewise.
52948         * modules/fchdir: Likewise.
52949         * modules/fcntl-safer: Likewise.
52950         * modules/pipe: Likewise.
52951         * modules/utime: Likewise.
52952         Prompted by Eric Blake and Bruno Haible.
52953
52954 2008-06-24  Andreas Schwab  <schwab@suse.de>
52955
52956         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
52957         literals can be used as initializers for global variables.
52958
52959 2008-06-23  Eric Blake  <ebb9@byu.net>
52960
52961         Make gnulib-cache.m4 easier to diff.
52962         * gnulib-tool (func_import): Allow newlines when reading cached
52963         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
52964
52965 2008-06-23  Bruno Haible  <bruno@clisp.org>
52966
52967         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
52968         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
52969         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
52970         m4/signalblocking.m4.
52971         (gl_PREREQ_SIGACTION): Don't invoke it.
52972         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
52973         gl_PREREQ_SIG_HANDLER_H.
52974         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52975         Don't check for sigaction here.
52976
52977 2008-06-23  Bruno Haible  <bruno@clisp.org>
52978
52979         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
52980         (install_handlers): Don't set the SA_RESETHAND flag.
52981
52982 2008-06-23  Bruno Haible  <bruno@clisp.org>
52983
52984         * m4/sigaction.m4: Comment fixes.
52985         * lib/signal.in.h: Likewise.
52986
52987 2008-06-23  Eric Blake  <ebb9@byu.net>
52988
52989         Fix typo.
52990         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
52991
52992         Avoid SA_ namespace.
52993         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
52994         Reported by Ralf Wildenhues.
52995
52996         Avoid test failure due to SA_RESTORER.
52997         * tests/test-sigaction.c (SA_MASK): New macro.
52998         (main): Avoid failing due to extension flags being set.
52999         Reported by Jim Meyering.
53000
53001         Revert use of sig-handler.h in sigprocmask.c.
53002         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53003         it requires the existence of struct sigaction.
53004         * lib/sigprocmask.c (handler_t): Restore typedef.
53005         (rpl_signal, old_handlers): Use local type.
53006
53007 2008-06-22  Bruno Haible  <bruno@clisp.org>
53008
53009         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53010         conditionally.
53011         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53012
53013 2008-06-22  Bruno Haible  <bruno@clisp.org>
53014
53015         * doc/posix-functions/siginterrupt.texi: Move note.
53016
53017         * lib/signal.in.h (SA_RESTART): New macro.
53018         * lib/sigaction.c: Update comment.
53019
53020         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53021
53022         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53023         (gl_PREREQ_SIGPROCMASK): Invoke it.
53024         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53025
53026         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53027
53028         * lib/sigprocmask.c: Update a comment.
53029
53030 2008-06-21  Eric Blake  <ebb9@byu.net>
53031
53032         Use sigaction module rather than signal().
53033         * modules/c-stack (Depends-on): Add sigaction.
53034         * modules/fatal-signal (Depends-on): Likewise.
53035         * modules/nanosleep (Depends-on): Likewise.
53036         * modules/sigprocmask (Files): Add sig-handler.h.
53037         * modules/sigaction (Files): Likewise.
53038         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53039         Eggert.
53040         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53041         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53042         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53043         (init_fatal_signals): Likewise.
53044         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53045         (siginterrupt): Delete fallback.
53046         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53047         instead.
53048         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53049         siginterrupt.
53050
53051         New module sigaction, for mingw.
53052         * modules/sigaction: New module...
53053         * modules/sigaction-tests: ...and its test.
53054         * m4/sigaction.m4: New file.
53055         * lib/sigaction.c: Likewise.
53056         * tests/test-sigaction.c: Likewise.
53057         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53058         * modules/signal (Makefile.am): Likewise.
53059         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53060         needed.
53061         * doc/posix-headers/signal.texi (signal.h): Mention provided
53062         types.
53063         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53064         that sigaction is preferable.
53065         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53066         module.
53067         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53068         sigaction.
53069
53070         Improve robustness of sigprocmask by overriding signal.
53071         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53072         is in use.
53073         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53074         (SIGKILL, SIGSTOP): Provide fallbacks.
53075         (rpl_signal): Implement.
53076         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53077         signal can be called inside handlers.
53078
53079         Fix nanosleep module on mingw.
53080         * modules/nanosleep (Depends-on): Add sys_select.
53081         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53082
53083         Fix licensing of sigprocmask.
53084         * modules/raise (License): Relicense as LGPL.
53085
53086 2008-06-21  Bruno Haible  <bruno@clisp.org>
53087
53088         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53089         result if it contains question marks.
53090         Reported by Michael Geng <linux@michaelgeng.de>.
53091
53092 2008-06-19  Bruno Haible  <bruno@clisp.org>
53093
53094         Fix CVS-ism.
53095         * doc/gnulib.texi: Include updated-stamp.texi.
53096         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53097         (updated-stamp.texi): New rule.
53098         (gnulib.info): Depend on it.
53099         * doc/.gitignore: Add updated-stamp.texi.
53100         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53101
53102 2008-06-19  Bruno Haible  <bruno@clisp.org>
53103
53104         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53105         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53106
53107 2008-06-19  Eric Blake  <ebb9@byu.net>
53108
53109         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53110         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53111         Reported by Stepan Kasal.
53112
53113 2008-06-18  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53116         Reported by Eric Blake.
53117
53118 2008-06-18  Eric Blake  <ebb9@byu.net>
53119
53120         Work around cygwin 1.5.25 strsignal bug.
53121         * tests/test-strsignal.c: Allow for const char *.
53122         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53123
53124 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53125
53126         * users.txt: Update URL to article and add author/date
53127         information.
53128
53129 2008-06-17  Bruno Haible  <bruno@clisp.org>
53130
53131         New macro gl_DISABLE_THREADS.
53132         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53133         if the user did not pass --enable-threads or --disable-threads option.
53134         (gl_DISABLE_THREADS): New macro.
53135         Reported by Eric Blake <ebb9@byu.net>.
53136
53137 2008-06-17  Bruno Haible  <bruno@clisp.org>
53138
53139         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53140         when the macro ignores it.
53141         Based on a patch by Eric Blake <ebb9@byu.net>.
53142
53143 2008-06-17  Bruno Haible  <bruno@clisp.org>
53144
53145         * modules/tls (License): Change to LGPLv2+.
53146         Reported by Eric Blake.
53147
53148 2008-06-17  Eric Blake  <ebb9@byu.net>
53149
53150         Simplify c-stack prerequisites.
53151         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53153         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53154         check.
53155         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53156         <sys/resource.h>.
53157
53158         Move c-stack test into testsuite.
53159         * modules/c-stack-tests: New file.
53160         * lib/c-stack.c [DEBUG]: Move test program...
53161         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53162         fail test if sigaltstack is lacking.
53163         * tests/test-c-stack.sh: New driver file.
53164
53165 2008-06-16  Eric Blake  <ebb9@byu.net>
53166
53167         Use raise module consistently.
53168         * modules/fatal-signal (Depends-on): Add raise.
53169         * modules/sigprocmask (Depends-on): Likewise.
53170         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53171         * lib/sigprocmask.c (sigprocmask): Likewise.
53172         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53173         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53174
53175         Fix compliance bug in sigpending.
53176         * lib/sigprocmask.c (sigpending): Return pending array via
53177         parameter, not return value.
53178
53179 2008-06-14  Eric Blake  <ebb9@byu.net>
53180
53181         Improve obstack-printf test code.
53182         * tests/test-obstack-printf.c (test_function): Fix comment, and
53183         simplify usage of obstack_* in macros.  Add a test for coverage.
53184         Reported by Bruno Haible.
53185
53186 2008-06-14  Bruno Haible  <bruno@clisp.org>
53187
53188         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53189         array size as a constant, not as a const variable.
53190         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53191         AC_USE_SYSTEM_EXTENSIONS.
53192         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53193         Test whether the obstack_printf function actually exists.
53194         * modules/obstack-printf (Depends-on): Add extensions.
53195         (Include): Remove obstack.h.
53196         * modules/obstack-printf-posix (Depends-on): Add extensions.
53197         (Include): Remove obstack.h.
53198
53199 2008-06-13  Eric Blake  <ebb9@byu.net>
53200
53201         Add obstack-printf and obstack-printf-posix modules.
53202         * modules/obstack-printf: New file.
53203         * modules/obstack-printf-posix: Likewise.
53204         * MODULES.html.sh (Misc): Mention them.
53205         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53206         Likewise.
53207         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53208         Likewise.
53209         * modules/stdio (Makefile.am): Accomodate new modules.
53210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53211         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53212         Declare.
53213         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53214         functions.
53215         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53216         (gl_REPLACE_OBSTACK_PRINTF): New macros
53217         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53218         * tests/test-obstack-printf.c: New file.
53219         * modules/obstack-printf-tests: Likewise.
53220         * modules/obstack-printf-posix-tests: Likewise.
53221
53222 2008-06-11  Bruno Haible  <bruno@clisp.org>
53223
53224         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53225         * lib/open.c: Include errno.h.
53226         (open): Fail when attempting to write to a file that has a trailing
53227         slash.
53228         * tests/test-open.c (main): Test against trailing slash bug.
53229         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53230
53231 2008-06-10  Bruno Haible  <bruno@clisp.org>
53232
53233         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53234         for $? to work inside the trap command, with various /bin/sh-s.
53235         * tests/test-vc-list-files-cvs.sh: Likewise.
53236
53237 2008-06-10  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/acl-internal.h: Don't include gettext.h here.
53240         * lib/set-mode-acl.c: Include gettext.h here.
53241         * lib/copy-acl.c: Likewise.
53242
53243 2008-06-10  Bruno Haible  <bruno@clisp.org>
53244
53245         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53246         * lib/wait-process.c (wait_subprocess): Likewise.
53247         * lib/execute.h (execute): Add termsigp argument.
53248         * lib/execute.c (execute): Likewise.
53249         * lib/csharpcomp.c (compile_csharp_using_pnet,
53250         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53251         * lib/csharpexec.c (execute_csharp_using_pnet,
53252         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53253         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53254         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53255         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53256         is_jikes_present): Update.
53257         * lib/javaexec.c (execute_java_class): Update.
53258         * lib/javaversion.c (execute_and_read_line): Update.
53259         * NEWS: Document the changes.
53260         Reported by Eric Blake.
53261
53262 2008-06-10  Eric Blake  <ebb9@byu.net>
53263
53264         Add missing include.
53265         * tests/test-strstr.c (includes): Add <signal.h>.
53266         * tests/test-strcasestr.c (includes): Likewise.
53267         * tests/test-memmem.c (includes): Likewise.
53268
53269 2008-06-10  Bruno Haible  <bruno@clisp.org>
53270
53271         * lib/wait-process.c (wait_subprocess): Add an assertion.
53272
53273 2008-06-10  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53276
53277 2008-06-10  Bruno Haible  <bruno@clisp.org>
53278
53279         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53280         using alarm().
53281         * tests/test-strcasestr.c (main): Likewise.
53282         * tests/test-strstr.c (main): Likewise.
53283
53284 2008-06-09  Bruno Haible  <bruno@clisp.org>
53285
53286         Work around the Solaris 10 ACE ACLs ABI change.
53287         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53288         declare if ACL_NO_TRIVIAL is present.
53289         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53290         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53291         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53292         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53293         define if ACL_NO_TRIVIAL is present.
53294         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53295         and use the current ABI.
53296         (file_has_acl): Use same #if condition as elsewhere.
53297         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53298         in use, and use the current ABI.
53299         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53300         Reported by Jim Meyering.
53301
53302 2008-06-09  Eric Blake  <ebb9@byu.net>
53303
53304         Work around environments that (stupidly) ignore SIGALRM.
53305         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53306         before using alarm().
53307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53308         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53309         Reported by Ian Beckwith <ianb@erislabs.net>.
53310
53311         Produce autobuild blurb earlier in log.
53312         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53313
53314 2008-06-09  Jim Meyering  <meyering@redhat.com>
53315         and OndÅ™ej Vašík  <ovasik@redhat.com>
53316
53317         utimens.c: correct kernel bug work-around
53318         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53319         failure, not success, and the kernel bug we're trying to work
53320         around affects not just the utimensat call, but also the fallback
53321         futimens call.
53322         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53323         not success.
53324         [HAVE_FUTIMENS]: Use the same work-around, here.
53325
53326 2008-06-09  Jim Meyering  <meyering@redhat.com>
53327
53328         add more guards around definition of ACE_-related code
53329         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53330         ALLOW and ACE_OWNER are also defined.
53331
53332 2008-06-08  Bruno Haible  <bruno@clisp.org>
53333
53334         * lib/acl-internal.h: Add me as co-author.
53335         * lib/file-has-acl.c: Likewise.
53336         * lib/set-mode-acl.c: Likewise.
53337         * lib/copy-acl.c: Likewise.
53338
53339 2008-06-08  Bruno Haible  <bruno@clisp.org>
53340
53341         Add support for AIX ACLs.
53342         * lib/acl-internal.h (acl_nontrivial): New declaration.
53343         * lib/file-has-acl.c (acl_nontrivial): New function.
53344         (file_has_acl): Add implementation using AIX 4 ACL API.
53345         * lib/set-mode-acl.c (qset_acl): Likewise.
53346         * lib/copy-acl.c (qcopy_acl): Likewise.
53347
53348 2008-06-08  Bruno Haible  <bruno@clisp.org>
53349
53350         Add support for HP-UX ACLs.
53351         * lib/acl-internal.h (acl_nontrivial): New declaration.
53352         * lib/file-has-acl.c (acl_nontrivial): New function.
53353         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53354         * lib/set-mode-acl.c (qset_acl): Likewise.
53355         * lib/copy-acl.c (qcopy_acl): Likewise.
53356
53357 2008-06-08  Bruno Haible  <bruno@clisp.org>
53358
53359         Add support for Cygwin ACLs.
53360         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53361         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53362         the chmod_or_fchmod call.
53363         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53364
53365 2008-06-08  Bruno Haible  <bruno@clisp.org>
53366
53367         Fix bug with setuid modes in Solaris 10+ code.
53368         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53369         succeeded, when the mode contains some special bits.
53370
53371 2008-06-08  Bruno Haible  <bruno@clisp.org>
53372
53373         Add support for Solaris 7..10 ACLs.
53374         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53375         declarations.
53376         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53377         functions.
53378         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53379         * lib/set-mode-acl.c (qset_acl): Likewise.
53380         * lib/copy-acl.c (qcopy_acl): Likewise.
53381
53382 2008-06-08  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53385         declaration.
53386         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53387         (acl_access_nontrivial): Remove MacOS X case.
53388         (file_has_acl): Use acl_extended_nontrivial.
53389         * lib/copy-acl.c (qcopy_acl): Likewise.
53390
53391 2008-06-08  Bruno Haible  <bruno@clisp.org>
53392
53393         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53394
53395 2008-06-08  Jim Meyering  <meyering@redhat.com>
53396
53397         * modules/acl (Maintainer): Add Bruno Haible.
53398
53399 2008-06-07  Bruno Haible  <bruno@clisp.org>
53400
53401         Improve support for Tru64 ACLs.
53402         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53403         ACL on OSF/1.
53404
53405 2008-06-07  Bruno Haible  <bruno@clisp.org>
53406
53407         Add support for MacOS X ACLs.
53408         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53409         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53410         * lib/set-mode-acl.c (qset_acl): Likewise.
53411         * lib/copy-acl.c (qcopy_acl): Likewise.
53412
53413 2008-06-07  Bruno Haible  <bruno@clisp.org>
53414
53415         Fix memory leak introduced on 2008-05-22.
53416         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53417         use.
53418
53419 2008-06-07  Bruno Haible  <bruno@clisp.org>
53420
53421         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53422         to construct an empty ACL.
53423
53424 2008-06-07  Bruno Haible  <bruno@clisp.org>
53425
53426         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53427         precisely.
53428         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53429
53430 2008-06-07  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53433         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53434
53435 2008-06-07  Bruno Haible  <bruno@clisp.org>
53436
53437         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53438         regardless of POSIX.
53439         * doc/posix-functions/_longjmp.texi: Likewise.
53440         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53441         SystemV platform in this case.
53442
53443 2008-06-06  Eric Blake  <ebb9@byu.net>
53444
53445         Document abort() bugs.
53446         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53447
53448         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53449         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53450         sigsetjmp.
53451         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53452         siglongjmp, but only as a macro.
53453         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53454         is obsolete.
53455         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53456
53457         Tweak documentation to cover cygwin argz bugs.
53458         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53459         argz bug fix; no code change needed since no cygwin releases
53460         occurred between the last fix and the bug being tested.
53461         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53462         module and recently fixed cygwin bugs.
53463         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53464         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53465         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53466         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53467         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53468         Likewise.
53469         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53470         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53471         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53472         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53473         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53474         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53475         Likewise.
53476
53477         Avoid gcc warning on cygwin.
53478         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53479         !ACL_NO_TRIVIAL]: Avoid unused variable.
53480
53481 2008-06-05  Eric Blake  <ebb9@byu.net>
53482
53483         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53484         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53485         git-version-gen fails to come up with a version.
53486         Reported by Simon Josefsson.
53487
53488 2008-06-05  Jim Meyering  <meyering@redhat.com>
53489             Paul Eggert  <eggert@cs.ucla.edu>
53490
53491         utimens.c: work around a probable Linux kernel bug
53492         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53493         appears to be a kernel bug that causes utimensat to return 280
53494         instead of 0, indicating success.
53495
53496 2008-06-04  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53499         2008-06-01 commit.
53500
53501 2008-06-04  Bruno Haible  <bruno@clisp.org>
53502
53503         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53504         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53505         (file_has_acl): Use it. Save errno afterwards.
53506         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53507
53508 2008-06-03  Bruno Haible  <bruno@clisp.org>
53509
53510         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53511         draft code. Simplify #ifs.
53512         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53513         Put Solaris code after POSIX-draft code. Fix comments regarding
53514         Solaris 10, HP-UX. Mention Cygwin.
53515         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53516
53517 2008-06-03  Eric Blake  <ebb9@byu.net>
53518
53519         Provide fallback for older kernels.
53520         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53521         Provide runtime fallback if kernel lacks support.
53522         Reported by Mike Frysinger.
53523
53524 2008-06-02  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53527         it exists.
53528
53529 2008-06-02  Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53532         * lib/copy-acl.c (qcopy_acl): Update comment.
53533
53534 2008-06-02  Bruno Haible  <bruno@clisp.org>
53535
53536         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53537         like ACL APIs.
53538
53539 2008-06-02  Bruno Haible  <bruno@clisp.org>
53540
53541         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53542         * tests/test-set-mode-acl.sh: Likewise.
53543         * tests/test-copy-acl.sh: Likewise.
53544         * tests/test-copy-file.sh: Likewise.
53545
53546 2008-06-02  Bruno Haible  <bruno@clisp.org>
53547
53548         * tests/test-file-has-acl.sh: Remove unused code.
53549
53550 2008-06-01  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53553         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53554         messages.
53555         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53556
53557 2008-06-01  Bruno Haible  <bruno@clisp.org>
53558
53559         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53560         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53561         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53562         APIs.
53563         * modules/acl-tests (configure.ac): Remove tests now contained in
53564         m4/acl.m4.
53565
53566 2008-06-02  Jim Meyering  <meyering@redhat.com>
53567
53568         announce-gen: use a better key-server host name
53569         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53570         it may be more consistently reliable.  Suggested by Werner Koch
53571         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53572
53573 2008-06-01  Bruno Haible  <bruno@clisp.org>
53574
53575         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53576         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53577
53578 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53579
53580         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53581
53582 2008-06-01  Bruno Haible  <bruno@clisp.org>
53583
53584         New ACL tests.
53585         * tests/test-file-has-acl.sh: New file.
53586         * tests/test-file-has-acl.c: New file.
53587         * tests/test-set-mode-acl.sh: New file.
53588         * tests/test-set-mode-acl.c: New file.
53589         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53590         * tests/test-copy-acl.c: New file.
53591         * modules/acl-tests: New file, based on modules/copy-file-tests.
53592         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53593         (Depends-on): Add acl-tests.
53594         (configure.ac): Remove checks.
53595         (Makefile.am): Don't create test-sameacls program here any more.
53596
53597 2008-06-01  Bruno Haible  <bruno@clisp.org>
53598
53599         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53600         * tests/test-sameacls.c: Include progname.h.
53601         (main): Invoke set_program_name. Portability fixes for MacOS X,
53602         Solaris, HP-UX.
53603
53604 2008-06-01  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53607         function.
53608         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53609
53610 2008-06-01  Bruno Haible  <bruno@clisp.org>
53611
53612         * modules/rpmatch (Depends-on): Add strdup.
53613
53614 2008-06-01  Bruno Haible  <bruno@clisp.org>
53615
53616         * lib/pipe.c: Include unistd-safer.h.
53617         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53618         * modules/pipe (Depends-on): Add unistd-safer.
53619
53620 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53621
53622         * modules/autobuild (configure.ac): Call AB_INIT.
53623
53624 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53625
53626         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53627         Suggested by Bruno Haible <bruno@clisp.org>.
53628
53629 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53630
53631         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53632         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53633         <bruno@clisp.org>.
53634
53635 2008-05-29  Eric Blake  <ebb9@byu.net>
53636
53637         Prefer new POSIX 200x interfaces over futimesat.
53638         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53639         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53640         when available.
53641         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53642
53643 2008-05-28  Bruno Haible  <bruno@clisp.org>
53644
53645         * modules/stpcpy (License): Change to LGPLv2+.
53646         Requested by David Lutterkort <dlutter@redhat.com>.
53647
53648 2008-05-27  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53651         current mingw.
53652         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53653
53654 2008-05-27  Bruno Haible  <bruno@clisp.org>
53655
53656         * modules/iconv_open (Link): New section, from module 'iconv'.
53657         * modules/striconv (Link): Likewise.
53658         * modules/striconveh (Link): Likewise.
53659         * modules/xstriconv (Link): Likewise.
53660         * modules/unicodeio (Link): Likewise.
53661         * modules/propername (Link): Likewise.
53662         Reported by Jim Meyering.
53663
53664 2008-05-26  Jim Meyering  <meyering@redhat.com>
53665
53666         sha256: do not artificially restrict buffer length to be < 2^32
53667         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53668         uint32_t to size_t.
53669         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53670         to match.
53671
53672         avoid unaligned access errors, e.g., on sparc
53673         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53674         direct access through a possibly-unaligned uint64* pointer.
53675         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53676         direct access through a possibly-unaligned uint32* pointer.
53677         Prompted by this patch from Tom "spot" Callaway:
53678         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53679
53680         sha512.c: fix typo in comment
53681         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53682
53683 2008-05-25  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53686         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53687         (Makefile.am): Update lib_SOURCES.
53688
53689 2008-05-25  Bruno Haible  <bruno@clisp.org>
53690
53691         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53692
53693 2008-05-25  Jim Meyering  <meyering@redhat.com>
53694
53695         useless-if-before-free: freed expr may have white-space differences
53696         * build-aux/useless-if-before-free: Recognize cases in which the
53697         freed expression differs from the tested one in embedded white
53698         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53699         $1 was used, so we can't make any regexp shy.  Improved tests now
53700         detect this.
53701
53702         useless-if-before-free: accept white space in the expression.
53703         * build-aux/useless-if-before-free: For now, any white space
53704         in the expression must be identical in the free argument.
53705
53706         useless-if-before-free: efficiency tweak
53707         * build-aux/useless-if-before-free: Make the expression-matching
53708         regexp "shy".
53709         Make the *outer* regexp shy, not the expr-matching one.
53710
53711         update code-in-comment to accept cast of free arg
53712         * build-aux/useless-if-before-free: Update regexp.
53713
53714 2008-05-25  Bruno Haible  <bruno@clisp.org>
53715
53716         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53717         * modules/copy-file-tests (Files, Makefile.am): Update.
53718         * tests/test-copy-file.c (func_test_copy): Update.
53719
53720 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53721
53722         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53723
53724 2008-05-23  Bruno Haible  <bruno@clisp.org>
53725
53726         Improve support for ACLs on OSF/1.
53727         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53728         Remove fallback for unknown flavors of ACLs.
53729
53730 2008-05-22  Bruno Haible  <bruno@clisp.org>
53731
53732         Add support for ACLs on OSF/1.
53733         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53734         replacements.
53735         (acl_free_text): New macro fallback.
53736         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53737         acl_free.
53738         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53739         acl_free_text function. Require AC_C_INLINE.
53740
53741 2008-05-22  Bruno Haible  <bruno@clisp.org>
53742
53743         Make copy_acl work on MacOS X 10.5.
53744         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53745         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53746         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53747         If MODE_INSIDE_ACL, don't assume that every system has the same text
53748         representation for ACLs as FreeBSD.
53749         * lib/copy-acl.c (copy_acl): Add support for platforms with
53750         !MODE_INSIDE_ACL.
53751         * lib/file-has-acl.c (file_has_acl): Likewise.
53752         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53753         FreeBSD, MacOS X, or IRIX, respectively.
53754
53755 2008-05-22  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/acl.h: Don't include <sys/acl.h>.
53758         (GETACLCNT): Move fallback to lib/acl-internal.h.
53759         * lib/acl-internal.h: Include <sys/acl.h> here.
53760         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53761
53762 2008-05-22  Bruno Haible  <bruno@clisp.org>
53763
53764         Split off copy_acl function to separate file.
53765         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53766         * lib/acl.c (copy_acl): Moved function to separate file.
53767         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53768         * modules/acl (Files): Add lib/copy-acl.c.
53769         (Makefiles.am): Augment lib_SOURCES.
53770
53771 2008-05-22  Bruno Haible  <bruno@clisp.org>
53772
53773         * modules/copy-file-tests: New file.
53774         * tests/test-copy-file.sh: New file.
53775         * tests/test-copy-file.c: New file.
53776         * tests/test-copy-file-sameacls.c: New file.
53777
53778 2008-05-22  Eric Blake  <ebb9@byu.net>
53779
53780         Avoid gcc warning.
53781         * tests/test-memcmp.c (main): Pass NULL indirectly.
53782
53783 2008-05-21  Bruno Haible  <bruno@clisp.org>
53784
53785         Add reference doc about ACLs.
53786         * doc/acl-resources.txt: New file.
53787         * doc/acl-cygwin.txt: New file.
53788
53789 2008-05-21  Bruno Haible  <bruno@clisp.org>
53790
53791         Avoid one more warning from gcc.
53792         * lib/vasnprintf.c (IF_LINT): Update comments.
53793         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53794
53795 2008-05-21  Jim Meyering  <meyering@redhat.com>
53796
53797         avoid a warning from gcc
53798         * lib/vasnprintf.c (IF_LINT): Define.
53799         (scale10_round_decimal_long_double):
53800         Use it to avoid a "may be used uninitialized" warning.
53801         (scale10_round_decimal_double): Likewise.
53802
53803 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53804
53805         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53806         declared.
53807
53808 2008-05-20  Bruno Haible  <bruno@clisp.org>
53809
53810         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53811         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53812
53813 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53814
53815         * modules/memcmp-tests: New file.
53816         * tests/test-memcmp.c: New file.
53817
53818 2008-05-19  Bruno Haible  <bruno@clisp.org>
53819
53820         * modules/propername (Notice, configure.ac): Put quoted "..." into
53821         --keyword option.
53822         * lib/propername.h: Update comments accordingly.
53823         Reported by Eric Blake.
53824
53825 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53826
53827         * modules/getpass-gnu (Depends-on): Add fseeko.
53828
53829 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53830
53831         * modules/base64-tests: New file.
53832
53833 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53834
53835         * lib/base64.c (base64_decode_ctx): If a decode context structure
53836         was passed in use it to ignore newlines.  If a context structure
53837         was _not_ passed in, continue to treat newlines as garbage (this
53838         is the historical behavior).  Formerly base64_decode.
53839         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53840         takes a decode context structure.
53841         * lib/base64.h (base64_decode): Macro for four-argument calls.
53842         (base64_decode_alloc): Likewise.
53843         * lib/base64.c (base64_decode_ctx): If a decode context structure
53844         was passed in use it to ignore newlines.  If a context structure
53845         was _not_ passed in, continue to treat newlines as garbage (this
53846         is the historical behavior).  Formerly base64_decode.
53847         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53848         takes a decode context structure.
53849         * lib/base64.h (base64_decode): Macro for four-argument calls.
53850         (base64_decode_alloc): Likewise.
53851
53852 2008-05-19  Jim Meyering  <meyering@redhat.com>
53853
53854         avoid a warning from gcc
53855         * lib/trim.c (IF_LINT): Define.
53856         (trim2): Use it to avoid a "may be used uninitialized" warning.
53857
53858         Fix doc typo.
53859         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
53860
53861 2008-05-19  Bruno Haible  <bruno@clisp.org>
53862
53863         * doc/glibc-functions/getpass.texi: Document limits of other
53864         implementations.
53865
53866 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53867             Bruno Haible <bruno@clisp.org>
53868
53869         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
53870
53871 2008-05-18  Bruno Haible  <bruno@clisp.org>
53872
53873         * modules/propername: New file, from GNU gettext.
53874         * lib/propername.h: New file, from GNU gettext.
53875         * lib/propername.c: New file, from GNU gettext.
53876         * MODULES.html.sh (Internationalization functions): Add propername.
53877
53878 2008-05-16  Jim Meyering  <meyering@redhat.com>
53879             Bruno Haible  <bruno@clisp.org>
53880
53881         Avoid some warnings from "gcc -Wshadow".
53882         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
53883
53884 2008-05-15  Eric Blake  <ebb9@byu.net>
53885
53886         Extend previous patch to cygwin 1.7.0.
53887         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
53888         fast implementation in cygwin >= 1.7.0.
53889         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53890         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53891
53892 2008-05-15  Bruno Haible  <bruno@clisp.org>
53893
53894         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
53895         implementation in glibc >= 2.9.
53896         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53898
53899 2008-05-15  Bruno Haible  <bruno@clisp.org>
53900
53901         * MODULES.html.sh (Internationalization functions): Remove linebreak.
53902         (Unicode string functions): Add unilbrk/*.
53903         Reported by Karl Berry.
53904
53905 2008-05-15  Eric Blake  <ebb9@byu.net>
53906
53907         Fix violation of <stdbool.h> replacement in regex.
53908         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
53909         * lib/regexec.c (re_search_internal): Likewise.
53910         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
53911
53912 2008-05-15  Jim Meyering  <meyering@redhat.com>
53913
53914         avoid distracting test output when git or cvs is not found
53915         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
53916         * tests/test-vc-list-files-git.sh: Likewise.
53917
53918 2008-05-15  Eric Blake  <ebb9@byu.net>
53919
53920         Glibc finally accepted the memmem speedup code, bugzilla #5514.
53921         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
53922         glibc version.
53923         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53924         * doc/posix-functions/strstr.texi (strstr): Likewise.
53925         * lib/str-two-way.h (MAX): Sychronize with glibc.
53926
53927 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
53928
53929         * lib/regcomp.c (optimize_utf8): Add a note on why we test
53930         opr.ctx_type.
53931         (calc_first): Initialize constraint field.
53932         (duplicate_node_closure): Use it instead of special casing ANCHORS.
53933         Fix grammar.
53934         (duplicate_node): Merge constraint field for all node types.
53935         (calc_eclosure_iter): Look at constraint field for all node types.
53936         * lib/regex_internal.c (create_cd_newstate): Don't look at
53937         opr.ctx_type.
53938
53939 2008-05-14  Bruno Haible  <bruno@clisp.org>
53940
53941         Help GCC to do better code generation.
53942         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
53943         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53944         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
53945         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
53946         Declare with attribute 'malloc' if supported.
53947
53948 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
53949
53950         use "echo STR|wc -c" rather than unportable "expr length STR"
53951         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
53952         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
53953
53954 2008-05-14  Jim Meyering  <meyering@redhat.com>
53955
53956         use dd ibs=$n count=1 ... rather than less-portable head -c$n
53957         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
53958         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
53959         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
53960         via Collin Lasse.
53961
53962 2008-05-14  Eric Blake  <ebb9@byu.net>
53963
53964         Avoid quadratic growth in gl_LIBSOURCES.
53965         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
53966         Suggested by Bruno Haible.
53967
53968         Test xmemdup0.
53969         * modules/xmemdup0-tests: New file.
53970         * tests/test-xmemdup0.c: Likewise.
53971
53972 2008-05-13  Eric Blake  <ebb9@byu.net>
53973
53974         Split xmemdup0 into its own module.
53975         * modules/xmemdup0: New file.
53976         * lib/xmemdup0.h: Likewise.
53977         * lib/xmemdup0.c: Likewise.
53978         * MODULES.html.sh (Memory management functions): Add xmemdup0.
53979         * lib/xalloc.h (xmemdup0): Remove.
53980         * lib/xmalloc.c (xmemdup0): Likewise.
53981
53982 2008-05-13  Eric Blake  <ebb9@byu.net>
53983             Bruno Haible  <bruno@clisp.org>
53984
53985         Reduce number of forks required during autoconf.
53986         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
53987         and gl_LIBSOURCES_DIR.
53988         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
53989         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
53990         m4_syscmd per file.
53991         <m4_foreach_w>: Move...
53992         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
53993
53994 2008-05-13  Eric Blake  <ebb9@byu.net>
53995
53996         * gnulib-tool: Fix various comment typos.
53997
53998 2008-05-12  Bruno Haible  <bruno@clisp.org>
53999
54000         Tailor the linebreaking algorithm.
54001         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54002
54003 2008-05-12  Bruno Haible  <bruno@clisp.org>
54004
54005         Update to Unicode 5.0.0.
54006         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54007         LBP_JV, LBP_JT. Redistribute values.
54008         (unilbrk_table): Change size.
54009         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54010         Unicode TR#14 rev. 22.
54011         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54012         LBP_JV, LBP_JT. Redistribute values.
54013         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54014         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54015         Update.
54016         * lib/unilbrk/lbrkprop1.h: Regenerated.
54017         * lib/unilbrk/lbrkprop2.h: Regenerated.
54018         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54019         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54020         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54021         Likewise.
54022         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54023         Likewise.
54024         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54025         result.
54026         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54027         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54028         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54029         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54030         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54031         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54032
54033 2008-05-11  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54036
54037 2008-05-11  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54040         * modules/unilbrk/gen-lbrk: New file.
54041
54042 2008-05-11  Bruno Haible  <bruno@clisp.org>
54043
54044         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54045         * m4/sha512.m4 (gl_SHA512): Likewise.
54046
54047 2008-05-11  Jim Meyering  <meyering@redhat.com>
54048
54049         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54050         * modules/crypto/sha256: New file.
54051         * modules/crypto/sha512: Likewise.
54052         * lib/sha256.c: Likewise.
54053         * lib/sha256.h: Likewise.
54054         * lib/sha512.c: Likewise.
54055         * lib/sha512.h: Likewise.
54056         * lib/u64.h: Likewise.
54057         * m4/sha256.m4: Likewise.
54058         * m4/sha512.m4: Likewise.
54059         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54060
54061 2008-05-10  Bruno Haible  <bruno@clisp.org>
54062
54063         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54064         (Input/Output <stdio.h>): Add xprintf.
54065         (Signal handling <signal.h>): Add strsignal.
54066         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54067         (Core language properties): Add func.
54068         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54069         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54070         strings.
54071         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54072         (Input/output): New section.
54073         (File system functions): Add openat-die, stat-macros.
54074         (Networking functions): Add sockets.
54075         (Unicode string functions): Add unictype/*.
54076         (Support for building libraries and executables): Add gperf.
54077         (Support for building documentation): Add agpl-3.0.
54078         (Misc): Add nocrash.
54079
54080 2008-05-10  Bruno Haible  <bruno@clisp.org>
54081
54082         * modules/unictype/gen-ctype: New file.
54083
54084 2008-05-10  Jim Meyering  <meyering@redhat.com>
54085
54086         Make chdir-safer.c more efficient on a system with no symlinks.
54087         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54088         also if ELOOP is zero.  Suggested by Bruno Haible.
54089
54090         Make chdir-safer.c slightly safer.
54091         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54092         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54093
54094         Avoid compile failure on systems without ELOOP (like mingw).
54095         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54096         Reported by Bruno Haible.
54097
54098 2008-05-10  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54101         (is_utf8_encoding): Use a case-insensitive comparison.
54102         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54103         streq.
54104
54105 2008-05-10  Bruno Haible  <bruno@clisp.org>
54106
54107         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54108         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54109         * lib/unilbrk/ulc-common.h (iconv_string_length,
54110         iconv_string_keeping_offsets): Remove declarations.
54111         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54112         Don't include <iconv.h>, streq.h, xsize.h.
54113         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54114         conversion.
54115         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54116         <iconv.h>, streq.h, xsize.h.
54117         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54118         conversion.
54119         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54120         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54121         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54122         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54123
54124 2008-05-10  Bruno Haible  <bruno@clisp.org>
54125
54126         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54127         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54128
54129         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54130         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54131
54132         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54133         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54134
54135         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54136         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54137
54138         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54139         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54140
54141         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54142         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54143
54144         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54145         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54146
54147         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54148         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54149
54150 2008-05-10  Bruno Haible  <bruno@clisp.org>
54151
54152         Split up 'linebreak' module.
54153         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54154         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54155         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54156         modifications.
54157         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54158         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54159         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54160         lib/linebreak.c.
54161         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54162         lib/linebreak.c.
54163         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54164         lib/linebreak.c.
54165         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54166         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54167         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54168         lib/linebreak.c.
54169         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54170         lib/linebreak.c.
54171         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54172         lib/linebreak.c.
54173         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54174         lib/linebreak.c.
54175         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54176         lib/linebreak.c.
54177         * modules/unilbrk/base: New file.
54178         * modules/unilbrk/tables: New file.
54179         * modules/unilbrk/u8-possible-linebreaks: New file.
54180         * modules/unilbrk/u16-possible-linebreaks: New file.
54181         * modules/unilbrk/u32-possible-linebreaks: New file.
54182         * modules/unilbrk/ulc-common: New file.
54183         * modules/unilbrk/ulc-possible-linebreaks: New file.
54184         * modules/unilbrk/u8-width-linebreaks: New file.
54185         * modules/unilbrk/u16-width-linebreaks: New file.
54186         * modules/unilbrk/u32-width-linebreaks: New file.
54187         * modules/unilbrk/ulc-width-linebreaks: New file.
54188         * lib/linebreak.h: Remove file.
54189         * lib/linebreak.c: Remove file.
54190         * m4/linebreak.m4: Remove file.
54191         * modules/linebreak: Remove file.
54192         * NEWS: Mention the changes.
54193
54194 2008-05-09  Eric Blake  <ebb9@byu.net>
54195
54196         Add xmemdup0.
54197         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54198         implementation.
54199         * lib/xmalloc.c (xmemdup0): New C implementation.
54200
54201 2008-05-08  Bruno Haible  <bruno@clisp.org>
54202
54203         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54204
54205 2008-05-07  Eric Blake  <ebb9@byu.net>
54206
54207         Support cross-compilation of <wctype.h>.
54208         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54209         AC_CACHE_CHECK.
54210
54211 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54212
54213         * build-aux/vc-list-files: Add support for bzr.
54214
54215 2008-05-03  Jim Meyering  <meyering@redhat.com>
54216
54217         avoid failed assertion with tight malloc
54218         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54219
54220 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54221
54222         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54223         are needed from arpa/inet.h.
54224         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54225         Reported by Bruno Haible.
54226
54227 2008-05-02  Jim Meyering  <meyering@redhat.com>
54228
54229         avoid compilation error on FreeBSD 6
54230         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54231
54232 2008-05-01  Jim Meyering  <meyering@redhat.com>
54233
54234         useless-if-before-free: correct --help's exit status description
54235         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54236         for one or more matches, etc.  Reported by Bruno Haible.
54237
54238         vc-list-files: make the stand-alone gnulib test work
54239         * modules/vc-list-files-tests (configure.ac):
54240         Define and AC_SUBST abs_aux_dir.
54241         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54242         $(abs_top_srcdir) to each script and having each of them
54243         duplicate the work of setting PATH, set PATH here, using
54244         the new variable, abs_aux_dir instead.
54245         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54246         * tests/test-vc-list-files-git.sh: Likewise.
54247         Reported by Bruno Haible.
54248
54249 2008-05-01  Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54252         reallocation. Rename 'done' to 'found_delimiter'.
54253
54254 2008-05-01  Jim Meyering  <meyering@redhat.com>
54255
54256         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54257         * build-aux/vc-list-files: Use `...`, not $(...).
54258
54259 2008-04-30  Jim Meyering  <meyering@redhat.com>
54260
54261         add tests for vc-list-files
54262         * modules/vc-list-files-tests: New module.
54263         * tests/test-vc-list-files-cvs.sh: New file.
54264         * tests/test-vc-list-files-git.sh: New file.
54265
54266         avoid a warning from gcc
54267         * lib/getndelim2.c (IF_LINT): Define.
54268         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54269
54270         vc-list-files: work properly with build-aux/cvsu, too
54271         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54272         to all cvs-based clauses.
54273
54274         vc-list-files: work properly in the CVS+awk case, too
54275         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54276
54277         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54278         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54279         take more than one file argument, so .  Add quotes, just in case $dir
54280         ever contains a shell meta-character.  Prompted by Soren Hansen in
54281         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54282
54283 2008-04-29  Eric Blake  <ebb9@byu.net>
54284
54285         Optimize getndelim2 to use block operations when possible.
54286         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54287         freadseek, and memchr2.
54288         * lib/getndelim2.c (getndelim2): Use them for block reads.
54289
54290 2008-04-29  Bruno Haible  <bruno@clisp.org>
54291
54292         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54293         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54294         * modules/inet_ntop (Depends-on): Add extensions.
54295         * modules/inet_pton (Depends-on): Likewise.
54296         Reported by Simon Josefsson.
54297
54298 2008-04-29  Jim Meyering  <meyering@redhat.com>
54299
54300         When the is more than one match in a block, match all of them.
54301         * build-aux/useless-if-before-free: Iterate through each block
54302         until there are no more matches.
54303
54304         Fix broken useless-if-before-free script.
54305         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54306         the expression to match cast of argument to free-like function.
54307
54308 2008-04-29  Eric Blake  <ebb9@byu.net>
54309
54310         Use new header.
54311         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54312
54313 2008-04-29  Jim Meyering  <meyering@redhat.com>
54314
54315         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54316         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54317         by gnulib to exist and to declare e.g., inet_ntop.
54318         Don't include "inet_ntop.h", now removed.
54319
54320         * m4/arpa_inet_h.m4: Remove trailing blanks.
54321
54322 2008-04-29  Eric Blake  <ebb9@byu.net>
54323
54324         Silence valgrind on safe reads beyond potential array bounds.
54325         * lib/rawmemchr.valgrind: New file.
54326         * lib/strchrnul.valgrind: Likewise.
54327         * modules/rawmemchr (Files): Distribute new file.
54328         * modules/strchrnul (Files): Likewise.
54329         Suggested by Bruno Haible.
54330
54331 2008-04-29  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54334         (inet_ntop, inet_pton): Change portability warning's wording.
54335         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54336         Invoke gl_CHECK_NEXT_HEADERS.
54337         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54338         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54339         set ARPA_INET_H.
54340         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54341         * modules/arpa_inet (Description): No longer only for systems that
54342         lack it.
54343         (Depends-on): Add include_next.
54344         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54345         HAVE_ARPA_INET_H.
54346
54347 2008-04-29  Jim Meyering  <meyering@redhat.com>
54348
54349         * modules/mkdir (License): Re-license as LGPLv2+.
54350
54351 2008-04-29  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/rawmemchr (Maintainer): Set to Eric.
54354         * modules/strchrnul (Maintainer): Likewise.
54355
54356 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54357
54358         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54359         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54360
54361         * modules/arpa_inet (arpa/inet.h): Use them.
54362
54363 2008-04-28  Eric Blake  <ebb9@byu.net>
54364
54365         Test getndelim2.
54366         * modules/getndelim2-tests: New file.
54367         * tests/test-getndelim2.c: Likewise.
54368         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54369         stream.
54370         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54371
54372         * MODULES.html.sh: Document new module.
54373
54374 2008-04-20  Bruno Haible  <bruno@clisp.org>
54375
54376         * lib/c-stack.c (die): Use raise.
54377         * modules/c-stack (Depends-on): Add raise.
54378
54379 2008-04-28  Bruno Haible  <bruno@clisp.org>
54380
54381         Expect rpmatch to be declared.
54382         * lib/yesno.c (rpmatch): Remove declaration.
54383
54384         Declare rpmatch.
54385         * lib/stdlib.in.h (rpmatch): New declaration.
54386         * lib/rpmatch.c: Include <stdlib.h> first.
54387         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54388         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54390         HAVE_RPMATCH.
54391         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54392         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54393         (Include): Set to <stdlib.h>.
54394         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54395         HAVE_RPMATCH.
54396         * NEWS: Document the change.
54397
54398 2008-04-28  Bruno Haible  <bruno@clisp.org>
54399
54400         Change rpmatch to use nl_langinfo when appropriate.
54401         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54402         (N_): New macro.
54403         (localized_pattern): New function/macro.
54404         (try): Remove match, nomatch arguments. Copy the pattern into safe
54405         memory before caching it.
54406         (rpmatch): Use localized_pattern. Add translator comments.
54407         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54408         Suggested by Eric Blake.
54409         * modules/rpmatch (Depends-on): Add stdbool.
54410
54411 2008-04-28  Eric Blake  <ebb9@byu.net>
54412
54413         Add rawmemchr module, matching glibc.
54414         * modules/string (Makefile.am): New indicator.
54415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54416         * lib/string.in.h (rawmemchr): Declare when appropriate.
54417         * modules/rawmemchr: New file.
54418         * m4/rawmemchr.m4: Likewise.
54419         * lib/rawmemchr.c: Likewise.
54420         * modules/rawmemchr-tests: Likewise.
54421         * tests/test-rawmemchr.c: Likewise.
54422         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54423         module.
54424         * modules/strchrnul (Depends-on): Add rawmemchr.
54425         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54426
54427         Whitespace cleanup.
54428         * tests/test-strchrnul.c: Reindent.
54429         * lib/strchrnul.c: Likewise.
54430
54431         Optimize and test strchrnul.
54432         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54433         * modules/strchrnul-tests: New file.
54434         * tests/test-strchrnul.c: Likewise.
54435
54436         Remove intprops dependency.
54437         * modules/memchr (Depends-on): Remove intprops.
54438         * modules/memrchr (Depends-on): Likewise.
54439         * modules/memchr2 (Depends-on): Likewise.
54440         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54441         * lib/memrchr.c (__memrchr): Likewise.
54442         * lib/memrchr2.c (memchr2): Likewise.
54443         Reported by Simon Josefsson.
54444
54445 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54446
54447         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54448         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54449
54450 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54451
54452         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54453
54454         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54455
54456         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54457
54458         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54459         declarations.
54460         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54461
54462         * m4/inet_pton.m4: Don't check for header files.
54463
54464         * m4/inet_ntop.m4: Don't check for header files.
54465
54466 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54467
54468         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54469         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54470         trigger for cygwin).
54471         Reported by Bruno Haible  <bruno@clisp.org>.
54472
54473 2008-04-28  Bruno Haible  <bruno@clisp.org>
54474
54475         * doc/posix-functions/strdup.texi: Mention mingw problem.
54476
54477 2008-04-27  Bruno Haible  <bruno@clisp.org>
54478
54479         * modules/stat-time-tests (Depends-on): Add sleep.
54480         * tests/test-stat-time.c (force_unlink): New function.
54481         (cleanup): Use it.
54482         (test_mtime): Remove the ctime related tests.
54483         (test_ctime): New function, containing the ctime related tests.
54484         (main): Call test_ctime, except on native Windows platforms.
54485
54486 2008-04-27  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/rpmatch.c (rpmatch): Add some comments.
54489         Reported by James Youngman <jay@gnu.org>.
54490
54491 2008-04-27  Bruno Haible  <bruno@clisp.org>
54492
54493         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54494         quiet NaNs.
54495
54496 2008-04-27  Bruno Haible  <bruno@clisp.org>
54497
54498         Make test-yesno.sh work on mingw.
54499         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54500         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54501         (main): Set stdin to binary mode.
54502         * modules/yesno-tests (Depends-on): Add binary-io.
54503
54504 2008-04-27  Bruno Haible  <bruno@clisp.org>
54505
54506         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54507         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54508         argument that lie outside the IEEE 854 domain.
54509         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54510         (gl_ISFINITE): Use it.
54511         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54512
54513 2008-04-27  Bruno Haible  <bruno@clisp.org>
54514
54515         Allow local renaming in config.h.
54516         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54517
54518 2008-04-27  Bruno Haible  <bruno@clisp.org>
54519
54520         * lib/memchr.c (__memchr): Change type of 'i'.
54521         * lib/memchr2.c (memchr2): Likewise.
54522
54523 2008-04-26  Eric Blake  <ebb9@byu.net>
54524         and Bruno Haible  <bruno@clisp.org>
54525
54526         Optimize and test memrchr.
54527         * modules/memrchr (Depends-on): Add intprops.
54528         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54529         * modules/memrchr-tests: New file.
54530         * tests/test-memrchr.c: New file.
54531
54532 2008-04-26  Bruno Haible  <bruno@clisp.org>
54533
54534         Add tentative support for DragonFly BSD.
54535         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54536         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54537         fp.
54538         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54539         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54540         * lib/fpurge.c (fpurge): Likewise.
54541         * lib/freadable.c (freaadable): Likewise.
54542         * lib/freadahead.c (freadahead): Likewise.
54543         * lib/freading.c (freading): Likewise.
54544         * lib/freadptr.c (freadptr): Likewise.
54545         * lib/freadseek.c (freadptrinc): Likewise.
54546         * lib/fseeko.c (fseeko): Likewise.
54547         * lib/fseterr.c (fseterr): Likewise.
54548         * lib/fwritable.c (fwritable): Likewise.
54549         * lib/fwriting.c (fwriting): Likewise.
54550
54551 2008-04-26  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/stdio-impl.h: New file.
54554         * lib/fbufmode.c: Include stdio-impl.h.
54555         (fbufmode): Use fp_, remove redundant #defines.
54556         * lib/fflush.c: Include stdio-impl.h.
54557         (clear_ungetc_buffer): Remove redundant #defines.
54558         * lib/fpurge.c: Include stdio-impl.h.
54559         (fpurge): Remove redundant #defines.
54560         * lib/freadable.c: Include stdio-impl.h.
54561         (freadable): Remove redundant #defines.
54562         * lib/freadahead.c: Include stdio-impl.h.
54563         (freadahead): Remove redundant #defines.
54564         * lib/freading.c: Include stdio-impl.h.
54565         (freading): Remove redundant #defines.
54566         * lib/freadptr.c: Include stdio-impl.h.
54567         (freadptr): Remove redundant #defines.
54568         * lib/freadseek.c: Include stdio-impl.h.
54569         (freadptrinc): Remove redundant #defines.
54570         * lib/fseeko.c: Include stdio-impl.h.
54571         (rpl_fseeko): Remove redundant #defines.
54572         * lib/fseterr.c: Include stdio-impl.h.
54573         (fseterr): Remove redundant #defines.
54574         * lib/fwritable.c: Include stdio-impl.h.
54575         (fwritable: Remove redundant #defines.
54576         * lib/fwriting.c: Include stdio-impl.h.
54577         (fwriting): Remove redundant #defines.
54578         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54579         * modules/fflush (Files): Likewise.
54580         * modules/fpurge (Files): Likewise.
54581         * modules/freadable (Files): Likewise.
54582         * modules/freadahead (Files): Likewise.
54583         * modules/freading (Files): Likewise.
54584         * modules/freadptr (Files): Likewise.
54585         * modules/freadseek (Files): Likewise.
54586         * modules/fseeko (Files): Likewise.
54587         * modules/fseterr (Files): Likewise.
54588         * modules/fwritable (Files): Likewise.
54589         * modules/fwriting (Files): Likewise.
54590
54591 2008-04-26  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54594         restore_seek_optimization, update_fpos_cache): New functions, extracted
54595         from rpl_fflush.
54596         (rpl_fflush): Use them.
54597         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54598         (gl_REPLACE_FFLUSH): Use it.
54599
54600 2008-04-26  Bruno Haible  <bruno@clisp.org>
54601
54602         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54603         on Solaris.
54604         * tests/test-xstrtoimax.sh: Likewise.
54605         * tests/test-xstrtoumax.sh: Likewise.
54606         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54607
54608 2008-04-26  Bruno Haible  <bruno@clisp.org>
54609
54610         * modules/memchr-tests: New file.
54611         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54612
54613 2008-04-26  Eric Blake  <ebb9@byu.net>
54614             Bruno Haible  <bruno@clisp.org>
54615
54616         * lib/memchr.c: Include intprops.h.
54617         (__memchr): Optimize parallel detection of matching bytes. Rename local
54618         variables. Add explanatory comments.
54619
54620 2008-04-26  Bruno Haible  <bruno@clisp.org>
54621
54622         Fix module 'memchr', broken since 2000-10-28.
54623         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54624
54625 2008-04-26  Bruno Haible  <bruno@clisp.org>
54626
54627         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54628         comments.
54629
54630 2008-04-25  Eric Blake  <ebb9@byu.net>
54631
54632         Use native fstatat on cygwin 1.7.0.
54633         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54634         first.
54635
54636 2008-04-23  Eric Blake  <ebb9@byu.net>
54637
54638         Improve memchr2 performance.
54639         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54640         NUL bytes.
54641         * modules/memchr2 (Depends-on): Use intprops.h.
54642
54643 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54644
54645         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54646         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54647         <blp@cs.stanford.edu>.
54648
54649 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54650
54651         * lib/arpa_inet.in.h: New file.
54652
54653         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54654         (Makefile.am): Sed in substitute header file.
54655
54656         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54657         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54658
54659         * modules/inet_ntop (configure.ac): Use
54660         gl_ARPA_INET_MODULE_INDICATOR.
54661
54662         * modules/inet_pton (configure.ac): Use
54663         gl_ARPA_INET_MODULE_INDICATOR.
54664
54665 2008-04-22  Jim Meyering  <meyering@redhat.com>
54666
54667         * modules/verify (License): Re-license as LGPLv2+.
54668
54669 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54670
54671         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54672         parameter to void* as per POSIX standard (MinGW uses char*).
54673
54674 2008-04-21  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54677         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54678         Define to replacements if REPLACE_ISWCNTRL is 1.
54679         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54680         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54681         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54682         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54683         what it fixes.
54684         * doc/posix-functions/iswalpha.texi: Likewise.
54685         * doc/posix-functions/iswblank.texi: Likewise.
54686         * doc/posix-functions/iswcntrl.texi: Likewise.
54687         * doc/posix-functions/iswdigit.texi: Likewise.
54688         * doc/posix-functions/iswgraph.texi: Likewise.
54689         * doc/posix-functions/iswlower.texi: Likewise.
54690         * doc/posix-functions/iswprint.texi: Likewise.
54691         * doc/posix-functions/iswpunct.texi: Likewise.
54692         * doc/posix-functions/iswspace.texi: Likewise.
54693         * doc/posix-functions/iswupper.texi: Likewise.
54694         * doc/posix-functions/iswxdigit.texi: Likewise.
54695         Reported by Alain Guibert.
54696
54697 2008-04-21  Bruno Haible  <bruno@clisp.org>
54698
54699         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54700         Patch by Alain Guibert.
54701
54702 2008-04-21  Bruno Haible  <bruno@clisp.org>
54703
54704         Fix test failures on mingw.
54705         * tests/test-xstrtol.c (print_no_progname): New function.
54706         (main): Install it in error_print_progname hook.
54707         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54708         * tests/test-xstrtoimax.sh: Likewise.
54709         * tests/test-xstrtoumax.sh: Likewise.
54710
54711 2008-04-21  Bruno Haible  <bruno@clisp.org>
54712
54713         Fix test failure on mingw.
54714         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54715
54716 2008-04-21  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54719         Actually assign a value.
54720
54721 2008-04-20  Bruno Haible  <bruno@clisp.org>
54722
54723         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54724         take 2.
54725         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54726         'canonicalize-lgpl' module is also used.
54727         * lib/canonicalize-lgpl.c: Undo last change.
54728         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54729
54730 2008-04-20  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54733         config.h. Provide _mkdir based fallback for mingw.
54734         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54735         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54736         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54737         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54738         rather than defining mkdir in config.h.
54739         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54740         (gl_SYS_STAT_H_DEFAULTS): New macro.
54741         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54742         HAVE_IO_H any more.
54743         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54744         HAVE_DECL_MKDIR and HAVE_IO_H.
54745
54746 2008-04-20  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/isapipe.c: Port to native Windows platforms.
54749
54750 2008-04-20  Bruno Haible  <bruno@clisp.org>
54751
54752         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54753
54754 2008-04-21  Eric Blake  <ebb9@byu.net>
54755
54756         Work around preprocessors that don't handle UINTMAX_MAX.
54757         * lib/memchr2.c (memchr2): Avoid embedded #if.
54758         Reported by Alain Guibert, fix suggested by Bruno Haible.
54759
54760 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54761
54762         * doc/posix-functions/strftime.texi (strftime): Explain better
54763         Windows incompatibility.  Suggested by Micah Cowan
54764         <micah@cowan.name>.
54765
54766 2008-04-20  Bruno Haible  <bruno@clisp.org>
54767
54768         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54769         unistr/u8-mblen.
54770
54771 2008-04-20  Bruno Haible  <bruno@clisp.org>
54772
54773         Fix test failure on platforms with non-GNU iconv.
54774         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54775         (U_TO_U8): Use it, rather than u16_to_u8.
54776         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54777         units at the end of the input string.
54778         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54779
54780 2008-04-20  Bruno Haible  <bruno@clisp.org>
54781
54782         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54783         when the resulting length is 0.
54784         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54785
54786 2008-04-20  Bruno Haible  <bruno@clisp.org>
54787
54788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54789         works.
54790         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54791
54792 2008-04-20  Bruno Haible  <bruno@clisp.org>
54793
54794         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54795         * modules/tsearch-tests (configure.ac): Test for initstate function.
54796
54797 2008-04-20  Bruno Haible  <bruno@clisp.org>
54798
54799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54800         for nlink_t if missing.
54801         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54802
54803 2008-04-19  Bruno Haible  <bruno@clisp.org>
54804
54805         Work around snprintf bug on Linux libc5.
54806         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54807         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54808         gl_SNPRINTF_SIZE1.
54809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54810         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54811         that test failed.
54812         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54813         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54814         * modules/snprintf (Files): Add m4/printf.m4.
54815         * modules/vsnprintf (Files): Likewise.
54816         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54817         * doc/posix-functions/vsnprintf.texi: Likewise.
54818
54819 2008-04-19  Bruno Haible  <bruno@clisp.org>
54820
54821         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54822         from 0.0058 to less than 10^-7.
54823
54824 2008-04-19  Bruno Haible  <bruno@clisp.org>
54825
54826         Fix rounding when a precision is given.
54827         * lib/vasnprintf.c (is_borderline): New function.
54828         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54829         9...9x.
54830         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54831         %e, %g.
54832         * tests/test-vasprintf-posix.c (test_function): Likewise.
54833         * tests/test-snprintf-posix.h (test_function): Likewise.
54834         * tests/test-sprintf-posix.h (test_function): Likewise.
54835         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54836         * tests/test-printf-posix.h (test_function): Likewise.
54837         * tests/test-printf-posix.output: Update.
54838         Reported by John Darrington <john@darrington.wattle.id.au> via
54839         Ben Pfaff <blp@cs.stanford.edu>.
54840
54841 2008-04-18  Simon Josefsson  <simon@josefsson.org>
54842
54843         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
54844         Suggested by Bruno Haible <bruno@clisp.org>.
54845
54846 2008-04-17  Bruno Haible  <bruno@clisp.org>
54847
54848         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
54849         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
54850         implementation.
54851         Patch by Bruce Merry <bmerry@gmail.com>.
54852
54853 2008-04-17  Simon Josefsson  <simon@josefsson.org>
54854
54855         * doc/posix-functions/strftime.texi (strftime): Mention that %e
54856         doesn't work under Windows.
54857
54858 2008-04-16  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
54861         New macros.
54862         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
54863         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
54864         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
54865         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
54866         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
54867         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
54868         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
54869         macros.
54870         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
54871         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
54872         Northern Sotho, Uighur.
54873
54874 2008-04-16  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
54877         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
54878         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
54879         Reported by Daniel Bergström <daniel@octocode.com>.
54880
54881 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
54882             Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
54885         function.
54886         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
54887         New functions, mostly extracted from gl_locale_name_default.
54888         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
54889
54890 2008-04-16  Eric Blake  <ebb9@byu.net>
54891
54892         Adjust strtod detection to catch glibc 2.7 bug.
54893         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
54894         Reported by John Gatewood Ham.
54895
54896 2008-04-16  Bruno Haible  <bruno@clisp.org>
54897
54898         Add tentative support for Linux libc5.
54899         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
54900         * lib/fpurge.c (fpurge): Likewise.
54901         * lib/freadable.c (freadable): Likewise.
54902         * lib/freadahead.c (freadahead): Likewise.
54903         * lib/freading.c (freading): Likewise.
54904         * lib/freadptr.c (freadptr): Likewise.
54905         * lib/freadseek.c (freadptrinc): Likewise.
54906         * lib/fseeko.c (rpl_fseeko): Likewise.
54907         * lib/fseterr.c (fseterr): Likewise.
54908         * lib/fwritable.c (fwritable): Likewise.
54909         * lib/fwriting.c (fwriting): Likewise.
54910         Reported by Alain Guibert <alguibert+bts@free.fr>.
54911
54912 2008-04-15  Bruno Haible  <bruno@clisp.org>
54913
54914         * modules/mathl (configure.ac): Define module indicator.
54915
54916 2008-04-15  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/logl.c (logl): Remove unused variables.
54919
54920 2008-04-15  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
54923         fails.
54924
54925 2008-04-15  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/trim.c (trim2): Fix argument of isspace() macro.
54928
54929 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
54930
54931         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
54932         to 0.
54933         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
54934
54935 2008-04-14  Bruno Haible  <bruno@clisp.org>
54936
54937         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
54938         AC_LANG_PROGRAM argument.
54939         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
54940         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
54941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54942         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54943         * m4/math_h.m4 (gl_MATH_H): Likewise.
54944         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
54945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54946         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54947         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
54948         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54949         * m4/regex.m4 (gl_REGEX): Likewise.
54950         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
54951         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
54952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54953         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
54954         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54955         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54956         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54957         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54958
54959 2008-04-14  Jim Meyering  <meyering@redhat.com>
54960
54961         test-strtod: fix typos: s/abs/fabs/
54962         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
54963
54964 2008-04-13  Bruno Haible  <bruno@clisp.org>
54965
54966         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
54967         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
54968         module is also used and while not building the reloc-wrapper.
54969
54970 2008-04-13  Bruno Haible  <bruno@clisp.org>
54971
54972         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
54973
54974 2008-04-13  Bruno Haible  <bruno@clisp.org>
54975
54976         Fix AIX compilation failure introduced on 2008-04-02.
54977         * tests/test-frexp.c (exp): Undefine before redefining.
54978         * tests/test-frexpl.c (exp): Likewise.
54979
54980 2008-04-13  Bruno Haible  <bruno@clisp.org>
54981
54982         Work around a HP-UX stdio bug.
54983         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
54984         * tests/test-ftello.c (main): Likewise.
54985         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
54986         * doc/posix-functions/ftello.texi: Likewise.
54987
54988 2008-04-13  Bruno Haible  <bruno@clisp.org>
54989
54990         Make test-signbit pass on HP-UX/hppa.
54991         * tests/test-signbit.c (minus_zerol): New variable.
54992         (test_signbitl): Use it.
54993
54994 2008-04-13  Bruno Haible  <bruno@clisp.org>
54995
54996         Make truncl work on OSF/1 4.0.
54997         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
54998         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54999         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55001         HAVE_DECL_TRUNCL.
55002         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55003         HAVE_DECL_TRUNCL.
55004         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55005
55006 2008-04-13  Bruno Haible  <bruno@clisp.org>
55007
55008         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55009
55010 2008-04-13  Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55013         expression, so as to avoid HP-UX 11 cc compiler bug.
55014
55015 2008-04-13  Bruno Haible  <bruno@clisp.org>
55016
55017         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55018
55019 2008-04-13  Bruno Haible  <bruno@clisp.org>
55020
55021         * lib/git-merge-changelog.c: Remove empty declaration outside of
55022         functions.
55023
55024 2008-04-13  Bruno Haible  <bruno@clisp.org>
55025
55026         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55027
55028 2008-04-13  Bruno Haible  <bruno@clisp.org>
55029
55030         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55031         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55032         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55033         also if it exists but lacks definitions of the SHUT_* macros.
55034         * modules/sys_socket (Description): Update.
55035         Reported by Elbert Pol <e.pol@chello.nl>.
55036
55037 2008-04-13  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/localcharset.c (OS2): Don't redefine if already defined.
55040         Reported by Elbert Pol <e.pol@chello.nl>.
55041
55042 2008-04-13  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/binary-io.h [__EMX__]: Include <io.h>.
55045         Reported by Elbert Pol <e.pol@chello.nl>.
55046
55047 2008-04-12  Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/fpucw.h: Enable the definitions also for x86_64.
55050         Needed for NetBSD/x86_64.
55051         Reported by Thomas Klausner <tk@giga.or.at>.
55052
55053 2008-04-12  Bruno Haible  <bruno@clisp.org>
55054
55055         * tests/test-strtod.c: Include isnand.h.
55056         (main): Use isnand instead of isnan.
55057         Reported by Jim Meyering.
55058
55059 2008-04-12  Bruno Haible  <bruno@clisp.org>
55060
55061         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55062         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55063
55064 2008-04-12  Jim Meyering  <meyering@redhat.com>
55065
55066         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55067
55068 2008-04-12  Bruno Haible  <bruno@clisp.org>
55069
55070         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55071         Reported by Elbert Pol <e.pol@chello.nl>.
55072
55073 2008-04-12  Eric Blake  <ebb9@byu.net>
55074
55075         Work around Solaris 10 math.h bug.
55076         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55077         (gl_MATH_H_DEFAULTS): Set up default.
55078         * modules/math (Makefile.am): Replace new indicators.
55079         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55080         * tests/test-math.c (main): Test this.
55081         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55082         * doc/posix-headers/math.texi (math.h): Mention bug.
55083         Reported by Nelson H. F. Beebe and Jim Meyering.
55084
55085 2008-04-11  Bruno Haible  <bruno@clisp.org>
55086
55087         Adapt to future versions of Apple GCC.
55088         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55089         Reported by Peter O'Gorman <peter@pogma.com>.
55090
55091 2008-04-11  Bruno Haible  <bruno@clisp.org>
55092
55093         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55094
55095 2008-04-11  Bruno Haible  <bruno@clisp.org>
55096
55097         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55098
55099         * modules/getaddrinfo-tests (Makefile.am): Define
55100         test_getaddrinfo_LDADD.
55101
55102 2008-04-11  Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55105         (init): Fix syntax error.
55106         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55107         is declared.
55108
55109 2008-04-11  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55112         * modules/glob (Depends-on): Add stdbool.
55113
55114 2008-04-11  Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/trim.c: Include <string.h>.
55117
55118 2008-04-11  Eric Blake  <ebb9@byu.net>
55119
55120         Avoid compile failure on OS/2.
55121         * lib/regex_internal.h (internal_function): Disable optimization
55122         on OS/2 (__EMX__), where it caused compiler error.
55123         Reported by Elbert Pol.
55124
55125 2008-04-11  Bruno Haible  <bruno@clisp.org>
55126
55127         Flush the standard error stream before aborting. Needed on mingw.
55128         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55129         * tests/test-array_list.c (ASSERT): Likewise.
55130         * tests/test-array_oset.c (ASSERT): Likewise.
55131         * tests/test-avltree_list.c (ASSERT): Likewise.
55132         * tests/test-avltree_oset.c (ASSERT): Likewise.
55133         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55134         * tests/test-binary-io.c (ASSERT): Likewise.
55135         * tests/test-byteswap.c (ASSERT): Likewise.
55136         * tests/test-c-ctype.c (ASSERT): Likewise.
55137         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55138         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55139         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55140         * tests/test-c-strstr.c (ASSERT): Likewise.
55141         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55142         * tests/test-canonicalize.c (ASSERT): Likewise.
55143         * tests/test-carray_list.c (ASSERT): Likewise.
55144         * tests/test-ceilf1.c (ASSERT): Likewise.
55145         * tests/test-ceilf2.c (ASSERT): Likewise.
55146         * tests/test-ceill.c (ASSERT): Likewise.
55147         * tests/test-count-one-bits.c (ASSERT): Likewise.
55148         * tests/test-fbufmode.c (ASSERT): Likewise.
55149         * tests/test-fflush2.c (ASSERT): Likewise.
55150         * tests/test-floorf1.c (ASSERT): Likewise.
55151         * tests/test-floorf2.c (ASSERT): Likewise.
55152         * tests/test-floorl.c (ASSERT): Likewise.
55153         * tests/test-fopen.c (ASSERT): Likewise.
55154         * tests/test-fpending.c (ASSERT): Likewise.
55155         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55156         * tests/test-fpurge.c (ASSERT): Likewise.
55157         * tests/test-freadable.c (ASSERT): Likewise.
55158         * tests/test-freadahead.c (ASSERT): Likewise.
55159         * tests/test-freading.c (ASSERT): Likewise.
55160         * tests/test-freadptr.c (ASSERT): Likewise.
55161         * tests/test-freadptr2.c (ASSERT): Likewise.
55162         * tests/test-freadseek.c (ASSERT): Likewise.
55163         * tests/test-freopen.c (ASSERT): Likewise.
55164         * tests/test-frexp.c (ASSERT): Likewise.
55165         * tests/test-frexpl.c (ASSERT): Likewise.
55166         * tests/test-fseek.c (ASSERT): Likewise.
55167         * tests/test-fseeko.c (ASSERT): Likewise.
55168         * tests/test-fstrcmp.c (ASSERT): Likewise.
55169         * tests/test-ftell.c (ASSERT): Likewise.
55170         * tests/test-ftello.c (ASSERT): Likewise.
55171         * tests/test-func.c (ASSERT): Likewise.
55172         * tests/test-fwritable.c (ASSERT): Likewise.
55173         * tests/test-fwriting.c (ASSERT): Likewise.
55174         * tests/test-getdelim.c (ASSERT): Likewise.
55175         * tests/test-getline.c (ASSERT): Likewise.
55176         * tests/test-i-ring.c (ASSERT): Likewise.
55177         * tests/test-iconv-utf.c (ASSERT): Likewise.
55178         * tests/test-iconv.c (ASSERT): Likewise.
55179         * tests/test-isfinite.c (ASSERT): Likewise.
55180         * tests/test-isnand.c (ASSERT): Likewise.
55181         * tests/test-isnanf.c (ASSERT): Likewise.
55182         * tests/test-isnanl.h (ASSERT): Likewise.
55183         * tests/test-ldexpl.c (ASSERT): Likewise.
55184         * tests/test-linked_list.c (ASSERT): Likewise.
55185         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55186         * tests/test-localename.c (ASSERT): Likewise.
55187         * tests/test-lseek.c (ASSERT): Likewise.
55188         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55189         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55190         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55191         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55192         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55193         * tests/test-mbschr.c (ASSERT): Likewise.
55194         * tests/test-mbscspn.c (ASSERT): Likewise.
55195         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55196         * tests/test-mbspbrk.c (ASSERT): Likewise.
55197         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55198         * tests/test-mbsrchr.c (ASSERT): Likewise.
55199         * tests/test-mbsspn.c (ASSERT): Likewise.
55200         * tests/test-mbsstr1.c (ASSERT): Likewise.
55201         * tests/test-mbsstr2.c (ASSERT): Likewise.
55202         * tests/test-mbsstr3.c (ASSERT): Likewise.
55203         * tests/test-memchr2.c (ASSERT): Likewise.
55204         * tests/test-memmem.c (ASSERT): Likewise.
55205         * tests/test-open.c (ASSERT): Likewise.
55206         * tests/test-printf-frexp.c (ASSERT): Likewise.
55207         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55208         * tests/test-printf-posix.c (ASSERT): Likewise.
55209         * tests/test-quotearg.c (ASSERT): Likewise.
55210         * tests/test-rbtree_list.c (ASSERT): Likewise.
55211         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55212         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55213         * tests/test-round1.c (ASSERT): Likewise.
55214         * tests/test-roundf1.c (ASSERT): Likewise.
55215         * tests/test-roundl.c (ASSERT): Likewise.
55216         * tests/test-signbit.c (ASSERT): Likewise.
55217         * tests/test-sleep.c (ASSERT): Likewise.
55218         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55219         * tests/test-snprintf.c (ASSERT): Likewise.
55220         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55221         * tests/test-stat-time.c (ASSERT): Likewise.
55222         * tests/test-strcasestr.c (ASSERT): Likewise.
55223         * tests/test-strerror.c (ASSERT): Likewise.
55224         * tests/test-striconv.c (ASSERT): Likewise.
55225         * tests/test-striconveh.c (ASSERT): Likewise.
55226         * tests/test-striconveha.c (ASSERT): Likewise.
55227         * tests/test-strsignal.c (ASSERT): Likewise.
55228         * tests/test-strstr.c (ASSERT): Likewise.
55229         * tests/test-strtod.c (ASSERT): Likewise.
55230         * tests/test-trunc1.c (ASSERT): Likewise.
55231         * tests/test-trunc2.c (ASSERT): Likewise.
55232         * tests/test-truncf1.c (ASSERT): Likewise.
55233         * tests/test-truncf2.c (ASSERT): Likewise.
55234         * tests/test-truncl.c (ASSERT): Likewise.
55235         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55236         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55237         * tests/test-vasnprintf.c (ASSERT): Likewise.
55238         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55239         * tests/test-vasprintf.c (ASSERT): Likewise.
55240         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55241         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55242         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55243         * tests/test-vsnprintf.c (ASSERT): Likewise.
55244         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55245         * tests/test-wcwidth.c (ASSERT): Likewise.
55246         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55247         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55248         * tests/test-xvasprintf.c (ASSERT): Likewise.
55249         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55250         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55251         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55252         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55253         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55254         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55255         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55256         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55257         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55258         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55259         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55260         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55261         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55262         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55263         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55264         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55265         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55266         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55267         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55268         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55269         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55270         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55271         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55272         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55273         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55274         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55275         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55276         * tests/unictype/test-combining.c (ASSERT): Likewise.
55277         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55278         * tests/unictype/test-digit.c (ASSERT): Likewise.
55279         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55280         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55281         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55282         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55283         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55284         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55285         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55286         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55287         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55288         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55289         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55290         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55291         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55292         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55293         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55294         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55295         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55296         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55297         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55298         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55299         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55300         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55301         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55302         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55303         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55304         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55305         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55306         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55307         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55308         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55309         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55310         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55311         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55312         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55313         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55314         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55315         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55316         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55317         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55318         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55319         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55320         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55321         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55322         Reported by Eric Blake.
55323
55324 2008-04-11  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/wchar.in.h: Tweak comment.
55327
55328 2008-04-11  Bruno Haible  <bruno@clisp.org>
55329
55330         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55331         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55332         gl_COMMON.
55333         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55334
55335 2008-04-11  Bruno Haible  <bruno@clisp.org>
55336
55337         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55338
55339 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55340
55341         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55342         of attempting to use non-existing /dev/*random.  Based on patch
55343         from Adam Strzelecki <ono@java.pl> in
55344         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55345
55346 2008-04-08  Bruno Haible  <bruno@clisp.org>
55347
55348         Add tentative support for emx+gcc.
55349         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55350         * lib/fpurge.c (fpurge): Likewise.
55351         * lib/freadable.c (freadable): Likewise.
55352         * lib/freadahead.c (freadahead): Likewise.
55353         * lib/freading.c (freading): Likewise.
55354         * lib/freadptr.c (freadptr): Likewise.
55355         * lib/freadseek.c (freadptrinc): Likewise.
55356         * lib/fseeko.c (rpl_fseeko): Likewise.
55357         * lib/fseterr.c (fseterr): Likewise.
55358         * lib/fwritable.c (fwritable): Likewise.
55359         * lib/fwriting.c (fwriting): Likewise.
55360         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55361
55362 2008-04-09  Eric Blake  <ebb9@byu.net>
55363
55364         Avoid some autoconf warnings.
55365         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55366         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55367         * m4/afs.m4 (gl_AFS): Likewise.
55368         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55369         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55370         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55371         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55372         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55373         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55374         (AC_CHECK_DECLS_ONCE): Likewise.
55375         Rename file...
55376         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55377         gnulib-tool requires autoconf 2.59 or better.
55378         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55379
55380 2008-04-08  Eric Blake  <ebb9@byu.net>
55381
55382         Use 'git describe --match' if present (added in git 1.5.5).
55383         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55384         if possible.
55385
55386 2008-04-08  Bruno Haible  <bruno@clisp.org>
55387
55388         Add tentative support for OpenServer.
55389         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55390         _ptr, _cnt.
55391         * lib/fpurge.c (fpurge): Likewise.
55392         * lib/freadable.c (freadable): Likewise.
55393         * lib/freadahead.c (freadahead): Likewise.
55394         * lib/freading.c (freading): Likewise.
55395         * lib/freadptr.c (freadptr): Likewise.
55396         * lib/freadseek.c (freadptrinc): Likewise.
55397         * lib/fseeko.c (rpl_fseeko): Likewise.
55398         * lib/fseterr.c (fseterr): Likewise.
55399         * lib/fwritable.c (fwritable): Likewise.
55400         * lib/fwriting.c (fwriting): Likewise.
55401         Reported by Roger Cornelius <rac@tenzing.org> and
55402         Brian K. White <brian@aljex.com>.
55403
55404 2008-04-06  Jim Meyering  <meyering@redhat.com>
55405
55406         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55407
55408 2008-04-06  Bruno Haible  <bruno@clisp.org>
55409
55410         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55411         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55412         * tests/test-printf-posix.sh: Likewise.
55413         * tests/test-vfprintf-posix.sh: Likewise.
55414         * tests/test-vprintf-posix.sh: Likewise.
55415         * tests/test-xprintf-posix.sh: Likewise.
55416
55417 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55418
55419         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55420         hide error from 'ls', needed on OS/2.
55421         Report by Elbert Pol <elbert.pol@gmail.com>.
55422
55423 2008-04-04  Eric Blake  <ebb9@byu.net>
55424
55425         Make test-fseeko.c failures meaningful.
55426         * tests/test-fseeko.c: Print line number on failure.
55427         * tests/test-fseek.c: Likewise.
55428         Reported by Nelson H. F. Beebe.
55429
55430         Improve strtod bug detection check.
55431         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55432         required for Solaris 10.
55433         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55434
55435 2008-04-04  Bruno Haible  <bruno@clisp.org>
55436
55437         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55438         by m4/setenv.m4.
55439
55440 2008-04-03  Eric Blake  <ebb9@byu.net>
55441
55442         Ensure sane .version contents.
55443         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55444         version string.
55445         * build-aux/git-version-gen: Improve documentation.
55446
55447         Make GNU make output nicer.
55448         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55449         MAKECMDGOALS to enforce message for all command line targets.  Set
55450         srcdir for use in maint.mk.
55451
55452         Another maintainer tweak.
55453         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55454         a target that regenerates version.
55455
55456 2008-04-03  Jim Meyering  <meyering@redhat.com>
55457
55458         vc-list-files: don't cause coreutils "make po-check" failure
55459         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55460
55461 2008-04-03  Eric Blake  <ebb9@byu.net>
55462
55463         Allow VPATH usage of vc-list-files.
55464         * build-aux/vc-list-files (scriptversion): Add timestamp.
55465         (options): Add --help, --version, -C.
55466         (CVS): Support installed cvsu.
55467
55468 2008-04-02  Bruno Haible  <bruno@clisp.org>
55469
55470         Avoid some "statement with no effect" warnings from gcc.
55471         * tests/test-wctype.c (main): Explicitly ignore unused values.
55472         Reported by Jim Meyering.
55473
55474 2008-04-02  Jim Meyering  <meyering@redhat.com>
55475
55476         Avoid some warnings from "gcc -Wshadow".
55477         * tests/test-frexp.c (exp): Define to a different identifier.
55478         * tests/test-frexpl.c (exp): Likewise.
55479
55480 2008-04-03  Jim Meyering  <meyering@redhat.com>
55481
55482         bootstrap: remove dangling *.[ch] symlinks from lib
55483         * build-aux/bootstrap [dangling symlink removal]: Move find's
55484         -depth option to precede all others, to avoid a warning.
55485         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55486
55487 2008-04-02  Bruno Haible  <bruno@clisp.org>
55488
55489         Avoid some warnings from "gcc -Wshadow".
55490         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55491         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55492         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55493         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55494         Reported by Jim Meyering.
55495
55496 2008-04-01  Bruno Haible  <bruno@clisp.org>
55497
55498         Fix test to work on IRIX 6.5 with cc.
55499         * tests/test-math.c (numeric_equal): New function.
55500         (main): Use it.
55501
55502 2008-04-01  Bruno Haible  <bruno@clisp.org>
55503
55504         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55505
55506 2008-04-01  Bruno Haible  <bruno@clisp.org>
55507
55508         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55509         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55510         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55511         (Depends-on): Remove math.
55512
55513         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55514         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55515         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55516         (Depends-on): Remove math.
55517
55518         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55519         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55520         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55521         (Depends-on): Remove math.
55522         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55523         (Depends-on): Remove math.
55524
55525         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55526         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55527         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55528         (Depends-on): Remove math.
55529         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55530         (Depends-on): Remove math.
55531
55532         * tests/test-round1.c: Include nan.h.
55533         (main): Use NaNd instead of NAN.
55534         * modules/round-tests (Files): Add tests/nan.h.
55535
55536         * tests/test-trunc1.c: Include nan.h.
55537         (main): Use NaNd instead of NAN.
55538         * modules/trunc-tests (Files): Add tests/nan.h.
55539
55540         * tests/test-roundf1.c: Include nan.h.
55541         (main): Use NaNf instead of NAN.
55542         * modules/roundf-tests (Files): Add tests/nan.h.
55543
55544         * tests/test-truncf1.c: Include nan.h.
55545         (main): Use NaNf instead of NAN.
55546         * modules/truncf-tests (Files): Add tests/nan.h.
55547
55548         * tests/test-ceilf1.c: Include nan.h.
55549         (main): Use NaNf instead of NAN.
55550         * modules/ceilf-tests (Files): Add tests/nan.h.
55551
55552         * tests/test-floorf1.c: Include nan.h.
55553         (main): Use NaNf instead of NAN.
55554         * modules/floorf-tests (Files): Add tests/nan.h.
55555
55556         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55557         (main): Use NaNf instead of NAN.
55558         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55559
55560         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55561         (main): Use NaNd instead of NAN.
55562         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55563
55564         * tests/test-frexp.c: Include nan.h.
55565         (main): Use NaNd instead of NAN.
55566         * modules/frexp-tests (Files): Add tests/nan.h.
55567
55568         * lib/isnan.c: Don't include <math.h>.
55569         (FUNC): Don't use NAN macro.
55570         * modules/isnand-nolibm (Depends-on): Remove math.
55571         * modules/isnanf-nolibm (Depends-on): Remove math.
55572         * modules/isnanl (Depends-on): Remove math.
55573         * modules/isnanl-nolibm (Depends-on): Remove math.
55574
55575         * tests/nan.h: New file.
55576
55577 2008-04-01  Eric Blake  <ebb9@byu.net>
55578
55579         Fix typos.
55580         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55581         values to be the right type.
55582
55583         For now, cater to gnulib strtod inaccuracies.
55584         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55585         fractional results.  While not as nice from a QoI perspective, it
55586         is a quicker patch than correctly implementing decimal to binary
55587         rounding.
55588
55589 2008-03-31  Eric Blake  <ebb9@byu.net>
55590
55591         Guarantee a definition of NAN.
55592         * lib/math.in.h (NAN): Define if missing.
55593         * tests/test-math.c (main): Test it.
55594         * doc/posix-headers/math.texi (math.h): Document this.
55595         * lib/isnan.c (rpl_isnand): Use it.
55596         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55597         * tests/test-floorf1.c (NaN): Likewise.
55598         * tests/test-frexp.c (NaN): Likewise.
55599         * tests/test-isnand.c (NaN): Likewise.
55600         * tests/test-isnanf.c (NaN): Likewise.
55601         * tests/test-round1.c (NaN): Likewise.
55602         * tests/test-roundf1.c (NaN): Likewise.
55603         * tests/test-snprintf-posix.h (NaN): Likewise.
55604         * tests/test-sprintf-posix.h (NaN): Likewise.
55605         * tests/test-trunc1.c (NaN): Likewise.
55606         * tests/test-truncf1.c (NaN): Likewise.
55607         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55608         * tests/test-vasprintf-posix.c (NaN): Likewise.
55609         * modules/isnand-nolibm (Depends-on): Add math.
55610         * modules/isnanf-nolibm (Depends-on): Likewise.
55611         * modules/isnanl (Depends-on): Likewise.
55612         * modules/isnanl-nolibm (Depends-on): Likewise.
55613         * modules/snprintf-posix-tests (Depends-on): Likewise.
55614         * modules/sprintf-posix-tests (Depends-on): Likewise.
55615         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55616         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55617         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55618         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55619
55620 2008-03-31  Bruno Haible  <bruno@clisp.org>
55621
55622         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55623         * doc/posix-functions/strtod.texi: Likewise.
55624
55625 2008-03-31  Bruno Haible  <bruno@clisp.org>
55626
55627         * tests/test-strtod.c (main): Don't use C99 syntax.
55628
55629 2008-03-31  Bruno Haible  <bruno@clisp.org>
55630
55631         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55632         Reported by Eric Blake.
55633
55634 2008-03-31  Jim Meyering  <meyering@redhat.com>
55635
55636         Don't compare actual signbit return values.
55637         * tests/test-strtod.c (main): Rather, compare only their
55638         zero/non-zero nature.
55639
55640 2008-03-31  Eric Blake  <ebb9@byu.net>
55641
55642         More strtod documentation.
55643         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55644         failures as distinct bugs.
55645
55646 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55647
55648         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55649         Problem reported by Erik Benada in
55650         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55651
55652 2008-03-30  Bruno Haible  <bruno@clisp.org>
55653
55654         * tests/test-strtod.c: Add comments about which assertion fails on which
55655         platform.
55656         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55657
55658 2008-03-30  Eric Blake  <ebb9@byu.net>
55659
55660         Test signbit behavior on zeros.
55661         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55662         (test_signbitd, test_signbitl): Likewise.
55663
55664         More strtod touchups.
55665         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55666         sign of negative underflow, for now.  Use .5, not .1.
55667         * doc/posix-functions/strtod.texi (strtod): Mention these
55668         limitations.
55669         Reported by Jim Meyering.
55670
55671 2008-03-30  Bruno Haible  <bruno@clisp.org>
55672
55673         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55674         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55675
55676 2008-03-30  Bruno Haible  <bruno@clisp.org>
55677
55678         Avoid failure when attempting to return empty iconv results on some
55679         platforms.
55680         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55681         allocation, don't report ENOMEM when the resulting string is empty.
55682
55683 2008-03-30  Bruno Haible  <bruno@clisp.org>
55684
55685         Fix buffer overrun.
55686         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55687         Don't consider the width for tmp_length. Check count against tmp_length
55688         before doing the padding. Ensure enough allocation during padding.
55689
55690 2008-03-30  Eric Blake  <ebb9@byu.net>
55691
55692         strtod touchups.
55693         * lib/strtod.c (strtod): Avoid compiler warnings.
55694         Reported by Jim Meyering.
55695
55696 2008-03-30  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55699         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55700         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55701         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55702         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55703         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55704         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55705         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55706
55707         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55708         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55709         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55710         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55711         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55712         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55713         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55714         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55715
55716         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55717         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55718         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55719         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55720         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55721         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55722         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55723         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55724
55725         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55726         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55727
55728         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55729         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55730
55731         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55732         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55733
55734         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55736         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55737
55738         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55740         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55741
55742         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55744         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55745
55746         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55747         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55748         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55749
55750         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55751         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55753         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55754         (Depends-on): Add EOVERFLOW.
55755         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55756         (Depends-on): Add EOVERFLOW.
55757         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55758         (Depends-on): Add EOVERFLOW.
55759         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55760         (Depends-on): Add EOVERFLOW.
55761         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55762         (Depends-on): Add EOVERFLOW.
55763         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55764         (Depends-on): Add EOVERFLOW.
55765         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55766         (Depends-on): Add EOVERFLOW.
55767         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55768         (Depends-on): Add EOVERFLOW.
55769
55770         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55772         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55773
55774         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55775         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55776         * modules/snprintf (Depends-on): Add EOVERFLOW.
55777
55778         * lib/poll.c (EOVERFLOW): Remove fallback.
55779         * modules/poll (Depends-on): Add EOVERFLOW.
55780
55781         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55782         * modules/getugroups (Depends-on): Add EOVERFLOW.
55783
55784         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55785         * modules/getdelim (Depends-on): Add EOVERFLOW.
55786
55787         * lib/ftell.c (EOVERFLOW): Remove fallback.
55788         * modules/ftell (Depends-on): Add EOVERFLOW.
55789
55790         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55791         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55792         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55793
55794         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55795
55796         * modules/EOVERFLOW-tests: New file.
55797         * tests/test-EOVERFLOW.c: New file.
55798
55799         * modules/EOVERFLOW: New file.
55800         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55801
55802 2008-03-30  Bruno Haible  <bruno@clisp.org>
55803
55804         Fix bug introduced on 2007-06-10.
55805         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55806         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55807
55808 2008-03-30  Bruno Haible  <bruno@clisp.org>
55809
55810         Improve freadseek's efficiency after ungetc.
55811         * lib/freadseek.c: Include freadahead.h.
55812         (freadptrinc): New function, extracted from freadseek.
55813         (freadseek): Use it in a loop. Use freadahead to determine the number
55814         of loop iterations.
55815         * modules/freadseek (Depends-on): Add freadahead.
55816         (configure.ac): Require AC_C_INLINE.
55817
55818 2008-03-30  Bruno Haible  <bruno@clisp.org>
55819
55820         * lib/freadseek.c (freadseek): Don't ignore the return value of
55821         freadptr.
55822
55823 2008-03-29  Eric Blake  <ebb9@byu.net>
55824
55825         Add hex float support.
55826         * modules/strtod (Depends-on): Add c-ctype.
55827         (Link): Mention POW_LIB.
55828         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55829         whitespace between 'e' and exponent.
55830         * tests/test-strtod.c (main): Enable hex float tests.
55831         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55832         now provides.
55833
55834         Document various strtod bugs, with some fixes.
55835         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55836         "-0x", "inf", "nan", and hex constants.
55837         * doc/posix-functions/atof.texi (atof): Likewise.
55838         * modules/stdlib (Makefile.am): Support strtod.
55839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55840         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55841         detect additional strtod bugs.
55842         * lib/stdlib.in.h (rpl_strtod): Add declarations.
55843         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
55844         bool where appropriate.  Parse 'inf' and 'nan'.
55845         * tests/test-strtod.c: New file.
55846         * modules/strtod (Depends-on): Add stdbool, stdlib.
55847         (configure.ac): Turn on module indicator.
55848         * modules/strtod-tests: New module.
55849
55850 2008-03-29  Eric Blake  <ebb9@byu.net>
55851
55852         Fix ftell on mingw.
55853         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
55854         * modules/ftell-tests (Depends-on): Add binary-io.
55855         * modules/ftello-tests (Depends-on): Likewise.
55856         * tests/test-ftell.c (main): Enhance test to cover behavior after
55857         ungetc.  Enforce binary mode.
55858         * tests/test-ftello.c (main): Likewise.
55859
55860         Pass test-freadseek on cygwin.
55861         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
55862         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
55863         ungetc buffer.
55864
55865         * tests/test-fflush2.c (main): Fix typo.
55866
55867 2008-03-29  Bruno Haible  <bruno@clisp.org>
55868
55869         * tests/test-fflush2.c (main): Temporarily disable the contents of
55870         this test.
55871         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
55872         Reported by Eric Blake.
55873
55874 2008-03-28  Simon Josefsson  <simon@josefsson.org>
55875
55876         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
55877         (GC_SHA224_DIGEST_SIZE): Add.
55878
55879         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
55880         (gc_hash_digest_length): Likewise.
55881         (gc_hash_buffer): Likewise.
55882
55883 2008-03-25  Bruno Haible  <bruno@clisp.org>
55884
55885         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
55886         detail which gettext release to use.
55887         Reported by Simon Josefsson.
55888
55889 2008-03-26  Jim Meyering  <meyering@redhat.com>
55890
55891         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
55892         * modules/gnumakefile (clean-GNUmakefile): Also, use
55893         test ... && ... || : syntax rather than if-then ... fi.
55894
55895         gnumakefile: Don't double-quote-expand $(VPATH) value.
55896         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
55897
55898 2008-03-24  Eric Blake  <ebb9@byu.net>
55899
55900         Alter GNUmakefile to install into top directory.
55901         * modules/maintainer-makefile: Split, and add dependency...
55902         * modules/gnumakefile: to this new module.
55903         * build-aux/GNUmakefile: Move...
55904         * top/GNUmakefile: ...here.
55905         * build-aux/maint.mk: Move...
55906         * top/maint.mk: ...here.
55907         * MODULES.html.sh (Support for maintaining...): Document new
55908         module.
55909
55910 2008-03-23  Bruno Haible  <bruno@clisp.org>
55911
55912         * gnulib-tool: New options --vc-files, --no-vc-files.
55913         (func_usage): Document them.
55914         (vc_files): New variable.
55915         (func_import): Consider vc_files.
55916         (func_create_testdir): Set vc_files to empty.
55917         Suggested by Jim Meyering and Karl Berry.
55918
55919 2008-03-23  Bruno Haible  <bruno@clisp.org>
55920
55921         Fix regex compilation error on HP-UX 11.
55922         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
55923         * modules/regex (Files): Add m4/mbstate_t.m4.
55924         Reported by Ton Voon <ton.voon@altinity.com>.
55925
55926 2008-03-23  Bruno Haible  <bruno@clisp.org>
55927
55928         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
55929
55930 2008-03-23  Eric Blake  <ebb9@byu.net>
55931             Bruno Haible  <bruno@clisp.org>
55932
55933         Install files from top/ in the destination directory.
55934         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55935         augmentation also for the files from top/.
55936         (func_import, func_create_testdir): Rewrite file names:
55937         top/filename -> filename.
55938
55939 2008-03-23  Bruno Haible  <bruno@clisp.org>
55940
55941         Tweak "gnulib --version" output.
55942         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
55943
55944 2008-03-23  Bruno Haible  <bruno@clisp.org>
55945
55946         Tweak "gnulib --version" output.
55947         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
55948         rather than contents of ChangeLog, when possible.
55949
55950 2008-03-21  Eric Blake  <ebb9@byu.net>
55951
55952         More --version tweaks.
55953         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
55954         date of last ChangeLog entry.
55955
55956 2008-03-21  Jim Meyering  <meyering@redhat.com>
55957
55958         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
55959
55960 2008-03-20  Eric Blake  <ebb9@byu.net>
55961
55962         VPATH fix.
55963         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
55964
55965 2008-03-20  Simon Josefsson  <simon@josefsson.org>
55966
55967         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
55968         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
55969
55970 2008-03-20  Eric Blake  <ebb9@byu.net>
55971
55972         Sync GNUmakefile with coreutils.
55973         * build-aux/GNUmakefile (have-Makefile): Rename...
55974         (_have-Makefile): ...to this, for namespace consideration.
55975         (GNUmakefile.cfg): Include, if present.
55976         (_autoreconf): Define a default.
55977         (_is-dist-target): New rule for rebuilds to pick up intra-release
55978         version.
55979         (maint-cfg.mk): Rename...
55980         (cfg.mk): ...to this.
55981
55982 2008-03-18  Jim Meyering  <meyering@redhat.com>
55983
55984         New script and module: mktempd
55985         * MODULES.html.sh (maint+release support): Add mktempd.
55986         * build-aux/mktempd: New file.
55987         * modules/mktempd: New file.
55988
55989 2008-03-15  Jim Meyering  <meyering@redhat.com>
55990
55991         Undo last change.
55992         * lib/sha1.c, lib/md5.c: 63 != ~63.
55993         Reported by Andreas Schwab.
55994
55995         sha1.c, md5.c: Hoist a redundant expression.
55996         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
55997         "ctx->buflen" only once, before calling *_process_block.
55998         * lib/md5.c (md5_process_bytes): Likewise.
55999
56000 2008-03-14  Eric Blake  <ebb9@byu.net>
56001
56002         Bump copyright year in files generated by gnulib-tool.
56003         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56004         gnulib-tool, rather than hard-coding it.
56005
56006         Fix 'gnulib-tool --version' output to work with git.
56007         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56008         (startup): ...here.
56009         (func_version): Use it to invoke git-version-gen, rather than
56010         relying on CVS keyword expansion.  Modernize wording.
56011         (cvsdatestamp, last_checkin_date, version): Kill unused
56012         variables.
56013
56014 2008-03-12  Jim Meyering  <meyering@redhat.com>
56015
56016         Recognize optional cast of the argument to free.
56017         * build-aux/useless-if-before-free: Update regexps.
56018
56019         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56020
56021 2008-03-11  Bruno Haible  <bruno@clisp.org>
56022
56023         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56024         by a single package.
56025         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56026         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56027         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56028         Reported by Sam Steingold <sds@gnu.org>.
56029
56030 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56031
56032         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56033         repositories.
56034
56035 2008-03-11  Bruno Haible  <bruno@clisp.org>
56036
56037         Avoid conflicts between local macro definitions.
56038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56039         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56040
56041 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56042             Bruno Haible  <bruno@clisp.org>
56043
56044         Make va_copy work with some version of xlc on AIX 5.1.
56045         * lib/stdarg.in.h: New file.
56046         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56047         On AIX, use a <stdarg.h> file substitute.
56048         * modules/stdarg (Files): Add lib/stdarg.in.h.
56049         (Depends-on): Add include_next.
56050         (Makefile.am): Build a stdarg.h substitute if requested.
56051         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56052
56053 2008-03-10  Bruno Haible  <bruno@clisp.org>
56054
56055         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56056         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56057         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56058
56059 2008-03-10  Bruno Haible  <bruno@clisp.org>
56060
56061         * modules/stdlib (Depends-on): Add include_next, remove
56062         absolute-header.
56063
56064 2008-03-09  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/freadahead.h (freadahead): Document more precisely.
56067         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56068         the sum of both buffer sizes.
56069         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56070         * NEWS: Document the change.
56071
56072 2008-03-09  Bruno Haible  <bruno@clisp.org>
56073
56074         Extend freadptr to return also the buffer size.
56075         * lib/freadptr.h (freadptr): Add sizep argument.
56076         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56077         (freadptr): Add sizep argument. Determine buffer size like freadahead
56078         does.
56079         * tests/test-freadptr.c: Don't include freadahead.h.
56080         (main): Adapt for new calling convention of freadptr.
56081         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56082         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56083         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56084         tests/test-freadptr2.sh.
56085         (Depends): Remove freadahead.
56086         (TESTS): Add test-freadptr2.sh.
56087         (check_PROGRAMS): Add test-freadptr2.
56088
56089 2008-03-09  Bruno Haible  <bruno@clisp.org>
56090
56091         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56092         Report and solution by Simon Josefsson.
56093
56094 2008-03-06  Bruno Haible  <bruno@clisp.org>
56095
56096         Make fflush after ungetc work on BSD platforms.
56097         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56098         * tests/test-fflush2.c: New file.
56099         * tests/test-fflush2.sh: New file.
56100         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56101         tests/test-fflush2.c.
56102         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56103         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56104
56105 2008-03-06  Eric Blake  <ebb9@byu.net>
56106
56107         Likewise for ftello.
56108         * modules/ftello (Dependencies): Add extensions.
56109         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56110
56111 2008-03-06  Bruno Haible  <bruno@clisp.org>
56112
56113         * modules/fseeko (Dependencies): Add extensions.
56114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56115         Needed on glibc systems.
56116
56117 2008-03-06  Bruno Haible  <bruno@clisp.org>
56118
56119         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56120         email address.
56121         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56122
56123 2008-03-06  Bruno Haible  <bruno@clisp.org>
56124
56125         * users.txt: Add libgnupdf.
56126
56127 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56128
56129         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56130         (Header File Substitutes, Function Substitutes,
56131         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56132         (Build robot for gnulib): Fix typo.
56133
56134 2008-03-06  Bruno Haible  <bruno@clisp.org>
56135
56136         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56137         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56138
56139 2008-03-06  Bruno Haible  <bruno@clisp.org>
56140
56141         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56142         * doc/gnulib.texi: Include it.
56143
56144 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56145
56146         * modules/func (License): Change license to unlimited; there was
56147         no LGPL parts in the module anyway.
56148
56149 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56150
56151         * modules/__func__: Renamed to modules/func.
56152         * modules/__func__-tests: Renamed to modules/func-tests.
56153         * tests/test-__func__.c: Renamed to tests/test-func.c.
56154         * m4/__func__.m4: Renamed to m4/func.m4.
56155         * doc/gnulib.texi (__func__): Section renamed to func.
56156         Suggested by Eric Blake <ebb9@byu.net>.
56157
56158 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56159
56160         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56161         about __func__.  Make example self-contained.  Suggested by Eric
56162         Blake <ebb9@byu.net>.
56163
56164         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56165         Suggested by Eric Blake <ebb9@byu.net>.
56166
56167 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56168
56169         * modules/__func__: New file.
56170         * modules/__func__-tests: New file.
56171         * tests/test-__func__.c: New file.
56172         * m4/__func__.m4: New file.
56173         * doc/gnulib.texi (__func__): Document __func__ module.
56174
56175 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56176
56177         * modules/byteswap (License): Re-license as LGPLv2+.
56178
56179 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56180
56181         * doc/Makefile: Add pdf target.
56182
56183 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56184
56185         * modules/inline (License): Use 'unlimited', since there are only
56186         *.m4 files in this module.
56187
56188 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56189             Bruno Haible  <bruno@clisp.org>
56190
56191         Add support for HP C 7.1 on OpenVMS 8.3.
56192         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56193
56194 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56195
56196         Update VMS specifics.
56197         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56198
56199 2008-03-02  Jim Meyering  <meyering@redhat.com>
56200
56201         Remove the last dependency on the "free" module.
56202         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56203         Reported by Bob Proulx.
56204
56205         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56206
56207         Remove useless "if" tests before free.  Deprecate "free" module.
56208         * doc/posix-functions/free.texi: Mention that this
56209         module is no longer useful.
56210         * modules/free (Notice): Say this module is obsolete.
56211         * modules/readutmp (Depends-on): Remove free.
56212         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56213         * lib/putenv.c (putenv): Likewise.
56214         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56215         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56216         * tests/test-c-strcasestr.c (main): Likewise.
56217         * tests/test-c-strstr.c (main): Likewise.
56218         * tests/test-mbscasestr1.c (main): Likewise.
56219         * tests/test-mbscasestr2.c (main): Likewise.
56220         * tests/test-mbsstr1.c (main): Likewise.
56221         * tests/test-mbsstr2.c (main): Likewise.
56222         * tests/test-memmem.c (main): Likewise.
56223         * tests/test-strcasestr.c (main): Likewise.
56224         * tests/test-striconv.c (main): Likewise.
56225         * tests/test-striconveh.c (main): Likewise.
56226         * tests/test-striconveha.c (main): Likewise.
56227         * tests/test-strstr.c (main): Likewise.
56228
56229         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56230
56231         bootstrap: sync from coreutils again
56232         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56233
56234 2008-03-01  Jim Meyering  <meyering@redhat.com>
56235
56236         bootstrap: sync from coreutils
56237         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56238         also when the target doesn't exist.
56239
56240 2008-03-01  Eric Blake  <ebb9@byu.net>
56241
56242         Fix bugs in last patch.
56243         * lib/memchr2.c (memchr2): Fix typo.
56244         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56245         extension.
56246         Reported by Bruce Korb.
56247
56248         New module 'memchr2'.
56249         * modules/memchr2: New file.
56250         * modules/memchr2-tests: Likewise.
56251         * lib/memchr2.h: Likewise.
56252         * lib/memchr2.c: Likewise, based on memchr.c.
56253         * tests/test-memchr2.c: New test.
56254         * MODULES.html.sh (String handling): Add memchr2.
56255
56256 2008-02-29  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/freadseek-tests: New file.
56259         * tests/test-freadseek.sh: New file.
56260         * tests/test-freadseek.c: New file.
56261
56262         New module 'freadseek'.
56263         * modules/freadseek: New file.
56264         * lib/freadseek.h: New file.
56265         * lib/freadseek.c: New file.
56266         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56267
56268 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56269
56270         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56271         wydawca.
56272
56273         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56274         program_invocation_name and program_invocation_short_name are
56275         present.
56276
56277 2008-02-28  Bruno Haible  <bruno@clisp.org>
56278
56279         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56280         * tests/test-freadptr.sh: Also test non-seekable stdin.
56281
56282 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56283
56284         * build-aux/bootstrap (source_base, m4_base)
56285         (doc_base, tests_base): New variables.
56286         (gnulib_tool_options): Do not hardcode base directories, use
56287         the above variables instead.
56288
56289 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56290
56291         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56292
56293 2008-02-28  Bruno Haible  <bruno@clisp.org>
56294
56295         * modules/freadptr-tests: New file.
56296         * tests/test-freadptr.sh: New file.
56297         * tests/test-freadptr.c: New file.
56298
56299         New module 'freadptr'.
56300         * modules/freadptr: New file.
56301         * lib/freadptr.h: New file.
56302         * lib/freadptr.c: New file.
56303         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56304
56305 2008-02-26  Karl Berry  <karl@freefriends.org>
56306
56307         Sync from Libtool:
56308         * libltdl/argz.c (argz_add, argz_count): New functions.
56309         * libltdl/argz.in.h: Declare them.
56310         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56311
56312 2008-02-22  Bruno Haible  <bruno@clisp.org>
56313
56314         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56315         is a pointer type.  Needed for HP-UX 10.
56316         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56317         * doc/posix-functions/gmtime_r.texi: Likewise.
56318         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56319
56320 2008-02-24  Bruno Haible  <bruno@clisp.org>
56321
56322         * modules/environ-tests: New file.
56323         * tests/test-environ.c: New file.
56324
56325         New module 'environ'.
56326         * modules/environ: New file.
56327         * lib/unistd.in.h (environ): New declaration.
56328         * m4/environ.m4: New file.
56329         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56330         after use.
56331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56332         HAVE_DECL_ENVIRON.
56333         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56334         HAVE_DECL_ENVIRON.
56335         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56336         wrong claim that 'environ' is missing on some systems.
56337         * modules/execute (Depends-on): Add environ.
56338         * lib/execute.c (environ): Remove fallback declaration.
56339         * modules/pipe (Depends-on): Add environ.
56340         * lib/pipe.c (environ): Remove fallback declaration.
56341         * modules/setenv (Depends-on): Add environ.
56342         * lib/setenv.c (environ): Remove fallback declaration.
56343         * modules/unsetenv (Depends-on): Add environ.
56344         * lib/unsetenv.c (environ): Remove fallback declaration.
56345         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56346         m4/environ.m4.
56347         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56348         (gl_PREREQ_UNSETENV): Likewise.
56349
56350 2008-02-24  Bruno Haible  <bruno@clisp.org>
56351
56352         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56353
56354 2008-02-20  Bob Proulx  <bob@proulx.com>
56355
56356         Enable use of older two part flavor 'git describe'.
56357         * build-aux/git-version-gen: If using the older two part flavor of
56358         git version then recreate the third part now present in the
56359         newer three part flavor of git describe.
56360
56361 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56362
56363         * lib/fts.c (fts_build): Typo correction to comment.
56364
56365 2008-02-17  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56368         generating no-op conflicts.
56369
56370 2008-02-17  Bruno Haible  <bruno@clisp.org>
56371
56372         Speed up by 10%.
56373         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56374         result_entries, rather than an index-based loop.
56375
56376 2008-02-17  Bruno Haible  <bruno@clisp.org>
56377
56378         Speed up by 25%.
56379         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56380         'hashcode_cached'.
56381         (entry_create): New function.
56382         (entry_hashcode): Use the cached hashcode if possible.
56383         (read_changelog_file, try_split_merged_entry): Use entry_create.
56384
56385 2008-02-17  Bruno Haible  <bruno@clisp.org>
56386
56387         Speed up from O(n^2) to O(n) for long ChangeLog files.
56388         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56389         (read_changelog_file): Change implementation of entries_reversed list
56390         to rbtreehash.
56391         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56392
56393 2008-02-17  Bruno Haible  <bruno@clisp.org>
56394
56395         New option --split-merged-entry.
56396         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56397         (find_paragraph_end, try_split_merged_entry): New functions.
56398         (long_options): Add option --split-merged-entry.
56399         (usage): Document option --split-merged-entry.
56400         (main): Implement option --split-merged-entry.
56401         Reported by Eric Blake.
56402
56403 2008-02-17  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/git-merge-changelog.c: Include c-strstr.h.
56406         (main): Support the "git pull --rebase" situation.
56407         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56408         Reported by Eric Blake.
56409
56410 2008-02-16  Eric Blake  <ebb9@byu.net>
56411
56412         Avoid doubling \ in common case of "c-maybe" quoting style.
56413         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56414         eliding outer quotes.
56415         * lib/quotearg.h: Document this.
56416         * tests/test-quotearg.c (result_strings, inputs, results_g)
56417         (flag_results, locale_results): Test it by adding a new string to
56418         each test group.
56419         (compare_strings): Test new string.
56420
56421 2008-02-13  Eric Blake  <ebb9@byu.net>
56422
56423         Avoid trigraph quoting in default output.
56424         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56425         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56426         unless explicitly requested.
56427         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56428
56429 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56430
56431         Don't rely on signed integer overflowing to negative value.
56432         * lib/getugroups.c (getugroups): Include <limits.h>.
56433         Instead, compare against INT_MAX, and increment only if the test passes.
56434
56435 2008-02-13  Jim Meyering  <meyering@redhat.com>
56436         and Eric Blake  <ebb9@byu.net>
56437
56438         Avoid shadowing warning and compile errors on Linux.
56439         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56440         forwarding macros on Linux.
56441         (dcgettext): Define a stub, for Linux.
56442         (results_g, main): Avoid warnings.
56443
56444 2008-02-12  Eric Blake  <ebb9@byu.net>
56445
56446         Silence warning in last patch.
56447         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56448
56449         Quotearg part 4: add tests, fix c-maybe colon quoting.
56450         * lib/quotearg.h: Improve documentation.
56451         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56452         escapes when adding outer quotes.  When quoting trigraphs, use
56453         valid C notation.  When quoting NUL, omit extra characters if next
56454         character is not digit.  Alter prototype.
56455         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56456         callers.
56457         * modules/quotearg-tests: New module.
56458         * tests/test-quotearg.c: New test.
56459
56460 2008-02-07  Eric Blake  <ebb9@byu.net>
56461
56462         Quotearg part 3: add flag to control outer quote elision.
56463         * lib/quotearg.h (c_maybe_quoting_style): New style.
56464         (enum quoting_flags): Better documentation of flags.
56465         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56466         c-maybe style.
56467         (quotearg_buffer_restyled): Handle new flag to elide outer
56468         quotes.
56469
56470         Quotearg part 2: add flag that can control NUL elision.
56471         * lib/quotearg.h (set_quoting_flags): New prototype.
56472         * lib/quotearg.c (struct quoting_options): Add flag field.
56473         (set_quoting_flags): New function.
56474         (quotearg_buffer_restyled): Add flags parameter.
56475         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56476         (quotearg_n_options): Set the flag, since length cannot be
56477         returned.
56478         (quoting_options_from_style): Default flags correctly.
56479
56480         Quotearg part 1: more wrappers, restore quotearg_char state.
56481         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56482         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56483         (quotearg_colon_mem): New wrappers.
56484         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56485         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56486         functions.
56487         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56488         (quotearg_colon_mem): New functions.
56489
56490 2008-02-11  Bruno Haible  <bruno@clisp.org>
56491
56492         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56493         library in the current directory: it does not work with parallel make.
56494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56495
56496 2008-02-11  Bruno Haible  <bruno@clisp.org>
56497
56498         * .gitattributes: New file.
56499
56500 2008-02-11  Jim Meyering  <meyering@redhat.com>
56501
56502         useless-if-before-free: Fix reversed exit values.
56503         * build-aux/useless-if-before-free: Use correct values
56504         for EXIT_MATCH and EXIT_NO_MATCH.
56505
56506         * build-aux/useless-if-before-free: Close stdout carefully.
56507
56508 2008-02-10  Bruno Haible  <bruno@clisp.org>
56509
56510         New module 'git-merge-changelog'.
56511         * modules/git-merge-changelog: New file.
56512         * lib/git-merge-changelog.c: New file.
56513
56514 2008-02-10  Jim Meyering  <meyering@redhat.com>
56515
56516         useless-if-before-free: New option: --list (-l).
56517
56518         useless-if-before-free: Don't exit immediately upon open failure.
56519         * build-aux/useless-if-before-free: Exit 2 for errors.
56520         Upon failure to open a file, don't exit immediately.
56521         Rather, just warn and continue with any remaining files.
56522
56523 2008-02-10  Bruno Haible  <bruno@clisp.org>
56524
56525         New abstract list operation 'node_set_value'.
56526         * lib/gl_list.h (gl_list_node_set_value): New function.
56527         (struct gl_list_implementation): New field node_set_value.
56528         * lib/gl_list.c (gl_list_node_set_value): New function.
56529         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56530         (gl_array_list_implementation): Update.
56531         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56532         (gl_carray_list_implementation): Update.
56533         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56534         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56535         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56536         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56537         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56538         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56539         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56540         Update.
56541         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56542         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56543         (gl_sublist_list_implementation): Update.
56544
56545 2008-02-10  Bruno Haible  <bruno@clisp.org>
56546
56547         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56548         Needed when ELEMENT is #defined to 'some_type *'.
56549
56550 2008-02-10  Jim Meyering  <meyering@redhat.com>
56551
56552         New script and module: useless-if-before-free
56553         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56554         * build-aux/useless-if-before-free: New file.
56555         * modules/useless-if-before-free: New file.
56556
56557         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56558
56559         xstrtol_error: Fix typo.
56560         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56561         s/exit_failure/exit_status/.
56562
56563 2008-02-09  Jim Meyering  <meyering@redhat.com>
56564
56565         New script and module: gitlog-to-changelog
56566         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56567         * modules/gitlog-to-changelog: New file.
56568         * build-aux/gitlog-to-changelog: New file.
56569
56570 2008-02-08  Jim Meyering  <meyering@redhat.com>
56571
56572         Avoid two "parameter unused" warnings.
56573         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56574         Mark "st" as used.
56575
56576         Use "git COMMAND", not "git-COMMAND".
56577         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56578         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56579         * build-aux/git-version-gen: Use "git status", not "git-status".
56580
56581 2008-02-07  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56584         Avoids a crash on Windows Vista.
56585         Reported by Adam Strzelecki <ono@java.pl> via
56586         Simon Josefsson <simon@josefsson.org>.
56587
56588 2008-02-06  Bruno Haible  <bruno@clisp.org>
56589
56590         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56591         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56592         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56594         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56595         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56596         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56597         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56605         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56606         left-adjust flag.
56607         * tests/test-snprintf-posix.h (test_function): Likewise.
56608         * tests/test-sprintf-posix.h (test_function): Likewise.
56609         * tests/test-vasprintf-posix.c (test_function): Likewise.
56610         * doc/posix-functions/fprintf.texi: Update.
56611         * doc/posix-functions/printf.texi: Update.
56612         * doc/posix-functions/snprintf.texi: Update.
56613         * doc/posix-functions/sprintf.texi: Update.
56614         * doc/posix-functions/vfprintf.texi: Update.
56615         * doc/posix-functions/vprintf.texi: Update.
56616         * doc/posix-functions/vsnprintf.texi: Update.
56617         * doc/posix-functions/vsprintf.texi: Update.
56618         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56619
56620 2008-02-06  Bruno Haible  <bruno@clisp.org>
56621
56622         Fix bug introduced on 2008-01-26.
56623         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56624
56625 2008-02-06  Bruno Haible  <bruno@clisp.org>
56626
56627         Fix bug introduced on 2007-06-10.
56628         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56629         !NEED_PRINTF_FLAG_ZERO.
56630
56631 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56632
56633         getloadavg: use libperfstat on AIX5
56634         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56635
56636 2008-02-03  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/diffseq.h: Add comments about required #includes.
56639         Reported by Michael Biggs <gnulib@doubleplum.net>.
56640
56641 2008-02-01  Bruno Haible  <bruno@clisp.org>
56642
56643         * users.txt: Add gnuit.
56644
56645 2008-01-31  Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/md4.c (set_uint32): Mark as inline.
56648         * lib/md5.c (set_uint32): Likewise.
56649         * lib/sha1.c (set_uint32): Likewise.
56650         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56651         * m4/md5.m4 (gl_MD5): Likewise.
56652         * m4/sha1.m4 (gl_SHA1): Likewise.
56653
56654 2008-01-31  Jim Meyering  <meyering@redhat.com>
56655
56656         Use "sizeof VAR", rather than a literal "4".
56657         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56658         * lib/md4.c (md4_read_ctx): Likewise.
56659         * lib/sha1.c (sha1_read_ctx): Likewise.
56660
56661 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56662
56663         * tests/test-sha1.c: New file, based on test-md5.c.
56664
56665         * modules/crypto/sha1-tests: New file.
56666
56667 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56668
56669         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56670
56671 2008-01-31  Jim Meyering  <meyering@redhat.com>
56672
56673         Prefer "sizeof v" over the equivalent "4".
56674         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56675         * lib/md5.c (set_uint32): Likewise.
56676         * lib/sha1.c (set_uint32): Likewise.
56677
56678 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56679
56680         * lib/sha1.c (set_uint32): Mark function as static.
56681
56682 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56683
56684         md2: clarify comments to say that alignment is not required.
56685         * lib/md2.h: Remove warning about alignment in comment.
56686         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56687         never been required.
56688
56689 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56690
56691         md4: adapt alignment constraint fix from sha1.
56692         * lib/md4.c (set_uint32): New function, from sha1.c
56693         (md4_read_ctx): Use it.
56694         (md4_finish_ctx): Doc fix.
56695         * lib/md4.h: Doc fix.
56696
56697 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56698
56699         md5: adapt alignment constraint fix from sha1.
56700         * lib/md5.c (set_uint32): New function, from sha1.c
56701         (md5_read_ctx): Use it.
56702         (md5_finish_ctx): Doc fix.
56703         * lib/md5.h: Doc fix.
56704
56705 2008-01-30  Peter Palfrader  <weasel@debian.org>
56706
56707         sha1: remove the result buffer alignment constraint
56708         * lib/sha1.c (set_uint32): New function.
56709         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56710         constraint.
56711         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56712         * lib/sha1.h: Likewise.
56713
56714 2008-01-30  Andreas Schwab  <schwab@suse.de>
56715             Bruno Haible  <bruno@clisp.org>
56716
56717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56718         correct definition of LDBL_MIN_EXP.
56719
56720 2008-01-30  Karl Berry  <karl@gnu.org>
56721
56722         * config/srclist-update: try to preserve x bit on updates.
56723         * config/srclistvars.sh: update for karl.
56724
56725 2008-01-29  Jim Meyering  <meyering@redhat.com>
56726
56727         vasnprintf.c: Avoid warning about unused label
56728         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56729         "overflow" label definition and associated code with the
56730         same cpp condition that guards the sole use of that label.
56731
56732 2008-01-26  Bruno Haible  <bruno@clisp.org>
56733
56734         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56735         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56736         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56737         * lib/isnanl-nolibm.h (isnanl): Likewise.
56738         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56739
56740 2008-01-26  Bruno Haible  <bruno@clisp.org>
56741
56742         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56743         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56744
56745 2008-01-26  Bruno Haible  <bruno@clisp.org>
56746
56747         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56748         GCC >= 4.0 built-in.
56749         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56750
56751 2008-01-26  Bruno Haible  <bruno@clisp.org>
56752
56753         Rename isnan, applicable to 'double' only, to isnand.
56754         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56755         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56756         (configure.ac): Update.
56757         (Include): Replace "isnan.h" with "isnand.h".
56758         * m4/isnand.m4: Renamed from m4/isnan.m4.
56759         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56760         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56761         instead of isnan.c.
56762         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56763         instead of HAVE_ISNAN_IN_LIBC.
56764         (isnand): Renamed from isnan.
56765         * lib/isnand.c: New file.
56766         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56767         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56768         (Makefile.am): Update.
56769         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56770         Include isnand.h instead of isnan.h.
56771         (main): Test isnand instead of isnan.
56772         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56773         isnan-nolibm.
56774         * modules/frexp (Depends-on): Likewise.
56775         * modules/frexp-tests (Depends-on): Likewise.
56776         * modules/frexp-nolibm (Depends-on): Likewise.
56777         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56778         * modules/isfinite (Depends-on): Likewise.
56779         * modules/round-tests (Depends-on): Likewise.
56780         * modules/signbit (Depends-on): Likewise.
56781         * modules/signbit-tests (Depends-on): Likewise.
56782         * modules/snprintf-posix (Depends-on): Likewise.
56783         * modules/sprintf-posix (Depends-on): Likewise.
56784         * modules/trunc-tests (Depends-on): Likewise.
56785         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56786         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56787         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56788         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56789         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56790         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56791         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56792         * modules/vasnprintf-posix (Depends-on): Likewise.
56793         * modules/vasprintf-posix (Depends-on): Likewise.
56794         * modules/vfprintf-posix (Depends-on): Likewise.
56795         * modules/vsnprintf-posix (Depends-on): Likewise.
56796         * modules/vsprintf-posix (Depends-on): Likewise.
56797         * lib/frexp.c: Include isnand.h instead of isnan.h.
56798         (ISNAN): Set to isnand instead of isnan.
56799         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56800         (gl_isfinited): Use isnand instead of isnan.
56801         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56802         (gl_signbitd): Use isnand instead of isnan.
56803         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56804         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56805         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56806         (main): Use isnand instead of isnan.
56807         * tests/test-round1.c: Include isnand.h.
56808         (main): Use isnand instead of isnan.
56809         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56810         (ISNAN): Set to isnand instead of isnan.
56811         * tests/test-trunc1.c: Include isnand.h.
56812         (main): Use isnand instead of isnan.
56813         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56814         (equal): Use isnand instead of isnan.
56815         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56816         isnand-nolibm.
56817         * NEWS: Mention the change.
56818
56819 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56820             Bruno Haible  <bruno@clisp.org>
56821
56822         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56823         the GCC builtins for signbits are present and set
56824         REPLACE_SIGNBIT_USING_GCC if so.
56825         * lib/math.in.h (signbit): Define using GCC builtins if
56826         REPLACE_SIGNBIT_USING_GCC is set.
56827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56828         REPLACE_SIGNBIT_USING_GCC.
56829         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56830
56831 2008-01-25  Jim Meyering  <meyering@redhat.com>
56832
56833         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56834         * lib/poll.c: Include <config.h>, not "config.h".
56835         * tests/test-getaddrinfo.c: Likewise.
56836
56837 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56838
56839         * modules/sockets-tests: New file.
56840
56841 2008-01-24  Simon Josefsson  <simon@josefsson.org>
56842
56843         * modules/sockets: New module, can be used to call WSA_Startup and
56844         WSA_Cleanup when needed.
56845
56846         * lib/sockets.h, lib/sockets.c: New files.
56847
56848         * m4/sockets.m4: New file.
56849
56850         * tests/test-sockets.c: New file.
56851
56852 2008-01-19  Bruno Haible  <bruno@clisp.org>
56853
56854         * doc/posix-headers: Renamed from doc/headers.
56855         * doc/posix-functions: Renamed from doc/functions.
56856         * doc/gnulib.texi: Update.
56857
56858 2008-01-19  Bruno Haible  <bruno@clisp.org>
56859
56860         * doc/glibc-functions/strcasestr.texi: Include contents of
56861         doc/functions/strcasestr.texi, fixing the list of platforms.
56862         * doc/functions/strcasestr.texi: Remove file.
56863
56864 2008-01-19  Bruno Haible  <bruno@clisp.org>
56865
56866         * doc/glibc-functions/memmem.texi: Include contents of
56867         doc/functions/memmem.texi.
56868         * doc/functions/memmem.texi: Remove file.
56869
56870 2008-01-18  Bruno Haible  <bruno@clisp.org>
56871
56872         * doc/glibc-functions/*.texi: New files.
56873         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
56874         to use the new files.
56875
56876 2008-01-17  Bruno Haible  <bruno@clisp.org>
56877
56878         * tests/test-gethostname.c (main): Fix printf statement.
56879
56880 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56881
56882         * modules/gethostname-tests: New file.
56883
56884         * tests/test-gethostname.c: New file.
56885
56886 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56887
56888         * lib/gethostname.c: Include string.h unconditionally, strncpy is
56889         used by the UNAME case.  Reported by Bruno Haible
56890         <bruno@clisp.org>.
56891
56892 2008-01-17  Eric Blake  <ebb9@byu.net>
56893
56894         Convert c-strcasestr to be more efficient.
56895         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
56896         (Depends-on): Add c-strcase, remove malloca, strnlen.
56897         * tests/test-c-strcasestr.c (main): Enhance test.
56898         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
56899
56900 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56901
56902         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
56903         Use it in creating po/Makevars.
56904
56905 2008-01-15  Simon Josefsson  <simon@josefsson.org>
56906
56907         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
56908         Applications that requires it should initialize libgcrypt
56909         manually.
56910
56911 2008-01-16  Simon Josefsson  <simon@josefsson.org>
56912
56913         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
56914
56915 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
56916
56917         Fix problem with getdate on mingw32 reported by Simon Josefsson
56918         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
56919         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
56920         tzname", when deciding whether to declare tzname.
56921         * lib/strftime.c (tzname): Likewise.
56922
56923 2008-01-15  Bruno Haible  <bruno@clisp.org>
56924
56925         Work around a MacOS X 10.5 bug in frexpl().
56926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
56927         * doc/functions/frexpl.texi: Document the bug.
56928         Reported by Elias Pipping <pipping@gentoo.org>.
56929
56930 2008-01-14  Eric Blake  <ebb9@byu.net>
56931
56932         Touch up previous patch.
56933         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
56934         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
56935
56936         Convert strcasestr module to use Two-Way algorithm.
56937         * modules/strcasestr-simple: New module, based on the old
56938         strcasestr, but with Two-Way rather than KMP.
56939         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
56940         * lib/string.in.h (rpl_strcasestr): Declare.
56941         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
56942         performance.
56943         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
56944         * modules/string (Makefile.am): Support strcasestr.
56945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
56946         * modules/strcasestr-tests (Depends-on): Check for alarm.
56947         * tests/test-strcasestr.c: Augment test.
56948         * lib/str-two-way.h: Clean up stray macro.
56949         * NEWS: Document new module.
56950         * MODULES.html.sh (string handling): Likewise.
56951         * doc/functions/strcasestr.texi: New file.
56952         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
56953         here, since it is not a POSIX function.
56954
56955 2008-01-14  Colin Watson  <cjwatson@debian.org>
56956             Bruno Haible  <bruno@clisp.org>
56957
56958         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
56959         works fine; if not, set REPLACE_STRSIGNAL.
56960         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
56961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56962         REPLACE_STRSIGNAL.
56963         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
56964         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
56965         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
56966
56967 2008-01-14  Bruno Haible  <bruno@clisp.org>
56968
56969         * modules/strsignal (Include): Change to <string.h>.
56970
56971 2008-01-14  Colin Watson  <cjwatson@debian.org>
56972
56973         * modules/argp (Notice): Add a notice recommending to change
56974         XGETTEXT_OPTIONS.
56975         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
56976
56977 2008-01-13  Colin Watson  <cjwatson@debian.org>
56978
56979         * modules/strsignal-tests: New file.
56980         * tests/test-strsignal.c: New file.
56981
56982         * lib/strsignal.c: New file, from glibc with modifications.
56983         * lib/siglist.h: New file, from glibc with modifications.
56984         * lib/string.in.h (strsignal): New declaration.
56985         * m4/strsignal.m4: New file.
56986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56987         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
56988         * modules/strsignal: New file.
56989         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
56990         HAVE_DECL_STRSIGNAL.
56991
56992 2008-01-13  Bruno Haible  <bruno@clisp.org>
56993
56994         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
56995         locale encoding is not ASCII. Needed for OpenBSD 4.0.
56996         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56997         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56998
56999 2008-01-13  Bruno Haible  <bruno@clisp.org>
57000
57001         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57002         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57003         * lib/argp.h (__attribute__): Likewise.
57004         * lib/c-stack.c (__attribute__): Likewise.
57005         * lib/error.h (__attribute__): Likewise.
57006         * lib/fts.c (__attribute__): Likewise.
57007         * lib/openat.h (__attribute__): Likewise.
57008         * lib/stdio.in.h (__attribute__): Likewise.
57009         * lib/string.in.h (__attribute__): Likewise.
57010         * lib/utimens.c (__attribute__): Likewise.
57011         * lib/vasnprintf.h (__attribute__): Likewise.
57012         * lib/xalloc.h (__attribute__): Likewise.
57013         * lib/xprintf.h (__attribute__): Likewise.
57014         * lib/xstrtol.h (__attribute__): Likewise.
57015         * lib/xvasprintf.h (__attribute__): Likewise.
57016
57017 2008-01-12  Bruno Haible  <bruno@clisp.org>
57018
57019         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57020         * doc/glibc-headers/a.out.texi: New file.
57021         * doc/glibc-headers/aliases.texi: New file.
57022         * doc/glibc-headers/alloca.texi: New file.
57023         * doc/glibc-headers/ar.texi: New file.
57024         * doc/glibc-headers/argp.texi: New file.
57025         * doc/glibc-headers/argz.texi: New file.
57026         * doc/glibc-headers/byteswap.texi: New file.
57027         * doc/glibc-headers/crypt.texi: New file.
57028         * doc/glibc-headers/endian.texi: New file.
57029         * doc/glibc-headers/envz.texi: New file.
57030         * doc/glibc-headers/err.texi: New file.
57031         * doc/glibc-headers/error.texi: New file.
57032         * doc/glibc-headers/execinfo.texi: New file.
57033         * doc/glibc-headers/fpu_control.texi: New file.
57034         * doc/glibc-headers/fstab.texi: New file.
57035         * doc/glibc-headers/fts.texi: New file.
57036         * doc/glibc-headers/getopt.texi: New file.
57037         * doc/glibc-headers/ieee754.texi: New file.
57038         * doc/glibc-headers/ifaddrs.texi: New file.
57039         * doc/glibc-headers/libintl.texi: New file.
57040         * doc/glibc-headers/mcheck.texi: New file.
57041         * doc/glibc-headers/mntent.texi: New file.
57042         * doc/glibc-headers/obstack.texi: New file.
57043         * doc/glibc-headers/paths.texi: New file.
57044         * doc/glibc-headers/printf.texi: New file.
57045         * doc/glibc-headers/pty.texi: New file.
57046         * doc/glibc-headers/resolv.texi: New file.
57047         * doc/glibc-headers/shadow.texi: New file.
57048         * doc/glibc-headers/sysexits.texi: New file.
57049         * doc/glibc-headers/ttyent.texi: New file.
57050
57051 2008-01-12  Jim Meyering  <meyering@redhat.com>
57052
57053         announce-gen: emit Gnulib's git-based version string.
57054         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57055         New option --gnulib-version=V, where V is expected to be
57056         the output of running git describe in the gnulib directory.
57057         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57058         not useful, and plan to stop publishing an xdelta file with each
57059         coreutils release.
57060
57061         * build-aux/announce-gen: Also check for lzma-compressed files.
57062
57063 2008-01-11  Bruno Haible  <bruno@clisp.org>
57064
57065         * tests/test-memmem.c (main): Increase maximum allowed time.
57066         * tests/test-strstr.c (main): Likewise.
57067
57068 2008-01-11  Bruno Haible  <bruno@clisp.org>
57069
57070         * doc/functions/memmem.texi: Add more precisions about platforms.
57071         * doc/functions/strstr.texi: Likewise.
57072
57073 2008-01-10  Eric Blake  <ebb9@byu.net>
57074
57075         * m4/strstr.m4: Delete cruft from copy-n-paste.
57076         Reported by Bruno Haible.
57077
57078 2008-01-10  Bruno Haible  <bruno@clisp.org>
57079
57080         Make c-strstr rely on strstr.
57081         * lib/c-strstr.c: Don't include str-kmp.h.
57082         (c_strstr): Define in terms of strstr.
57083         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57084         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57085
57086 2008-01-10  Bruno Haible  <bruno@clisp.org>
57087
57088         * doc/gnulib.texi (String Functions in C Locale): New section.
57089         * doc/c-ctype.texi: New file.
57090         * doc/c-strcase.texi: New file.
57091         * doc/c-strcaseeq.texi: New file.
57092         * doc/c-strcasestr.texi: New file.
57093         * doc/c-strstr.texi: New file.
57094         * doc/c-strtod.texi: New file.
57095         * doc/c-strtold.texi: New file.
57096
57097 2008-01-10  Eric Blake  <ebb9@byu.net>
57098
57099         * lib/relocatable.h: Fix a comment.
57100
57101 2008-01-10  Eric Blake  <ebb9@byu.net>
57102
57103         Share two-way algorithm.
57104         * lib/str-two-way.h: New file, merged from...
57105         * lib/memmem.c: ...here...
57106         * lib/strstr.c: ...and here.
57107         * modules/memmem (Files): Use it.
57108         * modules/strstr (Files): Likewise.
57109
57110         Avoid quadratic strstr implementations.
57111         * lib/strstr.c: New file.
57112         * m4/strstr.m4: Likewise.
57113         * modules/strstr: Likewise.
57114         * modules/strstr-tests: Likewise.
57115         * tests/test-strstr.c: Likewise.
57116         * lib/string.in.h (rpl_strstr): Declare.
57117         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57119         * modules/string (Makefile.am): Likewise.
57120         * MODULES.html.sh (string handling): Mention new module.
57121         * doc/functions/strstr.texi (strstr): Document the bug.
57122
57123 2008-01-10  Bruno Haible  <bruno@clisp.org>
57124
57125         * lib/relocatable.h (relocate): State whether result is freshly
57126         allocated or not.
57127         * lib/relocatable.c (relocate): Return a freshly allocated string
57128         instead of a pointer to a privately held string.
57129         Reported by Sylvain Beucler <beuc@gnu.org>.
57130
57131 2008-01-10  Colin Watson  <cjwatson@debian.org>
57132
57133         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57134         s/S_ISNLK/S_ISLNK/.
57135
57136 2008-01-09  Bruno Haible  <bruno@clisp.org>
57137
57138         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57139         and other files.
57140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57141         if it's only a guess.
57142         * modules/memmem: Simplify by depending on memmem-simple.
57143
57144 2008-01-09  Bruno Haible  <bruno@clisp.org>
57145
57146         Work around OpenBSD 4.0 tdelete() bug.
57147         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57148         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57149         macros and don't redefine the enum values.
57150         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57151         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57152         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57153
57154 2008-01-09  Bruno Haible  <bruno@clisp.org>
57155
57156         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57157         (main): Don't perform the tests if setlocale did not install a UTF-8
57158         locale. Needed on OpenBSD 4.0.
57159         * modules/wcwidth-tests (Depends-on): Add localcharset.
57160
57161 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57162
57163         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57164         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57165         * NEWS: announce this.
57166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57167
57168 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57169         and Eric Blake  <ebb9@byu.net>
57170
57171         Add memmem-simple module.
57172         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57173         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57174         * modules/memmem-simple: New file.
57175         * modules/memmem (Description): Tweak.
57176         * MODULES.html.sh (string handling): Mention new module.
57177         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57178         addressed by memmem-simple.
57179         * NEWS: Document the difference.
57180
57181 2008-01-09  Eric Blake  <ebb9@byu.net>
57182
57183         Give gcc some memmem optimization hints.
57184         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57185         (strcasestr): Declare as pure.
57186         * modules/memmem (Maintainer): Claim my implementation.
57187
57188 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57189
57190         Support AIX 6.1 and higher.
57191         * build-aux/config.libpath: Likewise.
57192         * build-aux/config.rpath: Likewise.
57193
57194 2008-01-08  Jim Meyering  <meyering@redhat.com>
57195             Bruno Haible  <bruno@clisp.org>
57196
57197         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57198         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57199         Reported by Peter Fales in
57200         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57201
57202 2008-01-08  Bruno Haible  <bruno@clisp.org>
57203
57204         * modules/unictype/category-of (Depends-on): Add
57205         unictype/category-none.
57206         * modules/unictype/category-and-tests (Depends-on): Add
57207         unictype/category-{L,N,Lu,Nd}.
57208         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57209         * modules/unictype/category-or-tests (Depends-on): Add
57210         unictype/category-{L,N}.
57211         * modules/unictype/category-name-tests (Depends-on): Add
57212         unictype/category-{Z,Nl}.
57213         Reported by Simon Josefsson.
57214
57215 2008-01-08  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57218         convention better.
57219         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57220         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57221         Reported by Peter Miller <millerp@canb.auug.org.au>.
57222
57223 2008-01-08  Eric Blake  <ebb9@byu.net>
57224
57225         Rewrite memmem to guarantee linear complexity without malloc.
57226         * lib/memmem.c (memmem): Use Two-Way rather than
57227         Knuth-Morris-Pratt, to allow O(1) space usage.
57228         (critical_factorization, two_way_short_needle)
57229         (two_way_long_needle): New functions.
57230         (knuth_morris_pratt): Delete.
57231         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57232         Add stdint.
57233         * tests/test-memmem.c (main): Add tests for periodic needle and
57234         sublinear performance.
57235         * doc/functions/memmem.texi (memmem): Document other deficiencies
57236         in cygwin and older glibc.
57237
57238 2008-01-08  Bruno Haible  <bruno@clisp.org>
57239
57240         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57241         augmentation.
57242
57243 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57244
57245         Add a configure time option: --disable-acl.
57246         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57247         AC_ARG_ENABLE(acl).
57248
57249 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57250
57251         * tests/test-localename.c: Don't include obsolete "setenv.h".
57252
57253         * modules/localename-tests (Depends-on): Need unsetenv.
57254
57255 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57256
57257         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57258
57259 2008-01-06  Colin Watson  <cjwatson@debian.org>
57260
57261         * users.txt: Add man-db.
57262
57263 2008-01-07  Bruno Haible  <bruno@clisp.org>
57264
57265         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57266         previous section name.
57267
57268 2008-01-07  Bruno Haible  <bruno@clisp.org>
57269
57270         * lib/progname.c (set_program_name): Don't strip off a leading
57271         "lt-" prefix outside a .libs directory.
57272         Suggested by Paul Eggert.
57273
57274 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57275             Bruno Haible  <bruno@clisp.org>
57276
57277         Improve memory cleanup in 'relocatable' module.
57278         * lib/relocatable.h (compute_curr_prefix): Change return type to
57279         'char *'.
57280         * lib/relocatable.c (compute_curr_prefix): Change return type to
57281         'char *'. Free curr_installdir after use.
57282         (relocate): Free curr_prefix_better after use.
57283         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57284
57285 2008-01-01  Bruno Haible  <bruno@clisp.org>
57286
57287         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57288         failure on older glibc systems.
57289         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57290
57291 2008-01-05  Eric Blake  <ebb9@byu.net>
57292
57293         Avoid quadratic system memmem.
57294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57295         Reported by Ralf Wildenhues.
57296
57297         Fix memmem test for mingw.
57298         * modules/memmem-tests (configure.ac): Check for alarm.
57299         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57300         it.
57301         * doc/functions/memmem.texi: New file.
57302         * doc/gnulib.texi (Function Substitutes): Add memmem.
57303         Reported by Bruno Haible.
57304
57305 2008-01-04  Bruno Haible  <bruno@clisp.org>
57306
57307         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57308         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57309         gl_HEADER_STRING_H_DEFAULTS.
57310
57311 2008-01-04  Eric Blake  <ebb9@byu.net>
57312
57313         Shorten duration of memmem test.
57314         * tests/test-memmem.c (main): Use alarm to declare failure if test
57315         is taking too long.
57316         Reported by Ralf Wildenhues.
57317
57318 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57319
57320         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57321         string, needed by strerror.
57322
57323 2008-01-03  Colin Watson  <cjwatson@debian.org>
57324             Bruno Haible  <bruno@clisp.org>
57325
57326         * doc/gnulib-tool.texi (Localization): New section.
57327
57328 2008-01-02  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57331         variables to 'unsigned char *' type.
57332         Reported by Paul Eggert.
57333
57334 2008-01-02  Jim Meyering  <jim@meyering.net>
57335
57336         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57337
57338 2007-12-31  Jim Meyering  <jim@meyering.net>
57339
57340         Avoid use of private FTS type name.
57341         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57342
57343 2007-12-30  Karl Berry  <karl@gnu.org>
57344
57345         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57346         work around defect in Texinfo and/or the standalone Info browser.
57347
57348 2007-12-30  Bruno Haible  <bruno@clisp.org>
57349
57350         Unify 5 copies of the KMP code.
57351         * lib/str-kmp.h: New file.
57352         * lib/c-strcasestr.c: Include str-kmp.h.
57353         (knuth_morris_pratt): Remove function.
57354         (c_strcasestr): Update.
57355         * lib/c-strstr.c: Include str-kmp.h.
57356         (knuth_morris_pratt): Remove function.
57357         (c_strcasestr): Update.
57358         * lib/mbscasestr.c: Include str-kmp.h.
57359         (knuth_morris_pratt_unibyte): Remove function.
57360         * lib/mbsstr.c: Include str-kmp.h.
57361         (knuth_morris_pratt_unibyte): Remove function.
57362         * lib/strcasestr.c: Include str-kmp.h.
57363         (knuth_morris_pratt): Remove function.
57364         (strcasestr): Update.
57365         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57366         * modules/c-strstr (Files): Likewise.
57367         * modules/mbscasestr (Files): Likewise.
57368         * modules/mbsstr (Files): Likewise.
57369         * modules/strcasestr (Files): Likewise.
57370         Suggested by Paul Eggert.
57371
57372 2007-12-30  Bruno Haible  <bruno@clisp.org>
57373
57374         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57375         defined.
57376
57377 2007-12-30  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/xmalloca.h: Include xalloc.h.
57380         (xnmalloca): New macro.
57381
57382 2007-12-30  Bruno Haible  <bruno@clisp.org>
57383
57384         * lib/malloca.h (nmalloca): New macro.
57385         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57386         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57387         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57388         knuth_morris_pratt_multibyte): Likewise.
57389         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57390         knuth_morris_pratt_multibyte): Likewise.
57391         * lib/memmem.c (knuth_morris_pratt): Likewise.
57392         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57393
57394 2007-12-25  Bruno Haible  <bruno@clisp.org>
57395
57396         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57397         * lib/glob.c: Don't include openat.h.
57398         (link_exists2_p): Add back the code that deals with the
57399         !GLOB_ALTDIRFUNC case.
57400         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57401         let it do the filename concatenation.
57402         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57403         * modules/glob (Depends-on): Remove openat.
57404
57405 2007-12-31  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/dirfd (License): Change to LGPLv2+.
57408         Approved by Jim Meyering.
57409
57410 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57411
57412         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57413         when multiplying M by sizeof (size_t).
57414
57415 2007-12-10  Martin Lambers  <marlam@marlam.de>
57416
57417         Override getpagesize on mingw.
57418         * lib/getpagesize.c: New file.
57419         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57420         * modules/getpagesize (Files): Add lib/getpagesize.c.
57421         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57423         REPLACE_GETPAGESIZE.
57424         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57425
57426 2007-12-25  Bruno Haible  <bruno@clisp.org>
57427
57428         * modules/localcharset (Notice): New field.
57429         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57430         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57431
57432 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57433             Bruno Haible  <bruno@clisp.org>
57434
57435         Avoid using the syntax symbol() in formatted documentation.
57436         * MODULES.html.sh (func_module): When replacing symbol() with a
57437         hyperlink, remove the parentheses. Show an error if some remain.
57438         Recognize and render the '...' syntax.
57439         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57440         Rework. Add paragraph about GCC's inlining.
57441         * doc/alloca.texi: Likewise.
57442         * doc/error.texi: Remove parentheses from symbol reference.
57443         * doc/gnulib-intro.texi: Likewise.
57444         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57445         * modules/fnmatch (Description): Reword to say "the ... function".
57446         * modules/full-read (Description): Likewise.
57447         * modules/full-write (Description): Likewise.
57448         * modules/safe-read (Description): Likewise.
57449         * modules/safe-write (Description): Likewise.
57450         * modules/strchrnul (Description): Likewise.
57451         * modules/trim (Description): Likewise.
57452         * modules/error (Description): Remove parentheses from symbol
57453         references.
57454         * modules/verror (Description): Likewise.
57455         Reported by Karl Berry.
57456
57457 2007-12-25  Bruno Haible  <bruno@clisp.org>
57458
57459         Fixup after 2007-10-16 commit.
57460         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57461
57462 2007-12-24  Bruno Haible  <bruno@clisp.org>
57463
57464         Make --enable-relocatable work with DESTDIR.
57465         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57466         to compute installdir from destprog.
57467         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57468         also set the RELOC_DESTDIR variable.
57469         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57470
57471 2007-12-24  Bruno Haible  <bruno@clisp.org>
57472
57473         Fix link error due to xalloc_die().
57474         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57475         of xreadlink.
57476         * lib/relocwrapper.c: Update comments.
57477         * build-aux/install-reloc: Remove xreadlink.c from file list.
57478         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57479         xreadlink.c.
57480         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57481
57482 2007-12-24  Bruno Haible  <bruno@clisp.org>
57483
57484         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57485         * lib/setenv.h: Remove file.
57486         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57487         lib/setenv.h.
57488         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57489         (Depends-on): Add stdlib.
57490         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57491         gl_FUNC_UNSETENV.
57492         (Include): Replace setenv.h with <stdlib.h>.
57493         * modules/unsetenv: New file.
57494         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57495         * lib/unsetenv.c: Include <stdlib.h> first.
57496         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57497         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57498         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57499         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57500         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57501         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57503         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57504         * doc/functions/unsetenv.texi: Update.
57505         * modules/xsetenv (Depends-on): Add unsetenv.
57506         * modules/getdate (Depends-on): Likewise.
57507         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57508         * lib/xsetenv.c: Don't include setenv.h.
57509         * lib/getdate.y: Likewise.
57510         * lib/relocwrapper.c: Likewise.
57511         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57512         (Depends-on): Add stdlib.
57513         * NEWS: Mention the changes.
57514         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57515
57516 2007-12-23  Bruno Haible  <bruno@clisp.org>
57517
57518         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57519         indentation.
57520
57521 2007-12-23  Bruno Haible  <bruno@clisp.org>
57522
57523         * lib/c-strcasestr.c: Add more comments.
57524         * lib/c-strstr.c: Likewise.
57525         * lib/mbscasestr.c: Likewise.
57526         * lib/mbsstr.c: Likewise.
57527         * lib/strcasestr.c: Likewise.
57528         * lib/memmem.c: Likewise.
57529
57530 2007-12-23  Bruno Haible  <bruno@clisp.org>
57531
57532         * tests/test-memmem.c: Include <string.h> first.
57533
57534 2007-12-22  Bruno Haible  <bruno@clisp.org>
57535
57536         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57537         the contents of $testsbase.
57538         Reported by Ralf Wildenhues.
57539
57540 2007-12-22  Bruno Haible  <bruno@clisp.org>
57541
57542         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57543         two variables local_ldadd_before, local_ldadd_last.
57544
57545 2007-12-20  Eric Blake  <ebb9@byu.net>
57546
57547         Work around circular library issue when cross-compiling.
57548         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57549         that progname.o does not need to pull in rpl_memcmp.
57550
57551 2007-12-19  Eric Blake  <ebb9@byu.net>
57552
57553         Fix memmem to avoid O(n^2) worst-case complexity.
57554         * lib/memmem.c (knuth_morris_pratt): New function.
57555         (memmem): Use it if first few naive iterations fail.
57556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57557         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57558         * modules/memchr (License): Likewise.
57559         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57560         malloca.
57561         * tests/test-memmem.c: Rewrite, borrowing ideas from
57562         test-mbsstr1.c; the old version wouldn't even compile!
57563         * modules/memmem-tests: New file.
57564         * lib/string.in.h (rpl_memmem): Add declaration.
57565         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57567         REPLACE_MEMMEM.
57568
57569 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57570
57571         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57572         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57573         before any system include files, and undef after them all.  This
57574         should fix a problem on VMS reported by John E. Malmberg in
57575         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57576
57577 2007-12-17  Eric Blake  <ebb9@byu.net>
57578
57579         Revert addition of verify, for BSD/OS.
57580         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57581         can't handle large files, for the sake of obsolete platforms.
57582         * modules/fseeko (Depends-on): Remove verify.
57583         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57584         * doc/functions/ftello.texi (ftello): Likewise.
57585         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57586         Reported by Larry Jones.
57587
57588 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57589
57590         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57591         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57592
57593 2007-12-17  Jim Meyering  <meyering@redhat.com>
57594
57595         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57596         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57597         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57598         * modules/getcwd (Depends-on): Add openat.
57599         Reported by Petr Salinger.
57600
57601 2007-12-17  Bruno Haible  <bruno@clisp.org>
57602
57603         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57604         avoid a segmentation fault of the configure test on x86_64 systems.
57605
57606 2007-12-15  Jim Meyering  <meyering@redhat.com>
57607
57608         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57609
57610 2007-12-13  Eric Blake  <ebb9@byu.net>
57611
57612         Another fseek test.
57613         * tests/test-fseek.c (main): Also test ungetc handling.
57614         * tests/test-fseeko.c (main): Likewise.
57615         * modules/fseeko (Depends-on): Add verify.
57616         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57617         large.
57618         Reported by Larry Jones.
57619
57620         Fix fseeko on mingw.
57621         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57622         seek.
57623
57624         Beef up fseek tests.
57625         * tests/test-fseek.c (main): Also test eof handling.
57626         * tests/test-fseeko.c (main): Likewise.
57627         Reported by Larry Jones.
57628
57629 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57630
57631         Fix fseeko on BSD-based platforms.
57632         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57633         successful seek.
57634
57635 2007-12-12  Eric Blake  <ebb9@byu.net>
57636
57637         Allow circular dependency of separate libtests.a
57638         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57639         when use_libtests.
57640
57641 2007-12-11  Eric Blake  <ebb9@byu.net>
57642
57643         Fix bug with -0.0L in previous patch.
57644         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57645         * tests/test-isnan.c (main): Also test on zeroes.
57646         * tests/test-isnanf.c (main): Likewise.
57647         * tests/test-isnanl.h (main): Likewise.
57648
57649         Detect pseudo-denormals on x86 even when cross-compiling.
57650         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57651         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57652         invalid bit patterns that happen to satisfy ==.
57653
57654         Avoid link failures with separate libtests.a.
57655         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57656         last, to satisfy circular dependencies.
57657
57658 2007-12-11  Eric Blake  <ebb9@byu.net>
57659         and Bruno Haible  <bruno@clisp.org>
57660
57661         Fix OpenBSD 4.0 <float.h> handling of long double.
57662         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57663         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57664         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57665
57666 2007-12-11  Jim Meyering  <meyering@redhat.com>
57667
57668         * users.txt: Add libvirt.
57669
57670         Support versions of autoconf prior to 2.59c.
57671         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57672         if it is not already defined.
57673
57674 2007-12-09  Bruno Haible  <bruno@clisp.org>
57675
57676         Let 'gnulib-tool --import' collect sources needed for the tests in
57677         tests/ rather than in lib/.
57678         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57679         argument. If true, add rules to generate libtests.a, and put libtests.a
57680         into $(LDADD). Consider source files in subdirectories and set
57681         uses_subdirs.
57682         (func_emit_initmacro_start, func_emit_initmacro_end,
57683         func_emit_initmacro_done): Pass all arguments explicitly.
57684         (func_import): Determine two module lists main_modules,
57685         testsrelated_modules. Determine use_libtests. Determine two variables
57686         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57687         instead of just sed_transform_lib_file. Determine two variables
57688         main_files and testsrelated_files. Compute 'files' as the union of
57689         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57690         func_add_or_update. In the generated gnulib-comp.m4, collect the
57691         object files for tests/ in different variables than those for lib/.
57692         Substitute LIBTESTS_LIBDEPS.
57693         (func_create_testdir): Combine the uses_subdirs results from
57694         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57695
57696 2007-12-09  Bruno Haible  <bruno@clisp.org>
57697
57698         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57699         the build-aux directory.
57700
57701 2007-12-09  Bruno Haible  <bruno@clisp.org>
57702
57703         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57704         introduced on 2006-09-09.
57705
57706 2007-12-07  Jim Meyering  <meyering@redhat.com>
57707
57708         Let these macros work also with autoconf-2.59.
57709         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57710         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57712
57713 2007-12-06  Jim Meyering  <meyering@redhat.com>
57714
57715         Avoid a configure-time syntax error in gl_FUNC_ACL.
57716         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57717         function in each branch, before testing the cache variable.
57718
57719 2007-12-04  Eric Blake  <ebb9@byu.net>
57720
57721         Make scripts executable.
57722         * build-aux/config.guess: Add execute permissions.
57723         * build-aux/config.sub: Likewise.
57724         * build-aux/gendocs.sh: Likewise.
57725
57726         Fix frexp on mingw.
57727         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57728         cross-compiling.
57729         * doc/functions/frexp.texi (frexp): Document the bug.
57730
57731         Make cygwin fseeko check more reliable.
57732         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57733         version numbers, rather than unrelated feature check.
57734         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57735         * doc/functions/ftello.texi (ftello): Likewise.
57736         Reported by Bruno Haible.
57737
57738         * m4/strerror.m4: Bump version number.
57739
57740 2007-12-03  Bruno Haible  <bruno@clisp.org>
57741
57742         * doc/functions/mprotect.texi: Mention the mingw problem.
57743
57744 2007-12-03  Eric Blake  <ebb9@byu.net>
57745
57746         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57747         REPLACE_STRERROR is initialized before this macro.
57748
57749 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57752         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57753         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57754         put -lsec in even for programs other than 'ls'.  This fixes a problem
57755         for gettext reported by Bruno Haible in
57756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57757         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57758         Add support for Solaris 10.  This isn't efficient, but should get the
57759         job done for now.
57760
57761 2007-12-03  James Youngman  <jay@gnu.org>
57762
57763         * doc/regexprops-generic.texi: change "an close-group" to "a
57764         close-group" and "illegal" to "not allowed".
57765
57766 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57767
57768         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57769         pr_byname.h. Needed for the rare case when the maintainer has done
57770         "make maintainer-clean" in the source directory and then attempts a
57771         build outside the source directory.
57772         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57773         scripts_byname.h.
57774
57775 2007-12-02  Martin Lambers <marlam@marlam.de>
57776             Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/getpagesize.h: Remove file.
57779         * lib/unistd.in.h: Include declaration of getpagesize here.
57780         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57781         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57782         HAVE_SYS_PARAM_H.
57783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57784         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57785         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57786         (Depends-on): Add unistd.
57787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57788         (Include): Use <unistd.h> instead of getpagesize.h.
57789         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57790         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57791         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57792         gl_GETPAGESIZE invocation, already handled by module dependency.
57793         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57794
57795 2007-12-02  Bruno Haible  <bruno@clisp.org>
57796
57797         * modules/strings-tests: New file.
57798         * tests/test-strings.c: New file.
57799
57800         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57801         * lib/strings.in.h: New file.
57802         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57803         * m4/strings_h.m4: New file.
57804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57805         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57806         * modules/strings: New file.
57807         * modules/string (Makefile.am): Update.
57808         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57809         Reported by Karl Berry.
57810
57811 2007-12-01  Eric Blake  <ebb9@byu.net>
57812
57813         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57814         accomodate fix in cygwin 1.5.25.
57815
57816 2007-12-01  Jim Meyering  <meyering@redhat.com>
57817
57818         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57819         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57820         that would inhibit utf8-optimization of a regexp containing line-
57821         or buffer-anchors, e.g., `^', `$'.
57822
57823 2007-11-30  Bruno Haible  <bruno@clisp.org>
57824
57825         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57826         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57827         glthread_recursive_lock_init.
57828         * lib/lock.c (glthread_recursive_lock_init)
57829         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57830         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57831
57832 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57833
57834         New function qset_acl, like set_acl but with syscall semantics.
57835         * lib/acl.h (qset_acl): New decl.
57836         * lib/acl.c (qset_acl): New function.
57837         (set_acl): Use new function.  Use more-consistent diagnostics.
57838
57839 2007-11-28  Jim Meyering  <meyering@redhat.com>
57840
57841         * modules/physmem (License): Change from GPL to LGPLv2+.
57842
57843 2007-11-26  Bruno Haible  <bruno@clisp.org>
57844
57845         * lib/vasnprintf.c (decode_long_double): Don't abort if the
57846         'long double' type has excess precision.
57847         Reported by Jim Meyering in
57848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
57849
57850 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57851
57852         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
57853         Sync from <http://gnu.org/licenses>.
57854         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
57855         with license text from same location.
57856         * doc/maintain.texi, doc/standards.texi:  Sync from
57857         <http://savannah.gnu.org/projects/gnustandards>.
57858
57859 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
57860         and Jim Meyering  <meyering@redhat.com>
57861
57862         Adjust getdate' grammar to accept a slightly more regular language.
57863         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
57864         Before, the former was rejected.
57865         * lib/getdate.y (digits_to_date_time): New function, factored
57866         out of ...
57867         (number): ...here.  Just call digits_to_date_time.
57868         (hybrid): New non-terminal to handle an <unsigned number,
57869         signed relative offset> sequence consistently.
57870
57871 2007-11-18  Jim Meyering  <meyering@redhat.com>
57872
57873         Pull my changes from coreutils:
57874         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
57875         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
57876         use of $gnulib_tool_option_extras, so that it's separated from the
57877         preceding argument.
57878
57879         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
57880         * build-aux/bootstrap (cp_mark_as_generated): Create any required
57881         parent destination directories before copying a file into place.
57882
57883 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57884
57885         bootstrap: work also with 4-argument variant of AC_INIT
57886         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
57887
57888 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57889
57890         Port test-getaddrinfo to Solaris.
57891         Problem reported by Bruno Haible in
57892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
57893         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
57894         explanation of setting 'hints'.
57895         Don't reject an implementation merely because it returns EAI_SERVICE.
57896         (EAI_SERVICE): Define to 0 if not defined.
57897
57898 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         The license of gnu-make and posix-shell is now "GPLed build tool".
57901         * modules/gnu-make (License): Likewise.
57902         * modules/posix-shell (License): Likewise.
57903
57904         New module posix-shell, for determining a POSIX shell
57905         or perhaps something that is close enough to a POSIX shell.
57906         * m4/posix-shell.m4: New file.
57907         * modules/posix-shell: New file.
57908
57909         * MODULES.html.sh: Mention new module.
57910
57911         New module gnu-make, for determining whether we're using GNU Make.
57912         * m4/gnu-make.m4: New file.
57913         * modules/gnu-make: New file.
57914         * MODULES.html.sh: Mention new module.
57915
57916 2007-11-14  Jim Meyering  <meyering@redhat.com>
57917
57918         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
57919         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
57920         use this macro to create a function _definition_.
57921         Remove useless "#undef ARGMATCH_DIE".
57922
57923 2007-11-14  Bruno Haible  <bruno@clisp.org>
57924
57925         * lib/config.charset: Update for OpenBSD 4.1.
57926         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
57927
57928 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
57929
57930         Document 64-bit #if problems in stdint.texi.
57931         * doc/headers/stdint.texi (stdint.h): Mention problems with
57932         64-bit-#if, and how to work around them.
57933
57934         Don't insist on 'long long int' support in the preprocessor.  It
57935         breaks too many things.  For example, PRIdMAX still uses a 'long
57936         long int' format with the latest Sun compiler, even though
57937         HAVE_LONG_LONG_INT isn't defined due to that compiler's
57938         preprocessor problem.  This causes the latest coreutils to dump
57939         core on Solaris 10 sparc with the Sun C compiler.
57940         Instead, fix the 2007-10-16 problem in a different way, by evaluating
57941         the troublesome expressions at configure-time, not at #if-time.
57942         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
57943         preprocessor.
57944         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
57945         compile-time C checks, done at 'configure'-time.
57946         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
57947         * modules/inttypes (Makefile): Substitute the new symbols that
57948         gl_INTTYPES_H now generates.
57949         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
57950
57951 2007-11-12  Bruno Haible  <bruno@clisp.org>
57952
57953         Tests for Unicode character classification functions.
57954
57955         * modules/unictype/bidicategory-byname-tests: New file.
57956         * modules/unictype/bidicategory-name-tests: New file.
57957         * modules/unictype/bidicategory-of-tests: New file.
57958         * modules/unictype/bidicategory-test-tests: New file.
57959         * modules/unictype/block-list-tests: New file.
57960         * modules/unictype/block-of-tests: New file.
57961         * modules/unictype/block-test-tests: New file.
57962         * modules/unictype/category-C-tests: New file.
57963         * modules/unictype/category-Cc-tests: New file.
57964         * modules/unictype/category-Cf-tests: New file.
57965         * modules/unictype/category-Cn-tests: New file.
57966         * modules/unictype/category-Co-tests: New file.
57967         * modules/unictype/category-Cs-tests: New file.
57968         * modules/unictype/category-L-tests: New file.
57969         * modules/unictype/category-Ll-tests: New file.
57970         * modules/unictype/category-Lm-tests: New file.
57971         * modules/unictype/category-Lo-tests: New file.
57972         * modules/unictype/category-Lt-tests: New file.
57973         * modules/unictype/category-Lu-tests: New file.
57974         * modules/unictype/category-M-tests: New file.
57975         * modules/unictype/category-Mc-tests: New file.
57976         * modules/unictype/category-Me-tests: New file.
57977         * modules/unictype/category-Mn-tests: New file.
57978         * modules/unictype/category-N-tests: New file.
57979         * modules/unictype/category-Nd-tests: New file.
57980         * modules/unictype/category-Nl-tests: New file.
57981         * modules/unictype/category-No-tests: New file.
57982         * modules/unictype/category-P-tests: New file.
57983         * modules/unictype/category-Pc-tests: New file.
57984         * modules/unictype/category-Pd-tests: New file.
57985         * modules/unictype/category-Pe-tests: New file.
57986         * modules/unictype/category-Pf-tests: New file.
57987         * modules/unictype/category-Pi-tests: New file.
57988         * modules/unictype/category-Po-tests: New file.
57989         * modules/unictype/category-Ps-tests: New file.
57990         * modules/unictype/category-S-tests: New file.
57991         * modules/unictype/category-Sc-tests: New file.
57992         * modules/unictype/category-Sk-tests: New file.
57993         * modules/unictype/category-Sm-tests: New file.
57994         * modules/unictype/category-So-tests: New file.
57995         * modules/unictype/category-Z-tests: New file.
57996         * modules/unictype/category-Zl-tests: New file.
57997         * modules/unictype/category-Zp-tests: New file.
57998         * modules/unictype/category-Zs-tests: New file.
57999         * modules/unictype/category-and-not-tests: New file.
58000         * modules/unictype/category-and-tests: New file.
58001         * modules/unictype/category-byname-tests: New file.
58002         * modules/unictype/category-name-tests: New file.
58003         * modules/unictype/category-none-tests: New file.
58004         * modules/unictype/category-of-tests: New file.
58005         * modules/unictype/category-or-tests: New file.
58006         * modules/unictype/category-test-withtable-tests: New file.
58007         * modules/unictype/combining-class-tests: New file.
58008         * modules/unictype/ctype-alnum-tests: New file.
58009         * modules/unictype/ctype-alpha-tests: New file.
58010         * modules/unictype/ctype-blank-tests: New file.
58011         * modules/unictype/ctype-cntrl-tests: New file.
58012         * modules/unictype/ctype-digit-tests: New file.
58013         * modules/unictype/ctype-graph-tests: New file.
58014         * modules/unictype/ctype-lower-tests: New file.
58015         * modules/unictype/ctype-print-tests: New file.
58016         * modules/unictype/ctype-punct-tests: New file.
58017         * modules/unictype/ctype-space-tests: New file.
58018         * modules/unictype/ctype-upper-tests: New file.
58019         * modules/unictype/ctype-xdigit-tests: New file.
58020         * modules/unictype/decimal-digit-tests: New file.
58021         * modules/unictype/digit-tests: New file.
58022         * modules/unictype/mirror-tests: New file.
58023         * modules/unictype/numeric-tests: New file.
58024         * modules/unictype/property-alphabetic-tests: New file.
58025         * modules/unictype/property-ascii-hex-digit-tests: New file.
58026         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58027         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58028         * modules/unictype/property-bidi-block-separator-tests: New file.
58029         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58030         * modules/unictype/property-bidi-common-separator-tests: New file.
58031         * modules/unictype/property-bidi-control-tests: New file.
58032         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58033         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58034         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58035         * modules/unictype/property-bidi-european-digit-tests: New file.
58036         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58037         * modules/unictype/property-bidi-left-to-right-tests: New file.
58038         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58039         * modules/unictype/property-bidi-other-neutral-tests: New file.
58040         * modules/unictype/property-bidi-pdf-tests: New file.
58041         * modules/unictype/property-bidi-segment-separator-tests: New file.
58042         * modules/unictype/property-bidi-whitespace-tests: New file.
58043         * modules/unictype/property-byname-tests: New file.
58044         * modules/unictype/property-combining-tests: New file.
58045         * modules/unictype/property-composite-tests: New file.
58046         * modules/unictype/property-currency-symbol-tests: New file.
58047         * modules/unictype/property-dash-tests: New file.
58048         * modules/unictype/property-decimal-digit-tests: New file.
58049         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58050         * modules/unictype/property-deprecated-tests: New file.
58051         * modules/unictype/property-diacritic-tests: New file.
58052         * modules/unictype/property-extender-tests: New file.
58053         * modules/unictype/property-format-control-tests: New file.
58054         * modules/unictype/property-grapheme-base-tests: New file.
58055         * modules/unictype/property-grapheme-extend-tests: New file.
58056         * modules/unictype/property-grapheme-link-tests: New file.
58057         * modules/unictype/property-hex-digit-tests: New file.
58058         * modules/unictype/property-hyphen-tests: New file.
58059         * modules/unictype/property-id-continue-tests: New file.
58060         * modules/unictype/property-id-start-tests: New file.
58061         * modules/unictype/property-ideographic-tests: New file.
58062         * modules/unictype/property-ids-binary-operator-tests: New file.
58063         * modules/unictype/property-ids-trinary-operator-tests: New file.
58064         * modules/unictype/property-ignorable-control-tests: New file.
58065         * modules/unictype/property-iso-control-tests: New file.
58066         * modules/unictype/property-join-control-tests: New file.
58067         * modules/unictype/property-left-of-pair-tests: New file.
58068         * modules/unictype/property-line-separator-tests: New file.
58069         * modules/unictype/property-logical-order-exception-tests: New file.
58070         * modules/unictype/property-lowercase-tests: New file.
58071         * modules/unictype/property-math-tests: New file.
58072         * modules/unictype/property-non-break-tests: New file.
58073         * modules/unictype/property-not-a-character-tests: New file.
58074         * modules/unictype/property-numeric-tests: New file.
58075         * modules/unictype/property-other-alphabetic-tests: New file.
58076         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58077         * modules/unictype/property-other-grapheme-extend-tests: New file.
58078         * modules/unictype/property-other-id-continue-tests: New file.
58079         * modules/unictype/property-other-id-start-tests: New file.
58080         * modules/unictype/property-other-lowercase-tests: New file.
58081         * modules/unictype/property-other-math-tests: New file.
58082         * modules/unictype/property-other-uppercase-tests: New file.
58083         * modules/unictype/property-paired-punctuation-tests: New file.
58084         * modules/unictype/property-paragraph-separator-tests: New file.
58085         * modules/unictype/property-pattern-syntax-tests: New file.
58086         * modules/unictype/property-pattern-white-space-tests: New file.
58087         * modules/unictype/property-private-use-tests: New file.
58088         * modules/unictype/property-punctuation-tests: New file.
58089         * modules/unictype/property-quotation-mark-tests: New file.
58090         * modules/unictype/property-radical-tests: New file.
58091         * modules/unictype/property-sentence-terminal-tests: New file.
58092         * modules/unictype/property-soft-dotted-tests: New file.
58093         * modules/unictype/property-space-tests: New file.
58094         * modules/unictype/property-terminal-punctuation-tests: New file.
58095         * modules/unictype/property-test-tests: New file.
58096         * modules/unictype/property-titlecase-tests: New file.
58097         * modules/unictype/property-unassigned-code-value-tests: New file.
58098         * modules/unictype/property-unified-ideograph-tests: New file.
58099         * modules/unictype/property-uppercase-tests: New file.
58100         * modules/unictype/property-variation-selector-tests: New file.
58101         * modules/unictype/property-white-space-tests: New file.
58102         * modules/unictype/property-xid-continue-tests: New file.
58103         * modules/unictype/property-xid-start-tests: New file.
58104         * modules/unictype/property-zero-width-tests: New file.
58105         * modules/unictype/scripts-tests: New file.
58106         * modules/unictype/syntax-c-ident-tests: New file.
58107         * modules/unictype/syntax-c-whitespace-tests: New file.
58108         * modules/unictype/syntax-java-ident-tests: New file.
58109         * modules/unictype/syntax-java-whitespace-tests: New file.
58110         * tests/unictype/test-bidi_byname.c: New file.
58111         * tests/unictype/test-bidi_name.c: New file.
58112         * tests/unictype/test-bidi_of.c: New file.
58113         * tests/unictype/test-bidi_test.c: New file.
58114         * tests/unictype/test-block_list.c: New file.
58115         * tests/unictype/test-block_of.c: New file.
58116         * tests/unictype/test-block_test.c: New file.
58117         * tests/unictype/test-categ_and.c: New file.
58118         * tests/unictype/test-categ_and_not.c: New file.
58119         * tests/unictype/test-categ_byname.c: New file.
58120         * tests/unictype/test-categ_name.c: New file.
58121         * tests/unictype/test-categ_none.c: New file.
58122         * tests/unictype/test-categ_of.c: New file.
58123         * tests/unictype/test-categ_or.c: New file.
58124         * tests/unictype/test-categ_test_withtable.c: New file.
58125         * tests/unictype/test-combining.c: New file.
58126         * tests/unictype/test-decdigit.c: New file.
58127         * tests/unictype/test-digit.c: New file.
58128         * tests/unictype/test-mirror.c: New file.
58129         * tests/unictype/test-numeric.c: New file.
58130         * tests/unictype/test-pr_byname.c: New file.
58131         * tests/unictype/test-pr_test.c: New file.
58132         * tests/unictype/test-predicate-part1.h: New file.
58133         * tests/unictype/test-predicate-part2.h: New file.
58134         * tests/unictype/test-scripts.c: New file.
58135         * tests/unictype/test-sy_c_ident.c: New file.
58136         * tests/unictype/test-sy_java_ident.c: New file.
58137
58138         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58139         for Unicode 5.0.0.
58140         * tests/unictype/test-categ_Cc.c: Likewise.
58141         * tests/unictype/test-categ_Cf.c: Likewise.
58142         * tests/unictype/test-categ_Cn.c: Likewise.
58143         * tests/unictype/test-categ_Co.c: Likewise.
58144         * tests/unictype/test-categ_Cs.c: Likewise.
58145         * tests/unictype/test-categ_L.c: Likewise.
58146         * tests/unictype/test-categ_Ll.c: Likewise.
58147         * tests/unictype/test-categ_Lm.c: Likewise.
58148         * tests/unictype/test-categ_Lo.c: Likewise.
58149         * tests/unictype/test-categ_Lt.c: Likewise.
58150         * tests/unictype/test-categ_Lu.c: Likewise.
58151         * tests/unictype/test-categ_M.c: Likewise.
58152         * tests/unictype/test-categ_Mc.c: Likewise.
58153         * tests/unictype/test-categ_Me.c: Likewise.
58154         * tests/unictype/test-categ_Mn.c: Likewise.
58155         * tests/unictype/test-categ_N.c: Likewise.
58156         * tests/unictype/test-categ_Nd.c: Likewise.
58157         * tests/unictype/test-categ_Nl.c: Likewise.
58158         * tests/unictype/test-categ_No.c: Likewise.
58159         * tests/unictype/test-categ_P.c: Likewise.
58160         * tests/unictype/test-categ_Pc.c: Likewise.
58161         * tests/unictype/test-categ_Pd.c: Likewise.
58162         * tests/unictype/test-categ_Pe.c: Likewise.
58163         * tests/unictype/test-categ_Pf.c: Likewise.
58164         * tests/unictype/test-categ_Pi.c: Likewise.
58165         * tests/unictype/test-categ_Po.c: Likewise.
58166         * tests/unictype/test-categ_Ps.c: Likewise.
58167         * tests/unictype/test-categ_S.c: Likewise.
58168         * tests/unictype/test-categ_Sc.c: Likewise.
58169         * tests/unictype/test-categ_Sk.c: Likewise.
58170         * tests/unictype/test-categ_Sm.c: Likewise.
58171         * tests/unictype/test-categ_So.c: Likewise.
58172         * tests/unictype/test-categ_Z.c: Likewise.
58173         * tests/unictype/test-categ_Zl.c: Likewise.
58174         * tests/unictype/test-categ_Zp.c: Likewise.
58175         * tests/unictype/test-categ_Zs.c: Likewise.
58176         * tests/unictype/test-ctype_alnum.c: Likewise.
58177         * tests/unictype/test-ctype_alpha.c: Likewise.
58178         * tests/unictype/test-ctype_blank.c: Likewise.
58179         * tests/unictype/test-ctype_cntrl.c: Likewise.
58180         * tests/unictype/test-ctype_digit.c: Likewise.
58181         * tests/unictype/test-ctype_graph.c: Likewise.
58182         * tests/unictype/test-ctype_lower.c: Likewise.
58183         * tests/unictype/test-ctype_print.c: Likewise.
58184         * tests/unictype/test-ctype_punct.c: Likewise.
58185         * tests/unictype/test-ctype_space.c: Likewise.
58186         * tests/unictype/test-ctype_upper.c: Likewise.
58187         * tests/unictype/test-ctype_xdigit.c: Likewise.
58188         * tests/unictype/test-decdigit.h: Likewise.
58189         * tests/unictype/test-digit.h: Likewise.
58190         * tests/unictype/test-numeric.h: Likewise.
58191         * tests/unictype/test-pr_alphabetic.c: Likewise.
58192         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58193         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58194         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58195         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58196         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58197         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58198         * tests/unictype/test-pr_bidi_control.c: Likewise.
58199         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58200         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58201         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58202         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58203         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58204         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58205         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58206         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58207         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58208         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58209         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58210         * tests/unictype/test-pr_combining.c: Likewise.
58211         * tests/unictype/test-pr_composite.c: Likewise.
58212         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58213         * tests/unictype/test-pr_dash.c: Likewise.
58214         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58215         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58216         * tests/unictype/test-pr_deprecated.c: Likewise.
58217         * tests/unictype/test-pr_diacritic.c: Likewise.
58218         * tests/unictype/test-pr_extender.c: Likewise.
58219         * tests/unictype/test-pr_format_control.c: Likewise.
58220         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58221         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58222         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58223         * tests/unictype/test-pr_hex_digit.c: Likewise.
58224         * tests/unictype/test-pr_hyphen.c: Likewise.
58225         * tests/unictype/test-pr_id_continue.c: Likewise.
58226         * tests/unictype/test-pr_id_start.c: Likewise.
58227         * tests/unictype/test-pr_ideographic.c: Likewise.
58228         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58229         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58230         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58231         * tests/unictype/test-pr_iso_control.c: Likewise.
58232         * tests/unictype/test-pr_join_control.c: Likewise.
58233         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58234         * tests/unictype/test-pr_line_separator.c: Likewise.
58235         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58236         * tests/unictype/test-pr_lowercase.c: Likewise.
58237         * tests/unictype/test-pr_math.c: Likewise.
58238         * tests/unictype/test-pr_non_break.c: Likewise.
58239         * tests/unictype/test-pr_not_a_character.c: Likewise.
58240         * tests/unictype/test-pr_numeric.c: Likewise.
58241         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58242         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58243         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58244         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58245         * tests/unictype/test-pr_other_id_start.c: Likewise.
58246         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58247         * tests/unictype/test-pr_other_math.c: Likewise.
58248         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58249         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58250         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58251         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58252         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58253         * tests/unictype/test-pr_private_use.c: Likewise.
58254         * tests/unictype/test-pr_punctuation.c: Likewise.
58255         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58256         * tests/unictype/test-pr_radical.c: Likewise.
58257         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58258         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58259         * tests/unictype/test-pr_space.c: Likewise.
58260         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58261         * tests/unictype/test-pr_titlecase.c: Likewise.
58262         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58263         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58264         * tests/unictype/test-pr_uppercase.c: Likewise.
58265         * tests/unictype/test-pr_variation_selector.c: Likewise.
58266         * tests/unictype/test-pr_white_space.c: Likewise.
58267         * tests/unictype/test-pr_xid_continue.c: Likewise.
58268         * tests/unictype/test-pr_xid_start.c: Likewise.
58269         * tests/unictype/test-pr_zero_width.c: Likewise.
58270         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58271         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58272
58273 2007-11-12  Bruno Haible  <bruno@clisp.org>
58274
58275         Unicode character classification functions.
58276         * lib/unictype.h: New file.
58277         * modules/unictype/base: New file.
58278         * modules/unictype/category-L: New file.
58279         * modules/unictype/category-Lu: New file.
58280         * modules/unictype/category-Ll: New file.
58281         * modules/unictype/category-Lt: New file.
58282         * modules/unictype/category-Lm: New file.
58283         * modules/unictype/category-Lo: New file.
58284         * modules/unictype/category-M: New file.
58285         * modules/unictype/category-Mn: New file.
58286         * modules/unictype/category-Mc: New file.
58287         * modules/unictype/category-Me: New file.
58288         * modules/unictype/category-N: New file.
58289         * modules/unictype/category-Nd: New file.
58290         * modules/unictype/category-Nl: New file.
58291         * modules/unictype/category-No: New file.
58292         * modules/unictype/category-P: New file.
58293         * modules/unictype/category-Pc: New file.
58294         * modules/unictype/category-Pd: New file.
58295         * modules/unictype/category-Ps: New file.
58296         * modules/unictype/category-Pe: New file.
58297         * modules/unictype/category-Pi: New file.
58298         * modules/unictype/category-Pf: New file.
58299         * modules/unictype/category-Po: New file.
58300         * modules/unictype/category-S: New file.
58301         * modules/unictype/category-Sm: New file.
58302         * modules/unictype/category-Sc: New file.
58303         * modules/unictype/category-Sk: New file.
58304         * modules/unictype/category-So: New file.
58305         * modules/unictype/category-Z: New file.
58306         * modules/unictype/category-Zs: New file.
58307         * modules/unictype/category-Zl: New file.
58308         * modules/unictype/category-Zp: New file.
58309         * modules/unictype/category-C: New file.
58310         * modules/unictype/category-Cc: New file.
58311         * modules/unictype/category-Cf: New file.
58312         * modules/unictype/category-Cs: New file.
58313         * modules/unictype/category-Co: New file.
58314         * modules/unictype/category-Cn: New file.
58315         * modules/unictype/category-or: New file.
58316         * modules/unictype/category-of: New file.
58317         * modules/unictype/category-test: New file.
58318         * modules/unictype/category-test-withtable: New file.
58319         * modules/unictype/category-byname: New file.
58320         * modules/unictype/category-none: New file.
58321         * modules/unictype/category-and: New file.
58322         * modules/unictype/category-and-not: New file.
58323         * modules/unictype/category-name: New file.
58324         * modules/unictype/combining-class: New file.
58325         * modules/unictype/category-all: New file.
58326         * modules/unictype/bidicategory-all: New file.
58327         * modules/unictype/bidicategory-byname: New file.
58328         * modules/unictype/bidicategory-name: New file.
58329         * modules/unictype/bidicategory-of: New file.
58330         * modules/unictype/bidicategory-test: New file.
58331         * modules/unictype/decimal-digit: New file.
58332         * modules/unictype/digit: New file.
58333         * modules/unictype/numeric: New file.
58334         * modules/unictype/mirror: New file.
58335         * modules/unictype/property-white-space: New file.
58336         * modules/unictype/property-alphabetic: New file.
58337         * modules/unictype/property-other-alphabetic: New file.
58338         * modules/unictype/property-not-a-character: New file.
58339         * modules/unictype/property-default-ignorable-code-point: New file.
58340         * modules/unictype/property-other-default-ignorable-code-point: New
58341         file.
58342         * modules/unictype/property-deprecated: New file.
58343         * modules/unictype/property-logical-order-exception: New file.
58344         * modules/unictype/property-variation-selector: New file.
58345         * modules/unictype/property-private-use: New file.
58346         * modules/unictype/property-unassigned-code-value: New file.
58347         * modules/unictype/property-uppercase: New file.
58348         * modules/unictype/property-other-uppercase: New file.
58349         * modules/unictype/property-lowercase: New file.
58350         * modules/unictype/property-other-lowercase: New file.
58351         * modules/unictype/property-titlecase: New file.
58352         * modules/unictype/property-soft-dotted: New file.
58353         * modules/unictype/property-id-start: New file.
58354         * modules/unictype/property-other-id-start: New file.
58355         * modules/unictype/property-id-continue: New file.
58356         * modules/unictype/property-other-id-continue: New file.
58357         * modules/unictype/property-xid-start: New file.
58358         * modules/unictype/property-xid-continue: New file.
58359         * modules/unictype/property-pattern-white-space: New file.
58360         * modules/unictype/property-pattern-syntax: New file.
58361         * modules/unictype/property-join-control: New file.
58362         * modules/unictype/property-grapheme-base: New file.
58363         * modules/unictype/property-grapheme-extend: New file.
58364         * modules/unictype/property-other-grapheme-extend: New file.
58365         * modules/unictype/property-grapheme-link: New file.
58366         * modules/unictype/property-bidi-control: New file.
58367         * modules/unictype/property-bidi-left-to-right: New file.
58368         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58369         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58370         * modules/unictype/property-bidi-european-digit: New file.
58371         * modules/unictype/property-bidi-eur-num-separator: New file.
58372         * modules/unictype/property-bidi-eur-num-terminator: New file.
58373         * modules/unictype/property-bidi-arabic-digit: New file.
58374         * modules/unictype/property-bidi-common-separator: New file.
58375         * modules/unictype/property-bidi-block-separator: New file.
58376         * modules/unictype/property-bidi-segment-separator: New file.
58377         * modules/unictype/property-bidi-whitespace: New file.
58378         * modules/unictype/property-bidi-non-spacing-mark: New file.
58379         * modules/unictype/property-bidi-boundary-neutral: New file.
58380         * modules/unictype/property-bidi-pdf: New file.
58381         * modules/unictype/property-bidi-embedding-or-override: New file.
58382         * modules/unictype/property-bidi-other-neutral: New file.
58383         * modules/unictype/property-hex-digit: New file.
58384         * modules/unictype/property-ascii-hex-digit: New file.
58385         * modules/unictype/property-ideographic: New file.
58386         * modules/unictype/property-unified-ideograph: New file.
58387         * modules/unictype/property-radical: New file.
58388         * modules/unictype/property-ids-binary-operator: New file.
58389         * modules/unictype/property-ids-trinary-operator: New file.
58390         * modules/unictype/property-zero-width: New file.
58391         * modules/unictype/property-space: New file.
58392         * modules/unictype/property-non-break: New file.
58393         * modules/unictype/property-iso-control: New file.
58394         * modules/unictype/property-format-control: New file.
58395         * modules/unictype/property-dash: New file.
58396         * modules/unictype/property-hyphen: New file.
58397         * modules/unictype/property-punctuation: New file.
58398         * modules/unictype/property-line-separator: New file.
58399         * modules/unictype/property-paragraph-separator: New file.
58400         * modules/unictype/property-quotation-mark: New file.
58401         * modules/unictype/property-sentence-terminal: New file.
58402         * modules/unictype/property-terminal-punctuation: New file.
58403         * modules/unictype/property-currency-symbol: New file.
58404         * modules/unictype/property-math: New file.
58405         * modules/unictype/property-other-math: New file.
58406         * modules/unictype/property-paired-punctuation: New file.
58407         * modules/unictype/property-left-of-pair: New file.
58408         * modules/unictype/property-combining: New file.
58409         * modules/unictype/property-composite: New file.
58410         * modules/unictype/property-decimal-digit: New file.
58411         * modules/unictype/property-numeric: New file.
58412         * modules/unictype/property-diacritic: New file.
58413         * modules/unictype/property-extender: New file.
58414         * modules/unictype/property-ignorable-control: New file.
58415         * modules/unictype/property-test: New file.
58416         * modules/unictype/property-byname: New file.
58417         * modules/unictype/property-all: New file.
58418         * modules/unictype/scripts: New file.
58419         * modules/unictype/scripts-all: New file.
58420         * modules/unictype/block-of: New file.
58421         * modules/unictype/block-test: New file.
58422         * modules/unictype/block-list: New file.
58423         * modules/unictype/block-all: New file.
58424         * modules/unictype/syntax-c-whitespace: New file.
58425         * modules/unictype/syntax-java-whitespace: New file.
58426         * modules/unictype/syntax-c-ident: New file.
58427         * modules/unictype/syntax-java-ident: New file.
58428         * modules/unictype/ctype-alnum: New file.
58429         * modules/unictype/ctype-alpha: New file.
58430         * modules/unictype/ctype-cntrl: New file.
58431         * modules/unictype/ctype-digit: New file.
58432         * modules/unictype/ctype-graph: New file.
58433         * modules/unictype/ctype-lower: New file.
58434         * modules/unictype/ctype-print: New file.
58435         * modules/unictype/ctype-punct: New file.
58436         * modules/unictype/ctype-space: New file.
58437         * modules/unictype/ctype-upper: New file.
58438         * modules/unictype/ctype-xdigit: New file.
58439         * modules/unictype/ctype-blank: New file.
58440         * lib/unictype/bidi_byname.c: New file.
58441         * lib/unictype/bidi_name.c: New file.
58442         * lib/unictype/bidi_of.c: New file.
58443         * lib/unictype/bidi_test.c: New file.
58444         * lib/unictype/bitmap.h: New file.
58445         * lib/unictype/block_test.c: New file.
58446         * lib/unictype/blocks.c: New file.
58447         * lib/unictype/categ_C.c: New file.
58448         * lib/unictype/categ_Cc.c: New file.
58449         * lib/unictype/categ_Cf.c: New file.
58450         * lib/unictype/categ_Cn.c: New file.
58451         * lib/unictype/categ_Co.c: New file.
58452         * lib/unictype/categ_Cs.c: New file.
58453         * lib/unictype/categ_L.c: New file.
58454         * lib/unictype/categ_Ll.c: New file.
58455         * lib/unictype/categ_Lm.c: New file.
58456         * lib/unictype/categ_Lo.c: New file.
58457         * lib/unictype/categ_Lt.c: New file.
58458         * lib/unictype/categ_Lu.c: New file.
58459         * lib/unictype/categ_M.c: New file.
58460         * lib/unictype/categ_Mc.c: New file.
58461         * lib/unictype/categ_Me.c: New file.
58462         * lib/unictype/categ_Mn.c: New file.
58463         * lib/unictype/categ_N.c: New file.
58464         * lib/unictype/categ_Nd.c: New file.
58465         * lib/unictype/categ_Nl.c: New file.
58466         * lib/unictype/categ_No.c: New file.
58467         * lib/unictype/categ_P.c: New file.
58468         * lib/unictype/categ_Pc.c: New file.
58469         * lib/unictype/categ_Pd.c: New file.
58470         * lib/unictype/categ_Pe.c: New file.
58471         * lib/unictype/categ_Pf.c: New file.
58472         * lib/unictype/categ_Pi.c: New file.
58473         * lib/unictype/categ_Po.c: New file.
58474         * lib/unictype/categ_Ps.c: New file.
58475         * lib/unictype/categ_S.c: New file.
58476         * lib/unictype/categ_Sc.c: New file.
58477         * lib/unictype/categ_Sk.c: New file.
58478         * lib/unictype/categ_Sm.c: New file.
58479         * lib/unictype/categ_So.c: New file.
58480         * lib/unictype/categ_Z.c: New file.
58481         * lib/unictype/categ_Zl.c: New file.
58482         * lib/unictype/categ_Zp.c: New file.
58483         * lib/unictype/categ_Zs.c: New file.
58484         * lib/unictype/categ_and.c: New file.
58485         * lib/unictype/categ_and_not.c: New file.
58486         * lib/unictype/categ_byname.c: New file.
58487         * lib/unictype/categ_name.c: New file.
58488         * lib/unictype/categ_none.c: New file.
58489         * lib/unictype/categ_of.c: New file.
58490         * lib/unictype/categ_or.c: New file.
58491         * lib/unictype/categ_test.c: New file.
58492         * lib/unictype/combining.c: New file.
58493         * lib/unictype/ctype_alnum.c: New file.
58494         * lib/unictype/ctype_alpha.c: New file.
58495         * lib/unictype/ctype_blank.c: New file.
58496         * lib/unictype/ctype_cntrl.c: New file.
58497         * lib/unictype/ctype_digit.c: New file.
58498         * lib/unictype/ctype_graph.c: New file.
58499         * lib/unictype/ctype_lower.c: New file.
58500         * lib/unictype/ctype_print.c: New file.
58501         * lib/unictype/ctype_punct.c: New file.
58502         * lib/unictype/ctype_space.c: New file.
58503         * lib/unictype/ctype_upper.c: New file.
58504         * lib/unictype/ctype_xdigit.c: New file.
58505         * lib/unictype/decdigit.c: New file.
58506         * lib/unictype/digit.c: New file.
58507         * lib/unictype/identsyntaxmap.h: New file.
58508         * lib/unictype/mirror.c: New file.
58509         * lib/unictype/numeric.c: New file.
58510         * lib/unictype/pr_alphabetic.c: New file.
58511         * lib/unictype/pr_ascii_hex_digit.c: New file.
58512         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58513         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58514         * lib/unictype/pr_bidi_block_separator.c: New file.
58515         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58516         * lib/unictype/pr_bidi_common_separator.c: New file.
58517         * lib/unictype/pr_bidi_control.c: New file.
58518         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58519         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58520         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58521         * lib/unictype/pr_bidi_european_digit.c: New file.
58522         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58523         * lib/unictype/pr_bidi_left_to_right.c: New file.
58524         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58525         * lib/unictype/pr_bidi_other_neutral.c: New file.
58526         * lib/unictype/pr_bidi_pdf.c: New file.
58527         * lib/unictype/pr_bidi_segment_separator.c: New file.
58528         * lib/unictype/pr_bidi_whitespace.c: New file.
58529         * lib/unictype/pr_byname.c: New file.
58530         * lib/unictype/pr_byname.gperf: New file.
58531         * lib/unictype/pr_combining.c: New file.
58532         * lib/unictype/pr_composite.c: New file.
58533         * lib/unictype/pr_currency_symbol.c: New file.
58534         * lib/unictype/pr_dash.c: New file.
58535         * lib/unictype/pr_decimal_digit.c: New file.
58536         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58537         * lib/unictype/pr_deprecated.c: New file.
58538         * lib/unictype/pr_diacritic.c: New file.
58539         * lib/unictype/pr_extender.c: New file.
58540         * lib/unictype/pr_format_control.c: New file.
58541         * lib/unictype/pr_grapheme_base.c: New file.
58542         * lib/unictype/pr_grapheme_extend.c: New file.
58543         * lib/unictype/pr_grapheme_link.c: New file.
58544         * lib/unictype/pr_hex_digit.c: New file.
58545         * lib/unictype/pr_hyphen.c: New file.
58546         * lib/unictype/pr_id_continue.c: New file.
58547         * lib/unictype/pr_id_start.c: New file.
58548         * lib/unictype/pr_ideographic.c: New file.
58549         * lib/unictype/pr_ids_binary_operator.c: New file.
58550         * lib/unictype/pr_ids_trinary_operator.c: New file.
58551         * lib/unictype/pr_ignorable_control.c: New file.
58552         * lib/unictype/pr_iso_control.c: New file.
58553         * lib/unictype/pr_join_control.c: New file.
58554         * lib/unictype/pr_left_of_pair.c: New file.
58555         * lib/unictype/pr_line_separator.c: New file.
58556         * lib/unictype/pr_logical_order_exception.c: New file.
58557         * lib/unictype/pr_lowercase.c: New file.
58558         * lib/unictype/pr_math.c: New file.
58559         * lib/unictype/pr_non_break.c: New file.
58560         * lib/unictype/pr_not_a_character.c: New file.
58561         * lib/unictype/pr_numeric.c: New file.
58562         * lib/unictype/pr_other_alphabetic.c: New file.
58563         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58564         * lib/unictype/pr_other_grapheme_extend.c: New file.
58565         * lib/unictype/pr_other_id_continue.c: New file.
58566         * lib/unictype/pr_other_id_start.c: New file.
58567         * lib/unictype/pr_other_lowercase.c: New file.
58568         * lib/unictype/pr_other_math.c: New file.
58569         * lib/unictype/pr_other_uppercase.c: New file.
58570         * lib/unictype/pr_paired_punctuation.c: New file.
58571         * lib/unictype/pr_paragraph_separator.c: New file.
58572         * lib/unictype/pr_pattern_syntax.c: New file.
58573         * lib/unictype/pr_pattern_white_space.c: New file.
58574         * lib/unictype/pr_private_use.c: New file.
58575         * lib/unictype/pr_punctuation.c: New file.
58576         * lib/unictype/pr_quotation_mark.c: New file.
58577         * lib/unictype/pr_radical.c: New file.
58578         * lib/unictype/pr_sentence_terminal.c: New file.
58579         * lib/unictype/pr_soft_dotted.c: New file.
58580         * lib/unictype/pr_space.c: New file.
58581         * lib/unictype/pr_terminal_punctuation.c: New file.
58582         * lib/unictype/pr_test.c: New file.
58583         * lib/unictype/pr_titlecase.c: New file.
58584         * lib/unictype/pr_unassigned_code_value.c: New file.
58585         * lib/unictype/pr_unified_ideograph.c: New file.
58586         * lib/unictype/pr_uppercase.c: New file.
58587         * lib/unictype/pr_variation_selector.c: New file.
58588         * lib/unictype/pr_white_space.c: New file.
58589         * lib/unictype/pr_xid_continue.c: New file.
58590         * lib/unictype/pr_xid_start.c: New file.
58591         * lib/unictype/pr_zero_width.c: New file.
58592         * lib/unictype/scripts.c: New file.
58593         * lib/unictype/sy_c_ident.c: New file.
58594         * lib/unictype/sy_c_whitespace.c: New file.
58595         * lib/unictype/sy_java_ident.c: New file.
58596         * lib/unictype/sy_java_whitespace.c: New file.
58597
58598         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58599         Unicode 5.0.0.
58600         * lib/unictype/blocks.h: Likewise.
58601         * lib/unictype/categ_C.h: Likewise.
58602         * lib/unictype/categ_Cc.h: Likewise.
58603         * lib/unictype/categ_Cf.h: Likewise.
58604         * lib/unictype/categ_Cn.h: Likewise.
58605         * lib/unictype/categ_Co.h: Likewise.
58606         * lib/unictype/categ_Cs.h: Likewise.
58607         * lib/unictype/categ_L.h: Likewise.
58608         * lib/unictype/categ_Ll.h: Likewise.
58609         * lib/unictype/categ_Lm.h: Likewise.
58610         * lib/unictype/categ_Lo.h: Likewise.
58611         * lib/unictype/categ_Lt.h: Likewise.
58612         * lib/unictype/categ_Lu.h: Likewise.
58613         * lib/unictype/categ_M.h: Likewise.
58614         * lib/unictype/categ_Mc.h: Likewise.
58615         * lib/unictype/categ_Me.h: Likewise.
58616         * lib/unictype/categ_Mn.h: Likewise.
58617         * lib/unictype/categ_N.h: Likewise.
58618         * lib/unictype/categ_Nd.h: Likewise.
58619         * lib/unictype/categ_Nl.h: Likewise.
58620         * lib/unictype/categ_No.h: Likewise.
58621         * lib/unictype/categ_P.h: Likewise.
58622         * lib/unictype/categ_Pc.h: Likewise.
58623         * lib/unictype/categ_Pd.h: Likewise.
58624         * lib/unictype/categ_Pe.h: Likewise.
58625         * lib/unictype/categ_Pf.h: Likewise.
58626         * lib/unictype/categ_Pi.h: Likewise.
58627         * lib/unictype/categ_Po.h: Likewise.
58628         * lib/unictype/categ_Ps.h: Likewise.
58629         * lib/unictype/categ_S.h: Likewise.
58630         * lib/unictype/categ_Sc.h: Likewise.
58631         * lib/unictype/categ_Sk.h: Likewise.
58632         * lib/unictype/categ_Sm.h: Likewise.
58633         * lib/unictype/categ_So.h: Likewise.
58634         * lib/unictype/categ_Z.h: Likewise.
58635         * lib/unictype/categ_Zl.h: Likewise.
58636         * lib/unictype/categ_Zp.h: Likewise.
58637         * lib/unictype/categ_Zs.h: Likewise.
58638         * lib/unictype/categ_of.h: Likewise.
58639         * lib/unictype/combining.h: Likewise.
58640         * lib/unictype/ctype_alnum.h: Likewise.
58641         * lib/unictype/ctype_alpha.h: Likewise.
58642         * lib/unictype/ctype_blank.h: Likewise.
58643         * lib/unictype/ctype_cntrl.h: Likewise.
58644         * lib/unictype/ctype_digit.h: Likewise.
58645         * lib/unictype/ctype_graph.h: Likewise.
58646         * lib/unictype/ctype_lower.h: Likewise.
58647         * lib/unictype/ctype_print.h: Likewise.
58648         * lib/unictype/ctype_punct.h: Likewise.
58649         * lib/unictype/ctype_space.h: Likewise.
58650         * lib/unictype/ctype_upper.h: Likewise.
58651         * lib/unictype/ctype_xdigit.h: Likewise.
58652         * lib/unictype/decdigit.h: Likewise.
58653         * lib/unictype/digit.h: Likewise.
58654         * lib/unictype/mirror.h: Likewise.
58655         * lib/unictype/numeric.h: Likewise.
58656         * lib/unictype/pr_alphabetic.h: Likewise.
58657         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58658         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58659         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58660         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58661         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58662         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58663         * lib/unictype/pr_bidi_control.h: Likewise.
58664         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58665         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58666         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58667         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58668         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58669         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58670         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58671         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58672         * lib/unictype/pr_bidi_pdf.h: Likewise.
58673         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58674         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58675         * lib/unictype/pr_combining.h: Likewise.
58676         * lib/unictype/pr_composite.h: Likewise.
58677         * lib/unictype/pr_currency_symbol.h: Likewise.
58678         * lib/unictype/pr_dash.h: Likewise.
58679         * lib/unictype/pr_decimal_digit.h: Likewise.
58680         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58681         * lib/unictype/pr_deprecated.h: Likewise.
58682         * lib/unictype/pr_diacritic.h: Likewise.
58683         * lib/unictype/pr_extender.h: Likewise.
58684         * lib/unictype/pr_format_control.h: Likewise.
58685         * lib/unictype/pr_grapheme_base.h: Likewise.
58686         * lib/unictype/pr_grapheme_extend.h: Likewise.
58687         * lib/unictype/pr_grapheme_link.h: Likewise.
58688         * lib/unictype/pr_hex_digit.h: Likewise.
58689         * lib/unictype/pr_hyphen.h: Likewise.
58690         * lib/unictype/pr_id_continue.h: Likewise.
58691         * lib/unictype/pr_id_start.h: Likewise.
58692         * lib/unictype/pr_ideographic.h: Likewise.
58693         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58694         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58695         * lib/unictype/pr_ignorable_control.h: Likewise.
58696         * lib/unictype/pr_iso_control.h: Likewise.
58697         * lib/unictype/pr_join_control.h: Likewise.
58698         * lib/unictype/pr_left_of_pair.h: Likewise.
58699         * lib/unictype/pr_line_separator.h: Likewise.
58700         * lib/unictype/pr_logical_order_exception.h: Likewise.
58701         * lib/unictype/pr_lowercase.h: Likewise.
58702         * lib/unictype/pr_math.h: Likewise.
58703         * lib/unictype/pr_non_break.h: Likewise.
58704         * lib/unictype/pr_not_a_character.h: Likewise.
58705         * lib/unictype/pr_numeric.h: Likewise.
58706         * lib/unictype/pr_other_alphabetic.h: Likewise.
58707         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58708         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58709         * lib/unictype/pr_other_id_continue.h: Likewise.
58710         * lib/unictype/pr_other_id_start.h: Likewise.
58711         * lib/unictype/pr_other_lowercase.h: Likewise.
58712         * lib/unictype/pr_other_math.h: Likewise.
58713         * lib/unictype/pr_other_uppercase.h: Likewise.
58714         * lib/unictype/pr_paired_punctuation.h: Likewise.
58715         * lib/unictype/pr_paragraph_separator.h: Likewise.
58716         * lib/unictype/pr_pattern_syntax.h: Likewise.
58717         * lib/unictype/pr_pattern_white_space.h: Likewise.
58718         * lib/unictype/pr_private_use.h: Likewise.
58719         * lib/unictype/pr_punctuation.h: Likewise.
58720         * lib/unictype/pr_quotation_mark.h: Likewise.
58721         * lib/unictype/pr_radical.h: Likewise.
58722         * lib/unictype/pr_sentence_terminal.h: Likewise.
58723         * lib/unictype/pr_soft_dotted.h: Likewise.
58724         * lib/unictype/pr_space.h: Likewise.
58725         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58726         * lib/unictype/pr_titlecase.h: Likewise.
58727         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58728         * lib/unictype/pr_unified_ideograph.h: Likewise.
58729         * lib/unictype/pr_uppercase.h: Likewise.
58730         * lib/unictype/pr_variation_selector.h: Likewise.
58731         * lib/unictype/pr_white_space.h: Likewise.
58732         * lib/unictype/pr_xid_continue.h: Likewise.
58733         * lib/unictype/pr_xid_start.h: Likewise.
58734         * lib/unictype/pr_zero_width.h: Likewise.
58735         * lib/unictype/scripts.h: Likewise.
58736         * lib/unictype/scripts_byname.gperf: Likewise.
58737         * lib/unictype/sy_c_ident.h: Likewise.
58738         * lib/unictype/sy_c_whitespace.h: Likewise.
58739         * lib/unictype/sy_java_ident.h: Likewise.
58740         * lib/unictype/sy_java_whitespace.h: Likewise.
58741
58742         * lib/unictype/Makefile: New file.
58743         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58744         glibc.
58745         * lib/unictype/3level.h: New file, copied from glibc.
58746         * lib/unictype/3levelbit.h: New file.
58747
58748 2007-11-11  Bruno Haible  <bruno@clisp.org>
58749
58750         * modules/gperf: New file.
58751         * modules/iconv_open (Depends-on): Add it.
58752         (Makefile.am): Remove the GPERF definition.
58753
58754 2007-11-11  Bruno Haible  <bruno@clisp.org>
58755
58756         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58757         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58758
58759 2007-11-11  Bruno Haible  <bruno@clisp.org>
58760
58761         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58762         (usage): Remove function.
58763
58764 2007-11-11  Bruno Haible  <bruno@clisp.org>
58765
58766         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58767         gl_FUNC_CEILF_LIBS.
58768         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58769         gl_FUNC_CEIL_LIBS.
58770         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58771         gl_FUNC_CEILL_LIBS.
58772         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58773         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58774         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58775
58776 2007-11-11  Bruno Haible  <bruno@clisp.org>
58777
58778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58779         roundf were declared but do not exist on functions.
58780         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58781         roundl were declared but do not exist on functions.
58782         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58783         HAVE_FLOORL_AND_CEILL, respectively.
58784         Needed for Sun C on Solaris 10.
58785
58786 2007-11-11  Bruno Haible  <bruno@clisp.org>
58787
58788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58789         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58790         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58791         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58793         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58794         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58795         HAVE_DECL_ROUNDF.
58796         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58797         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58799         of HAVE_DECL_ROUND*.
58800         * modules/math (Makefile.am): Update.
58801
58802 2007-11-10  Bruno Haible  <bruno@clisp.org>
58803
58804         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58805         ptrdiff_t as m4/intl.m4.
58806
58807 2007-11-10  Jim Meyering  <meyering@redhat.com>
58808
58809         Avoid link failure for the argmatch test.
58810         * tests/test-argmatch.c (usage): Define function to avoid a link
58811         failure: argmatch_die requires a usage function.
58812
58813 2007-11-09  Bruno Haible  <bruno@clisp.org>
58814
58815         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58816         * doc/functions/vsnprintf.texi: Likewise.
58817         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58818         with a size argument < 2.
58819
58820 2007-11-09  Bruno Haible  <bruno@clisp.org>
58821
58822         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58823         buffer. Fixes an inefficiency introduced on 2007-11-03.
58824
58825 2007-11-09  Bruno Haible  <bruno@clisp.org>
58826
58827         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58828         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58829
58830 2007-11-08  Jim Meyering  <meyering@redhat.com>
58831
58832         Change cache variable name prefix "jm_" to "gl_" everywhere.
58833         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58834         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58835         * m4/uptime.m4: s/gl_/jm_/
58836
58837 2007-11-07  Bruno Haible  <bruno@clisp.org>
58838
58839         Update to GNU gettext 0.17.
58840         * m4/intl.m4: Update to GNU gettext 0.17.
58841         * m4/po.m4: Likewise.
58842         * modules/gettext (Files): Remove m4/ulonglong.m4.
58843         (configure.ac): Require gettext infrastructure from version 0.17.
58844
58845 2007-11-06  Bruno Haible  <bruno@clisp.org>
58846
58847         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
58848         symbolic values are not defined in a public header.
58849         * lib/freadable.c (freadable) [QNX]: Likewise.
58850         * lib/freadahead.c (freadahead) [QNX]: Likewise.
58851         * lib/freading.c (freading) [QNX]: Likewise.
58852         * lib/fseterr.c (fseterr) [QNX]: Likewise.
58853         * lib/fwritable.c (fwritable) [QNX]: Likewise.
58854         * lib/fwriting.c (fwriting) [QNX]: Likewise.
58855         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
58856         Reported by Alain Magloire.
58857
58858         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
58859
58860 2007-11-05  Bruno Haible  <bruno@clisp.org>
58861
58862         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
58863         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
58864         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
58865         Reported by Eric Blake.
58866
58867 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58868             Bruno Haible  <bruno@clisp.org>
58869
58870         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
58871         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
58872         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
58873         (malloc): Undefine also before including <stdlib.h>.
58874         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
58875         Needed on OSF/1 4.0.
58876
58877 2007-11-05  Jim Meyering  <meyering@redhat.com>
58878
58879         git-version-gen: sync from coreutils.
58880         * build-aux/git-version-gen: Add comments.
58881         Change the first '-' to '.' in the snapshot version string,
58882         e.g., 6.9-377-08144 -> 6.9.377-08144
58883         Remove first parameter.
58884         Don't declare a version "-dirty" merely because a time
58885         stamp has changed.
58886
58887 2007-11-04  Bruno Haible  <bruno@clisp.org>
58888
58889         * lib/lock.h: Protect all macro definitions containing an 'if'
58890         statement through a "do { ... } while (0)".
58891         * lib/tls.h: Likewise.
58892
58893 2007-11-04  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
58896
58897 2007-11-04  Bruno Haible  <bruno@clisp.org>
58898
58899         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
58900         * modules/fprintf-posix (Depends-on): Add nocrash.
58901         * modules/snprintf-posix (Depends-on): Likewise.
58902         * modules/sprintf-posix (Depends-on): Likewise.
58903         * modules/vasnprintf-posix (Depends-on): Likewise.
58904         * modules/vasprintf-posix (Depends-on): Likewise.
58905         * modules/vfprintf-posix (Depends-on): Likewise.
58906         * modules/vsnprintf-posix (Depends-on): Likewise.
58907         * modules/vsprintf-posix (Depends-on): Likewise.
58908         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58909         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58910         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58911         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58912         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58913         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58914         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58915
58916 2007-11-04  Bruno Haible  <bruno@clisp.org>
58917
58918         * modules/nocrash: New file.
58919         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
58920         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
58921
58922 2007-11-04  Bruno Haible  <bruno@clisp.org>
58923
58924         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
58925         precision handling.
58926         * tests/test-vasprintf-posix.c (test_function): Likewise.
58927         * tests/test-snprintf-posix.h (test_function): Likewise.
58928         * tests/test-sprintf-posix.h (test_function): Likewise.
58929
58930         Fix *printf behaviour for large precisions on mingw and BeOS.
58931         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
58932         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
58933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
58934         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58936         gl_PRINTF_PRECISION and test its result. Invoke
58937         gl_PREREQ_VASNPRINTF_PRECISION.
58938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58945         * doc/functions/fprintf.texi: Update.
58946         * doc/functions/printf.texi: Update.
58947         * doc/functions/snprintf.texi: Update.
58948         * doc/functions/sprintf.texi: Update.
58949         * doc/functions/vfprintf.texi: Update.
58950         * doc/functions/vprintf.texi: Update.
58951         * doc/functions/vsnprintf.texi: Update.
58952         * doc/functions/vsprintf.texi: Update.
58953
58954 2007-11-04  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
58957
58958 2007-11-04  Bruno Haible  <bruno@clisp.org>
58959
58960         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
58961         Reported by Sylvain Beucler <beuc@gnu.org>.
58962
58963 2007-11-03  Bruno Haible  <bruno@clisp.org>
58964
58965         * tests/test-fprintf-posix2.sh: New file.
58966         * tests/test-fprintf-posix2.c: New file.
58967         * modules/fprintf-posix-tests (Files): Add them.
58968         (TESTS): Add test-fprintf-posix2.sh.
58969         (configure.ac): Check for getrlimit and setrlimit.
58970         (check_PROGRAMS): Add test-fprintf-posix2.
58971
58972         * tests/test-printf-posix2.sh: New file.
58973         * tests/test-printf-posix2.c: New file.
58974         * modules/printf-posix-tests (Files): Add them.
58975         (TESTS): Add test-printf-posix2.sh.
58976         (configure.ac): Check for getrlimit and setrlimit.
58977         (check_PROGRAMS): Add test-printf-posix2.
58978
58979         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
58980         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
58981         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
58982         (decode_double): New function, copied from decode_long_double.
58983         (scale10_round_decimal_decoded): New function, extracted from
58984         scale10_round_decimal_long_double.
58985         (scale10_round_decimal_long_double): Use it.
58986         (scale10_round_decimal_double): New function.
58987         (floorlog10): New function.
58988         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
58989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
58990         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58992         gl_PRINTF_ENOMEM and test its result. Invoke
58993         gl_PREREQ_VASNPRINTF_ENOMEM.
58994         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58995         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58998         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59001         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59002         * modules/snprintf-posix (Depends-on): Likewise.
59003         * modules/sprintf-posix (Depends-on): Likewise.
59004         * modules/vasnprintf-posix (Depends-on): Likewise.
59005         * modules/vasprintf-posix (Depends-on): Likewise.
59006         * modules/vfprintf-posix (Depends-on): Likewise.
59007         * modules/vsnprintf-posix (Depends-on): Likewise.
59008         * modules/vsprintf-posix (Depends-on): Likewise.
59009         * doc/functions/fprintf.texi: Update.
59010         * doc/functions/printf.texi: Update.
59011         * doc/functions/snprintf.texi: Update.
59012         * doc/functions/sprintf.texi: Update.
59013         * doc/functions/vfprintf.texi: Update.
59014         * doc/functions/vprintf.texi: Update.
59015         * doc/functions/vsnprintf.texi: Update.
59016         * doc/functions/vsprintf.texi: Update.
59017
59018 2007-11-03  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/frexp-nolibm-tests: New file.
59021
59022         * modules/frexp-nolibm: New file.
59023         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59024
59025 2007-11-03  Bruno Haible  <bruno@clisp.org>
59026
59027         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59028         value is C99 compliant.
59029         Needed for OSF/1 5.1.
59030
59031 2007-11-03  Bruno Haible  <bruno@clisp.org>
59032
59033         Fix out-of-memory handling of vasnprintf.
59034         * lib/printf-parse.c: Include <errno.h>.
59035         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59036         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59037         is already set.
59038
59039 2007-11-02  Eric Blake  <ebb9@byu.net>
59040
59041         Fix tests on cygwin.
59042         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59043
59044 2007-11-01  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59047         warning.
59048         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59049         needed for POSIX compatibility.
59050
59051 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59052
59053         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59054         for compatibility with GNU.
59055
59056 2007-11-01  Bruno Haible  <bruno@clisp.org>
59057
59058         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59059         (putenv): Renamed from rpl_putenv. Change argument type from
59060         'const char *' to 'char *'.
59061         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59062         of defining putenv in config.h, just set REPLACE_PUTENV.
59063         * modules/putenv (Depends-on): Add stdlib.
59064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59065         (Include): Use <stdlib.h>.
59066         * lib/stdlib.in.h (putenv): New declaration.
59067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59068         REPLACE_PUTENV.
59069         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59070         REPLACE_PUTENV.
59071         Needed for MacOS X 10.5.0.
59072         Reported by Peter O'Gorman <peter@pogma.com>.
59073
59074 2007-11-01  Jim Meyering  <meyering@redhat.com>
59075
59076         Treat an empty date string exactly like "0".
59077         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59078         if the remaining date string (to be parsed) is empty, use "0".
59079         Reported by Mischa Molhoek and discussed in this thread:
59080         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59081
59082 2007-10-31  Bruno Haible  <bruno@clisp.org>
59083
59084         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59085         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59086         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59087         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59088         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59089         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59090
59091 2007-10-31  Bruno Haible  <bruno@clisp.org>
59092
59093         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59094         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59095         (AC_TYPE_LONG_LONG_INT): Use it.
59096         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59097         it as well.
59098         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59099         to m4/longlong.m4.
59100         * modules/stdint (Files): Remove m4/ulonglong.m4.
59101         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59102         m4/ulonglong.m4.
59103         * modules/strtoumax (Files): Likewise.
59104
59105 2007-10-30  Bruno Haible  <bruno@clisp.org>
59106
59107         * modules/xvasprintf-posix: New file.
59108         Suggested by Eric Blake.
59109
59110 2007-10-30  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/xprintf-posix-tests: New file.
59113         * tests/test-xprintf-posix.sh: New file.
59114         * tests/test-xprintf-posix.c: New file.
59115         * tests/test-xfprintf-posix.c: New file.
59116
59117         * modules/xprintf-posix: New file.
59118
59119 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59120
59121         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59122         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59123         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59124
59125 2007-10-29  Bruno Haible  <bruno@clisp.org>
59126
59127         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59128         contain the special marker '_cv_'.
59129         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59130         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59131         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59132         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59133         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59134         Reported by Ralf Wildenhues.
59135
59136 2007-10-29  Bruno Haible  <bruno@clisp.org>
59137
59138         * gnulib-tool (func_import): When --lgpl is not specified, set
59139         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59140         GPLv3.
59141         Reported by Simon Josefsson.
59142
59143 2007-10-28  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59146         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59147         HAVE_DECL_ISFINITE.
59148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59149         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59150         HAVE_DECL_ISFINITE.
59151
59152 2007-10-28  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59155         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59156
59157 2007-10-28  Bruno Haible  <bruno@clisp.org>
59158
59159         Fix link errors with Sun C 5.0 on Solaris 10.
59160         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59161         function is declared but not present in the compiler's libm.
59162         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59163         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59164         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59165         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59166         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59167         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59168         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59170         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59171         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59172         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59173         HAVE_DECL_FLOORL.
59174
59175 2007-10-28  Bruno Haible  <bruno@clisp.org>
59176
59177         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59178         gl_FUNC_FLOORL. Cache the result.
59179         (gl_FUNC_FLOORL): Use it.
59180         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59181         gl_FUNC_CEILL. Cache the result.
59182         (gl_FUNC_CEILL): Use it.
59183
59184         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59185         gl_FUNC_FLOOR. Cache the result.
59186         (gl_FUNC_FLOOR): Use it.
59187         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59188         gl_FUNC_CEIL. Cache the result.
59189         (gl_FUNC_CEIL): Use it.
59190
59191         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59192         gl_FUNC_FLOORF. Cache the result.
59193         (gl_FUNC_FLOORF): Use it.
59194         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59195         gl_FUNC_CEILF. Cache the result.
59196         (gl_FUNC_CEILF): Use it.
59197
59198 2007-10-28  Bruno Haible  <bruno@clisp.org>
59199
59200         * gnulib-tool: Allow specifying the LGPL version number through
59201         --lgpl=2 or --lgpl=3.
59202         (func_usage): Document --lgpl with argument.
59203         Handle --lgpl=... arguments.
59204         (func_import): Recognize also gl_LGPL calls with an argument. When
59205         --lgpl=2 is used and the module's license is just LGPL, report an
59206         error. Set sed_transform_lib_file according to the lgpl variable. In
59207         the generated files, use --lgpl or gl_LGPL invocations with argument,
59208         if necessary.
59209         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59210         an LGPv2+ license.
59211         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59212         gl_LGPL macro.
59213
59214 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59215             Bruno Haible  <bruno@clisp.org>
59216
59217         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59218         (u16_uctomb_aux): Likewise.
59219         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59220         !HAVE_INLINE.
59221         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59222
59223 2007-10-28  Bruno Haible  <bruno@clisp.org>
59224
59225         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59226         Invoke AM_GETTEXT_OPTION if it exists.
59227         * modules/vasprintf: Likewise.
59228         * modules/verror: Likewise.
59229         * modules/xprintf: Likewise.
59230         * modules/xvasprintf: Likewise.
59231
59232 2007-10-27  Ben Pfaff  <blp@gnu.org>
59233
59234         * lib/math.in.h: Define isfinite macro and prototypes for
59235         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59236         implementations.
59237         * m4/math_h.m4: New substitutions for isfinite module.
59238         * lib/isfinite.c: New file.
59239         * m4/isfinite.m4: New file.
59240         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59241         * modules/isfinite: New file.
59242         * modules/isfinite-tests: New file.
59243         * tests/tests-isfinite.c: New file.
59244         * doc/functions/isfinite.texi: Mention isfinite module.
59245         * MODULES.html.sh: Mention new module.
59246
59247 2007-10-27  Ben Pfaff  <blp@gnu.org>
59248
59249         Ralf Wildenhues reported that Tru64 4.0D declares the round
59250         functions but does not have definitions.
59251         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59252         cannot be found in any library, set the output variable to
59253         "missing" instead of "".
59254         * m4/round.m4: Also use our substitute if we cannot find round in
59255         any library, even if it is declared.
59256         * m4/roundf.m4: Likewise for roundf.
59257         * m4/roundl.m4: Likewise for roundl.
59258         * lib/math.in.h: Undefine roundf, round, roundl before defining
59259         their replacements, to allow for hypothetical systems where these
59260         may be defined as macros but not available in libraries.
59261
59262 2007-10-27  Bruno Haible  <bruno@clisp.org>
59263
59264         * doc/gnulib.texi: Invoke @firstparagraphindent.
59265         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59266         changes in gnulib.
59267         (Source changes): New section.
59268
59269 2007-10-26  Bruno Haible  <bruno@clisp.org>
59270
59271         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59272         borrowed from autoconf.
59273
59274 2007-10-26  Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59277         strerror returned the empty string. Needed on HP-UX 11.00.
59278
59279 2007-10-24  Micah Cowan  <micah@cowan.name>
59280
59281         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59282         * build-aux/bootstrap: Remove support for now-unnecessary option,
59283         --cvs-user, and envvars CVS_USER, CVS_RSH.
59284
59285 2007-10-24  Jim Meyering  <meyering@redhat.com>
59286
59287         Avoid diagnostics from sha1sum when there is no cached checksum.
59288         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59289         if the po.s1 file hasn't been created yet.
59290
59291         * build-aux/bootstrap: Sync from coreutils:
59292         2007-10-24  Jim Meyering  <meyering@redhat.com>
59293         Get gnulib from the git repository, not from an obsolete cvs one.
59294         * build-aux/bootstrap: Suggestion from Micah Cowan.
59295         2007-10-04  Jim Meyering  <jim@meyering.net>
59296         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59297         (update_po_files): Work also when there are no .po files in po/.
59298
59299 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         * README: Append ".git" to git and cg examples.
59302         Problem reported by Benoit Sigoure.
59303
59304 2007-10-23  Micah Cowan  <micah@cowan.name>
59305
59306         * users.txt: Add wget.
59307
59308 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59309
59310         Fix linking of some unistdio tests on FreeBSD.
59311         * modules/unistdio/u16-vsnprintf-tests
59312         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59313         * modules/unistdio/u16-vsprintf-tests
59314         (test_u16_vsnprintf1_LDADD): Likewise.
59315         * modules/unistdio/u32-vsnprintf-tests
59316         (test_u32_vsnprintf1_LDADD): Likewise.
59317         * modules/unistdio/u32-vsprintf-tests
59318         (test_u32_vsprintf1_LDADD): Likewise.
59319         * modules/unistdio/u8-vsnprintf-tests
59320         (test_u8_vsnprintf1_LDADD): Likewise.
59321         * modules/unistdio/u8-vsprintf-tests
59322         (test_u8_vsprintf1_LDADD): Likewise.
59323         * modules/unistdio/ulc-vsnprintf-tests
59324         (test_ulc_vsnprintf1_LDADD): Likewise.
59325         * modules/unistdio/ulc-vsprintf-tests
59326         (test_ulc_vsprintf1_LDADD): Likewise.
59327
59328         Fix linking of some uniconv tests on FreeBSD.
59329         * modules/uniconv/u16-conv-from-enc-tests
59330         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59331         * modules/uniconv/u16-conv-to-enc-tests
59332         (test_u16_conv_to_enc_LDADD): Likewise.
59333         * modules/uniconv/u16-strconv-from-enc-tests
59334         (test_u16_strconv_from_enc_LDADD): Likewise.
59335         * modules/uniconv/u16-strconv-to-enc-tests
59336         (test_u16_strconv_to_enc_LDADD): Likewise.
59337         * modules/uniconv/u32-conv-from-enc-tests
59338         (test_u32_conv_from_enc_LDADD): Likewise.
59339         * modules/uniconv/u32-conv-to-enc-tests
59340         (test_u32_conv_to_enc_LDADD): Likewise.
59341         * modules/uniconv/u32-strconv-from-enc-tests
59342         (test_u32_strconv_from_enc_LDADD): Likewise.
59343         * modules/uniconv/u32-strconv-to-enc-tests
59344         (test_u32_strconv_to_enc_LDADD): Likewise.
59345         * modules/uniconv/u8-conv-from-enc-tests
59346         (test_u8_conv_from_enc_LDADD): Likewise.
59347         * modules/uniconv/u8-conv-to-enc-tests
59348         (test_u8_conv_to_enc_LDADD): Likewise.
59349         * modules/uniconv/u8-strconv-from-enc-tests
59350         (test_u8_strconv_from_enc_LDADD): Likewise.
59351         * modules/uniconv/u8-strconv-to-enc-tests
59352         (test_u8_strconv_to_enc_LDADD): Likewise.
59353
59354 2007-10-22  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59357         size.
59358
59359 2007-10-22  Eric Blake  <ebb9@byu.net>
59360
59361         Tweak x*printf documentation.
59362         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59363         variable name and comments.
59364         Suggested by Bruno Haible.
59365
59366 2007-10-22  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/acl.c (copy_acl): Fix file name in comment.
59369
59370 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         Fix Tru64 problem with stdbool.h.
59373         * lib/stdbool.in.h (false, true):
59374         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59375         Don't declare as an enum in this situation; it runs afoul of Tru64.
59376         Problem reported by Steven M. Schweda in
59377         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59378
59379 2007-10-22  Eric Blake  <ebb9@byu.net>
59380
59381         Also wrap vf?printf.
59382         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59383         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59384         (xvprintf, xvfprintf): New functions.
59385
59386 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59387
59388         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59389         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59390
59391         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59392         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59393
59394 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59395
59396         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59397         by Bruno Haible.
59398
59399 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59400
59401         * lib/getloadavg.c
59402         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59403         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59404
59405         * tests/test-i-ring.c: Work for C89.
59406
59407 2007-10-22  Bruno Haible  <bruno@clisp.org>
59408
59409         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59410         -1u, in preprocessor expression, so that we don't test for the bug
59411         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59413
59414 2007-10-22  Eric Blake  <ebb9@byu.net>
59415
59416         * tests/test-yesno.sh: Silence stderr during test.
59417
59418 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59419
59420         * modules/crypto/gc-camellia: New file.
59421
59422         * m4/gc-camellia.m4: New file.
59423
59424         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59425
59426         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59427
59428 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59429
59430         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59431         --help to stdout.  Reported by sms@antinode.org (Steven
59432         M. Schweda).
59433
59434 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59435
59436         * users.txt: Fix link to libksba.
59437
59438 2007-10-21  Ben Pfaff  <blp@gnu.org>
59439
59440         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59441         round.c roundf implementation that depends on floorf and ceilf to
59442         be tested unconditionally.
59443
59444 2007-10-21  Ben Pfaff  <blp@gnu.org>
59445
59446         * m4/check-libm-func.m4: Removed.
59447         * m4/check-math-lib.m4: New file.
59448         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59449         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59450         definition and lack of AC_LIBOBJ([roundf]).
59451         * m4/roundl.m4: Ditto, and similarly for roundl.
59452         * modules/round: Reference new m4 file.
59453         * modules/roundf: Ditto.
59454         * modules/roundl: Ditto.
59455         * tests/test-round2.c (main): Use ROUND instead of round.
59456         Bug report from Bruno Haible.
59457
59458 2007-10-21  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59461         context.
59462
59463 2007-10-21  Bruno Haible  <bruno@clisp.org>
59464
59465         * tests/test-wcwidth.c (main): Allow negative result for some control
59466         characters.
59467
59468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59469         Needed on OSF/1 5.1.
59470
59471 2007-10-21  Bruno Haible  <bruno@clisp.org>
59472
59473         * tests/test-floorf1.c: Include isnanf.h.
59474         (main): Use isnanf() instead of isnan().
59475         * tests/test-ceilf1.c: Include isnanf.h.
59476         (main): Use isnanf() instead of isnan().
59477         * tests/test-truncf1.c: Include isnanf.h.
59478         (main): Use isnanf() instead of isnan().
59479         * tests/test-roundf1.c: Include isnanf.h.
59480         (main): Use isnanf() instead of isnan().
59481
59482 2007-10-21  Eric Blake  <ebb9@byu.net>
59483
59484         * users.txt: Update URL for m4.
59485
59486 2007-10-21  Bruno Haible  <bruno@clisp.org>
59487
59488         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59489
59490 2007-10-21  Bruno Haible  <bruno@clisp.org>
59491
59492         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59493         Git's management files if the CVS files are not present.
59494
59495 2007-10-20  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59498         gcc-3.4.x.
59499
59500 2007-10-20  Ben Pfaff  <blp@gnu.org>
59501
59502         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59503         implementations.
59504         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59505         * lib/round.c: New file.
59506         * lib/roundf.c: New file.
59507         * lib/roundl.c: New file.
59508         * m4/round.m4: New file.
59509         * m4/roundf.m4: New file.
59510         * m4/roundl.m4: New file.
59511         * m4/check-libm-func-m4: New file.
59512         * modules/math: Replace round, roundf, roundl related @VARS@ in
59513         math.in.h.
59514         * modules/round: New file.
59515         * modules/round-tests: New file.
59516         * modules/roundf: New file.
59517         * modules/roundf-tests: New file.
59518         * modules/roundl: New file.
59519         * modules/roundl-tests: New file.
59520         * tests/test-round1.c: New file.
59521         * tests/test-round2.c: New file.
59522         * tests/test-roundf1.c: New file.
59523         * tests/test-roundf2.c: New file.
59524         * tests/test-roundl.c: New file.
59525         * doc/functions/round.texi: Mention round module.
59526         * doc/functions/roundf.texi: Mention roundf module.
59527         * doc/functions/roundl.texi: Mention roundl module.
59528         * MODULES.html.sh: Mention new modules.
59529         Thanks to Bruno Haible for suggestions.
59530
59531 2007-10-20  Jim Meyering  <meyering@redhat.com>
59532
59533         * lib/xprintf.c: Include <config.h> unconditionally.
59534
59535         Change xprintf's license to GPL.
59536         * modules/xprintf (License): s/LGPL/GPL/, since this module
59537         depends on modules (exit and exitfail) which are GPL.
59538         Suggestion from Bruno Haible.
59539
59540         xprintf fixes.
59541         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59542         Use a clearer diagnostic.
59543         Patch from Bruno Haible.
59544
59545 2007-10-20  Bruno Haible  <bruno@clisp.org>
59546
59547         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59548         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59550
59551 2007-10-20  Bruno Haible  <bruno@clisp.org>
59552
59553         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59554         precision in the comparison result > x - 1 or similar.
59555         * tests/test-ceilf2.c (correct_result_p): Likewise.
59556         * tests/test-truncf2.c (correct_result_p): Likewise.
59557         * tests/test-trunc2.c (correct_result_p): Likewise.
59558         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59559
59560 2007-10-20  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/ceil: New file.
59563         * m4/ceil.m4: New file.
59564         * doc/functions/ceil.texi: Mention the 'ceil' module.
59565
59566 2007-10-20  Bruno Haible  <bruno@clisp.org>
59567
59568         * modules/floor: New file.
59569         * m4/floor.m4: New file.
59570         * doc/functions/floor.texi: Mention the 'floor' module.
59571
59572 2007-10-20  Bruno Haible  <bruno@clisp.org>
59573
59574         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59575         of %a.
59576         * modules/floorf-tests (Depends-on): Likewise.
59577         * modules/truncf-tests (Depends-on): Likewise.
59578         * modules/trunc-tests (Depends-on): Likewise.
59579         Reported by Ben Pfaff.
59580
59581 2007-10-19  Jim Meyering  <meyering@redhat.com>
59582
59583         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59584         Don't bother testing specific errno values.  Just test ferror.
59585
59586         New module: xprintf
59587         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59588
59589 2007-10-19  Bruno Haible  <bruno@clisp.org>
59590
59591         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59592         syntax.
59593         * modules/javaexec (Makefile.am): Likewise.
59594         * modules/relocatable-prog (Makefile.am): Likewise.
59595         Suggested by Jim Meyering.
59596
59597 2007-10-18  Bruno Haible  <bruno@clisp.org>
59598
59599         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59600         Reported by Jim Meyering.
59601
59602 2007-10-18  Eric Blake  <ebb9@byu.net>
59603
59604         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59605
59606 2007-10-18  Bruno Haible  <bruno@clisp.org>
59607
59608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59609         the format string into writable memory. Needed in Fortify conditions.
59610
59611 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59612             Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59615         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59616         * modules/trim (Depends-on): Add mbchar.
59617         (configure.ac): Add gl_FUNC_MBRTOWC.
59618         (Makefile.am): Augment lib_SOURCES.
59619
59620 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         Modify glob.c to use fstatat and dirfd, to simplify it.
59623         Suggested by Eric Blake.
59624         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59625         Don't include <stdbool.h>; not used.
59626         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59627         (link_exists_p): Simplify implementation, since we can now assume
59628         dirfd and fstatat.
59629         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59630
59631 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59632
59633         * gnulib-tool (func_get_dependencies): Fix sed script to
59634         match only tests.
59635
59636 2007-10-17  Bruno Haible  <bruno@clisp.org>
59637
59638         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59639         allow locale names without encoding suffix.
59640         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59641         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59642
59643 2007-10-16  Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59646         * lib/getgroups.c (getgroups): Likewise.
59647         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59648
59649 2007-10-16  Bruno Haible  <bruno@clisp.org>
59650
59651         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59652         * modules/malloc-posix (License): Likewise.
59653         * modules/realloc-posix (License): Likewise.
59654         * modules/calloc-posix (License): Likewise.
59655         * modules/intprops (License): Change from GPL to LGPL, with
59656         Paul Eggert's approval.
59657
59658 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         Merge glibc changes into lib/glob.c.
59661
59662         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59663         2007-10-15 04:59:03 UTC.  Here are the changes:
59664
59665         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59666
59667         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59668
59669         * lib/glob.c: Add some branch prediction throughout.
59670
59671         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59672
59673         [BZ #5103]
59674         * lib/glob.c (glob): Recognize patterns starting \/.
59675
59676         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59677
59678         [BZ #3996]
59679         * lib/glob.c (attribute_hidden): Define if not defined.
59680         (glob): Unescape dirname, filename or username when needed and not
59681         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59682         is NULL.  Handle unescaped [ in pattern without closing ].
59683         Don't pass GLOB_CHECK down to recursive glob for directories.
59684         (__glob_pattern_type): New function.
59685         (__glob_pattern_p): Implement using __glob_pattern_type.
59686         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59687         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59688         Remove unreachable code.
59689
59690         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59691
59692         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59693         explain why there are no leaks.
59694
59695         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59696
59697         [BZ #3253]
59698         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59699         time, rather allocate increasingly bigger arrays of pointers, if
59700         possible with alloca, if too large with malloc.
59701
59702 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59703
59704         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59705         Problem reported by H.Merijn Brand in
59706         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59707         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59708         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59709
59710 2007-10-15  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59713         with explicit rpl_ prefix.
59714         * lib/fopen.c (fopen): Likewise.
59715         * lib/freopen.c (freopen): Likewise.
59716         * lib/iconv.c (iconv): Likewise.
59717         * lib/iconv_close.c (iconv_close): Likewise.
59718
59719 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59720
59721         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59722
59723 2007-10-15  Bruno Haible  <bruno@clisp.org>
59724
59725         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59726         <stddef.h> instead of <stdlib.h> since we only need NULL.
59727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59728
59729 2007-10-15  Bruno Haible  <bruno@clisp.org>
59730
59731         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59732         Replace paragraph talking about LIBOBJS.
59733         Reported by Colin Watson <cjwatson@debian.org>.
59734
59735 2007-10-15  Bruno Haible  <bruno@clisp.org>
59736
59737         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59738         <stdlib.h> before using NULL.
59739
59740 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59741
59742         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59743         Reported by Albert Chin <china@thewrittenword.com>.
59744
59745 2007-10-14  Bruno Haible  <bruno@clisp.org>
59746
59747         * modules/iconv_open-utf-tests: New file.
59748         * tests/test-iconv-utf.c: New file.
59749
59750         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59751         * modules/iconv_open-utf: New file.
59752         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59753         (iconv, iconv_close): New declarations.
59754         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59755         be defined.
59756         (iconv_open): Add special handling of conversion between UTF-8 and
59757         UTF-{16,32}{BE,LE}.
59758         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59759         * lib/iconv_close.c: New file.
59760         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59761         gl_FUNC_ICONV_OPEN.
59762         (gl_FUNC_ICONV_OPEN): Use it.
59763         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59764         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59765         and REPLACE_ICONV_UTF.
59766         * modules/iconv_open (Depends-on): Add c-strcase.
59767         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59768         ICONV_CONST.
59769         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59770
59771 2007-10-13  Albert Chin  <china@thewrittenword.com>
59772             Bruno Haible  <bruno@clisp.org>
59773
59774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59775         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59776
59777 2007-10-13  Bruno Haible  <bruno@clisp.org>
59778
59779         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59780         defined, use the ISO C99 inline semantics.
59781         * lib/argp.h (ARGP_EI): Likewise.
59782
59783 2007-10-13  Bruno Haible  <bruno@clisp.org>
59784
59785         Handle 'inline' change in gcc 4.3.0.
59786         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59787         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59788         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59789         argp_fmtstream_point): Disable 'extern' declaration if the function
59790         definition is going to be provided inline.
59791         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59792         semantics, not the ISO C99 inline semantics.
59793         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59794         'extern' declaration if the function definition is going to be provided
59795         inline.
59796         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59797         the GNU C inline semantics, not the ISO C99 inline semantics. With
59798         GCC 4.2, avoid a warning.
59799
59800 2007-10-13  Bruno Haible  <bruno@clisp.org>
59801
59802         * lib/freading.h (freading): Enable the use of __freading for
59803         glibc >= 2.7.
59804         * lib/freading.c (freading): Likewise.
59805
59806 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59807
59808         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59809         "warning: C99 inline functions are not supported; using GNU89".
59810
59811 2007-10-12  Bruno Haible  <bruno@clisp.org>
59812
59813         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59814         of 2.
59815         * tests/test-ceilf2.c: New file.
59816         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59817
59818         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59819         * modules/ceilf-tests: Update.
59820
59821 2007-10-12  Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59824         of 2.
59825         * tests/test-floorf2.c: New file.
59826         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59827
59828         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59829         * modules/floorf-tests: Update.
59830
59831 2007-10-12  Bruno Haible  <bruno@clisp.org>
59832
59833         * tests/test-trunc2.c: New file.
59834         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59835
59836         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59837         * modules/trunc-tests: Update.
59838
59839 2007-10-12  Bruno Haible  <bruno@clisp.org>
59840
59841         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
59842         of 2.
59843         * tests/test-truncf2.c: New file.
59844         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
59845
59846         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
59847         * modules/truncf-tests: Update.
59848
59849 2007-10-11  Eric Blake  <ebb9@byu.net>
59850
59851         Don't claim strerror is broken on Interix.
59852         * doc/functions/strerror.texi (strerror): Known broken systems are
59853         now Solaris 8, and not Interix.
59854         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
59855         Interix on cross-compile.
59856         Reported by Martin Koeppe in
59857         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
59858
59859 2007-10-11  Bruno Haible  <bruno@clisp.org>
59860
59861         * modules/i-ring-tests: New file.
59862         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
59863         instead of assert.
59864
59865 2007-10-11  Bruno Haible  <bruno@clisp.org>
59866
59867         * modules/filenamecat-tests: New file.
59868         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
59869         * lib/filenamecat.c: Remove test code.
59870
59871 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
59874
59875         * lib/strerror.c: Include <string.h> always, to test interface,
59876         and to remove the need for the dummy.
59877         Include intprops.h to compute width instead of doing it ourselves
59878         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
59879         (strerror): Define it to return NULL if there's no system strerror.
59880         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
59881         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
59882         ancient pre-strerror Unix systems well any more.  Saying "unknown
59883         system error" is enough.
59884         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
59885         simpler strerror.c implementation.
59886         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
59887         Simplify the tests to reflect the simpler strerror implementation.
59888         * modules/strerror (Depends-on): Add intprops.
59889
59890 2007-10-09  Eric Blake  <ebb9@byu.net>
59891
59892         Silence test-fpending.
59893         * modules/fpending-tests (Files): Add wrapper script.
59894         * tests/test-fpending.sh: New file.
59895
59896 2007-10-09  Bruno Haible  <bruno@clisp.org>
59897
59898         * MODULES.html.sh (func_module): Don't create a hyperlink for
59899         function names like 'printf_frexp'.
59900         (Misc): Add crc, memxor.
59901         (Characteristics of floating types): New section.
59902         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
59903         isnanf-nolibm, signbit, trunc, truncf, truncl.
59904         (Enhancements for ISO C 99 functions): New subsection Input/output.
59905         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
59906         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
59907         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
59908         (Compatibility checks for POSIX:2001 functions): Add clock-time.
59909         (Enhancements for POSIX:2001 functions): Add chdir-long.
59910         (File system functions): Add areadlink, chdir-safer, read-file.
59911         Remove cycle-check.
59912         (File system as inode set): New section.
59913         (Date and time): Add gethrxtime.
59914         (Multithreading): Add openmp.
59915         (Internationalization functions): Add localename.
59916         (Unicode string functions): Add unistr/u*-mbsnlen.
59917         (Support for maintaining and releasing projects): Add git-version-gen.
59918         (Lone files): Remove directories.
59919
59920 2007-10-08  Ben Pfaff  <blp@gnu.org>
59921
59922         * lib/xmalloca.h: Fix typo in comment.
59923
59924 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59925
59926         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
59927         when avoiding problems with integer overflow.  Use a portable test
59928         instead.
59929
59930 2007-10-08  Simon Josefsson  <simon@josefsson.org>
59931
59932         * modules/dummy (License): Change to LGPLv2+.
59933         * modules/float (License): Likewise
59934         * modules/realloc (License): Likewise
59935         * modules/stdlib (License): Likewise
59936
59937 2007-10-07  Bruno Haible  <bruno@clisp.org>
59938
59939         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
59940         * floor.c (TWO_MANT_DIG): Likewise.
59941         * ceil.c (TWO_MANT_DIG): Likewise.
59942         Reported by Ben Pfaff.
59943
59944 2007-10-07  Bruno Haible  <bruno@clisp.org>
59945
59946         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
59947         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
59948         * lib/frexp.c (FUNC): Likewise.
59949         * lib/printf-frexp.h (printf_frexp): Likewise.
59950         * lib/printf-frexpl.h (printf_frexpl): Likewise.
59951         * lib/printf-frexp.c (FUNC): Likewise.
59952         Suggested by Jim Meyering.
59953
59954 2007-10-07  Jim Meyering  <meyering@redhat.com>
59955
59956         Make xnanosleep's integer overflow test more robust.
59957         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
59958         so that gcc-4.3.0 doesn't optimize away this test for overflow.
59959
59960 2007-10-07  Bruno Haible  <bruno@clisp.org>
59961
59962         * NEWS: Mention the license change.
59963
59964         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
59965         abbreviations in the modules files.
59966
59967         Change copyright notice from GPLv2+ to GPLv3+.
59968         * README: Change copyright notice.
59969         * MODULES.html.sh: Likewise.
59970         * build-aux/bootstrap.conf: Likewise.
59971         * build-aux/config.libpath: Likewise.
59972         * build-aux/csharpcomp.sh.in: Likewise.
59973         * build-aux/csharpexec.sh.in: Likewise.
59974         * build-aux/install-reloc: Likewise.
59975         * build-aux/javacomp.sh.in: Likewise.
59976         * build-aux/javaexec.sh.in: Likewise.
59977         * build-aux/ldd.sh.in: Likewise.
59978         * build-aux/reloc-ldflags: Likewise.
59979         * build-aux/relocatable.sh.in: Likewise.
59980         * build-aux/x-to-1.in: Likewise.
59981         * check-module: Likewise.
59982         * config/srclistvars.sh: Likewise.
59983         * gnulib-tool: Likewise.
59984         * lib/acl-internal.h: Likewise.
59985         * lib/acl.c: Likewise.
59986         * lib/acl.h: Likewise.
59987         * lib/acl_entries.c: Likewise.
59988         * lib/areadlink-with-size.c: Likewise.
59989         * lib/areadlink.c: Likewise.
59990         * lib/areadlink.h: Likewise.
59991         * lib/argmatch.c: Likewise.
59992         * lib/argmatch.h: Likewise.
59993         * lib/argp-ba.c: Likewise.
59994         * lib/argp-eexst.c: Likewise.
59995         * lib/argp-fmtstream.c: Likewise.
59996         * lib/argp-fmtstream.h: Likewise.
59997         * lib/argp-fs-xinl.c: Likewise.
59998         * lib/argp-help.c: Likewise.
59999         * lib/argp-namefrob.h: Likewise.
60000         * lib/argp-parse.c: Likewise.
60001         * lib/argp-pin.c: Likewise.
60002         * lib/argp-pv.c: Likewise.
60003         * lib/argp-pvh.c: Likewise.
60004         * lib/argp-xinl.c: Likewise.
60005         * lib/argp.h: Likewise.
60006         * lib/at-func.c: Likewise.
60007         * lib/atanl.c: Likewise.
60008         * lib/backupfile.c: Likewise.
60009         * lib/backupfile.h: Likewise.
60010         * lib/basename.c: Likewise.
60011         * lib/binary-io.h: Likewise.
60012         * lib/byteswap.in.h: Likewise.
60013         * lib/c-stack.c: Likewise.
60014         * lib/c-stack.h: Likewise.
60015         * lib/c-strcasestr.c: Likewise.
60016         * lib/c-strcasestr.h: Likewise.
60017         * lib/c-strstr.c: Likewise.
60018         * lib/c-strstr.h: Likewise.
60019         * lib/c-strtod.c: Likewise.
60020         * lib/calloc.c: Likewise.
60021         * lib/canon-host.c: Likewise.
60022         * lib/canon-host.h: Likewise.
60023         * lib/canonicalize-lgpl.c: Likewise.
60024         * lib/canonicalize.c: Likewise.
60025         * lib/canonicalize.h: Likewise.
60026         * lib/ceil.c: Likewise.
60027         * lib/ceilf.c: Likewise.
60028         * lib/ceill.c: Likewise.
60029         * lib/chdir-long.c: Likewise.
60030         * lib/chdir-long.h: Likewise.
60031         * lib/chdir-safer.c: Likewise.
60032         * lib/chdir-safer.h: Likewise.
60033         * lib/chown.c: Likewise.
60034         * lib/classpath.c: Likewise.
60035         * lib/classpath.h: Likewise.
60036         * lib/clean-temp.c: Likewise.
60037         * lib/clean-temp.h: Likewise.
60038         * lib/cloexec.c: Likewise.
60039         * lib/close-stream.c: Likewise.
60040         * lib/closein.c: Likewise.
60041         * lib/closein.h: Likewise.
60042         * lib/closeout.c: Likewise.
60043         * lib/closeout.h: Likewise.
60044         * lib/concat-filename.c: Likewise.
60045         * lib/copy-file.c: Likewise.
60046         * lib/copy-file.h: Likewise.
60047         * lib/count-one-bits.h: Likewise.
60048         * lib/crc.c: Likewise.
60049         * lib/crc.h: Likewise.
60050         * lib/creat-safer.c: Likewise.
60051         * lib/csharpcomp.c: Likewise.
60052         * lib/csharpcomp.h: Likewise.
60053         * lib/csharpexec.c: Likewise.
60054         * lib/csharpexec.h: Likewise.
60055         * lib/cycle-check.c: Likewise.
60056         * lib/cycle-check.h: Likewise.
60057         * lib/diacrit.c: Likewise.
60058         * lib/diacrit.h: Likewise.
60059         * lib/diffseq.h: Likewise.
60060         * lib/dirchownmod.c: Likewise.
60061         * lib/dirent.in.h: Likewise.
60062         * lib/dirfd.c: Likewise.
60063         * lib/dirfd.h: Likewise.
60064         * lib/dirname.c: Likewise.
60065         * lib/dirname.h: Likewise.
60066         * lib/dummy.c: Likewise.
60067         * lib/dup-safer.c: Likewise.
60068         * lib/dup2.c: Likewise.
60069         * lib/eealloc.h: Likewise.
60070         * lib/error.c: Likewise.
60071         * lib/error.h: Likewise.
60072         * lib/euidaccess.c: Likewise.
60073         * lib/exclude.c: Likewise.
60074         * lib/exclude.h: Likewise.
60075         * lib/execute.c: Likewise.
60076         * lib/execute.h: Likewise.
60077         * lib/exitfail.c: Likewise.
60078         * lib/exitfail.h: Likewise.
60079         * lib/expl.c: Likewise.
60080         * lib/fatal-signal.c: Likewise.
60081         * lib/fatal-signal.h: Likewise.
60082         * lib/fbufmode.c: Likewise.
60083         * lib/fbufmode.h: Likewise.
60084         * lib/fchdir.c: Likewise.
60085         * lib/fchmodat.c: Likewise.
60086         * lib/fchownat.c: Likewise.
60087         * lib/fcntl--.h: Likewise.
60088         * lib/fcntl-safer.h: Likewise.
60089         * lib/fcntl.in.h: Likewise.
60090         * lib/fd-safer.c: Likewise.
60091         * lib/fflush.c: Likewise.
60092         * lib/file-has-acl.c: Likewise.
60093         * lib/file-set.c: Likewise.
60094         * lib/file-type.c: Likewise.
60095         * lib/file-type.h: Likewise.
60096         * lib/fileblocks.c: Likewise.
60097         * lib/filemode.c: Likewise.
60098         * lib/filemode.h: Likewise.
60099         * lib/filename.h: Likewise.
60100         * lib/filenamecat.c: Likewise.
60101         * lib/filenamecat.h: Likewise.
60102         * lib/findprog.c: Likewise.
60103         * lib/findprog.h: Likewise.
60104         * lib/float.in.h: Likewise.
60105         * lib/floor.c: Likewise.
60106         * lib/floorf.c: Likewise.
60107         * lib/floorl.c: Likewise.
60108         * lib/fopen-safer.c: Likewise.
60109         * lib/fopen.c: Likewise.
60110         * lib/fpending.c: Likewise.
60111         * lib/fpending.h: Likewise.
60112         * lib/fprintf.c: Likewise.
60113         * lib/fprintftime.h: Likewise.
60114         * lib/fpucw.h: Likewise.
60115         * lib/fpurge.c: Likewise.
60116         * lib/fpurge.h: Likewise.
60117         * lib/freadable.c: Likewise.
60118         * lib/freadable.h: Likewise.
60119         * lib/freadahead.c: Likewise.
60120         * lib/freadahead.h: Likewise.
60121         * lib/freading.c: Likewise.
60122         * lib/freading.h: Likewise.
60123         * lib/free.c: Likewise.
60124         * lib/freopen.c: Likewise.
60125         * lib/frexp.c: Likewise.
60126         * lib/frexpl.c: Likewise.
60127         * lib/fseek.c: Likewise.
60128         * lib/fseterr.c: Likewise.
60129         * lib/fseterr.h: Likewise.
60130         * lib/fstatat.c: Likewise.
60131         * lib/fstrcmp.c: Likewise.
60132         * lib/fstrcmp.h: Likewise.
60133         * lib/fsusage.c: Likewise.
60134         * lib/fsusage.h: Likewise.
60135         * lib/ftell.c: Likewise.
60136         * lib/ftello.c: Likewise.
60137         * lib/fts-cycle.c: Likewise.
60138         * lib/fts.c: Likewise.
60139         * lib/fts_.h: Likewise.
60140         * lib/full-read.c: Likewise.
60141         * lib/full-read.h: Likewise.
60142         * lib/full-write.c: Likewise.
60143         * lib/full-write.h: Likewise.
60144         * lib/fwritable.c: Likewise.
60145         * lib/fwritable.h: Likewise.
60146         * lib/fwriteerror.c: Likewise.
60147         * lib/fwriteerror.h: Likewise.
60148         * lib/fwriting.c: Likewise.
60149         * lib/fwriting.h: Likewise.
60150         * lib/gcd.c: Likewise.
60151         * lib/gcd.h: Likewise.
60152         * lib/getcwd.c: Likewise.
60153         * lib/getdate.h: Likewise.
60154         * lib/getdate.y: Likewise.
60155         * lib/getdomainname.c: Likewise.
60156         * lib/getdomainname.h: Likewise.
60157         * lib/getgroups.c: Likewise.
60158         * lib/gethostname.c: Likewise.
60159         * lib/gethrxtime.c: Likewise.
60160         * lib/gethrxtime.h: Likewise.
60161         * lib/getloadavg.c: Likewise.
60162         * lib/getndelim2.c: Likewise.
60163         * lib/getndelim2.h: Likewise.
60164         * lib/getnline.c: Likewise.
60165         * lib/getnline.h: Likewise.
60166         * lib/getopt.c: Likewise.
60167         * lib/getopt.in.h: Likewise.
60168         * lib/getopt1.c: Likewise.
60169         * lib/getopt_int.h: Likewise.
60170         * lib/getpagesize.h: Likewise.
60171         * lib/getsubopt.c: Likewise.
60172         * lib/gettime.c: Likewise.
60173         * lib/getugroups.c: Likewise.
60174         * lib/getugroups.h: Likewise.
60175         * lib/getusershell.c: Likewise.
60176         * lib/gl_anyavltree_list1.h: Likewise.
60177         * lib/gl_anyavltree_list2.h: Likewise.
60178         * lib/gl_anyhash_list1.h: Likewise.
60179         * lib/gl_anyhash_list2.h: Likewise.
60180         * lib/gl_anylinked_list1.h: Likewise.
60181         * lib/gl_anylinked_list2.h: Likewise.
60182         * lib/gl_anyrbtree_list1.h: Likewise.
60183         * lib/gl_anyrbtree_list2.h: Likewise.
60184         * lib/gl_anytree_list1.h: Likewise.
60185         * lib/gl_anytree_list2.h: Likewise.
60186         * lib/gl_anytree_oset.h: Likewise.
60187         * lib/gl_anytreehash_list1.h: Likewise.
60188         * lib/gl_anytreehash_list2.h: Likewise.
60189         * lib/gl_array_list.c: Likewise.
60190         * lib/gl_array_list.h: Likewise.
60191         * lib/gl_array_oset.c: Likewise.
60192         * lib/gl_array_oset.h: Likewise.
60193         * lib/gl_avltree_list.c: Likewise.
60194         * lib/gl_avltree_list.h: Likewise.
60195         * lib/gl_avltree_oset.c: Likewise.
60196         * lib/gl_avltree_oset.h: Likewise.
60197         * lib/gl_avltreehash_list.c: Likewise.
60198         * lib/gl_avltreehash_list.h: Likewise.
60199         * lib/gl_carray_list.c: Likewise.
60200         * lib/gl_carray_list.h: Likewise.
60201         * lib/gl_linked_list.c: Likewise.
60202         * lib/gl_linked_list.h: Likewise.
60203         * lib/gl_linkedhash_list.c: Likewise.
60204         * lib/gl_linkedhash_list.h: Likewise.
60205         * lib/gl_list.c: Likewise.
60206         * lib/gl_list.h: Likewise.
60207         * lib/gl_oset.c: Likewise.
60208         * lib/gl_oset.h: Likewise.
60209         * lib/gl_rbtree_list.c: Likewise.
60210         * lib/gl_rbtree_list.h: Likewise.
60211         * lib/gl_rbtree_oset.c: Likewise.
60212         * lib/gl_rbtree_oset.h: Likewise.
60213         * lib/gl_rbtreehash_list.c: Likewise.
60214         * lib/gl_rbtreehash_list.h: Likewise.
60215         * lib/gl_sublist.c: Likewise.
60216         * lib/gl_sublist.h: Likewise.
60217         * lib/group-member.c: Likewise.
60218         * lib/group-member.h: Likewise.
60219         * lib/hard-locale.c: Likewise.
60220         * lib/hard-locale.h: Likewise.
60221         * lib/hash-pjw.c: Likewise.
60222         * lib/hash-pjw.h: Likewise.
60223         * lib/hash-triple.c: Likewise.
60224         * lib/hash.c: Likewise.
60225         * lib/hash.h: Likewise.
60226         * lib/human.c: Likewise.
60227         * lib/human.h: Likewise.
60228         * lib/i-ring.c: Likewise.
60229         * lib/i-ring.h: Likewise.
60230         * lib/idcache.c: Likewise.
60231         * lib/imaxabs.c: Likewise.
60232         * lib/imaxdiv.c: Likewise.
60233         * lib/inet_pton.c: Likewise.
60234         * lib/inet_pton.h: Likewise.
60235         * lib/intprops.h: Likewise.
60236         * lib/inttostr.c: Likewise.
60237         * lib/inttostr.h: Likewise.
60238         * lib/inttypes.in.h: Likewise.
60239         * lib/isapipe.c: Likewise.
60240         * lib/isdir.c: Likewise.
60241         * lib/isnan.c: Likewise.
60242         * lib/isnan.h: Likewise.
60243         * lib/isnanf.c: Likewise.
60244         * lib/isnanf.h: Likewise.
60245         * lib/isnanl-nolibm.h: Likewise.
60246         * lib/isnanl.c: Likewise.
60247         * lib/isnanl.h: Likewise.
60248         * lib/javacomp.c: Likewise.
60249         * lib/javacomp.h: Likewise.
60250         * lib/javaexec.c: Likewise.
60251         * lib/javaexec.h: Likewise.
60252         * lib/javaversion.c: Likewise.
60253         * lib/javaversion.h: Likewise.
60254         * lib/javaversion.java: Likewise.
60255         * lib/lbrkprop.h: Likewise.
60256         * lib/lchmod.h: Likewise.
60257         * lib/lchown.c: Likewise.
60258         * lib/ldexpl.c: Likewise.
60259         * lib/linebreak.c: Likewise.
60260         * lib/linebreak.h: Likewise.
60261         * lib/linebuffer.c: Likewise.
60262         * lib/linebuffer.h: Likewise.
60263         * lib/locale.in.h: Likewise.
60264         * lib/logl.c: Likewise.
60265         * lib/long-options.c: Likewise.
60266         * lib/long-options.h: Likewise.
60267         * lib/lstat.c: Likewise.
60268         * lib/lstat.h: Likewise.
60269         * lib/math.in.h: Likewise.
60270         * lib/mbchar.c: Likewise.
60271         * lib/mbchar.h: Likewise.
60272         * lib/mbfile.h: Likewise.
60273         * lib/mbiter.h: Likewise.
60274         * lib/mbscasecmp.c: Likewise.
60275         * lib/mbscasestr.c: Likewise.
60276         * lib/mbschr.c: Likewise.
60277         * lib/mbscspn.c: Likewise.
60278         * lib/mbslen.c: Likewise.
60279         * lib/mbsncasecmp.c: Likewise.
60280         * lib/mbsnlen.c: Likewise.
60281         * lib/mbspbrk.c: Likewise.
60282         * lib/mbspcasecmp.c: Likewise.
60283         * lib/mbsrchr.c: Likewise.
60284         * lib/mbssep.c: Likewise.
60285         * lib/mbsspn.c: Likewise.
60286         * lib/mbsstr.c: Likewise.
60287         * lib/mbstok_r.c: Likewise.
60288         * lib/mbswidth.c: Likewise.
60289         * lib/mbswidth.h: Likewise.
60290         * lib/mbuiter.h: Likewise.
60291         * lib/memcasecmp.c: Likewise.
60292         * lib/memcasecmp.h: Likewise.
60293         * lib/memchr.c: Likewise.
60294         * lib/memcmp.c: Likewise.
60295         * lib/memcoll.c: Likewise.
60296         * lib/memcoll.h: Likewise.
60297         * lib/memcpy.c: Likewise.
60298         * lib/memrchr.c: Likewise.
60299         * lib/mkancesdirs.c: Likewise.
60300         * lib/mkdir-p.c: Likewise.
60301         * lib/mkdir-p.h: Likewise.
60302         * lib/mkdir.c: Likewise.
60303         * lib/mkdirat.c: Likewise.
60304         * lib/mkdtemp.c: Likewise.
60305         * lib/mkstemp-safer.c: Likewise.
60306         * lib/mkstemp.c: Likewise.
60307         * lib/modechange.c: Likewise.
60308         * lib/modechange.h: Likewise.
60309         * lib/mountlist.c: Likewise.
60310         * lib/mountlist.h: Likewise.
60311         * lib/mpsort.c: Likewise.
60312         * lib/nanosleep.c: Likewise.
60313         * lib/obstack.c: Likewise.
60314         * lib/obstack.h: Likewise.
60315         * lib/open-safer.c: Likewise.
60316         * lib/open.c: Likewise.
60317         * lib/openat-die.c: Likewise.
60318         * lib/openat-priv.h: Likewise.
60319         * lib/openat-proc.c: Likewise.
60320         * lib/openat.c: Likewise.
60321         * lib/openat.h: Likewise.
60322         * lib/pagealign_alloc.c: Likewise.
60323         * lib/pagealign_alloc.h: Likewise.
60324         * lib/physmem.c: Likewise.
60325         * lib/physmem.h: Likewise.
60326         * lib/pipe-safer.c: Likewise.
60327         * lib/pipe.c: Likewise.
60328         * lib/pipe.h: Likewise.
60329         * lib/posixtm.c: Likewise.
60330         * lib/posixtm.h: Likewise.
60331         * lib/posixver.c: Likewise.
60332         * lib/printf-frexp.c: Likewise.
60333         * lib/printf-frexp.h: Likewise.
60334         * lib/printf-frexpl.c: Likewise.
60335         * lib/printf-frexpl.h: Likewise.
60336         * lib/printf.c: Likewise.
60337         * lib/progname.c: Likewise.
60338         * lib/progname.h: Likewise.
60339         * lib/progreloc.c: Likewise.
60340         * lib/putenv.c: Likewise.
60341         * lib/quote.c: Likewise.
60342         * lib/quote.h: Likewise.
60343         * lib/quotearg.c: Likewise.
60344         * lib/quotearg.h: Likewise.
60345         * lib/raise.c: Likewise.
60346         * lib/readline.c: Likewise.
60347         * lib/readline.h: Likewise.
60348         * lib/readlink.c: Likewise.
60349         * lib/readtokens.c: Likewise.
60350         * lib/readtokens.h: Likewise.
60351         * lib/readtokens0.c: Likewise.
60352         * lib/readtokens0.h: Likewise.
60353         * lib/readutmp.c: Likewise.
60354         * lib/readutmp.h: Likewise.
60355         * lib/realloc.c: Likewise.
60356         * lib/relocwrapper.c: Likewise.
60357         * lib/rename-dest-slash.c: Likewise.
60358         * lib/rename.c: Likewise.
60359         * lib/rmdir.c: Likewise.
60360         * lib/rpmatch.c: Likewise.
60361         * lib/safe-read.c: Likewise.
60362         * lib/safe-read.h: Likewise.
60363         * lib/safe-write.c: Likewise.
60364         * lib/safe-write.h: Likewise.
60365         * lib/same-inode.h: Likewise.
60366         * lib/same.c: Likewise.
60367         * lib/same.h: Likewise.
60368         * lib/save-cwd.c: Likewise.
60369         * lib/save-cwd.h: Likewise.
60370         * lib/savedir.c: Likewise.
60371         * lib/savedir.h: Likewise.
60372         * lib/savewd.c: Likewise.
60373         * lib/savewd.h: Likewise.
60374         * lib/search.in.h: Likewise.
60375         * lib/setenv.c: Likewise.
60376         * lib/setenv.h: Likewise.
60377         * lib/settime.c: Likewise.
60378         * lib/sh-quote.c: Likewise.
60379         * lib/sh-quote.h: Likewise.
60380         * lib/sig2str.c: Likewise.
60381         * lib/sig2str.h: Likewise.
60382         * lib/signal.in.h: Likewise.
60383         * lib/signbitd.c: Likewise.
60384         * lib/signbitf.c: Likewise.
60385         * lib/signbitl.c: Likewise.
60386         * lib/sigprocmask.c: Likewise.
60387         * lib/sincosl.c: Likewise.
60388         * lib/sleep.c: Likewise.
60389         * lib/sprintf.c: Likewise.
60390         * lib/sqrtl.c: Likewise.
60391         * lib/stat-time.h: Likewise.
60392         * lib/stdio--.h: Likewise.
60393         * lib/stdio-safer.h: Likewise.
60394         * lib/stdlib--.h: Likewise.
60395         * lib/stdlib-safer.h: Likewise.
60396         * lib/stdlib.in.h: Likewise.
60397         * lib/stpcpy.c: Likewise.
60398         * lib/stpncpy.c: Likewise.
60399         * lib/strchrnul.c: Likewise.
60400         * lib/strcspn.c: Likewise.
60401         * lib/strerror.c: Likewise.
60402         * lib/strftime.c: Likewise.
60403         * lib/strftime.h: Likewise.
60404         * lib/striconveh.c: Likewise.
60405         * lib/striconveh.h: Likewise.
60406         * lib/striconveha.c: Likewise.
60407         * lib/striconveha.h: Likewise.
60408         * lib/stripslash.c: Likewise.
60409         * lib/strnlen1.c: Likewise.
60410         * lib/strnlen1.h: Likewise.
60411         * lib/strtod.c: Likewise.
60412         * lib/strtoimax.c: Likewise.
60413         * lib/strtok_r.c: Likewise.
60414         * lib/strtol.c: Likewise.
60415         * lib/strtoll.c: Likewise.
60416         * lib/strtoul.c: Likewise.
60417         * lib/strtoull.c: Likewise.
60418         * lib/sysexits.in.h: Likewise.
60419         * lib/tempname.c: Likewise.
60420         * lib/tempname.h: Likewise.
60421         * lib/timespec.h: Likewise.
60422         * lib/tls.c: Likewise.
60423         * lib/tls.h: Likewise.
60424         * lib/tmpdir.c: Likewise.
60425         * lib/tmpdir.h: Likewise.
60426         * lib/tmpfile-safer.c: Likewise.
60427         * lib/tmpfile.c: Likewise.
60428         * lib/trigl.c: Likewise.
60429         * lib/trigl.h: Likewise.
60430         * lib/trim.c: Likewise.
60431         * lib/trim.h: Likewise.
60432         * lib/trunc.c: Likewise.
60433         * lib/truncf.c: Likewise.
60434         * lib/truncl.c: Likewise.
60435         * lib/tsearch.c: Likewise.
60436         * lib/unicodeio.c: Likewise.
60437         * lib/unicodeio.h: Likewise.
60438         * lib/unistd--.h: Likewise.
60439         * lib/unistd-safer.h: Likewise.
60440         * lib/unistdio/ulc-fprintf.c: Likewise.
60441         * lib/unistdio/ulc-vfprintf.c: Likewise.
60442         * lib/unlinkdir.c: Likewise.
60443         * lib/unlinkdir.h: Likewise.
60444         * lib/unlocked-io.h: Likewise.
60445         * lib/unsetenv.c: Likewise.
60446         * lib/userspec.c: Likewise.
60447         * lib/utime.c: Likewise.
60448         * lib/utimecmp.c: Likewise.
60449         * lib/utimecmp.h: Likewise.
60450         * lib/utimens.c: Likewise.
60451         * lib/verify.h: Likewise.
60452         * lib/verror.c: Likewise.
60453         * lib/verror.h: Likewise.
60454         * lib/version-etc-fsf.c: Likewise.
60455         * lib/version-etc.c: Likewise.
60456         * lib/version-etc.h: Likewise.
60457         * lib/vfprintf.c: Likewise.
60458         * lib/vprintf.c: Likewise.
60459         * lib/vsprintf.c: Likewise.
60460         * lib/w32spawn.h: Likewise.
60461         * lib/wait-process.c: Likewise.
60462         * lib/wait-process.h: Likewise.
60463         * lib/wcwidth.c: Likewise.
60464         * lib/write-any-file.c: Likewise.
60465         * lib/xalloc-die.c: Likewise.
60466         * lib/xalloc.h: Likewise.
60467         * lib/xasprintf.c: Likewise.
60468         * lib/xgetcwd.c: Likewise.
60469         * lib/xgetcwd.h: Likewise.
60470         * lib/xgetdomainname.c: Likewise.
60471         * lib/xgetdomainname.h: Likewise.
60472         * lib/xgethostname.c: Likewise.
60473         * lib/xmalloc.c: Likewise.
60474         * lib/xmalloca.c: Likewise.
60475         * lib/xmalloca.h: Likewise.
60476         * lib/xmemcoll.c: Likewise.
60477         * lib/xnanosleep.c: Likewise.
60478         * lib/xreadlink.c: Likewise.
60479         * lib/xreadlink.h: Likewise.
60480         * lib/xsetenv.c: Likewise.
60481         * lib/xsetenv.h: Likewise.
60482         * lib/xstriconv.c: Likewise.
60483         * lib/xstriconv.h: Likewise.
60484         * lib/xstrndup.c: Likewise.
60485         * lib/xstrndup.h: Likewise.
60486         * lib/xstrtod.c: Likewise.
60487         * lib/xstrtod.h: Likewise.
60488         * lib/xstrtol-error.c: Likewise.
60489         * lib/xstrtol.c: Likewise.
60490         * lib/xstrtol.h: Likewise.
60491         * lib/xtime.h: Likewise.
60492         * lib/xvasprintf.c: Likewise.
60493         * lib/xvasprintf.h: Likewise.
60494         * lib/yesno.c: Likewise.
60495         * lib/yesno.h: Likewise.
60496         * posix-modules: Likewise.
60497         * tests/test-alloca-opt.c: Likewise.
60498         * tests/test-arcfour.c: Likewise.
60499         * tests/test-arctwo.c: Likewise.
60500         * tests/test-argmatch.c: Likewise.
60501         * tests/test-argp-2.sh: Likewise.
60502         * tests/test-argp.c: Likewise.
60503         * tests/test-arpa_inet.c: Likewise.
60504         * tests/test-array_list.c: Likewise.
60505         * tests/test-array_oset.c: Likewise.
60506         * tests/test-atexit.c: Likewise.
60507         * tests/test-avltree_list.c: Likewise.
60508         * tests/test-avltree_oset.c: Likewise.
60509         * tests/test-avltreehash_list.c: Likewise.
60510         * tests/test-base64.c: Likewise.
60511         * tests/test-binary-io.c: Likewise.
60512         * tests/test-byteswap.c: Likewise.
60513         * tests/test-c-ctype.c: Likewise.
60514         * tests/test-c-strcasecmp.c: Likewise.
60515         * tests/test-c-strcasestr.c: Likewise.
60516         * tests/test-c-strncasecmp.c: Likewise.
60517         * tests/test-c-strstr.c: Likewise.
60518         * tests/test-canonicalize-lgpl.c: Likewise.
60519         * tests/test-canonicalize.c: Likewise.
60520         * tests/test-carray_list.c: Likewise.
60521         * tests/test-ceilf.c: Likewise.
60522         * tests/test-ceill.c: Likewise.
60523         * tests/test-count-one-bits.c: Likewise.
60524         * tests/test-crc.c: Likewise.
60525         * tests/test-dirname.c: Likewise.
60526         * tests/test-fbufmode.c: Likewise.
60527         * tests/test-fcntl.c: Likewise.
60528         * tests/test-fflush.c: Likewise.
60529         * tests/test-floorf.c: Likewise.
60530         * tests/test-floorl.c: Likewise.
60531         * tests/test-fopen.c: Likewise.
60532         * tests/test-fprintf-posix.c: Likewise.
60533         * tests/test-fprintf-posix.h: Likewise.
60534         * tests/test-fpurge.c: Likewise.
60535         * tests/test-freadable.c: Likewise.
60536         * tests/test-freadahead.c: Likewise.
60537         * tests/test-freading.c: Likewise.
60538         * tests/test-freopen.c: Likewise.
60539         * tests/test-frexp.c: Likewise.
60540         * tests/test-frexpl.c: Likewise.
60541         * tests/test-fseek.c: Likewise.
60542         * tests/test-fseeko.c: Likewise.
60543         * tests/test-fseterr.c: Likewise.
60544         * tests/test-fstrcmp.c: Likewise.
60545         * tests/test-ftell.c: Likewise.
60546         * tests/test-ftello.c: Likewise.
60547         * tests/test-fwritable.c: Likewise.
60548         * tests/test-fwriting.c: Likewise.
60549         * tests/test-getaddrinfo.c: Likewise.
60550         * tests/test-getpass.c: Likewise.
60551         * tests/test-gettimeofday.c: Likewise.
60552         * tests/test-hmac-md5.c: Likewise.
60553         * tests/test-hmac-sha1.c: Likewise.
60554         * tests/test-iconv.c: Likewise.
60555         * tests/test-iconvme.c: Likewise.
60556         * tests/test-inttypes.c: Likewise.
60557         * tests/test-isnan.c: Likewise.
60558         * tests/test-isnanf.c: Likewise.
60559         * tests/test-isnanl-nolibm.c: Likewise.
60560         * tests/test-isnanl.c: Likewise.
60561         * tests/test-isnanl.h: Likewise.
60562         * tests/test-ldexpl.c: Likewise.
60563         * tests/test-linked_list.c: Likewise.
60564         * tests/test-linkedhash_list.c: Likewise.
60565         * tests/test-locale.c: Likewise.
60566         * tests/test-localename.c: Likewise.
60567         * tests/test-lock.c: Likewise.
60568         * tests/test-lseek.c: Likewise.
60569         * tests/test-malloca.c: Likewise.
60570         * tests/test-math.c: Likewise.
60571         * tests/test-mbscasecmp.c: Likewise.
60572         * tests/test-mbscasestr1.c: Likewise.
60573         * tests/test-mbscasestr2.c: Likewise.
60574         * tests/test-mbscasestr3.c: Likewise.
60575         * tests/test-mbscasestr4.c: Likewise.
60576         * tests/test-mbschr.c: Likewise.
60577         * tests/test-mbscspn.c: Likewise.
60578         * tests/test-mbsncasecmp.c: Likewise.
60579         * tests/test-mbspbrk.c: Likewise.
60580         * tests/test-mbspcasecmp.c: Likewise.
60581         * tests/test-mbsrchr.c: Likewise.
60582         * tests/test-mbsspn.c: Likewise.
60583         * tests/test-mbsstr1.c: Likewise.
60584         * tests/test-mbsstr2.c: Likewise.
60585         * tests/test-mbsstr3.c: Likewise.
60586         * tests/test-md5.c: Likewise.
60587         * tests/test-memmem.c: Likewise.
60588         * tests/test-netinet_in.c: Likewise.
60589         * tests/test-open.c: Likewise.
60590         * tests/test-printf-frexp.c: Likewise.
60591         * tests/test-printf-frexpl.c: Likewise.
60592         * tests/test-printf-posix.c: Likewise.
60593         * tests/test-printf-posix.h: Likewise.
60594         * tests/test-rbtree_list.c: Likewise.
60595         * tests/test-rbtree_oset.c: Likewise.
60596         * tests/test-rbtreehash_list.c: Likewise.
60597         * tests/test-read-file.c: Likewise.
60598         * tests/test-rijndael.c: Likewise.
60599         * tests/test-search.c: Likewise.
60600         * tests/test-signbit.c: Likewise.
60601         * tests/test-sleep.c: Likewise.
60602         * tests/test-snprintf-posix.c: Likewise.
60603         * tests/test-snprintf-posix.h: Likewise.
60604         * tests/test-snprintf.c: Likewise.
60605         * tests/test-sprintf-posix.c: Likewise.
60606         * tests/test-sprintf-posix.h: Likewise.
60607         * tests/test-stat-time.c: Likewise.
60608         * tests/test-stdbool.c: Likewise.
60609         * tests/test-stdint.c: Likewise.
60610         * tests/test-stdio.c: Likewise.
60611         * tests/test-stdlib.c: Likewise.
60612         * tests/test-stpncpy.c: Likewise.
60613         * tests/test-strcasestr.c: Likewise.
60614         * tests/test-striconv.c: Likewise.
60615         * tests/test-striconveh.c: Likewise.
60616         * tests/test-striconveha.c: Likewise.
60617         * tests/test-string.c: Likewise.
60618         * tests/test-sys_select.c: Likewise.
60619         * tests/test-sys_socket.c: Likewise.
60620         * tests/test-sys_stat.c: Likewise.
60621         * tests/test-sys_time.c: Likewise.
60622         * tests/test-sysexits.c: Likewise.
60623         * tests/test-time.c: Likewise.
60624         * tests/test-tls.c: Likewise.
60625         * tests/test-trunc.c: Likewise.
60626         * tests/test-truncf.c: Likewise.
60627         * tests/test-truncl.c: Likewise.
60628         * tests/test-unistd.c: Likewise.
60629         * tests/test-vasnprintf-posix.c: Likewise.
60630         * tests/test-vasnprintf-posix2.c: Likewise.
60631         * tests/test-vasnprintf.c: Likewise.
60632         * tests/test-vasprintf-posix.c: Likewise.
60633         * tests/test-vasprintf.c: Likewise.
60634         * tests/test-verify.c: Likewise.
60635         * tests/test-vfprintf-posix.c: Likewise.
60636         * tests/test-vprintf-posix.c: Likewise.
60637         * tests/test-vsnprintf-posix.c: Likewise.
60638         * tests/test-vsnprintf.c: Likewise.
60639         * tests/test-vsprintf-posix.c: Likewise.
60640         * tests/test-wchar.c: Likewise.
60641         * tests/test-wctype.c: Likewise.
60642         * tests/test-wcwidth.c: Likewise.
60643         * tests/test-xstrtol.c: Likewise.
60644         * tests/test-xvasprintf.c: Likewise.
60645         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60646         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60647         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60648         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60649         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60650         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60651         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60652         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60653         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60654         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60655         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60656         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60657         * tests/uniname/test-uninames.c: Likewise.
60658         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60659         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60660         * tests/unistdio/test-u16-printf1.h: Likewise.
60661         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60662         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60663         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60664         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60665         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60666         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60667         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60668         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60669         * tests/unistdio/test-u32-printf1.h: Likewise.
60670         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60671         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60672         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60673         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60674         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60675         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60676         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60677         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60678         * tests/unistdio/test-u8-printf1.h: Likewise.
60679         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60680         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60681         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60682         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60683         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60684         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60685         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60686         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60687         * tests/unistdio/test-ulc-printf1.h: Likewise.
60688         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60689         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60690         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60691         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60692         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60693         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60694         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60695         * tests/uniwidth/test-u16-width.c: Likewise.
60696         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60697         * tests/uniwidth/test-u32-width.c: Likewise.
60698         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60699         * tests/uniwidth/test-u8-width.c: Likewise.
60700         * tests/uniwidth/test-uc_width.c: Likewise.
60701         * config/srclist-update: Likewise.
60702         (fixlicense): Update to GPLv3+.
60703
60704         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60705         * tests/test-tsearch.c: Change copyright notice.
60706
60707         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60708         * lib/c-strcaseeq.h: Change copyright notice.
60709         * lib/streq.h: Likewise.
60710         * lib/uniconv.h: Likewise.
60711         * lib/uniconv/u-conv-from-enc.h: Likewise.
60712         * lib/uniconv/u-conv-to-enc.h: Likewise.
60713         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60714         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60715         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60716         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60717         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60718         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60719         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60720         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60721         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60722         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60723         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60724         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60725         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60726         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60727         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60728         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60729         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60730         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60731         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60732         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60733         * lib/uniname.h: Likewise.
60734         * lib/uniname/uniname.c: Likewise.
60735         * lib/unistdio.h: Likewise.
60736         * lib/unistdio/u-asnprintf.h: Likewise.
60737         * lib/unistdio/u-asprintf.h: Likewise.
60738         * lib/unistdio/u-printf-args.c: Likewise.
60739         * lib/unistdio/u-printf-args.h: Likewise.
60740         * lib/unistdio/u-printf-parse.h: Likewise.
60741         * lib/unistdio/u-snprintf.h: Likewise.
60742         * lib/unistdio/u-sprintf.h: Likewise.
60743         * lib/unistdio/u-vasprintf.h: Likewise.
60744         * lib/unistdio/u-vsnprintf.h: Likewise.
60745         * lib/unistdio/u-vsprintf.h: Likewise.
60746         * lib/unistdio/u16-asnprintf.c: Likewise.
60747         * lib/unistdio/u16-asprintf.c: Likewise.
60748         * lib/unistdio/u16-printf-parse.c: Likewise.
60749         * lib/unistdio/u16-snprintf.c: Likewise.
60750         * lib/unistdio/u16-sprintf.c: Likewise.
60751         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60752         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60753         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60754         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60755         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60756         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60757         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60758         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60759         * lib/unistdio/u16-vasnprintf.c: Likewise.
60760         * lib/unistdio/u16-vasprintf.c: Likewise.
60761         * lib/unistdio/u16-vsnprintf.c: Likewise.
60762         * lib/unistdio/u16-vsprintf.c: Likewise.
60763         * lib/unistdio/u32-asnprintf.c: Likewise.
60764         * lib/unistdio/u32-asprintf.c: Likewise.
60765         * lib/unistdio/u32-printf-parse.c: Likewise.
60766         * lib/unistdio/u32-snprintf.c: Likewise.
60767         * lib/unistdio/u32-sprintf.c: Likewise.
60768         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60769         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60770         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60771         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60772         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60773         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60774         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60775         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60776         * lib/unistdio/u32-vasnprintf.c: Likewise.
60777         * lib/unistdio/u32-vasprintf.c: Likewise.
60778         * lib/unistdio/u32-vsnprintf.c: Likewise.
60779         * lib/unistdio/u32-vsprintf.c: Likewise.
60780         * lib/unistdio/u8-asnprintf.c: Likewise.
60781         * lib/unistdio/u8-asprintf.c: Likewise.
60782         * lib/unistdio/u8-printf-parse.c: Likewise.
60783         * lib/unistdio/u8-snprintf.c: Likewise.
60784         * lib/unistdio/u8-sprintf.c: Likewise.
60785         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60786         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60787         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60788         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60789         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60790         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60791         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60792         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60793         * lib/unistdio/u8-vasnprintf.c: Likewise.
60794         * lib/unistdio/u8-vasprintf.c: Likewise.
60795         * lib/unistdio/u8-vsnprintf.c: Likewise.
60796         * lib/unistdio/u8-vsprintf.c: Likewise.
60797         * lib/unistdio/ulc-asnprintf.c: Likewise.
60798         * lib/unistdio/ulc-asprintf.c: Likewise.
60799         * lib/unistdio/ulc-printf-parse.c: Likewise.
60800         * lib/unistdio/ulc-snprintf.c: Likewise.
60801         * lib/unistdio/ulc-sprintf.c: Likewise.
60802         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60803         * lib/unistdio/ulc-vasprintf.c: Likewise.
60804         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60805         * lib/unistdio/ulc-vsprintf.c: Likewise.
60806         * lib/unistr.h: Likewise.
60807         * lib/unistr/u-cpy-alloc.h: Likewise.
60808         * lib/unistr/u-cpy.h: Likewise.
60809         * lib/unistr/u-endswith.h: Likewise.
60810         * lib/unistr/u-move.h: Likewise.
60811         * lib/unistr/u-set.h: Likewise.
60812         * lib/unistr/u-startswith.h: Likewise.
60813         * lib/unistr/u-stpcpy.h: Likewise.
60814         * lib/unistr/u-stpncpy.h: Likewise.
60815         * lib/unistr/u-strcat.h: Likewise.
60816         * lib/unistr/u-strcpy.h: Likewise.
60817         * lib/unistr/u-strcspn.h: Likewise.
60818         * lib/unistr/u-strdup.h: Likewise.
60819         * lib/unistr/u-strlen.h: Likewise.
60820         * lib/unistr/u-strncat.h: Likewise.
60821         * lib/unistr/u-strncpy.h: Likewise.
60822         * lib/unistr/u-strnlen.h: Likewise.
60823         * lib/unistr/u-strpbrk.h: Likewise.
60824         * lib/unistr/u-strspn.h: Likewise.
60825         * lib/unistr/u-strstr.h: Likewise.
60826         * lib/unistr/u-strtok.h: Likewise.
60827         * lib/unistr/u16-check.c: Likewise.
60828         * lib/unistr/u16-chr.c: Likewise.
60829         * lib/unistr/u16-cmp.c: Likewise.
60830         * lib/unistr/u16-cpy-alloc.c: Likewise.
60831         * lib/unistr/u16-cpy.c: Likewise.
60832         * lib/unistr/u16-endswith.c: Likewise.
60833         * lib/unistr/u16-mblen.c: Likewise.
60834         * lib/unistr/u16-mbsnlen.c: Likewise.
60835         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60836         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60837         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60838         * lib/unistr/u16-mbtouc.c: Likewise.
60839         * lib/unistr/u16-mbtoucr.c: Likewise.
60840         * lib/unistr/u16-move.c: Likewise.
60841         * lib/unistr/u16-next.c: Likewise.
60842         * lib/unistr/u16-prev.c: Likewise.
60843         * lib/unistr/u16-set.c: Likewise.
60844         * lib/unistr/u16-startswith.c: Likewise.
60845         * lib/unistr/u16-stpcpy.c: Likewise.
60846         * lib/unistr/u16-stpncpy.c: Likewise.
60847         * lib/unistr/u16-strcat.c: Likewise.
60848         * lib/unistr/u16-strchr.c: Likewise.
60849         * lib/unistr/u16-strcmp.c: Likewise.
60850         * lib/unistr/u16-strcpy.c: Likewise.
60851         * lib/unistr/u16-strcspn.c: Likewise.
60852         * lib/unistr/u16-strdup.c: Likewise.
60853         * lib/unistr/u16-strlen.c: Likewise.
60854         * lib/unistr/u16-strmblen.c: Likewise.
60855         * lib/unistr/u16-strmbtouc.c: Likewise.
60856         * lib/unistr/u16-strncat.c: Likewise.
60857         * lib/unistr/u16-strncmp.c: Likewise.
60858         * lib/unistr/u16-strncpy.c: Likewise.
60859         * lib/unistr/u16-strnlen.c: Likewise.
60860         * lib/unistr/u16-strpbrk.c: Likewise.
60861         * lib/unistr/u16-strrchr.c: Likewise.
60862         * lib/unistr/u16-strspn.c: Likewise.
60863         * lib/unistr/u16-strstr.c: Likewise.
60864         * lib/unistr/u16-strtok.c: Likewise.
60865         * lib/unistr/u16-to-u32.c: Likewise.
60866         * lib/unistr/u16-to-u8.c: Likewise.
60867         * lib/unistr/u16-uctomb-aux.c: Likewise.
60868         * lib/unistr/u16-uctomb.c: Likewise.
60869         * lib/unistr/u32-check.c: Likewise.
60870         * lib/unistr/u32-chr.c: Likewise.
60871         * lib/unistr/u32-cmp.c: Likewise.
60872         * lib/unistr/u32-cpy-alloc.c: Likewise.
60873         * lib/unistr/u32-cpy.c: Likewise.
60874         * lib/unistr/u32-endswith.c: Likewise.
60875         * lib/unistr/u32-mblen.c: Likewise.
60876         * lib/unistr/u32-mbsnlen.c: Likewise.
60877         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60878         * lib/unistr/u32-mbtouc.c: Likewise.
60879         * lib/unistr/u32-mbtoucr.c: Likewise.
60880         * lib/unistr/u32-move.c: Likewise.
60881         * lib/unistr/u32-next.c: Likewise.
60882         * lib/unistr/u32-prev.c: Likewise.
60883         * lib/unistr/u32-set.c: Likewise.
60884         * lib/unistr/u32-startswith.c: Likewise.
60885         * lib/unistr/u32-stpcpy.c: Likewise.
60886         * lib/unistr/u32-stpncpy.c: Likewise.
60887         * lib/unistr/u32-strcat.c: Likewise.
60888         * lib/unistr/u32-strchr.c: Likewise.
60889         * lib/unistr/u32-strcmp.c: Likewise.
60890         * lib/unistr/u32-strcpy.c: Likewise.
60891         * lib/unistr/u32-strcspn.c: Likewise.
60892         * lib/unistr/u32-strdup.c: Likewise.
60893         * lib/unistr/u32-strlen.c: Likewise.
60894         * lib/unistr/u32-strmblen.c: Likewise.
60895         * lib/unistr/u32-strmbtouc.c: Likewise.
60896         * lib/unistr/u32-strncat.c: Likewise.
60897         * lib/unistr/u32-strncmp.c: Likewise.
60898         * lib/unistr/u32-strncpy.c: Likewise.
60899         * lib/unistr/u32-strnlen.c: Likewise.
60900         * lib/unistr/u32-strpbrk.c: Likewise.
60901         * lib/unistr/u32-strrchr.c: Likewise.
60902         * lib/unistr/u32-strspn.c: Likewise.
60903         * lib/unistr/u32-strstr.c: Likewise.
60904         * lib/unistr/u32-strtok.c: Likewise.
60905         * lib/unistr/u32-to-u16.c: Likewise.
60906         * lib/unistr/u32-to-u8.c: Likewise.
60907         * lib/unistr/u32-uctomb.c: Likewise.
60908         * lib/unistr/u8-check.c: Likewise.
60909         * lib/unistr/u8-chr.c: Likewise.
60910         * lib/unistr/u8-cmp.c: Likewise.
60911         * lib/unistr/u8-cpy-alloc.c: Likewise.
60912         * lib/unistr/u8-cpy.c: Likewise.
60913         * lib/unistr/u8-endswith.c: Likewise.
60914         * lib/unistr/u8-mblen.c: Likewise.
60915         * lib/unistr/u8-mbsnlen.c: Likewise.
60916         * lib/unistr/u8-mbtouc-aux.c: Likewise.
60917         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60918         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60919         * lib/unistr/u8-mbtouc.c: Likewise.
60920         * lib/unistr/u8-mbtoucr.c: Likewise.
60921         * lib/unistr/u8-move.c: Likewise.
60922         * lib/unistr/u8-next.c: Likewise.
60923         * lib/unistr/u8-prev.c: Likewise.
60924         * lib/unistr/u8-set.c: Likewise.
60925         * lib/unistr/u8-startswith.c: Likewise.
60926         * lib/unistr/u8-stpcpy.c: Likewise.
60927         * lib/unistr/u8-stpncpy.c: Likewise.
60928         * lib/unistr/u8-strcat.c: Likewise.
60929         * lib/unistr/u8-strchr.c: Likewise.
60930         * lib/unistr/u8-strcmp.c: Likewise.
60931         * lib/unistr/u8-strcpy.c: Likewise.
60932         * lib/unistr/u8-strcspn.c: Likewise.
60933         * lib/unistr/u8-strdup.c: Likewise.
60934         * lib/unistr/u8-strlen.c: Likewise.
60935         * lib/unistr/u8-strmblen.c: Likewise.
60936         * lib/unistr/u8-strmbtouc.c: Likewise.
60937         * lib/unistr/u8-strncat.c: Likewise.
60938         * lib/unistr/u8-strncmp.c: Likewise.
60939         * lib/unistr/u8-strncpy.c: Likewise.
60940         * lib/unistr/u8-strnlen.c: Likewise.
60941         * lib/unistr/u8-strpbrk.c: Likewise.
60942         * lib/unistr/u8-strrchr.c: Likewise.
60943         * lib/unistr/u8-strspn.c: Likewise.
60944         * lib/unistr/u8-strstr.c: Likewise.
60945         * lib/unistr/u8-strtok.c: Likewise.
60946         * lib/unistr/u8-to-u16.c: Likewise.
60947         * lib/unistr/u8-to-u32.c: Likewise.
60948         * lib/unistr/u8-uctomb-aux.c: Likewise.
60949         * lib/unistr/u8-uctomb.c: Likewise.
60950         * lib/unitypes.h: Likewise.
60951         * lib/uniwidth.h: Likewise.
60952         * lib/uniwidth/cjk.h: Likewise.
60953         * lib/uniwidth/u16-strwidth.c: Likewise.
60954         * lib/uniwidth/u16-width.c: Likewise.
60955         * lib/uniwidth/u32-strwidth.c: Likewise.
60956         * lib/uniwidth/u32-width.c: Likewise.
60957         * lib/uniwidth/u8-strwidth.c: Likewise.
60958         * lib/uniwidth/u8-width.c: Likewise.
60959         * lib/uniwidth/width.c: Likewise.
60960
60961 2007-10-07  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
60964         The file is still under LGPL (see modules/inttypes).
60965
60966 2007-10-06  Bruno Haible  <bruno@clisp.org>
60967
60968         * modules/trunc (Dependencies): Add 'extensions'.
60969         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
60970         Reported by Ben Pfaff <blp@gnu.org>.
60971
60972 2007-10-06  Bruno Haible  <bruno@clisp.org>
60973
60974         * modules/freopen-tests: New file.
60975         * tests/test-freopen.c: New file.
60976
60977         * modules/fopen-tests: New file.
60978         * tests/test-fopen.c: New file.
60979
60980         * modules/fopen: New file.
60981         * lib/fopen.c: New file.
60982         * m4/fopen.m4: New file.
60983         * modules/freopen: New file.
60984         * lib/freopen.c: New file.
60985         * m4/freopen.m4: New file.
60986         * lib/stdio.in.h (fopen, freopen): New declarations.
60987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
60988         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60989         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
60990         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60991         * doc/functions/fopen.texi: Mention the 'fopen' module.
60992         * doc/functions/freopen.texi: Mention the 'freopen' module.
60993
60994 2007-10-06  Bruno Haible  <bruno@clisp.org>
60995
60996         * modules/open-tests: New file.
60997         * tests/test-open.c: New file.
60998
60999         * modules/open: New file.
61000         * lib/open.c: New file.
61001         * m4/open.m4: New file.
61002         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61003         lib/open.c does.
61004         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61005         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61006         macros.
61007         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61008         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61009         REPLACE_OPEN.
61010         * doc/functions/open.texi: Mention the 'open' module.
61011
61012 2007-10-04  Bruno Haible  <bruno@clisp.org>
61013
61014         * modules/ceill-tests: New file.
61015         * tests/test-ceill.c: New file.
61016
61017         * modules/ceill: New file.
61018         * lib/ceill.c: Replace entire file.
61019         * m4/ceill.m4: New file.
61020         * lib/math.in.h (ceill): Replace declaration.
61021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61022         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61023         * doc/functions/ceill.texi: Mention the 'ceill' module.
61024         * modules/mathl (Files): Remove lib/ceill.c.
61025         (Depends-on): Add ceill.
61026
61027 2007-10-04  Bruno Haible  <bruno@clisp.org>
61028
61029         * modules/ceilf-tests: New file.
61030         * tests/test-ceilf.c: New file.
61031
61032         * modules/ceilf: New file.
61033         * lib/ceil.c: New file.
61034         * lib/ceilf.c: New file.
61035         * m4/ceilf.m4: New file.
61036         * lib/math.in.h (ceilf): New declaration.
61037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61038         HAVE_DECL_CEILF.
61039         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61040         HAVE_DECL_CEILF.
61041         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61042
61043 2007-10-04  Bruno Haible  <bruno@clisp.org>
61044
61045         * modules/floorl-tests: New file.
61046         * tests/test-floorl.c: New file.
61047
61048         * modules/floorl: New file.
61049         * lib/floorl.c: Replace entire file.
61050         * m4/floorl.m4: New file.
61051         * lib/math.in.h (floorl): Replace declaration.
61052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61053         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61054         * doc/functions/floorl.texi: Mention the 'floorl' module.
61055         * modules/mathl (Files): Remove lib/floorl.c.
61056         (Depends-on): Add floorl.
61057
61058 2007-10-04  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/floorf-tests: New file.
61061         * tests/test-floorf.c: New file.
61062
61063         * modules/floorf: New file.
61064         * lib/floor.c: New file.
61065         * lib/floorf.c: New file.
61066         * m4/floorf.m4: New file.
61067         * lib/math.in.h (floorf): New declaration.
61068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61069         HAVE_DECL_FLOORF.
61070         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61071         HAVE_DECL_FLOORF.
61072         * doc/functions/floorf.texi: Mention the 'floorf' module.
61073
61074 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61075             Bruno Haible  <bruno@clisp.org>
61076
61077         Advertise for the Git server instead of the CVS server.
61078         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61079         repository instead of the CVS one.
61080         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61081         about all VCS systems generically.
61082         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61083
61084 2007-10-04  Bruno Haible  <bruno@clisp.org>
61085
61086         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61087         means.
61088         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61089
61090 2007-10-04  Bruno Haible  <bruno@clisp.org>
61091
61092         * modules/truncl-tests: New file.
61093         * tests/test-truncl.c: New file.
61094
61095         * modules/truncl: New file.
61096         * lib/truncl.c: New file.
61097         * m4/truncl.m4: New file.
61098         * lib/math.in.h (truncl): New declaration.
61099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61100         HAVE_DECL_TRUNCL.
61101         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61102         HAVE_DECL_TRUNCL.
61103         * doc/functions/truncl.texi: Mention the 'truncl' module.
61104
61105 2007-10-04  Bruno Haible  <bruno@clisp.org>
61106
61107         * modules/truncf-tests: New file.
61108         * tests/test-truncf.c: New file.
61109
61110         * modules/truncf: New file.
61111         * lib/trunc.c: Make paramerizable through USE_* macros.
61112         * lib/truncf.c: New file.
61113         * m4/truncf.m4: New file.
61114         * lib/math.in.h (truncf): New declaration.
61115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61116         HAVE_DECL_TRUNCF.
61117         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61118         HAVE_DECL_TRUNCF.
61119         * doc/functions/truncf.texi: Mention the 'truncf' module.
61120
61121 2007-10-03  Bruno Haible  <bruno@clisp.org>
61122
61123         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61124         augmentation also for tests modules.
61125         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61126         * modules/atexit-tests (Makefile.am): Likewise.
61127         * modules/binary-io-tests (Makefile.am): Likewise.
61128         * modules/c-strcase-tests (Makefile.am): Likewise.
61129         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61130         * modules/canonicalize-tests (Makefile.am): Likewise.
61131         * modules/closein-tests (Makefile.am): Likewise.
61132         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61133         * modules/freadahead-tests (Makefile.am): Likewise.
61134         * modules/fseek-tests (Makefile.am): Likewise.
61135         * modules/fseeko-tests (Makefile.am): Likewise.
61136         * modules/ftell-tests (Makefile.am): Likewise.
61137         * modules/ftello-tests (Makefile.am): Likewise.
61138         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61139         * modules/isnanl-tests (Makefile.am): Likewise.
61140         * modules/lseek-tests (Makefile.am): Likewise.
61141         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61142         * modules/mbscasestr-tests (Makefile.am): Likewise.
61143         * modules/mbschr-tests (Makefile.am): Likewise.
61144         * modules/mbscspn-tests (Makefile.am): Likewise.
61145         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61146         * modules/mbspbrk-tests (Makefile.am): Likewise.
61147         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61148         * modules/mbsrchr-tests (Makefile.am): Likewise.
61149         * modules/mbsspn-tests (Makefile.am): Likewise.
61150         * modules/mbsstr-tests (Makefile.am): Likewise.
61151         * modules/printf-posix-tests (Makefile.am): Likewise.
61152         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61153         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61154         * modules/tsearch-tests (Makefile.am): Likewise.
61155         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61156         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61157         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61158         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61159         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61160         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61161         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61162         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61163         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61164         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61165         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61166         * modules/xstrtol-tests (Makefile.am): Likewise.
61167         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61168         * modules/yesno-tests (Makefile.am): Likewise.
61169
61170 2007-10-03  Bruno Haible  <bruno@clisp.org>
61171
61172         * modules/trunc-tests: New file.
61173         * tests/test-trunc.c: New file.
61174
61175         * modules/trunc: New file.
61176         * lib/trunc.c: New file.
61177         * m4/trunc.m4: New file.
61178         * lib/math.in.h (trunc): New declaration.
61179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61180         HAVE_DECL_TRUNC.
61181         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61182         HAVE_DECL_TRUNC.
61183         * doc/functions/trunc.texi: Mention the 'trunc' module.
61184
61185 2007-10-03  Bruno Haible  <bruno@clisp.org>
61186
61187         * tests/test-fpending.c: New file, mostly copied
61188         from coreutils/lib/t-fpending.c.
61189         * modules/fpending-tests: New file.
61190
61191 2007-10-03  Bruno Haible  <bruno@clisp.org>
61192
61193         Port the stdio extensions to QNX (untested).
61194         * lib/fseterr.c (fseterr): Add support for QNX.
61195         * lib/fbufmode.c (fbufmode): Likewise.
61196         * lib/freadable.c (freadable): Likewise.
61197         * lib/fwritable.c (fwritable): Likewise.
61198         * lib/freading.c (freading): Likewise.
61199         * lib/fwriting.c (fwriting): Likewise.
61200         * lib/freadahead.c (freadahed): Likewise.
61201         * lib/fpurge.c (fpurge): Likewise.
61202         * lib/fseeko.c (rpl_fseeko): Likewise.
61203
61204 2007-10-03  Bruno Haible  <bruno@clisp.org>
61205             Jim Meyering  <jim@meyering.net>
61206             Eric Blake  <ebb9@byu.net>
61207
61208         * doc/relocatable.texi: Use @command instead of @program.
61209
61210 2007-10-02  Jim Meyering  <jim@meyering.net>
61211
61212         Perform one more "_.h" -> ".in.h" substitution.
61213         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61214         instead of unistd_.h here, too.
61215
61216 2007-10-01  Bruno Haible  <bruno@clisp.org>
61217
61218         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61219         Needed for the alloca-opt module.
61220
61221 2007-09-30  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61224         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61225         alloca_.h.
61226         * lib/argz.in.h: Renamed from lib/argz_.h.
61227         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61228         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61229         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61230         byteswap_.h.
61231         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61232         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61233         dirent_.h.
61234         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61235         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61236         fcntl_.h.
61237         * lib/float.in.h: Renamed from lib/float_.h.
61238         * modules/float (Files, Makefile.am): Use float.in.h instead of
61239         float_.h.
61240         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61241         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61242         fnmatch_.h.
61243         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61244         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61245         getopt_.h.
61246         * lib/glob.in.h: Renamed from lib/glob_.h.
61247         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61248         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61249         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61250         iconv_.h.
61251         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61252         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61253         inttypes_.h.
61254         * lib/locale.in.h: Renamed from lib/locale_.h.
61255         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61256         locale_.h.
61257         * lib/math.in.h: Renamed from lib/math_.h.
61258         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61259         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61260         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61261         of netinet_in_.h. Add dependency.
61262         * lib/poll.in.h: Renamed from lib/poll_.h.
61263         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61264         * lib/search.in.h: Renamed from lib/search_.h.
61265         * modules/search (Files, Makefile.am): Use search.in.h instead of
61266         search_.h.
61267         * lib/signal.in.h: Renamed from lib/signal_.h.
61268         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61269         _signal.h.
61270         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61271         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61272         stdbool_.h.
61273         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61274         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61275         stdint_.h.
61276         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61277         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61278         stdio_.h.
61279         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61280         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61281         stdlib_.h.
61282         * lib/string.in.h: Renamed from lib/string_.h.
61283         * modules/string (Files, Makefile.am): Use string.in.h instead of
61284         string_.h.
61285         * doc/gnulib-tool.texi (Initial import): Update.
61286         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61287         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61288         of sys_select_.h. Add dependency.
61289         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61290         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61291         of sys_socket_.h.
61292         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61293         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61294         sys_stat_.h.
61295         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61296         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61297         sys_time_.h.
61298         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61299         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61300         sysexits_.h.
61301         * lib/time.in.h: Renamed from lib/time_.h.
61302         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61303         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61304         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61305         unistd_.h.
61306         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61307         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61308         wchar_.h.
61309         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61310         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61311         wctype_.h.
61312         * build-aux/bootstrap (slurp): Update.
61313         * lib/.cppi-disable: Update.
61314
61315 2007-09-30  Bruno Haible  <bruno@clisp.org>
61316
61317         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61318         Needed on BeOS.
61319
61320 2007-09-30  Bruno Haible  <bruno@clisp.org>
61321
61322         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61323
61324 2007-09-29  Bruno Haible  <bruno@clisp.org>
61325
61326         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61327
61328 2007-09-29  Bruno Haible  <bruno@clisp.org>
61329
61330         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61331         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61332         * build-aux/install-reloc: Compile also areadlink.c.
61333         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61334
61335 2007-09-29  Bruno Haible  <bruno@clisp.org>
61336
61337         * gnulib-tool (func_emit_initmacro_done): Indentation.
61338
61339 2007-09-29  Bruno Haible  <bruno@clisp.org>
61340
61341         * README: Add CVS checkout update instructions.
61342         Info from Bob Proulx <bob@proulx.com>.
61343
61344 2007-09-28  Eric Blake  <ebb9@byu.net>
61345
61346         Provide move-if-change.
61347         * build-aux/move-if-change: New file, based on best practice
61348         rather than any canonical upstream location.
61349
61350 2007-09-28  Jim Meyering  <jim@meyering.net>
61351
61352         Fix canonicalize loop-detection corner case.
61353         Do not attempt to stat the symlink values stored via seen_triple.
61354         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61355         on linux-2.6.18, (but not 2.6.22).
61356         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61357         triple_compare.  The former compares dev,ino,filename, while the latter
61358         would actually stat dirname(filename) when dev and ino were equal.
61359         * lib/hash-triple.c: Install <string.h>.
61360         (STREQ): Define.
61361         (triple_compare_ino_str): New function.
61362         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61363
61364 2007-09-28  Eric Blake  <ebb9@byu.net>
61365
61366         Enforce that AC_REPLACE_FUNCS files exist.
61367         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61368         override check for typos.
61369
61370         Fix test-closein on Solaris 10.
61371         * tests/test-closein.c (main): Don't assume stdin can be inherited
61372         closed on all systems.
61373         * tests/test-closein.sh: Likewise.
61374         Reported by Piotr Tarnowski.
61375
61376 2007-09-28  Jim Meyering  <jim@meyering.net>
61377
61378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61379
61380 2007-09-27  Jim Meyering  <jim@meyering.net>
61381
61382         canonicalize: Avoid a false-positive cycle failure.
61383         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61384         Sort.  Remove cycle-check.
61385         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61386         not cycle-check.h.
61387         (seen_triple): New function.
61388         (canonicalize_filename_mode): Use it instead of cycle-check.
61389         * tests/test-canonicalize.c: Add a test for this bug.
61390         * tests/test-canonicalize.sh: Set up and run the test.
61391
61392         New module, file-set, from coreutils.
61393         * modules/file-set: Define it.
61394         * lib/file-set.c, lib/file-set.h: Implement.
61395
61396         New module, hash-triple, from coreutils.
61397         * modules/hash-triple: Define it.
61398         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61399
61400 2007-09-25  Eric Blake  <ebb9@byu.net>
61401
61402         Fix strerror on Interix.
61403         * lib/string_.h (strerror): Declare replacement.
61404         * doc/functions/strerror.texi (strerror): Document the Interix
61405         shortcoming.
61406         * modules/string (Makefile.am): Support new hooks.
61407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61408         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61409         gl_FUNC_STRERROR_SEPARATE.
61410         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61411         * lib/strerror.c (rpl_strerror): Provide replacement.
61412         * modules/strerror (Depends-on): Add string.
61413         (configure.ac): Detect use of module.
61414         * tests/test-strerror.c: New file.
61415         * modules/strerror-tests: New test module.
61416         * modules/argp (Depends-on): Add strerror.
61417         * modules/error (Depends-on): Likewise.
61418         Reported by Martin Koeppe.
61419
61420 2007-09-24  Bruno Haible  <bruno@clisp.org>
61421
61422         * README: Update git instructions.
61423
61424 2007-09-24  Eric Blake  <ebb9@byu.net>
61425
61426         Revert fpending breakage from 2007-09-08.
61427         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61428         __fpending.c.
61429
61430 2007-09-24  Jim Meyering  <jim@meyering.net>
61431
61432         filenamecat.c: Add a test.
61433         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61434         showing how the function works when DIR is the empty string.
61435
61436 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61437
61438         * tests/test-canonicalize.sh: Turn on executable bit.
61439
61440 2007-09-19  Eric Blake  <ebb9@byu.net>
61441
61442         * README: Update CVS instructions.
61443
61444 2007-09-18  Bruno Haible  <bruno@clisp.org>
61445
61446         * modules/areadlink: New file.
61447         * lib/areadlink.h (areadlink): New declaration.
61448         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61449
61450 2007-09-17  Jim Meyering  <jim@meyering.net>
61451
61452         * lib/savewd.c (ESTALE) [!defined]: Define.
61453         Reported to be required on Interix by Martin Koeppe.
61454
61455 2007-09-17  Bruno Haible  <bruno@clisp.org>
61456
61457         * gnulib-tool (func_version): Use $version.
61458
61459 2007-09-16  Bruno Haible  <bruno@clisp.org>
61460
61461         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61462         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61463         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61464         Reported by Greg Schafer <gschafer@zip.com.au>.
61465
61466 2007-09-15  Bruno Haible  <bruno@clisp.org>
61467
61468         * gnulib-tool (sed): Try a little harder to make bash understand the
61469         alias.
61470         Reported by Bruce Korb <bruce.korb@gmail.com>.
61471
61472 2007-09-13  Eric Blake  <ebb9@byu.net>
61473
61474         * ChangeLog: Remove conflict markers.
61475
61476 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61477
61478         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61479         Reported by Bruno Haible <bruno@clisp.org>.
61480
61481 2007-09-12  Bruno Haible  <bruno@clisp.org>
61482
61483         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61484         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61485         is not defined.
61486
61487 2007-09-12  Eric Blake  <ebb9@byu.net>
61488
61489         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61490         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61491         Autoconf definition.
61492         * modules/euidaccess (Depends-on): Add extensions, for
61493         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61494         * modules/fnmatch (Depends-on): Likewise.
61495         * modules/getaddrinfo (Depends-on): Likewise.
61496         * modules/getdelim (Depends-on): Likewise.
61497         * modules/getline (Depends-on): Likewise.
61498         * modules/getsubopt (Depends-on): Likewise.
61499         * modules/gettext (Depends-on): Likewise.
61500         * modules/group-member (Depends-on): Likewise.
61501         * modules/mbchar (Depends-on): Likewise.
61502         * modules/memmem (Depends-on): Likewise.
61503         * modules/mempcpy (Depends-on): Likewise.
61504         * modules/memrchr (Depends-on): Likewise.
61505         * modules/pagealign_alloc (Depends-on): Likewise.
61506         * modules/readutmp (Depends-on): Likewise.
61507         * modules/stpcpy (Depends-on): Likewise.
61508         * modules/stpncpy (Depends-on): Likewise.
61509         * modules/strchrnul (Depends-on): Likewise.
61510         * modules/strndup (Depends-on): Likewise.
61511         * modules/strsep (Depends-on): Likewise.
61512         * modules/strverscmp (Depends-on): Likewise.
61513         * modules/vasprintf (Depends-on): Likewise.
61514         * modules/wcwidth (Depends-on): Likewise.
61515         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61516         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61517         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61520         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61521         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61522         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61523         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61524         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61526         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61527         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61528         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61529         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61530         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61531         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61532         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61534         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61535         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61536         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61537         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61538         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61539         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61541         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61542         so that lock.m4 can be used in gettext without extensions module.
61543
61544 2007-09-11  Bruno Haible  <bruno@clisp.org>
61545
61546         * m4/isc-posix.m4: Remove file.
61547         Suggested by Eric Blake.
61548
61549 2007-09-11  Eric Blake  <ebb9@byu.net>
61550
61551         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61552
61553 2007-09-10  Bruno Haible  <bruno@clisp.org>
61554
61555         * posix-modules: Fix typo in error message.
61556         Reported by Matt <mkraai@beckman.com>.
61557
61558 2007-09-09  Bruno Haible  <bruno@clisp.org>
61559
61560         * doc/functions/getdelim.texi: Update list of platforms lacking the
61561         function.
61562         * doc/functions/getline.texi: Likewise.
61563
61564 2007-09-09  Jim Meyering  <jim@meyering.net>
61565
61566         * lib/hash.c (hash_initialize): Detect calloc failure.
61567         Reported by Bruno Haible.
61568
61569 2007-09-09  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61572         malloc or realloc fails.
61573
61574 2007-09-09  Bruno Haible  <bruno@clisp.org>
61575
61576         * modules/getcwd (Depends-on): Add malloc-posix.
61577         * modules/glob (Depends-on): Likewise.
61578         * modules/putenv (Depends-on): Likewise.
61579         * modules/strdup (Depends-on): Likewise.
61580         * modules/getdelim (Depends-on): Add realloc-posix.
61581         * modules/read-file (Depends-on): Likewise.
61582
61583 2007-09-09  Bruno Haible  <bruno@clisp.org>
61584
61585         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61586         (gl_FUNC_MALLOC_POSIX): Require it.
61587         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61588         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61589         * modules/realloc (Files): Add m4/malloc.m4.
61590         * modules/calloc (Files): Likewise.
61591
61592 2007-09-09  Bruno Haible  <bruno@clisp.org>
61593
61594         * modules/malloc-posix: New file.
61595         * modules/malloc (Depends-on): Add malloc-posix.
61596         * lib/malloc.c: Include errno.h.
61597         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61598         and a POSIX-compatible malloc into a single function. Set ENOMEM
61599         when returning NULL.
61600         * m4/malloc.m4: New file.
61601         * doc/functions/malloc.texi: Mention the malloc-posix module.
61602         * lib/stdlib_.h (malloc): New declaration.
61603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61604         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61605         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61606         and HAVE_MALLOC_POSIX.
61607
61608 2007-09-09  Bruno Haible  <bruno@clisp.org>
61609
61610         * modules/realloc-posix: New file.
61611         * modules/realloc (Depends-on): Add realloc-posix.
61612         * lib/realloc.c: Include errno.h.
61613         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61614         and a POSIX-compatible realloc into a single function. Set ENOMEM
61615         when returning NULL.
61616         * m4/realloc.m4: New file.
61617         * doc/functions/realloc.texi: Mention the realloc-posix module.
61618         * lib/stdlib_.h (realloc): New declaration.
61619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61620         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61621         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61622         and HAVE_REALLOC_POSIX.
61623
61624 2007-09-09  Bruno Haible  <bruno@clisp.org>
61625
61626         * modules/calloc-posix: New file.
61627         * modules/calloc (Depends-on): Add calloc-posix.
61628         * lib/calloc.c: Include errno.h.
61629         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61630         and a POSIX-compatible calloc into a single function. Set ENOMEM
61631         when returning NULL.
61632         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61633         * doc/functions/calloc.texi: Mention the calloc-posix module.
61634         * lib/stdlib_.h (calloc): New declaration.
61635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61636         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61637         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61638         and HAVE_CALLOC_POSIX.
61639
61640 2007-09-09  Bruno Haible  <bruno@clisp.org>
61641
61642         Allow for modules to show an arbitrary notice.
61643         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61644         * gnulib-tool: New option --extract-notice.
61645         (func_usage): Document it.
61646         (sed_extract_prog): Update.
61647         (func_get_notice): New function.
61648         (func_modules_notice): New function.
61649         (func_import, func_create_testdir): Invoke it.
61650         Suggested by Jim Meyering.
61651
61652 2007-09-09  Bruno Haible  <bruno@clisp.org>
61653
61654         * gnulib-tool: New options --verbose, --quiet.
61655         (func_usage): Document them.
61656         (verbose): New variable.
61657         (func_execute_command): New function.
61658         (func_import): Don't show the module list and the file list if
61659         $verbose < 0.
61660         (func_create_testdir): Likewise. Use func_execute_command.
61661         (func_create_megatestdir): Use func_execute_command.
61662
61663 2007-09-08  Bruno Haible  <bruno@clisp.org>
61664
61665         * gnulib-tool (func_import): Prefer rsync over wget when available,
61666         for fetching the PO files.
61667
61668 2007-09-08  Bruno Haible  <bruno@clisp.org>
61669
61670         * posix-modules: New file. Portions copied from gnulib-tool.
61671         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61672
61673 2007-09-08  Jim Meyering  <jim@meyering.net>
61674
61675         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61676         * lib/fpending.h: Rename from __fpending.h.
61677         * lib/fpending.c: Rename from __fpending.c.
61678         Include "fpending.h", not "__fpending.h".
61679         * lib/__fpending.h, lib/__fpending.c: Remove files.
61680         * modules/fpending (Files): Reflect new file names.
61681         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61682
61683 2007-09-08  Bruno Haible  <bruno@clisp.org>
61684
61685         * m4/inttypes-h.m4: Remove stub file.
61686
61687 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61688
61689         * doc/headers/stdint.texi: Discuss #include_next issue.
61690
61691 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61694
61695 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61696
61697         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61698         in variable name.
61699
61700 2007-09-03  Jim Meyering  <jim@meyering.net>
61701
61702         New module: git-version-gen.
61703         * modules/git-version-gen: New file.
61704
61705         Import changes from coreutils for bootstrap script.
61706
61707         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61708
61709         bootstrap: uses rsync to download the .po files
61710         * build-aux/bootstrap (po_download_command_format): New global.
61711         (download_po_files): Use rsync.
61712         (update_po_files): Don't remove .po files after download,
61713         so future rsync runs can take advantage of the copies.
61714
61715         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61716
61717         Solve the unnecessary-.po-file-regeneration problem once and for all.
61718         * build-aux/bootstrap (download_po_files): New function, renamed from
61719         get_translations.  Now, downloads, but doesn't update LINGUAS.
61720         (update_po_files): New function.
61721
61722         bootstrap: Ignore more.
61723         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61724         uniwidth to e.g., lib/.gitignore.
61725         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61726
61727         * build-aux/bootstrap: New setting: vc_ignore.
61728         (insert_sorted_if_absent): Create $file if absent.
61729         Adapt to new, possibly empty, list: $vc_ignore.
61730
61731         bootstrap: generate more ignorable names
61732         * build-aux/bootstrap (slurp): When generating ignorable names,
61733         also map .sin to .sed, .gperf to .c, and .y to .c.
61734
61735 2007-09-03  Jim Meyering  <jim@meyering.net>
61736
61737         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61738         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61739
61740 2007-09-02  Bruno Haible  <bruno@clisp.org>
61741
61742         Fix mis-recognition of 'mcs' on QNX 6.
61743         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61744         output contains the string "Mono".
61745         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61746         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61747
61748 2007-09-01  Bruno Haible  <bruno@clisp.org>
61749
61750         Fix collision between uniwidth/* and linebreak modules.
61751         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61752         u32_width): Remove declarations.
61753         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61754         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61755         streq3, streq2, streq1, streq0): Remove functions.
61756         (STREQ): Remove macro.
61757         (is_cjk_encoding): Remove function.
61758         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61759         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61760         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61761         * NEWS: Document the change.
61762
61763 2007-09-01  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/streq.h: Add double-inclusion guard.
61766
61767 2007-09-01  Karl Berry  <karl@gnu.org>
61768
61769         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61770
61771 2007-08-28  Jim Meyering  <jim@meyering.net>
61772
61773         Rename mreadlink_with_size to areadlink_with_size.
61774         * NEWS: Document the change.
61775         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61776         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61777         * lib/mreadlink.h: Rename this to...
61778         * lib/areadlink.h: ...this.
61779         * modules/mreadlink-with-size: Rename this to...
61780         * modules/areadlink-with-size: ...this.
61781         * lib/canonicalize.c: Reflect the renaming.
61782         * modules/canonicalize: Likewise.
61783
61784 2007-08-26  Bruno Haible  <bruno@clisp.org>
61785
61786         * gnulib-tool (func_import): When deciding which files to remove,
61787         consider also dangling symbolic links.
61788         Reported by Eric Blake.
61789
61790 2007-08-26  Bruno Haible  <bruno@clisp.org>
61791
61792         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61793
61794 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61795
61796         * lib/readline.c: Don't include getline.h, the prototype is now
61797         found in stdio.h.
61798
61799 2007-08-23  Jim Meyering  <jim@meyering.net>
61800
61801         Getdelim touchup.
61802         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61803         around the funlockfile call, since funlockfile never sets errno.
61804         Don't set errno upon failed realloc.
61805
61806 2007-08-22  Eric Blake  <ebb9@byu.net>
61807
61808         Getline touchups.
61809         * lib/getdelim.c (getdelim): Revert regression that required *n to
61810         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61811         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61812         getdelim, rather than whether implementation is missing.
61813         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61814         * lib/stdio_.h (getline): Also declare if replacement is
61815         required.
61816         * doc/functions/getdelim.texi: New file.
61817         * doc/functions/getline.texi: Likewise.
61818         * doc/gnulib.texi (Function Substitutes): Add new files.
61819         Reported by Bruno Haible.
61820
61821 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61822
61823         * users.txt: Add Guile.
61824
61825 2007-08-22  Eric Blake  <ebb9@byu.net>
61826
61827         * tests/test-getdelim.c (main): Use remove, not unlink.
61828         * tests/test-getline.c (main): Likewise.
61829
61830         Move getline and getdelim into stdio.h, per POSIX 200x.
61831         * modules/getline (Files): Remove getline.h.
61832         (Depends-on): Add stdio.
61833         (configure.ac): Add module indicator.
61834         * modules/getdelim (Files): Remove getdelim.h.
61835         (Depends-on): Add stdio.
61836         (configure.ac): Add module indicator.
61837         * modules/stdio (Makefile.am): Work with new indicators.
61838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61839         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61840         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61841         * lib/getdelim.h: Delete.
61842         * lib/getline.h: Delete.
61843         * lib/stdio_.h (getdelim, getline): Declare.
61844         * modules/getdelim-tests: New module.
61845         * modules/getline-tests: Likewise.
61846         * tests/test-getdelim.c: New file.
61847         * tests/test-getline.c: Likewise.
61848         * NEWS: Document the change.
61849         * lib/getline.c: Update choice of header.
61850         * lib/csharpcomp.c: Likewise.
61851         * lib/getpass.c: Likewise.
61852         * lib/javacomp.c: Likewise.
61853         * lib/javaversion.c: Likewise.
61854         * lib/yesno.c: Likewise.
61855         * lib/getdelim.c: Likewise.
61856         (getdelim): Set errno on failure, and avoid memory leak.
61857
61858 2007-08-19  Bruno Haible  <bruno@clisp.org>
61859
61860         * modules/closein (Depends-on): Add freadahead.
61861         * lib/closein.c: Include freadahead.h.
61862         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
61863         is zero.
61864
61865 2007-08-19  Bruno Haible  <bruno@clisp.org>
61866
61867         * modules/freadahead-tests: New file.
61868         * tests/test-freadahead.sh: New file.
61869         * tests/test-freadahead.c: New file.
61870
61871         * modules/freadahead: New file.
61872         * lib/freadahead.h: New file.
61873         * lib/freadahead.c: New file.
61874         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
61875         fbufmode, fpurge, freadable, fwritable.
61876
61877 2007-08-19  Eric Blake  <ebb9@byu.net>
61878
61879         Test yesno in combination with closein.
61880         * lib/yesno.c (yesno): Document use of stdin.
61881         * modules/yesno-tests (Files): New module.
61882         * tests/test-yesno.c (main): New file.
61883         * tests/test-yesno.sh: Likewise.
61884
61885 2007-08-19  Bruno Haible  <bruno@clisp.org>
61886
61887         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
61888         * lib/fseeko.c (rpl_fseeko): Likewise.
61889         * lib/fseterr.c (fseterr): Likewise.
61890
61891 2007-08-19  Bruno Haible  <bruno@clisp.org>
61892
61893         * tests/test-lseek.c (main): Disable a test for BeOS.
61894         * doc/functions/lseek.texi: Document the BeOS bug.
61895
61896 2007-08-19  Bruno Haible  <bruno@clisp.org>
61897             Eric Blake  <ebb9@byu.net>
61898
61899         * lib/lseek.c: Include <sys/stat.h>.
61900         (rpl_lseek): Add workaround code also for Unix platforms.
61901         Needed for BeOS.
61902         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
61903         * doc/functions/lseek.texi: Document BeOS definiency.
61904
61905 2007-08-18  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/fstrcmp-tests: New file.
61908         * tests/test-fstrcmp.c: New file.
61909
61910 2007-08-18  Bruno Haible  <bruno@clisp.org>
61911
61912         * modules/fstrcmp: New file, from GNU gettext with modifications.
61913         * lib/fstrcmp.h: New file, from GNU gettext.
61914         * lib/fstrcmp.c: New file, from GNU gettext.
61915         * MODULES.html.sh (String handling): Add fstrcmp.
61916
61917 2007-08-18  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
61920         'bool'.
61921         (diag, compareseq): Remove const from the ctxt argument.
61922         (USE_HEURISTIC): Undefine at the end.
61923
61924 2007-08-18  Jim Meyering  <jim@meyering.net>
61925
61926         New file: lib/idcache.h
61927         * NEWS: Mention the addition.
61928         * modules/idcache (Files): Add lib/idcache.h
61929         * lib/idcache.c: Include "idcache.h".
61930         Don't include <sys/types.h>.
61931         Add a FIXME comment.
61932         Move file-scoped "static" declarations to the top.
61933         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
61934
61935 2007-08-17  Bruno Haible  <bruno@clisp.org>
61936         and Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * MODULES.html.sh: Add diffseq.
61939         * modules/diffseq: New file.
61940         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
61941         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
61942
61943 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61944
61945         Import changes from coreutils for bootstrap script.
61946
61947         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * build-aux/bootstrap (slurp): Work even in environments where
61950         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
61951         current code does not slurp files whose names start with ".", and
61952         this looks like it might be a troublesome area.
61953
61954         2007-07-11  Jim Meyering  <jim@meyering.net>
61955
61956         If there's a GPL vN copyright comment, require that N == 3.
61957
61958         2007-07-08  Jim Meyering  <jim@meyering.net>
61959
61960         Run the coreutils-specific code only if tests/Makefile.am.in exists.
61961         * build-aux/bootstrap (mam_template): Move definition out of loop.
61962
61963         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
61964
61965         * build-aux/bootstrap (symlink_to_dir): Rename function from
61966         symlink_to_gnulib.  Add a directory parameter.  Update all
61967         callers.
61968         (cp_mark_as_generated): Also check for -- and link to -- files in
61969         gl/.
61970
61971         2007-07-08  Jim Meyering  <jim@meyering.net>
61972
61973         Adapt to deeper hierarchy in gnulib.
61974         * build-aux/bootstrap (symlink_to_dir): If the destination
61975         directory doesn't exist, create it. This is required at least for
61976         "lib/uniwidth/cjk.h".
61977
61978         2007-05-15  Jim Meyering  <jim@meyering.net>
61979
61980         * build-aux/bootstrap: Now that generated Makefile.am files
61981         are no longer under version control, they must be created at
61982         bootstrap time.
61983
61984 2007-08-14  Ben Pfaff  <blp@gnu.org>
61985
61986         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
61987
61988 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
61991         given the changes below.
61992         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
61993         even on hosts that have padding bits beyond the supported 64.
61994
61995 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
61998         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
61999         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62000         depends on it.
62001         (xstrtol_error): Remove.
62002         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62003         but with a different signature.
62004         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62005         * lib/xstrtol-error.c: Include exitfail.h.
62006         (xstrtol_fatal): New function, with a different signature from the
62007         old xstrtol_error, so that the caller need not worry about passing
62008         in an exit status, or about storage management of the option argument.
62009         (xstrtol_error): Now a static function.  Redo signature to
62010         implement xstrtol_fatal.  Output the correct number of hyphens in
62011         front of the option so that the caller need not worry about
62012         storage management.
62013         (N_): New macro.
62014         (_): Remove; not used now.
62015         * modules/xstrtol: Depend on getopt.
62016         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62017         of old STRTOL_FATAL_ERROR macro.
62018         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62019         of test program.
62020         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62021         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62022
62023 2007-08-08  Eric Blake  <ebb9@byu.net>
62024
62025         * lib/xstrtol-error.c: Add missing include.
62026
62027         Move xstrtol messages into gnulib domain, when --pobase is used.
62028         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62029         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62030         * modules/xstrtol (Files): Distribute new file.
62031         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62032         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62033         * tests/test-xstrtol.c: ...into new file.
62034         * tests/test-xstrtoul.c: Also test xstrtoul.
62035         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62036         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62037         * tests/test-xstrtol.sh: Drive the tests.
62038         * tests/test-xstrtoimax.sh: Likewise.
62039         * tests/test-xstrtoumax.sh: Likewise.
62040         * modules/xstrtol-tests: New module.
62041         * modules/xstrtoimax-tests: Likewise.
62042         * modules/xstrtoumax-tests: Likewise.
62043
62044 2007-08-08  Jim Meyering  <jim@meyering.net>
62045
62046         New function: mfile_name_concat.
62047         * lib/filenamecat.c (mfile_name_concat): New function, just like
62048         file_name_concat, but return NULL upon failure rather than exiting
62049         with a diagnostic.
62050         * lib/filenamecat.h: Declare it.
62051
62052 2007-08-07  Bruno Haible  <bruno@clisp.org>
62053
62054         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62055         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62056         warning from gcc.
62057         Reported by Eric Blake.
62058
62059 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62060
62061         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62062         * modules/crypto/arcfour (License): Likewise.
62063         * modules/crypto/des-tests (License): Likewise.
62064         * modules/crypto/gc-arctwo-tests (License): Likewise.
62065         * modules/crypto/gc-des-tests (License): Likewise.
62066         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62067         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62068         * modules/crypto/gc-md2-tests (License): Likewise.
62069         * modules/crypto/gc-md4-tests (License): Likewise.
62070         * modules/crypto/gc-md5-tests (License): Likewise.
62071         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62072         * modules/crypto/gc-rijndael-tests (License): Likewise.
62073         * modules/crypto/gc-sha1-tests (License): Likewise.
62074         * modules/crypto/gc-tests (License): Likewise.
62075         * modules/crypto/hmac-md5 (License): Likewise.
62076         * modules/crypto/hmac-sha1 (License): Likewise.
62077         * modules/crypto/md2-tests (License): Likewise.
62078         * modules/crypto/md4-tests (License): Likewise.
62079         * modules/crypto/md5 (License): Likewise.
62080         * modules/crypto/rijndael (License): Likewise.
62081         * modules/crypto/sha1 (License): Likewise.
62082         * modules/memxor (License): Likewise.
62083
62084 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62085         and Bruno Haible  <bruno@clisp.org>
62086
62087         * NEWS: Describe interface changes to human, xstrtol.
62088         * lib/human.h: Include <xstrtol.h>.
62089         (human_options): Return enum strtol_error, not int.  Remove
62090         bool arg; take int * instead.
62091         * lib/human.c: Don't include "gettext.h".
62092         (_): Remove; no longer used.
62093         Don't include <xstrtol.h>, since human.h does it.
62094         (human_options): Adjust to abovementioned interface changes.
62095         Do not report error to stderr; that's now the caller's
62096         responsibility.
62097         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62098         interface change.
62099         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62100         Str, Argument_type_string.  All uses changed.  Put " argument"
62101         in diagnostics to make them clearer.  Change wording of suffix
62102         message for clarity.
62103         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62104         Argument_type_string.
62105         (STRTOL_FATAL_WARN): Remove; no longer used.
62106         * modules/human (Depends-on): Remove gettext-h.
62107
62108 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62109
62110         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62111
62112 2007-07-31  Bruno Haible  <bruno@clisp.org>
62113
62114         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62115         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62116         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62117
62118 2007-07-31  Bruno Haible  <bruno@clisp.org>
62119
62120         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62121         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62122
62123 2007-07-30  Bruno Haible  <bruno@clisp.org>
62124
62125         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62126         * modules/c-ctype (License): Likewise.
62127         * modules/c-strcase (License): Likewise.
62128         * modules/check-version (License): Likewise.
62129         * modules/iconv (License): Likewise.
62130         * modules/iconv_open (License): Likewise.
62131         * modules/read-file (License): Likewise.
62132         * modules/striconv (License): Likewise.
62133         * modules/strverscmp (License): Likewise.
62134         * modules/vasprintf (License): Likewise.
62135         * modules/crypto/des (License): Likewise.
62136         * modules/crypto/gc (License): Likewise.
62137         * modules/crypto/gc-arcfour (License): Likewise.
62138         * modules/crypto/gc-arctwo (License): Likewise.
62139         * modules/crypto/gc-des (License): Likewise.
62140         * modules/crypto/gc-hmac-md5 (License): Likewise.
62141         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62142         * modules/crypto/gc-md2 (License): Likewise.
62143         * modules/crypto/gc-md4 (License): Likewise.
62144         * modules/crypto/gc-md5 (License): Likewise.
62145         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62146         * modules/crypto/gc-random (License): Likewise.
62147         * modules/crypto/gc-rijndael (License): Likewise.
62148         * modules/crypto/gc-sha1 (License): Likewise.
62149         * modules/crypto/md2 (License): Likewise.
62150         * modules/crypto/md4 (License): Likewise.
62151
62152 2007-07-30  Jim Meyering  <jim@meyering.net>
62153
62154         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62155         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62156         it has valid stat data.  This bug would cause du not to count the
62157         sizes of inaccessible directories.
62158         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62159         in <http://bugzilla.redhat.com/250077>.
62160
62161 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62162             Bruno Haible  <bruno@clisp.org>
62163
62164         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62165         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62166         #include_next, gives a diagnostic about it, but reports no error in
62167         the exit code.
62168         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62169
62170 2007-07-24  Ben Pfaff  <blp@gnu.org>
62171
62172         Improve name: "count-one-bits" is better than "popcount".
62173         * MODULES.html.sh: Update name.
62174         * lib/popcount.h: Renamed lib/count-one-bits.h.
62175         (popcount): Renamed count_one_bits.
62176         (popcountl): Renamed count_one_bits_l.
62177         (popcountll): Renamed count_one_bits_ll.
62178         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62179         * modules/popcount: Renamed module/count-one-bits.
62180         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62181         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62182
62183 2007-07-23  Ben Pfaff  <blp@gnu.org>
62184
62185         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62186         better code generation, and add U to large constants to avoid
62187         warnings, in non-GCC case.
62188         Suggested by Bruno Haible.
62189
62190 2007-07-23  Ben Pfaff  <blp@gnu.org>
62191
62192         * lib/popcount.h: Use verify_true instead of if...abort.
62193         * modules/popcount: Depend on verify module.
62194         Suggested by Jim Meyering.
62195
62196 2007-07-23  Bruno Haible  <bruno@clisp.org>
62197
62198         * gnulib-tool (func_import): Create a .cvsignore file also when the
62199         directory is not yet in CVS but the toplevel directory is. When
62200         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62201         Reported by Karl Berry.
62202
62203 2007-07-22  Ben Pfaff  <blp@gnu.org>
62204
62205         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62206         case.
62207         Suggested by Eric Blake.
62208
62209 2007-07-22  Ben Pfaff  <blp@gnu.org>
62210
62211         New module: popcount.
62212         * MODULES.html.sh: Add popcount.
62213         * modules/popcount: New file.
62214         * modules/popcount-tests: New file.
62215         * tests/test-popcount.c: New file.
62216         * lib/popcount.h: New file.
62217         * m4/popcount.m4: New file.
62218
62219 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62220
62221         * build-aux/announce-gen: Update to GPLv3.
62222
62223         * build-aux/config.guess: Update from config.
62224
62225 2007-07-21  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62228         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62229
62230 2007-07-20  Jim Meyering  <jim@meyering.net>
62231
62232         * check-module: Diagnose a self-dependency.
62233
62234 2007-07-19  Bruno Haible  <bruno@clisp.org>
62235
62236         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62237         empty.
62238         Reported by Eric Blake.
62239
62240 2007-07-18  Bruno Haible  <bruno@clisp.org>
62241
62242         * gnulib-tool: New options --po-base, --po-domain.
62243         (func_usage): Document them.
62244         (pobase, po_domain): New variables.
62245         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62246         DEFAULT_TEXT_DOMAIN.
62247         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62248         (func_import): Consider pobase and po_domain. Create a po/ directory.
62249         (func_create_testdir): Set pobase and po_domain to empty.
62250         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62251         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62252
62253 2007-07-18  Bruno Haible  <bruno@clisp.org>
62254
62255         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62256         EXTRA_DIST augmentation for files in build-aux/.
62257
62258 2007-07-16  Bruno Haible  <bruno@clisp.org>
62259
62260         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62261         * modules/getdelim (License): Likewise.
62262
62263 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62264
62265         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62266         * modules/d-type (License): Likewise.
62267         * modules/extensions (License): Likewise.
62268         * modules/fnmatch (License): Likewise.
62269         * modules/fseeko (License): Likewise.
62270         * modules/getaddrinfo (License): Likewise.
62271         * modules/getline (License): Likewise.
62272         * modules/getlogin_r (License): Likewise.
62273         * modules/getpass (License): Likewise.
62274         * modules/gettimeofday (License): Likewise.
62275         * modules/glob (License): Likewise.
62276         * modules/inet_ntop (License): Likewise.
62277         * modules/malloc (License): Likewise.
62278         * modules/malloca (License): Likewise.
62279         * modules/memmem (License): Likewise.
62280         * modules/mempcpy (License): Likewise.
62281         * modules/memset (License): Likewise.
62282         * modules/minmax (License): Likewise.
62283         * modules/mktime (License): Likewise.
62284         * modules/netinet_in (License): Likewise.
62285         * modules/pathmax (License): Likewise.
62286         * modules/poll (License): Likewise.
62287         * modules/regex (License): Likewise.
62288         * modules/snprintf (License): Likewise.
62289         * modules/stdbool (License): Likewise.
62290         * modules/stdint (License): Likewise.
62291         * modules/stdio (License): Likewise.
62292         * modules/strcase (License): Likewise.
62293         * modules/strcasestr (License): Likewise.
62294         * modules/strdup (License): Likewise.
62295         * modules/string (License): Likewise.
62296         * modules/strndup (License): Likewise.
62297         * modules/strnlen (License): Likewise.
62298         * modules/strpbrk (License): Likewise.
62299         * modules/strptime (License): Likewise.
62300         * modules/strsep (License): Likewise.
62301         * modules/sys_select (License): Likewise.
62302         * modules/sys_socket (License): Likewise.
62303         * modules/sys_stat (License): Likewise.
62304         * modules/sys_time (License): Likewise.
62305         * modules/time (License): Likewise.
62306         * modules/time_r (License): Likewise.
62307         * modules/timegm (License): Likewise.
62308         * modules/unistd (License): Likewise.
62309         * modules/vsnprintf (License): Likewise.
62310         * modules/wctype (License): Likewise.
62311
62312 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62313
62314         * modules/argz (License): LGPLv2+.
62315
62316 2007-07-15  Karl Berry  <karl@gnu.org>
62317
62318         * doc/gnulib.texi: revise node structure per new fdl.texi.
62319
62320 2007-07-14  Bruno Haible  <bruno@clisp.org>
62321
62322         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62323         the output file.
62324         * lib/uniname/uninames.h: Regenerated.
62325
62326 2007-07-14  Karl Berry  <karl@gnu.org>
62327
62328         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62329         omitting sectioning and index commands.
62330
62331 2007-07-13  Bruno Haible  <bruno@clisp.org>
62332
62333         New gnulib-tool option --more-symlinks.
62334         * gnulib-tool (func_usage): Document --more-symlinks.
62335         (do_copyrights): New variable.
62336         Recognize option --more-symlinks.
62337         (func_import): Don't add a copyright notice transform to
62338         sed_transform_lib_file if do_copyrights is empty.
62339
62340 2007-07-13  Bruno Haible  <bruno@clisp.org>
62341
62342         * lib/vasnprintf.c (decimal_point_char): Define also if
62343         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62344         && !NEED_PRINTF_DIRECTIVE_A.
62345         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62346         Gary V. Vaughan <gary@gnu.org>.
62347
62348 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62349
62350         * lib/inttypes_.h: Undo previous change, since it was fixed
62351         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62352
62353 2007-07-13  Bruno Haible  <bruno@clisp.org>
62354
62355         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62356         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62357
62358 2007-07-13  Jim Meyering  <jim@meyering.net>
62359
62360         df: Don't fail for Tru64's "file-on-file mount".
62361         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62362         so we fall through and use statfs instead.  Details here:
62363         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62364         Reported by Albert Chin.
62365
62366 2007-07-13  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62369         * modules/configmake (License): Likewise.
62370         * modules/gettext (License): Likewise.
62371         * modules/gettext-h (License): Likewise.
62372         * modules/include_next (License): Likewise.
62373         * modules/link-warning (License): Likewise.
62374         * modules/localcharset (License): Likewise.
62375         * modules/localename (License): Likewise.
62376         * modules/lock (License): Likewise.
62377         * modules/relocatable-lib-lgpl (License): Likewise.
62378         * modules/size_max (License): Likewise.
62379         * modules/vasnprintf (License): Likewise.
62380         * modules/wchar (License): Likewise.
62381         * modules/xsize (License): Likewise.
62382
62383 2007-07-13  Bruno Haible  <bruno@clisp.org>
62384
62385         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62386         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62387
62388 2007-07-12  Bruno Haible  <bruno@clisp.org>
62389
62390         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62391         in the modules files.
62392
62393 2007-07-11  Karl Berry  <karl@gnu.org>
62394
62395         * MODULES.html.sh (func_module): use
62396          sed -e '\|^'"${includefile}"'$|d'
62397          instead of /.../d, to avoid errors on $includefile's containing /.
62398
62399 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62400
62401         * gnulib-tool (func_import): Avoid duplication of --avoid
62402         statements
62403         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62404         names to `_' in variable names.
62405
62406 2007-07-10  Eric Blake  <ebb9@byu.net>
62407
62408         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62409         * NEWS: Document this change.
62410
62411 2007-07-08  Bruno Haible  <bruno@clisp.org>
62412
62413         Update to Unicode 5.0.
62414         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62415         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62416         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62417         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62418         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62419         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62420         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62421         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62422         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62423         U+10A3F, U+1D242..U+1D244.
62424         (nonspacing_table_ind): Update.
62425         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62426         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62427
62428 2007-07-08  Bruno Haible  <bruno@clisp.org>
62429
62430         Update to Unicode 5.0.
62431         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62432         code transform. Extend the name index field of unicode_name_to_code and
62433         unicode_code_to_name from 16 to 24 bits.
62434         * lib/uniname/uniname.c (unicode_character_name,
62435         unicode_name_character): Add the range 0x12xxx to the code transform.
62436         * lib/uniname/uninames.h: Regenerated.
62437         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62438
62439 2007-07-07  Bruno Haible  <bruno@clisp.org>
62440
62441         * modules/wcwidth-tests: New file.
62442         * tests/test-wcwidth.c: New file.
62443
62444         Work around MacOS X wcwidth() bug.
62445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62446         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62447         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62448         original wcwidth in non-UTF-8 locales.
62449         * modules/wcwidth (Depends-on): Add localcharset, streq,
62450         uniwidth/width.
62451         * doc/functions/wcwidth.texi: Update.
62452
62453 2007-07-07  Bruno Haible  <bruno@clisp.org>
62454
62455         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62456         (wcwidth): New declaration.
62457         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62458         macros.
62459         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62460         here. Prepare for creating <wchar.h> unconditionally.
62461         * modules/wchar (Depends-on): Add link-warning.
62462         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62463         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62464         * lib/wcwidth.h: Remove file.
62465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62466         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62467         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62468         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62469         (Include): Replace wcwidth.h with <wchar.h>.
62470         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62471         * lib/mbchar.h: Don't include wcwidth.h.
62472         * lib/mbswidth.c: Likewise.
62473         * NEWS: Mention the change.
62474
62475 2007-07-07  Bruno Haible  <bruno@clisp.org>
62476
62477         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62478         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62479         definition with an external declaration.
62480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62481         defined as a function. Remove AC_C_INLINE requirement.
62482         * modules/wcwidth (Files): Add lib/wcwidth.c.
62483         (Makefile.am): Remove redundant statement.
62484
62485 2007-07-07  Bruno Haible  <bruno@clisp.org>
62486
62487         * MODULES.html.sh (Unicode string functions): Add the new modules.
62488
62489         * tests/uniwidth/test-u32-strwidth.c: New file.
62490         * modules/uniwidth/u32-strwidth-tests: New file.
62491
62492         * lib/uniwidth/u32-strwidth.c: New file.
62493         * modules/uniwidth/u32-strwidth: New file.
62494
62495         * tests/uniwidth/test-u16-strwidth.c: New file.
62496         * modules/uniwidth/u16-strwidth-tests: New file.
62497
62498         * lib/uniwidth/u16-strwidth.c: New file.
62499         * modules/uniwidth/u16-strwidth: New file.
62500
62501         * tests/uniwidth/test-u8-strwidth.c: New file.
62502         * modules/uniwidth/u8-strwidth-tests: New file.
62503
62504         * lib/uniwidth/u8-strwidth.c: New file.
62505         * modules/uniwidth/u8-strwidth: New file.
62506
62507         * tests/uniwidth/test-u32-width.c: New file.
62508         * modules/uniwidth/u32-width-tests: New file.
62509
62510         * lib/uniwidth/u32-width.c: New file.
62511         * modules/uniwidth/u32-width: New file.
62512
62513         * tests/uniwidth/test-u16-width.c: New file.
62514         * modules/uniwidth/u16-width-tests: New file.
62515
62516         * lib/uniwidth/u16-width.c: New file.
62517         * modules/uniwidth/u16-width: New file.
62518
62519         * tests/uniwidth/test-u8-width.c: New file.
62520         * modules/uniwidth/u8-width-tests: New file.
62521
62522         * lib/uniwidth/u8-width.c: New file.
62523         * modules/uniwidth/u8-width: New file.
62524
62525         * tests/uniwidth/test-uc_width.c: New file.
62526         * modules/uniwidth/width-tests: New file.
62527
62528         * lib/uniwidth/width.c: New file, from GNU libiconv.
62529         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62530         * modules/uniwidth/width: New file.
62531
62532         * lib/uniwidth.h: New file, from GNU libiconv.
62533         * modules/uniwidth/base: New file.
62534
62535 2007-07-07  Bruno Haible  <bruno@clisp.org>
62536
62537         * lib/uniname.h: New file, from GNU gettext.
62538         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62539         * lib/uniname/uninames.h: New file, from GNU gettext.
62540         * lib/uniname/uniname.c: New file, from GNU gettext.
62541         * tests/uniname/test-uninames.sh: New file.
62542         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62543         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62544         * modules/uniname/base: New file.
62545         * modules/uniname/uniname: New file.
62546         * modules/uniname/uniname-tests: New file.
62547         * MODULES.html.sh (Unicode string functions): Add the new modules.
62548
62549 2007-07-06  Bruno Haible  <bruno@clisp.org>
62550
62551         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62552
62553 2007-07-06  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62556         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62557         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62558         include <sys/time.h>.
62559         Reported by Eric Blake.
62560
62561 2007-07-06  Eric Blake  <ebb9@byu.net>
62562
62563         Fix testing canonicalize on cygwin.
62564         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62565         Revert patch from 2007-06-19.
62566         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62567         canonicalize module is also in use.
62568         * tests/test-canonicalize.c: New file.
62569         * tests/test-canonicalize.sh: Likewise.
62570         * modules/canonicalize-tests: Likewise.
62571
62572 2007-07-06  Jim Meyering  <jim@meyering.net>
62573
62574         * lib/getugroups.c (getugroups): Detect getgrent failure.
62575         Adjust comment to reflect reality: this function may return -1.
62576
62577 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62578
62579         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62580         the new TP address.
62581         (usage): Fix typo
62582         (gnulib_mk): New variable.
62583
62584 2007-07-05  Jim Meyering  <jim@meyering.net>
62585
62586         Don't let endgrent clobber errno, no matter how improbable.
62587         * lib/getugroups.c (getugroups): Save and restore errno around
62588         endgrent call.
62589
62590         Close the group DB even when failing with 2^31 or more members.
62591         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62592
62593 2007-07-04  Jim Meyering  <jim@meyering.net>
62594
62595         * lib/getugroups.h: New file.
62596         * lib/getugroups.c: Include "getugroups.h".
62597         Remove uses of "register" keyword.
62598         Move local variable, "cp", down into scope where used.
62599         Give "username" parameter the "const" attribute.
62600         * modules/getugroups (Files): Add lib/getugroups.h
62601
62602 2007-07-04  Karl Berry  <karl@gnu.org>
62603
62604         * MODULES.html.sh (func_all_modules): Complete rename of
62605         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62606
62607 2007-07-02  Bruno Haible  <bruno@clisp.org>
62608
62609         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62610         mode, when inttypes.h comes from gnulib.
62611         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62612
62613 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62614
62615         * NEWS: Mention lgpl module name change.
62616
62617         * modules/lgpl-2.1: Renamed from lgpl.
62618
62619         * NEWS: Mention gpl module name change.
62620
62621         * modules/gpl-3.0: New file, based on gpl-2.0.
62622
62623         * modules/gpl-2.0: Renamed from gpl.
62624
62625         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62626         doc/gpl-2.0.texi.
62627
62628 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62629
62630         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62631         #define __STDC_LIMIT_MACROS temporarily while including
62632         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62633         Problem reported by Joel E. Denny in
62634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62635
62636 2007-07-01  Bruno Haible  <bruno@clisp.org>
62637
62638         * lib/unistdio.h: New file.
62639         * lib/unistdio/u-asnprintf.h: New file.
62640         * lib/unistdio/u-asprintf.h: New file.
62641         * lib/unistdio/u-printf-args.c: New file.
62642         * lib/unistdio/u-printf-args.h: New file.
62643         * lib/unistdio/u-printf-parse.h: New file.
62644         * lib/unistdio/u-snprintf.h: New file.
62645         * lib/unistdio/u-sprintf.h: New file.
62646         * lib/unistdio/u-vasprintf.h: New file.
62647         * lib/unistdio/u-vsnprintf.h: New file.
62648         * lib/unistdio/u-vsprintf.h: New file.
62649         * lib/unistdio/ulc-asnprintf.c: New file.
62650         * lib/unistdio/ulc-asprintf.c: New file.
62651         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62652         * lib/unistdio/ulc-printf-parse.c: New file.
62653         * lib/unistdio/ulc-snprintf.c: New file.
62654         * lib/unistdio/ulc-sprintf.c: New file.
62655         * lib/unistdio/ulc-vasnprintf.c: New file.
62656         * lib/unistdio/ulc-vasprintf.c: New file.
62657         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62658         * lib/unistdio/ulc-vsnprintf.c: New file.
62659         * lib/unistdio/ulc-vsprintf.c: New file.
62660         * lib/unistdio/u8-asnprintf.c: New file.
62661         * lib/unistdio/u8-asprintf.c: New file.
62662         * lib/unistdio/u8-printf-parse.c: New file.
62663         * lib/unistdio/u8-snprintf.c: New file.
62664         * lib/unistdio/u8-sprintf.c: New file.
62665         * lib/unistdio/u8-vasnprintf.c: New file.
62666         * lib/unistdio/u8-vasprintf.c: New file.
62667         * lib/unistdio/u8-vsnprintf.c: New file.
62668         * lib/unistdio/u8-vsprintf.c: New file.
62669         * lib/unistdio/u8-u8-asnprintf.c: New file.
62670         * lib/unistdio/u8-u8-asprintf.c: New file.
62671         * lib/unistdio/u8-u8-snprintf.c: New file.
62672         * lib/unistdio/u8-u8-sprintf.c: New file.
62673         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62674         * lib/unistdio/u8-u8-vasprintf.c: New file.
62675         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62676         * lib/unistdio/u8-u8-vsprintf.c: New file.
62677         * lib/unistdio/u16-asnprintf.c: New file.
62678         * lib/unistdio/u16-asprintf.c: New file.
62679         * lib/unistdio/u16-printf-parse.c: New file.
62680         * lib/unistdio/u16-snprintf.c: New file.
62681         * lib/unistdio/u16-sprintf.c: New file.
62682         * lib/unistdio/u16-vasnprintf.c: New file.
62683         * lib/unistdio/u16-vasprintf.c: New file.
62684         * lib/unistdio/u16-vsnprintf.c: New file.
62685         * lib/unistdio/u16-vsprintf.c: New file.
62686         * lib/unistdio/u16-u16-asnprintf.c: New file.
62687         * lib/unistdio/u16-u16-asprintf.c: New file.
62688         * lib/unistdio/u16-u16-snprintf.c: New file.
62689         * lib/unistdio/u16-u16-sprintf.c: New file.
62690         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62691         * lib/unistdio/u16-u16-vasprintf.c: New file.
62692         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62693         * lib/unistdio/u16-u16-vsprintf.c: New file.
62694         * lib/unistdio/u32-asnprintf.c: New file.
62695         * lib/unistdio/u32-asprintf.c: New file.
62696         * lib/unistdio/u32-printf-parse.c: New file.
62697         * lib/unistdio/u32-snprintf.c: New file.
62698         * lib/unistdio/u32-sprintf.c: New file.
62699         * lib/unistdio/u32-vasnprintf.c: New file.
62700         * lib/unistdio/u32-vasprintf.c: New file.
62701         * lib/unistdio/u32-vsnprintf.c: New file.
62702         * lib/unistdio/u32-vsprintf.c: New file.
62703         * lib/unistdio/u32-u32-asnprintf.c: New file.
62704         * lib/unistdio/u32-u32-asprintf.c: New file.
62705         * lib/unistdio/u32-u32-snprintf.c: New file.
62706         * lib/unistdio/u32-u32-sprintf.c: New file.
62707         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62708         * lib/unistdio/u32-u32-vasprintf.c: New file.
62709         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62710         * lib/unistdio/u32-u32-vsprintf.c: New file.
62711         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62712         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62713         * tests/unistdio/test-ulc-printf1.h: New file.
62714         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62715         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62716         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62717         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62718         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62719         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62720         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62721         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62722         * tests/unistdio/test-u8-asnprintf1.c: New file.
62723         * tests/unistdio/test-u8-asnprintf1.h: New file.
62724         * tests/unistdio/test-u8-printf1.h: New file.
62725         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62726         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62727         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62728         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62729         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62730         * tests/unistdio/test-u8-vasprintf1.c: New file.
62731         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62732         * tests/unistdio/test-u8-vsprintf1.c: New file.
62733         * tests/unistdio/test-u16-asnprintf1.c: New file.
62734         * tests/unistdio/test-u16-asnprintf1.h: New file.
62735         * tests/unistdio/test-u16-printf1.h: New file.
62736         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62737         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62738         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62739         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62740         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62741         * tests/unistdio/test-u16-vasprintf1.c: New file.
62742         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62743         * tests/unistdio/test-u16-vsprintf1.c: New file.
62744         * tests/unistdio/test-u32-asnprintf1.c: New file.
62745         * tests/unistdio/test-u32-asnprintf1.h: New file.
62746         * tests/unistdio/test-u32-printf1.h: New file.
62747         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62748         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62749         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62750         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62751         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62752         * tests/unistdio/test-u32-vasprintf1.c: New file.
62753         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62754         * tests/unistdio/test-u32-vsprintf1.c: New file.
62755         * modules/unistdio/base: New file.
62756         * modules/unistdio/u-printf-args: New file.
62757         * modules/unistdio/ulc-asnprintf: New file.
62758         * modules/unistdio/ulc-asprintf: New file.
62759         * modules/unistdio/ulc-fprintf: New file.
62760         * modules/unistdio/ulc-printf-parse: New file.
62761         * modules/unistdio/ulc-snprintf: New file.
62762         * modules/unistdio/ulc-sprintf: New file.
62763         * modules/unistdio/ulc-vasnprintf: New file.
62764         * modules/unistdio/ulc-vasprintf: New file.
62765         * modules/unistdio/ulc-vfprintf: New file.
62766         * modules/unistdio/ulc-vsnprintf: New file.
62767         * modules/unistdio/ulc-vsprintf: New file.
62768         * modules/unistdio/u8-asnprintf: New file.
62769         * modules/unistdio/u8-asprintf: New file.
62770         * modules/unistdio/u8-printf-parse: New file.
62771         * modules/unistdio/u8-snprintf: New file.
62772         * modules/unistdio/u8-sprintf: New file.
62773         * modules/unistdio/u8-vasnprintf: New file.
62774         * modules/unistdio/u8-vasprintf: New file.
62775         * modules/unistdio/u8-vsnprintf: New file.
62776         * modules/unistdio/u8-vsprintf: New file.
62777         * modules/unistdio/u8-u8-asnprintf: New file.
62778         * modules/unistdio/u8-u8-asprintf: New file.
62779         * modules/unistdio/u8-u8-snprintf: New file.
62780         * modules/unistdio/u8-u8-sprintf: New file.
62781         * modules/unistdio/u8-u8-vasnprintf: New file.
62782         * modules/unistdio/u8-u8-vasprintf: New file.
62783         * modules/unistdio/u8-u8-vsnprintf: New file.
62784         * modules/unistdio/u8-u8-vsprintf: New file.
62785         * modules/unistdio/u16-asnprintf: New file.
62786         * modules/unistdio/u16-asprintf: New file.
62787         * modules/unistdio/u16-printf-parse: New file.
62788         * modules/unistdio/u16-snprintf: New file.
62789         * modules/unistdio/u16-sprintf: New file.
62790         * modules/unistdio/u16-vasnprintf: New file.
62791         * modules/unistdio/u16-vasprintf: New file.
62792         * modules/unistdio/u16-vsnprintf: New file.
62793         * modules/unistdio/u16-vsprintf: New file.
62794         * modules/unistdio/u16-u16-asnprintf: New file.
62795         * modules/unistdio/u16-u16-asprintf: New file.
62796         * modules/unistdio/u16-u16-snprintf: New file.
62797         * modules/unistdio/u16-u16-sprintf: New file.
62798         * modules/unistdio/u16-u16-vasnprintf: New file.
62799         * modules/unistdio/u16-u16-vasprintf: New file.
62800         * modules/unistdio/u16-u16-vsnprintf: New file.
62801         * modules/unistdio/u16-u16-vsprintf: New file.
62802         * modules/unistdio/u32-asnprintf: New file.
62803         * modules/unistdio/u32-asprintf: New file.
62804         * modules/unistdio/u32-printf-parse: New file.
62805         * modules/unistdio/u32-snprintf: New file.
62806         * modules/unistdio/u32-sprintf: New file.
62807         * modules/unistdio/u32-vasnprintf: New file.
62808         * modules/unistdio/u32-vasprintf: New file.
62809         * modules/unistdio/u32-vsnprintf: New file.
62810         * modules/unistdio/u32-vsprintf: New file.
62811         * modules/unistdio/u32-u32-asnprintf: New file.
62812         * modules/unistdio/u32-u32-asprintf: New file.
62813         * modules/unistdio/u32-u32-snprintf: New file.
62814         * modules/unistdio/u32-u32-sprintf: New file.
62815         * modules/unistdio/u32-u32-vasnprintf: New file.
62816         * modules/unistdio/u32-u32-vasprintf: New file.
62817         * modules/unistdio/u32-u32-vsnprintf: New file.
62818         * modules/unistdio/u32-u32-vsprintf: New file.
62819         * modules/unistdio/ulc-asnprintf-tests: New file.
62820         * modules/unistdio/ulc-vasnprintf-tests: New file.
62821         * modules/unistdio/ulc-vasprintf-tests: New file.
62822         * modules/unistdio/ulc-vsnprintf-tests: New file.
62823         * modules/unistdio/ulc-vsprintf-tests: New file.
62824         * modules/unistdio/u8-asnprintf-tests: New file.
62825         * modules/unistdio/u8-vasnprintf-tests: New file.
62826         * modules/unistdio/u8-vasprintf-tests: New file.
62827         * modules/unistdio/u8-vsnprintf-tests: New file.
62828         * modules/unistdio/u8-vsprintf-tests: New file.
62829         * modules/unistdio/u16-asnprintf-tests: New file.
62830         * modules/unistdio/u16-vasnprintf-tests: New file.
62831         * modules/unistdio/u16-vasprintf-tests: New file.
62832         * modules/unistdio/u16-vsnprintf-tests: New file.
62833         * modules/unistdio/u16-vsprintf-tests: New file.
62834         * modules/unistdio/u32-asnprintf-tests: New file.
62835         * modules/unistdio/u32-vasnprintf-tests: New file.
62836         * modules/unistdio/u32-vasprintf-tests: New file.
62837         * modules/unistdio/u32-vsnprintf-tests: New file.
62838         * modules/unistdio/u32-vsprintf-tests: New file.
62839         * MODULES.html.sh (Unicode string functions): Add the new modules.
62840
62841 2007-07-01  Bruno Haible  <bruno@clisp.org>
62842
62843         * lib/sprintf.c (sprintf): Limit the available length estimation,
62844         to avoid address wraparound.
62845         * lib/vsprintf.c (vsprintf): Likewise.
62846         * modules/sprintf-posix (Dependencies): Add stdint.
62847         * modules/vsprintf-posix (Dependencies): Likewise.
62848
62849 2007-07-01  Bruno Haible  <bruno@clisp.org>
62850
62851         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
62852         Windows PATH as well. Conservative double-quoting. Comments.
62853
62854 2007-07-01  Bruno Haible  <bruno@clisp.org>
62855             Eric Blake  <ebb9@byu.net>
62856             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62857
62858         * gnulib-tool (self_abspathname): Fix algorithm to cope with
62859         empty components in $PATH, denoting '.'.
62860
62861 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62862
62863         * gnulib-tool: Fix indentation.
62864         (func_create_megatestdir): Likewise.
62865         Report by Bruno Haible.
62866
62867 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62868
62869         Sync from Automake.
62870         * build-aux/gnupload: Fix shell portability issues with for loops.
62871         Report by Karl Berry.
62872
62873 2007-06-29  Simon Josefsson  <simon@josefsson.org>
62874
62875         * build-aux/maint.mk (POURL): Use translationproject.org.
62876
62877 2007-06-27  Simon Josefsson  <simon@josefsson.org>
62878             Bruno Haible  <bruno@clisp.org>
62879
62880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
62881         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
62882         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
62883         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
62884         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
62885
62886 2007-06-27  Bruno Haible  <bruno@clisp.org>
62887
62888         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
62889         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
62890
62891 2007-06-26  Karl Berry  <karl@gnu.org>
62892
62893         * MODULES.html.sh: remove xreadlink-with-size.
62894
62895 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62896
62897         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
62898         method that I hope also handles the double-include problem noted
62899         by Bruno Haible in
62900         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
62901
62902 2007-06-23  Bruno Haible  <bruno@clisp.org>
62903
62904         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62905         Don't let the 'mostlyclean' target fail if the last subdirectory could
62906         not be removed.
62907         Reported by Karl Berry.
62908
62909 2007-06-23  Bruno Haible  <bruno@clisp.org>
62910
62911         * gnulib-tool (echo): Add a speedier workaround for ksh.
62912         * tests/test-echo.sh: Likewise.
62913
62914 2007-06-23  Bruno Haible  <bruno@clisp.org>
62915
62916         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
62917         * tests/test-echo.sh: Likewise.
62918
62919 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62920
62921         * gnulib-tool (IFS): Initialize early, so we don't set it to
62922         empty later.
62923         (self_abspathname): Rewrite algorithm to set it, reindent.
62924         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
62925         (func_create_megatestdir): Merge some sed scripts.
62926
62927 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
62930         exposed by Sun Studio 11 cc on Solaris 8.
62931
62932 2007-06-22  Bruno Haible  <bruno@clisp.org>
62933
62934         * gnulib-tool (echo): Ensure the echo primitive does not interpret
62935         backslashes.
62936         * tests/test-echo.sh: New file.
62937
62938 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62939
62940         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
62941         simplify `sed_replace_build_aux' scripts, they are portable but
62942         echoing them with `echo' is not.
62943         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
62944
62945 2007-06-21  Karl Berry  <karl@gnu.org>
62946
62947         * config/srclist.txt: guess we can't handle the licenses via
62948         srclist at the moment.
62949
62950 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62951
62952         * MODULES.html.sh: Add include_next.
62953         * modules/include_next: New file.
62954
62955 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62956
62957         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
62958         INCLUDE_NEXT.
62959         (gl_CHECK_NEXT_HEADERS): New macro.
62960         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
62961         the obsolescent gl_ABSOLUTE_HEADER.
62962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
62963         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
62964         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
62965         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62966         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62967         * m4/math_h.m4 (gl_MATH_H): Likewise.
62968         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
62969         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62970         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62971         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62972         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62973         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62974         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62978         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
62979         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62980         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
62981         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62982         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62983         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62984         * m4/inttypes.m4 (gl_INTTYPES_H): Define
62985         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
62986         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
62987         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
62988         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
62989         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
62990         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
62991         * lib/float_.h: Likewise.
62992         * lib/inttypes_.h: Likewise.
62993         * lib/math_.h: Likewise.
62994         * lib/search_.h: Likewise.
62995         * lib/signal_.h: Likewise.
62996         * lib/stdint_.h: Likewise.
62997         * lib/stdio_.h: Likewise.
62998         * lib/stdlib_.h: Likewise.
62999         * lib/string_.h: Likewise.
63000         * lib/sys_stat_.h: Likewise.
63001         * lib/sys_time_.h: Likewise.
63002         * lib/time_.h: Likewise.
63003         * lib/unistd_.h: Likewise.
63004         * lib/wchar_.h: Likewise.
63005         * lib/wctype_.h: Likewise.
63006         * lib/dirent_.h: Likewise.
63007         * lib/iconv_.h: Likewise.
63008         * lib/locale_.h: Likewise.
63009         * lib/netinet_in_.h: Likewise.
63010         * lib/sys_select_.h: Likewise.
63011         * lib/sys_socket_.h: Likewise.
63012         * lib/sysexits_.h: Likewise.
63013         * modules/fcntl (Depends-on): Depend on include_next, not
63014         absolute_header.
63015         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63016         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63017         * modules/fchdir: Likewise.
63018         * modules/float: Likewise.
63019         * modules/iconv_open: Likewise.
63020         * modules/inttypes: Likewise.
63021         * modules/locale: Likewise.
63022         * modules/math: Likewise.
63023         * modules/netinet_in: Likewise.
63024         * modules/search: Likewise.
63025         * modules/signal: Likewise.
63026         * modules/stdint: Likewise.
63027         * modules/stdio: Likewise.
63028         * modules/stdlib: Likewise.
63029         * modules/string: Likewise.
63030         * modules/sys_select: Likewise.
63031         * modules/sys_socket: Likewise.
63032         * modules/sys_stat: Likewise.
63033         * modules/sys_time: Likewise.
63034         * modules/sysexits: Likewise.
63035         * modules/time: Likewise.
63036         * modules/unistd: Likewise.
63037         * modules/wchar: Likewise.
63038         * modules/wctype: Likewise.
63039         * modules/sys_stat: Change maintainer to "all".
63040         * modules/unistd: Likewise.
63041
63042 2007-06-20  Karl Berry  <karl@gnu.org>
63043
63044         * config/srclist.txt: track www changes in license files.
63045
63046 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63047
63048         * build-aux/bootstrap: Remove stray dot.
63049         Make sure build_aux settings are honored when linking
63050         gnulib_extra_files.
63051
63052 2007-06-19  Eric Blake  <ebb9@byu.net>
63053
63054         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63055         Allow compilation on cygwin.
63056
63057 2007-06-19  Jim Meyering  <jim@meyering.net>
63058
63059         xreadlink-with-size: Remove module.  No longer used.
63060         Ex-callers now use xreadlink or mreadlink-with-size.
63061         * modules/xreadlink-with-size: Remove module.
63062         * lib/xreadlink-with-size.c: Remove file.
63063         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63064         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63065         just before the function definition *is* accurate.
63066
63067         Eliminate one way canonicalize_filename_mode could exit.
63068         * lib/canonicalize.c (canonicalize_filename_mode):
63069         Use mreadlink_with_size, not xreadlink_with_size.
63070
63071 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63072
63073         Detect porting problems to FreeBSD/arm, which has time_t wider than
63074         long int.  Original problem reported for GNU diff by Xin Li in
63075         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63076         * modules/getdate (Depends-on): Add intprops, verify.
63077         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63078         is an integer type no wider than long int.
63079
63080 2007-06-18  Jim Meyering  <jim@meyering.net>
63081
63082         New module: mreadlink-with-size.
63083         * MODULES.html.sh: Add mreadlink-with-size.
63084         * modules/mreadlink-with-size: New module
63085         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63086         not xreadlink-with-size.
63087         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63088
63089 2007-06-16  Bruno Haible  <bruno@clisp.org>
63090
63091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63092         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63093         Reported by Gary V. Vaughan <gary@gnu.org>.
63094
63095 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63096
63097         Revamp lchown so that it lives in unistd.h where it belongs.
63098         * lib/lchown.h: Remove.
63099         * lib/dirchownmod.c: Don't include lib/lchown.h.
63100         * lib/fchownat.c: Likewise.
63101         * lib/openat.c: Likewise.
63102         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63103         does not follow symlinks.
63104         (EOPNOTSUPP): Define if not defined.
63105         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63106         is defined to 0.
63107         (lchown): New decl.
63108         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63109         Do not check for lchown decl.
63110         Set REPLACE_LCHOWN.
63111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63112         REPLACE_LCHOWN.
63113         * modules/chown: Make it clear it follows symlinks.
63114         * modules/lchown: Make it clear it doesn't follow symlinks.
63115         (Files): Remove lib/lchown.h
63116         (Depends-on): Add unistd.
63117         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63118         (Include): Include <unistd.h>, not "lchown.h".
63119         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63120         REPLACE_LCHOWN.
63121
63122 2007-06-15  Jim Meyering  <jim@meyering.net>
63123
63124         Change license (GPL to LGPL) of fsusage and dependents.
63125         * modules/fsusage (License): Change to LGPL.
63126         * modules/full-read (License): Likewise.
63127         * modules/full-write (License): Likewise.
63128         * modules/safe-read (License): Likewise.
63129         * modules/safe-write (License): Likewise.
63130
63131 2007-06-14  Ben Pfaff  <blp@gnu.org>
63132
63133         Missing part of allocsa -> malloca transition.
63134         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63135         gl_MALLOCA.
63136
63137 2007-06-12  Bruno Haible  <bruno@clisp.org>
63138
63139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63140         to ia64, x86_64, i386.
63141         Reported by Eric Blake.
63142
63143 2007-06-12  Bruno Haible  <bruno@clisp.org>
63144
63145         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63146         cross-compiling to x86_64.
63147
63148 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63151         glitch reported by Ralf Wildenhues in
63152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63153
63154         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63155         Vin Shelton.
63156
63157 2007-06-11  Bruno Haible  <bruno@clisp.org>
63158
63159         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63160         replacement string.
63161         Reported by Eric Blake.
63162
63163 2007-06-10  Bruno Haible  <bruno@clisp.org>
63164
63165         Prepare vasnprintf code for use with Unicode strings.
63166         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63167         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63168         TYPE_U32_STRING.
63169         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63170         a_u32_string variants.
63171         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63172         * lib/printf-args.c: Don't include config.h and the specification
63173         header if PRINTF_FETCHARGS is already defined.
63174         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63175         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63176         TYPE_U16_STRING, TYPE_U32_STRING.
63177         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63178         u16_directive, u16_directives, u32_directive, u32_directives): New
63179         types.
63180         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63181         New declarations.
63182         * lib/printf-parse.c: Don't include config.h and the specification
63183         header if PRINTF_PARSE is already defined. Eliminate the set of
63184         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63185         them now. Include c-ctype.h.
63186         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63187         directive and CHAR_T_ONLY_ASCII.
63188         * lib/vasnprintf.c: Don't include config.h and the specification header
63189         if VASNPRINTF is already defined.
63190         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63191         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63192         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63193         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63194         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63195         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63196         code accordingly.
63197         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63198         pad_ourselves also in this case, with the 'c' and 's' directives, and
63199         with a different notion of "width".
63200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63201
63202 2007-06-10  Bruno Haible  <bruno@clisp.org>
63203
63204         * modules/unistr/u32-mbsnlen: New file.
63205         * lib/unistr/u32-mbsnlen.c: New file.
63206
63207         * modules/unistr/u16-mbsnlen: New file.
63208         * lib/unistr/u16-mbsnlen.c: New file.
63209
63210         * modules/unistr/u8-mbsnlen: New file.
63211         * lib/unistr/u8-mbsnlen.c: New file.
63212
63213         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63214         declarations.
63215
63216 2007-06-10  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/string_.h (mbsnlen): New declaration.
63219         * lib/mbsnlen.c: New file.
63220         * m4/mbsnlen.m4: New file.
63221         * modules/mbsnlen: New file.
63222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63223         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63224         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63225
63226 2007-06-10  Bruno Haible  <bruno@clisp.org>
63227
63228         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63229
63230 2007-06-10  Bruno Haible  <bruno@clisp.org>
63231
63232         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63233         * lib/mbuiter.h: Likewise.
63234
63235 2007-06-10  Bruno Haible  <bruno@clisp.org>
63236
63237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63238         declaration.
63239
63240 2007-06-10  Karl Berry  <karl@gnu.org>
63241
63242         * config/srclist.txt: remove gettext entries, Bruno prefers
63243         to update individually.
63244
63245 2007-06-10  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63248         'maxlen'. Ensure only length + width bytes are allocated, not
63249         length + 1 + width.
63250
63251 2007-06-09  Bruno Haible  <bruno@clisp.org>
63252
63253         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63254         (CHAR_T): Remove macro.
63255         (VASNPRINTF): Update.
63256
63257 2007-06-09  Bruno Haible  <bruno@clisp.org>
63258
63259         * MODULES.html.sh (Unicode string functions): Add the new modules.
63260
63261         * modules/uniconv/u32-conv-to-enc: New file.
63262         * lib/uniconv/u32-conv-to-enc.c: New file.
63263         * modules/uniconv/u32-conv-to-enc-tests: New file.
63264         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63265
63266         * modules/uniconv/u16-conv-to-enc: New file.
63267         * lib/uniconv/u16-conv-to-enc.c: New file.
63268         * lib/uniconv/u-conv-to-enc.h: New file.
63269         * modules/uniconv/u16-conv-to-enc-tests: New file.
63270         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63271
63272         * modules/uniconv/u8-conv-to-enc: New file.
63273         * lib/uniconv/u8-conv-to-enc.c: New file.
63274         * modules/uniconv/u8-conv-to-enc-tests: New file.
63275         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63276
63277         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63278         u32_conv_to_encoding): New declarations.
63279
63280 2007-06-09  Bruno Haible  <bruno@clisp.org>
63281
63282         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63283
63284 2007-06-09  Bruno Haible  <bruno@clisp.org>
63285
63286         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63287         * modules/malloca: Renamed from modules/allocsa, updated.
63288         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63289         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63290         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63291         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63292         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63293         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63294         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63295         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63296         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63297         * modules/c-strcasestr (Depends-on): Update.
63298         * lib/c-strcasestr.c: Update.
63299         * modules/c-strstr (Depends-on): Update.
63300         * lib/c-strstr.c: Update.
63301         * modules/canonicalize-lgpl (Depends-on): Update.
63302         * lib/canonicalize-lgpl.c: Update.
63303         * modules/clean-temp (Depends-on): Update.
63304         * lib/clean-temp.c: Update.
63305         * modules/csharpcomp (Depends-on): Update.
63306         * lib/csharpcomp.c: Update.
63307         * modules/csharpexec (Depends-on): Update.
63308         * lib/csharpexec.c: Update.
63309         * modules/javacomp (Depends-on): Update.
63310         * lib/javacomp.c: Update.
63311         * modules/javaexec (Depends-on): Update.
63312         * lib/javaexec.c: Update.
63313         * modules/mbscasestr (Depends-on): Update.
63314         * lib/mbscasestr.c: Update.
63315         * modules/mbsstr (Depends-on): Update.
63316         * lib/mbsstr.c: Update.
63317         * modules/setenv (Depends-on): Update.
63318         * lib/setenv.c: Update.
63319         * modules/strcasestr (Depends-on): Update.
63320         * lib/strcasestr.c: Update.
63321         * modules/striconveha (Depends-on): Update.
63322         * lib/striconveha.c: Update.
63323         * modules/relocatable-prog-wrapper (Files): Update.
63324         * lib/relocwrapper.c: Update.
63325         * build-aux/install-reloc: Update.
63326         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63327
63328 2007-06-08  Bruno Haible  <bruno@clisp.org>
63329
63330         Port to uClibc.
63331         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63332         * lib/fpurge.c (fpurge): Likewise.
63333         * lib/freading.c (freading): Likewise.
63334         * lib/fseeko.c (rpl_fseeko): Likewise.
63335         * lib/fseterr.c (fseterr): Likewise.
63336         * lib/fwriting.c (fwriting): Likewise.
63337         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63338
63339 2007-06-08  Bruno Haible  <bruno@clisp.org>
63340
63341         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63342         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63343         * modules/gettext (Files): Add m4/intlmacosx.m4.
63344
63345 2007-06-07  Bruno Haible  <bruno@clisp.org>
63346
63347         * modules/localename-tests: New file.
63348         * tests/test-localename.c: New file.
63349
63350         New module 'localename'.
63351         * lib/localename.h: New file.
63352         * lib/localename.c: New file, from GNU gettext.
63353         * m4/localename.m4: New file.
63354         * modules/localename: New file.
63355
63356 2007-06-07  Bruno Haible  <bruno@clisp.org>
63357
63358         Work around the lack of <wchar.h> on some builds of uClibc.
63359         * doc/headers/wchar.texi: Update.
63360         * lib/wchar_.h: Include <wchar.h> only if it exists.
63361         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63362         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63363         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63364         doesn't exist.
63365         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63366         * modules/mbfile (Depends-on): Add wchar.
63367         * modules/mbiter (Depends-on): Likewise.
63368         * modules/mbuiter (Depends-on): Likewise.
63369         Reported by Simon Josefsson.
63370
63371 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63372
63373         Work around problem reported by Steven M. Schweda in
63374         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63375         Tru64 5.1B with the Compaq compiler environment installed declares
63376         an 'isblank' function but does not define it in the C library.
63377         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63378         * lib/regex_internal.h (isblank): Likewise.
63379         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63380         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63381
63382 2007-06-05  Bruno Haible  <bruno@clisp.org>
63383
63384         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63385         ia64.
63386         * modules/printf-safe: New file.
63387         * modules/fprintf-posix (Depends-on): Add printf-safe.
63388         * modules/printf-posix (Depends-on): Likewise.
63389         * modules/snprintf-posix (Depends-on): Likewise.
63390         * modules/sprintf-posix (Depends-on): Likewise.
63391         * modules/vasnprintf-posix (Depends-on): Likewise.
63392         * modules/vasprintf-posix (Depends-on): Likewise.
63393         * modules/vfprintf-posix (Depends-on): Likewise.
63394         * modules/vprintf-posix (Depends-on): Likewise.
63395         * modules/vsnprintf-posix (Depends-on): Likewise.
63396         * modules/vsprintf-posix (Depends-on): Likewise.
63397         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63398         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63399         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63400         "no" on i386, x86_64, ia64.
63401         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63402         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63403         on i386, x86_64, ia64.
63404         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63405         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63406         on i386, x86_64, ia64.
63407         * tests/test-vasnprintf-posix.c: Include float.h.
63408         (LDBL80_WORDS): New macro.
63409         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63410         on i386, x86_64, ia64.
63411         * tests/test-vasprintf-posix.c: Include float.h.
63412         (LDBL80_WORDS): New macro.
63413         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63414         on i386, x86_64, ia64.
63415         * tests/test-snprintf-posix.c: Include float.h.
63416         * tests/test-sprintf-posix.c: Likewise.
63417         * tests/test-vsnprintf-posix.c: Likewise.
63418         * tests/test-vsprintf-posix.c: Likewise.
63419
63420 2007-06-05  Bruno Haible  <bruno@clisp.org>
63421
63422         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63423         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63424         non-IEEE numbers on i386, x86_64, ia64.
63425         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63426         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63427         * tests/test-isnanl.h: Include float.h.
63428         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63429
63430 2007-06-05  Bruno Haible  <bruno@clisp.org>
63431
63432         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63433         also the %a / %A. Handle the %a / %A code before this extra handling.
63434
63435 2007-06-05  Bruno Haible  <bruno@clisp.org>
63436
63437         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63438         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63439
63440 2007-06-05  Bruno Haible  <bruno@clisp.org>
63441
63442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63443         typo in variable name.
63444
63445 2007-06-05  Eric Blake  <ebb9@byu.net>
63446
63447         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63448         Reported by Simon Josefsson.
63449
63450 2007-06-04  Bruno Haible  <bruno@clisp.org>
63451
63452         Avoid test failures on some PowerPC platforms.
63453         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63454         Define differently for PowerPC.
63455         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63456         Reported by Gary V. Vaughan <gary@gnu.org>.
63457
63458 2007-06-02  Bruno Haible  <bruno@clisp.org>
63459
63460         Fix test-stdint failure on FreeBSD/ia64.
63461         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63462         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63463         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63464         * doc/headers/stdint.texi: Update.
63465
63466 2007-06-01  Bruno Haible  <bruno@clisp.org>
63467
63468         * tests/test-binary-io.c (main): Pass a third argument to open().
63469         Reported by Gary V. Vaughan <gary@gnu.org>.
63470
63471 2007-06-01  Bruno Haible  <bruno@clisp.org>
63472
63473         * doc/functions/frexpl.texi: Update for mingw.
63474
63475 2007-06-01  Bruno Haible  <bruno@clisp.org>
63476
63477         * tests/test-lseek.c (main): Disable test of errno for invalid third
63478         argument.
63479         * doc/functions/lseek.texi: Update.
63480         Reported by Gary V. Vaughan <gary@gnu.org>.
63481
63482 2007-05-28  Bruno Haible  <bruno@clisp.org>
63483
63484         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63485
63486 2007-05-31  Eric Blake  <ebb9@byu.net>
63487
63488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63489         cross compiling.
63490
63491 2007-05-30  Eric Blake  <ebb9@byu.net>
63492         and Bruno Haible  <bruno@clisp.org>
63493
63494         Work around mingw test failures exposed by m4-1.4.9b.
63495         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63496         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63497         moment.
63498
63499 2007-05-30  Bruno Haible  <bruno@clisp.org>
63500
63501         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63502         assuming that they are closed. Needed on HP-UX 11.
63503
63504 2007-05-29  Bruno Haible  <bruno@clisp.org>
63505
63506         Fix a problem with #include_next.
63507         * lib/dirent_.h: Split the double-inclusion guard.
63508         * lib/fcntl_.h: Likewise.
63509         * lib/float_.h: Likewise.
63510         * lib/iconv_.h: Likewise.
63511         * lib/inttypes_.h: Likewise.
63512         * lib/locale_.h: Likewise.
63513         * lib/math_.h: Likewise.
63514         * lib/netinet_in_.h: Likewise.
63515         * lib/search_.h: Likewise.
63516         * lib/signal_.h: Likewise.
63517         * lib/stdint_.h: Likewise.
63518         * lib/stdio_.h: Likewise.
63519         * lib/stdlib_.h: Likewise.
63520         * lib/string_.h: Likewise.
63521         * lib/sys_select_.h: Likewise.
63522         * lib/sys_socket_.h: Likewise.
63523         * lib/sys_stat_.h: Likewise.
63524         * lib/sys_time_.h: Likewise.
63525         * lib/sysexits_.h: Likewise.
63526         * lib/time_.h: Likewise.
63527         * lib/unistd_.h: Likewise.
63528         * lib/wchar_.h: Likewise.
63529         * lib/wctype_.h: Likewise.
63530
63531 2007-05-29  Bruno Haible  <bruno@clisp.org>
63532
63533         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63534         for the moment.
63535
63536 2007-05-29  Bruno Haible  <bruno@clisp.org>
63537
63538         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63539         invocation.
63540         Reported by Eric Blake.
63541
63542 2007-05-29  Bruno Haible  <bruno@clisp.org>
63543
63544         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63545         compiling case.
63546
63547 2007-05-29  Eric Blake  <ebb9@byu.net>
63548             Bruno Haible  <bruno@clisp.org>
63549
63550         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63551         cross compiles.
63552
63553 2007-05-28  Eric Blake  <ebb9@byu.net>
63554
63555         * modules/closein-tests (test_closein_LDADD): Support test on
63556         cygwin with libtool.
63557
63558 2007-05-28  Bruno Haible  <bruno@clisp.org>
63559
63560         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63561         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63562         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63563         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63564         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63565         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63566         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63567         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63568         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63569
63570 2007-05-28  Eric Blake  <ebb9@byu.net>
63571
63572         Unconditionally include <config.h> in unit tests.
63573         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63574         * tests/test-allocsa.c, tests/test-arcfour.c,
63575         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63576         tests/test-array_list.c, tests/test-array_oset.c,
63577         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63578         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63579         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63580         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63581         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63582         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63583         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63584         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63585         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63586         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63587         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63588         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63589         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63590         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63591         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63592         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63593         test-md5.c, test-memmem.c, test-printf-posix.c,
63594         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63595         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63596         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63597         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63598         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63599         test-vasnprintf-posix2.c, test-vasnprintf.c,
63600         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63601         test-vfprintf-posix.c, test-vprintf-posix.c,
63602         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63603         test-xvasprintf.c: Likewise.
63604
63605 2007-05-28  Bruno Haible  <bruno@clisp.org>
63606
63607         * gnulib-tool (func_import): Remember the --with-tests command-line
63608         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63609         Reported by Eric Blake.
63610
63611 2007-05-28  Bruno Haible  <bruno@clisp.org>
63612
63613         * modules/ftell-tests: New file.
63614         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63615         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63616
63617         * lib/ftell.c: New file.
63618         * modules/ftell: New file.
63619         * m4/ftell.m4: New file.
63620         * doc/functions/ftell.texi: Update.
63621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63622         REPLACE_FTELL.
63623         * lib/stdio_.h (rpl_ftell): New declaration.
63624         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63625         REPLACE_FTELL.
63626
63627 2007-05-28  Eric Blake  <ebb9@byu.net>
63628
63629         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63630
63631 2007-05-28  Bruno Haible  <bruno@clisp.org>
63632
63633         * modules/fseek-tests: New file.
63634         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63635         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63636
63637         * lib/fseek.c: New file.
63638         * modules/fseek: New file.
63639         * m4/fseek.m4: New file.
63640         * doc/functions/fseek.texi: Update.
63641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63642         REPLACE_FSEEK.
63643         * lib/stdio_.h (rpl_fseek): New declaration.
63644         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63645         REPLACE_FSEEK.
63646
63647 2007-05-28  Bruno Haible  <bruno@clisp.org>
63648
63649         * lib/stdio_.h (fflush): More comments.
63650
63651 2007-05-28  Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63654         runtime test.
63655
63656 2007-05-28  Eric Blake  <ebb9@byu.net>
63657
63658         Improve lseek module.
63659         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63660         * lib/unistd_.h (lseek): Scale back link warning message.
63661         * tests/test-lseek.c: Beef up test.
63662         * tests/test-lseek.sh: Exercise more facets of lseek.
63663         Reported by Bruno Haible.
63664
63665 2007-05-28  Bruno Haible  <bruno@clisp.org>
63666
63667         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63668         to define.
63669
63670 2007-05-27  Bruno Haible  <bruno@clisp.org>
63671
63672         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63673
63674 2007-05-27  Bruno Haible  <bruno@clisp.org>
63675
63676         * modules/openmp: New file.
63677         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63678         Noah Misch.
63679
63680 2007-05-26  Bruno Haible  <bruno@clisp.org>
63681
63682         * modules/chdir-long (Depends-on): Add fchdir.
63683         * modules/chdir-safer (Depends-on): Likewise.
63684         * modules/fts (Depends-on): Likewise.
63685         * modules/fts-lgpl (Depends-on): Likewise.
63686         * modules/openat (Depends-on): Likewise.
63687         * modules/savewd (Depends-on): Likewise.
63688
63689 2007-05-24  Eric Blake  <ebb9@byu.net>
63690
63691         Fix lseek on mingw.
63692         * modules/lseek: New module.
63693         * m4/lseek.m4: New file.
63694         * lib/lseek.c: New file.
63695         * modules/lseek-tests: New file.
63696         * tests/test-lseek.c: New file.
63697         * tests/test-lseek.sh: New file.
63698         * MODULES.html.sh: Document lseek module.
63699         * modules/fflush (Depends-on): Add lseek, fseeko.
63700         * modules/fseeko (Depends-on): Likewise.
63701         * modules/ftello (Depends-on): Likewise.
63702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63703         broken.
63704         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63705         broken.
63706         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63707         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63708         * lib/ftello.c (rpl_ftello): Likewise.
63709         * tests/test-fseeko.c (main): Test this.
63710         * tests/test-fseeko.sh: Likewise.
63711         * tests/test-ftello.c (main): Likewise.
63712         * tests/test-ftello.sh: Likewise.
63713         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63714         implies replacing fseek.
63715         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63716         HAVE_FTELLO.
63717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63718         * modules/unistd (Makefile.am): Likewise.
63719         * lib/unistd_.h (lseek): Declare a replacement.
63720         * doc/functions/lseek.texi (lseek): Document this fix.
63721         * doc/functions/fseek.texi (fseek): Likewise.
63722         * doc/functions/ftell.texi (ftell): Likewise.
63723
63724 2007-05-24  Bruno Haible  <bruno@clisp.org>
63725
63726         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63727         in the printed representation of a NaN.
63728         * tests/test-vasprintf-posix.c (test_function): Likewise.
63729         * tests/test-snprintf-posix.h (test_function): Likewise.
63730         * tests/test-sprintf-posix.h (test_function): Likewise.
63731         Reported by Eric Blake.
63732
63733 2007-05-23  Eric Blake  <ebb9@byu.net>
63734
63735         Fix fseeko/ftello on cygwin 1.5.24.
63736         * doc/functions/fseeko.texi (fseeko): Document the fix.
63737         * doc/functions/ftello.texi (ftello): Document the fix.
63738         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63739         * doc/functions/stdout.text (stdout): New file.
63740         * doc/functions/stderr.text (stderr): New file.
63741         * doc/gnulib.texi (Function Substitutes): Use new files.
63742         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63743         prior to 1.7.0.
63744         * tests/test-ftello.c (main): Likewise for ftello.
63745         * tests/test-fseeko.sh: New file.
63746         * tests/test-ftello.sh: New file.
63747         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63748         with seekable stdin.
63749         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63750         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63751         (gl_REPLACE_FSEEKO): New macro.
63752         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63753         * modules/fseeko (Files): Distribute fseeko.c.
63754         * modules/ftello (Files): Distribute ftello.c.
63755         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63756         mode.
63757         * lib/ftello.c (rpl_ftello): New file.
63758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63759         fseeko, ftello.
63760         (gl_STDIN_LARGE_OFFSET): New macro.
63761         * modules/stdio (Makefile.am): Perform the replacement.
63762         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63763
63764 2007-05-23  Bruno Haible  <bruno@clisp.org>
63765
63766         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63767         GNULIB_POSIXCHECK is defined.
63768
63769 2007-05-21  Bruno Haible  <bruno@clisp.org>
63770
63771         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63772         Check also the output for NaN arguments. When cross-compiling, guess
63773         no on IRIX.
63774         * lib/vasnprintf.c: Update comments.
63775         * tests/test-vasnprintf-posix.c (strisnan): New function.
63776         (test_function): Use it.
63777         * tests/test-vasprintf-posix.c (strisnan): New function.
63778         (test_function): Use it.
63779         * tests/test-snprintf-posix.h (strisnan): New function.
63780         (test_function): Use it.
63781         * tests/test-sprintf-posix.h (strisnan): New function.
63782         (test_function): Use it.
63783         Reported by Eric Blake.
63784
63785 2007-05-20  Bruno Haible  <bruno@clisp.org>
63786
63787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63788         numbers that fails on BeOS.
63789         * doc/functions/frexpl.texi: Update.
63790
63791 2007-05-20  Jim Meyering  <jim@meyering.net>
63792
63793         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63794         forced upon us by glibc-2.6.
63795
63796 2007-05-20  Bruno Haible  <bruno@clisp.org>
63797
63798         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63799         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63800         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63801         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63802         NEED_PRINTF_INFINITE.
63803         (is_infinitel): New function.
63804         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63806         gl_PREREQ_VASNPRINTF_INFINITE.
63807         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63809         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63810         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63811         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63812         gl_PREREQ_VASNPRINTF_INFINITE.
63813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63820         * doc/functions/fprintf.texi: Update.
63821         * doc/functions/printf.texi: Update.
63822         * doc/functions/snprintf.texi: Update.
63823         * doc/functions/sprintf.texi: Update.
63824         * doc/functions/vfprintf.texi: Update.
63825         * doc/functions/vprintf.texi: Update.
63826         * doc/functions/vsnprintf.texi: Update.
63827         * doc/functions/vsprintf.texi: Update.
63828
63829 2007-05-20  Bruno Haible  <bruno@clisp.org>
63830
63831         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63832         was not found in libc.
63833         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63834
63835 2007-05-20  Bruno Haible  <bruno@clisp.org>
63836
63837         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63838         printed as "-nan" instead of "nan".
63839         * tests/test-vasprintf-posix.c (test_function): Likewise.
63840         * tests/test-snprintf-posix.h (test_function): Likewise.
63841         * tests/test-sprintf-posix.h (test_function): Likewise.
63842         Needed for HP-UX 11.
63843
63844 2007-05-20  Jim Meyering  <jim@meyering.net>
63845
63846         Fix buggy test for the fchownat-deref bug.
63847         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
63848         symlink required for the run-test.  Without it, this test would
63849         always declare that fchownat doesn't work, and client code would
63850         unnecessarily use the replacement function with fixed libc.
63851         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
63852         Reported by Greg Schafer.
63853
63854 2007-05-19  Bruno Haible  <bruno@clisp.org>
63855
63856         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
63857         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
63858         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
63859         Needed for IRIX 6.5 and Solaris 2.5.1.
63860
63861 2007-05-19  Bruno Haible  <bruno@clisp.org>
63862
63863         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
63864         (test_function): Skip tests involving -0.0 on platforms where
63865         -0.0 = 0.0.
63866         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
63867         (test_function): Skip tests involving -0.0 on platforms where
63868         -0.0 = 0.0.
63869         * tests/test-snprintf-posix.h (have_minus_zero): New function.
63870         (test_function): Skip tests involving -0.0 on platforms where
63871         -0.0 = 0.0.
63872         * tests/test-sprintf-posix.h (have_minus_zero): New function.
63873         (test_function): Skip tests involving -0.0 on platforms where
63874         -0.0 = 0.0.
63875         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
63876         tests.
63877         * tests/test-printf-posix.h (test_function): Likewise.
63878         * tests/test-printf-posix.output: Remove all -0.0 related results.
63879         Needed for IRIX 6.5.
63880
63881 2007-05-19  Bruno Haible  <bruno@clisp.org>
63882
63883         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63884         printed as "nan0x7fffffff" instead of "nan".
63885         * tests/test-vasprintf-posix.c (test_function): Likewise.
63886         * tests/test-snprintf-posix.h (test_function): Likewise.
63887         * tests/test-sprintf-posix.h (test_function): Likewise.
63888         * tests/test-fprintf-posix.h (NaN): Remove macro.
63889         (test_function): Remove all NaN related tests.
63890         * tests/test-printf-posix.h (NaN): Remove macro.
63891         (test_function): Remove all NaN related tests.
63892         * tests/test-printf-posix.output: Remove all NaN related results.
63893         Needed for IRIX 6.5.
63894
63895 2007-05-19  Bruno Haible  <bruno@clisp.org>
63896
63897         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
63898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63899
63900 2007-05-19  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/float_.h: New file.
63903         * m4/float_h.m4: New file.
63904         * modules/float: New file.
63905         * modules/isnanl (Dependencies): Add float.
63906         * modules/isnanl-nolibm (Dependencies): Likewise.
63907         * modules/mathl (Dependencies): Likewise.
63908         * modules/printf-frexpl (Dependencies): Likewise.
63909         * modules/signbit (Dependencies): Likewise.
63910         * modules/vasnprintf (Dependencies): Likewise.
63911         * doc/headers/float.texi: Update.
63912
63913 2007-05-19  Jim Meyering  <jim@meyering.net>
63914
63915         * lib/utimens.c (gl_futimens): Rename from futimens,
63916         now that glibc-2.6 declares futimens.
63917         * lib/utimens.h: Likewise.
63918
63919 2007-05-19  Bruno Haible  <bruno@clisp.org>
63920
63921         Avoid test failures on mingw.
63922         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
63923         * tests/test-printf-posix.sh: Likewise.
63924         * tests/test-vfprintf-posix.sh: Likewise.
63925         * tests/test-vprintf-posix.sh: Likewise.
63926
63927 2007-05-19  Bruno Haible  <bruno@clisp.org>
63928
63929         Fix *printf result for NaN, Inf, -0.0 on mingw.
63930         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
63931         * lib/vasnprintf.c: Include math.h and isnan.h.
63932         (is_infinite_or_zero): New function.
63933         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
63934         values in the %f, %F, %e, %E, %g, %G directives.
63935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
63936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63937         gl_PRINTF_INFINITE and test its result. Invoke
63938         gl_PREREQ_VASNPRINTF_INFINITE.
63939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63946         * doc/functions/fprintf.texi: Update.
63947         * doc/functions/printf.texi: Update.
63948         * doc/functions/snprintf.texi: Update.
63949         * doc/functions/sprintf.texi: Update.
63950         * doc/functions/vfprintf.texi: Update.
63951         * doc/functions/vprintf.texi: Update.
63952         * doc/functions/vsnprintf.texi: Update.
63953         * doc/functions/vsprintf.texi: Update.
63954
63955 2007-05-19  Bruno Haible  <bruno@clisp.org>
63956
63957         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
63958         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
63959         Instead of multiplying with 10^k, set extra_zeroes to k.
63960         (scale10_round_long_double): Remove function.
63961
63962 2007-05-18  Bruno Haible  <bruno@clisp.org>
63963
63964         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
63965         introduced on 2007-05-06.
63966
63967 2007-05-18  Bruno Haible  <bruno@clisp.org>
63968
63969         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
63970         %g directives.
63971         * tests/test-vasprintf-posix.c (test_function): Likewise.
63972         * tests/test-snprintf-posix.h (test_function): Likewise.
63973         * tests/test-sprintf-posix.h (test_function): Likewise.
63974
63975 2007-05-18  Bruno Haible  <bruno@clisp.org>
63976
63977         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
63978         (strmatch): New function.
63979         (test_function): Test the %f directive on numbers of various exponents.
63980         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
63981         (strmatch): New function.
63982         (test_function): Test the %f directive on numbers of various exponents.
63983         * tests/test-snprintf-posix.h (strmatch): New function.
63984         (test_function): Test the %f directive on numbers of various exponents.
63985         * tests/test-sprintf-posix.h (strmatch): New function.
63986         (test_function): Test the %f directive on numbers of various exponents.
63987         * tests/test-snprintf-posix.c (SIZEOF): New macro.
63988         * tests/test-sprintf-posix.c (SIZEOF): New macro.
63989         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
63990         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
63991
63992 2007-05-18  Bruno Haible  <bruno@clisp.org>
63993
63994         Add support for 'long double' number output.
63995         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
63996         * lib/vasnprintf.c: Include math.h and float+.h.
63997         (mp_limb_t): New type.
63998         (GMP_LIMB_BITS): New macro.
63999         (mp_twolimb_t): New type.
64000         (GMP_TWOLIMB_BITS): New macro.
64001         (mpn_t): New type.
64002         (multiply, divide, convert_to_decimal, decode_long_double,
64003         scale10_round_long_double, scale10_round_decimal_long_double,
64004         floorlog10l): New functions.
64005         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64006         for the %f, %F, %e, %E, %g, %G directives.
64007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64009         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64010         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64012         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64015         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64016         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64018         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64019         * modules/snprintf-posix (Depends-on): Likewise.
64020         * modules/sprintf-posix (Depends-on): Likewise.
64021         * modules/vasnprintf-posix (Depends-on): Likewise.
64022         * modules/vasprintf-posix (Depends-on): Likewise.
64023         * modules/vfprintf-posix (Depends-on): Likewise.
64024         * modules/vsnprintf-posix (Depends-on): Likewise.
64025         * modules/vsprintf-posix (Depends-on): Likewise.
64026         * modules/vasnprintf (Files): Add lib/float+.h.
64027         * doc/functions/fprintf.texi: Update.
64028         * doc/functions/printf.texi: Update.
64029         * doc/functions/snprintf.texi: Update.
64030         * doc/functions/sprintf.texi: Update.
64031         * doc/functions/vfprintf.texi: Update.
64032         * doc/functions/vprintf.texi: Update.
64033         * doc/functions/vsnprintf.texi: Update.
64034         * doc/functions/vsprintf.texi: Update.
64035
64036 2007-05-18  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64039
64040 2007-05-18  Bruno Haible  <bruno@clisp.org>
64041
64042         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64043         for printing 64-bit integers. Needed for mingw.
64044
64045 2007-05-18  Bruno Haible  <bruno@clisp.org>
64046
64047         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64048         gl_FUNC_FREXPL_WORKS.
64049         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64050
64051 2007-05-18  Bruno Haible  <bruno@clisp.org>
64052
64053         * modules/frexpl-nolibm-tests: New file.
64054
64055         * modules/frexpl-nolibm: New file.
64056         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64057
64058 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64061         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64062         GCC 4.2, which otherwise issues a lot of warnings.
64063         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64064         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64065         Likewise.
64066         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64067         * modules/iconv_open (iconv.h): Likewise.
64068         * modules/locale (locale.h): Likewise.
64069         * modules/netinet_in (netinet/in.h): Likewise.
64070         * modules/sys_select (sys_select.h): Likewise.
64071         * modules/sys_socket (sys/socket.h): Likewise.
64072         * modules/sys_stat (sys/stat.h): Likewise.
64073         * modules/sysexits (sysexits.h): Likewise.
64074         * modules/unistd (unistd.h): Likewise.
64075
64076 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64077
64078         * modules/closein-tests (Makefile.am): Distribute
64079         `test-closein.sh'.
64080
64081 2007-05-17  Bruno Haible  <bruno@clisp.org>
64082
64083         * tests/test-printf-posix.output: Renamed from
64084         tests/test-fprintf-posix.out.
64085         * modules/fprintf-posix-tests: Update.
64086         * modules/printf-posix-tests: Update.
64087         * modules/vfprintf-posix-tests: Update.
64088         * modules/vprintf-posix-tests: Update.
64089         * tests/test-fprintf-posix.sh: Update.
64090         * tests/test-printf-posix.sh: Update.
64091         * tests/test-vfprintf-posix.sh: Update.
64092         * tests/test-vprintf-posix.sh: Update.
64093         Reported by Ralf Wildenhues.
64094
64095 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64096
64097         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64098         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64099         GCC 4.2, which otherwise issues a lot of warnings.
64100         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64101         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64102         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64103         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64104         it should no longer be needed.
64105         * lib/string_.h: Likewise.
64106         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64107         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64108         * modules/inttypes (inttypes.h): Likewise.
64109         * modules/math (math.h): Likewise.
64110         * modules/search (search.h): Likewise.
64111         * modules/signal (signal.h): Likewise.
64112         * modules/stdint (stdint.h): Likewise.
64113         * modules/stdio (stdio.h): Likewise.
64114         * modules/stdlib (stdlib.h): Likewise.
64115         * modules/string (string.h): Likewise.
64116         * modules/sys_time (sys/time.h): Likewise.
64117         * modules/time (time.h): Likewise.
64118         * modules/wchar (wchar.h): Likewise.
64119         * modules/wctype (wtype.h): Likewise.
64120
64121 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64122
64123         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64124
64125 2007-05-13  Bruno Haible  <bruno@clisp.org>
64126
64127         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64128         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64129         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64130         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64131         (gl_PREREQ_STRTOK_R): Don't require it here.
64132
64133 2007-05-13  Bruno Haible  <bruno@clisp.org>
64134
64135         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64136         when used in C++ mode.
64137
64138 2007-05-12  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/linebuffer.h: Tweak doc.
64141         * lib/linebuffer.c: Likewise.
64142
64143 2007-05-12  James Youngman  <jay@gnu.org>
64144
64145         * lib/linebuffer.c (readlinebuffer_delim): New function,
64146         like readlinebuffer, but use a caller-specified delimiter.
64147         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64148         as the delimiter.
64149         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64150
64151 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64152
64153         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64154         * modules/openat (Files): Remove openat-die.c.
64155         (Depends-on): Add openat-die.
64156         * modules/openat-die: New module.
64157
64158 2007-05-06  Bruno Haible  <bruno@clisp.org>
64159
64160         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64161         Update with info about Cygwin.
64162         * doc/functions/fprintf.texi: Update.
64163         * doc/functions/printf.texi: Update.
64164         * doc/functions/snprintf.texi: Update.
64165         * doc/functions/sprintf.texi: Update.
64166         * doc/functions/vfprintf.texi: Update.
64167         * doc/functions/vprintf.texi: Update.
64168         * doc/functions/vsnprintf.texi: Update.
64169         * doc/functions/vsprintf.texi: Update.
64170         Reported by Eric Blake.
64171
64172 2007-05-06  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64175         padding ourselves for the floating-point directives.
64176         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64179         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64180         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64188         * tests/test-snprintf-posix.h (test_function): Also check the width
64189         and some flags in the %f directive.
64190         * tests/test-sprintf-posix.h (test_function): Likewise.
64191         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64192         * tests/test-vasprintf-posix.c (test_function): Likewise.
64193         * doc/functions/fprintf.texi: Update.
64194         * doc/functions/printf.texi: Update.
64195         * doc/functions/snprintf.texi: Update.
64196         * doc/functions/sprintf.texi: Update.
64197         * doc/functions/vfprintf.texi: Update.
64198         * doc/functions/vprintf.texi: Update.
64199         * doc/functions/vsnprintf.texi: Update.
64200         * doc/functions/vsprintf.texi: Update.
64201
64202 2007-05-06  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64205         pass the ' flag character to sprintf or snprintf.
64206         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64209         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64210         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64218         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64219         flag.
64220         * tests/test-sprintf-posix.h (test_function): Likewise.
64221         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64222         * tests/test-vasprintf-posix.c (test_function): Likewise.
64223         * doc/functions/fprintf.texi: Update.
64224         * doc/functions/printf.texi: Update.
64225         * doc/functions/snprintf.texi: Update.
64226         * doc/functions/sprintf.texi: Update.
64227         * doc/functions/vfprintf.texi: Update.
64228         * doc/functions/vprintf.texi: Update.
64229         * doc/functions/vsnprintf.texi: Update.
64230         * doc/functions/vsprintf.texi: Update.
64231
64232 2007-05-01  Bruno Haible  <bruno@clisp.org>
64233
64234         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64235
64236 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64237
64238         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64239         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64240
64241 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64244         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64246
64247 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64248
64249         * lib/argp-help.c (struct hol_entry): New member `ord'.
64250         (HOL_ENTRY_PTRCMP): Use ord for comparison
64251         (hol_sort): Initialize ord.
64252
64253 2007-05-01  Bruno Haible  <bruno@clisp.org>
64254
64255         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64256         Reported by Eric Blake.
64257         * doc/gnulib.texi (Function Substitutes): Update.
64258
64259 2007-05-01  Bruno Haible  <bruno@clisp.org>
64260
64261         * doc/functions.texi: Remove file, now redundant through
64262         doc/functions/*.texi.
64263
64264 2007-05-01  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/argp (Depends-on): Add sleep.
64267
64268 2007-05-01  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/sleep-tests: New file.
64271         * tests/test-sleep.c: New file.
64272
64273         * modules/sleep: New file.
64274         * lib/sleep.c: New file.
64275         * m4/sleep.m4: New file.
64276         * lib/unistd_.h (sleep): New declaration.
64277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64278         HAVE_SLEEP.
64279         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64280         * doc/functions/sleep.texi: Document the sleep module.
64281
64282 2007-05-01  Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/sigprocmask.h: Remove file.
64285         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64286         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64287         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64288         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64289         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64290         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64291         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64292         HAVE_SIGSET_T as a shell variable.
64293         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64294         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64295         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64296         (Depends-on): Add signal. Remove verify.
64297         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64298         (Include): Mention <signal.h> instead of sigprocmask.h.
64299         * NEWS: Mention the change.
64300         * lib/fatal-signal.c: Don't include sigprocmask.h.
64301
64302 2007-05-01  Bruno Haible  <bruno@clisp.org>
64303
64304         * modules/signal: New file.
64305         * lib/signal_.h: New file.
64306         * m4/signal_h.m4: New file.
64307
64308 2007-05-01  Bruno Haible  <bruno@clisp.org>
64309
64310         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64311         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64312         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64313         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64314
64315 2007-05-01  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64318         configure time.
64319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64320         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64321         * modules/sys_stat (Makefile.am): Substitute their values into
64322         sys/stat.h.
64323
64324 2007-05-01  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64327         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64328         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64329
64330 2007-05-01  Bruno Haible  <bruno@clisp.org>
64331
64332         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64333         'assert' module here.
64334
64335 2007-05-01  Bruno Haible  <bruno@clisp.org>
64336
64337         * doc/functions/*.texi: New files.
64338         * doc/functions/google-ranking.txt: New file.
64339         * doc/gnulib.texi (Function Substitutes): New chapter.
64340         (ctime, inet_ntoa): Remove sections.
64341         * doc/ctime.texi: Remove file.
64342         * doc/inet_ntoa.texi: Remove file.
64343         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64344         dependencies.
64345         (%.info): New rule, specifying a --reference-limit.
64346
64347 2007-05-01  Bruno Haible  <bruno@clisp.org>
64348
64349         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64350
64351 2007-05-01  Bruno Haible  <bruno@clisp.org>
64352
64353         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64354         the portability of 'mkdir' to mingw systems.
64355
64356 2007-05-01  Bruno Haible  <bruno@clisp.org>
64357
64358         * doc/headers/google-ranking.txt: New file.
64359
64360 2007-04-30  Eric Blake  <ebb9@byu.net>
64361
64362         Prefer fseeko to fseek.
64363         * modules/getpass (Depends-on): Add fseeko.
64364         * lib/getpass.c (getpass): Use fseeko, not fseek.
64365
64366 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64367
64368         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64369         assumes the sorting is stable, while most qsort implementations
64370         are not.  Use argument addresses to ensure they never compare as
64371         equal.
64372
64373         * tests/test-argp-2.sh (usage-indent test): Fix output
64374         (func_compare): Restore diff options
64375         * tests/test-argp.c: Restore #include "progname.h"
64376
64377 2007-04-29  Bruno Haible  <bruno@clisp.org>
64378
64379         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64381         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64383         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64384         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64385         (TESTS, check_PROGRAMS): Add test-snprintf.
64386         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64387         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64388         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64389         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64390         assertions that fail on HP-UX, OSF/1, or IRIX.
64391         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64392
64393 2007-04-29  Bruno Haible  <bruno@clisp.org>
64394
64395         * MODULES.html.sh (posix_functions): Remove 'contents'.
64396
64397 2007-04-29  Karl Berry  <karl@gnu.org>
64398
64399         * config/srclist.txt (gendocs_template_min): new entry.
64400
64401 2007-04-29  Bruno Haible  <bruno@clisp.org>
64402
64403         Work around fpurge bug on BSD systems.
64404         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64405         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64406         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64407         fpurge to rpl_fpurge if the system already has this function.
64408         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64409         the case where the system already has this function. Correct invariants
64410         on BSD systems.
64411         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64412         BSD systems.
64413
64414 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64415
64416         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64417         proposed by Sven Verdoolaege.
64418
64419         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64420         options.
64421         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64422         (usage and help tests): Update
64423
64424 2007-04-29  Bruno Haible  <bruno@clisp.org>
64425
64426         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64427         Print more information in case of failure. Disable a test on BeOS.
64428
64429 2007-04-29  Bruno Haible  <bruno@clisp.org>
64430
64431         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64432         This helps debugging on systems on which no gdb is available.
64433
64434 2007-04-29  Bruno Haible  <bruno@clisp.org>
64435
64436         * lib/freading.h: Improve comments.
64437         * lib/fwriting.h: Likewise.
64438         * tests/test-freading.c (main): Don't check freading immediately after
64439         repositioning. Needed for glibc.
64440
64441 2007-04-29  Bruno Haible  <bruno@clisp.org>
64442
64443         * lib/freading.c (freading): Trivial simplification.
64444
64445 2007-04-28  Bruno Haible  <bruno@clisp.org>
64446
64447         * tests/test-fwriting.c (main): Also test the interaction between
64448         fflush and fwriting.
64449         * modules/fwriting-tests (Depends-on): Add fflush.
64450
64451         * tests/test-freading.c (main): Also test the interaction between
64452         fflush and freading.
64453         * modules/freading-tests (Depends-on): Add fflush.
64454
64455 2007-04-28  Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64458         fseeko and ftello.
64459         Suggested by Eric Blake.
64460
64461 2007-04-28  Jim Meyering  <jim@meyering.net>
64462
64463         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64464         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64465         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64466
64467 2007-04-27  Eric Blake  <ebb9@byu.net>
64468
64469         * doc/headers/assert.texi (assert.h): Document assert module use.
64470
64471 2007-04-27  Bruno Haible  <bruno@clisp.org>
64472
64473         * doc/headers/*.texi: New files.
64474         * doc/gnulib.texi (Header File Substitutes): New chapter.
64475         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64476         dependencies.
64477         (standards.info ,standards.html, standards.dvi): Update dependencies.
64478         (mostlyclean, clean): New targets.
64479
64480 2007-04-27  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64483         * modules/sysexits (Files, Makefile.am): Update.
64484
64485         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64486         * modules/sys_socket (Files, Makefile.am): Update.
64487
64488         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64489         * modules/sys_stat (Files, Makefile.am): Update.
64490
64491 2007-04-27  Eric Blake  <ebb9@byu.net>
64492
64493         * lib/freading.h: Improve comments.
64494         * lib/fwriting.h: Likewise.
64495         * lib/fflush.c: Likewise.
64496
64497         Fix closein for mingw.
64498         * modules/closein-tests: Add tests for closein.
64499         * tests/test-closein.c: New file.
64500         * tests/test-closein.sh: Likewise.
64501         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64502         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64503
64504 2007-04-27  Bruno Haible  <bruno@clisp.org>
64505
64506         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64507         version is < 6.
64508         * lib/math_.h [__DECC]: Likewise.
64509         * lib/stdio_.h [__DECC]: Likewise.
64510         * lib/stdlib_.h [__DECC]: Likewise.
64511         * lib/string_.h [__DECC]: Likewise.
64512         * lib/time_.h [__DECC]: Likewise.
64513         * lib/wchar_.h [__DECC]: Likewise.
64514         * lib/wctype_.h [__DECC]: Likewise.
64515
64516 2007-04-27  Bruno Haible  <bruno@clisp.org>
64517
64518         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64519
64520 2007-04-27  Bruno Haible  <bruno@clisp.org>
64521
64522         * lib/fflush.c: Add comments.
64523         * modules/fpurge-tests (Depends-on): Add fflush.
64524         * modules/freadable-tests (Depends-on): Likewise.
64525         * modules/fwritable-tests (Depends-on): Likewise.
64526
64527 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64528
64529         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64530         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64531         Report by Bruno Haible <bruno@clisp.org>.
64532
64533 2007-04-26  Eric Blake  <ebb9@byu.net>
64534
64535         Fix fflush on mingw.
64536         * modules/fflush (Depends-on): Add freading.
64537         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64538         but unread data.
64539
64540 2007-04-26  Eric Blake  <ebb9@byu.net>
64541         and Bruno Haible  <bruno@clisp.org>
64542
64543         Implement freading and fwriting.
64544         * lib/freading.c: New file.
64545         * lib/freading.h: Likewise.
64546         * m4/freading.m4: Likewise.
64547         * modules/freading: Likewise.
64548         * modules/freading-tests: Likewise.
64549         * tests/test-freading.c: Likewise.
64550         * lib/fwriting.c: New file.
64551         * lib/fwriting.h: Likewise.
64552         * m4/fwriting.m4: Likewise.
64553         * modules/fwriting: Likewise.
64554         * modules/fwriting-tests: Likewise.
64555         * tests/test-fwriting.c: Likewise.
64556         * MODULES.html.sh (File stream based Input/Output): Mention them.
64557
64558 2007-04-26  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64561         'long' when we assume it.
64562         Suggested by Eric Blake.
64563
64564 2007-04-26  Bruno Haible  <bruno@clisp.org>
64565
64566         Ensure fseeko, ftello are declared on glibc systems.
64567         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64568         * modules/fseeko (configure.ac-early): Likewise.
64569         * modules/ftello (configure.ac-early): Likewise.
64570         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64571         AC_FUNC_FSEEKO for this.
64572         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64573         (gl_CHECK_FSEEKO): Remove macro.
64574
64575 2007-04-26  Bruno Haible  <bruno@clisp.org>
64576
64577         * tests/test-fflush.c (main): Also check the ftell result after
64578         fflush and fseek/fseeko.
64579         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64580         file descriptor position cache in the stream.
64581         * lib/fseeko.c (rpl_fseeko): Likewise.
64582
64583 2007-04-26  Bruno Haible  <bruno@clisp.org>
64584
64585         * modules/fflush-tests (Depends-on): Add fseeko.
64586
64587 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64588             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64589
64590         * lib/argz_.h: ensure error_t definition is obtained in same
64591         mechanism system argz.h would have.
64592         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64593         argz facilities are known bad.  Err on the side of caution if
64594         cross-compiling.
64595
64596 2007-04-25  Eric Blake  <ebb9@byu.net>
64597
64598         * lib/fpurge.c (includes): Use stdlib.h for free.
64599         * tests/test-fflush.c (main): Also test fflush-fseeko.
64600
64601 2007-04-25  Bruno Haible  <bruno@clisp.org>
64602
64603         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64604         * lib/fseeko.c: New file.
64605         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64606         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64607         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64608         gl_FUNC_FSEEKO.
64609         (gl_FUNC_FSEEKO): Invoke it.
64610         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64611         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64612         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64613
64614 2007-04-25  Bruno Haible  <bruno@clisp.org>
64615
64616         * modules/fflush (Depends-on): Add ftello.
64617
64618 2007-04-25  Bruno Haible  <bruno@clisp.org>
64619
64620         * modules/ftello-tests: New file.
64621         * tests/test-ftello.c: New file.
64622
64623         * modules/ftello: New file.
64624         * m4/ftello.m4: New file.
64625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64626         HAVE_FTELLO.
64627         * lib/stdio_.h (ftello): New declaration.
64628         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64629         HAVE_FTELLO.
64630
64631 2007-04-25  Bruno Haible  <bruno@clisp.org>
64632
64633         * modules/fseeko-tests: New file.
64634         * tests/test-fseeko.c: New file.
64635
64636         * modules/fseeko: New file.
64637         * m4/fseeko.m4: New file.
64638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64639         HAVE_FSEEKO.
64640         * lib/stdio_.h (fseeko): New declaration.
64641         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64642         HAVE_FSEEKO.
64643
64644 2007-04-25  Bruno Haible  <bruno@clisp.org>
64645
64646         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64647
64648 2007-04-25  Bruno Haible  <bruno@clisp.org>
64649
64650         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64651         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64652         * tests/test-unistd.c: Likewise.
64653         * tests/test-fcntl.c: Likewise.
64654
64655 2007-04-23  Eric Blake  <ebb9@byu.net>
64656
64657         * lib/fflush.c: Fix missing include.
64658         Reported by Bruno Haible.
64659
64660 2007-04-23  Bruno Haible  <bruno@clisp.org>
64661
64662         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64663         Reported by Eric Blake.
64664
64665 2007-04-23  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64668
64669 2007-04-23  Bruno Haible  <bruno@clisp.org>
64670
64671         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64672
64673 2007-04-23  Bruno Haible  <bruno@clisp.org>
64674
64675         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64676         Needed on HP-UX 11.
64677
64678 2007-04-16  Eric Blake  <ebb9@byu.net>
64679
64680         Make fflush rely on fpurge.
64681         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64682         open coding all variants.
64683         * modules/fflush (Depends-on): Add fpurge and unistd.
64684         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64685         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64686
64687         Fix --with-tests compilation on cygwin.
64688         * modules/argmatch-tests (Makefile.am): List gnulib library first
64689         in LDADD.
64690         * modules/argp-tests (Makefile.am): Likewise.
64691         * modules/array-list-tests (Makefile.am): Likewise.
64692         * modules/array-oset-tests (Makefile.am): Likewise.
64693         * modules/avltree-list-tests (Makefile.am): Likewise.
64694         * modules/avltree-oset-tests (Makefile.am): Likewise.
64695         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64696         * modules/carray-list-tests (Makefile.am): Likewise.
64697         * modules/dirname-tests (Makefile.am): Likewise.
64698         * modules/frexp-tests (Makefile.am): Likewise.
64699         * modules/isnanl-tests (Makefile.am): Likewise.
64700         * modules/linked-list-tests (Makefile.am): Likewise.
64701         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64702         * modules/lock-tests (Makefile.am): Likewise.
64703         * modules/rbtree-list-tests (Makefile.am): Likewise.
64704         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64705         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64706         * modules/tls-tests (Makefile.am): Likewise.
64707         * modules/tsearch-tests (Makefile.am): Likewise.
64708         * modules/xvasprintf-tests (Makefile.am): Likewise.
64709
64710         Fix fpurge for cygwin.
64711         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64712         value.
64713         * modules/fpurge-tests (Depends-on): Clean up trash.
64714
64715 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64716
64717         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64718
64719         * m4/autobuild.m4: Re-indent.
64720
64721 2007-04-13  Bruno Haible  <bruno@clisp.org>
64722
64723         * modules/fpurge-tests: New file.
64724         * tests/test-fpurge.c: New file.
64725
64726         * modules/fpurge: New file.
64727         * lib/fpurge.h: New file.
64728         * lib/fpurge.c: New file.
64729         * m4/fpurge.m4: New file.
64730
64731 2007-04-13  Bruno Haible  <bruno@clisp.org>
64732
64733         * modules/fbufmode-tests: New file.
64734         * tests/test-fbufmode.c: New file.
64735
64736         * modules/fbufmode: New file.
64737         * lib/fbufmode.h: New file.
64738         * lib/fbufmode.c: New file.
64739         * m4/fbufmode.m4: New file.
64740
64741 2007-04-13  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/fwritable-tests: New file.
64744         * tests/test-fwritable.c: New file.
64745
64746         * modules/fwritable: New file.
64747         * lib/fwritable.h: New file.
64748         * lib/fwritable.c: New file.
64749         * m4/fwritable.m4: New file.
64750
64751 2007-04-13  Bruno Haible  <bruno@clisp.org>
64752
64753         * modules/freadable-tests: New file.
64754         * tests/test-freadable.c: New file.
64755
64756         * modules/freadable: New file.
64757         * lib/freadable.h: New file.
64758         * lib/freadable.c: New file.
64759         * m4/freadable.m4: New file.
64760
64761 2007-04-13  Bruno Haible  <bruno@clisp.org>
64762
64763         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64764         MOSTLYCLEANFILES.
64765
64766 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64767
64768         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64769         gzip bootstrap.conf to avoid dragging in i18n machinery.
64770         (gnulib_tool_option): Use it.
64771
64772 2007-04-13  Bruno Haible  <bruno@clisp.org>
64773
64774         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64775         %F directives.
64776         * tests/test-vasprintf-posix.c (test_function): Likewise.
64777         * tests/test-snprintf-posix.h (test_function): Likewise.
64778         * tests/test-sprintf-posix.h (test_function): Likewise.
64779         * tests/test-fprintf-posix.h (test_function): Likewise.
64780         * tests/test-printf-posix.h (test_function): Likewise.
64781         * tests/test-fprintf-posix.out: Likewise.
64782
64783 2007-04-13  Bruno Haible  <bruno@clisp.org>
64784
64785         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64786         * modules/tls-tests (configure.ac): Likewise.
64787         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64788
64789 2007-04-13  Bruno Haible  <bruno@clisp.org>
64790
64791         * lib/tls.c (glthread_tls_get): Fix return type.
64792         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64793
64794 2007-04-12  Eric Blake  <ebb9@byu.net>
64795
64796         * modules/gettime (Depends-on): Remove gettime.
64797         Reported by Dmitry V. Levin.
64798
64799 2007-04-12  Bruno Haible  <bruno@clisp.org>
64800
64801         * modules/fflush (Include): Mention <stdio.h>.
64802         * modules/strtoimax (Include): Mention <inttypes.h>.
64803         * modules/strtoumax (Include): Likewise.
64804
64805 2007-04-12  Eric Blake  <ebb9@byu.net>
64806
64807         * .cvsignore: New file.
64808         * .gitignore: Likewise.
64809
64810 2007-04-12  Bruno Haible  <bruno@clisp.org>
64811
64812         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64813         not before, since $(LDADD) often contains libgnu.a.
64814         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64815         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64816         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64817         Needed on Cygwin.
64818
64819 2007-04-12  Eric Blake  <ebb9@byu.net>
64820
64821         Work around glibc's failure to flush stdin on fclose.
64822         * lib/closein.c (close_stdin): Flush stdin before closing.
64823
64824         Work around glibc's failure to reset seekable stdin on exit.
64825         * modules/closein: New module.
64826         * lib/closein.c: New file.
64827         * lib/closein.h: Likewise.
64828         * m4/closein.m4: Likewise.
64829         * MODULES.html.sh (File stream based Input/Output): Document it.
64830
64831 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64832
64833         * gnulib-tool: Rename generated 'autobuild' script to
64834         'do-autobuild' in --create-megatestdir output.
64835
64836         * doc/gnulib.texi (Build robot for gnulib): Fix.
64837
64838 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64839
64840         * modules/sysexits (Depends-on): Add absolute-header.
64841
64842 2007-04-12  Eric Blake  <ebb9@byu.net>
64843
64844         No need to preserve errno on success.
64845         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
64846         Reported by Bruno Haible.
64847
64848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64849
64850         * MODULES.html.sh (Support for maintaining and releasing
64851         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
64852
64853 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64854
64855         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
64856
64857 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64858
64859         * modules/autobuild: New module.
64860
64861         * m4/autobuild.m4: New file.
64862
64863 2007-04-11  Bruno Haible  <bruno@clisp.org>
64864
64865         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
64866         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
64867         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
64868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
64869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
64876         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64877         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
64879         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64880         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
64882         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64883         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64884         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
64885         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64886         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64887         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
64888         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64889         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
64891         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64892         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64893         Reported by Eric Blake.
64894
64895 2007-04-11  Bruno Haible  <bruno@clisp.org>
64896
64897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
64898
64899 2007-04-10  Bruno Haible  <bruno@clisp.org>
64900
64901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
64902         for NaN and Infinity. Needed on FreeBSD 6.1.
64903         * tests/test-vasnprintf-posix.c (test_function): Undo last change
64904         regarding results for "%010a" of Infinity and NaN.
64905         * tests/test-vasprintf-posix.c (test_function): Likewise.
64906         * tests/test-snprintf-posix.h (test_function): Likewise.
64907         * tests/test-sprintf-posix.h (test_function): Likewise.
64908         * tests/test-fprintf-posix.h (test_function): Likewise.
64909         * tests/test-printf-posix.h (test_function): Likewise.
64910         * tests/test-fprintf-posix.out: Likewise.
64911
64912 2007-04-10  Bruno Haible  <bruno@clisp.org>
64913
64914         * modules/locale-tests: New file.
64915         * tests/test-locale.c: New file.
64916
64917         * modules/locale: New file.
64918         * lib/locale_.h: New file.
64919         * m4/locale_h.m4: New file.
64920
64921 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
64922             Bruno Haible  <bruno@clisp.org>
64923
64924         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
64925         be determined, test for availability of the copysignf, copysign,
64926         copysignl functions.
64927         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
64928         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
64929         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
64930
64931 2007-04-09  Eric Blake  <ebb9@byu.net>
64932
64933         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
64934         * modules/stdio (Makefile.am): Support fflush.
64935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64936         * modules/fflush: New file.
64937         * lib/fflush.c: Likewise.
64938         * m4/fflush.m4: Likewise.
64939         * modules/fflush-tests: New test.
64940         * tests/test-fflush.c: Likewise.
64941         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
64942
64943 2007-04-06  Bruno Haible  <bruno@clisp.org>
64944
64945         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
64946         (VASNPRINTF): Use signbit for faster determination whether to print a
64947         minus sign.
64948         * modules/vasnprintf (Files): Remove lib/float+.h.
64949         * modules/fprintf-posix (Depends-on): Add signbit.
64950         * modules/snprintf-posix (Depends-on): Likewise.
64951         * modules/sprintf-posix (Depends-on): Likewise.
64952         * modules/vasnprintf-posix (Depends-on): Likewise.
64953         * modules/vasprintf-posix (Depends-on): Likewise.
64954         * modules/vfprintf-posix (Depends-on): Likewise.
64955         * modules/vsnprintf-posix (Depends-on): Likewise.
64956         * modules/vsprintf-posix (Depends-on): Likewise.
64957
64958 2007-04-06  Bruno Haible  <bruno@clisp.org>
64959
64960         * tests/test-frexp.c (main): Test also the sign bit of zero results.
64961         * tests/test-frexpl.c (main): Likewise.
64962         * tests/test-ldexpl.c (main): Likewise.
64963         * modules/frexp-tests (Depends-on): Add signbit.
64964         * modules/frexpl-tests (Depdends-on): Likewise.
64965         * modules/ldexpl-tests (Depdends-on): Likewise.
64966
64967 2007-04-06  Bruno Haible  <bruno@clisp.org>
64968
64969         * modules/signbit-tests: New file.
64970         * tests/test-signbit.c: New file.
64971
64972         * modules/signbit: New file.
64973         * lib/signbitf.c: New file.
64974         * lib/signbitd.c: New file.
64975         * lib/signbitl.c: New file.
64976         * m4/signbit.m4: New file.
64977         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
64978         (signbit): New macro.
64979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
64980         REPLACE_SIGNBIT.
64981         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
64982         REPLACE_FREXPL into math.h.
64983
64984 2007-04-06  Bruno Haible  <bruno@clisp.org>
64985
64986         * modules/isnanf-nolibm-tests: New file.
64987         * tests/test-isnanf.c: New file.
64988
64989         * modules/isnanf-nolibm: New file.
64990         * lib/isnanf.h: New file.
64991         * lib/isnanf.c: New file.
64992         * lib/isnan.c: Consider the USE_FLOAT macro.
64993         * m4/isnanf.m4: New file.
64994
64995 2007-04-06  Bruno Haible  <bruno@clisp.org>
64996
64997         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
64998         (Link): New section.
64999
65000         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65001
65002 2007-04-06  Bruno Haible  <bruno@clisp.org>
65003
65004         Assume the 'long double' type.
65005         * m4/longdouble.m4: Remove file.
65006         * config/srclist.txt: Don't mention longdouble.m4.
65007         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65008         * lib/float+.h: Likewise.
65009         * lib/frexp.c: Likewise.
65010         * lib/printf-args.h: Likewise.
65011         * lib/printf-args.c: Likewise.
65012         * lib/printf-frexp.c: Likewise.
65013         * lib/printf-parse.c: Likewise.
65014         * lib/vasnprintf.c: Likewise.
65015         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65016         * m4/intl.m4: Likewise.
65017         * m4/isnanl.m4: Likewise.
65018         * m4/printf.m4: Likewise.
65019         * m4/printf-frexpl.m4: Likewise.
65020         * m4/vasnprintf.m4: Likewise.
65021         * modules/allocsa (Files): Remove m4/longdouble.m4.
65022         * modules/gettext (Files): Likewise.
65023         * modules/relocatable-prog-wrapper (Files): Likewise.
65024         * modules/vasnprintf (Files): Likewise.
65025         * modules/isnanl (Files): Likewise.
65026         (Include): Simplify.
65027         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65028         (Include): Simplify.
65029         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65030         (Include): Simplify.
65031         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65032         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65033         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65034         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65035         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65036         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65037         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65038         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65039         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65040         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65041         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65042         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65043         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65044         * tests/test-isnanl.c: Likewise.
65045         * tests/test-snprintf-posix.h: Likewise.
65046         * tests/test-sprintf-posix.h: Likewise.
65047         * tests/test-vasnprintf-posix.c: Likewise.
65048         * tests/test-vasnprintf-posix2.c: Likewise.
65049         * tests/test-vasprintf-posix.c: Likewise.
65050
65051 2007-04-06  Bruno Haible  <bruno@clisp.org>
65052
65053         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65054         * lib/math_.h [__DECC]: Include the overridden include file through
65055         #include_next, outside the double-inclusion guard.
65056         * lib/stdio_.h [__DECC]: Likewise.
65057         * lib/stdlib_.h [__DECC]: Likewise.
65058         * lib/string_.h [__DECC]: Likewise.
65059         * lib/time_.h [__DECC]: Likewise.
65060         * lib/wchar_.h [__DECC]: Likewise.
65061         * lib/wctype_.h [__DECC]: Likewise.
65062         * lib/inttypes_.h [__DECC]: Likewise.
65063         Reported by Albert Chin <china@thewrittenword.com> in
65064         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65065
65066 2007-04-04  Eric Blake  <ebb9@byu.net>
65067
65068         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65069         1.5.x.
65070
65071 2007-04-04  Bruno Haible  <bruno@clisp.org>
65072
65073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65074         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65075
65076 2007-04-04  Bruno Haible  <bruno@clisp.org>
65077
65078         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65079         results for "%010a" of Infinity and NaN.
65080         * tests/test-vasprintf-posix.c (test_function): Likewise.
65081         * tests/test-snprintf-posix.h (test_function): Likewise.
65082         * tests/test-sprintf-posix.h (test_function): Likewise.
65083         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65084         * tests/test-printf-posix.h (test_function): Likewise.
65085         * tests/test-fprintf-posix.out: Update.
65086         Needed for FreeBSD 6.1.
65087
65088 2007-04-04  Bruno Haible  <bruno@clisp.org>
65089
65090         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65091         directly used by the gnulib modules nor by gnulib-tool.
65092
65093 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65094
65095         * DEPENDENCIES: Give overall description of version dependency
65096         desirability.  Use more-typical names for apps.
65097         Add shell, coreutils, diffutils, grep, tar, gzip.
65098
65099 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65100
65101         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65102
65103 2007-04-04  Karl Berry  <karl@gnu.org>
65104
65105         * MODULES.html.sh (func_module): missing '.
65106
65107 2007-04-03  Bruno Haible  <bruno@clisp.org>
65108
65109         * modules/argmatch-tests (Makefile.am): New variable
65110         test_argmatch_LDADD.
65111         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65112         * modules/array-list-tests (Makefile.am): New variable
65113         test_array_list_LDADD.
65114         * modules/array-oset-tests (Makefile.am): New variable
65115         test_array_oset_LDADD.
65116         * modules/avltree-list-tests (Makefile.am): New variable
65117         test_avltree_list_LDADD.
65118         * modules/avltree-oset-tests (Makefile.am): New variable
65119         test_avltree_oset_LDADD.
65120         * modules/avltreehash-list-tests (Makefile.am): New variable
65121         test_avltreehash_list_LDADD.
65122         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65123         test_canonicalize_lgpl_LDADD.
65124         * modules/carray-list-tests (Makefile.am): New variable
65125         test_carray_list_LDADD.
65126         * modules/dirname-tests (Makefile.am): New variable
65127         test_dirname_LDADD.
65128         * modules/linked-list-tests (Makefile.am): New variable
65129         test_linked_list_LDADD.
65130         * modules/linkedhash-list-tests (Makefile.am): New variable
65131         test_linkedhash_list_LDADD.
65132         * modules/rbtree-list-tests (Makefile.am): New variable
65133         test_rbtree_list_LDADD.
65134         * modules/rbtree-oset-tests (Makefile.am): New variable
65135         test_rbtree_oset_LDADD.
65136         * modules/rbtreehash-list-tests (Makefile.am): New variable
65137         test_rbtreehash_list_LDADD.
65138         * modules/xvasprintf-tests (Makefile.am): New variable
65139         test_xvasprintf_LDADD.
65140         Reported by Eric Blake.
65141
65142 2007-04-03  Eric Blake  <ebb9@byu.net>
65143
65144         * DEPENDENCIES: Weaken m4 requirements.
65145
65146 2007-04-03  Bruno Haible  <bruno@clisp.org>
65147
65148         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65149         * modules/isnanl-tests (configure.ac): Likewise.
65150
65151 2007-04-03  Ben Pfaff  <blp@gnu.org>
65152
65153         * modules/iconv_open: Add $(srcdir)/ to source directory
65154         references in Makefile fragments that call gperf, to fix VPATH
65155         builds.
65156
65157 2007-04-03  Bruno Haible  <bruno@clisp.org>
65158
65159         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65160         * lib/ldexpl.c: Undo last change.
65161
65162 2007-04-03  Bruno Haible  <bruno@clisp.org>
65163
65164         * modules/printf-frexpl (Depends-on): Undo last change.
65165         (Files): Add m4/ldexpl.m4.
65166
65167 2007-04-03  Bruno Haible  <bruno@clisp.org>
65168
65169         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65170         * modules/isnanl (Link): New section.
65171
65172         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65173         * modules/frexp (Link): New section.
65174
65175         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65176         * modules/frexpl (Link): New section.
65177
65178         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65179         * modules/ldexpl (Link): New section.
65180
65181 2007-04-03  Bruno Haible  <bruno@clisp.org>
65182
65183         * modules/TEMPLATE-EXTENDED: New file.
65184         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65185
65186 2007-04-03  Bruno Haible  <bruno@clisp.org>
65187
65188         * DEPENDENCIES: New file.
65189         Suggested by Simon Josefsson.
65190
65191 2007-04-03  Bruno Haible  <bruno@clisp.org>
65192
65193         * doc/gnulib.texi: Escape @.
65194
65195 2007-04-03  James Youngman  <jay@gnu.org>
65196         and Paul Eggert  <eggert@cs.ucla.edu>
65197
65198         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65199         birthtime on all systems that have birthtime, not just those which
65200         use st_birthtimensec rather than st_birthtim.  Putting zero in
65201         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65202         that the birth time is not available for files on an NFS mount.
65203
65204 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65205
65206         * modules/memxor: Move back from crypto/, suggested by Bruno.
65207         * modules/crypto/hmac-sha1: Fix memxor dependency.
65208
65209         * modules/crypto/gc: Moved from ../.
65210
65211 2007-04-02  Eric Blake  <ebb9@byu.net>
65212
65213         * lib/ldexpl.c (includes): Avoid libm.
65214
65215         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65216
65217 2007-04-02  Bruno Haible  <bruno@clisp.org>
65218
65219         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65220         on IRIX.
65221
65222 2007-04-02  Bruno Haible  <bruno@clisp.org>
65223
65224         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65225         x86 or x86_64 platforms running MacOS X.
65226         Reported by Ryan Schmidt <@ryandesign.com>.
65227
65228 2007-04-02  Bruno Haible  <bruno@clisp.org>
65229
65230         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65231         i386.
65232
65233 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65234
65235         * modules/crypto/arcfour: Moved from ../.
65236         * modules/crypto/arcfour-tests: Moved from ../.
65237         * modules/crypto/arctwo: Moved from ../.
65238         * modules/crypto/arctwo-tests: Moved from ../.
65239         * modules/crypto/des: Moved from ../.
65240         * modules/crypto/des-tests: Moved from ../.
65241         * modules/crypto/gc-arcfour: Moved from ../.
65242         * modules/crypto/gc-arcfour-tests: Moved from ../.
65243         * modules/crypto/gc-arctwo: Moved from ../.
65244         * modules/crypto/gc-arctwo-tests: Moved from ../.
65245         * modules/crypto/gc-des: Moved from ../.
65246         * modules/crypto/gc-des-tests: Moved from ../.
65247         * modules/crypto/gc-hmac-md5: Moved from ../.
65248         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65249         * modules/crypto/gc-hmac-sha1: Moved from ../.
65250         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65251         * modules/crypto/gc-md2: Moved from ../.
65252         * modules/crypto/gc-md2-tests: Moved from ../.
65253         * modules/crypto/gc-md4: Moved from ../.
65254         * modules/crypto/gc-md4-tests: Moved from ../.
65255         * modules/crypto/gc-md5: Moved from ../.
65256         * modules/crypto/gc-md5-tests: Moved from ../.
65257         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65258         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65259         * modules/crypto/gc-random: Moved from ../.
65260         * modules/crypto/gc-rijndael: Moved from ../.
65261         * modules/crypto/gc-rijndael-tests: Moved from ../.
65262         * modules/crypto/gc-sha1: Moved from ../.
65263         * modules/crypto/gc-sha1-tests: Moved from ../.
65264         * modules/crypto/gc-tests: Moved from ../.
65265         * modules/crypto/hmac-md5: Moved from ../.
65266         * modules/crypto/hmac-md5-tests: Moved from ../.
65267         * modules/crypto/hmac-sha1: Moved from ../.
65268         * modules/crypto/hmac-sha1-tests: Moved from ../.
65269         * modules/crypto/md2: Moved from ../.
65270         * modules/crypto/md2-tests: Moved from ../.
65271         * modules/crypto/md4: Moved from ../.
65272         * modules/crypto/md4-tests: Moved from ../.
65273         * modules/crypto/md5: Moved from ../.
65274         * modules/crypto/md5-tests: Moved from ../.
65275         * modules/crypto/memxor: Moved from ../.
65276         * modules/crypto/rijndael: Moved from ../.
65277         * modules/crypto/rijndael-tests: Moved from ../.
65278         * modules/crypto/sha1: Moved from ../.
65279
65280 2007-03-30  James Youngman  <jay@gnu.org>
65281
65282         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65283         rename() to change the ctime of a file (because ctime is unaffected
65284         by rename on jfs2 on AIX 5.1).
65285         (main): Start by doing cleanup, in case a previous run failed leaving
65286         test files behind.
65287
65288 2007-03-31  Bruno Haible  <bruno@clisp.org>
65289
65290         Support old proprietary implementations of iconv.
65291         * modules/iconv_open: New file.
65292         * lib/iconv_.h: New file.
65293         * m4/iconv_h.m4: New file.
65294         * lib/iconv_open.c: New file.
65295         * lib/iconv_open-aix.gperf: New file.
65296         * lib/iconv_open-hpux.gperf: New file.
65297         * lib/iconv_open-irix.gperf: New file.
65298         * lib/iconv_open-osf.gperf: New file.
65299         * m4/iconv_open.m4: New file.
65300         * modules/linebreak (Depends-on): Add iconv_open.
65301         * modules/striconv (Depends-on): Likewise.
65302         * modules/striconveh (Depends-on): Likewise.
65303         * modules/unicodeio (Depends-on): Likewise.
65304         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65305         (iconv_t)(-1).
65306         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65307         conversion if cd is (iconv_t)(-1).
65308         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65309         is not possible.
65310
65311 2007-03-31  Bruno Haible  <bruno@clisp.org>
65312
65313         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65314         work on Solaris either. Protect also second use of "autodetect_jp".
65315
65316 2007-03-31  Bruno Haible  <bruno@clisp.org>
65317
65318         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65319         the function is not present.
65320
65321 2007-03-31  Bruno Haible  <bruno@clisp.org>
65322
65323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65324         the function is not present.
65325
65326 2007-03-31  Bruno Haible  <bruno@clisp.org>
65327
65328         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65329         a bug in HP-UX iconv_open().
65330
65331 2007-03-31  Bruno Haible  <bruno@clisp.org>
65332
65333         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65334         (Mathematics <math.h>): New section, add fpieee.
65335         (Input/output <stdio.h>): Add fseterr.
65336         (Mathematics <math.h>): New section, add printf-frexp.
65337         (Container data structures): Add sublist.
65338         (Core language properties): Add fpucw, inline.
65339         (Functions for greatest-width integer types <inttypes.h>): Add
65340         imaxabs, imaxdiv, inttypes.
65341         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65342         isnanl-nolibm, ldexp.
65343         (Mathematics <math.h>): New section, add printf-frexpl.
65344         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65345         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65346         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65347         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65348         (Unicode string functions): Add unistr/u*-mbtoucr.
65349         (Java): Add javacomp-script, javaexec-script.
65350         (C#): Add csharpcomp-script, csharpexec-script.
65351         (Support for building libraries and executables): Add havelib,
65352         relocatable-*.
65353         (Support for maintaining and releasing projects): Renamed from
65354         'Support for maintaining and release projects'. Add announce-gen.
65355
65356 2007-03-31  Bruno Haible  <bruno@clisp.org>
65357
65358         * README: Talk primarily about git.
65359         (git and CVS): Renamed from CVS.
65360         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65361         gnulib is available through git.
65362         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65363
65364 2007-03-30  Bruno Haible  <bruno@clisp.org>
65365
65366         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65367         * lib/poll_.h: Likewise.
65368         * lib/stat_.h: Likewise.
65369         * lib/sys_time_.h: Likewise.
65370         * lib/sysexit_.h: Likewise.
65371         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65372         * lib/stdbool_.h: Likewise.
65373         * lib/byteswap_.h: Add double-inclusion guard.
65374
65375 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65376
65377         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65378
65379 2007-03-30  Karl Berry  <karl@gnu.org>
65380
65381         * config/srclist-update: double space after USA in the license
65382         substitution, since that's how it's usually (?) written.
65383
65384 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65385
65386         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65387         reported by Bruno Haible.
65388
65389 2007-03-29  Bruno Haible  <bruno@clisp.org>
65390
65391         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65392         a bug in AIX iconv().
65393
65394 2007-03-29  Bruno Haible  <bruno@clisp.org>
65395
65396         * modules/ldexpl-tests: New file.
65397         * tests/test-ldexpl.c: New file.
65398
65399 2007-03-29  Bruno Haible  <bruno@clisp.org>
65400
65401         * lib/ldexpl.c: Include fpucw.h.
65402         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65403         multiplication.
65404         * modules/ldexpl (Depends-on): Add fpucw.
65405
65406 2007-03-29  Bruno Haible  <bruno@clisp.org>
65407
65408         * modules/ldexpl: New file.
65409         * m4/ldexpl.m4: New file.
65410         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65411         set.
65412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65413         REPLACE_LDEXPL.
65414         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65415         REPLACE_LDEXPL.
65416         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65417         gl_FUNC_LDEXPL_WORKS.
65418         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65419         * modules/mathl (Files): Remove lib/ldexpl.c.
65420         (Depends-on): Add ldexpl.
65421
65422 2007-03-29  Bruno Haible  <bruno@clisp.org>
65423
65424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65425
65426 2007-03-29  Bruno Haible  <bruno@clisp.org>
65427
65428         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65429         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65430         and possibly also HP-UX.
65431         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65432         work on AIX, IRIX, HP-UX, OSF/1.
65433         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65434         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65435         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65436         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65437         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65438         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65439
65440 2007-03-29  Bruno Haible  <bruno@clisp.org>
65441
65442         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65443
65444 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65445
65446         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65447         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65448
65449 2007-03-29  Eric Blake  <ebb9@byu.net>
65450
65451         * lib/acl-internal.h: Remove redundant include.
65452         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65453         Cygwin when a file is locked.
65454
65455 2007-03-29  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65458         file.
65459         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65460
65461 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65462
65463         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65464         try to remove a parent directory if the child couldn't be removed
65465         (except for the first rmdir, which could fail because the child
65466         doesn't exist).  Problem reported by Jeff Blaine in
65467         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65468
65469 2007-03-28  Bruno Haible  <bruno@clisp.org>
65470
65471         * lib/striconveh.c (utf8conv_carefully): New function.
65472         (mem_cd_iconveh_internal): Invoke it.
65473
65474 2007-03-28  Bruno Haible  <bruno@clisp.org>
65475
65476         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65477         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65478         input.
65479         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65480         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65481         unistr/u8-uctomb.
65482
65483 2007-03-28  Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/unistr/u8-mbtoucr: New file.
65486         * lib/unistr/u8-mbtoucr.c: New file.
65487         * modules/unistr/u16-mbtoucr: New file.
65488         * lib/unistr/u16-mbtoucr.c: New file.
65489         * modules/unistr/u16-mbtoucr: New file.
65490         * lib/unistr/u16-mbtoucr.c: New file.
65491         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65492
65493 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65494             Bruno Haible  <bruno@clisp.org>
65495
65496         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65497         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65498         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65499
65500         * m4/stdio_h.m4: Add stubs for vasprintf too.
65501
65502         * modules/stdio: Support vasprintf in sed command.
65503
65504         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65505         vasprintf.h.  Add stdio module indicator.
65506
65507         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65508         vasprintf.h.
65509
65510         * lib/vasprintf.h: File removed.
65511
65512         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65513         * lib/vasprintf.c: Ditto.
65514         * lib/xvasprintf.c: Ditto.
65515         * tests/test-vasprintf-posix.c: Ditto.
65516         * tests/test-vasprintf.c: Ditto.
65517
65518 2007-03-27  Bruno Haible  <bruno@clisp.org>
65519
65520         Make vasnprintf multithread-safe.
65521         * lib/vasnprintf.c (decimal_point_char): New function.
65522         (VASNPRINTF): Use it.
65523         Suggested by Simon Josefsson.
65524
65525 2007-03-27  Eric Blake  <ebb9@byu.net>
65526
65527         Support sub-second birthtime on cygwin.
65528         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65529         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65530         (get_stat_birthtime): Also work with st_birthtim.
65531
65532 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65535         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65536         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65537         (get_stat_birthtime_ns): Simplify compile-time tests.
65538         (get_stat_birthtime): Change the API to look like
65539         get_stat_mtime etc., except return a negative tv_nsec on error.
65540         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65541         Don't check for "spare" fields.
65542         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65543         or for struct stat.st_birthtime, as these tests aren't used.
65544         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65545
65546 2007-03-27  Bruno Haible  <bruno@clisp.org>
65547
65548         * lib/stat-time.h: Include <sys/stat.h>.
65549
65550 2007-03-27  James Youngman  <jay@gnu.org>
65551
65552         * lib/stat-time.h (get_stat_birthtime): New function for
65553           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65554         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65555           and its variants.
65556         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65557         * modules/stat-time-test: New file.
65558         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65559
65560 2007-03-26  Bruno Haible  <bruno@clisp.org>
65561
65562         Better support of signalling NaNs.
65563         * lib/atanl.c: Include isnanl.h.
65564         (atanl): Perform test for NaN at the beginning of the function and
65565         through a call to isnanl.
65566         * lib/cosl.c: Include isnanl.h.
65567         (cosl): Perform test for NaN at the beginning of the function and
65568         through a call to isnanl.
65569         * lib/ldexpl.c: Include isnanl.h.
65570         (ldexpl): Perform test for NaN through a call to isnanl.
65571         * lib/logl.c: Include isnanl.h.
65572         (logl): Perform test for NaN at the beginning of the function and
65573         through a call to isnanl.
65574         * lib/sinl.c: Include isnanl.h.
65575         (sinl): Perform test for NaN at the beginning of the function and
65576         through a call to isnanl.
65577         * lib/sqrtl.c: Include isnanl.h.
65578         (sqrtl): Perform test for NaN at the beginning of the function and
65579         through a call to isnanl.
65580         * lib/tanl.c: Include isnanl.h.
65581         (tanl): Perform test for NaN at the beginning of the function and
65582         through a call to isnanl.
65583         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65584         * modules/mathl (Depends-on): Add isnanl.
65585
65586 2007-03-26  Eric Blake  <ebb9@byu.net>
65587
65588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65589         regression in logic sense of previous patch.
65590
65591 2007-03-26  Bruno Haible  <bruno@clisp.org>
65592
65593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65594         unportable shell command "if ! ...".
65595         Reported by Ralf Wildenhues.
65596
65597 2007-03-25  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65600         <sysexits.h> file, and only add EX_CONFIG.
65601         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65602         absolute file name and whether it is sufficient. Substitute also
65603         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65604         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65605         ABSOLUTE_SYSEXITS_H into sysexits.h.
65606
65607 2007-03-25  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65610         hints is NULL.
65611
65612 2007-03-25  Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65615         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65616
65617 2007-03-25  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/vasnprintf.c: Include langinfo.h.
65620         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65621         multithread-safe.
65622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65631         Reported by Simon Josefsson.
65632
65633 2007-03-25  Bruno Haible  <bruno@clisp.org>
65634
65635         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65636         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65637         * modules/vasnprintf (Depends-on): Add stdint.
65638
65639 2007-03-25  Bruno Haible  <bruno@clisp.org>
65640
65641         * modules/fpieee: New file.
65642         * m4/fpieee.m4: New file.
65643         * modules/isnan-nolibm (Depends-on): Add fpieee.
65644         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65645         * modules/isnanl (Depends-on): Add fpieee.
65646
65647 2007-03-25  Bruno Haible  <bruno@clisp.org>
65648
65649         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65650
65651 2007-03-25  Bruno Haible  <bruno@clisp.org>
65652
65653         Avoid test failures on IRIX 6.5.
65654         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65655         (main): Use it.
65656         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65657         macros.
65658         (main): Use them.
65659
65660 2007-03-25  Bruno Haible  <bruno@clisp.org>
65661
65662         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65663         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65664         exists but doesn't work.
65665         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65666         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65668         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65669         math.h.
65670
65671 2007-03-25  Bruno Haible  <bruno@clisp.org>
65672
65673         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65674         returns inf. Needed on IRIX 6.5.
65675
65676 2007-03-25  Bruno Haible  <bruno@clisp.org>
65677
65678         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65679         (main): Use isnanl instead of x != x idiom.
65680         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65681
65682         * tests/test-frexp.c: Include isnan.h.
65683         (main): Use isnan instead of x != x idiom.
65684         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65685
65686 2007-03-25  Bruno Haible  <bruno@clisp.org>
65687
65688         * tests/test-frexp.c (NaN): New function/macro.
65689         (main): Use it instead of 0.0 / 0.0.
65690         * tests/test-isnan.c (NaN): New function/macro.
65691         (main): Use it instead of 0.0 / 0.0.
65692         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65693         (test_function): Use it instead of 0.0 / 0.0.
65694         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65695         (test_function): Use it instead of 0.0 / 0.0.
65696         * tests/test-snprintf-posix.h (NaN): New function/macro.
65697         (test_function): Use it instead of 0.0 / 0.0.
65698         * tests/test-sprintf-posix.h (NaN): New function/macro.
65699         (test_function): Use it instead of 0.0 / 0.0.
65700         * tests/test-fprintf-posix.h (NaN): New function/macro.
65701         (test_function): Use it instead of 0.0 / 0.0.
65702         * tests/test-printf-posix.h (NaN): New function/macro.
65703         (test_function): Use it instead of 0.0 / 0.0.
65704
65705         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65706
65707 2007-03-25  Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65710
65711 2007-03-25  Bruno Haible  <bruno@clisp.org>
65712
65713         * lib/regexec.c (merge_state_with_log): Make static.
65714
65715 2007-03-25  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/trigl.c (kernel_rem_pio2): Make static.
65718
65719 2007-03-25  Bruno Haible  <bruno@clisp.org>
65720
65721         * lib/sincosl.c (sincosl_table): Make static.
65722
65723 2007-03-25  Bruno Haible  <bruno@clisp.org>
65724
65725         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65726         if the compiler does not support C99.
65727
65728 2007-03-25  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/time (Makefile.am): Ensure all rule action lines start with a
65731         tab.
65732
65733 2007-03-24  Bruno Haible  <bruno@clisp.org>
65734
65735         * modules/tsearch-tests: New file.
65736         * tests/test-tsearch.sh: New file.
65737         * tests/test-tsearch.c: New file, mostly copied from glibc.
65738
65739         * modules/search-tests: New file.
65740         * tests/test-search.c: New file.
65741
65742         * modules/search: New file.
65743         * lib/search_.h: New file, incorporating lib/tsearch.h.
65744         * m4/search_h.m4: New file.
65745         * lib/tsearch.h: Remove file.
65746         * lib/tsearch.c: Include search.h instead of tsearch.h.
65747         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65748         HAVE_TSEARCH.
65749         * modules/tsearch (Files): Remove lib/tsearch.h.
65750         (Depends-on): Add search.
65751         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65752         (Include): Change tsearch.h into search.h.
65753
65754 2007-03-24  Bruno Haible  <bruno@clisp.org>
65755
65756         * modules/fpucw: New file.
65757         * lib/fpucw.h: New file.
65758         * lib/frexp.c: Include fpucw.h.
65759         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65760         (FUNC): Use them.
65761         * lib/printf-frexp.c: Include fpucw.h.
65762         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65763         (FUNC): Use them.
65764         * lib/vasnprintf.c: Include fpucw.h.
65765         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65766         'long double' calculations.
65767         * tests/test-frexpl.c: Include fpucw.h.
65768         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65769         * tests/test-printf-frexpl.c: Include fpucw.h.
65770         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65771         * modules/frexpl (Depends-on): Add fpucw.
65772         * modules/printf-frexpl (Depends-on): Likewise.
65773         * modules/fprintf-posix (Depends-on): Likewise.
65774         * modules/snprintf-posix (Depends-on): Likewise.
65775         * modules/sprintf-posix (Depends-on): Likewise.
65776         * modules/vasnprintf-posix (Depends-on): Likewise.
65777         * modules/vasprintf-posix (Depends-on): Likewise.
65778         * modules/vfprintf-posix (Depends-on): Likewise.
65779         * modules/vsnprintf-posix (Depends-on): Likewise.
65780         * modules/vsprintf-posix (Depends-on): Likewise.
65781         * modules/frexpl-tests (Depends-on): Likewise.
65782         * modules/printf-frexpl-tests (Depends-on): Likewise.
65783
65784 2007-03-24  Bruno Haible  <bruno@clisp.org>
65785
65786         * lib/float+.h: New file.
65787         * lib/isnan.c: Include float+.h.
65788         (SIZE): New macro.
65789         (FUNC): Compare only SIZE bytes of the value.
65790         * lib/vasnprintf.c: Include float+.h.
65791         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65792         SIZEOF_LDBL or SIZEOF_DBL bytes.
65793         * modules/isnan-nolibm (Files): Add lib/float+.h.
65794         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65795         * modules/isnanl (Files): Add lib/float+.h.
65796         * modules/vasnprintf (Files): Add lib/float+.h.
65797
65798 2007-03-24  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65801         include isnanl-nolibm.h.
65802
65803 2007-03-24  Bruno Haible  <bruno@clisp.org>
65804
65805         * tests/test-read-file.c (main): Don't produce spurious output for
65806         expected situations. Make the test fail if it encountered unexpected
65807         results.
65808
65809 2007-03-24  Bruno Haible  <bruno@clisp.org>
65810
65811         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65812         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65813
65814 2007-03-24  Bruno Haible  <bruno@clisp.org>
65815
65816         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65817
65818 2007-03-24  Bruno Haible  <bruno@clisp.org>
65819
65820         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65821         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65822
65823         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65824         * modules/utf8-ucs4: Turn into a symbolic link to module
65825         unistr/u8-mbtouc.
65826
65827         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65828         utf8-ucs4-unsafe.
65829         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65830         unistr/u8-mbtouc-unsafe.
65831
65832         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65833         * modules/utf16-ucs4: Turn into a symbolic link to module
65834         unistr/u16-mbtouc.
65835
65836         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65837         utf16-ucs4-unsafe.
65838         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65839         unistr/u16-mbtouc-unsafe.
65840
65841         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
65842         * modules/ucs4-utf8: Turn into a symbolic link to module
65843         unistr/u8-ubtomb.
65844
65845         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
65846         * modules/ucs4-utf16: Turn into a symbolic link to module
65847         unistr/u16-ubtomb.
65848
65849 2007-03-24  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
65852         Enable the function only if HAVE_INLINE.
65853         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
65854         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65855         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
65856         Enable the function only if HAVE_INLINE.
65857         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
65858         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65859         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
65860         Enable the function only if HAVE_INLINE.
65861         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
65862         Enable the function only if HAVE_INLINE.
65863         * modules/utf8-ucs4: Update.
65864         * modules/utf8-ucs4-unsafe: Update.
65865         * modules/utf16-ucs4: Update.
65866         * modules/utf16-ucs4-unsafe: Update.
65867         * modules/ucs4-utf8: Update.
65868         * modules/ucs4-utf16: Update.
65869
65870 2007-03-24  Bruno Haible  <bruno@clisp.org>
65871
65872         * lib/utf8-ucs4.h: Remove file.
65873         * lib/utf8-ucs4-unsafe.h: Remove file.
65874         * lib/utf16-ucs4.h: Remove file.
65875         * lib/utf16-ucs4-unsafe.h: Remove file.
65876         * lib/ucs4-utf8.h: Remove file.
65877         * lib/ucs4-utf16.h: Remove file.
65878         * lib/unistr.h: Include their previous contents.
65879         * m4/utf-ucs4.m4: Remove file.
65880         * m4/ucs4-utf.m4: Remove file.
65881         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
65882         (Depends-on): Add unistr/base.
65883         (configure.ac): Remove gl_UTF_UCS4.
65884         (Makefile.am): Update.
65885         (Include): Change to unistr.h.
65886         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
65887         (Depends-on): Add unistr/base.
65888         (configure.ac): Remove gl_UTF_UCS4.
65889         (Makefile.am): Update.
65890         (Include): Change to unistr.h.
65891         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
65892         (Depends-on): Add unistr/base.
65893         (configure.ac): Remove gl_UTF_UCS4.
65894         (Makefile.am): Update.
65895         (Include): Change to unistr.h.
65896         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
65897         (Depends-on): Add unistr/base.
65898         (configure.ac): Remove gl_UTF_UCS4.
65899         (Makefile.am): Update.
65900         (Include): Change to unistr.h.
65901         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
65902         (Depends-on): Add unistr/base.
65903         (configure.ac): Remove gl_UCS4_UTF.
65904         (Makefile.am): Update.
65905         (Include): Change to unistr.h.
65906         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
65907         (Depends-on): Add unistr/base.
65908         (configure.ac): Remove gl_UCS4_UTF.
65909         (Makefile.am): Update.
65910         (Include): Change to unistr.h.
65911         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
65912         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
65913         utf8-ucs4-unsafe.h.
65914         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
65915         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
65916         utf16-ucs4-unsafe.h.
65917         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
65918         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
65919         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
65920         * lib/unistr/u8-strchr.c: Likewise.
65921         * lib/unistr/u8-strrchr.c: Likewise.
65922         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
65923         * lib/unistr/u16-strchr.c: Likewise.
65924         * lib/unistr/u16-strrchr.c: Likewise.
65925         * lib/striconveh.c: Update.
65926         * lib/linebreak.c: Update.
65927
65928 2007-03-24  Bruno Haible  <bruno@clisp.org>
65929
65930         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
65931         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
65932
65933 2007-03-22  Bruno Haible  <bruno@clisp.org>
65934
65935         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
65936
65937 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * MODULES.html.sh (File system functions): New module write-any-file.
65940         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
65941         * m4/write-any-file.m4: New files.
65942
65943 2007-03-23  Eric Blake  <ebb9@byu.net>
65944
65945         * gnulib-tool: Rearrange space-tab sequences, since some editors
65946         like to eat them.
65947
65948 2007-03-23  Eric Blake  <ebb9@byu.net>
65949
65950         * lib/version-etc.c (version_etc_va): Update license wording to
65951         be more concise.  Recommended by Richard Stallman.
65952
65953 2007-03-22  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/poll.c (MSG_PEEK): New fallback definition.
65956
65957 2007-03-22  Bruno Haible  <bruno@clisp.org>
65958
65959         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
65960         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
65961         (main): Update.
65962         Fixes a compilation error on BeOS.
65963
65964 2007-03-22  Bruno Haible  <bruno@clisp.org>
65965
65966         * modules/frexpl-tests: New file.
65967         * tests/test-frexpl.c: New file.
65968
65969         * modules/frexpl: New file.
65970         * m4/frexpl.m4: New file.
65971         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
65972         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
65973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
65974         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
65975         (Depends-on): Add frexpl. Remove isnanl-nolibm.
65976         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
65977
65978 2007-03-22  Bruno Haible  <bruno@clisp.org>
65979
65980         * lib/frexpl.c: Share code with lib/frexp.c.
65981         * modules/mathl (Files): Add lib/frexp.c.
65982         (Depends-on): Add isnanl-nolibm.
65983
65984 2007-03-22  Bruno Haible  <bruno@clisp.org>
65985
65986         * modules/printf-frexp (Files): Add m4/frexp.m4.
65987         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
65988         only if the found frexp function actually works.
65989
65990 2007-03-22  Bruno Haible  <bruno@clisp.org>
65991
65992         * lib/frexp.c: Remove older implementation that uses divisions.
65993
65994 2007-03-21  Bruno Haible  <bruno@clisp.org>
65995
65996         * modules/frexp-tests: New file.
65997         * tests/test-frexp.c: New file.
65998
65999         * modules/frexp: New file.
66000         * lib/frexp.c: New file.
66001         * m4/frexp.m4: New file.
66002         * lib/math_.h (frexp): New declaration.
66003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66004         REPLACE_FREXP.
66005         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66006
66007 2007-03-21  Bruno Haible  <bruno@clisp.org>
66008
66009         * modules/isnanl-tests: New file.
66010         * tests/test-isnanl.c: New file.
66011
66012         * modules/isnanl: New file.
66013         * lib/isnanl.h: New file.
66014         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66015         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66016         gl_FUNC_ISNANL_WORKS.
66017         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66018         New macros.
66019
66020 2007-03-21  Bruno Haible  <bruno@clisp.org>
66021
66022         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66023         lib/isnanl.h.
66024         (Include): Update.
66025         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66026         * lib/vasnprintf.c: Update.
66027         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66028         tests/test-isnanl.h, remove tests/test-isnanl.c.
66029         (Makefile.am): Update.
66030         * tests/test-isnanl-nolibm.c: New file.
66031         * tests/test-isnanl.h: New file.
66032         * tests/test-isnanl.c: Remove file.
66033
66034 2007-03-21  Jim Meyering  <jim@meyering.net>
66035
66036         When trying to open ".", treat ESTALE like EACCES.
66037         * lib/savewd.c (savewd_save): Resort to forking not just upon
66038         failure with EACCES, but also when errno is ESTALE.
66039
66040 2007-03-20  Bruno Haible  <bruno@clisp.org>
66041
66042         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66043         Needed on AIX 5.1. Reported by Matthew Woehlke.
66044
66045 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66046
66047         Suggestions by Bruno Haible:
66048         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66049         our own.
66050         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66051         * modules/acl (Depends-on): Add gettext.
66052
66053 2007-03-19  Bruno Haible  <bruno@clisp.org>
66054
66055         * modules/iconvme: Remove file.
66056         * lib/iconvme.h: Remove file.
66057         * lib/iconvme.c: Remove file.
66058         * m4/iconvme.m4: Remove file.
66059
66060 2007-03-19  Bruno Haible  <bruno@clisp.org>
66061
66062         * doc/relocatable-maint.texi: Break long shell script line.
66063         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66064
66065 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66068         handle file_has_acl.
66069         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66070         * lib/acl.c: Move header inclusions and related macro defns into
66071         lib/acl-internal.h.
66072         (S_ISLNK): Remove defn, since that's now done for us.
66073         (file_has_acl): Move to lib/file-has-acl.c.
66074         Call acl_trivial if available.  This is the crucial part of the fix.
66075         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66076         shared within the library.  Rewrite a bit, partly to make it compatible
66077         with the GNU coding style.
66078         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66079         Remove unnecessary double-quotes.
66080         Don't test for acl_to_text; the build will catch that.
66081         Replace acl_entries if it doesn't exist and it is needed.
66082         Check for -lsec and acl_trivial (as used on Solaris 10).
66083         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66084         lib/file-has-acl.c.
66085         (Depends-on): Add sys_stat, for S_ISLNK.
66086
66087 2007-03-19  Ben Pfaff  <blp@gnu.org>
66088
66089         * doc/gnulib.texi: Fix typos.
66090         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66091
66092 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66093
66094         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66095         If size is zero here, buf must be zero.
66096
66097 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66098
66099         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66100         <bruno@clisp.org>.
66101
66102 2007-03-18  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66105         Suggested by Eric Blake.
66106
66107 2007-03-18  Ben Pfaff  <blp@gnu.org>
66108
66109         * doc/relocatable.texi: Recommend using as prefix a directory
66110         that does not exist and will never be created.  Based on
66111         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66112         and others.
66113
66114 2007-03-17  Bruno Haible  <bruno@clisp.org>
66115
66116         * lib/fchownat.c: Include lchown.h.
66117
66118 2007-03-17  Bruno Haible  <bruno@clisp.org>
66119
66120         Fix endless loop when the given allocated size was > INT_MAX.
66121         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66122         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66123         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66124         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66125         * lib/sprintf.c (sprintf): Likewise.
66126
66127 2007-03-17  Bruno Haible  <bruno@clisp.org>
66128
66129         * tests/test-argp-2.sh (func_compare): Output a context diff.
66130
66131 2007-03-17  Bruno Haible  <bruno@clisp.org>
66132
66133         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66134         locale's decimal-point character.
66135
66136 2007-03-17  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66139         before comparing it. Needed because on some platforms (e.g. x86) a
66140         'long double' occupies less bytes than sizeof (long double).
66141
66142 2007-03-17  Bruno Haible  <bruno@clisp.org>
66143
66144         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66145         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66146         * tests/test-getaddrinfo.c (simple): Likewise.
66147         * tests/test-read-file.c (main): Likewise.
66148
66149 2007-03-17  Bruno Haible  <bruno@clisp.org>
66150
66151         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66152
66153 2007-03-17  Bruno Haible  <bruno@clisp.org>
66154
66155         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66156         unused variable.
66157
66158 2007-03-17  Bruno Haible  <bruno@clisp.org>
66159
66160         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66161         * tests/test-c-strncasecmp.c: Likewise.
66162
66163 2007-03-17  Bruno Haible  <bruno@clisp.org>
66164
66165         * modules/stdlib (Depends-on): Add unistd.
66166         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66167         Needed for MacOS X 10.3.
66168
66169 2007-03-17  Bruno Haible  <bruno@clisp.org>
66170
66171         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66172
66173 2007-03-17  Bruno Haible  <bruno@clisp.org>
66174
66175         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66176
66177 2007-03-17  Bruno Haible  <bruno@clisp.org>
66178
66179         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66180         to reflect files copied from gnulib (with or without modifications).
66181         Suggested by Jim Meyering.
66182
66183 2007-03-17  Eric Blake  <ebb9@byu.net>
66184
66185         * NEWS: Document stdlib change from 2007-02-18.
66186
66187 2007-03-17  Jim Meyering  <jim@meyering.net>
66188
66189         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66190         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66191         someone uses a name containing shell meta-characters.
66192         Reported by Alfred M. Szmidt.
66193
66194         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66195
66196 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66197
66198         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66199         and copy gettext configuration files only if configure.ac contains
66200         a use of AM_GNU_GETTEXT_VERSION.
66201
66202 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66203
66204         * build-aux/bootstrap (gnulib_name): New variable.
66205         (gnulib_tool_options): Use it.
66206
66207 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66208
66209         * tests/test-des.c: Use new namespace.
66210
66211 2007-03-15  Bruno Haible  <bruno@clisp.org>
66212
66213         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66214         Reported by James Youngman <jay@gnu.org>.
66215
66216 2007-03-15  Bruno Haible  <bruno@clisp.org>
66217
66218         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66219         declared prototype. Needed with cc on OSF/1 5.1.
66220
66221 2007-03-15  Bruno Haible  <bruno@clisp.org>
66222
66223         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66224         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66225         (struct gl_list_implementation): Add dispose_fn argument to the
66226         'create_empty', 'create' methods.
66227         (struct gl_list_impl_base): Add field 'dispose_fn'.
66228         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66229         argument.
66230         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66231         dispose_fn argument.
66232         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66233         dispose_fn on the dropped values.
66234         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66235         dispose_fn argument.
66236         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66237         dropped values.
66238         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66239         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66240         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66241         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66242         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66243         argument.
66244         (gl_tree_list_free): Call dispose_fn on the dropped values.
66245         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66246         the dropped values.
66247         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66248         Add dispose_fn argument.
66249         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66250         Call dispose_fn on the dropped values.
66251         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66252         Add dispose_fn argument.
66253         (gl_sublist_create): Initialize the 'dispose_fn' field.
66254         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66255         * tests/test-array_list.c (main): Update.
66256         * tests/test-carray_list.c (main): Update.
66257         * tests/test-avltree_list.c (main): Update.
66258         * tests/test-rbtree_list.c (main): Update.
66259         * tests/test-avltreehash_list.c (main): Update.
66260         * tests/test-rbtreehash_list.c (main): Update.
66261         * tests/test-linked_list.c (main): Update.
66262         * tests/test-linkedhash_list.c (main): Update.
66263         * tests/test-array_oset.c (main): Update.
66264
66265 2007-03-15  Bruno Haible  <bruno@clisp.org>
66266
66267         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66268         (gl_oset_create_empty): Add dispose_fn argument.
66269         (struct gl_oset_implementation): Add dispose_fn argument to
66270         'create_empty' method.
66271         (struct gl_oset_impl_base): Add dispose_fn field.
66272         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66273         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66274         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66275         values.
66276         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66277         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66278         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66279         dropped value.
66280         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66281         dropped value.
66282         * tests/test-array_oset.c (main): Update.
66283         * tests/test-avltree_oset.c (main): Update.
66284         * tests/test-rbtree_oset.c (main): Update.
66285         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66286
66287 2007-03-13  Bruno Haible  <bruno@clisp.org>
66288
66289         * tests/test-stdbool.c (i): Update after last patch.
66290
66291 2007-03-12  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66294         the iswprint macro. Needed on Solaris 2.5.1.
66295
66296 2007-03-12  Bruno Haible  <bruno@clisp.org>
66297
66298         * tests/test-printf-frexp.c (main): Declare x as volatile.
66299
66300 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66301
66302         * doc/gnulib.texi (Build robot for gnulib): New section.
66303
66304 2007-03-12  Jim Meyering  <jim@meyering.net>
66305
66306         * build-aux/bootstrap: New file.
66307         * build-aux/bootstrap.conf: New file, from coreutils.
66308
66309 2007-03-11  Bruno Haible  <bruno@clisp.org>
66310
66311         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66312
66313 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66314
66315         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66316         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66317         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66318
66319 2007-03-11  Bruno Haible  <bruno@clisp.org>
66320
66321         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66322         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66323
66324 2007-03-11  Bruno Haible  <bruno@clisp.org>
66325
66326         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66327         formula. Needed for SunPRO C 5.0.
66328
66329 2007-03-11  Bruno Haible  <bruno@clisp.org>
66330
66331         * modules/long-options (Depends-on): Add getopt.
66332
66333 2007-03-11  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/modechange (Depends-on): Add stdbool.
66336
66337 2007-03-11  Bruno Haible  <bruno@clisp.org>
66338
66339         * modules/i-ring (Depends-on): Add stdbool.
66340
66341 2007-03-11  Bruno Haible  <bruno@clisp.org>
66342
66343         * modules/gc-des (Depends-on): Add stdbool.
66344
66345 2007-03-11  Bruno Haible  <bruno@clisp.org>
66346
66347         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66348
66349 2007-03-11  Bruno Haible  <bruno@clisp.org>
66350
66351         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66352
66353 2007-03-11  Bruno Haible  <bruno@clisp.org>
66354
66355         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66356
66357 2007-03-11  Bruno Haible  <bruno@clisp.org>
66358
66359         * lib/vasnprintf.c (sprintf): Undefine.
66360
66361 2007-03-11  Bruno Haible  <bruno@clisp.org>
66362
66363         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66364         initializers in SunPRO C and Compaq C compilers.
66365
66366 2007-03-11  Bruno Haible  <bruno@clisp.org>
66367
66368         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66369         decrementing code ANSI C compliant.
66370
66371 2007-03-11  Bruno Haible  <bruno@clisp.org>
66372
66373         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66374         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66375
66376 2007-03-11  Bruno Haible  <bruno@clisp.org>
66377
66378         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66379         <stdbool.h> substitute doesn't pass.
66380
66381 2007-03-11  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66384
66385 2007-03-11  Bruno Haible  <bruno@clisp.org>
66386
66387         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66388         script, for submission to autobuild.josefsson.org.
66389
66390 2007-03-10  Bruno Haible  <bruno@clisp.org>
66391
66392         * modules/canonicalize-lgpl-tests: New file.
66393         * tests/test-canonicalize-lgpl.sh: New file.
66394         * tests/test-canonicalize-lgpl.c: New file.
66395
66396         * modules/c-strcase-tests: New file.
66397         * tests/test-c-strcase.sh: New file.
66398         * tests/test-c-strcasecmp.c: New file.
66399         * tests/test-c-strncasecmp.c: New file.
66400
66401         * modules/atexit-tests: New file.
66402         * tests/test-atexit.sh: New file.
66403         * tests/test-atexit.c: New file.
66404
66405 2007-03-10  Bruno Haible  <bruno@clisp.org>
66406
66407         * tests/test-binary-io.sh: Use temporary filenames that are not so
66408         likely to clash with those of other tests (in a parallel make).
66409         * tests/test-binary-io.c: Likewise.
66410
66411 2007-03-10  Bruno Haible  <bruno@clisp.org>
66412
66413         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66414         fallback; use #error instead.
66415         Suggested by Simon Josefsson.
66416
66417 2007-03-10  Bruno Haible  <bruno@clisp.org>
66418
66419         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66420         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66421         first and the last.
66422
66423 2007-03-10  Bruno Haible  <bruno@clisp.org>
66424
66425         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66426
66427 2007-03-10  Bruno Haible  <bruno@clisp.org>
66428
66429         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66430         "make distcheck".
66431         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66432         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66433         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66434
66435 2007-03-10  Bruno Haible  <bruno@clisp.org>
66436
66437         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66438         variable.
66439         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66440         variable.
66441
66442 2007-03-09  Eric Blake  <ebb9@byu.net>
66443         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66444
66445         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66446         types are not being provided by gnulib.
66447         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66448         types are supported.
66449
66450 2007-03-10  Bruno Haible  <bruno@clisp.org>
66451
66452         * lib/stdio_.h (__attribute__): New macro.
66453         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66454         vsprintf): Specify __attribute__ __format__ for GCC.
66455         Suggested by Eric Blake.
66456
66457 2007-03-09  Bruno Haible  <bruno@clisp.org>
66458
66459         * modules/printf-posix-tests: New file.
66460         * tests/test-printf-posix.sh: New file.
66461         * tests/test-printf-posix.c: New file.
66462
66463         * modules/printf-posix: New file.
66464         * lib/printf.c: New file.
66465         * m4/printf-posix-rpl.m4: New file.
66466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66467         REPLACE_PRINTF.
66468         * lib/stdio_.h (printf): New declaration.
66469         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66470         ____strfmon____): New macros.
66471         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66472         REPLACE_PRINTF.
66473
66474 2007-03-09  Bruno Haible  <bruno@clisp.org>
66475
66476         * tests/test-vasnprintf-posix2.sh: New file.
66477         * tests/test-vasnprintf-posix2.c: New file.
66478         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66479         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66480         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66481
66482         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66483         a locale dependent decimal point, rather than always '.'.
66484
66485 2007-03-09  Eric Blake  <ebb9@byu.net>
66486
66487         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66488         spite of platforms like Tandem/NSK that define it to -1.
66489
66490 2007-03-08  Bruno Haible  <bruno@clisp.org>
66491
66492         * modules/vprintf-posix-tests: New file.
66493         * tests/test-vprintf-posix.sh: New file.
66494         * tests/test-vprintf-posix.c: New file.
66495         * tests/test-printf-posix.h: New file.
66496
66497         * modules/vprintf-posix: New file.
66498         * lib/vprintf.c: New file.
66499         * m4/vprintf-posix.m4: New file.
66500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66501         REPLACE_VPRINTF.
66502         * lib/stdio_.h (vprintf): New declaration.
66503         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66504         REPLACE_VPRINTF.
66505
66506 2007-03-08  Bruno Haible  <bruno@clisp.org>
66507
66508         * modules/fprintf-posix-tests: New file.
66509         * tests/test-fprintf-posix.sh: New file.
66510         * tests/test-fprintf-posix.c: New file.
66511
66512         * modules/fprintf-posix: New file.
66513         * lib/fprintf.c: New file.
66514         * m4/fprintf-posix.m4: New file.
66515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66516         REPLACE_FPRINTF.
66517         * lib/stdio_.h (fprintf): New declaration.
66518         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66519         REPLACE_FPRINTF.
66520
66521 2007-03-08  Bruno Haible  <bruno@clisp.org>
66522
66523         * modules/vfprintf-posix-tests: New file.
66524         * tests/test-vfprintf-posix.sh: New file.
66525         * tests/test-vfprintf-posix.c: New file.
66526         * tests/test-fprintf-posix.h: New file.
66527         * tests/test-fprintf-posix.out: New file.
66528
66529         * modules/vfprintf-posix: New file.
66530         * lib/vfprintf.c: New file.
66531         * m4/vfprintf-posix.m4: New file.
66532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66533         REPLACE_VFPRINTF.
66534         * lib/stdio_.h (vfprintf): New declaration.
66535         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66536         REPLACE_VFPRINTF.
66537
66538 2007-03-08  Bruno Haible  <bruno@clisp.org>
66539
66540         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66541
66542 2007-03-08  Bruno Haible  <bruno@clisp.org>
66543
66544         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66545         instead of 'expr' invocations.
66546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66551         Suggested by Paul Eggert.
66552
66553 2007-03-08  Bruno Haible  <bruno@clisp.org>
66554
66555         * modules/fseterr-tests: New file.
66556         * tests/test-fseterr.c: New file.
66557
66558         * modules/fseterr: New file.
66559         * lib/fseterr.h: New file.
66560         * lib/fseterr.c: New file.
66561
66562 2007-03-08  Bruno Haible  <bruno@clisp.org>
66563
66564         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66565         * lib/getopt_.h: Likewise.
66566         * lib/mbswidth.h: Likewise.
66567         * lib/setenv.h: Likewise.
66568         * lib/vasnprintf.h: Likewise.
66569         * lib/vasprintf.h: Likewise.
66570         * lib/verror.h: Likewise.
66571         * lib/xsetenv.h: Likewise.
66572         * lib/xvasprintf.h: Likewise.
66573
66574 2007-03-08  Jim Meyering  <jim@meyering.net>
66575
66576         * users.txt: Add parted.
66577
66578         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66579
66580 2007-03-07  Bruno Haible  <bruno@clisp.org>
66581
66582         * m4/printf.m4: Make the shell script snippets copy&pastable.
66583
66584 2007-03-02  Bruno Haible  <bruno@clisp.org>
66585
66586         * lib/netinet_in_.h: New file.
66587         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66588         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66589         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66590         (Depends-on): Add absolute-header.
66591         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66592         into netinet/in.h.
66593
66594 2007-03-03  Bruno Haible  <bruno@clisp.org>
66595
66596         * lib/sys_select_.h: New file.
66597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66598         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66599         * modules/sys_select (Files): Add lib/sys_select_.h.
66600         (Depends-on): Add absolute-header.
66601         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66602         into sys/select.h.
66603
66604 2007-03-02  Bruno Haible  <bruno@clisp.org>
66605
66606         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66607         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66608         values.
66609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66610         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66611         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66612         * modules/sys_socket (Depends-on): Add absolute-header.
66613         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66614         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66615         (Include): Remove requirement of inclusion of <sys/types.h>.
66616
66617 2007-03-02  Bruno Haible  <bruno@clisp.org>
66618
66619         * lib/byteswap_.h (bswap_32): Fix formula.
66620
66621 2007-03-06  Bruno Haible  <bruno@clisp.org>
66622
66623         * modules/sprintf-posix-tests: New file.
66624         * tests/test-sprintf-posix.c: New file.
66625
66626         * modules/sprintf-posix: New file.
66627         * lib/sprintf.c: New file.
66628         * m4/sprintf-posix.m4: New file.
66629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66630         REPLACE_SPRINTF.
66631         * lib/stdio_.h (sprintf): New declaration.
66632         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66633         REPLACE_SPRINTF.
66634
66635 2007-03-06  Bruno Haible  <bruno@clisp.org>
66636
66637         * modules/vsprintf-posix-tests: New file.
66638         * tests/test-vsprintf-posix.c: New file.
66639         * tests/test-sprintf-posix.h: New file.
66640
66641         * modules/vsprintf-posix: New file.
66642         * lib/vsprintf.c: New file.
66643         * m4/vsprintf-posix.m4: New file.
66644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66645         REPLACE_VSPRINTF.
66646         * lib/stdio_.h (vsprintf): New declaration.
66647         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66648         REPLACE_VSPRINTF.
66649
66650 2007-03-06  Bruno Haible  <bruno@clisp.org>
66651
66652         * modules/vsnprintf (Depend-on): Remove minmax.
66653
66654 2007-03-06  Bruno Haible  <bruno@clisp.org>
66655
66656         * modules/snprintf-posix-tests: New file.
66657         * tests/test-snprintf-posix.c: New file.
66658
66659         * modules/snprintf-posix: New file.
66660         * m4/snprintf-posix.m4: New file.
66661         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66662         gl_FUNC_SNPRINTF.
66663         (gl_FUNC_SNPRINTF): Invoke it.
66664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66665         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66666         is set.
66667         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66668
66669 2007-03-06  Bruno Haible  <bruno@clisp.org>
66670
66671         * modules/vsnprintf-posix-tests: New file.
66672         * tests/test-vsnprintf-posix.c: New file.
66673         * tests/test-snprintf-posix.h: New file.
66674
66675         * modules/vsnprintf-posix: New file.
66676         * m4/vsnprintf-posix.m4: New file.
66677         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66678         gl_FUNC_VSNPRINTF.
66679         (gl_FUNC_VSNPRINTF): Invoke it.
66680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66681         * lib/stdio_.h (vsnprintf): Define as a replacement if
66682         REPLACE_VSNPRINTF is set.
66683         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66684
66685 2007-03-06  Bruno Haible  <bruno@clisp.org>
66686
66687         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66689
66690 2007-03-06  Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66693         (asinl): Declare also if HAVE_DECL_ASINL is set.
66694         (atanl): Declare also if HAVE_DECL_ATANL is set.
66695         (ceill): Declare also if HAVE_DECL_CEILL is set.
66696         (cosl): Declare also if HAVE_DECL_COSL is set.
66697         (expl): Declare also if HAVE_DECL_EXPL is set.
66698         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66699         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66700         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66701         (logl): Declare also if HAVE_DECL_LOGL is set.
66702         (sinl): Declare also if HAVE_DECL_SINL is set.
66703         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66704         (tanl): Declare also if HAVE_DECL_TANL is set.
66705         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66707         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66708         declaration of frexpl, ldexpl.
66709         * modules/printf-frexpl (Depends-on): Add math.
66710         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66711
66712 2007-03-05  Bruno Haible  <bruno@clisp.org>
66713
66714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66715         frexpl and ldexpl are declared.
66716         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66717
66718 2007-03-05  Bruno Haible  <bruno@clisp.org>
66719
66720         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66721         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66722
66723 2007-03-05  Bruno Haible  <bruno@clisp.org>
66724
66725         * lib/stdio_.h: Include <stddef.h>.
66726
66727 2007-03-05  Bruno Haible  <bruno@clisp.org>
66728
66729         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66730
66731 2007-03-05  Bruno Haible  <bruno@clisp.org>
66732
66733         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66734         NetBSD 4, from Ralf Wildenhues.
66735
66736 2007-03-04  Bruno Haible  <bruno@clisp.org>
66737
66738         * lib/vasprintf.h: Update #if logic for the case when the functions
66739         exist but are overridden.
66740
66741 2007-03-04  Bruno Haible  <bruno@clisp.org>
66742
66743         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66744         implementations: glibc-2.4 and MacOS X 10.3.
66745         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66746         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66747         * tests/test-vasprintf-posix.c (test_function): Likewise.
66748
66749 2007-03-04  Bruno Haible  <bruno@clisp.org>
66750
66751         * modules/vasprintf-posix-tests: New file.
66752         * tests/test-vasprintf-posix.c: New file.
66753
66754         * modules/vasprintf-posix: New file.
66755         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66756         defined.
66757         * m4/vasprintf-posix.m4: New file.
66758         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66759         gl_FUNC_VASPRINTF.
66760         (gl_FUNC_VASPRINTF): Invoke it.
66761         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66762         here.
66763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66764
66765 2007-03-04  Bruno Haible  <bruno@clisp.org>
66766
66767         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66768         REPLACE_GETTIMEOFDAY.
66769         * modules/sys_time (Makefile.am): Likewise.
66770         * m4/sys_time_h.m4: Likewise.
66771         * m4/gettimeofday.m4: Likewise.
66772
66773 2007-03-04  Bruno Haible  <bruno@clisp.org>
66774
66775         * modules/vasnprintf-posix-tests: New file.
66776         * tests/test-vasnprintf-posix.c: New file.
66777
66778         * modules/vasnprintf-posix: New file.
66779         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66780         printf-frexpl.h.
66781         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66782         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66783         REPLACE_VASNPRINTF is defined.
66784         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66785         gl_FUNC_VASNPRINTF.
66786         (gl_FUNC_VASNPRINTF): Invoke it.
66787         * m4/vasnprintf-posix.m4: New file.
66788         * m4/printf.m4: New file.
66789
66790 2007-03-04  Bruno Haible  <bruno@clisp.org>
66791
66792         Compile progreloc.c only if --enable-relocatable is specified.
66793         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66794         if --enable-relocatable was specified.
66795         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66796         lib_SOURCES.
66797
66798 2007-03-04  Jim Meyering  <jim@meyering.net>
66799
66800         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66801         Use it consistently, rather than enumerating errno constants.
66802
66803 2007-03-04  Bruno Haible  <bruno@clisp.org>
66804
66805         * modules/xvasprintf-tests: New file.
66806         * tests/test-xvasprintf.c: New file.
66807
66808         * modules/vasprintf-tests: New file.
66809         * tests/test-vasprintf.c: New file.
66810
66811         * modules/vasnprintf-tests: New file.
66812         * tests/test-vasnprintf.c: New file.
66813
66814         * modules/vsnprintf-tests: New file.
66815         * tests/test-vsnprintf.c: New file.
66816
66817         * modules/snprintf-tests: New file.
66818         * tests/test-snprintf.c: New file.
66819
66820 2007-03-04  Bruno Haible  <bruno@clisp.org>
66821
66822         Compile relocatable.c only if --enable-relocatable is specified.
66823         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66824         gl_RELOCATABLE_LIBRARY.
66825         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66826         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66827         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66828         gl_RELOCATABLE_LIBRARY.
66829         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66830         (Makefile.am): Remove lib_SOURCES.
66831         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66832         gl_RELOCATABLE_LIBRARY.
66833         (Makefile.am): Remove lib_SOURCES.
66834         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66835         always.
66836         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66837         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66838
66839 2007-03-04  Bruno Haible  <bruno@clisp.org>
66840
66841         * modules/argmatch-tests: New file.
66842         * tests/test-argmatch.c: New file.
66843
66844         * tests/test-allocsa.c (main): Halve the number of loop runs.
66845
66846         * modules/alloca-opt-tests: New file.
66847         * tests/test-alloca-opt.c: New file.
66848
66849 2007-03-04  Jim Meyering  <jim@meyering.net>
66850
66851         Work around difference between Linux ACLs and Solaris 10 ZFS.
66852         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
66853         for EINVAL.
66854
66855 2007-03-03  Bruno Haible  <bruno@clisp.org>
66856
66857         * modules/relocatable-prog (Depends-on): Add back progreloc's
66858         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
66859
66860 2007-03-03  Bruno Haible  <bruno@clisp.org>
66861
66862         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
66863         * modules/relocatable-lib: New file.
66864
66865 2007-03-03  Bruno Haible  <bruno@clisp.org>
66866
66867         * modules/relocatable-prog: Renamed from modules/relocatable.
66868         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
66869
66870 2007-03-03  Bruno Haible  <bruno@clisp.org>
66871
66872         * modules/relocatable-script (Files): Add doc/relocatable.texi,
66873         m4/relocatable-lib.m4.
66874         (Depends-on): Remove 'relocatable'.
66875         (configure.ac): Add gl_RELOCATABLE_NOP.
66876
66877 2007-03-03  Bruno Haible  <bruno@clisp.org>
66878
66879         * modules/relocatable-prog-wrapper: New file.
66880         * modules/relocatable (Depends-on): Add it. Remove all other
66881         dependencies except progname.
66882         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
66883
66884         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
66885         (gl_FUNC_STRERROR): Nop.
66886         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
66887
66888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
66889         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
66890
66891         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
66892         (gl_FUNC_READLINK): Update.
66893
66894         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
66895
66896 2007-03-03  Bruno Haible  <bruno@clisp.org>
66897
66898         * lib/xreadlink.c: Include <unistd.h> unconditionally.
66899         * modules/xreadlink (Depends-on): Add unistd.
66900         * modules/xreadlink-with-size (Depends-on): Likewise.
66901
66902 2007-03-03  Bruno Haible  <bruno@clisp.org>
66903
66904         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
66905         extracted from gt_FUNC_SETENV.
66906         (gt_FUNC_SETENV): Remove macro.
66907         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
66908         remove gt_FUNC_SETENV.
66909
66910 2007-03-03  Bruno Haible  <bruno@clisp.org>
66911
66912         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
66913         ENABLE_RELOCATABLE here.
66914         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
66915
66916 2007-03-03  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/rbtreehash-list-tests (Depends-on): Add progname.
66919         * tests/test-rbtreehash_list.c: Include progname.h.
66920         (main): Call set_program_name.
66921
66922         * modules/rbtree-oset-tests (Depends-on): Add progname.
66923         * tests/test-rbtree_oset.c: Include progname.h.
66924         (main): Call set_program_name.
66925
66926         * modules/rbtree-list-tests (Depends-on): Add progname.
66927         * tests/test-rbtree_list.c: Include progname.h.
66928         (main): Call set_program_name.
66929
66930         * modules/linked-list-tests (Depends-on): Add progname.
66931         * tests/test-linked_list.c: Include progname.h.
66932         (main): Call set_program_name.
66933
66934 2007-03-03  Bruno Haible  <bruno@clisp.org>
66935
66936         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
66937         All uses of __restrict changed to _Restrict_.
66938         * lib/glob_.h (__restrict): Remove macro.
66939
66940 2007-03-02  Bruno Haible  <bruno@clisp.org>
66941
66942         * modules/gettext (configure.ac): Require gettext infrastructure
66943         from version 0.16.1.
66944
66945 2007-03-02  Bruno Haible  <bruno@clisp.org>
66946
66947         * modules/linkedhash-list-tests (Depends-on): Add progname.
66948         * tests/test-linkedhash_list.c: Include progname.h.
66949         (main): Call set_program_name.
66950
66951         * modules/carray-list-tests (Depends-on): Add progname.
66952         * tests/test-carray_list.c: Include progname.h.
66953         (main): Call set_program_name.
66954
66955         * modules/avltreehash-list-tests (Depends-on): Add progname.
66956         * tests/test-avltreehash_list.c: Include progname.h.
66957         (main): Call set_program_name.
66958
66959         * modules/avltree-oset-tests (Depends-on): Add progname.
66960         * tests/test-avltree_oset.c: Include progname.h.
66961         (main): Call set_program_name.
66962
66963         * modules/avltree-list-tests (Depends-on): Add progname.
66964         * tests/test-avltree_list.c: Include progname.h.
66965         (main): Call set_program_name.
66966
66967         * modules/array-oset-tests (Depends-on): Add progname.
66968         * tests/test-array_oset.c: Include progname.h.
66969         (main): Call set_program_name.
66970
66971         * modules/array-list-tests (Depends-on): Add progname.
66972         * tests/test-array_list.c: Include progname.h.
66973         (main): Call set_program_name.
66974
66975         * modules/argp-tests (Depends-on): Add progname.
66976         * tests/test-argp.c: Include argp.h first. Include progname.h.
66977         (main): Call set_program_name.
66978
66979 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * doc/gnulib-tool.texi (Initial import): Reword description of
66982         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
66983         limited effect even if defined after the first system include.
66984
66985 2007-03-01  Bruno Haible  <bruno@clisp.org>
66986
66987         * build-aux/config.libpath: Update to libtool-1.5.22.
66988         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66989
66990 2007-03-01  Bruno Haible  <bruno@clisp.org>
66991
66992         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
66993         foo_CFLAGS.
66994         Reported by Ralf Wildenhues.
66995
66996 2007-03-01  Bruno Haible  <bruno@clisp.org>
66997
66998         * build-aux/install-reloc: Remove object files left over by some
66999         compilers.
67000         Reported by Ralf Wildenhues.
67001
67002 2007-03-01  Bruno Haible  <bruno@clisp.org>
67003
67004         * build-aux/install-reloc: Break long lines.
67005
67006 2007-03-01  Bruno Haible  <bruno@clisp.org>
67007
67008         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67009         Reported by Ralf Wildenhues.
67010
67011 2007-03-01  Bruno Haible  <bruno@clisp.org>
67012
67013         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67014         include ordering constraints.
67015
67016 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67020         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67021         as another example.
67022         * lib/time_.h: Fix misspelling.
67023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67024         Require gl_HEADER_TIME_H_DEFAULTS.
67025         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67026         * m4/time_r.m4 (gl_TIME_R): Likewise.
67027         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67028
67029 2007-03-01  Bruno Haible  <bruno@clisp.org>
67030
67031         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67032         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67033
67034 2007-03-01  Jim Meyering  <jim@meyering.net>
67035
67036         * modules/xreadlink (Maintainer): Add my name.
67037         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67038
67039 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67040             Bruno Haible  <bruno@clisp.org>
67041
67042         * build-aux/install-reloc: Compile also c-ctype.c.
67043         * build-aux/relocatable.sh.in: New file.
67044         * doc/relocatable.texi: New file.
67045         * doc/relocatable-maint.texi: New file.
67046         * doc/gnulib.texi: Include relocatable-maint.texi.
67047         * lib/progreloc.c: Include unistd.h unconditionally.
67048         * lib/relocwrapper.c: Include unistd.h unconditionally.
67049         Include c-ctype.h.
67050         (add_dotbin): Use c_tolower.
67051         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67052         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67053         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67054         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67055         to m4/relocatable-lib.m4.
67056         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67057         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67058         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67059         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67060         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67061         * modules/relocatable: New file.
67062         * modules/relocatable-lib: New file.
67063         * modules/relocatable-script: New file.
67064
67065 2007-02-28  Bruno Haible  <bruno@clisp.org>
67066
67067         Import --enable-relocatable infrastructure.
67068         * build-aux/config.libpath: New file, from GNU gettext.
67069         * build-aux/install-reloc: New file, from GNU gettext.
67070         * build-aux/reloc-ldflags: New file, from GNU gettext.
67071         * lib/relocatable.h: New file, from GNU gettext.
67072         * lib/relocatable.c: New file, from GNU gettext.
67073         * lib/relocwrapper.c: New file, from GNU gettext.
67074         * m4/relocatable.m4: New file, from GNU gettext.
67075
67076 2007-02-28  Bruno Haible  <bruno@clisp.org>
67077
67078         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67079
67080         * modules/xreadlink: New file, from GNU gettext with modifications.
67081         * lib/xreadlink.c: New file, from GNU gettext.
67082         * lib/xreadlink.h: Add comments.
67083         (xreadlink): New declaration.
67084
67085         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67086         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67087         lib/xreadlink-with-size.c.
67088         (configure.ac): Remove gl_XREADLINK invocation.
67089         (Makefile.am): Augment lib_SOURCES.
67090         * m4/xreadlink.m4: Remove file.
67091         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67092         (xreadlink_with_size): Renamed from xreadink.
67093         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67094         * modules/canonicalize (Depends-on): Replace xreadlink with
67095         xreadlink-with-size.
67096         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67097
67098 2007-02-25  Jim Meyering  <jim@meyering.net>
67099
67100         * build-aux/announce-gen: When complaining about excess arguments,
67101         list them.
67102
67103 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * README: Document signed integer overflow situation more
67106         accurately.
67107
67108 2007-02-25  Bruno Haible  <bruno@clisp.org>
67109
67110         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67111         'a' or 'A' conversion.
67112
67113 2007-02-25  Bruno Haible  <bruno@clisp.org>
67114
67115         * modules/filename: Renamed from modules/pathname.
67116         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67117         lib/concatpath.c with lib/concat-filename.c.
67118         (Makefile.am): Update.
67119         (Include): Replace pathname.h with filename.h.
67120         * lib/filename.h: Renamed from lib/pathname.h.
67121         (concatenated_filename): Renamed from concatenated_pathname.
67122         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67123         (concatenated_filename): Renamed from concatenated_pathname.
67124         * lib/findprog.c: Include filename.h instead of pathname.h.
67125         (find_in_path): Update.
67126         * lib/javacomp.c: Include filename.h instead of pathname.h.
67127         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67128         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67129         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67130         is_oldgcj_14_13_usable, is_javac_usable): Update.
67131         * lib/javaexec.c: Include filename.h instead of pathname.h.
67132         (execute_java_class): Update.
67133         * modules/findprog: Update.
67134         * modules/javacomp: Update.
67135         * modules/javaexec: Update.
67136         * MODULES.html.sh (File system functions): Add 'filename', remove
67137         'pathname'.
67138
67139 2007-02-25  Bruno Haible  <bruno@clisp.org>
67140
67141         * modules/printf-frexpl-tests: New file.
67142         * tests/test-printf-frexpl.c: New file.
67143
67144         * modules/printf-frexpl: New file.
67145         * lib/printf-frexpl.h: New file.
67146         * lib/printf-frexpl.c: New file.
67147         * m4/printf-frexpl.m4: New file.
67148
67149 2007-02-25  Bruno Haible  <bruno@clisp.org>
67150
67151         * modules/printf-frexp-tests: New file.
67152         * tests/test-printf-frexp.c: New file.
67153
67154         * modules/printf-frexp: New file.
67155         * lib/printf-frexp.h: New file.
67156         * lib/printf-frexp.c: New file.
67157         * m4/printf-frexp.m4: New file.
67158
67159 2007-02-25  Bruno Haible  <bruno@clisp.org>
67160
67161         Assume automake >= 1.10 for the tests.
67162         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67163         * modules/arctwo-tests: Likewise.
67164         * modules/argp-tests: Likewise.
67165         * modules/avltree-list-tests: Likewise.
67166         * modules/avltree-oset-tests: Likewise.
67167         * modules/avltreehash-list-tests: Likewise.
67168         * modules/carray-list-tests: Likewise.
67169         * modules/crc-tests: Likewise.
67170         * modules/des-tests: Likewise.
67171         * modules/gc-arcfour-tests: Likewise.
67172         * modules/gc-arctwo-tests: Likewise.
67173         * modules/gc-des-tests: Likewise.
67174         * modules/gc-hmac-md5-tests: Likewise.
67175         * modules/gc-hmac-sha1-tests: Likewise.
67176         * modules/gc-md2-tests: Likewise.
67177         * modules/gc-md4-tests: Likewise.
67178         * modules/gc-md5-tests: Likewise.
67179         * modules/gc-pbkdf2-sha1-tests: Likewise.
67180         * modules/gc-rijndael-tests: Likewise.
67181         * modules/gc-sha1-tests: Likewise.
67182         * modules/gc-tests: Likewise.
67183         * modules/getaddrinfo-tests: Likewise.
67184         * modules/hmac-md5-tests: Likewise.
67185         * modules/hmac-sha1-tests: Likewise.
67186         * modules/linked-list-tests: Likewise.
67187         * modules/linkedhash-list-tests: Likewise.
67188         * modules/lock-tests: Likewise.
67189         * modules/md2-tests: Likewise.
67190         * modules/md4-tests: Likewise.
67191         * modules/md5-tests: Likewise.
67192         * modules/rbtree-list-tests: Likewise.
67193         * modules/rbtree-oset-tests: Likewise.
67194         * modules/rbtreehash-list-tests: Likewise.
67195         * modules/read-file-tests: Likewise.
67196         * modules/rijndael-tests: Likewise.
67197         * modules/stdint-tests: Likewise.
67198         * modules/tls-tests: Likewise.
67199
67200 2007-02-24  Bruno Haible  <bruno@clisp.org>
67201
67202         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67203         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67204         function; instead check whether isnan with a double argument links.
67205         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67206         function; instead check whether isnan with a 'long double' argument
67207         links.
67208         Reported by Eric Blake <ebb9@byu.net>.
67209
67210 2007-02-24  Bruno Haible  <bruno@clisp.org>
67211
67212         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67213         defined.
67214         * lib/isnanl.c: Remove all code. Just include isnan.c.
67215         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67216
67217 2007-02-25  Jim Meyering  <jim@meyering.net>
67218
67219         Avoid conflicting types for 'unsetenv' on FreeBSD.
67220         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67221         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67222         in stdlib.h.
67223
67224 2007-02-24  Bruno Haible  <bruno@clisp.org>
67225
67226         * modules/isnanl-nolibm-tests: New file.
67227         * tests/test-isnanl.c: New file.
67228
67229         * modules/isnanl-nolibm: New file.
67230         * lib/isnanl.h: New file.
67231         * lib/isnanl.c: New file.
67232         * m4/isnanl.m4: New file.
67233
67234 2007-02-24  Bruno Haible  <bruno@clisp.org>
67235
67236         * modules/isnan-nolibm-tests: New file.
67237         * tests/test-isnan.c: New file.
67238
67239         * modules/isnan-nolibm: New file.
67240         * lib/isnan.h: New file.
67241         * lib/isnan.c: New file.
67242         * m4/isnan.m4: New file.
67243
67244 2007-02-24  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67247         assume that an exponent fits in 20 bits.
67248
67249 2007-02-24  Jim Meyering  <jim@meyering.net>
67250
67251         * m4/regex.m4: Update the description of the configure-time option,
67252         --without-included-regex, to state accurately what the defaults are,
67253         and perhaps to give people an idea why using this option is risky.
67254
67255 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67258         loops on small arguments.  This attempts to avoid the problem
67259         Bruno Haible reported for AIX 4.3.2 in
67260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67261
67262 2007-02-23  Bruno Haible  <bruno@clisp.org>
67263
67264         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67265         Needed for help2man.
67266
67267 2007-02-23  Karl Berry  <karl@gnu.org>
67268
67269         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67270         exists, foo.h should be cvs-ignored, not committed.
67271
67272 2007-02-23  Eric Blake  <ebb9@byu.net>
67273
67274         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67275         * lib/stat-time.h (includes): Likewise.
67276         * lib/utimecmp.c (includes): Likewise.
67277         * lib/utimens.h (includes): Likewise.
67278         * lib/getdate.y (includes): Also include "timespec.h" for use
67279         internal to the module.
67280         * modules/utimens (Depends-on): Revert yesterday's patch.
67281         * modules/nanosleep (Depends-on): Add missing dependency.
67282
67283 2007-02-22  Bruno Haible  <bruno@clisp.org>
67284
67285         * lib/glob.c: Don't include getlogin_r.h.
67286
67287 2007-02-22  Jim Meyering  <jim@meyering.net>
67288
67289         * modules/utimens (Depends-on): Add timespec, required for
67290         utimens.h's inclusion of timespec.h.
67291
67292 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67293
67294         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67295         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67296         Schwab in
67297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67298         I'll try to think of a better way to fix the Solaris problem.
67299
67300         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67301         like glibc; on Solaris 10, it fails with errno == EINVAL.
67302         POSIX says the behavior is unspecified if the first argument is NULL,
67303         so play it safe and never pass NULL to the system getcwd.
67304
67305 2007-02-21  Jim Meyering  <jim@meyering.net>
67306
67307         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67308         of gettimeofday.  It would conflict with the one now always
67309         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67310         an IRIX 6.5 build failure.
67311
67312 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67313
67314         Minor fixups to port to Solaris 10 with Sun C 5.8.
67315         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67316         * modules/getcwd (Depends-on): Add dirfd.
67317         * lib/putenv.c (putenv): #undef it.
67318         (rpl_putenv): New decl.
67319         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67320
67321 2007-02-20  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/stdio-tests: New file.
67324         * tests/test-stdio.c: New file.
67325
67326         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67327         (Depends-on): Add stdio.
67328         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67329         (Include): Use <stdio.h> instead of vsnprintf.h.
67330         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67331         HAVE_DECL_VSNPRINTF.
67332         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67333
67334         * modules/snprintf (Files): Remove lib/snprintf.h.
67335         (Depends-on): Add stdio.
67336         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67337         (Include): Use <stdio.h> instead of snprintf.h.
67338         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67339         HAVE_DECL_SNPRINTF.
67340         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67341         * lib/getaddrinfo.c: Likewise.
67342
67343         * modules/stdio: New file.
67344         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67345         * lib/snprintf.h: Remove file.
67346         * lib/vsnprintf.h: Remove file.
67347         * lib/.cppi-disable: Remove snprintf.h.
67348         * m4/stdio_h.m4: New file.
67349         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67350
67351 2007-02-20  Jim Meyering  <jim@meyering.net>
67352
67353         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67354         used by e.g., mingw.  From Bruno Haible.
67355
67356 2007-02-19  Bruno Haible  <bruno@clisp.org>
67357
67358         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67359         warnings.
67360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67361
67362 2007-02-19  Bruno Haible  <bruno@clisp.org>
67363
67364         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67365         from mingw users.
67366
67367 2007-02-19  Bruno Haible  <bruno@clisp.org>
67368
67369         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67370         warnings.
67371         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67372
67373 2007-02-19  Jim Meyering  <jim@meyering.net>
67374
67375         Don't use FD after a successful "fdopendir (fd)".
67376         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67377         Reset it by calling dirfd on the just-obtained DIR*.
67378
67379         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67380         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67381
67382 2007-02-18  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/readlink.c: Include <unistd.h>.
67385         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67386         HAVE_READLINK.
67387         * modules/readlink (Depends-on): Add unistd.
67388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67389         (Include): Add <unistd.h>.
67390
67391         * lib/getlogin_r.h: Remove file.
67392         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67393         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67394         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67395         HAVE_DECL_GETLOGIN_R.
67396         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67398         (Include): Use <unistd.h> instead of getlogin_r.h.
67399
67400         * lib/getcwd.h: Remove file.
67401         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67402         * lib/xgetcwd.c: Likewise.
67403         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67404         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67405         * modules/getcwd (Files): Remove lib/getcwd.h.
67406         (Depends-on): Add unistd.
67407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67408         (Include): Use <unistd.h> instad of getcwd.h.
67409
67410         * lib/ftruncate.c: Include <unistd.h> first.
67411         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67412         Set HAVE_FTRUNCATE.
67413         * modules/ftruncate (Depends-on): Add unistd.
67414         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67415
67416         * lib/fchdir.c: Include <unistd.h> first.
67417         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67419         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67420         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67421         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67422
67423         * lib/dup2.c: Include <unistd.h> first.
67424         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67425         HAVE_DUP2.
67426         * modules/dup2 (Depends-on): Add unistd.
67427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67428
67429         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67430         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67431         REPLACE_CHOWN. Don't define chown as a macro here.
67432         * modules/chown (Depends-on): Add unistd.
67433         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67434
67435         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67436         Add definition for GL_LINK_WARNING.
67437         (chown, dup2): New declarations.
67438         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67439         link warning.
67440         (ftruncate): New declaration.
67441         (getcwd): New declaration, taken from old getcwd.h.
67442         (getlogin_r): New declaration, taken from old getlogin_r.h.
67443         (readlink): New declaration.
67444         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67445         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67446         (gl_PREREQ_UNISTD): Remove macro.
67447         (gl_UNISTD_MODULE_INDICATOR): New macro.
67448         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67449         many new variables. Don't set UNISTD_H.
67450         * modules/unistd (Description): Change.
67451         (Depends-on): Add link-warning.
67452         (configure.ac): Update.
67453         (Makefile.am): Create unistd.h always. Substitute many new variables
67454         into it.
67455
67456 2007-02-18  Bruno Haible  <bruno@clisp.org>
67457
67458         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67459         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67460         HAVE_GETSUBOPT.
67461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67462         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67463         * lib/getsubopt.h: Remove file.
67464         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67465         (Depends-on): Add stdlib.
67466         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67467         (Includes): Use <stdlib.h> instead of getsubopt.h.
67468         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67469         Set HAVE_GETSUBOPT.
67470         * lib/getsubopt.c: Don't include getsubopt.h.
67471
67472 2007-02-18  Bruno Haible  <bruno@clisp.org>
67473
67474         * modules/fchdir (Depends-on): Add dup2.
67475
67476 2007-02-18  Bruno Haible  <bruno@clisp.org>
67477
67478         * lib/stdlib_.h: Handle glibc's special invocation convention
67479         specially.
67480
67481 2007-02-18  Bruno Haible  <bruno@clisp.org>
67482
67483         * modules/stdlib-tests: New file.
67484         * tests/test-stdlib.c: New file.
67485
67486         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67487         (Depends-on): Add stdlib.
67488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67489         (Includes): Use <stdlib.h> instead of mkstemp.h.
67490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67491         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67492         * lib/mkstemp.c: Don't include mkstemp.h.
67493         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67494         * lib/stdlib--.h: Don't include mkstemp.h.
67495
67496         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67497         (Depends-on): Add stdlib.
67498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67499         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67500         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67501         HAVE_MKDTEMP.
67502         * lib/mkdtemp.c: Don't include mkdtemp.h.
67503         * lib/clean-temp.c: Don't include mkdtemp.h.
67504
67505         * modules/exit (Files): Remove lib/exit.h.
67506         (Depends-on): Add stdlib.
67507         (Makefile.am): Remove lib_SOURCES.
67508         (Include): Use <stdlib.h> instead of exit.h.
67509         * lib/argmatch.c: Don't include exit.h.
67510         * lib/execute.c: Likewise.
67511         * lib/pagealign_alloc.c: Likewise.
67512         * lib/pipe.c: Likewise.
67513         * lib/wait-process.c: Likewise.
67514         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67515         * lib/exitfail.c: Likewise.
67516         * lib/savewd.c: Likewise.
67517         * lib/xsetenv.c: Likewise.
67518
67519         * modules/stdlib: New file.
67520         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67521         and extra comments about mkstemp().
67522         * lib/exit.h: Remove file.
67523         * lib/mkdtemp.h: Remove file.
67524         * lib/mkstemp.h: Remove file.
67525         * m4/stdlib_h.m4: New file.
67526         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67527
67528 2007-02-18  Bruno Haible  <bruno@clisp.org>
67529
67530         * modules/math-tests: New file.
67531         * tests/test-math.c: New file.
67532
67533         * modules/math: New file.
67534         * modules/mathl (Files): Remove lib/mathl.h.
67535         (Depends-on): Add math.
67536         (Makefile.am): Don't mention mathl.h.
67537         (Include): Use <math.h> instead of mathl.h.
67538         * lib/math_.h: New file.
67539         * lib/mathl.h: Remove file.
67540         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67541         mathl.h.
67542         * lib/asinl.c: Likewise.
67543         * lib/atanl.c: Likewise.
67544         * lib/ceill.c: Likewise.
67545         * lib/cosl.c: Likewise.
67546         * lib/expl.c: Likewise.
67547         * lib/floorl.c: Likewise.
67548         * lib/frexpl.c: Likewise.
67549         * lib/ldexpl.c: Likewise.
67550         * lib/logl.c: Likewise.
67551         * lib/sincosl.c: Likewise.
67552         * lib/sinl.c: Likewise.
67553         * lib/sqrtl.c: Likewise.
67554         * lib/tanl.c: Likewise.
67555         * lib/trigl.c: Likewise.
67556         * m4/math_h.m4: New file.
67557         * MODULES.html.sh (Mathematics): Add math.
67558
67559 2007-02-17  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/wctype-tests: New file.
67562         * tests/test-wctype.c: New file.
67563
67564         * modules/wchar-tests: New file.
67565         * tests/test-wchar.c: New file.
67566
67567         * modules/unistd-tests: New file.
67568         * tests/test-unistd.c: New file.
67569
67570         * modules/time-tests: New file.
67571         * tests/test-time.c: New file.
67572
67573         * modules/sysexits-tests: New file.
67574         * tests/test-sysexits.c: New file.
67575
67576         * modules/sys_time-tests: New file.
67577         * tests/test-sys_time.c: New file.
67578
67579         * modules/sys_stat-tests: New file.
67580         * tests/test-sys_stat.c: New file.
67581
67582         * modules/sys_socket-tests: New file.
67583         * tests/test-sys_socket.c: New file.
67584
67585         * modules/sys_select-tests: New file.
67586         * tests/test-sys_select.c: New file.
67587
67588         * modules/string-tests: New file.
67589         * tests/test-string.c: New file.
67590
67591         * modules/stdbool-tests: New file.
67592         * tests/test-stdbool.c: New file.
67593
67594         * modules/netinet_in-tests: New file.
67595         * tests/test-netinet_in.c: New file.
67596
67597         * modules/inttypes-tests: New file.
67598         * tests/test-inttypes.c: New file.
67599
67600         * modules/fcntl-tests: New file.
67601         * tests/test-fcntl.c: New file.
67602
67603         * modules/byteswap-tests: New file.
67604         * tests/test-byteswap.c: New file.
67605
67606         * modules/arpa_inet-tests: New file.
67607         * tests/test-arpa_inet.c: New file.
67608
67609 2007-02-17  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67612         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67613         if the corresponding module is not enabled. Emit link warnings if
67614         the function is used nevertheless.
67615         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67616         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67617         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67618         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67619         * modules/inttypes (Depends-on): Add link-warning.
67620         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67621         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67622         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67623         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67624         * modules/imaxdiv (configure.ac): Likewise.
67625         * modules/strtoimax (configure.ac): Likewise.
67626         * modules/strtoumax (configure.ac): Likewise.
67627
67628 2007-02-17  Bruno Haible  <bruno@clisp.org>
67629
67630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67631         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67632         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67633         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67634
67635 2007-02-17  Bruno Haible  <bruno@clisp.org>
67636
67637         * modules/link-warning: New file.
67638         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67639         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67640         * modules/string (Depends-on): Add link-warning.
67641         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67642         string.h.
67643         * MODULES.html.sh (Support for building libraries and executables): Add
67644         link-warning.
67645
67646 2007-02-17  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67649         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67650         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67651         long lines.
67652
67653 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67654             Bruno Haible  <bruno@clisp.org>
67655
67656         * modules/tmpfile: New file.
67657         * lib/tmpfile.c: New file.
67658         * m4/tmpfile.m4: New file.
67659         * MODULES.html.sh (func_all_modules): New section "Input/output".
67660
67661 2007-02-15  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67664         (supports_delete_on_close): New function.
67665         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67666
67667 2007-02-14  Bruno Haible  <bruno@clisp.org>
67668
67669         * modules/mbspcasecmp-tests: New file.
67670         * tests/test-mbspcasecmp.sh: New file.
67671         * tests/test-mbspcasecmp.c: New file.
67672
67673         New module mbspcasecmp.
67674         * modules/mbspcasecmp: New file.
67675         * lib/mbspcasecmp.c: New file.
67676         * lib/string_.h (strncasecmp): Change warning message.
67677         (mbspcasecmp): New declaration.
67678         * m4/mbspcasecmp.m4: New file.
67679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67680         GNULIB_MBSPCASECMP.
67681         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67682         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67683
67684 2007-02-14  Bruno Haible  <bruno@clisp.org>
67685
67686         * modules/mbsncasecmp-tests: New file.
67687         * tests/test-mbsncasecmp.sh: New file.
67688         * tests/test-mbsncasecmp.c: New file.
67689
67690         New module mbsncasecmp.
67691         * modules/mbsncasecmp: New file.
67692         * lib/mbsncasecmp.c: New file.
67693         * lib/string_.h (mbsncasecmp): New declaration.
67694         * m4/mbsncasecmp.m4: New file.
67695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67696         GNULIB_MBSNCASECMP.
67697         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67698         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67699
67700 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67703         Verify that it doesn't overlap with our flags.
67704         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67705         do not have the desired effect in multibyte locales; instead, use
67706         mbscasecmp.
67707         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67708         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67709         we don't require GNU fnmatch ourselves (if our users require it, they
67710         should do so explicitly).
67711
67712         Fix regex code so it doesn't rely on strcasecmp.
67713         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67714         Otherwise, include gnulib's langinfo.h.
67715         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67716         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67717         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67718         * modules/regex (FILES): Remove m4/codeset.m4.
67719         (Depends-on): Add localcharset.  Remove strcase.
67720
67721 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67722
67723         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67724         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67725
67726 2007-02-13  Bruno Haible  <bruno@clisp.org>
67727
67728         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67729         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67730
67731 2007-02-12  Bruno Haible  <bruno@clisp.org>
67732
67733         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67734         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67735         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67736         time warning rather than a link error.
67737
67738 2007-02-12  Bruno Haible  <bruno@clisp.org>
67739
67740         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67741         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67742         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67743
67744 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67747         args, not 2.
67748
67749 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         New module 'time', so that apps can include <time.h> as per
67752         POSIX and GNU instead of separate include files like time_r.h
67753         and timegm.h.  This implementation tries out a simpler approach
67754         for replacing decls in standard include files (as compared to
67755         the string module), somewhat as an experiment.
67756
67757         * config/srclist.txt: Comment out mktime.c for now.
67758         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67759         since it doesn't apply any more.  Use generic wording instead.
67760         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67761         'time'.
67762         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67763         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67764         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67765         Don't include <sys/types.h>; no longer needed since we assume C89.
67766         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67767         * lib/strftime.c: Likewise.
67768         * lib/time_r.c: Likewise.
67769         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67770         * lib/nanosleep.c: Include <time.h> first, to check interface.
67771         * lib/strptime.c: Likewise.
67772         * lib/time_r.c: Likewise.
67773         * lib/timegm.c: Likewise.
67774         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67775         needed.
67776         * lib/timegm.c: Don't include timegm.h; no longer needed.
67777         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67778         time.h now handles any problems in that area.
67779         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67780         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67781         that time.h defines struct timespec.
67782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67783         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67784         handles that.
67785         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67786         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67787         needed.  Set REPLACE_LOCALTIME.
67788         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67789         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67790         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67791         nanosleep; time_h.m4 now does that.  Don't require
67792         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67793         module handles this now.
67794         * modules/getdate (Depends-on): Remove timespec.  Add time.
67795         * modules/nanosleep (Depends-on): Likewise.
67796         * modules/stat-time (Depends-on): Likewise.
67797         * modules/nanosleep (Include): Include time.h, not timespec.h.
67798         * modules/strptime (Files): Remove lib/strptime.h.
67799         (Depends-on): Add extensions, time.
67800         (Include): Include time.h, not strptime.h.
67801         * modules/time_r (Files): Remove lib/time_r.h.
67802         (Depends-on): Add time.
67803         (Include): Include time.h, not time_r.h.
67804         * modules/timegm: Likewise.
67805         * modules/timespec (Description): Now does timespec-related decls
67806         of our own, instead of struct timespec itself.
67807         (Depends-on): Add time; remove extensions.
67808         (Maintainer): Add self.
67809         * modules/utimecmp (Depends-on): Add time; remove timespec.
67810         * modules/utimens (Depends-on): Likewise.
67811         * modules/xnanosleep (Depends-on): Likewise.
67812
67813 2007-02-11  Bruno Haible  <bruno@clisp.org>
67814
67815         * lib/c-strstr.c: Include allocsa.h.
67816         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67817         * lib/c-strcasestr.c: Include allocsa.h.
67818         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67819         * lib/strcasestr.c: Include allocsa.h.
67820         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67821         * lib/mbsstr.c: Include allocsa.h.
67822         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67823         allocsa/freesa instead of malloc/free.
67824         * lib/mbscasestr.c: Include allocsa.h.
67825         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67826         allocsa/freesa instead of malloc/free.
67827         * modules/c-strstr (Depends-on): Add allocsa.
67828         * modules/c-strcasestr (Depends-on): Likewise.
67829         * modules/strcasestr (Depends-on): Likewise.
67830         * modules/mbsstr (Depends-on): Likewise.
67831         * modules/mbscasestr (Depends-on): Likewise.
67832
67833 2007-02-11  Bruno Haible  <bruno@clisp.org>
67834
67835         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67836
67837         * modules/mbsspn-tests: New file.
67838         * tests/test-mbsspn.sh: New file.
67839         * tests/test-mbsspn.c: New file.
67840
67841 2007-02-11  Bruno Haible  <bruno@clisp.org>
67842
67843         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
67844
67845         * modules/mbspbrk-tests: New file.
67846         * tests/test-mbspbrk.sh: New file.
67847         * tests/test-mbspbrk.c: New file.
67848
67849 2007-02-11  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
67852         unneeded cast.
67853
67854         * modules/mbscspn-tests: New file.
67855         * tests/test-mbscspn.sh: New file.
67856         * tests/test-mbscspn.c: New file.
67857
67858 2007-02-11  Bruno Haible  <bruno@clisp.org>
67859
67860         * modules/mbscasecmp-tests: New file.
67861         * tests/test-mbscasecmp.sh: New file.
67862         * tests/test-mbscasecmp.c: New file.
67863
67864 2007-02-11  Bruno Haible  <bruno@clisp.org>
67865
67866         Ensure O(n) worst-case complexity of mbscasestr.
67867         * lib/mbscasestr.c: Include stdbool.h.
67868         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67869         functions.
67870         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
67871         the bookkeeping indicates that it's worth it.
67872         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
67873
67874         * modules/mbscasestr-tests: New file.
67875         * tests/test-mbscasestr1.c: New file.
67876         * tests/test-mbscasestr2.sh: New file.
67877         * tests/test-mbscasestr2.c: New file.
67878         * tests/test-mbscasestr3.sh: New file.
67879         * tests/test-mbscasestr3.c: New file.
67880         * tests/test-mbscasestr4.sh: New file.
67881         * tests/test-mbscasestr4.c: New file.
67882         * m4/locale-tr.m4: New file.
67883
67884 2007-02-11  Bruno Haible  <bruno@clisp.org>
67885
67886         Ensure O(n) worst-case complexity of mbsstr.
67887         * lib/mbsstr.c: Include stdbool.h.
67888         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67889         functions.
67890         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
67891         bookkeeping indicates that it's worth it.
67892         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
67893
67894         * modules/mbsstr-tests: New file.
67895         * tests/test-mbsstr1.c: New file.
67896         * tests/test-mbsstr2.sh: New file.
67897         * tests/test-mbsstr2.c: New file.
67898         * tests/test-mbsstr3.sh: New file.
67899         * tests/test-mbsstr3.c: New file.
67900         * m4/locale-fr.m4: New file.
67901
67902 2007-02-11  Bruno Haible  <bruno@clisp.org>
67903
67904         * lib/mbsrchr.c (mbsrchr): Fix bug.
67905
67906         * modules/mbsrchr-tests: New file.
67907         * tests/test-mbsrchr.sh: New file.
67908         * tests/test-mbsrchr.c: New file.
67909
67910 2007-02-11  Bruno Haible  <bruno@clisp.org>
67911
67912         * lib/mbschr.c (mbschr): Fix bug.
67913
67914         * modules/mbschr-tests: New file.
67915         * tests/test-mbschr.sh: New file.
67916         * tests/test-mbschr.c: New file.
67917         * m4/locale-zh.m4: New file.
67918
67919 2007-02-11  Bruno Haible  <bruno@clisp.org>
67920
67921         Support for copying multibyte string iterators.
67922         * lib/mbiter.h: Include <string.h>.
67923         (mbiter_multi_copy): New function.
67924         (mbi_copy): New macro.
67925         * lib/mbuiter.h: Include <string.h>.
67926         (mbuiter_multi_copy): New function.
67927         (mbui_copy): New macro.
67928
67929 2007-02-11  Bruno Haible  <bruno@clisp.org>
67930
67931         New module mbslen.
67932         * modules/mbslen: New file.
67933         * lib/mbslen.c: New file.
67934         * lib/string_.h (mbslen): New declaration.
67935         * m4/mbslen.m4: New file.
67936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67937         GNULIB_MBSLEN.
67938         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
67939         * MODULES.html.sh (Internationalization functions): Add mbslen.
67940
67941 2007-02-11  Bruno Haible  <bruno@clisp.org>
67942
67943         Ensure O(n) worst-case complexity of strcasestr substitute.
67944         * lib/strcasestr.c: Include stdbool.h.
67945         (knuth_morris_pratt): New function.
67946         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67947         bookkeeping indicates that it's worth it.
67948         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
67949
67950         * modules/strcasestr-tests: New file.
67951         * tests/test-strcasestr.c: New file.
67952
67953 2007-02-11  Bruno Haible  <bruno@clisp.org>
67954
67955         Ensure O(n) worst-case complexity of c_strcasestr.
67956         * lib/c-strcasestr.c: Include stdbool.h, string.h.
67957         (knuth_morris_pratt): New function.
67958         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
67959         the bookkeeping indicates that it's worth it.
67960         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
67961
67962         * modules/c-strcasestr-tests: New file.
67963         * tests/test-c-strcasestr.c: New file.
67964
67965 2007-02-11  Bruno Haible  <bruno@clisp.org>
67966
67967         Ensure O(n) worst-case complexity of c_strstr.
67968         * lib/c-strstr.c: Include stdbool.h, string.h.
67969         (knuth_morris_pratt): New function.
67970         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67971         bookkeeping indicates that it's worth it.
67972         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
67973
67974         * lib/c-strstr.c: Complete rewrite for maintainability.
67975
67976         * modules/c-strstr-tests: New file.
67977         * tests/test-c-strstr.c: New file.
67978
67979 2007-02-11  Bruno Haible  <bruno@clisp.org>
67980
67981         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
67982         5.2.1 and earlier, whereby \055 was treated just like the range
67983         delimiter '-'.
67984         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67985
67986 2007-02-08  Bruno Haible  <bruno@clisp.org>
67987
67988         * modules/regex (Depends-on): Add stdbool.
67989         Reported by Dalibor Topic <robilad@kaffe.org>.
67990
67991 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67992
67993         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
67994         Prefer returning from main to exiting from it.
67995         Remove unnecessary parens after sizeof.
67996
67997 2007-02-05  Bruno Haible  <bruno@clisp.org>
67998
67999         New module mbssep.
68000         * modules/mbssep: New file.
68001         * lib/mbssep.c: New file.
68002         * lib/string_.h (strsep): Add a conditional link warning.
68003         (mbssep): New declaration.
68004         * m4/mbssep.m4: New file.
68005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68006         GNULIB_MBSSEP.
68007         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68008         * MODULES.html.sh (Internationalization functions): Add mbssep.
68009
68010 2007-02-05  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68013         Optimize search in case of 1 delimiter.
68014
68015 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68016
68017         * lib/acl.h: Include sys/types.h before sys/acl.h.
68018
68019 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68020
68021         Merge upstream fix for glibc bugzilla #3957:
68022
68023         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68024
68025         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68026         bit for RE_HAT_LISTS_NOT_NEWLINE.
68027         (build_charclass_op): Remove bogus comment.
68028
68029 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68030
68031         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68032
68033 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68036         * lib/memmem.c [!defined _LIBC]: Include config.h.
68037
68038 2007-02-04  Bruno Haible  <bruno@clisp.org>
68039
68040         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68041         warning message.
68042
68043 2007-02-04  Bruno Haible  <bruno@clisp.org>
68044
68045         New module mbstok_r.
68046         * modules/mbstok_r: New file.
68047         * lib/mbstok_r.c: New file.
68048         * lib/string_.h (strtok_r): Change argument names to match the
68049         comments. Add a conditional link warning.
68050         (mbstok_r): New declaration.
68051         * m4/mbstok_r.m4: New file.
68052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68053         GNULIB_MBSTOK_R.
68054         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68055         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68056
68057 2007-02-04  Bruno Haible  <bruno@clisp.org>
68058
68059         New module mbsspn.
68060         * modules/mbsspn: New file.
68061         * lib/mbsspn.c: New file.
68062         * lib/string_.h (strspn): Add a conditional link warning.
68063         (mbsspn): New declaration.
68064         * m4/mbsspn.m4: New file.
68065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68066         GNULIB_MBSSPN.
68067         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68068         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68069
68070 2007-02-04  Bruno Haible  <bruno@clisp.org>
68071
68072         New module mbspbrk.
68073         * modules/mbspbrk: New file.
68074         * lib/mbspbrk.c: New file.
68075         * lib/string_.h (strpbrk): Add a conditional link warning.
68076         (mbspbrk): New declaration.
68077         * m4/mbspbrk.m4: New file.
68078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68079         GNULIB_MBSPBRK.
68080         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68081         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68082
68083 2007-02-04  Bruno Haible  <bruno@clisp.org>
68084
68085         New module mbscspn.
68086         * modules/mbscspn: New file.
68087         * lib/mbscspn.c: New file.
68088         * lib/string_.h (strcspn): Add a conditional link warning.
68089         (mbscspn): New declaration.
68090         * m4/mbscspn.m4: New file.
68091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68092         GNULIB_MBSCSPN.
68093         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68094         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68095
68096 2007-02-04  Bruno Haible  <bruno@clisp.org>
68097
68098         New module mbscasestr, reduced goal of strcasestr.
68099         * modules/mbscasestr: New file.
68100         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68101         (mbscasestr): Renamed from strcasestr.
68102         * lib/strcasestr.c: Don't include mbuiter.h.
68103         (strcasestr): Remove support for multibyte locales.
68104         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68105         Change the conditional link warning.
68106         (mbscasestr): New declaration.
68107         * m4/mbscasestr.m4: New file.
68108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68109         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68110         REPLACE_STRCASESTR.
68111         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68113         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68114         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68115         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68116         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68117         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68118         (Depends-on): Remove mbuiter.
68119         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68120
68121 2007-02-04  Bruno Haible  <bruno@clisp.org>
68122
68123         Simplify handling of strncasecmp.
68124         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68125         the conditional link warning.
68126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68127         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68128         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68129         * modules/strcase (configure.ac): Don't invoke
68130         gl_STRING_MODULE_INDICATOR.
68131         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68132
68133 2007-02-04  Bruno Haible  <bruno@clisp.org>
68134
68135         New module mbscasecmp, reduced goal of strcasecmp.
68136         * modules/mbscasecmp: New file.
68137         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68138         (mbscasecmp): Renamed from strcasecmp.
68139         * lib/strcasecmp.c: Don't include mbuiter.h.
68140         (strcasecmp): Remove support for multibyte locales.
68141         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68142         Change the conditional link warning.
68143         (mbscasecmp): New declaration.
68144         * m4/mbscasecmp.m4: New file.
68145         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68146         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68147         REPLACE_STRCASECMP.
68148         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68149         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68150         GNULIB_MBSCASECMP.
68151         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68152         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68153         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68154         (Depends-on): Remove mbuiter.
68155         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68156
68157 2007-02-04  Bruno Haible  <bruno@clisp.org>
68158
68159         New module mbsstr. Remove module strstr.
68160         * modules/mbsstr: New file.
68161         * modules/strstr: Remove file.
68162         * lib/mbsstr.c: Renamed from lib/strstr.c.
68163         (mbsstr): Renamed from strstr.
68164         * lib/string_.h (strstr): Remove declaration. Change the conditional
68165         link warning.
68166         (mbsstr): New declaration.
68167         * m4/mbsstr.m4: New file.
68168         * m4/strstr.m4: Remove file.
68169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68170         REPLACE_STRSTR.
68171         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68172         Don't initialize GNULIB_STRSTR.
68173         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68174         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68175         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68176         (Support for systems lacking ANSI C 89): Remove strstr.
68177
68178 2007-02-04  Bruno Haible  <bruno@clisp.org>
68179
68180         New module mbsrchr.
68181         * modules/mbsrchr: New file.
68182         * lib/mbsrchr.c: New file.
68183         * lib/string_.h (strrchr): Add a conditional link warning.
68184         (mbsrchr): New declaration.
68185         * m4/mbsrchr.m4: New file.
68186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68187         GNULIB_MBSRCHR.
68188         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68189         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68190
68191 2007-02-04  Bruno Haible  <bruno@clisp.org>
68192
68193         New module mbschr.
68194         * modules/mbschr: New file.
68195         * lib/mbschr.c: New file.
68196         * lib/string_.h (strchr): Add a conditional link warning.
68197         (mbschr): New declaration.
68198         * m4/mbschr.m4: New file.
68199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68200         GNULIB_MBSCHR.
68201         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68202         * MODULES.html.sh (Internationalization functions): Add mbschr.
68203
68204 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68205
68206         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68207
68208         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68209
68210 2007-02-04  Bruno Haible  <bruno@clisp.org>
68211
68212         New module description section 'configure.ac-early'.
68213         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68214         (func_get_autoconf_early_snippet): New function.
68215         (func_import, func_create_testdir): Use it. Remove special cases for
68216         modules 'extensions' and 'lock'.
68217         * modules/extensions (configure.ac-early): Require
68218         gl_USE_SYSTEM_EXTENSIONS.
68219         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68220
68221 2007-02-04  Bruno Haible  <bruno@clisp.org>
68222
68223         Make use of gcj-4.3's -fsource and -ftarget option.
68224         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68225         and if so try the options -fsource and -ftarget.
68226         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68227         source_version, ftarget_option, target_version arguments.
68228         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68229         (is_envjavac_oldgcj_14_14_usable): Renamed from
68230         is_envjavac_gcj_14_14_usable.
68231         (is_envjavac_oldgcj_14_13_usable): Renamed from
68232         is_envjavac_gcj_14_13_usable.
68233         (is_gcj_present): Update.
68234         (is_gcj_43, is_gcj43_usable): New functions.
68235         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68236         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68237         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68238         try the options -fsource and -ftarget.
68239
68240 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68241
68242         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68243         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68244         larger value.
68245
68246 2007-02-03  Jim Meyering  <jim@meyering.net>
68247
68248         Give tools a better chance to allocate space for very large buffers.
68249         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68250
68251         Make pwd and readlink work also when run with an unreadable parent dir
68252         on systems with openat support.
68253         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68254         provided getcwd function, even when we have openat support.
68255         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68256
68257 2007-02-02  Bruno Haible  <bruno@clisp.org>
68258
68259         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68260         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68261         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68262         portability problems if one of these functions is only used on specific
68263         platforms.
68264         Reported by Paul Eggert.
68265
68266 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68269         is causing more trouble than it's curing.
68270         * lib/regex_internal.h (__mempcpy): Remove.
68271         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68272         (and make the code a tad smaller to boot).
68273         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68274
68275 2007-02-02  Jim Meyering  <jim@meyering.net>
68276
68277         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68278         section, not in the Makefile.am: one.
68279
68280 2007-02-02  Eric Blake  <ebb9@byu.net>
68281
68282         * lib/strchrnul.c: Always include config.h first.
68283
68284         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68285         gnulib strstr is not necessary here.
68286
68287 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68288
68289         * m4/socklen.m4: Fix typo.
68290
68291 2007-02-02  Eric Blake  <ebb9@byu.net>
68292
68293         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68294         * modules/netinet_in (Makefile.am): Likewise.
68295
68296 2007-02-01  Bruno Haible  <bruno@clisp.org>
68297
68298         * lib/string_.h (GL_LINK_WARNING): New macro.
68299         (strcasecmp, strstr, strcasestr): If provided by the system,
68300         conditionally define as a macro that leads to a warning instead of to
68301         an error.
68302         (strncasecmp): Conditionally define as a macro that leads to a warning.
68303
68304 2007-02-01  Karl Berry  <karl@gnu.org>
68305
68306         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68307
68308 2007-02-01  Bruno Haible  <bruno@clisp.org>
68309
68310         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68311         renamings.
68312
68313 2007-02-01  Eric Blake  <ebb9@byu.net>
68314
68315         * modules/regex (Depends-on): Revert dependence on mempcpy.
68316         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68317         module's definition of mempcpy.
68318         Reported by Paul Eggert.
68319
68320 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68323         the symbol XYZ before redefining it.  This fixes a problem with
68324         programs that don't use XYZ, when compiled on systems that define
68325         XYZ to something else.
68326
68327 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68328
68329         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68330         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68331         writeable to group or other and (2) is intended to have a special
68332         mode bit that is set or cleared.  In such a case, the directory
68333         should be neither group- nor other-writeable until the special
68334         mode bits are right.
68335
68336 2007-01-31  Eric Blake  <ebb9@byu.net>
68337
68338         * modules/mountlist (Depends-on): Add strstr.
68339
68340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68341         bug.
68342         * modules/string (Makefile.am): Remove redundant replacement.
68343         * modules/regex (Depends-on): Add mempcpy.
68344
68345 2007-01-31  Bruno Haible  <bruno@clisp.org>
68346
68347         New module description field 'Link'.
68348         * gnulib-tool (func_usage): Document --extract-link-directive.
68349         (sed_extract_prog): Recognize 'Link' directive.
68350         (func_get_link_directive): New function.
68351         (func_import): Show summary of link directives.
68352         Handle --extract-link-directive option.
68353         * modules/acl (Link): New section.
68354         * modules/clock-time (Link): New section.
68355         * modules/euidaccess (Link): New section.
68356         * modules/gettext (Link): New section.
68357         * modules/iconv (Link): New section.
68358         * modules/lock (Link): New section.
68359         * modules/nanosleep (Link): New section.
68360         * modules/readline (Link): New section.
68361
68362 2007-01-27  Bruno Haible  <bruno@clisp.org>
68363
68364         Enforce the use of gnulib modules for unportable <string.h> functions.
68365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68366         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68367         (gl_HEADER_STRING_H_BODY): Require it.
68368         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68369         the symbol XYZ to one that gives a link error.
68370         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68371         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68372         * modules/mempcpy (configure.ac): Likewise.
68373         * modules/memrchr (configure.ac): Likewise.
68374         * modules/stpcpy (configure.ac): Likewise.
68375         * modules/stpncpy (configure.ac): Likewise.
68376         * modules/strcase (configure.ac): Likewise.
68377         * modules/strcasestr (configure.ac): Likewise.
68378         * modules/strchrnul (configure.ac): Likewise.
68379         * modules/strdup (configure.ac): Likewise.
68380         * modules/strndup (configure.ac): Likewise.
68381         * modules/strnlen (configure.ac): Likewise.
68382         * modules/strpbrk (configure.ac): Likewise.
68383         * modules/strsep (configure.ac): Likewise.
68384         * modules/strstr (configure.ac): Likewise.
68385         * modules/strtok_r (configure.ac): Likewise.
68386
68387 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68388
68389         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68390
68391 2007-01-30  Jim Meyering  <jim@meyering.net>
68392
68393         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68394
68395 2007-01-29  Bruno Haible  <bruno@clisp.org>
68396
68397         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68398         * lib/execute.c: Likewise.
68399         * lib/pipe.c: Likewise.
68400         * lib/printf-args.h: Likewise.
68401         * lib/printf-args.c: Likewise.
68402         * lib/printf-parse.c: Likewise.
68403         * lib/vasnprintf.c: Likewise.
68404
68405 2007-01-29  Eric Blake  <ebb9@byu.net>
68406
68407         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68408         declaration.
68409
68410 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * lib/strptime.h (strptime): Use 'restrict' for args where
68413         POSIX requires this.
68414         * lib/strptime.c (strptime): Likewise.
68415         Change license notice from LGPL to GPL, since gnulib-tool will
68416         change this as needed.
68417         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68418         defined.
68419         Include "strptime.h" first, to check interface.
68420         Do not #undef _LIBC and _NL_CURRENT.
68421         Do not include <stdlib.h>; no longer needed.
68422         Include "time_r.h" and declare ptime_locale_status
68423         only if _LIBC is not defined.
68424         (__P): Remove unused macro.
68425         (match_string): Bring back glibc version, but use it only if _LIBC
68426         is defined.
68427         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68428         Remove unnecessary assertion and abort() call.
68429         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68430         * m4/strptime.m4: Fix serial number comment.
68431         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68432         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68433         (Depends-on): Add time_r.
68434
68435 2007-01-29  Bruno Haible  <bruno@clisp.org>
68436
68437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68438         strptime.
68439         * modules/strptime (Depends-on): Add stdbool.
68440         * lib/strptime.h: Include <time.h> always. Add comments.
68441
68442 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68443
68444         * modules/strptime: New file.
68445         * lib/strptime.h: New file.
68446         * lib/strptime.c: New file.
68447         * m4/strptime.m4: New file.
68448
68449 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         * MODULES.html.sh: New module mpsort.
68452         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68453
68454         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68455         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68456         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68457         All uses changed.
68458         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68459         All uses changed.
68460         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68461         to _Restrict_.
68462         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68463         the parameter matches the prototype.
68464
68465 2007-01-28  Jim Meyering  <jim@meyering.net>
68466
68467         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68468         sys/time.h here, reverting that part of the previous patch:
68469         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68470
68471 2007-01-28  Bruno Haible  <bruno@clisp.org>
68472
68473         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68474         value of $(SYS_TIME_H).
68475         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68476         remove it conditionally, too. [added by Jim Meyering]
68477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68479         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68480         GETTIMEOFDAY_REPLACEMENT to 1.
68481
68482 2007-01-28  Bruno Haible  <bruno@clisp.org>
68483
68484         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68485         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68487         Set UNISTD_H instead of UNISTD_H2.
68488         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68489
68490 2007-01-28  Bruno Haible  <bruno@clisp.org>
68491
68492         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68493         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68494
68495 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68496
68497         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68498         (func_create_testdir): Ensure C locale for `grep' and `tr'
68499         character ranges.
68500         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68501         ACLOCAL_AMFLAGS parsing state machine.
68502
68503 2007-01-27  Bruno Haible  <bruno@clisp.org>
68504
68505         * modules/unistr/base: Update.
68506
68507 2007-01-27  Bruno Haible  <bruno@clisp.org>
68508
68509         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68510         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68511         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68512         modules/unistr/u32-mbtouc.
68513         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68514         * lib/unistr.h: Update.
68515         * lib/linebreak.c: Update.
68516         * modules/unistr/u32-mbtouc: Renamed from
68517         modules/unistr/u32-mbtouc-safe.
68518         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68519         * lib/unistr.h: Update.
68520         * lib/unistr/u32-to-u8.c: Update.
68521         * lib/unistr/u32-to-u16.c: Update.
68522
68523 2007-01-27  Bruno Haible  <bruno@clisp.org>
68524
68525         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68526         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68527         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68528         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68529         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68530         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68531         modules/unistr/u16-mbtouc.
68532         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68533         * lib/unistr.h: Update.
68534         * lib/linebreak.c: Update.
68535         * modules/linebreak: Update.
68536         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68537         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68538         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68539         * modules/unistr/u16-mbtouc: Renamed from
68540         modules/unistr/u16-mbtouc-safe.
68541         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68542         * lib/unistr.h: Update.
68543         * lib/unistr/u16-to-u8.c: Update.
68544         * modules/unistr/u16-to-u8: Update.
68545         * lib/unistr/u16-to-u32.c: Update.
68546         * modules/unistr/u16-to-u32: Update.
68547
68548 2007-01-27  Bruno Haible  <bruno@clisp.org>
68549
68550         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68551         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68552         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68553         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68554         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68555         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68556         modules/unistr/u8-mbtouc.
68557         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68558         * lib/unistr.h: Update.
68559         * lib/striconveh.c: Update.
68560         * modules/striconveh: Update.
68561         * lib/linebreak.c: Update.
68562         * modules/linebreak: Update.
68563         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68564         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68565         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68566         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68567         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68568         * lib/unistr.h: Update.
68569         * lib/striconveh.c: Update.
68570         * modules/striconveh: Update.
68571         * lib/unistr/u8-to-u16.c: Update.
68572         * modules/unistr/u8-to-u16: Update.
68573         * lib/unistr/u8-to-u32.c: Update.
68574         * modules/unistr/u8-to-u32: Update.
68575
68576 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68577
68578         Sync from Libtool.
68579         * lib/argz.c: Do not include strings.h nor memory.h, include
68580         string.h unconditionally.  Patch by Simon Josefsson.
68581
68582 2007-01-27  Bruno Haible  <bruno@clisp.org>
68583
68584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68585         from gl_HEADER_STRING_H_BODY.
68586         (gl_HEADER_STRING_H_BODY): Require it.
68587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68588         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68589         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68590         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68592         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68594         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68595         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68597         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68598         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68599         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68600         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68601         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68602
68603 2007-01-27  Bruno Haible  <bruno@clisp.org>
68604
68605         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68606         check_PROGRAMS into noinst_PROGRAMS.
68607         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68608         check_PROGRAMS in this case.
68609         (func_import): Set for_test to false.
68610         (func_create_testdir): Set for_test to true.
68611
68612 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68613             Bruno Haible  <bruno@clisp.org>
68614
68615         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68616         (Depends-on): Add string.
68617         (Includes): Use <string.h> instead of strcasestr.h.
68618         * modules/string (Makefile.am): Also substitute the value of
68619         REPLACE_STRCASESTR.
68620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68621         assume strcasestr is declared in <string.h> not <strings.h>. Also
68622         set REPLACE_STRCASESTR.
68623         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68624         REPLACE_STRCASESTR.
68625         * lib/strcasestr.h: Remove file.
68626         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68627         * lib/string_.h (strcasestr): New declaration.
68628
68629 2007-01-27  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/string_.h: Use 'extern'.
68632
68633 2007-01-27  Jim Meyering  <jim@meyering.net>
68634
68635         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68636         of set-but-not-used local, "q".
68637
68638         * lib/mempcpy.c: Include <config.h> before <string.h>.
68639         This fixes a compilation error on HP-UX, due to the system's
68640         "restrict"-using mempcpy prototype.
68641
68642 2007-01-26  Bruno Haible  <bruno@clisp.org>
68643
68644         Small optimization.
68645         * lib/javacomp.c: Include c-strstr.h.
68646          (is_envjavac_gcj): Use c_strstr instead of strstr.
68647         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68648
68649 2007-01-26  Bruno Haible  <bruno@clisp.org>
68650
68651         * MODULES.html.sh (Unicode string functions): Add the new modules.
68652
68653         * modules/uniconv/u32-strconv-to-locale: New file.
68654         * lib/uniconv/u32-strconv-to-locale.c: New file.
68655
68656         * modules/uniconv/u16-strconv-to-locale: New file.
68657         * lib/uniconv/u16-strconv-to-locale.c: New file.
68658
68659         * modules/uniconv/u8-strconv-to-locale: New file.
68660         * lib/uniconv/u8-strconv-to-locale.c: New file.
68661
68662         * modules/uniconv/u32-strconv-from-locale: New file.
68663         * lib/uniconv/u32-strconv-from-locale.c: New file.
68664
68665         * modules/uniconv/u16-strconv-from-locale: New file.
68666         * lib/uniconv/u16-strconv-from-locale.c: New file.
68667
68668         * modules/uniconv/u8-strconv-from-locale: New file.
68669         * lib/uniconv/u8-strconv-from-locale.c: New file.
68670
68671         * modules/uniconv/u32-strconv-to-enc: New file.
68672         * lib/uniconv/u32-strconv-to-enc.c: New file.
68673         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68674         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68675
68676         * modules/uniconv/u16-strconv-to-enc: New file.
68677         * lib/uniconv/u16-strconv-to-enc.c: New file.
68678         * lib/uniconv/u-strconv-to-enc.h: New file.
68679         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68680         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68681
68682         * modules/uniconv/u8-strconv-to-enc: New file.
68683         * lib/uniconv/u8-strconv-to-enc.c: New file.
68684         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68685         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68686
68687         * modules/uniconv/u32-strconv-from-enc: New file.
68688         * lib/uniconv/u32-strconv-from-enc.c: New file.
68689         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68690         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68691
68692         * modules/uniconv/u16-strconv-from-enc: New file.
68693         * lib/uniconv/u16-strconv-from-enc.c: New file.
68694         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68695         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68696
68697         * modules/uniconv/u8-strconv-from-enc: New file.
68698         * lib/uniconv/u8-strconv-from-enc.c: New file.
68699         * lib/uniconv/u-strconv-from-enc.h: New file.
68700         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68701         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68702
68703         * modules/uniconv/u32-conv-from-enc: New file.
68704         * lib/uniconv/u32-conv-from-enc.c: New file.
68705         * modules/uniconv/u32-conv-from-enc-tests: New file.
68706         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68707
68708         * modules/uniconv/u16-conv-from-enc: New file.
68709         * lib/uniconv/u16-conv-from-enc.c: New file.
68710         * lib/uniconv/u-conv-from-enc.h: New file.
68711         * modules/uniconv/u16-conv-from-enc-tests: New file.
68712         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68713
68714         * modules/uniconv/u8-conv-from-enc: New file.
68715         * lib/uniconv/u8-conv-from-enc.c: New file.
68716         * modules/uniconv/u8-conv-from-enc-tests: New file.
68717         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68718
68719         * modules/uniconv/base: New file.
68720         * lib/uniconv.h: New file.
68721
68722 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         * doc/gnulib-tool.texi (Initial import): Update to match current
68725         behavior with strdup module.
68726         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68727         * lib/memmem.h: Remove; all uses removed.  This is now done
68728         by <string.h>.
68729         * lib/mempcpy.h: Likewise.
68730         * lib/memrchr.h: Likewise.
68731         * lib/stpcpy.h: Likewise.
68732         * lib/stpncpy.h: Likewise.
68733         * lib/strcase.h: Likewise.
68734         * lib/strchrnul.h: Likewise.
68735         * lib/strdup.h: Likewise.
68736         * lib/strndup.h: Likewise.
68737         * lib/strnlen.h: Likewise.
68738         * lib/strpbrk.h: Likewise.
68739         * lib/strsep.h: Likewise.
68740         * lib/strstr.h: Likewise.
68741         * lib/strtok_r.h: Likewise.
68742         * lib/string_.h: New file.
68743         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68744         Rely on <string.h> instead.
68745         * lib/canon-host.c: Likewise.
68746         * lib/chdir-long.c: Likewise.
68747         * lib/concatpath.c: Likewise.
68748         * lib/exclude.c: Likewise.
68749         * lib/fchdir.c: Likewise.
68750         * lib/getaddrinfo.c: Likewise.
68751         * lib/getcwd.c: Likewise.
68752         * lib/getsubopt.c: Likewise.
68753         * lib/glob.c: Likewise.
68754         * lib/hard-locale.c: Likewise.
68755         * lib/iconvme.c: Likewise.
68756         * lib/javacomp.c: Likewise.
68757         * lib/mempcpy.c: Likewise.
68758         * lib/memrchr.c: Likewise.
68759         * lib/regex_internal.h: Likewise.
68760         * lib/stpncpy.c: Likewise.
68761         * lib/strcasecmp.c: Likewise.
68762         * lib/strchrnul.c: Likewise.
68763         * lib/strdup.c: Likewise.
68764         * lib/striconv.c: Likewise.
68765         * lib/striconveh.c: Likewise.
68766         * lib/striconveha.c: Likewise.
68767         * lib/strncasecmp.c: Likewise.
68768         * lib/strndup.c: Likewise.
68769         * lib/strnlen.c: Likewise.
68770         * lib/strsep.c: Likewise.
68771         * lib/strstr.c: Likewise.
68772         * lib/strtok_r.c: Likewise.
68773         * lib/userspec.c: Likewise.
68774         * lib/w32spawn.h: Likewise.
68775         * lib/xstrndup.c: Likewise.
68776         * lib/mountlist.c (strstr): Remove decl.
68777         * m4/string_h.m4: New file.
68778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68779         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68781         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68782         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68783         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68784         Set REPLACE_STRCASECMP if necessary.
68785         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68786         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68787         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68789         HAVE_DECL_STRDUP if necessary.
68790         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68791         since gl_FUNC_STRNDUP does that now.
68792         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68793         Check for decl here...
68794         (gl_PREREQ_STRNLEN): ... not here.
68795         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68796         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68797         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68798         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68799         necessary.
68800         * modules/string: New file.
68801         * modules/memmem (Files): Remove special-purpose include file.
68802         (Depends-on): Add string.
68803         (Include): Include <string.h>, not the removed file.
68804         * modules/mempcpy: Likewise.
68805         * modules/memrchr: Likewise.
68806         * modules/stpcpy: Likewise.
68807         * modules/stpncpy: Likewise.
68808         * modules/strcase: Likewise.
68809         * modules/strchrnul: Likewise.
68810         * modules/strdup: Likewise.
68811         * modules/strndup: Likewise.
68812         * modules/strnlen: Likewise.
68813         * modules/strpbrk: Likewise.
68814         * modules/strsep: Likewise.
68815         * modules/strstr: Likewise.
68816         * modules/strtok_r: Likewise.
68817         * tests/test-dirname.c: Don't include "strdup.h", since
68818         <string.h> now suffices.
68819         * tests/test-memmem.c: Don't include "memmem.h", since
68820         <string.h> now suffices.
68821
68822 2007-01-25  Bruno Haible  <bruno@clisp.org>
68823
68824         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68825         *resultp is 0.
68826
68827         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68828         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68829         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68830         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68831
68832         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68833         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68834         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68835         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68836         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68837         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68838
68839 2007-01-24  Bruno Haible  <bruno@clisp.org>
68840
68841         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
68842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
68843         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
68844         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
68845         gl_FUNC_FTS_CORE.
68846         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
68847         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
68848         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68849         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
68850         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
68851         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
68852         gl_FUNC_FCHOWNAT.
68853         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
68854         gl_FUNC_STRFTIME.
68855         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
68856         Reported by Ralf Wildenhues.
68857
68858 2007-01-24  Bruno Haible  <bruno@clisp.org>
68859
68860         Drop AC_REQUIRE calls that are redundant with the module dependencies.
68861         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
68862         gl_GETADDRINFO.
68863         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
68864         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
68865         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
68866
68867 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
68870         Don't use 'exit'; just return from 'main'.
68871         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
68872
68873         * lib/fnmatch_.h: Readjust white space and comments to match
68874         glibc, to avoid spurious diffs.
68875
68876 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
68879         2004-12-01 change by Jakub Jelinek, since this code won't compile
68880         if !LIBC.  Problem reported by Bob Proulx.
68881
68882 2007-01-23  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/striconveh.c: Include c-strcaseeq.h.
68885         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
68886         * modules/striconveh (Depends-on): Add c-strcaseeq.
68887
68888 2007-01-23  Bruno Haible  <bruno@clisp.org>
68889
68890         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
68891
68892         * modules/c-strcaseeq: New file.
68893         * lib/c-strcaseeq.h: New file.
68894
68895         * modules/streq: New file.
68896         * lib/streq.h: New file.
68897
68898 2007-01-23  Bruno Haible  <bruno@clisp.org>
68899
68900         * modules/striconveha-tests: New file.
68901         * tests/test-striconveha.c: New file.
68902
68903         * lib/striconveha.h: Include <stdbool.h>.
68904         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
68905         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
68906         (mem_iconveha_notranslit): Renamed from mem_iconveha.
68907         (mem_iconveha): New function.
68908         (str_iconveha_notranslit): Renamed from str_iconveha.
68909         (str_iconveha): New function.
68910         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
68911         c-strcase.
68912
68913 2007-01-23  Bruno Haible  <bruno@clisp.org>
68914
68915         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
68916         encodings without forgiving before trying any encoding with handler.
68917         (str_iconveha): Try all encodings without forgiving before trying any
68918         encoding with handler.
68919
68920 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         Import the following changes from libc.
68923
68924         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68925
68926         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
68927
68928         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68929
68930         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
68931         normal_bracket label.
68932
68933         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
68934
68935         [BZ #361]
68936         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
68937         to normal_bracket after fetching the next character.
68938
68939 2007-01-22  Bruno Haible  <bruno@clisp.org>
68940
68941         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
68942         argument.
68943         * lib/striconveh.c (iconv_carefully_1): New function.
68944         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
68945         argument.
68946         (str_cd_iconveh): Update.
68947         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
68948         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
68949         * tests/test-striconveh.c (MAGIC): New macro.
68950         (new_offsets): New function.
68951         (main): Test call with and without offsets.
68952
68953 2007-01-22  Bruno Haible  <bruno@clisp.org>
68954
68955         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
68956         * modules/sys_select (Makefile.am): Likewise.
68957         * modules/sys_socket (Makefile.am): Likewise.
68958         * modules/sys_time (Makefile.am): Likewise.
68959
68960 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         * modules/gettimeofday (License): Change from GPL to LGPL, since
68963         gettimeofday is a library function.
68964
68965 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68966
68967         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
68968
68969 2007-01-21  Bruno Haible  <bruno@clisp.org>
68970
68971         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
68972
68973 2007-01-21  Bruno Haible  <bruno@clisp.org>
68974
68975         * modules/striconveha: New file.
68976         * lib/striconveha.h: New file.
68977         * lib/striconveha.c: New file.
68978         * MODULES.html.sh (Internationalization functions): Add striconveha.
68979         * lib/striconv.c (str_iconv): Optimize the case of an empty input
68980         string.
68981         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
68982
68983 2007-01-21  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
68986         * lib/striconveh.c (str_iconveh): Likewise.
68987
68988 2007-01-21  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/striconveh.h (mem_iconveh): New declaration.
68991         * lib/striconveh.c (mem_iconveh): New function.
68992         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
68993
68994 2007-01-21  Bruno Haible  <bruno@clisp.org>
68995
68996         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
68997
68998         * lib/striconveh.h (mem_cd_iconveh): Change specification.
68999         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69000         original result buffer.
69001         (str_cd_iconveh): Update.
69002         * tests/test-striconveh.c (main): Update.
69003
69004         * lib/striconv.h (mem_cd_iconv): Change specification.
69005         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69006         result buffer.
69007         (str_cd_iconv): Update.
69008         * tests/test-striconv.c (main): Update.
69009
69010 2007-01-21  Bruno Haible  <bruno@clisp.org>
69011
69012         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69013
69014 2007-01-20  Jim Meyering  <jim@meyering.net>
69015
69016         * lib/userspec.c (parse_with_separator): If a user or group string
69017         starts with "+", skip the corresponding name-to-ID look-up, since
69018         such a look-up must fail: user and group names may not include "+".
69019
69020 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69021
69022         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69023         since we now assume the sys_time module.
69024         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69025         check for sys/time.h; no longer needed.
69026         * modules/poll (Depends-on): Depend on sys_time.
69027
69028 2007-01-18  Bruno Haible  <bruno@clisp.org>
69029
69030         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69031         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69032
69033         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69034         gettimeofday.
69035
69036         * tests/test-gettimeofday.c: Include <time.h>.
69037         (dummy): Remove variable.
69038
69039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69040         gl_HEADER_SYS_TIME_H.
69041         (gl_HEADER_SYS_TIME_H): New macro.
69042
69043         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69044         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69045         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69046         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69047         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69048         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69049         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69050         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69051         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69052         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69053         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69054
69055         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69056         last change; it caused a compilation error when cross-compiling to
69057         Cygwin.
69058
69059 2007-01-18  Jim Meyering  <jim@meyering.net>
69060
69061         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69062         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69063         than the race-prone "test -d sys || mkdir sys".
69064         (configure.ac): Use AC_PROG_MKDIR_P.
69065         * modules/sys_select: Likewise.
69066         * modules/sys_socket: Likewise.
69067         * modules/sys_time: Likewise.
69068
69069 2007-01-18  Eric Blake  <ebb9@byu.net>
69070
69071         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69072         replace gettimeofday.
69073         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69074         name, to avoid infinite recursion.
69075
69076 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69079         module sys_time.
69080         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69081         assume timespec.h defines struct timeval.
69082         * lib/settime.c: Likewise.
69083         * lib/utimens.c: Likewise.
69084         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69085         since we now assume the gettimeofday module.
69086         * lib/tempname.c (__gen_tempname): Likewise.
69087         * lib/gettimeofday.h: Remove.
69088         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69089         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69090         Include <time.h>, for 'time()'.
69091         (localtime_buffer_addr): Also use this workaround if
69092         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69093         to simplify the uses.  All uses changed.
69094         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69095         that #undef is inside {}, and 'const' follows type name consistently.
69096         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69097         (gettimeofday): Do not use the maximum possible value for
69098         tv->tv_usec, since that might break usages other than ls.c.
69099         Instead, we'll leave ls.c alone.  This undoes today's patch
69100         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69101         we've never observed the problem but might as well keep the
69102         canary.
69103         * lib/nanosleep.c: Include timespec.h first, for interface check.
69104         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69105         now assume the sys_time module.
69106         * lib/tempname.c: Likewise.
69107         * lib/timespec.h: Likewise.
69108         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69109         needed.
69110         * lib/strftime.c: Likewise.
69111         * lib/timespec.h: Likewise.
69112         * lib/posixtm.c: Include posixtm.h first, for interface check.
69113         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69114         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69115         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69116         * lib/sys_time_.h: New file.
69117         * lib/timespec.h (struct timespec): Use long int, not long.
69118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69119         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69120         Remove obsolescent call to AC_HEADER_TIME.
69121         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69123         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69124         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69125         Likewise.
69126         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69127         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69128         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69129         into the sys_time module.  Check for gettimeofday just once.
69130         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69131         for gettimeofday signature to just check the signature.  Merely
69132         compile it, since linking doesn't test signature.  Improve test for
69133         whether gettimeofday.o is actually needed.
69134         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69135         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69136         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69137         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69138         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69139         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69140         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69141         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69142         than worrying about sys/time.h.
69143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69144         Don't bother worrying about TIME_WITH_SYS_TIME.
69145         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69146         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69147         * m4/sys_time_h.m4: New file.
69148         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69149         Don't include sys/time.h.  Return from main rather than exiting.
69150         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69151         all uses changed.
69152         * modules/gethrxtime (Depends-on): Add sys_time.
69153         * modules/gettime (Depends-on): Likewise.
69154         * modules/gettimeofday (Depends-on): Likewise.
69155         * modules/nanosleep (Depends-on): Likewise.
69156         * modules/settime (Depends-on): Likewise.
69157         * modules/tempname (Depends-on): Likewise.
69158         * modules/utimens (Depends-on): Likewise.
69159         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69160         (Include): Change back to <sys/time.h>.
69161         (Maintainer): Add self.
69162         * modules/sys_time: New file.
69163         * modules/tempname (Depends-on): Add gettimeofday.
69164         * tests/test-gettimeofday.c: Include <sys/time.h>
69165         rather than gettimeofday.h.
69166
69167 2007-01-17  Bruno Haible  <bruno@clisp.org>
69168
69169         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69170         the license default to GPL.
69171         (func_create_testdir): Don't complain if a module is LGPL and its
69172         tests module depends on GPLed modules.
69173
69174 2007-01-17  Bruno Haible  <bruno@clisp.org>
69175
69176         * lib/gettimeofday.c (gettimeofday): Add code for the case
69177         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69178         maximum possible value for tv->tv_usec, rather than the minimum one.
69179
69180 2005-10-08  Martin Lambers  <marlam@marlam.de>
69181 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69182 2007-01-16  Bruno Haible  <bruno@clisp.org>
69183
69184         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69185         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69186         gl_FUNC_GETTIMEOFDAY.
69187         (Include): Add gettimeofday.h.
69188         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69189         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69190         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69191         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69192         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69193         * lib/gettimeofday.h: New file.
69194         * lib/gettimeofday.c: Include <sys/timeb.h>.
69195         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69196         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69197         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69198         fall back on time().
69199
69200         * tests/test-gettimeofday.c: New file.
69201         * modules/gettimeofday-tests: New file.
69202
69203 2007-01-16  Eric Blake  <ebb9@byu.net>
69204
69205         * modules/fnmatch (Depends-on): Depend on wchar.
69206         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69207         * m4/fnmatch.m4: Likewise.
69208         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69209         * m4/mbchar.m4: Likewise.
69210         * modules/mbswidth (Depends-on): Depend on wchar.
69211         * lib/mbswidth.c: Assume <wchar.h>.
69212         * m4/mbswidth.m4: Likewise.
69213         * modules/quotearg (Depends-on): Depend on wchar.
69214         * lib/quotearg.c: Assume <wchar.h>.
69215         * m4/quotearg.m4: Likewise.
69216         * modules/regex (Depends-on): Depend on wchar.
69217         * lib/regex_internal.h: Assume <wchar.h>.
69218         * m4/regex.m4: Likewise.
69219         * modules/stdint (Depends-on): Depend on wchar.
69220         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69221         * m4/stdint.m4: Likewise.
69222         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69223         * modules/strftime (Depends-on): Depend on wchar.
69224         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69225         * modules/strtol (Depends-on): Depend on wchar.
69226         * lib/strtol.c: Assume <wchar.h>.
69227         * modules/wcwidth (Depends-on): Depend on wchar.
69228         * lib/wcwidth.h: Assume <wchar.h>.
69229         * m4/wcwidth.m4: Likewise.
69230
69231 2007-01-16  Bruno Haible  <bruno@clisp.org>
69232
69233         * modules/csharpexec-script: New, created from...
69234         * modules/csharpexec: ... this.
69235
69236 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69237
69238         * modules/javaexec-script: New, created from...
69239         * modules/javaexec: ... this.
69240
69241 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69242
69243         * modules/poll (Dependencies): Add sys_select.
69244
69245 2007-01-15  Jim Meyering  <jim@meyering.net>
69246
69247         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69248         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69249         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69250         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69251
69252 2007-01-15  Bruno Haible  <bruno@clisp.org>
69253
69254         * modules/striconveh: New file.
69255         * lib/striconveh.h: New file.
69256         * lib/striconveh.c: New file.
69257         * MODULES.html.sh (Internationalization functions): Add striconveh.
69258
69259         * modules/striconveh-tests: New file.
69260         * tests/test-striconveh.c: New file.
69261
69262 2007-01-15  Bruno Haible  <bruno@clisp.org>
69263
69264         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69265         not from GNU libiconv or GNU libc.
69266
69267 2007-01-15  Bruno Haible  <bruno@clisp.org>
69268
69269         * doc/gnulib-intro.texi (Copyright): Explain the different license
69270         terms for module descriptions, autoconf macros, tests, documentation.
69271
69272 2007-01-14  Bruno Haible  <bruno@clisp.org>
69273
69274         * modules/striconv-tests: New file.
69275         * tests/test-striconv.c: New file.
69276
69277 2007-01-14  Bruno Haible  <bruno@clisp.org>
69278
69279         * modules/iconv-tests: New file.
69280         * tests/test-iconv.c: New file.
69281
69282 2007-01-14  Bruno Haible  <bruno@clisp.org>
69283
69284         * gnulib-tool (func_get_license): For test modules, use the license of
69285         the main module.
69286
69287 2007-01-14  Bruno Haible  <bruno@clisp.org>
69288
69289         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69290         if iconv is found to exist.
69291
69292 2007-01-14  Bruno Haible  <bruno@clisp.org>
69293
69294         * modules/c-ctype-tests: New file.
69295         * tests/test-c-ctype.c: New file.
69296
69297 2007-01-14  Bruno Haible  <bruno@clisp.org>
69298
69299         * modules/binary-io-tests: New file.
69300         * tests/test-binary-io.sh: New file.
69301         * tests/test-binary-io.c: New file.
69302
69303 2007-01-14  Bruno Haible  <bruno@clisp.org>
69304
69305         * modules/array-oset-tests: New file.
69306         * tests/test-array_oset.c: New file.
69307
69308 2007-01-14  Bruno Haible  <bruno@clisp.org>
69309
69310         * modules/array-list-tests: New file.
69311         * tests/test-array_list.c: New file.
69312
69313 2007-01-14  Bruno Haible  <bruno@clisp.org>
69314
69315         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69316         and make.
69317         Reported by Simon Josefsson in
69318         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69319
69320 2007-01-14  Bruno Haible  <bruno@clisp.org>
69321
69322         * modules/allocsa-tests: New file.
69323         * tests/test-allocsa.c: New file.
69324
69325 2007-01-14  Bruno Haible  <bruno@clisp.org>
69326
69327         * modules/fchdir (Depends-on): Add absolute-header.
69328         * modules/unistd (Depends-on): Likewise.
69329
69330 2006-12-30  Bruno Haible  <bruno@clisp.org>
69331
69332         * modules/fchdir: New file.
69333         * modules/unistd (Files): Add lib/unistd_.h.
69334         (Makefile.am): Generate unistd.h from unistd_.h.
69335         * lib/fchdir.c: New file.
69336         * lib/dirent_.h: New file.
69337         * lib/unistd_.h: New file.
69338         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69339         * m4/fchdir.m4: New file.
69340         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69341         (gl_HEADER_UNISTD): Invoke it.
69342         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69343         function.
69344         * lib/backupfile.c (opendir, closedir): Undefine.
69345         * lib/chown.c (open, close): Undefine.
69346         * lib/clean-temp.c (open, close): Undefine.
69347         * lib/copy-file.c (open, close): Undefine.
69348         * lib/execute.c (open, close): Undefine.
69349         * lib/fsusage.c (open, close): Undefine.
69350         * lib/gc-gnulib.c (open, close): Undefine.
69351         * lib/getcwd.c (opendir, closedir): Undefine.
69352         * lib/glob.c (opendir, closedir): Undefine.
69353         * lib/javacomp.c (open, close): Undefine.
69354         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69355         * lib/openat-proc.c (open, close): Undefine.
69356         * lib/pagealign_alloc.c (open, close): Undefine.
69357         * lib/pipe.c (open, close): Undefine.
69358         * lib/progreloc.c (open, close): Undefine.
69359         * lib/savedir.c (opendir, closedir): Undefine.
69360         * lib/utime.c (open, close): Undefine.
69361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69362
69363 2007-01-10  Bruno Haible  <bruno@clisp.org>
69364
69365         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69366
69367 2007-01-12  Eric Blake  <ebb9@byu.net>
69368
69369         Provide a robust <wchar.h>.  Further simplifications are now
69370         possible in other modules, but not included here.
69371         * modules/wchar: New module.
69372         * m4/wchar.m4: New file.
69373         * lib/wchar_.h: Likewise.
69374         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69375         of the new module.
69376         * MODULES.html.sh (Extended multibyte and wide character utilities):
69377         New section.
69378
69379 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69382         to a reasonable default for memory allocation.
69383         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69384         file system that reports garbage st_size values for symlinks.
69385         Problem reported by Liyang Hu.
69386
69387 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69388
69389         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69390         Emacs .#* auto-save files).
69391
69392 2007-01-11  Bruno Haible  <bruno@clisp.org>
69393
69394         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69395         directory.
69396
69397 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         Use @...@ consistently in lib/wctype_.h.
69400         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69401         on it being set to 1 or 0.
69402         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69403         go back to AC_SUBSTing it.
69404         * modules/wctype (Makefile.am): Undo previous change.
69405
69406 2007-01-10  Eric Blake  <ebb9@byu.net>
69407
69408         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69409         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69410         * modules/wctype (Makefile.am): Likewise.
69411         Reported by Chris McGuire.
69412
69413 2007-01-10  Jim Meyering  <jim@meyering.net>
69414
69415         fts.c: a small readability/maintainability improvement
69416         * lib/fts.c (fts_read): Make this code slightly more readable and
69417         maintainable by hoisting the "sp->fts_cur = p" assignments to
69418         immediately follow the statements that set P.  Derived from
69419         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69420
69421 2007-01-10  Eric Blake  <ebb9@byu.net>
69422
69423         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69424         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69426         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69427         Reported by Chris McGuire.
69428
69429 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69430
69431         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69432         in sed script.
69433
69434 2007-01-09  Bruno Haible  <bruno@clisp.org>
69435
69436         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69437         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69438         variables.
69439         (func_module): Use them.
69440
69441 2007-01-09  Bruno Haible  <bruno@clisp.org>
69442
69443         * modules/unistr/base: New file.
69444         * lib/unistr.h: New file.
69445
69446         * modules/unistr/u8-to-u16: New file.
69447         * lib/unistr/u8-to-u16.c: New file.
69448
69449         * modules/unistr/u8-to-u32: New file.
69450         * lib/unistr/u8-to-u32.c: New file.
69451
69452         * modules/unistr/u16-to-u8: New file.
69453         * lib/unistr/u16-to-u8.c: New file.
69454
69455         * modules/unistr/u16-to-u32: New file.
69456         * lib/unistr/u16-to-u32.c: New file.
69457
69458         * modules/unistr/u32-to-u8: New file.
69459         * lib/unistr/u32-to-u8.c: New file.
69460
69461         * modules/unistr/u32-to-u16: New file.
69462         * lib/unistr/u32-to-u16.c: New file.
69463
69464         * modules/unistr/u8-check: New file.
69465         * modules/unistr/u16-check: New file.
69466         * modules/unistr/u32-check: New file.
69467         * lib/unistr/u8-check.c: New file.
69468         * lib/unistr/u16-check.c: New file.
69469         * lib/unistr/u32-check.c: New file.
69470
69471         * modules/unistr/u8-chr: New file.
69472         * modules/unistr/u16-chr: New file.
69473         * modules/unistr/u32-chr: New file.
69474         * lib/unistr/u8-chr.c: New file.
69475         * lib/unistr/u16-chr.c: New file.
69476         * lib/unistr/u32-chr.c: New file.
69477
69478         * modules/unistr/u8-cmp: New file.
69479         * modules/unistr/u16-cmp: New file.
69480         * modules/unistr/u32-cmp: New file.
69481         * lib/unistr/u8-cmp.c: New file.
69482         * lib/unistr/u16-cmp.c: New file.
69483         * lib/unistr/u32-cmp.c: New file.
69484
69485         * modules/unistr/u8-cpy: New file.
69486         * modules/unistr/u16-cpy: New file.
69487         * modules/unistr/u32-cpy: New file.
69488         * lib/unistr/u8-cpy.c: New file.
69489         * lib/unistr/u16-cpy.c: New file.
69490         * lib/unistr/u32-cpy.c: New file.
69491         * lib/unistr/u-cpy.h: New file.
69492
69493         * modules/unistr/u8-cpy-alloc: New file.
69494         * modules/unistr/u16-cpy-alloc: New file.
69495         * modules/unistr/u32-cpy-alloc: New file.
69496         * lib/unistr/u8-cpy-alloc.c: New file.
69497         * lib/unistr/u16-cpy-alloc.c: New file.
69498         * lib/unistr/u32-cpy-alloc.c: New file.
69499         * lib/unistr/u-cpy-alloc.h: New file.
69500
69501         * modules/unistr/u8-endswith: New file.
69502         * modules/unistr/u16-endswith: New file.
69503         * modules/unistr/u32-endswith: New file.
69504         * lib/unistr/u8-endswith.c: New file.
69505         * lib/unistr/u16-endswith.c: New file.
69506         * lib/unistr/u32-endswith.c: New file.
69507         * lib/unistr/u-endswith.h: New file.
69508
69509         * modules/unistr/u8-mblen: New file.
69510         * modules/unistr/u16-mblen: New file.
69511         * modules/unistr/u32-mblen: New file.
69512         * lib/unistr/u8-mblen.c: New file.
69513         * lib/unistr/u16-mblen.c: New file.
69514         * lib/unistr/u32-mblen.c: New file.
69515
69516         * modules/unistr/u8-mbtouc: New file.
69517         * modules/unistr/u16-mbtouc: New file.
69518         * modules/unistr/u32-mbtouc: New file.
69519         * lib/unistr/u8-mbtouc.c: New file.
69520         * lib/unistr/u16-mbtouc.c: New file.
69521         * lib/unistr/u32-mbtouc.c: New file.
69522
69523         * modules/unistr/u8-mbtouc-safe: New file.
69524         * modules/unistr/u16-mbtouc-safe: New file.
69525         * modules/unistr/u32-mbtouc-safe: New file.
69526         * lib/unistr/u8-mbtouc-safe.c: New file.
69527         * lib/unistr/u16-mbtouc-safe.c: New file.
69528         * lib/unistr/u32-mbtouc-safe.c: New file.
69529
69530         * modules/unistr/u8-move: New file.
69531         * modules/unistr/u16-move: New file.
69532         * modules/unistr/u32-move: New file.
69533         * lib/unistr/u8-move.c: New file.
69534         * lib/unistr/u16-move.c: New file.
69535         * lib/unistr/u32-move.c: New file.
69536         * lib/unistr/u-move.h: New file.
69537
69538         * modules/unistr/u8-next: New file.
69539         * modules/unistr/u16-next: New file.
69540         * modules/unistr/u32-next: New file.
69541         * lib/unistr/u8-next.c: New file.
69542         * lib/unistr/u16-next.c: New file.
69543         * lib/unistr/u32-next.c: New file.
69544
69545         * modules/unistr/u8-prev: New file.
69546         * modules/unistr/u16-prev: New file.
69547         * modules/unistr/u32-prev: New file.
69548         * lib/unistr/u8-prev.c: New file.
69549         * lib/unistr/u16-prev.c: New file.
69550         * lib/unistr/u32-prev.c: New file.
69551
69552         * modules/unistr/u8-set: New file.
69553         * modules/unistr/u16-set: New file.
69554         * modules/unistr/u32-set: New file.
69555         * lib/unistr/u8-set.c: New file.
69556         * lib/unistr/u16-set.c: New file.
69557         * lib/unistr/u32-set.c: New file.
69558         * lib/unistr/u-set.h: New file.
69559
69560         * modules/unistr/u8-startswith: New file.
69561         * modules/unistr/u16-startswith: New file.
69562         * modules/unistr/u32-startswith: New file.
69563         * lib/unistr/u8-startswith.c: New file.
69564         * lib/unistr/u16-startswith.c: New file.
69565         * lib/unistr/u32-startswith.c: New file.
69566         * lib/unistr/u-startswith.h: New file.
69567
69568         * modules/unistr/u8-stpcpy: New file.
69569         * modules/unistr/u16-stpcpy: New file.
69570         * modules/unistr/u32-stpcpy: New file.
69571         * lib/unistr/u8-stpcpy.c: New file.
69572         * lib/unistr/u16-stpcpy.c: New file.
69573         * lib/unistr/u32-stpcpy.c: New file.
69574         * lib/unistr/u-stpcpy.h: New file.
69575
69576         * modules/unistr/u8-stpncpy: New file.
69577         * modules/unistr/u16-stpncpy: New file.
69578         * modules/unistr/u32-stpncpy: New file.
69579         * lib/unistr/u8-stpncpy.c: New file.
69580         * lib/unistr/u16-stpncpy.c: New file.
69581         * lib/unistr/u32-stpncpy.c: New file.
69582         * lib/unistr/u-stpncpy.h: New file.
69583
69584         * modules/unistr/u8-strcat: New file.
69585         * modules/unistr/u16-strcat: New file.
69586         * modules/unistr/u32-strcat: New file.
69587         * lib/unistr/u8-strcat.c: New file.
69588         * lib/unistr/u16-strcat.c: New file.
69589         * lib/unistr/u32-strcat.c: New file.
69590         * lib/unistr/u-strcat.h: New file.
69591
69592         * modules/unistr/u8-strchr: New file.
69593         * modules/unistr/u16-strchr: New file.
69594         * modules/unistr/u32-strchr: New file.
69595         * lib/unistr/u8-strchr.c: New file.
69596         * lib/unistr/u16-strchr.c: New file.
69597         * lib/unistr/u32-strchr.c: New file.
69598
69599         * modules/unistr/u8-strcmp: New file.
69600         * modules/unistr/u16-strcmp: New file.
69601         * modules/unistr/u32-strcmp: New file.
69602         * lib/unistr/u8-strcmp.c: New file.
69603         * lib/unistr/u16-strcmp.c: New file.
69604         * lib/unistr/u32-strcmp.c: New file.
69605
69606         * modules/unistr/u8-strcpy: New file.
69607         * modules/unistr/u16-strcpy: New file.
69608         * modules/unistr/u32-strcpy: New file.
69609         * lib/unistr/u8-strcpy.c: New file.
69610         * lib/unistr/u16-strcpy.c: New file.
69611         * lib/unistr/u32-strcpy.c: New file.
69612         * lib/unistr/u-strcpy.h: New file.
69613
69614         * modules/unistr/u8-strcspn: New file.
69615         * modules/unistr/u16-strcspn: New file.
69616         * modules/unistr/u32-strcspn: New file.
69617         * lib/unistr/u8-strcspn.c: New file.
69618         * lib/unistr/u16-strcspn.c: New file.
69619         * lib/unistr/u32-strcspn.c: New file.
69620         * lib/unistr/u-strcspn.h: New file.
69621
69622         * modules/unistr/u8-strdup: New file.
69623         * modules/unistr/u16-strdup: New file.
69624         * modules/unistr/u32-strdup: New file.
69625         * lib/unistr/u8-strdup.c: New file.
69626         * lib/unistr/u16-strdup.c: New file.
69627         * lib/unistr/u32-strdup.c: New file.
69628         * lib/unistr/u-strdup.h: New file.
69629
69630         * modules/unistr/u8-strlen: New file.
69631         * modules/unistr/u16-strlen: New file.
69632         * modules/unistr/u32-strlen: New file.
69633         * lib/unistr/u8-strlen.c: New file.
69634         * lib/unistr/u16-strlen.c: New file.
69635         * lib/unistr/u32-strlen.c: New file.
69636         * lib/unistr/u-strlen.h: New file.
69637
69638         * modules/unistr/u8-strmblen: New file.
69639         * modules/unistr/u16-strmblen: New file.
69640         * modules/unistr/u32-strmblen: New file.
69641         * lib/unistr/u8-strmblen.c: New file.
69642         * lib/unistr/u16-strmblen.c: New file.
69643         * lib/unistr/u32-strmblen.c: New file.
69644
69645         * modules/unistr/u8-strmbtouc: New file.
69646         * modules/unistr/u16-strmbtouc: New file.
69647         * modules/unistr/u32-strmbtouc: New file.
69648         * lib/unistr/u8-strmbtouc.c: New file.
69649         * lib/unistr/u16-strmbtouc.c: New file.
69650         * lib/unistr/u32-strmbtouc.c: New file.
69651
69652         * modules/unistr/u8-strncat: New file.
69653         * modules/unistr/u16-strncat: New file.
69654         * modules/unistr/u32-strncat: New file.
69655         * lib/unistr/u8-strncat.c: New file.
69656         * lib/unistr/u16-strncat.c: New file.
69657         * lib/unistr/u32-strncat.c: New file.
69658         * lib/unistr/u-strncat.h: New file.
69659
69660         * modules/unistr/u8-strncmp: New file.
69661         * modules/unistr/u16-strncmp: New file.
69662         * modules/unistr/u32-strncmp: New file.
69663         * lib/unistr/u8-strncmp.c: New file.
69664         * lib/unistr/u16-strncmp.c: New file.
69665         * lib/unistr/u32-strncmp.c: New file.
69666
69667         * modules/unistr/u8-strncpy: New file.
69668         * modules/unistr/u16-strncpy: New file.
69669         * modules/unistr/u32-strncpy: New file.
69670         * lib/unistr/u8-strncpy.c: New file.
69671         * lib/unistr/u16-strncpy.c: New file.
69672         * lib/unistr/u32-strncpy.c: New file.
69673         * lib/unistr/u-strncpy.h: New file.
69674
69675         * modules/unistr/u8-strnlen: New file.
69676         * modules/unistr/u16-strnlen: New file.
69677         * modules/unistr/u32-strnlen: New file.
69678         * lib/unistr/u8-strnlen.c: New file.
69679         * lib/unistr/u16-strnlen.c: New file.
69680         * lib/unistr/u32-strnlen.c: New file.
69681         * lib/unistr/u-strnlen.h: New file.
69682
69683         * modules/unistr/u8-strpbrk: New file.
69684         * modules/unistr/u16-strpbrk: New file.
69685         * modules/unistr/u32-strpbrk: New file.
69686         * lib/unistr/u8-strpbrk.c: New file.
69687         * lib/unistr/u16-strpbrk.c: New file.
69688         * lib/unistr/u32-strpbrk.c: New file.
69689         * lib/unistr/u-strpbrk.h: New file.
69690
69691         * modules/unistr/u8-strrchr: New file.
69692         * modules/unistr/u16-strrchr: New file.
69693         * modules/unistr/u32-strrchr: New file.
69694         * lib/unistr/u8-strrchr.c: New file.
69695         * lib/unistr/u16-strrchr.c: New file.
69696         * lib/unistr/u32-strrchr.c: New file.
69697
69698         * modules/unistr/u8-strspn: New file.
69699         * modules/unistr/u16-strspn: New file.
69700         * modules/unistr/u32-strspn: New file.
69701         * lib/unistr/u8-strspn.c: New file.
69702         * lib/unistr/u16-strspn.c: New file.
69703         * lib/unistr/u32-strspn.c: New file.
69704         * lib/unistr/u-strspn.h: New file.
69705
69706         * modules/unistr/u8-strstr: New file.
69707         * modules/unistr/u16-strstr: New file.
69708         * modules/unistr/u32-strstr: New file.
69709         * lib/unistr/u8-strstr.c: New file.
69710         * lib/unistr/u16-strstr.c: New file.
69711         * lib/unistr/u32-strstr.c: New file.
69712         * lib/unistr/u-strstr.h: New file.
69713
69714         * modules/unistr/u8-strtok: New file.
69715         * modules/unistr/u16-strtok: New file.
69716         * modules/unistr/u32-strtok: New file.
69717         * lib/unistr/u8-strtok.c: New file.
69718         * lib/unistr/u16-strtok.c: New file.
69719         * lib/unistr/u32-strtok.c: New file.
69720         * lib/unistr/u-strtok.h: New file.
69721
69722         * modules/unistr/u8-uctomb: New file.
69723         * modules/unistr/u16-uctomb: New file.
69724         * modules/unistr/u32-uctomb: New file.
69725         * lib/unistr/u8-uctomb.c: New file.
69726         * lib/unistr/u16-uctomb.c: New file.
69727         * lib/unistr/u32-uctomb.c: New file.
69728
69729         * MODULES.html.sh (Unicode string functions): Add the new modules.
69730
69731 2007-01-08  Bruno Haible  <bruno@clisp.org>
69732
69733         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69734         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69735         subdirectories.
69736
69737 2007-01-08  Karl Berry  <karl@gnu.org>
69738
69739         * doc/error.texi: mention that main() fns must set program_name
69740         when progname is used.
69741
69742 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69745         WCTYPE_H is empty, for the benefit of builds from non-distclean
69746         directories.  Problem reported by Eric Blake in
69747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69748
69749 2007-01-08  Bruno Haible  <bruno@clisp.org>
69750
69751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69752         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69753         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69754         PROVIDE_CANONICALIZE_FILENAME_MODE.
69755         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69756
69757 2007-01-08  Bruno Haible  <bruno@clisp.org>
69758
69759         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69760         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69761         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69762         * lib/fts.c: Likewise.
69763         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69764
69765 2006-12-25  Bruno Haible  <bruno@clisp.org>
69766
69767         * modules/utf8-ucs4-safe: New file.
69768         * lib/utf8-ucs4-safe.h: New file.
69769         * lib/unistr/utf8-ucs4-safe.c: New file.
69770
69771         * modules/utf16-ucs4-safe: New file.
69772         * lib/utf16-ucs4-safe.h: New file.
69773         * lib/unistr/utf16-ucs4-safe.c: New file.
69774
69775         * MODULES.html.sh (Unicode string functions): Add the new modules.
69776
69777 2007-01-08  Bruno Haible  <bruno@clisp.org>
69778
69779         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69780         (Depends-on): Add unitypes.
69781         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69782         (u8_mbtouc_aux): Move out to separate file.
69783         (u8_mbtouc): Use ucs4_t, uint8_t types.
69784         * lib/unistr/utf8-ucs4.c: New file.
69785
69786         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69787         (Depends-on): Add unitypes.
69788         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69789         (u16_mbtouc_aux): Move out to separate file.
69790         (u16_mbtouc): Use ucs4_t, uint16_t types.
69791         * lib/unistr/utf16-ucs4.c: New file.
69792
69793         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69794         (Depends-on): Add unitypes.
69795         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69796         (u8_uctomb_aux): Move out to separate file.
69797         (u8_uctomb): Use ucs4_t, uint8_t types.
69798         * lib/unistr/ucs4-utf8.c: New file.
69799
69800         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69801         (Depends-on): Add unitypes.
69802         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69803         (u16_uctomb_aux): Move out to separate file.
69804         (u16_uctomb): Use ucs4_t, uint16_t types.
69805         * lib/unistr/ucs4-utf16.c: New file.
69806
69807 2006-12-25  Bruno Haible  <bruno@clisp.org>
69808
69809         * modules/unitypes: New file.
69810         * lib/unitypes.h: New file.
69811         * MODULES.html.sh (func_all_modules): New section "Unicode string
69812         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69813         this section. Add unitypes.
69814
69815 2007-01-08  Bruno Haible  <bruno@clisp.org>
69816
69817         Avoid variable names that conflict with those from libtool.
69818         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69819         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69820         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69821         library_names_spec to acl_library_names_spec, hardcode_* to
69822         acl_hardcode_*.
69823         Reported by Ralf Wildenhues.
69824
69825 2007-01-08  Bruno Haible  <bruno@clisp.org>
69826
69827         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69828         definition.
69829         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69830         definition.
69831         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69832         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69833         definition.
69834         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69835         definition.
69836         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69837         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69838         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69839         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69840         definition.
69841         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
69842         definition.
69843         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
69844         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
69845         GC_USE_<algorithm>.
69846         * lib/gc-libgcrypt.c: Likewise.
69847         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
69848         * modules/gc-arctwo (configure.ac): Likewise.
69849         * modules/gc-des (configure.ac): Likewise.
69850         * modules/gc-hmac-md5 (configure.ac): Likewise.
69851         * modules/gc-hmac-sha1 (configure.ac): Likewise.
69852         * modules/gc-md2 (configure.ac): Likewise.
69853         * modules/gc-md4 (configure.ac): Likewise.
69854         * modules/gc-md5 (configure.ac): Likewise.
69855         * modules/gc-random (configure.ac): Likewise.
69856         * modules/gc-rijndael (configure.ac): Likewise.
69857         * modules/gc-sha1 (configure.ac): Likewise.
69858
69859 2007-01-08  Bruno Haible  <bruno@clisp.org>
69860
69861         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
69862         macro definition.
69863         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
69864         definition.
69865         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
69866         definition.
69867         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
69868         * modules/fcntl-safer (configure.ac): Likewise.
69869         * modules/fopen-safer (configure.ac): Likewise.
69870         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
69871         GNULIB_FWRITEERROR macro definition.
69872
69873 2007-01-08  Bruno Haible  <bruno@clisp.org>
69874
69875         * m4/gnulib-common.m4: New file.
69876         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
69877         (func_get_filelist): Add m4/gnulib-common.m4.
69878
69879 2007-01-08  Bruno Haible  <bruno@clisp.org>
69880
69881         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
69882         command.
69883
69884 2007-01-08  Jim Meyering  <jim@meyering.net>
69885
69886         Use a more robust test for a "can't happen" condition.
69887         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
69888         narrowed the st_size value.  Presuming the "can't happen" condition
69889         is true, that narrowing could conceivably convert an invalid st_size
69890         value into a valid one.  Instead, use a change based on Matthew
69891         Woehlke's original patch.
69892
69893         Slight readability improvement: use an assert-like macro
69894         in place of literal "abort ()" uses.
69895         * lib/fts.c (fts_assert): Define.
69896         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
69897         Use this macro instead of a bare 'abort'.
69898
69899 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
69900
69901         Don't worry about using IRIX 5.3's wctype.h broken definitions;
69902         simply work around them.
69903         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
69904         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
69905         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
69906         declaring.
69907         Don't bother to define as macros, since the standard doesn't require it.
69908         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
69909         longer worry about IRIX 5.3.
69910         (HAVE_WCTYPE_CTMP_BUG): Remove.
69911
69912 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
69915         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
69916         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69917         Problems reported by Georg Schwarz for IRIX 5.3.
69918
69919         * gnulib-tool (autoconf_minversion): Take the maximum version number
69920         found, not the minimum.  Problem reported by James Youngman.
69921
69922 2007-01-03  Karl Berry  <karl@gnu.org>
69923
69924         * doc/error.texi: new file, explaining interaction with progname.
69925         * doc/gnulib.texi: include it.  Update copyright.
69926
69927 2007-01-03  Simon Josefsson  <simon@josefsson.org>
69928
69929         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
69930         AC_CANONICAL_HOST, to improve autobuild outputs.
69931
69932 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
69933             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69934
69935         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
69936         sockets, server sockets, and other file descriptors.  Count errors
69937         to compute the return value.  Reorder the code a bit to be easier
69938         to follow.  Don't set event bits that were not requested (except
69939         POLLERR and POLLHUP).
69940
69941 2007-01-01  Bruno Haible  <bruno@clisp.org>
69942
69943         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
69944
69945 2007-01-03  Jim Meyering  <jim@meyering.net>
69946
69947         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
69948
69949 2007-01-02  Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/settime (Include): Require timespec.h.
69952         * modules/nanosleep (Include): Likewise.
69953
69954 2007-01-01  Bruno Haible  <bruno@clisp.org>
69955
69956         * gnulib-tool (func_emit_copyright_notice): Bump year.
69957         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
69958
69959 2007-01-01  Bruno Haible  <bruno@clisp.org>
69960
69961         Improve support for OpenBSD.
69962         * build-aux/config.rpath (libname_spec): Export.
69963         (library_names_spec): New variable. Export.
69964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
69965         library_names_spec from the config.rpath output. Locate shared library
69966         through the name pattern in library_names_spec.
69967
69968 2007-01-01  Eric Blake  <ebb9@byu.net>
69969
69970         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
69971
69972 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
69973
69974         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
69975         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
69976         assume the C locale, and avoid an "eval" that could cause trouble.
69977         Problem with SORT reported by Bob Proulx.
69978
69979         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
69980         Define.  Trivial patch from Henning Nielsen Lund, originally
69981         sent to bug-grep@gnu.org today.
69982
69983 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
69986         struct stat.  Problem reported by Henning Nielsen Lund.
69987         * lib/acl.c: Include acl.h first, to check interface.  Don't
69988         bother to include sys/types.h and sys/stat.h again.
69989
69990 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         Import the following change from libc; problem reported by
69993         Sven Verdoolaege.
69994
69995         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
69996
69997         [BZ #1373]
69998         * lib/argp.h: Remove __NTH for __argp_usage inline function.
69999
70000 2006-12-28  Jim Meyering  <jim@meyering.net>
70001
70002         * build-aux/announce-gen: Do not assume that the package
70003         builds any of tar.gz, tar.bz2, and .xdelta files.
70004         Suggestion from Simon Josefsson.
70005
70006 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70007
70008         * modules/announce-gen: New file.
70009
70010 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70013         handles its gotchas now.
70014         * lib/mbswidth.c: Likewise.
70015         * lib/wcwidth.h: Likewise.
70016         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70017         and iswcntrl; the wctype module does this stuff now.
70018         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70020         * modules/mbchar (Depends-on): Add wctype.
70021         * modules/mbswidth (Depends-on): Likewise.
70022         * modules/wcwidth (Depends-on): Likewise.
70023
70024 2006-12-27  Eric Blake  <ebb9@byu.net>
70025
70026         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70027         module uses more than what <wctype.h> is required to provide.
70028
70029 2006-12-26  Eric Blake  <ebb9@byu.net>
70030
70031         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70032
70033 2006-12-26  Eric Blake  <ebb9@byu.net>
70034
70035         * modules/absolute-header: New module.
70036         * modules/fcntl (Depends-on): Depend on it.
70037         * modules/inttypes (Depends-on): Likewise.
70038         * modules/stdint (Depends-on): Likewise.
70039         * modules/sys_stat (Depends-on): Likewise.
70040         * modules/wctype (Depends-on): Likewise.
70041         * MODULES.html.sh (Support for building libraries and
70042         executables): Document it.
70043
70044 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * gnulib-tool (SED): Remove, undoing previous change.
70047         The problem was that it broke coreutils on Solaris, because
70048         "sed --posix" leaked into a makefile.
70049         (sed): New alias, if 'alias' and GNU sed.
70050
70051 2006-12-24  Jim Meyering  <jim@meyering.net>
70052
70053         Work around an fchownat bug in glibc-2.4:
70054         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70055         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70056         in spite of the -P option.
70057         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70058         New macros.
70059         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70060         * modules/openat (Files): Add lib/fchownat.c.
70061         * lib/openat.c (fchownat): Don't define here.  Move to...
70062         * lib/fchownat.c: ...this new file.
70063
70064 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         Fix bug reported by Bruno Haible in
70067         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70068         where quotearg.c didn't compile on Mac OS X 10.2 because it
70069         lacks <wchar.h> and wint_t.
70070         * lib/wctype_.h (__wctype_wint_t): New type.
70071         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70072         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70073         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70074         Arg is now of type __wctype_wint_t, not wint_t.
70075         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70076         substitute HAVE_WINT_T.
70077         * modules/wctype (Files): Add m4/wint_t.m4.
70078         (wctype.h): Substitute HAVE_WINT_T.
70079
70080 2006-12-23  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70083
70084 2006-12-23  Bruno Haible  <bruno@clisp.org>
70085
70086         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70087         S_ISLNK.
70088         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70089         mingw.
70090
70091 2006-12-22  Bruno Haible  <bruno@clisp.org>
70092
70093         * lib/copy-file.c: Include acl.h.
70094         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70095         Close the file descriptors only after being done with copy_acl.
70096         * modules/copy-file (Depends-on): Add acl.
70097
70098 2006-12-22  Bruno Haible  <bruno@clisp.org>
70099
70100         * gnulib-tool (SED): New variable.
70101         Use $SED instead of sed everywhere.
70102
70103 2006-12-22  Bruno Haible  <bruno@clisp.org>
70104
70105         * modules/no-c++: New file.
70106         * m4/no-c++.m4: New file.
70107         * MODULES.html.sh (Support for building libraries and executables):
70108         Add no-c++.
70109
70110 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70113         Include <limits.h>, and use its INT_MAX to rewrite the
70114         j loop so that it does not overflow 'int'.  Problem reported by
70115         Ralf Wildenhues in
70116         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70117         Play it safe by shifting left by 1 rather than multiplying by 2,
70118         as GCC is less likely to optimize this away when the value
70119         is signed (when it assumes overflow leads to undefined behavior).
70120         Also, don't assume time_t uses two's complement.
70121
70122 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70123
70124         * MODULES.html.sh: New module wctype.
70125         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70126         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70127         <wctype.h>, since the new wctype module should fix this.
70128         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70129         the wctype module should arrange for it.
70130         * lib/regex_internal.h: Likewise.
70131         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70132         since the wctype module should handle this now.
70133         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70134         * modules/fnmatch (Depends-on): Add wctype.
70135         * modules/quotearg (Depends-on): Likewise.
70136         * modules/regex (Depends-on): Likewise.
70137
70138 2006-12-19  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70141         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70142
70143 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70144
70145         * modules/savewd (Depends-on): Fix dependency on fcntl.
70146
70147 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70148
70149         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70150         conforms to C99, rather than relying on the user's environment
70151         setting of STDINT_H.
70152
70153 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70154         and Eric Blake  <ebb9@byu.net>
70155
70156         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70157         This is more consistent with the other defines here.
70158         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70159         Port to z/OS.  Problem reported by Paul Gilmartin.
70160         Change local vars to use gl_ prefix rather than ac_.
70161         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70162         with other defines.
70163         * modules/double-slash-root: New module.
70164         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70165         (Depends-on): Add double-slash-root.
70166         * MODULES.html.sh (File system functions): Mention new module.
70167
70168 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70169
70170         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70171         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70172         This is for the benefit of gzip, which doesn't do i18n.
70173
70174 2006-12-12  Jim Meyering  <jim@meyering.net>
70175
70176         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70177         Reported by Andreas Schwab <schwab@suse.de>.
70178
70179 2006-12-12  Bruno Haible  <bruno@clisp.org>
70180
70181         Merge these changes.
70182         2006-09-05  Bruno Haible  <bruno@clisp.org>
70183         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70184         iconv_alloc succeeded.
70185         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70186         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70187         test for " && dest " at the end - dest is always != NULL there. Call
70188         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70189         with 2xNULL arguments, also to flush the state storage. Handle the
70190         IRIX iconv behaviour. Realloc the final result, to throw away unused
70191         memory.
70192
70193 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70194
70195         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70196         and fchmodat unconditionally, since glibc 2.4 has them.
70197         Problem reported by Arkadiusz Miskiewicz.
70198
70199 2006-12-10  Bruno Haible  <bruno@clisp.org>
70200
70201         * gnulib-tool (func_import): Show the include files only for those
70202         modules that are copied and specified.
70203         Reported by Karl Berry.
70204
70205 2006-12-08  Jim Meyering  <jim@meyering.net>
70206
70207         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70208         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70209
70210         * build-aux/announce-gen: Add two new options, both optional:
70211         --bootstrap-tools=TOOL_LIST
70212               a comma-separated list of tools, e.g.,
70213               autoconf,automake,bison,gnulib
70214         --gnulib-snapshot-date=DATE
70215               if gnulib is in the bootstrap tool list,
70216               then report this as the snapshot date.
70217               If not specified, use the current date/time.
70218               If you specify a date here, be sure it's UTC.
70219
70220 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70221
70222         * tests/test-argp-2.sh: Fix test to match actual output.
70223         (func_compare): Fix sed script to be portable.
70224
70225 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70228         workaround for this case.  It is not autoconfigured now; offhand
70229         it's hard to see how to autoconfigure it.
70230
70231 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70234         a directory that is about to be chowned.  Such a directory's
70235         initial file permissions should permit the owner only and this
70236         should not be changed until after the chown, since the group and
70237         other bits would be incorrect if they granted permission before
70238         the chown.
70239
70240         Fix porting problem for iswctype reported by Georg Schwarz in:
70241         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70242         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70243         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70245         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70246
70247 2006-12-03  Jim Meyering  <jim@meyering.net>
70248
70249         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70250         p->fts_statp may not yet be defined.
70251         (fts_read): Instead, set it in the caller, once p->fts_statp is
70252         sure to be defined, and corresponds to a top-level directory.
70253         This bug made du -x fail.  Here's the coreutils test case:
70254         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70255         Reported by Mike Frysinger.
70256
70257 2006-12-01  Jim Meyering  <jim@meyering.net>
70258
70259         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70260         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70261         Reported by Simon Josefsson.
70262
70263 2006-11-30  Jim Meyering  <jim@meyering.net>
70264
70265         * m4/warning.m4: Use the all-permissive copyright notice
70266         recommended by RMS (rather than LGPL).
70267         * m4/vararrays.m4: Likewise.
70268         * m4/flexmember.m4: Likewise.
70269
70270 2006-11-29  Bruno Haible  <bruno@clisp.org>
70271
70272         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70273         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70274         using +=.
70275         Reported by Simon Josefsson <simon@josefsson.org>.
70276
70277 2006-11-28  James Youngman <jay@gnu.org>
70278
70279         * README: Advise users that they might find the bug-gnulib@gnu.org
70280         and autotools-announce@gnu.org mailing lists useful.
70281
70282 2006-11-28  Bruno Haible  <bruno@clisp.org>
70283
70284         * m4/ptrdiff_max.m4: Remove file.
70285
70286 2006-11-21  Bruno Haible  <bruno@clisp.org>
70287
70288         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70289         _AC_COMPUTE_INT.
70290         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70291         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70292         _AC_COMPUTE_INT.
70293         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70294         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70295         _AC_COMPUTE_INT.
70296         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70297
70298 2006-11-28  Jim Meyering  <jim@meyering.net>
70299
70300         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70301         warning from "gcc -Wshadow" about shadowing the builtin.
70302
70303 2006-11-27  Bruno Haible  <bruno@clisp.org>
70304
70305         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70306         _AC_COMPUTE_INT.
70307         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70308
70309 2006-11-27  Bruno Haible  <bruno@clisp.org>
70310             Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70313
70314 2006-11-26  Bruno Haible  <bruno@clisp.org>
70315
70316         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70317         noinst_LTLIBRARIES.
70318
70319 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70320             Bruno Haible  <bruno@clisp.org>
70321
70322         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70323         if compiling with "gcc -ansi".
70324
70325 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         Fix some incompatibilities with gcc -ansi -pedantic.
70328         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70329         if compiling pedantically with GCC, unless it's C99 or later.
70330         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70331         it mishandles gcc -ansi -pedantic as well.
70332         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70333         if gcc -pedantic.
70334         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70335         initializers for struct if -pedantic, unless it's C99 or later.
70336
70337 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70338
70339         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70340         Don't close an fd more than once. Identical atimes indicate
70341         success, not failure.
70342
70343 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70344
70345         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70346
70347 2006-11-23  Jim Meyering  <jim@meyering.net>
70348
70349         * build-aux/announce-gen: New file.  From coreutils.
70350
70351 2006-11-22  Jim Meyering  <jim@meyering.net>
70352
70353         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70354         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70355         (fts_read): Use a temporary to narrow the overused st_size member
70356         before using it in a switch statement.  Reported by Matthew Woehlke.
70357
70358         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70359         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70360
70361 2006-11-20  Bruno Haible  <bruno@clisp.org>
70362
70363         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70364         changequote instead of pairs of brackets.
70365         Reported by Andreas Schwab <schwab@suse.de>.
70366
70367 2006-11-21  Jim Meyering  <jim@meyering.net>
70368
70369         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70370         so as to remain compatible with older compilers.
70371         Patch from Michael Deutschmann.
70372
70373 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * MODULES.html.sh (File system functions): Add openat.
70376
70377         * lib/openat.h (rpl_fstatat): New macro, if
70378         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70379         (fstatat): Define to rpl_fstatat under the same conditions,
70380         unless COMPILING_FSTATAT.
70381         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70382         seems to have the bug.
70383         * lib/fstatat.c: New file.
70384         * modules/openat (Files): Add it.
70385
70386 2006-11-20  Bruno Haible  <bruno@clisp.org>
70387
70388         * Makefile: New file.
70389
70390 2006-11-20  Jim Meyering  <jim@meyering.net>
70391
70392         The beginnings of syntax-related checks for gnulib.
70393         * lib/Makefile: New file.
70394         * lib/t-idcache: New script.  Ensure that the two halves of
70395         idcache.c stay in sync.
70396
70397         * lib/idcache.c: Adjust comments in user- and group- portions to
70398         be more accurate, and to be consistent with one another.
70399
70400 2006-11-20  Jim Meyering  <jim@meyering.net>
70401
70402         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70403         continue using the flexible array member (thus, this module performs
70404         half as many malloc calls), with the addition that...
70405         (getgroup, getuser): Consistently record a non-match via an empty
70406         "name" string, and map an empty string match to a NULL return value.
70407         * modules/idcache (Depends-on): Re-add flexmember.
70408
70409         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70410         (getuidbyname, getgroup, getgidbyname): Likewise.
70411
70412         Use cleaner syntax: NULL rather than 0.
70413         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70414
70415 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70418         It mishandled the case where the group was missing.
70419         Problem reported by Greg Schafer.
70420         * modules/idcache: Likewise.
70421
70422 2006-11-18  Jim Meyering  <jim@meyering.net>
70423
70424         * check-module (%exempt_header): Add exception for some
70425         conditionally-included headers.
70426
70427         * modules/i-ring (Depends-on): Add verify.
70428         (License): Change to LGPL.
70429
70430 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70433         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70434         and inttostr.h.  Use snprintf rather than uinttostr, so that
70435         LGPLed code doesn't depend on GPLed.
70436
70437 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70438
70439         * modules/inline (License): Change from GPL to LGPL.
70440
70441 2006-11-17  Jim Meyering  <jim@meyering.net>
70442
70443         * modules/d-type (License): Switch to LGPL.
70444
70445 2006-11-15  Bruno Haible  <bruno@clisp.org>
70446
70447         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70448
70449 2006-11-15  Eric Blake  <ebb9@byu.net>
70450
70451         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70452         the module dependency.
70453
70454 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70455             Bruno Haible  <bruno@clisp.org>
70456
70457         * gnulib-tool (func_create_testdir): Add license consistency check.
70458
70459 2006-11-15  Eric Blake  <ebb9@byu.net>
70460
70461         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70462         random "(cached)" in configure output.
70463
70464 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70465
70466         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70467         test for conforming inttypes.h is both announced and cached.
70468
70469         * MODULES.html.sh (seen_modules, seen_files): New variables.
70470         (func_module): Rewrite to use a few less gnulib-tool and sed
70471         invocations.  Avoid a couple of quadratic algorithms for ...
70472         (missed_modules, missed_files): ... these, with ...
70473         (func_append, func_tmpdir): ... these new functions, from
70474         gnulib-tool.  Analogously, install traps for cleanup.
70475
70476         * tests/test-gc.c (main): Remove unused variables.
70477         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70478
70479 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70480
70481         * modules/inttostr (License): Change to LGPL.
70482
70483 2006-11-14  Eric Blake  <ebb9@byu.net>
70484
70485         * modules/tempname (License): Change to LGPL.
70486
70487 2006-11-14  Eric Blake  <ebb9@byu.net>
70488
70489         * doc/functions.texi (Function Portability): *printf functions on
70490         Cygwin now understand all POSIX size specifiers.
70491
70492 2006-11-14  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/c-ctype (License): Change to LGPL.
70495
70496 2006-11-12  Bruno Haible  <bruno@clisp.org>
70497
70498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70499         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70500         for GNOME libraries, for which the include files are installed in
70501         subdirectories of $prefix/include.
70502
70503 2006-11-12  Bruno Haible  <bruno@clisp.org>
70504
70505         * m4/lib-link.m4: Require at least autoconf-2.54.
70506         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70507         name to underscores for the --with option.
70508
70509 2006-11-13  Bruno Haible  <bruno@clisp.org>
70510
70511         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70512         the tests directory.
70513         Reported by Ralf Wildenhues.
70514
70515 2006-11-13  Bruno Haible  <bruno@clisp.org>
70516
70517         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70518         (func_emit_initmacro_end): Undo the override here.
70519         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70520         Works around the famous automake error in coreutils.
70521
70522 2006-11-13  Eric Blake  <ebb9@byu.net>
70523
70524         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70525         element, not its node.
70526
70527 2006-11-12  Bruno Haible  <bruno@clisp.org>
70528
70529         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70530         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70531
70532 2006-11-12  Bruno Haible  <bruno@clisp.org>
70533
70534         * gnulib-tool: New option --local-symlink.
70535         (func_usage): Document it.
70536         (lsymbolic): New variable.
70537         (func_import, func_create_testdir): If --symlink was not specified,
70538         test whether --local-symlink was specified and the file comes from
70539         the local_gnulib_dir.
70540
70541 2006-11-12  Bruno Haible  <bruno@clisp.org>
70542
70543         * gnulib-tool (func_ln): New function.
70544         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70545
70546 2006-11-12  Bruno Haible  <bruno@clisp.org>
70547
70548         Finish support for source files in subdirectories.
70549         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70550         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70551         AUTOMAKE_OPTIONS.
70552         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70553
70554 2006-11-12  Bruno Haible  <bruno@clisp.org>
70555
70556         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70557         EXTRA_lib_SOURCES augmentation.
70558         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70559
70560 2006-11-12  Jim Meyering  <jim@meyering.net>
70561
70562         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70563         file descriptors.  This also averts a failure on systems with
70564         native openat support when a traversed directory lacks "x" access.
70565         * lib/fts_.h: Include "i-ring.h"
70566         (struct FTS) [fts_fd_ring]: New member.
70567         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70568         (FCHDIR): Add parentheses.
70569         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70570         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70571         When descending, rather than simply closing the previous
70572         fts_cwd_fd value, push that file descriptor onto the ring.
70573         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70574         (fts_open): Initialize the new fd_ring member.
70575         (fts_close): Clear the ring.
70576         (fts_safe_changedir): When possible, use our new fd_ring to skip
70577         the diropen and fstat and dev/ino comparison that would normally
70578         accompany a virtual `chdir ("..")'.
70579
70580         * modules/fts (Depends-on): Add i-ring.
70581         * modules/i-ring: New module.
70582         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70583         * m4/i-ring.m4: New file.
70584
70585 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70586
70587         * gnulib-tool (func_create_testdir): Fix replacement of
70588         `build-aux' in configure.ac.  Run autotools in gltests
70589         subdirectory.
70590         (func_create_testdir, func_create_megatestdir, test): There is
70591         no need for '--force' in most autotool invocations in a new
70592         tree.  Actually fail the whole test if any of the tools, or the
70593         configure or make stages fail.
70594
70595         Sync from Automake.
70596         * build-aux/gnupload: Revert last change.  Add pointer to upload
70597         instructions of the GNU Maintenance Instructions.
70598         Suggestion by Karl Berry.
70599
70600 2006-11-10  Jim Meyering  <jim@meyering.net>
70601
70602         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70603
70604 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70607         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70608         (bind_textdomain_codeset) [! ENABLE_NLS]:
70609         Evaluate all the arguments.  That way, callers get compatible behavior
70610         if the arguments have side effects.  Also, it avoids some GCC
70611         diagnostics in some cases; Joel E. Denny reported problems when Bison
70612         was configured with --enable-gcc-warnigs.
70613
70614 2006-11-10  Jim Meyering  <jim@meyering.net>
70615
70616         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70617         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70618         account.
70619
70620 2006-11-10  Jim Meyering  <jim@meyering.net>
70621
70622         * modules/inline: New file/module.
70623         * modules/xalloc (Files): Remove m4/inline.m4.
70624         (Depends-on): Add inline, instead.
70625         * modules/oset: Likewise.
70626         * modules/list: Likewise.
70627
70628 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70631         Problem reported by Matthew Woehlke.
70632
70633 2006-11-09  Bruno Haible  <bruno@clisp.org>
70634
70635         * lib/tempname.c (gen_tempname): Remove variant that invokes
70636         __gen_tempname.
70637         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70638         __gen_tempname.
70639
70640 2006-11-08  Bruno Haible  <bruno@clisp.org>
70641
70642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70643         to 'yes' instead of 'cross-compiling'.
70644
70645 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * lib/quotearg.h (quotearg_free): New decl.
70648         * lib/quotearg.c (quotearg_free): New function.
70649         (slot0, nslots, slotvec0, slotvec):
70650         Now file-scope so that quotearg_free can get at them.
70651
70652 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70653
70654         Sync from Automake.
70655         * build-aux/gnupload: Add missing 'gnu' to example URL.
70656         Report by Karl Berry.
70657
70658 2006-11-08  Bruno Haible  <bruno@clisp.org>
70659
70660         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70661         Suggested by Paul Eggert.
70662
70663 2006-11-08  Jim Meyering  <jim@meyering.net>
70664
70665         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70666         It's already included if !_LIBC.
70667         (fts_safe_changedir): Add a comment.
70668
70669 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70670
70671         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70672         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70673         Matthew Woehlke.
70674
70675         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70676         definitions up, to avoid colliding with change below.
70677         (static_inline) [HAVE_INLINE]: New macro.
70678         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70679         Provide extern decls when !HAVE_INLINE.  Do not define unless
70680         static_inline is defined, either by us or by xmalloc.c.  Use
70681         static_inline rather than static inline.
70682         (XCALLOC): Optimize sizeof(T) = 1 case.
70683         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70684
70685 2006-11-07  Bruno Haible  <bruno@clisp.org>
70686
70687         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70688         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70689         AC_C_INLINE.
70690         * modules/xalloc (Files): Add m4/inline.m4.
70691
70692 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70693
70694         * README: Fix typo.
70695         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70696         (Miscellanous Notes): ...from this.
70697
70698 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70701         Mention that offsetof should be used instead of sizeof.
70702         From Bruno Haible.
70703
70704 2006-11-07  Bruno Haible  <bruno@clisp.org>
70705
70706         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70707
70708 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70711         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70712         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70713         (gl_tree_add_before, gl_tree_add_after):
70714         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70715         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70716         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70717         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70718         (gl_linked_add_after, gl_linked_add_at): Likewise.
70719         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70720         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70721         (gl_tree_add_before, gl_tree_add_after): Likewise.
70722         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70723         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70724         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70725
70726 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70727
70728         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70729
70730 2006-11-06  Bruno Haible  <bruno@clisp.org>
70731
70732         * m4/inline.m4: New file.
70733         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70734         * modules/list (Files): Add m4/inline.m4.
70735         * modules/oset (Files): Likewise.
70736
70737 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * lib/idcache.c: Include <stddef.h>, for offsetof.
70740         (struct userid.name): Change from char * to a flexible array member.
70741         All uses changed.
70742         * modules/idcache (Depends-on): Add flexmember.
70743
70744         * MODULES.html.sh (Core language properties): New module flexmember.
70745         * modules/flexmember, m4/flexmember.m4: New files.
70746
70747         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70748         inline functions that are identical with the old xnmalloc_inline,
70749         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70750         that we can avoid some unnecessary integer multiplications and
70751         divisions in the common case where the element size is known at
70752         compile time.
70753         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70754         needed.
70755         (xnboundedmalloc): Remove.
70756         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70757         arguments, for consistency with rest of this header.
70758         (xcharalloc): Rewrite using XNMALLOC.
70759         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70760         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70761         versions have been moved to lib/xalloc.h and renamed to be the
70762         non-*_inline versions.
70763         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70764         and xnrealloc functions, since those functions are now inline and
70765         now call us.
70766         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70767         renaming described above.
70768         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70769         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70770         captures the dependency in AC_C_INLINE.
70771
70772         New module canonicalize-lgpl, proposed by Charles Wilson in
70773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70774         with a few small changes afterwards.
70775         * MODULES.html.sh (File system functions): New module
70776         canonicalize-lgpl.
70777         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70778         and canonicalize_file_name.
70779         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70780         * modules/canonicalize-lgpl: New files.
70781
70782 2006-11-05  Bruno Haible  <bruno@clisp.org>
70783
70784         * gnulib-tool (func_import, func_create_testdir): Create directories
70785         also for files in subdirectories of lib/.
70786
70787 2006-11-05  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70790         ANSI C compliant.
70791
70792 2006-11-03  Bruno Haible  <bruno@clisp.org>
70793
70794         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70795         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70796         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70797         (xnboundedmalloc): New inline function.
70798         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70799         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70800         xmalloc.
70801         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70802         xmalloc.
70803         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70804         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70805         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70806         xmalloc.
70807         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70808         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70809         xmalloc.
70810         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70811         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70812         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70813         xmalloc.
70814         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70815         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70816         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70817         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70818         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70819         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70820         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70821
70822 2006-11-03  Bruno Haible  <bruno@clisp.org>
70823
70824         * lib/c-ctype.h [C++]: Define functions without name mangling.
70825         * lib/fwriteerror.h [C++]: Likewise.
70826         * lib/gcd.h [C++]: Likewise.
70827         * lib/linebreak.h [C++]: Likewise.
70828
70829 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70832         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70833         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70834         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70835         Check for functions and headers just once.
70836         Check for declaration of canonicalize_file_name.
70837         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70838
70839 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70840
70841         * gnulib-tool (func_import): Fix typo in actioncmd.
70842
70843 2006-11-02  Bruno Haible  <bruno@clisp.org>
70844
70845         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
70846         newline sequence in the Makefile.am snippet as a space, like "make"
70847         does.
70848         Reported by Roger Persson <perrog@gmail.com>.
70849
70850 2006-11-01  Bruno Haible  <bruno@clisp.org>
70851
70852         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
70853         already declared in <string.h>.
70854         * lib/strcase.h (strncasecmp): Don't declare it if yes.
70855
70856 2006-11-01  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
70859         * lib/strcase.h: Include <string.h>.
70860         (strcasecmp): Define to rpl_strcasecmp here.
70861
70862 2006-11-01  Bruno Haible  <bruno@clisp.org>
70863
70864         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
70865
70866 2006-11-01  Eric Blake  <ebb9@byu.net>
70867
70868         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
70869
70870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
70871
70872 2006-10-29  Bruno Haible  <bruno@clisp.org>
70873
70874         Make it compile in C++ mode.
70875         * lib/full-write.c (full_rw): Add a cast.
70876
70877 2006-11-01  Bruno Haible  <bruno@clisp.org>
70878
70879         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
70880         be POSIX compliant.
70881         Reported by Roger Persson <perrog@gmail.com>.
70882
70883 2006-11-01  Eric Blake  <ebb9@byu.net>
70884
70885         * lib/getopt_.h: Fix comments.
70886
70887 2006-10-31  Eric Blake  <ebb9@byu.net>
70888
70889         * modules/tmpdir (Depends-on): Add sys_stat.
70890         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
70891         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
70892         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
70893         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
70894         tempname.
70895
70896 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
70897
70898         Avoid some C++ diagnostics reported by Bruno Haible.
70899         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
70900         xmalloc.
70901         (quotearg_alloc): Use xcharalloc rather than xmalloc.
70902         (struct slotvec): Move to top level.
70903         (quotearg_n_options): Rewrite to avoid xmalloc.
70904         * lib/xalloc.h (xcharalloc): New function.
70905         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
70906         [defined __cplusplus]: Add function template that provides result
70907         type propagation.  This part of the change is from Bruno Haible.
70908
70909 2006-10-29  Bruno Haible  <bruno@clisp.org>
70910
70911         Make it compile in C++ mode.
70912         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
70913         * lib/strnlen1.c (strnlen1): Cast memchr result.
70914         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
70915         * lib/clean-temp.c (string_equals, string_hash): Add casts.
70916         (create_temp_dir): Rename local variable 'template'.
70917         (compile_csharp_using_sscli): Add cast.
70918         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
70919         * lib/findprog.c (find_in_path): Likewise.
70920         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
70921         * lib/wait-process.c (register_slave_subprocess): Likewise.
70922
70923 2006-10-22  Bruno Haible  <bruno@clisp.org>
70924
70925         * modules/tsearch: New file.
70926         * lib/tsearch.h: New file.
70927         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
70928         * m4/tsearch.m4: New file.
70929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
70930
70931 2006-10-29  Eric Blake  <ebb9@byu.net>
70932
70933         * lib/arcfour.c: Assume config.h.
70934         * lib/arctwo.c: Likewise.
70935         * lib/base64.c: Likewise.
70936         * lib/check-version.c: Likewise.
70937         * lib/crc.c: Likewise.
70938         * lib/des.c: Likewise.
70939         * lib/gc-gnulib.c: Likewise.
70940         * lib/gc-libgcrypt.c: Likewise.
70941         * lib/gc-pbkdf2-sha1.c: Likewise.
70942         * lib/getaddrinfo.c: Likewise.
70943         * lib/getdelim.c: Likewise.
70944         * lib/getline.c: Likewise.
70945         * lib/hmac-md5.c: Likewise.
70946         * lib/hmac-sha1.c: Likewise.
70947         * lib/iconvme.c: Likewise.
70948         * lib/md2.c: Likewise.
70949         * lib/md4.c: Likewise.
70950         * lib/memxor.c: Likewise.
70951         * lib/read-file.c: Likewise.
70952         * lib/readline.c: Likewise.
70953         * lib/rijndael-alg-fst.c: Likewise.
70954         * lib/rijndael-api-fst.c: Likewise.
70955         * lib/xgetdomainname.c: Likewise.
70956
70957 2006-10-28  Eric Blake  <ebb9@byu.net>
70958
70959         * lib/xstrndup.c: Assume config.h.
70960
70961 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
70964         stat-macros.h is now for our own macros, whereas stat_h is for
70965         macros in the <sys/stat.h> name space.
70966         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
70967         (STAT_MACROS_H): Remove.
70968         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
70969         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
70970         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
70971         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
70972         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
70973         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
70974         Move these macros to ...
70975         * lib/stat_.h: here.  Don't include stat-macros.h.
70976         * lib/canonicalize.c: Don't include stat-macros.h.
70977         * lib/chown.c: Likewise.
70978         * lib/euidaccess.c: Likewise.
70979         * lib/file-type.c: Likewise.
70980         * lib/filemode.c: Likewise.
70981         * lib/glob.c: Likewise.
70982         * lib/isapipe.c: Likewise.
70983         * lib/lchown.c: Likewise.
70984         * lib/lstat.c: Likewise.
70985         * lib/mkdir-p.c: Likewise.
70986         * lib/rmdir.c: Likewise.
70987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
70988         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
70989         unless mkdir isn't declared, to speed up 'configure'.
70990         Always create sys/stat.h, since it's unlikely any real sys/stat.h
70991         would define all the S_* symbols.
70992         * modules/canonicalize (Depends-on):
70993         Depend on sys_stat, not stat-macros.
70994         * modules/chown: Likewise.
70995         * modules/euidaccess: Likewise.
70996         * modules/filemode: Likewise.
70997         * modules/file-type: Likewise.
70998         * modules/glob: Likewise.
70999         * modules/isapipe: Likewise.
71000         * modules/lchown: Likewise.
71001         * modules/lstat: Likewise.
71002         * modules/mkancesdirs: Likewise.
71003         * modules/rmdir: Likewise.
71004         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71005         * modules/modechange: Likewise.
71006         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71007         (configure.ac): Remove gl_STAT_MACROS.
71008         * modules/sys_stat (Depends-on): Remove stat-macros.
71009
71010 2006-10-27  Bruno Haible  <bruno@clisp.org>
71011
71012         * m4/signed.m4: Remove file.
71013         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71014         invocation.
71015         * modules/vasnprintf (Files): Remove m4/signed.m4.
71016
71017 2006-10-27  Bruno Haible  <bruno@clisp.org>
71018
71019         Update to GNU gettext 0.16.
71020         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71021         m4/inttypes-h.m4, m4/signed.m4.
71022         * m4/gettext.m4: Update to GNU gettext 0.16.
71023         * m4/intl.m4: New file, from GNU gettext.
71024         * m4/intldir.m4: New file, from GNU gettext.
71025         * config/srclist.txt: Update
71026
71027 2006-10-27  Eric Blake  <ebb9@byu.net>
71028
71029         * MODULES.html.sh: Document tempname.
71030         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71031         dependencies.
71032         (Files): Move lib/tempname.c...
71033         * modules/tempname: ...to this new module.
71034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71035         (gl_PREREQ_TEMPNAME): Move...
71036         * m4/tempname.m4: ...to this new file.
71037         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71038         * modules/sys_stat (Depends-on): Add stat-macros.
71039         * lib/stat_.h (includes): Pick up stat macros.
71040         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71041         if stat macros are broken.
71042         * lib/tempname.c (includes): No need to include "stat-macros.h".
71043         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71044         (direxists, __path_search) [!_LIBC]: Don't compile these in
71045         gnulib; the tmpdir module covers that.
71046         * lib/tempname.h: New file.
71047
71048 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * COPYING: Explain how gnulib-tool converts licence headers.
71051         Almost all wording by Eric Blake.
71052
71053 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71054
71055         * lib/mbchar.h (is_basic_table): Make read-only.
71056         * lib/mbchar.c (is_basic_table): Likewise.
71057         Reported by John Darrington.
71058
71059 2006-10-25  Bruno Haible  <bruno@clisp.org>
71060
71061         * lib/progname.h (set_program_name): Undefine before defining.
71062
71063 2006-10-25  Bruno Haible  <bruno@clisp.org>
71064
71065         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71066         false for non-gcc C++ compilers.
71067         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71068
71069 2006-10-24  Bruno Haible  <bruno@clisp.org>
71070
71071         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71072         iconv implementations like Irix iconv.
71073
71074 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * modules/vararrays: New file.
71077         * m4/vararrays.m4: New file, taken from diffutils.
71078         * MODULES.html.sh: New module vararrays.
71079
71080 2006-10-24  Karl Berry  <karl@gnu.org>
71081
71082         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71083         Don't call GNU Unix.
71084
71085 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71086
71087         * users.txt: Add Libtool.
71088
71089         Sync from Libtool:
71090
71091         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71092
71093         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71094         to gnulib's policy of including config.h unconditionally.
71095
71096 2006-10-24  Bruno Haible  <bruno@clisp.org>
71097
71098         * modules/wcwidth (Files): Add m4/wint_t.m4.
71099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71100         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71101
71102 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71105         to pacify GCC with some -W flags enabled.  Problem reported by
71106         Bruno Haible.
71107
71108 2006-10-24  Jim Meyering  <jim@meyering.net>
71109
71110         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71111         Reported by Karl Berry.
71112
71113 2006-10-23  Bruno Haible  <bruno@clisp.org>
71114
71115         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71116
71117 2006-10-24  Bruno Haible  <bruno@clisp.org>
71118
71119         * lib/gl_list.h: Use C comment style, not C++ comment style.
71120
71121 2006-10-23  Eric Blake  <ebb9@byu.net>
71122
71123         * lib/getaddrinfo.c (includes): Add missing include.
71124
71125 2006-10-23  Bruno Haible  <bruno@clisp.org>
71126             Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         Ability to rename obstack_free.
71129         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71130         obstack_free.
71131         (obstack_free): Invoke the __obstack_free macro.
71132         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71133
71134 2006-10-23  Bruno Haible  <bruno@clisp.org>
71135             Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71138         __argc, __argv from the declaration. (They are defined as macros on
71139         mingw.)
71140
71141 2006-10-22  Bruno Haible  <bruno@clisp.org>
71142
71143         * doc/gnulib-intro.texi: New file.
71144         * doc/gnulib.texi: Include it.
71145
71146 2006-10-21  Bruno Haible  <bruno@clisp.org>
71147
71148         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71149         "Introduction", "Miscellanous Notes", "Particular Modules".
71150
71151 2006-10-21  Bruno Haible  <bruno@clisp.org>
71152
71153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71154         Change mostlyclean-local rule to avoid sh syntax error from bash
71155         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71156
71157 2006-10-23  Jim Meyering  <jim@meyering.net>
71158
71159         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71160         in place of snprintf.
71161
71162         * modules/inttostr (Files): Add lib/uinttostr.c.
71163         * lib/uinttostr.c (inttostr): New file/function.
71164         * lib/inttostr.h (uinttostr): Declare.
71165         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71166         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71167         Add uinttostr.
71168         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71169
71170 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * lib/canonicalize.c (ELOOP): Define if not already defined.
71173         Problem reported by Bruno Haible in
71174         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71175
71176 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71179         Problem reported by Perry Smith and Ville Laurikari.
71180
71181         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71182         uses.
71183
71184 2006-10-19  Bruno Haible  <bruno@clisp.org>
71185
71186         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71187         for mingw.
71188
71189 2006-10-19  Bruno Haible  <bruno@clisp.org>
71190
71191         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71192         Needed for mingw.
71193
71194 2006-10-19  Bruno Haible  <bruno@clisp.org>
71195
71196         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71197
71198 2006-10-19  Bruno Haible  <bruno@clisp.org>
71199
71200         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71201         it.
71202
71203 2006-10-19  Bruno Haible  <bruno@clisp.org>
71204
71205         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71206         invocation.
71207
71208 2006-10-19  Bruno Haible  <bruno@clisp.org>
71209
71210         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71211         mountlist by default.
71212
71213 2006-10-16  Bruno Haible  <bruno@clisp.org>
71214
71215         * lib/c-strstr.c: Include c-strstr.h.
71216
71217 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71218
71219         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71220         in a slash.
71221
71222 2006-10-18  Bruno Haible  <bruno@clisp.org>
71223
71224         * lib/lock.h [C++]: Wrap definitions in extern "C".
71225
71226 2006-10-18  Bruno Haible  <bruno@clisp.org>
71227
71228         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71229         gl_LIBOBJS list.
71230
71231 2006-10-18  Bruno Haible  <bruno@clisp.org>
71232
71233         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71234
71235 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * lib/xstrtol.h: Include gettext.h.
71238         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71239         Problem reported by Eric Blake.
71240         * modules/xstrtol (Depends-on): Add gettext-h.
71241
71242 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71243
71244         * lib/strftime.c (advance): New macro.
71245         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71246         incomplete type, so you can't add 0 to it.  Problem and patch
71247         reported by Eelco Dolstra for dietlibc.
71248
71249 2006-10-18  Jim Meyering  <jim@meyering.net>
71250
71251         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71252         type for a local, and rename it: s/up/user_proc/.
71253
71254 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71255
71256         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71257         READ_UTMP_USER_PROCESS.
71258         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71259
71260 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71261
71262         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71263         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71264
71265 2006-10-17  Eric Blake  <ebb9@byu.net>
71266
71267         * lib/sigprocmask.c (sigprocmask): Fix typo.
71268
71269         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71270
71271         * modules/clean-temp (Makefile.am): Don't add to make output...
71272         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71273         config.h.
71274
71275 2006-10-17  Bruno Haible  <bruno@clisp.org>
71276
71277         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71278         differently if DEFAULT_TEXT_DOMAIN is set.
71279
71280 2006-10-16  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/clean-temp.c: Include fwriteerror.h.
71283
71284 2006-10-16  Bruno Haible  <bruno@clisp.org>
71285
71286         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71287
71288 2006-10-16  Bruno Haible  <bruno@clisp.org>
71289
71290         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71291         * lib/sigprocmask.h: Include <sys/types.h>.
71292         (sigset_t): Use the system's definition if present.
71293
71294 2006-10-17  Eric Blake  <ebb9@byu.net>
71295
71296         * lib/xvasprintf.c (includes): Assume config.h.
71297         * lib/xasprintf.c (includes): Likewise.
71298
71299 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71302         at least as wide as intmax_t.
71303
71304 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71305
71306         (Imported from Automake.)
71307         * build-aux/gnupload: Update to version 1.1 of directive file.
71308
71309 2006-10-16  Eric Blake  <ebb9@byu.net>
71310
71311         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71312         match Automake 1.10a.
71313
71314 2006-10-14  Bruno Haible  <bruno@clisp.org>
71315
71316         * modules/sigprocmask: New file.
71317         * lib/sigprocmask.h: New file.
71318         * lib/sigprocmask.c: New file.
71319         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71320         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71321         request sigprocmask.o.
71322         (gl_PREREQ_SIGPROCMASK): New macro.
71323         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71324         (Depends-on): Add sigprocmask.
71325         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71326         gt_SIGNALBLOCKING. Test for 'raise' only once.
71327         * lib/fatal-signal.c: Include sigprocmask.h.
71328         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71329         unblock_fatal_signals): Define always.
71330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71331         sigprocmask.
71332
71333 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         Sync from Automake.
71336         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71337         which incorrectly sets the mode of an existing destination
71338         directory.  In some cases the unpatched install-sh could do the
71339         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71340         system.  We hope this is rare in practice, but it's clearly worth
71341         fixing.  Problem reported by Alex Unleashed in
71342         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71343         Also, don't bother to check for -m bugs unless we're using -m;
71344         suggested by Stepan Kasal.
71345
71346 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71347
71348         Sync from Automake.
71349         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71350         `-c' flag, so they appear at the same position as in %FASTDEP%
71351         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71352         which ignores unknown options only after the first non-option.
71353         Bug report against M4 by Nelson H. F. Beebe.
71354
71355 2006-10-13  Jim Meyering  <jim@meyering.net>
71356
71357         Fix a bug in yesterday's change.
71358         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71359         p->fts_statp->st_dev would be used uninitialized.
71360         Ensures that we always call fts_stat on the very first entry.
71361         Miklos Szeredi reported that find -xdev stopped working.
71362
71363 2006-10-12  Bruno Haible  <bruno@clisp.org>
71364
71365         * gnulib-tool (func_get_automake_snippet): Append an automatically
71366         computed EXTRA_DIST augmentation.
71367         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71368         * modules/alloca-opt (Makefile.am): Likewise.
71369         * modules/allocsa (Makefile.am): Likewise.
71370         * modules/arcfour (Makefile.am): Likewise.
71371         * modules/arctwo (Makefile.am): Likewise.
71372         * modules/argmatch (Makefile.am): Likewise.
71373         * modules/argz (Makefile.am): Likewise.
71374         * modules/atexit (Makefile.am): Likewise.
71375         * modules/backupfile (Makefile.am): Likewise.
71376         * modules/byteswap (Makefile.am): Likewise.
71377         * modules/c-strtod (Makefile.am): Likewise.
71378         * modules/c-strtold (Makefile.am): Likewise.
71379         * modules/calloc (Makefile.am): Likewise.
71380         * modules/canon-host (Makefile.am): Likewise.
71381         * modules/canonicalize (Makefile.am): Likewise.
71382         * modules/chdir-long (Makefile.am): Likewise.
71383         * modules/chdir-safer (Makefile.am): Likewise.
71384         * modules/check-version (Makefile.am): Likewise.
71385         * modules/chown (Makefile.am): Likewise.
71386         * modules/cloexec (Makefile.am): Likewise.
71387         * modules/close-stream (Makefile.am): Likewise.
71388         * modules/closeout (Makefile.am): Likewise.
71389         * modules/crc (Makefile.am): Likewise.
71390         * modules/csharpexec (Makefile.am): Likewise.
71391         * modules/cycle-check (Makefile.am): Likewise.
71392         * modules/des (Makefile.am): Likewise.
71393         * modules/dev-ino (Makefile.am): Likewise.
71394         * modules/dirfd (Makefile.am): Likewise.
71395         * modules/dirname (Makefile.am): Likewise.
71396         * modules/dup2 (Makefile.am): Likewise.
71397         * modules/eealloc (Makefile.am): Likewise.
71398         * modules/error (Makefile.am): Likewise.
71399         * modules/euidaccess (Makefile.am): Likewise.
71400         * modules/exclude (Makefile.am): Likewise.
71401         * modules/exitfail (Makefile.am): Likewise.
71402         * modules/fcntl-safer (Makefile.am): Likewise.
71403         * modules/fcntl (Makefile.am): Likewise.
71404         * modules/file-type (Makefile.am): Likewise.
71405         * modules/fileblocks (Makefile.am): Likewise.
71406         * modules/filemode (Makefile.am): Likewise.
71407         * modules/filenamecat (Makefile.am): Likewise.
71408         * modules/fnmatch (Makefile.am): Likewise.
71409         * modules/fopen-safer (Makefile.am): Likewise.
71410         * modules/fpending (Makefile.am): Likewise.
71411         * modules/fprintftime (Makefile.am): Likewise.
71412         * modules/free (Makefile.am): Likewise.
71413         * modules/fsusage (Makefile.am): Likewise.
71414         * modules/ftruncate (Makefile.am): Likewise.
71415         * modules/fts (Makefile.am): Likewise.
71416         * modules/gc-arcfour (Makefile.am): Likewise.
71417         * modules/gc-des (Makefile.am): Likewise.
71418         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71419         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71420         * modules/gc-md4 (Makefile.am): Likewise.
71421         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71422         * modules/gc-sha1 (Makefile.am): Likewise.
71423         * modules/gc (Makefile.am): Likewise.
71424         * modules/getaddrinfo (Makefile.am): Likewise.
71425         * modules/getcwd (Makefile.am): Likewise.
71426         * modules/getdelim (Makefile.am): Likewise.
71427         * modules/getdomainname (Makefile.am): Likewise.
71428         * modules/getgroups (Makefile.am): Likewise.
71429         * modules/gethostname (Makefile.am): Likewise.
71430         * modules/gethrxtime (Makefile.am): Likewise.
71431         * modules/getline (Makefile.am): Likewise.
71432         * modules/getloadavg (Makefile.am): Likewise.
71433         * modules/getlogin_r (Makefile.am): Likewise.
71434         * modules/getndelim2 (Makefile.am): Likewise.
71435         * modules/getopt (Makefile.am): Likewise.
71436         * modules/getpagesize (Makefile.am): Likewise.
71437         * modules/getpass-gnu (Makefile.am): Likewise.
71438         * modules/getpass (Makefile.am): Likewise.
71439         * modules/getsubopt (Makefile.am): Likewise.
71440         * modules/gettime (Makefile.am): Likewise.
71441         * modules/gettimeofday (Makefile.am): Likewise.
71442         * modules/getugroups (Makefile.am): Likewise.
71443         * modules/getusershell (Makefile.am): Likewise.
71444         * modules/glob (Makefile.am): Likewise.
71445         * modules/group-member (Makefile.am): Likewise.
71446         * modules/hard-locale (Makefile.am): Likewise.
71447         * modules/hash (Makefile.am): Likewise.
71448         * modules/hmac-md5 (Makefile.am): Likewise.
71449         * modules/hmac-sha1 (Makefile.am): Likewise.
71450         * modules/human (Makefile.am): Likewise.
71451         * modules/idcache (Makefile.am): Likewise.
71452         * modules/imaxabs (Makefile.am): Likewise.
71453         * modules/imaxdiv (Makefile.am): Likewise.
71454         * modules/inet_ntop (Makefile.am): Likewise.
71455         * modules/inet_pton (Makefile.am): Likewise.
71456         * modules/intprops (Makefile.am): Likewise.
71457         * modules/inttostr (Makefile.am): Likewise.
71458         * modules/inttypes (Makefile.am): Likewise.
71459         * modules/isapipe (Makefile.am): Likewise.
71460         * modules/javaversion (Makefile.am): Likewise.
71461         * modules/lchmod (Makefile.am): Likewise.
71462         * modules/lchown (Makefile.am): Likewise.
71463         * modules/localcharset (Makefile.am): Likewise.
71464         * modules/long-options (Makefile.am): Likewise.
71465         * modules/lstat (Makefile.am): Likewise.
71466         * modules/malloc (Makefile.am): Likewise.
71467         * modules/mathl (Makefile.am): Likewise.
71468         * modules/mbchar (Makefile.am): Likewise.
71469         * modules/md2 (Makefile.am): Likewise.
71470         * modules/md4 (Makefile.am): Likewise.
71471         * modules/md5 (Makefile.am): Likewise.
71472         * modules/memcasecmp (Makefile.am): Likewise.
71473         * modules/memchr (Makefile.am): Likewise.
71474         * modules/memcmp (Makefile.am): Likewise.
71475         * modules/memcoll (Makefile.am): Likewise.
71476         * modules/memcpy (Makefile.am): Likewise.
71477         * modules/memmem (Makefile.am): Likewise.
71478         * modules/memmove (Makefile.am): Likewise.
71479         * modules/mempcpy (Makefile.am): Likewise.
71480         * modules/memrchr (Makefile.am): Likewise.
71481         * modules/memset (Makefile.am): Likewise.
71482         * modules/memxor (Makefile.am): Likewise.
71483         * modules/mkancesdirs (Makefile.am): Likewise.
71484         * modules/mkdir-p (Makefile.am): Likewise.
71485         * modules/mkdir (Makefile.am): Likewise.
71486         * modules/mkdtemp (Makefile.am): Likewise.
71487         * modules/mkstemp (Makefile.am): Likewise.
71488         * modules/mktime (Makefile.am): Likewise.
71489         * modules/modechange (Makefile.am): Likewise.
71490         * modules/mountlist (Makefile.am): Likewise.
71491         * modules/nanosleep (Makefile.am): Likewise.
71492         * modules/obstack (Makefile.am): Likewise.
71493         * modules/openat (Makefile.am): Likewise.
71494         * modules/pagealign_alloc (Makefile.am): Likewise.
71495         * modules/pathmax (Makefile.am): Likewise.
71496         * modules/physmem (Makefile.am): Likewise.
71497         * modules/poll (Makefile.am): Likewise.
71498         * modules/posixtm (Makefile.am): Likewise.
71499         * modules/posixver (Makefile.am): Likewise.
71500         * modules/putenv (Makefile.am): Likewise.
71501         * modules/quote (Makefile.am): Likewise.
71502         * modules/quotearg (Makefile.am): Likewise.
71503         * modules/raise (Makefile.am): Likewise.
71504         * modules/read-file (Makefile.am): Likewise.
71505         * modules/readline (Makefile.am): Likewise.
71506         * modules/readlink (Makefile.am): Likewise.
71507         * modules/readtokens (Makefile.am): Likewise.
71508         * modules/readutmp (Makefile.am): Likewise.
71509         * modules/realloc (Makefile.am): Likewise.
71510         * modules/regex (Makefile.am): Likewise.
71511         * modules/rename-dest-slash (Makefile.am): Likewise.
71512         * modules/rename (Makefile.am): Likewise.
71513         * modules/rijndael (Makefile.am): Likewise.
71514         * modules/rmdir (Makefile.am): Likewise.
71515         * modules/rpmatch (Makefile.am): Likewise.
71516         * modules/safe-read (Makefile.am): Likewise.
71517         * modules/safe-write (Makefile.am): Likewise.
71518         * modules/same-inode (Makefile.am): Likewise.
71519         * modules/same (Makefile.am): Likewise.
71520         * modules/save-cwd (Makefile.am): Likewise.
71521         * modules/savedir (Makefile.am): Likewise.
71522         * modules/setenv (Makefile.am): Likewise.
71523         * modules/settime (Makefile.am): Likewise.
71524         * modules/sha1 (Makefile.am): Likewise.
71525         * modules/sig2str (Makefile.am): Likewise.
71526         * modules/snprintf (Makefile.am): Likewise.
71527         * modules/stat-macros (Makefile.am): Likewise.
71528         * modules/stat-time (Makefile.am): Likewise.
71529         * modules/stdbool (Makefile.am): Likewise.
71530         * modules/stdint (Makefile.am): Likewise.
71531         * modules/stdlib-safer (Makefile.am): Likewise.
71532         * modules/stpcpy (Makefile.am): Likewise.
71533         * modules/stpncpy (Makefile.am): Likewise.
71534         * modules/strcase (Makefile.am): Likewise.
71535         * modules/strcasestr (Makefile.am): Likewise.
71536         * modules/strchrnul (Makefile.am): Likewise.
71537         * modules/strcspn (Makefile.am): Likewise.
71538         * modules/strdup (Makefile.am): Likewise.
71539         * modules/strerror (Makefile.am): Likewise.
71540         * modules/strftime (Makefile.am): Likewise.
71541         * modules/strndup (Makefile.am): Likewise.
71542         * modules/strnlen (Makefile.am): Likewise.
71543         * modules/strpbrk (Makefile.am): Likewise.
71544         * modules/strsep (Makefile.am): Likewise.
71545         * modules/strstr (Makefile.am): Likewise.
71546         * modules/strtod (Makefile.am): Likewise.
71547         * modules/strtoimax (Makefile.am): Likewise.
71548         * modules/strtok_r (Makefile.am): Likewise.
71549         * modules/strtol (Makefile.am): Likewise.
71550         * modules/strtoll (Makefile.am): Likewise.
71551         * modules/strtoul (Makefile.am): Likewise.
71552         * modules/strtoull (Makefile.am): Likewise.
71553         * modules/strtoumax (Makefile.am): Likewise.
71554         * modules/strverscmp (Makefile.am): Likewise.
71555         * modules/sys_socket (Makefile.am): Likewise.
71556         * modules/sys_stat (Makefile.am): Likewise.
71557         * modules/sysexits (Makefile.am): Likewise.
71558         * modules/time_r (Makefile.am): Likewise.
71559         * modules/timegm (Makefile.am): Likewise.
71560         * modules/timespec (Makefile.am): Likewise.
71561         * modules/tmpfile-safer (Makefile.am): Likewise.
71562         * modules/trim (Makefile.am): Likewise.
71563         * modules/unistd-safer (Makefile.am): Likewise.
71564         * modules/unlinkdir (Makefile.am): Likewise.
71565         * modules/unlocked-io (Makefile.am): Likewise.
71566         * modules/userspec (Makefile.am): Likewise.
71567         * modules/utime (Makefile.am): Likewise.
71568         * modules/utimecmp (Makefile.am): Likewise.
71569         * modules/utimens (Makefile.am): Likewise.
71570         * modules/vasnprintf (Makefile.am): Likewise.
71571         * modules/vasprintf (Makefile.am): Likewise.
71572         * modules/vsnprintf (Makefile.am): Likewise.
71573         * modules/xalloc (Makefile.am): Likewise.
71574         * modules/xgetcwd (Makefile.am): Likewise.
71575         * modules/xnanosleep (Makefile.am): Likewise.
71576         * modules/xreadlink (Makefile.am): Likewise.
71577         * modules/xstrtod (Makefile.am): Likewise.
71578         * modules/xstrtol (Makefile.am): Likewise.
71579         * modules/xstrtold (Makefile.am): Likewise.
71580         * modules/yesno (Makefile.am): Likewise.
71581         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71582
71583 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * modules/error (Makefile.am): Distribute files through
71586         EXTRA_DIST, not lib_SOURCES.
71587
71588 2006-10-12  Eric Blake  <ebb9@byu.net>
71589
71590         * modules/error (Makefile.am): Distribute files in /lib.
71591         * modules/obstack (Makefile.am): Likewise.
71592
71593 2006-10-12  Bruno Haible  <bruno@clisp.org>
71594
71595         * modules/acl (Makefile.am): Distribute all files in lib/ through
71596         EXTRA_DIST.
71597         * modules/arcfour (Makefile.am): Likewise.
71598         * modules/arctwo (Makefile.am): Likewise.
71599         * modules/argmatch (Makefile.am): Likewise.
71600         * modules/argz (Makefile.am): Likewise.
71601         * modules/atexit (Makefile.am): Likewise.
71602         * modules/backupfile (Makefile.am): Likewise.
71603         * modules/c-strtod (Makefile.am): Likewise.
71604         * modules/c-strtold (Makefile.am): Likewise.
71605         * modules/calloc (Makefile.am): Likewise.
71606         * modules/canon-host (Makefile.am): Likewise.
71607         * modules/canonicalize (Makefile.am): Likewise.
71608         * modules/chdir-long (Makefile.am): Likewise.
71609         * modules/chdir-safer (Makefile.am): Likewise.
71610         * modules/check-version (Makefile.am): Likewise.
71611         * modules/chown (Makefile.am): Likewise.
71612         * modules/cloexec (Makefile.am): Likewise.
71613         * modules/close-stream (Makefile.am): Likewise.
71614         * modules/closeout (Makefile.am): Likewise.
71615         * modules/crc (Makefile.am): Likewise.
71616         * modules/cycle-check (Makefile.am): Likewise.
71617         * modules/des (Makefile.am): Likewise.
71618         * modules/dirfd (Makefile.am): Likewise.
71619         * modules/dirname (Makefile.am): Likewise.
71620         * modules/dup2 (Makefile.am): Likewise.
71621         * modules/euidaccess (Makefile.am): Likewise.
71622         * modules/exclude (Makefile.am): Likewise.
71623         * modules/exitfail (Makefile.am): Likewise.
71624         * modules/fcntl-safer (Makefile.am): Likewise.
71625         * modules/file-type (Makefile.am): Likewise.
71626         * modules/fileblocks (Makefile.am): Likewise.
71627         * modules/filemode (Makefile.am): Likewise.
71628         * modules/filenamecat (Makefile.am): Likewise.
71629         * modules/fnmatch (Makefile.am): Likewise.
71630         * modules/fopen-safer (Makefile.am): Likewise.
71631         * modules/fpending (Makefile.am): Likewise.
71632         * modules/fprintftime (Makefile.am): Likewise.
71633         * modules/free (Makefile.am): Likewise.
71634         * modules/fsusage (Makefile.am): Likewise.
71635         * modules/ftruncate (Makefile.am): Likewise.
71636         * modules/fts (Makefile.am): Likewise.
71637         * modules/gc (Makefile.am): Likewise.
71638         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71639         * modules/getaddrinfo (Makefile.am): Likewise.
71640         * modules/getcwd (Makefile.am): Likewise.
71641         * modules/getdelim (Makefile.am): Likewise.
71642         * modules/getdomainname (Makefile.am): Likewise.
71643         * modules/getgroups (Makefile.am): Likewise.
71644         * modules/gethostname (Makefile.am): Likewise.
71645         * modules/gethrxtime (Makefile.am): Likewise.
71646         * modules/getline (Makefile.am): Likewise.
71647         * modules/getloadavg (Makefile.am): Likewise.
71648         * modules/getlogin_r (Makefile.am): Likewise.
71649         * modules/getopt (Makefile.am): Likewise.
71650         * modules/getpass (Makefile.am): Likewise.
71651         * modules/getpass-gnu (Makefile.am): Likewise.
71652         * modules/getsubopt (Makefile.am): Likewise.
71653         * modules/gettime (Makefile.am): Likewise.
71654         * modules/gettimeofday (Makefile.am): Likewise.
71655         * modules/getugroups (Makefile.am): Likewise.
71656         * modules/getusershell (Makefile.am): Likewise.
71657         * modules/glob (Makefile.am): Likewise.
71658         * modules/group-member (Makefile.am): Likewise.
71659         * modules/hard-locale (Makefile.am): Likewise.
71660         * modules/hash (Makefile.am): Likewise.
71661         * modules/hmac-md5 (Makefile.am): Likewise.
71662         * modules/hmac-sha1 (Makefile.am): Likewise.
71663         * modules/human (Makefile.am): Likewise.
71664         * modules/idcache (Makefile.am): Likewise.
71665         * modules/imaxabs (Makefile.am): Likewise.
71666         * modules/imaxdiv (Makefile.am): Likewise.
71667         * modules/inet_ntop (Makefile.am): Likewise.
71668         * modules/inet_pton (Makefile.am): Likewise.
71669         * modules/inttostr (Makefile.am): Likewise.
71670         * modules/isapipe (Makefile.am): Likewise.
71671         * modules/lchown (Makefile.am): Likewise.
71672         * modules/long-options (Makefile.am): Likewise.
71673         * modules/lstat (Makefile.am): Likewise.
71674         * modules/malloc (Makefile.am): Likewise.
71675         * modules/mathl (Makefile.am): Likewise.
71676         * modules/mbchar (Makefile.am): Likewise.
71677         * modules/md2 (Makefile.am): Likewise.
71678         * modules/md4 (Makefile.am): Likewise.
71679         * modules/md5 (Makefile.am): Likewise.
71680         * modules/memcasecmp (Makefile.am): Likewise.
71681         * modules/memchr (Makefile.am): Likewise.
71682         * modules/memcmp (Makefile.am): Likewise.
71683         * modules/memcoll (Makefile.am): Likewise.
71684         * modules/memcpy (Makefile.am): Likewise.
71685         * modules/memmem (Makefile.am): Likewise.
71686         * modules/memmove (Makefile.am): Likewise.
71687         * modules/mempcpy (Makefile.am): Likewise.
71688         * modules/memrchr (Makefile.am): Likewise.
71689         * modules/memset (Makefile.am): Likewise.
71690         * modules/memxor (Makefile.am): Likewise.
71691         * modules/mkancesdirs (Makefile.am): Likewise.
71692         * modules/mkdir (Makefile.am): Likewise.
71693         * modules/mkdir-p (Makefile.am): Likewise.
71694         * modules/mkdtemp (Makefile.am): Likewise.
71695         * modules/mkstemp (Makefile.am): Likewise.
71696         * modules/mktime (Makefile.am): Likewise.
71697         * modules/modechange (Makefile.am): Likewise.
71698         * modules/mountlist (Makefile.am): Likewise.
71699         * modules/nanosleep (Makefile.am): Likewise.
71700         * modules/openat (Makefile.am): Likewise.
71701         * modules/pagealign_alloc (Makefile.am): Likewise.
71702         * modules/physmem (Makefile.am): Likewise.
71703         * modules/poll (Makefile.am): Likewise.
71704         * modules/posixtm (Makefile.am): Likewise.
71705         * modules/posixver (Makefile.am): Likewise.
71706         * modules/putenv (Makefile.am): Likewise.
71707         * modules/quote (Makefile.am): Likewise.
71708         * modules/quotearg (Makefile.am): Likewise.
71709         * modules/raise (Makefile.am): Likewise.
71710         * modules/read-file (Makefile.am): Likewise.
71711         * modules/readline (Makefile.am): Likewise.
71712         * modules/readlink (Makefile.am): Likewise.
71713         * modules/readtokens (Makefile.am): Likewise.
71714         * modules/readutmp (Makefile.am): Likewise.
71715         * modules/realloc (Makefile.am): Likewise.
71716         * modules/regex (Makefile.am): Likewise.
71717         * modules/rename (Makefile.am): Likewise.
71718         * modules/rename-dest-slash (Makefile.am): Likewise.
71719         * modules/rijndael (Makefile.am): Likewise.
71720         * modules/rmdir (Makefile.am): Likewise.
71721         * modules/rpmatch (Makefile.am): Likewise.
71722         * modules/safe-read (Makefile.am): Likewise.
71723         * modules/safe-write (Makefile.am): Likewise.
71724         * modules/same (Makefile.am): Likewise.
71725         * modules/save-cwd (Makefile.am): Likewise.
71726         * modules/savedir (Makefile.am): Likewise.
71727         * modules/setenv (Makefile.am): Likewise.
71728         * modules/settime (Makefile.am): Likewise.
71729         * modules/sha1 (Makefile.am): Likewise.
71730         * modules/sig2str (Makefile.am): Likewise.
71731         * modules/snprintf (Makefile.am): Likewise.
71732         * modules/stdlib-safer (Makefile.am): Likewise.
71733         * modules/stpcpy (Makefile.am): Likewise.
71734         * modules/stpncpy (Makefile.am): Likewise.
71735         * modules/strcase (Makefile.am): Likewise.
71736         * modules/strcasestr (Makefile.am): Likewise.
71737         * modules/strchrnul (Makefile.am): Likewise.
71738         * modules/strcspn (Makefile.am): Likewise.
71739         * modules/strdup (Makefile.am): Likewise.
71740         * modules/strerror (Makefile.am): Likewise.
71741         * modules/strftime (Makefile.am): Likewise.
71742         * modules/strndup (Makefile.am): Likewise.
71743         * modules/strnlen (Makefile.am): Likewise.
71744         * modules/strpbrk (Makefile.am): Likewise.
71745         * modules/strsep (Makefile.am): Likewise.
71746         * modules/strstr (Makefile.am): Likewise.
71747         * modules/strtod (Makefile.am): Likewise.
71748         * modules/strtoimax (Makefile.am): Likewise.
71749         * modules/strtok_r (Makefile.am): Likewise.
71750         * modules/strtol (Makefile.am): Likewise.
71751         * modules/strtoll (Makefile.am): Likewise.
71752         * modules/strtoul (Makefile.am): Likewise.
71753         * modules/strtoull (Makefile.am): Likewise.
71754         * modules/strtoumax (Makefile.am): Likewise.
71755         * modules/strverscmp (Makefile.am): Likewise.
71756         * modules/time_r (Makefile.am): Likewise.
71757         * modules/timegm (Makefile.am): Likewise.
71758         * modules/tmpfile-safer (Makefile.am): Likewise.
71759         * modules/unistd-safer (Makefile.am): Likewise.
71760         * modules/unlinkdir (Makefile.am): Likewise.
71761         * modules/userspec (Makefile.am): Likewise.
71762         * modules/utime (Makefile.am): Likewise.
71763         * modules/utimecmp (Makefile.am): Likewise.
71764         * modules/utimens (Makefile.am): Likewise.
71765         * modules/vasnprintf (Makefile.am): Likewise.
71766         * modules/vasprintf (Makefile.am): Likewise.
71767         * modules/vsnprintf (Makefile.am): Likewise.
71768         * modules/xalloc (Makefile.am): Likewise.
71769         * modules/xgetcwd (Makefile.am): Likewise.
71770         * modules/xnanosleep (Makefile.am): Likewise.
71771         * modules/xreadlink (Makefile.am): Likewise.
71772         * modules/xstrtod (Makefile.am): Likewise.
71773         * modules/xstrtol (Makefile.am): Likewise.
71774         * modules/xstrtold (Makefile.am): Likewise.
71775         * modules/yesno (Makefile.am): Likewise.
71776
71777 2006-10-12  Jim Meyering  <jim@meyering.net>
71778
71779         * m4/getloadavg.m4: Revert the change below.
71780
71781         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71782         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71783         fail with a symlink, which is what coreutils' ./bootstrap now
71784         creates by default.
71785
71786 2006-10-12  Bruno Haible  <bruno@clisp.org>
71787
71788         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71789         mingw.
71790         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71791         MSVC and mingw explicitly.
71792
71793 2006-10-11  Simon Josefsson  <jas@extundo.com>
71794             Bruno Haible  <bruno@clisp.org>
71795
71796         Add support for multiple gnulib-tool invocations in the scope of a
71797         single configure.ac file.
71798         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71799         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71800         with the same contents as the _LIBADD variable.
71801         (func_emit_initmacro_start, func_emit_initmacro_end,
71802         func_emit_initmacro_done): New functions.
71803         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71804         gl_LIBOBJS and gl_LTLIBOBJS.
71805
71806 2006-10-11  Bruno Haible  <bruno@clisp.org>
71807
71808         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71809         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71810         autoreconf. Instead, invoke autopoint explicitly but move back the
71811         *.m4 files from gnulib.
71812
71813 2006-10-11  Bruno Haible  <bruno@clisp.org>
71814
71815         * gnulib-tool (func_usage): Make module names after --create-testdir
71816         optional.
71817         (func_create_testdir): If no module was specified, use nearly all
71818         modules.
71819
71820 2006-10-12  Jim Meyering  <jim@meyering.net>
71821
71822         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71823         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71824         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71825         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71826         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71827         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71828         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71829         (fts_set_stat_required): New function.
71830         (fts_open): Defer the calls to fts_stat, if possible or requested.
71831         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71832         into fts_stat itself.
71833         (fts_read): Perform any required (deferred) fts_stat call.
71834         (fts_build): Likewise, for the directory we're about to open and read.
71835         In the readdir loop, carefully decide whether each entry will require
71836         an eventual call to fts_stat, using dirent.d_type info if available.
71837         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71838         a command line argument into this function.  Update all callers.
71839         Map a return value of FTS_DOT to FTS_D for a command line argument.
71840         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71841         Thanks to Miklos Szeredi for his tenacity and for the initial
71842         bug report about "find" failing on a FUSE-based file system.
71843
71844         * lib/fts.c (fts_open): Use consistent indentation.
71845
71846 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
71849         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
71850         reported by Jim Meyering.  All uses of cache variables renamed
71851         to match Autoconf's.
71852         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
71853         the other one.
71854
71855         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
71856         Fix misspelling in diagnostic.
71857
71858 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
71861         defined.  Problem reported by Matthew Woehlke.
71862
71863         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
71864         Add support for Tandem NonStop R series.
71865         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
71866         Use new macro.
71867
71868         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
71869         (has_trailing_slash): Omit size arg; all callers changed.
71870         Omit 'inline', since it doesn't help performance and we'd
71871         need to configure it.
71872         Don't count //, ///, etc. as having a trailing slash.
71873         As a side effect, this removes a C99ism reported by Matthew Woehlke.
71874         (rpl_rename_dest_slash): On failure, use rename's errno rather
71875         than (in some cases) an incorrect or junk errno.
71876         Simplify code by removing need to compute length; this does
71877         cause it to make two passes instead of one over the file name,
71878         but it's worth it.
71879
71880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
71881         change, since Autoconf's version may no longer be appropriate now
71882         that we are using CVS Autoconf's version.  Add support for Tandem.
71883
71884 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71885             Bruno Haible  <bruno@clisp.org>
71886
71887         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
71888         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
71889         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
71890         gl_AC_TYPE_LONG_LONG.
71891
71892         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
71893         instead of HAVE_LONG_LONG.
71894         * lib/printf-args.c (printf_fetchargs): Likewise.
71895         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
71896         * lib/vasnprintf.c (VASNPRINTF): Likewise.
71897         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
71898         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
71899         gl_AC_TYPE_LONG_LONG.
71900
71901 2006-10-11  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/longlong.m4: Add comments.
71904         * m4/ulonglong.m4: Likewise.
71905
71906 2006-10-10  Bruno Haible  <bruno@clisp.org>
71907
71908         Make it possible to #define stpcpy, strdup to aliases.
71909         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
71910         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
71911
71912 2006-10-10  Bruno Haible  <bruno@clisp.org>
71913
71914         Make it possible to #define gcd to an alias.
71915         * lib/gcd.c: Include config.h.
71916
71917 2006-10-10  Bruno Haible  <bruno@clisp.org>
71918
71919         Make it possible to #define c_isascii to an alias.
71920         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
71921         defined. Undefine the macros before defining them, to avoid gcc
71922         warnings.
71923         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
71924         define NO_C_CTYPE_MACROS early.
71925
71926 2006-10-10  Bruno Haible  <bruno@clisp.org>
71927
71928         Make it possible to #define set_program_name to an alias.
71929         * lib/progname.c: Don't undefine set_program_name; instead, undefine
71930         ENABLE_RELOCATABLE early.
71931
71932 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71933
71934         Port to Tandem NSK OSS, which has 64-bit signed int but at most
71935         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
71936         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
71937         More generally, don't assume that 64-bit signed int is available
71938         if unsigned int is, and vice versa.
71939         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
71940         unsigned symbols, not on their signed counterparts.
71941         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
71942         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
71943         (UINT64_C, UINTMAX_C):
71944         Likewise.
71945         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
71946         unsigned counterparts.
71947         (Have_long_long, Unsigned): New macros.
71948         (Int): Renamed from INT.
71949         (strtoimax): Use the new macros.
71950         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
71951         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
71952         * modules/inttypes (inttypes.h): Substitute
71953         HAVE_UNSIGNED_LONG_LONG_INT.
71954         * modules/stdint (stdint.h): Likewise.
71955         (Files): Add m4/ulonglong.m4.
71956
71957 2006-10-10  Bruno Haible  <bruno@clisp.org>
71958
71959         Fix a gcc -Wshadow warning.
71960         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
71961         to 'bucket'.
71962         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
71963         gl_linked_indexof_from_to): Likewise.
71964         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
71965         Likewise.
71966         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
71967         Likewise.
71968         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
71969         Reported by Eric Blake.
71970
71971 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
71974         for NetBSD.  Problem reported by Bruno Haible.
71975
71976 2006-10-09  Jim Meyering  <jim@meyering.net>
71977
71978         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
71979         Patch from Bruno Haible.
71980
71981 2006-10-09  Jim Meyering  <jim@meyering.net>
71982
71983         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
71984         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
71985         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
71986
71987 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         Don't include <config.h> twice; this doesn't work in some cases,
71990         e.g., when config.h has "#define intmax_t long long int" and
71991         we include <config.h>, <inttypes.h>, <config.h> in that order.
71992         Problem reported by Matthew Woehlke in:
71993         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
71994         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
71995         * lib/fts-cycle.c: Don't include config.h.
71996         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
71997         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
71998         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
71999         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72000         inttypes.h.
72001         * lib/xstrtoumax.c: Likewise.
72002         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72003         __strtol and the like, so that this module is more like its siblings.
72004         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72005         Remove; no longer needed now that we assume gnulib inttypes.h.
72006
72007 2006-10-08  Bruno Haible  <bruno@clisp.org>
72008
72009         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72010         option.
72011
72012 2006-10-07  Jim Meyering  <jim@meyering.net>
72013
72014         * modules/inttypes (inttypes.h): Revert what seems to have been
72015         an inadvertent part of today's change: use "|", not "/" in the
72016         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72017
72018 2006-10-07  Bruno Haible  <bruno@clisp.org>
72019
72020         * modules/sublist: New file.
72021
72022 2006-10-07  Bruno Haible  <bruno@clisp.org>
72023
72024         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72025         * modules/argz (argz.h): Likewise.
72026         * modules/arpa_inet (arpa/inet.h): Likewise.
72027         * modules/byteswap (byteswap.h): Likewise.
72028         * modules/configmake (configmake.h): Likewise.
72029         * modules/fcntl (fcntl.h): Likewise.
72030         * modules/fnmatch (fnmatch.h): Likewise.
72031         * modules/getopt (getopt.h): Likewise.
72032         * modules/glob (glob.h): Likewise.
72033         * modules/inttypes (inttypes.h): Likewise.
72034         * modules/netinet_in (netinet/in.h): Likewise.
72035         * modules/poll (poll.h): Likewise.
72036         * modules/stdbool (stdbool.h): Likewise.
72037         * modules/stdint (stdint.h): Likewise.
72038         * modules/sys_select (sys/select.h): Likewise.
72039         * modules/sys_socket (sys/socket.h): Likewise.
72040         * modules/sys_stat (sys/stat.h): Likewise.
72041         * modules/sysexits (sysexits.h): Likewise.
72042         * modules/unistd (unistd.h): Likewise.
72043         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72044         Add a "DO NOT EDIT" comment to the generated file.
72045         (func_import): Likewise for gnulib-comp.m4.
72046
72047 2006-10-07  Bruno Haible  <bruno@clisp.org>
72048
72049         * lib/gl_sublist.h: New file.
72050         * lib/gl_sublist.c: New file.
72051
72052 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72055         name (relative to the original working directory) and the file
72056         name component (relative to the temporary working directory).  All
72057         callers changed.
72058         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72059         * lib/mkdir-p.c (make_dir_parents): Likewise.
72060         * lib/mkdir-p.h (make_dir_parents): Likewise.
72061
72062 2006-10-06  Eric Blake  <ebb9@byu.net>
72063
72064         Define several macros for use by the clean-temp module.
72065         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72066         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72067         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72068
72069         * lib/clean-temp.h (close_stream_temp): New declaration.
72070         * lib/clean-temp.c (includes): Pull in headers according to what
72071         other modules are in use.
72072         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72073
72074 2006-10-06  Bruno Haible  <bruno@clisp.org>
72075
72076         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72077         instead of fopen, fwriteerror.
72078
72079 2006-10-06  Bruno Haible  <bruno@clisp.org>
72080
72081         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72082         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72083         int.
72084         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72085         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72086         Return an error indicator.
72087         Suggested by Eric Blake.
72088
72089 2006-10-06  Bruno Haible  <bruno@clisp.org>
72090
72091         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72092         Reported by Eric Blake.
72093
72094 2006-10-06  Bruno Haible  <bruno@clisp.org>
72095
72096         * modules/closeout (Description): Mention stderr too.
72097
72098 2006-10-06  Bruno Haible  <bruno@clisp.org>
72099         and Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * lib/closeout.c (close_stdout): Also close stderr.
72102         * lib/closeout.h: Update comment.
72103
72104 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72105
72106         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72107         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72108         * lib/dirchownmod.c: Include lchown.h.
72109         * lib/lchown.c: Don't include files that lchown.h now includes.
72110         Don't declare chown, since lchown.h now does that.
72111         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72112         (lchown): Define to rpl_chown if lchown is declared but
72113         does not exist.  Declare using a prototype if lchown is not
72114         declared.  Add a copyright notice.
72115         * lib/mkstemp.h: Include <unistd.h>.
72116         * lib/openat.c: Include lchown.h.
72117
72118         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72119         we now test for that separately.
72120         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72121         rather than O_NOFOLLOW, when testing whether it's possible to
72122         avoid a race condition reliably.
72123         * lib/savewd.c (savewd_chdir): Likewise.
72124
72125         Remove macros that are no longer needed now that stdint.h is
72126         reliable.
72127         * lib/fsusage.c (UINTMAX_MAX): Remove.
72128         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72129         * lib/utimecmp.c (SIZE_MAX): Remove.
72130
72131         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72132
72133         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72134         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72135         O_NOATIME works.
72136
72137 2006-10-05  Bruno Haible  <bruno@clisp.org>
72138
72139         * lib/gl_list.h (gl_sortedlist_search_from_to,
72140         gl_sortedlist_indexof_from_to): New declarations.
72141         (gl_list_implementation): New fields sortedlist_search_from_to,
72142         sortedlist_indexof_from_to.
72143         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72144         inline functions.
72145         * lib/gl_list.c (gl_sortedlist_search_from_to,
72146         gl_sortedlist_indexof_from_to): New functions.
72147         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72148         function.
72149         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72150         (gl_array_sortedlist_search_from_to): New function.
72151         (gl_array_list_implementation): Update.
72152         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72153         function.
72154         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72155         (gl_carray_sortedlist_search_from_to): New function.
72156         (gl_carray_list_implementation): Update.
72157         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72158         gl_linked_sortedlist_indexof_from_to): New functions.
72159         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72160         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72161         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72162         gl_tree_sortedlist_indexof_from_to): New functions.
72163         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72164         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72165         Update.
72166         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72167         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72168         Update.
72169
72170 2006-10-05  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72173         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72174         (struct gl_list_implementation): Add fields search_from_to,
72175         indexof_from_to. Remove fields search, indexof.
72176         (gl_list_search): Use the search_from_to method.
72177         (gl_list_search_from, gl_list_search_from_to): New functions.
72178         (gl_list_indexof): Use the indexof_from_to method.
72179         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72180         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72181         (gl_list_search_from, gl_list_search_from_to): New functions.
72182         (gl_list_indexof): Use the indexof_from_to method.
72183         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72184         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72185         gl_array_indexof. Add start_index, end_index arguments.
72186         (gl_array_search_from_to): Renamed from gl_array_search. Add
72187         start_index, end_index arguments.
72188         (gl_array_remove, gl_array_list_implementation): Update.
72189         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72190         gl_carray_indexof. Add start_index, end_index arguments.
72191         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72192         start_index, end_index arguments.
72193         (gl_carray_remove, gl_carray_list_implementation): Update.
72194         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72195         gl_linked_search. Add start_index, end_index arguments.
72196         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72197         start_index, end_index arguments.
72198         (gl_linked_remove): Update.
72199         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72200         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72201         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72202         field to 'size_t'.
72203         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72204         gl_tree_search. Add start_index, end_index arguments.
72205         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72206         start_index, end_index arguments.
72207         (gl_tree_remove): Update.
72208         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72209         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72210         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72211         function.
72212         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72213         gl_tree_search. Add start_index, end_index arguments.
72214         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72215         start_index, end_index arguments.
72216         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72217         Update.
72218         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72219
72220 2006-10-05  Bruno Haible  <bruno@clisp.org>
72221
72222         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72223
72224         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72225         fwriteerror_temp): New declarations.
72226         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72227         (descriptors): New variable.
72228         (cleanup): First, close the descriptors.
72229         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72230         fclose_temp, fwriteerror_temp): New functions.
72231
72232 2006-10-04  Jim Meyering  <jim@meyering.net>
72233
72234         * lib/fts.c (fts_open): Tiny comment change.
72235
72236 2006-10-04  Bruno Haible  <bruno@clisp.org>
72237
72238         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72239         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72240         gl_LOCK_BODY.
72241         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72242         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72243         gl_LOCK_EARLY_BODY.
72244         (gl_LOCK): Require gl_LOCK_BODY.
72245
72246 2006-10-04  Bruno Haible  <bruno@clisp.org>
72247
72248         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72249         (gl_oset_search_atleast): New declaration.
72250         (struct gl_oset_implementation): Add field 'search_atleast'.
72251         (gl_oset_search_atleast): New inline function.
72252         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72253         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72254         (gl_array_oset_implementation): Update.
72255         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72256         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72257         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72258
72259 2006-10-04  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72262
72263 2006-10-03  Bruno Haible  <bruno@clisp.org>
72264
72265         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72266         from gl_avltreehash_list_implementation.
72267
72268 2006-10-03  Bruno Haible  <bruno@clisp.org>
72269
72270         * lib/gl_oset.c (gl_oset_add): Fix return type.
72271
72272 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72273
72274         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72275
72276 2006-10-02  Eric Blake  <ebb9@byu.net>
72277
72278         * modules/strnlen (Depends-on): Add extensions.
72279
72280 2006-10-02  Eric Blake  <ebb9@byu.net>
72281
72282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72283         definition in 2.60+.
72284
72285 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72286
72287         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72288         checks.
72289
72290 2006-10-02  Bruno Haible  <bruno@clisp.org>
72291
72292         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72293         to the AUTOMAKE_OPTIONS.
72294         Reported by Jim Meyering.
72295
72296 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         Work around bug in Solaris 10 /proc file system:
72299         /proc/self/fd/NNN/.. isn't the parent directory of
72300         the directory whose file descriptor is NNN.  This needs to
72301         be worked around at run time, not compile time, since a
72302         program might be built on Solaris 8, where things work, and
72303         run on Solaris 10.
72304         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72305         to use the following interface instead:
72306         (OPENAT_BUFFER_SIZE): New macro.
72307         (openat_proc_name): New function.
72308         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72309         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72310         Likewise.
72311         * lib/openat-proc.c: New file.
72312         * modules/openat (Files): Add lib/openat-proc.c.
72313         (Depends-on): Add same-inode, stdbool.
72314         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72315
72316 2006-09-29  Bruno Haible  <bruno@clisp.org>
72317
72318         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72319         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72320         argument. Set stdout_closed before testing for ferror, not after.
72321         (fwriteerror, fwriteerror_no_ebadf): New functions.
72322
72323 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72324
72325         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72326
72327 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72328
72329         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72330         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72331
72332 2006-09-28  Jim Meyering  <jim@meyering.net>
72333
72334         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72335         Include <unistd.h>.
72336
72337 2006-09-28  Bruno Haible  <bruno@clisp.org>
72338
72339         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72340         * modules/linkedhash-list (Depends-on): Likewise.
72341         * modules/rbtreehash-list (Depends-on): Likewise.
72342
72343 2006-09-28  Bruno Haible  <bruno@clisp.org>
72344
72345         * lib/strndup.h: Simplify the redefinition of strndup.
72346         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72347         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72348
72349 2006-09-28  Bruno Haible  <bruno@clisp.org>
72350
72351         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72352         * lib/gl_linkedhash_list.c: Likewise.
72353         * lib/gl_rbtreehash_list.c: Likewise.
72354
72355 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72358         getaddrinfo.
72359
72360         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72361         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72362         it causes <stdio_ext.h> to cause a compile-time error.
72363         Problem reported by Nelson H. F. Beebe.
72364         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72365         of HAVE_DECL___PENDING.
72366
72367         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72369         declaration.
72370
72371 2006-09-27  Jim Meyering  <jim@meyering.net>
72372
72373         This file could end up with a definition for a function
72374         named __strndup, rather than rpl_strndup on a system with
72375         incomplete weak_alias support.
72376         * lib/strndup.c (strndup): Rename from __strndup.
72377         Remove #defines that used to map __strndup to strndup.
72378         Don't use K&R prototypes.
72379         Remove LIBC-related code, since this file is not sync'd with glibc.
72380         * lib/strndup.h: Revamp, accordingly.
72381         * m4/strndup.m4: Modernize.
72382
72383 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * modules/savewd (Depends-on): Add 'raise'.
72386         * lib/savewd.c: Include <signal.h>, for 'raise'.
72387
72388 2006-09-26  Jim Meyering  <jim@meyering.net>
72389
72390         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72391         when we detect Darwin 8.7.0's acl_get_file bug.
72392         Rearrange to perform the new (below) run-test while $LIBS
72393         contains any acl-related library.  Set USE_ACL at the end.
72394         (gl_ACL_GET_FILE): New function.
72395
72396 2006-09-26  Eric Blake  <ebb9@byu.net>
72397
72398         * lib/verror.c: Include <config.h> unconditionally.
72399
72400 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72401
72402         * modules/clock-time (Maintainer): Add self.
72403         * modules/getlogin_r (Depends-on): Add extensions.
72404
72405 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72406
72407         * modules/clock-time: New module.
72408         * modules/nanosleep (Depends-on): Add clock-time.
72409         * modules/gethrxtime (Depends-on): Likewise.
72410         * modules/gettime (Depends-on): Likewise.
72411         * modules/settime (Depends-on): Likewise.
72412
72413         * modules/fts-lgpl: Depend on openat.
72414         * modules/mkancesdirs: Depend on savewd.
72415         * modules/mkdir-p: Likewise.
72416
72417 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72418
72419         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72420
72421         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72422         `gl_have_arbitrary_file_name_length_limit' to
72423         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72424         actually works between configure runs.
72425
72426 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72427             Bruno Haible  <bruno@clisp.org>
72428
72429         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72430
72431 2006-09-25  Jim Meyering  <jim@meyering.net>
72432
72433         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72434         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72435
72436 2006-09-25  Eric Blake  <ebb9@byu.net>
72437
72438         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72439         exec's in 2006-09-18 patch when shuffling fds.
72440
72441 2006-09-25  Bruno Haible  <bruno@clisp.org>
72442
72443         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72444         Reported by Jim Meyering.
72445
72446 2006-09-24  Jim Meyering  <jim@meyering.net>
72447
72448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72449         compare a pointer against a literal "0".  That caused failures with
72450         at least HP-UX's hpcc.
72451
72452 2006-09-22  Simon Josefsson  <jas@extundo.com>
72453
72454         * modules/gc-sha1:
72455         * modules/gc-md4:
72456         * modules/gc-hmac-sha1:
72457         * modules/gc-hmac-md5:
72458         * modules/gc-des:
72459         * modules/gc-arcfour: Distribute more files.
72460
72461 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72462
72463         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72464         (gl_linked_iterator_from_to): Initialize struct completely.
72465         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72466         (gl_tree_iterator_from_to): Likewise
72467         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72468         * lib/gl_array_list.c [lint] (gl_array_iterator)
72469         (gl_array_iterator_from_to): Likewise.
72470         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72471         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72472         (gl_carray_iterator_from_to): Likewise.
72473
72474         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72475         * lib/md4.c (md4_process_block): Remove unused variable.
72476         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72477         parentheses for clarity.
72478
72479 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72480
72481         * modules/bison-i18n (Depends-on): Add gettext.
72482
72483 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72484
72485         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72487         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72488         also add missing comma that caused broken test.
72489         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72490         stdlib.h, for `abort'.
72491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72492         variables.
72493         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72494         include unistd.h if present, for `rmdir'.
72495         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72496         variables.
72497         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72498         in the process include standard headers for prototypes.
72499         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72500         gets declared on GNU/Linux.
72501         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72502         unistd.h, for `rmdir'.
72503         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72504
72505         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72506         always true.
72507         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72508
72509         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72510
72511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72512
72513         * gnulib-tool (func_version): Create output all at once.  This
72514         may help avoid triggering unnecessary SIGPIPEs, and at any
72515         rate it doesn't hurt.
72516
72517 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72518             Bruno Haible  <bruno@clisp.org>
72519
72520         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72521         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72522         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72523
72524         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72525         (gl_FUNC_VASPRINTF): Invoke it.
72526
72527 2006-09-22  Bruno Haible  <bruno@clisp.org>
72528
72529         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72530         getloadavg.c as first argument.
72531
72532 2006-09-22  Bruno Haible  <bruno@clisp.org>
72533
72534         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72535         at the beginning of the gl_INIT macro.
72536         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72537         gl_GETLOADAVG.
72538
72539 2006-09-22  Bruno Haible  <bruno@clisp.org>
72540
72541         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72542         module.
72543         Suggested by Ralf Wildenhues.
72544
72545 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72546
72547         Import this patch from libc:
72548
72549         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72550
72551         * lib/regex_internal.c (re_string_reconstruct): Handle
72552         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72553         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72554         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72555         re_string_context_at.
72556
72557         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72558         now requires it.
72559         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72560         gl_REGEX now does it for us.
72561         (gl_REGEX): Add test taken from
72562         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72563
72564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72565         Check that large offsets work.  Modernize Autoconf usages.
72566         Prefer "yes" to mean a good thing rather than a bad.
72567         Don't put "#define mkstemp" in config.h, as this might interfere
72568         with standard system headers that "#define mkstemp mkstemp64".
72569
72570         * modules/mkstemp (Depends-on): Add extensions, so that
72571         mkstemp is visible on some platforms.
72572         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72573         (Include): Change to "mkstemp.h" from <stdlib.h>.
72574         (Files): Add mkstemp.h.
72575
72576         * lib/mkstemp.h: New file, since some standard headers
72577         #define mkstemp.
72578         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72579         Include "mkstemp.h".
72580         Make the _LIBC code resemble glibc original more,
72581         e.g., use K&R style.
72582         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72583         (mkstemp): Remove, since mkstemp.h does this for us.
72584         * lib/stdlib--.h: Include mkstemp.h.
72585
72586         Import this patch from libc:
72587
72588         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72589
72590         * lib/tempname.c (__gen_tempname): Change attempts_min
72591         into a macro.  Use preprocessor to decide how to initialize
72592         attempts [Coverity CID 67].
72593
72594 2006-09-20  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/mkdtemp.c: Import from libc.
72597         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72598                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72599                 attempts_min into a macro.  Use preprocessor to decide how to
72600                 initialize attempts [Coverity CID 67].
72601         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72602                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72603                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72604
72605 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72606
72607         * gnulib-tool (func_exit): New function, to allow to pass the
72608         exit status portably through the trap.  Use everywhere.
72609         (--help, --version): Signal a write error.
72610         (trap): catch SIGPIPE, for write errors.
72611         Exit at the end of the trap, with the correct exit status.
72612
72613 2006-09-19  Karl Berry  <karl@gnu.org>
72614
72615         * doc/gnulib.texi: note about the license texinfo files.
72616
72617 2006-09-19  Eric Blake  <ebb9@byu.net>
72618
72619         * gnulib-tool: Avoid space-tab.
72620
72621 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72624         that prevented coreutils 6.1 from building.  Problem reported
72625         by Petter Reinholdtsen.
72626
72627 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * gnulib-tool (avoidlist): Fix typo that broke options like
72630         --avoid=lock that are used by coreutils bootstrap.
72631
72632 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72633
72634         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72635         more systematically.
72636
72637 2006-09-18  Jim Meyering  <jim@meyering.net>
72638
72639         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72640
72641 2006-09-18  Bruno Haible  <bruno@clisp.org>
72642
72643         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72644
72645 2006-09-18  Bruno Haible  <bruno@clisp.org>
72646
72647         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72648         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72649         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72650         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72651         * m4/gettext.m4: Require autoconf >= 2.52.
72652         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72653         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72654         of gl_cv_header_inttypes_h.
72655
72656 2006-09-18  Bruno Haible  <bruno@clisp.org>
72657
72658         * lib/javaversion.c: Include configmake.h.
72659
72660 2006-09-18  Bruno Haible  <bruno@clisp.org>
72661
72662         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72663         avoid that the while loops be executed in a subshell.
72664
72665 2006-09-18  Bruno Haible  <bruno@clisp.org>
72666
72667         * MODULES.html.sh (func_module): Break long lines.
72668         Suggested by Bruce Korb <bkorb@gnu.org>.
72669
72670 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72671
72672         Speed up by a factor of 1.12.
72673         * gnulib-tool (nl): New variable.
72674         (func_import): Rewrite include directive extraction to only read each
72675         directive once.
72676
72677 2006-09-17  Bruno Haible  <bruno@clisp.org>
72678
72679         * modules/javaversion (Makefile.am): Remove DEFS setting.
72680         (Depends-on): Add configmake, for PKGDATADIR definition.
72681
72682 2006-09-17  Bruno Haible  <bruno@clisp.org>
72683
72684         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72685
72686 2006-09-17  Bruno Haible  <bruno@clisp.org>
72687
72688         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72689         (func_modules_transitive_closure, func_modules_add_dummy,
72690         func_modules_to_filelist, func_import, func_create_testdir,
72691         func_create_megatestdir, ...): Use it wherever possible.
72692         Suggested by Ralf Wildenhues.
72693
72694 2006-09-16  Karl Berry  <karl@gnu.org>
72695
72696         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72697         to avoid sectioning errors.
72698         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72699         [ifinfo]: blank line after @center-ed titles.
72700         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72701         Spell FSF address consistently with others.
72702         (These changes approved by rms.)
72703
72704 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72705
72706         Speed up by a factor of 1.61.
72707         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72708         already checked module names again.
72709
72710 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72711
72712         Speed up by a factor of 1.13.
72713         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72714         for new_files, and the input to func_add_or_update.
72715
72716 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72717
72718         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72719         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72720
72721 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         * modules/mkancesdirs (Depends-on): Add fcntl.
72724         * modules/savewd: New file.
72725         * MODULES.html.sh (File system functions): Add savewd.
72726
72727         * modules/configmake (Makefile.am): Add support for the
72728         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72729
72730 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         * m4/savewd.m4: New file.
72733
72734 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72735
72736         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72737         (dirchownmod): New arg FD.  All callers changed.
72738         Use FD rather than opening the directory ourself, as opening is
72739         now the caller's responsibility.
72740         * lib/dirchownmod.h: Likewise.
72741         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72742         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72743         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72744         (test_dir): Remove.
72745         (mkancesdirs): Return length of prefix of FILE that has already
72746         been made, or -2 if there is a child doing the work.  Redo
72747         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72748         ".", and treat ".." specially since it might stray back into
72749         already-created areas.  Use a subprocess if necessary.  New arg
72750         WD; all users changed.  MAKE_DIR function should now return 1
72751         if it creates a directory that is not readable.  Return -2 if
72752         a child process is spun off.
72753         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72754         Adjust signature to match code.
72755         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72756         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72757         all users changed.
72758         * lib/savewd.c, lib/savewd.h: New files.
72759
72760 2006-09-15  Jim Meyering  <jim@meyering.net>
72761
72762         * modules/rename-dest-slash: New module.
72763         * MODULES.html.sh (posix_compat): Add it here.
72764
72765         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72766
72767 2006-09-15  Jim Meyering  <jim@meyering.net>
72768
72769         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72770         file.
72771
72772         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72773
72774 2006-09-15  Jim Meyering  <jim@meyering.net>
72775
72776         * lib/rename-dest-slash.c (has_trailing_slash): Use
72777         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72778         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72779         test before testing whether SRC is a directory.
72780         Suggestions from Bruno Haible.
72781
72782         Avoid a warning about an unused variable.
72783         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72784         into the #ifdef block where it's used.
72785
72786         * lib/rename-dest-slash.c: New file.
72787
72788 2006-09-14  Bruno Haible  <bruno@clisp.org>
72789
72790         * lib/allocsa.c: Include <config.h> unconditionally.
72791         * lib/asnprintf.c: Likewise.
72792         * lib/asprintf.c: Likewise.
72793         * lib/c-strcasecmp.c: Likewise.
72794         * lib/c-strcasestr.c: Likewise.
72795         * lib/c-strncasecmp.c: Likewise.
72796         * lib/c-strstr.c: Likewise.
72797         * lib/classpath.c: Likewise.
72798         * lib/clean-temp.c: Likewise.
72799         * lib/concatpath.c: Likewise.
72800         * lib/copy-file.c: Likewise.
72801         * lib/csharpcomp.c: Likewise.
72802         * lib/csharpexec.c: Likewise.
72803         * lib/execute.c: Likewise.
72804         * lib/fatal-signal.c: Likewise.
72805         * lib/findprog.c: Likewise.
72806         * lib/fwriteerror.c: Likewise.
72807         * lib/gl_array_list.c: Likewise.
72808         * lib/gl_array_oset.c: Likewise.
72809         * lib/gl_avltree_list.c: Likewise.
72810         * lib/gl_avltree_oset.c: Likewise.
72811         * lib/gl_avltreehash_list.c: Likewise.
72812         * lib/gl_carray_list.c: Likewise.
72813         * lib/gl_linked_list.c: Likewise.
72814         * lib/gl_linkedhash_list.c: Likewise.
72815         * lib/gl_list.c: Likewise.
72816         * lib/gl_oset.c: Likewise.
72817         * lib/gl_rbtree_list.c: Likewise.
72818         * lib/gl_rbtree_oset.c: Likewise.
72819         * lib/gl_rbtreehash_list.c: Likewise.
72820         * lib/imaxabs.c: Likewise.
72821         * lib/imaxdiv.c: Likewise.
72822         * lib/javacomp.c: Likewise.
72823         * lib/javaexec.c: Likewise.
72824         * lib/javaversion.c: Likewise.
72825         * lib/linebreak.c: Likewise.
72826         * lib/localcharset.c: Likewise.
72827         * lib/lock.c: Likewise.
72828         * lib/mbchar.c: Likewise.
72829         * lib/mbswidth.c: Likewise.
72830         * lib/mkdtemp.c: Likewise.
72831         * lib/pipe.c: Likewise.
72832         * lib/printf-args.c: Likewise.
72833         * lib/printf-parse.c: Likewise.
72834         * lib/progname.c: Likewise.
72835         * lib/progreloc.c: Likewise.
72836         * lib/readlink.c: Likewise.
72837         * lib/sh-quote.c: Likewise.
72838         * lib/stpcpy.c: Likewise.
72839         * lib/stpncpy.c: Likewise.
72840         * lib/strcasecmp.c: Likewise.
72841         * lib/strcasestr.c: Likewise.
72842         * lib/strcspn.c: Likewise.
72843         * lib/striconv.c: Likewise.
72844         * lib/strncasecmp.c: Likewise.
72845         * lib/strnlen1.c: Likewise.
72846         * lib/strstr.c: Likewise.
72847         * lib/strtok_r.c: Likewise.
72848         * lib/tls.c: Likewise.
72849         * lib/tmpdir.c: Likewise.
72850         * lib/unicodeio.c: Likewise.
72851         * lib/unsetenv.c: Likewise.
72852         * lib/vasnprintf.c: Likewise.
72853         * lib/vasprintf.c: Likewise.
72854         * lib/wait-process.c: Likewise.
72855         * lib/xallocsa.c: Likewise.
72856         * lib/xsetenv.c: Likewise.
72857         * lib/xstriconv.c: Likewise.
72858
72859 2006-09-13  Simon Josefsson  <jas@extundo.com>
72860
72861         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
72862         that internally, suggested by Ralf Wildenhues
72863         <Ralf.Wildenhues@gmx.de>.
72864
72865 2006-09-13  Simon Josefsson  <jas@extundo.com>
72866
72867         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
72868         @LIBOBJS@.
72869         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72870
72871 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * lib/_fpending.c: Include <config.h> unconditionally, since we no
72874         longer worry about uses that don't define HAVE_CONFIG_H.
72875         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
72876         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
72877         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
72878         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
72879         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
72880         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
72881         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
72882         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
72883         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
72884         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
72885         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
72886         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
72887         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
72888         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
72889         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
72890         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
72891         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
72892         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
72893         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
72894         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
72895         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
72896         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
72897         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
72898         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
72899         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
72900         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
72901         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
72902         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
72903         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
72904         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
72905         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
72906         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
72907         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
72908         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
72909         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
72910         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
72911         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
72912         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
72913         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
72914         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
72915         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
72916         Likewise.
72917
72918 2006-09-13  Eric Blake  <ebb9@byu.net>
72919
72920         * lib/getopt.c: Fix typo in last commit.
72921
72922 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72923
72924         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
72925         dgettext.
72926
72927 2006-09-12  Jim Meyering  <jim@meyering.net>
72928
72929         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
72930         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
72931         Reported by Nelson H. F. Beebe.
72932
72933 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72934
72935         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
72936         program_invocation_name and program_invocation_short_name are
72937         initialized.
72938         * lib/argp-namefrob.h: Move declarations of program_invocation_name
72939         and program_invocation_short_name to argp.h, so they are visible
72940         to user programs.
72941         * lib/argp.h: Likewise
72942
72943 2006-09-10  Bruno Haible  <bruno@clisp.org>
72944
72945         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72946         m4/inttypes_h.m4, m4/uintmax_t.m4.
72947
72948 2006-09-10  Bruno Haible  <bruno@clisp.org>
72949
72950         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
72951         gl_AC_TYPE_UINTMAX_T.
72952
72953 2006-09-10  Bruno Haible  <bruno@clisp.org>
72954
72955         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
72956
72957 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72958
72959         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
72960         convention.  Text proposed by Bruno Haible.
72961         (struct argp_option): Document the use of N_() wrappers.
72962
72963         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
72964         '\v', and translate the two parts separately, instead of feeding
72965         the whole string to gettext.  This allows to exclude
72966         '\v' from the strings visible to the translator by writing doc
72967         strings as N_("..") "\v" N_("..").
72968
72969 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
72970
72971         * config/srclist.txt: Undo latest change; the bug was fixed.
72972
72973 2006-09-09  Bruno Haible  <bruno@clisp.org>
72974
72975         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
72976         assignments if building a library without libtool.
72977         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
72978         in func_emit_lib_Makefile_am.
72979         (func_import): When building a static library libfoo.a, arrange to
72980         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
72981         (func_create_testdir): Likewise.
72982         * modules/gc (configure.ac, Makefile.am): If building statically,
72983         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
72984         * modules/iconvme (configure.ac, Makefile.am): Likewise.
72985         * modules/striconv (configure.ac, Makefile.am): Likewise.
72986         Based on a suggestion by Ralf Wildenhues.
72987
72988 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72991         Check for unistd.h too, since Autoconf doesn't assume POSIX.
72992         Also:
72993
72994         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72995         Add year_2050_test to catch glibc bug 2821
72996         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72997
72998         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72999         Prefer #ifdef to #if.
73000
73001         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73002         Return from 'main' instead of calling 'exit'.
73003
73004 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73007         returned the maximum time_t value rather than (time_t) -1.
73008         Problem originally reported by William Bardwell
73009         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73010
73011         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73012         Moved to here ...
73013         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73014         ... from here.
73015
73016 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73019         2821 is fixed.
73020
73021 2006-09-08  Jim Meyering  <jim@meyering.net>
73022
73023         Don't make generated files read-only.  That would bother too many
73024         people.  However, do retain the ability to work when targets are
73025         read-only: remove the destination and temporary files before writing
73026         them (when generated via sed or echo), or by using the -f option for
73027         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73028         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73029         * modules/byteswap, modules/configmake, modules/fcntl:
73030         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73031         * modules/localcharset, modules/netinet_in, modules/poll:
73032         * modules/stdbool, modules/stdint, modules/sys_select:
73033         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73034
73035 2006-09-08  Jim Meyering  <jim@meyering.net>
73036
73037         Avoid new build failure on FreeBSD 6.0.
73038         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73039         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73040         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73041
73042 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73043
73044         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73045
73046 2006-09-07  Jim Meyering  <jim@meyering.net>
73047
73048         Fix global typo in last change: use chmod u-w, not chmod u-x.
73049         Spotted by Paul Eggert and Bruce Korb.
73050         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73051         * modules/byteswap, modules/configmake, modules/fcntl:
73052         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73053         * modules/localcharset, modules/netinet_in, modules/poll:
73054         * modules/stdbool, modules/stdint, modules/sys_select:
73055         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73056
73057 2006-09-06  Jim Meyering  <jim@meyering.net>
73058
73059         Make generated files be read-only.
73060         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73061         Ensure that each generated file is now read-only.
73062         * modules/argz: Likewise.
73063         * modules/arpa_inet: Likewise.
73064         * modules/byteswap: Likewise.
73065         * modules/configmake: Likewise.
73066         * modules/fcntl: Likewise.
73067         * modules/fnmatch: Likewise.
73068         * modules/getopt: Likewise.
73069         * modules/glob: Likewise.
73070         * modules/inttypes: Likewise.
73071         * modules/netinet_in: Likewise.
73072         * modules/poll: Likewise.
73073         * modules/stdbool: Likewise.
73074         * modules/stdint: Likewise.
73075         * modules/sys_select: Likewise.
73076         * modules/sys_socket: Likewise.
73077         * modules/sys_stat: Likewise.
73078         * modules/sysexits: Likewise.
73079         * modules/localcharset: Same as above, but continue using temporary
73080         file named "t-$@" (why different?) rather than the "$@-t" used
73081         everywhere else.
73082
73083         * modules/sysexits (Makefile.am): Replace literal occurrences
73084         of "sysexit.h" more readable, and more consistent, "$@".
73085
73086 2006-09-06  Bruno Haible  <bruno@clisp.org>
73087
73088         * modules/striconv: New file.
73089         * modules/xstriconv: New file.
73090         * MODULES.html.sh (Internationalization functions): Add striconv,
73091         xstriconv.
73092
73093 2006-09-06  Bruno Haible  <bruno@clisp.org>
73094
73095         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73096         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73097         not using libtool correctly.
73098
73099 2006-09-06  Bruno Haible  <bruno@clisp.org>
73100
73101         * lib/striconv.h: New file.
73102         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73103         iconvstring.c.
73104         * lib/xstriconv.h: New file.
73105         * lib/xstriconv.c: New file.
73106
73107 2006-09-06  Bruno Haible  <bruno@clisp.org>
73108
73109         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73110         lib_..._LDFLAGS.
73111
73112 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73113
73114         * lib/argz_.h: Sync from Libtool.
73115
73116         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73117                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73118
73119         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73120
73121 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73122
73123         * modules/trim: New file.
73124
73125 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73126
73127         * lib/trim.h: New file.
73128         * lib/trim.c: New file.
73129
73130 2006-09-05  Bruno Haible  <bruno@clisp.org>
73131
73132         * MODULES.html.sh (String handling): Add trim.
73133
73134 2006-09-04  Karl Berry  <karl@gnu.org>
73135
73136         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73137         until next release.
73138
73139 2006-09-03  Bruno Haible  <bruno@clisp.org>
73140
73141         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73142         correctly.
73143
73144 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73147         not gl_GETLOADAVG.  Omit unneeded semicolons.
73148         Problems reported by Ralf Wildenhues in
73149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73150         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73151         at the end, which is the usual gnulib style.
73152
73153         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73154         of doing all the work ourselves.
73155         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73156         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73157
73158 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73159
73160         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73161         Problem reported by Ralf Wildenhues in
73162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73163
73164         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73165         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73166
73167 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73168
73169         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73170         yesterday's patch by changing test -n to test -z.
73171
73172 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73175         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73176         the former is now obsolescent.
73177
73178         * modules/chdir-long (Depends-on): Add fcntl.
73179
73180 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73183         obsolescent, and programs should use gnulib instead.
73184         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73185         but with prefixes changed.
73186
73187 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73188
73189         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73190         or stdbool.h, because they might not exist while configuring.
73191
73192         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73193         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73194         does that for us.
73195         (O_DIRECTORY): Remove.
73196
73197 2006-08-31  Eric Blake  <ebb9@byu.net>
73198
73199         * gnulib-tool: Don't let emacs change spaces to TAB.
73200
73201 2006-08-31  Bruno Haible  <bruno@clisp.org>
73202
73203         * gnulib-tool: When calling func_import more than once, do it in a
73204         subshell.
73205         Reported by Eric Blake <ebb9@byu.net>.
73206
73207 2006-08-31  Bruno Haible  <bruno@clisp.org>
73208
73209         * gnulib-tool (nl): Remove variable.
73210         (sed_transform_lib_file): Use more robust test for config-h module.
73211         (func_import): Fix typo in 2006-08-25 patch.
73212
73213 2006-08-31  Bruno Haible  <bruno@clisp.org>
73214
73215         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73216         specified, augment Makefile.am variables instead of assigning them.
73217
73218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         Work around a bug in both the Linux and SunOS 64-bit kernels:
73221         nanosleep mishandles sleeps for longer than 2**31 seconds.
73222         Problem reported by Frank v Waveren in
73223         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73225         Check for nanosleep bug.
73226         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73227
73228 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         Work around a bug in both the Linux and SunOS 64-bit kernels:
73231         nanosleep mishandles sleeps for longer than 2**31 seconds.
73232         Problem reported by Frank v Waveren in
73233         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73234         * lib/nanosleep.c (BILLION): New constant.
73235         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73236         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73237         implementation.
73238
73239 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * modules/nanosleep (Depends-on): Add gettime.
73242
73243 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73244         and Simon Josefsson  <jas@extundo.com>
73245         and Oskar Liljeblad  <oskar@osk.mine.nu>
73246
73247         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73248         * gnulib-tool (func_import): New license type 'unmodifiable license
73249         text'.
73250         * modules/fdl: Use it.  Longer description.
73251         * module/gpl, module/lgpl: New files.
73252
73253 2006-08-30  Jim Meyering  <jim@meyering.net>
73254
73255         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73256         shadowing the parameter.
73257
73258 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73259
73260         Sync from Libtool:
73261
73262         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73263
73264         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73265         sharing with gnulib.  Report by Eric Blake.
73266
73267 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * modules/isapipe: New file.
73270         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73271
73272 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * modules/configmake (Makefile.am): Add a comment, and omit
73275         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73276         by Bruno Haible.
73277
73278 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * m4/isapipe.m4: New file.
73281
73282 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73283
73284         * lib/isapipe.c, lib/isapipe.h: New files.
73285
73286 2006-08-29  Jim Meyering  <jim@meyering.net>
73287
73288         * modules/configmake (Makefile.am): Make configmake.h depend on
73289         Makefile.  Otherwise, a stale configmake.h could hang around.
73290
73291 2006-08-29  Eric Blake  <ebb9@byu.net>
73292
73293         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73294         resolution of upstream bug 3044.
73295
73296 2006-08-29  Bruno Haible  <bruno@clisp.org>
73297
73298         * modules/localcharset (Depends-on): Add configmake.
73299         (Makefile.am): Remove setting of LIBDIR through DEFS.
73300
73301 2006-08-29  Bruno Haible  <bruno@clisp.org>
73302
73303         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73304         defined.
73305
73306 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * modules/fcntl: New file.
73309         * modules/chdir-safer (Depends-on): Add fcntl.
73310         * modules/fts: Likewise.
73311         * modules/mkdir-p: Likewise.
73312
73313         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73314         This undoes the most recent change, since we're now addressing the
73315         problem in a different way.
73316
73317         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73318         into output, since the output might be called Makefile.am even
73319         if $makefile_name is something different.
73320         (func_import): Use $makefile_am rather than
73321         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73322         empty.
73323
73324         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73325
73326 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73329         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73330         recent change to stdint.m4, since we're now addressing the problem in a
73331         different way.
73332
73333 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * m4/fcntl_h.m4: New file.
73336
73337 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73338
73339         * lib/fcntl_.h: New file.
73340         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73341         the fcntl module.
73342         * lib/dirchownmod.c: Likewise.
73343         * lib/fts.c: Likewise.
73344
73345         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73346         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73347         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73348         just before including <inttypes.h>, to avoid circular inclusion.
73349
73350 2006-08-28  Jim Meyering  <jim@meyering.net>
73351
73352         * doc/visibility.texi: Actually read and correct the grammar of the
73353         sentence affected by yesterday's change.
73354
73355 2006-08-28  Eric Blake  <ebb9@byu.net>
73356
73357         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73358         needs wrapper.
73359
73360 2006-08-28  Eric Blake  <ebb9@byu.net>
73361
73362         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73363
73364 2006-08-28  Eric Blake  <ebb9@byu.net>
73365
73366         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73367
73368 2006-08-28  Bruno Haible  <bruno@clisp.org>
73369
73370         * modules/c-strstr: New file, from GNU gettext.
73371         * MODULES.html.sh (String handling): Add c-strstr.
73372
73373 2006-08-28  Bruno Haible  <bruno@clisp.org>
73374
73375         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73376         macros.
73377         Reported by Eric Blake.
73378
73379 2006-08-28  Bruno Haible  <bruno@clisp.org>
73380
73381         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73382         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73383         * lib/vasprintf.c: Include errno.h, limits.h.
73384         (EOVERFLOW): New fallback definition.
73385         (vasprintf): Test here whether the string length is > INT_MAX.
73386         * lib/vsnprintf.c: Include errno.h, limits.h.
73387         (EOVERFLOW): New fallback definition.
73388         (vsnprintf): Fix bug when generated string was too long for the buffer.
73389         Test here whether the string length is > INT_MAX.
73390
73391 2006-08-28  Bruno Haible  <bruno@clisp.org>
73392
73393         * lib/inttypes_.h (SCNX*): Remove definitions.
73394         Reported by Eric Blake.
73395
73396 2006-08-28  Bruno Haible  <bruno@clisp.org>
73397
73398         * lib/c-strstr.h: New file, from GNU gettext.
73399         * lib/c-strstr.c: New file, from GNU gettext.
73400
73401 2006-08-28  Bruno Haible  <bruno@clisp.org>
73402
73403         * gnulib-tool: Reorder some statements.
73404
73405 2006-08-28  Bruno Haible  <bruno@clisp.org>
73406
73407         * gnulib-tool: New option --makefile-name.
73408         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73409         $makefile_name.
73410         (func_import): Write $makefile_name to the cache file, and read it from
73411         there unless explicitly specified. Use $makefile_name as file name
73412         instead of Makefile.am. Adjust the recommendations accordingly.
73413
73414 2006-08-28  Bruno Haible  <bruno@clisp.org>
73415
73416         * gnulib-tool (func_verify_module): Check against misapplying patch.
73417
73418 2006-08-28  Bruno Haible  <bruno@clisp.org>
73419
73420         * gnulib-tool (func_relativize, func_relconcat): New functions.
73421         Give an error if --local-dir is given with --update.
73422         Remove trailing slashes from $local_gnulib_dir.
73423         (func_import): Store the relativized $local_gnulib_dir in
73424         gnulib-cache.m4, and read it from there if not specified explicitly.
73425
73426 2006-08-28  Bruno Haible  <bruno@clisp.org>
73427
73428         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73429         is the current directory. Respect also $local_gnulib_dir.
73430
73431 2006-08-28  Bruno Haible  <bruno@clisp.org>
73432             Simon Josefsson  <jas@extundo.com>
73433
73434         BeOS portability.
73435         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73436
73437 2006-08-27  Jim Meyering  <jim@meyering.net>
73438
73439         * doc/visibility.texi: Remove duplicate word: "pointer".
73440
73441 2006-08-26  Bruno Haible  <bruno@clisp.org>
73442
73443         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73444         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73445         (Makefile.am): Create inttypes.h from inttypes_.h.
73446         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73447
73448         * modules/imaxabs: New file.
73449
73450         * modules/imaxdiv: New file.
73451
73452 2006-08-26  Bruno Haible  <bruno@clisp.org>
73453
73454         * m4/inttypes.m4: New file.
73455         * m4/_inttypes_h.m4: Remove file.
73456         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73457         PRI_MACROS_BROKEN.
73458         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73459
73460         * m4/imaxabs.m4: New file.
73461
73462         * m4/imaxdiv.m4: New file.
73463
73464 2006-08-26  Bruno Haible  <bruno@clisp.org>
73465
73466         * lib/inttypes_.h: New file.
73467         * lib/inttypes.h: Remove file.
73468         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73469
73470         * lib/imaxabs.c: New file.
73471
73472         * lib/imaxdiv.c: New file.
73473
73474 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         New config-h module, so that "make" output needn't be cluttered
73477         by -DHAVE_CONFIG_H.
73478         * MODULES.html.sh (Support for building libraries and executables):
73479         Add config-h.
73480         * modules/config-h: New file.
73481         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73482         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73483         the config-h module is used.
73484
73485         New configmake module, so that "make" output needn't be cluttered
73486         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73487         * MODULES.html.sh (Support for building libraries and executables):
73488         Add configmake.
73489         * modules/configmake: New file.
73490
73491 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * m4/config-h.m4: New file.
73494
73495 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * config/srclist.txt: Add elisp-comp.
73498
73499 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         * MODULES.html.sh (Support for building libraries and executables):
73502         Add elisp-comp.
73503         * build-aux/elisp-comp: New file.
73504         * modules/elisp-comp: New file.
73505
73506 2006-08-24  Bruno Haible  <bruno@clisp.org>
73507
73508         * gnulib-tool (func_create_testdir): Use non-default values of
73509         sourcebase and m4base.
73510
73511 2006-08-24  Bruno Haible  <bruno@clisp.org>
73512
73513         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73514         HTML structure.
73515
73516 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73517
73518         * modules/openat (Depends-on): Add lchown.
73519
73520 2006-08-23  Bruno Haible  <bruno@clisp.org>
73521
73522         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73523         of gl_LOCK_EARLY instead of gl_LOCK.
73524
73525 2006-08-23  Bruno Haible  <bruno@clisp.org>
73526
73527         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73528         on OSF/1 to no.
73529         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73530
73531 2006-08-23  Bruno Haible  <bruno@clisp.org>
73532
73533         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73534         as unusable.
73535
73536         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73537         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73538         (gl_LOCK): New macro.
73539
73540 2006-08-22  Simon Josefsson  <jas@extundo.com>
73541
73542         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73543         to md5 module.
73544
73545 2006-08-22  Simon Josefsson  <jas@extundo.com>
73546
73547         * MODULES.html.sh: Add "Support for maintaining and release
73548         projects".
73549
73550         * build-aux/gnupload: New file, from coreutils.
73551
73552 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         Avoid the need for AC_LIBSOURCES in m4 macros.
73555         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73556         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73557         * modules/check-version (EXTRA_DIST): Add check-version.h.
73558         * modules/crc (EXTRA_DIST): Add crc.h.
73559         * modules/des (EXTRA_DIST): Add des.h.
73560         * modules/gc (EXTRA_DIST): Add gc.h.
73561         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73562         * modules/getline (EXTRA_DIST): Add getline.h.
73563         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73564         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73565         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73566         * modules/md2 (EXTRA_DIST): Add md2.h.
73567         * modules/md4 (EXTRA_DIST): Add md4.h.
73568         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73569         * modules/read-file (EXTRA_DIST): Add read-file.h.
73570         * modules/readline (EXTRA_DIST): Add readline.h.
73571         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73572         rijndael-api-fst.h.
73573
73574 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73575
73576         * m4/rijndael.m4 (gl_ARCFOUR):
73577         * m4/arctwo.m4 (gl_ARCTWO):
73578         * m4/check-version.m4 (gl_CHECK_VERSION):
73579         * m4/crc.m4 (gl_CRC):
73580         * m4/des.m4 (gl_DES):
73581         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73582         * m4/gc.m4 (gl_GC):
73583         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73584         * m4/getline.m4 (gl_FUNC_GETLINE):
73585         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73586         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73587         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73588         * m4/md2.m4 (gl_MD2):
73589         * m4/md4.m4 (gl_MD4):
73590         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73591         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73592         * m4/readline.m4 (gl_FUNC_READLINE):
73593         * m4/rijndael.m4 (gl_RIJNDAEL):
73594         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73595         to get the necessary .h files and whatnot.
73596
73597 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73600         gnulib rather than the other way around.
73601         * config/srclistvars.sh (COREUTILS): Remove.
73602
73603 2006-08-22  Jim Meyering  <jim@meyering.net>
73604
73605         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73606
73607         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73608
73609 2006-08-22  Eric Blake  <ebb9@byu.net>
73610
73611         * modules/regexprops-generic: New file.
73612         * MODULES.html.sh (Support for building documentation): List it.
73613
73614 2006-08-22  Eric Blake  <ebb9@byu.net>
73615
73616         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73617         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73618         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73619         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73620
73621 2006-08-22  Bruno Haible  <bruno@clisp.org>
73622
73623         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73624         and lib_LTLIBRARIES like the other lib_* variables.
73625
73626 2006-08-22  Bruno Haible  <bruno@clisp.org>
73627
73628         * build-aux/x-to-1.in: New file, from GNU gettext.
73629
73630 2006-08-22  Bruno Haible  <bruno@clisp.org>
73631
73632         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73633         <utmpx.h> exists.
73634
73635 2006-08-22  Bruno Haible  <bruno@clisp.org>
73636
73637         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73638         <utmpx.h> exists.
73639
73640 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         BeOS portability.
73643         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73644         exist.
73645         Problem reported by Bruno Haible.
73646
73647 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73648
73649         Avoid the need for AC_LIBSOURCES in m4 macros.
73650         * modules/acl (EXTRA_DIST): Add acl.h.
73651         * modules/argmatch (Files): Add m4/argmatch.m4.
73652         (configure.ac): Add gl_ARGMATCH.
73653         (EXTRA_DIST): Renamed from lib_SOURCES, for
73654         consistency with the other modules.  Remove argmatch.c.
73655         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73656         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73657         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73658         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73659         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73660         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73661         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73662         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73663         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73664         * modules/closeout (EXTRA_DIST): Add closeout.h.
73665         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73666         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73667         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73668         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73669         dirname.h; remove basename.c and stripslash.c.
73670         * modules/exclude (EXTRA_DIST): Add exclude.h.
73671         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73672         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73673         * modules/file-type (EXTRA_DIST): Add file-type.h.
73674         * modules/filemode (EXTRA_DIST): Add filemode.h.
73675         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73676         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73677         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73678         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73679         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73680         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73681         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73682         * modules/getdate (EXTRA_DIST): Add getdate.c.
73683         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73684         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73685         * modules/getpass (EXTRA_DIST): Add getpass.h.
73686         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73687         * modules/group-member (EXTRA_DIST): Add group-member.h.
73688         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73689         * modules/hash (EXTRA_DIST): Add hash.h.
73690         * modules/human (EXTRA_DIST): Add human.h.
73691         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73692         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73693         * modules/lchown (EXTRA_DIST): Add lchown.h.
73694         * modules/long-options (EXTRA_DIST): Add long-options.h.
73695         * modules/lstat (EXTRA_DIST): Add lstat.h.
73696         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73697         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73698         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73699         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73700         * modules/memxor (EXTRA_DIST): Add memxor.h.
73701         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73702         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73703         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73704         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73705         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73706         * modules/physmem (EXTRA_DIST): Add physmem.h.
73707         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73708         * modules/posixver (EXTRA_DIST): Add posixver.h.
73709         * modules/quote (EXTRA_DIST): Add quote.h.
73710         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73711         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73712         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73713         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73714         regex_internal.h regexec.c.
73715         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73716         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73717         * modules/same (EXTRA_DIST): Add same.h.
73718         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73719         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73720         * modules/savedir (EXTRA_DIST): Add savedir.h.
73721         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73722         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73723         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73724         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73725         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73726         * modules/strdup (EXTRA_DIST): Add strdup.h.
73727         * modules/strftime (EXTRA_DIST): Add strftime.h.
73728         * modules/strndup (EXTRA_DIST): Add strndup.h.
73729         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73730         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73731         * modules/time_r (EXTRA_DIST): Add time_r.h.
73732         * modules/timespec (EXTRA_DIST): Add timespec.h.
73733         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73734         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73735         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73736         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73737         * modules/userspec (EXTRA_DIST): Add userspec.h.
73738         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73739         * modules/utimens (EXTRA_DIST): Add utimens.h.
73740         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73741         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73742         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73743         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73744         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73745         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73746         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73747         * modules/yesno (EXTRA_DIST): Add yesno.h.
73748
73749 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73752
73753         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73754         * m4/dev-ino.m4, same-inode.m4: Remove.
73755
73756         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73757         * m4/acl.m4 (AC_FUNC_ACL):
73758         * m4/backupfile.m4 (gl_BACKUPFILE):
73759         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73760         * m4/canon-host.m4 (gl_CANON_HOST):
73761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73763         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73764         * m4/cloexec.m4 (gl_CLOEXEC):
73765         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73766         * m4/closeout.m4 (gl_CLOSEOUT):
73767         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73768         * m4/dirname.m4 (gl_DIRNAME):
73769         * m4/exclude.m4 (gl_EXCLUDE):
73770         * m4/exitfail.m4 (gl_EXITFAIL):
73771         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73772         * m4/file-type.m4 (gl_FILE_TYPE):
73773         * m4/filemode.m4 (gl_FILEMODE):
73774         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73775         * m4/fpending.m4 (gl_FUNC_FPENDING):
73776         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73777         * m4/fts.m4 (gl_FUNC_FTS):
73778         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73779         * m4/getdate.m4 (gl_GETDATE):
73780         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73781         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73782         * m4/getpass.m4 (gl_FUNC_GETPASS):
73783         * m4/gettime.m4 (gl_GETTIME):
73784         * m4/getugroups.m4 (gl_GETUGROUPS):
73785         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73786         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73787         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73788         * m4/hash.m4 (gl_HASH):
73789         * m4/idcache.m4 (gl_IDCACHE):
73790         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73791         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73792         * m4/long-options.m4 (gl_LONG_OPTIONS):
73793         * m4/lstat.m4 (gl_FUNC_LSTAT):
73794         * m4/md5.m4 (gl_MD5):
73795         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73796         * m4/memcoll.m4 (gl_MEMCOLL):
73797         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73798         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73799         * m4/memxor.m4 (gl_MEMXOR):
73800         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73801         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73802         * m4/modechange.m4 (gl_MODECHANGE):
73803         * m4/mountlist.m4 (gl_MOUNTLIST):
73804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73805         * m4/openat.m4 (gl_FUNC_OPENAT):
73806         * m4/pathmax.m4 (gl_PATHMAX):
73807         * m4/physmem.m4 (gl_PHYSMEM):
73808         * m4/posixtm.m4 (gl_POSIXTM):
73809         * m4/posixver.m4 (gl_POSIXVER):
73810         * m4/quote.m4 (gl_QUOTE):
73811         * m4/quotearg.m4 (gl_QUOTEARG):
73812         * m4/readtokens.m4 (gl_READTOKENS):
73813         * m4/readutmp.m4 (gl_READUTMP):
73814         * m4/regex.m4 (gl_REGEX):
73815         * m4/safe-read.m4 (gl_SAFE_READ):
73816         * m4/safe-write.m4 (gl_SAFE_WRITE):
73817         * m4/same.m4 (gl_SAME):
73818         * m4/save-cwd.m4 (gl_SAVE_CWD):
73819         * m4/savedir.m4 (gl_SAVEDIR):
73820         * m4/settime.m4 (gl_SETTIME):
73821         * m4/sha1.m4 (gl_SHA1):
73822         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73823         * m4/stat-macros.m4 (gl_STAT_MACROS):
73824         * m4/stat-time.m4 (gl_STAT_TIME):
73825         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73826         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73827         * m4/strdup.m4 (gl_FUNC_STRDUP):
73828         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73829         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73830         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73831         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73832         * m4/time_r.m4 (gl_TIME_R):
73833         * m4/timespec.m4 (gl_TIMESPEC):
73834         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73835         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73836         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73837         * m4/userspec.m4 (gl_USERSPEC):
73838         * m4/utimecmp.m4 (gl_UTIMECMP):
73839         * m4/utimens.m4 (gl_UTIMENS):
73840         * m4/xalloc.m4 (gl_XALLOC):
73841         * m4/xgetcwd.m4 (gl_XGETCWD):
73842         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
73843         * m4/xreadlink.m4 (gl_XREADLINK):
73844         * m4/xstrtod.m4 (gl_XSTRTOD):
73845         * m4/yesno.m4 (gl_YESNO):
73846         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73847         to get the necessary .h files and whatnot.
73848
73849 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
73850             Bruno Haible  <bruno@clisp.org>
73851
73852         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
73853         /bin/sh understanding of '!' conditional negation.
73854
73855 2006-08-21  Jim Meyering  <jim@meyering.net>
73856
73857         * modules/openat (Depends-on): Really alphabetize.
73858
73859         * modules/acl (Depends-on): Add error and quote.
73860
73861         * check-module (find_included_lib_files): Add at-func.c to the
73862         ok-to-include-more-than-once white list.
73863
73864         * modules/openat (Depends-on): Add lstat.  Alphabetize.
73865
73866 2006-08-21  Bruno Haible  <bruno@clisp.org>
73867
73868         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73869         Emit a pkgdata_DATA variable only if some snippets add contents to it.
73870         Reported by Martin Lambers <marlam@marlam.de>.
73871
73872 2006-08-21  Bruno Haible  <bruno@clisp.org>
73873
73874         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
73875         specify an installation location, don't emit a noinst_LIBRARIES or
73876         noinst_LTLIBRARIES assignment.
73877
73878 2006-08-21  Bruno Haible  <bruno@clisp.org>
73879
73880         BeOS portability.
73881         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
73882         BeOS has mbrtowc() but no <wctype.h>.
73883
73884 2006-08-21  Bruno Haible  <bruno@clisp.org>
73885
73886         BeOS portability.
73887         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
73888         exist.
73889
73890 2006-08-21  Bruno Haible  <bruno@clisp.org>
73891
73892         BeOS portability.
73893         * lib/mbchar.h: Include <wctype.h> only if it exists.
73894
73895 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         Remove files that are no longer needed by their respective modules.
73898         * m4/obstack.m4: Remove.
73899         * m4/strerror_r.m4: Remove.
73900         * m4/uint32_t.m4: Remove.
73901         * m4/uintptr_t.m4: Remove.
73902         * m4/ullong_max.m4: Remove.
73903         * m4/xstrtoimax.m4: Remove.
73904         * m4/xstrtoumax.m4: Remove.
73905
73906         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
73907         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
73908         dependencies now capture this.
73909
73910         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
73911         Do not use AC_LIBSOURCES, since gnulib modules now do this.
73912         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
73913         * m4/human.m4 (gl_HUMAN): Likewise.
73914         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
73915         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
73916
73917         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
73918
73919         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
73920         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
73921         stdint.
73922         * m4/human.m4 (gl_HUMAN): Likewise.
73923         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
73924         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
73925         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73926         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73927         * m4/xstrtol (gl_XSTRTOL): Likewise.
73928
73929         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
73930         AC_TYPE_LONG_LONG_INT.
73931         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73932         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
73933         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
73934         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73935
73936         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
73937         on stdbool.
73938
73939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
73940         (gl_PREREQ_XSTRTOUL): Remove.
73941
73942         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
73943
73944         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
73945         mode.
73946
73947 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         Add and change modules to make it easier for coreutils to use
73950         gnulib-tool.
73951         * modules/backupfile (Files): Remove m4/d-ino.m4.
73952         (Depends-on): Add d-ino.
73953         * modules/cycle-check (Depends-on): Add stdint.
73954         (lib_SOURCES): Add cycle-check.h.
73955         * modules/d-ino: New module.
73956         * modules/d-type: New module.
73957         * modules/error (Files): Remove m4/strerror_r.m4.
73958         * modules/filemode (Files): Add m4/st_dm_mode.m4.
73959         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73960         m4/inttypes_h.m4, m4/uintmax_t.m4.
73961         (Depends-on): Add stdint.
73962         (lib_SOURCES): Add fsusage.h.
73963         * modules/getcwd (Files): Remove d-ino.m4.
73964         (Depends-on): Add d-ino.
73965         * modules/getndelim2 (Depends-on): Add stdint.
73966         * modules/glob (Files): Remove m4/d-type.m4.
73967         (Depends-on): Add d-type.
73968         * modules/host-os: New module.
73969         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
73970         m4/inttypes_h.m4, m4/uintmax_t.m4.
73971         * Depends-on: Add stdint.
73972         (lib_SOURCES): Add human.h.
73973         * modules/inttostr (Files): Remove m4/intmax_t.m4,
73974         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
73975         m4/uintmax_t.m4, m4/ulonglong.m4.
73976         (Depends-on): Add stdint.
73977         (EXTRA_DIST): Add inttostr.h.
73978         * modules/lchmod: New module.
73979         * modules/link-follow: New module.
73980         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
73981         (Depends-on): Add lchmod.
73982         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
73983         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
73984         (Depends-on): Add stdint.
73985         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
73986         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
73987         (Depends-on): Add stdint.
73988         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
73989         * modules/perl: New module.
73990         * modules/regex (Depends-on): Add stdint.
73991         * modules/rmdir-errno: New module.
73992         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73993         m4/intmax_t.m4.
73994         (Depends-on): Add stdint.
73995         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73996         m4/uintmax_t.m4.
73997         (Depends-on): Add stdint.
73998         * modules/unlink-busy: New module.
73999         * modules/utimecmp (Depends-on): Add stdint.
74000         * modules/uptime: New module.
74001         * modules/winsz-ioctl: New module.
74002         * modules/winsz-termios: New module.
74003         * modules/xnanosleep (Depends-on): Add nanosleep.
74004         * modules/ullong_max: Remove.
74005         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74006         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74007         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74008         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74009         (Depends-on): Add inttypes.
74010         (lib_SOURCES): Add xstrtol.h.
74011         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74012         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74013         * MODULES.html.sh: Move 'assert' into the assert section.
74014         Move 'dummy' into the linking section.
74015         Remove ullong_max.
74016         Add section for compatibility checks for POSIX:2001 functions,
74017         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74018         winsz-ioctl, and winsz-termios into it.
74019         Add lchmod.
74020         Add top-level Misc section and put host-os, perl, and uptime
74021         into it.
74022
74023 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74024
74025         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74026         now assume the stdint module.  Do not include inttypes.h.
74027         * lib/fsusage.h: Likewise.
74028         * lib/getndelim2.c: Likewise.
74029         * lib/human.h: Likewise.
74030         * lib/inttostr.h: Likewise.
74031         * lib/obstack.c: Likewise.
74032         * lib/regex_internal.h: Likewise.
74033         * lib/tempname.c: Likewise.
74034         * lib/utimecmp.c: Likewise.
74035         * lib/xstrtol.h: Likewise.
74036
74037         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74038
74039         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74040         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74041         * lib/xtime.h: Likewise.
74042
74043 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * modules/openat (Files): Add lib/fchmodat.c.
74046         Fixes problem reported by Jay Youngman.
74047
74048 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74051         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74052
74053 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74054             Bruno Haible  <bruno@clisp.org>
74055
74056         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74057         and is a script that invokes bison. Tighten the code. Add comments.
74058
74059 2006-08-18  Jim Meyering  <jim@meyering.net>
74060
74061         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74062         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74063         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74064         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74065
74066 2006-08-18  Bruno Haible  <bruno@clisp.org>
74067
74068         * modules/bison-i18n: New file.
74069         * MODULES.html.sh (Internationalization functions): Add it.
74070
74071 2006-08-18  Bruno Haible  <bruno@clisp.org>
74072
74073         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74074         sys/statvfs.h. When getmntinfo was found, check its declaration and
74075         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74076
74077 2006-08-18  Bruno Haible  <bruno@clisp.org>
74078
74079         * m4/bison-i18n.m4: New file, from bison.
74080
74081 2006-08-18  Bruno Haible  <bruno@clisp.org>
74082
74083         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74084         (ME_DUMMY): Treat "kernfs" as a dummy.
74085         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74086
74087 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74088
74089         Update from coreutils.
74090
74091         2006-08-15  Jim Meyering  <jim@meyering.net>
74092
74093         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74094
74095         2006-01-17  Jim Meyering  <jim@meyering.net>
74096
74097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74098
74099         2006-01-11  Jim Meyering  <jim@meyering.net>
74100
74101         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74102         Check for the lchmod function.
74103
74104 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         Update from coreutils.
74107
74108         * lib/__fpending.h: Add copyright notice.
74109         * lib/fprintftime.h: Likewise.
74110         * lib/savedir.c: Use (C) in copyright notice.
74111         * lib/savedir.h: Likewise.
74112
74113         2006-08-15  Jim Meyering  <jim@meyering.net>
74114
74115         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74116         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74117         in support of the EXPECTED_ERRNO macro.
74118         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74119         definitions.  Instead, define the appropriate symbols and include
74120         "at-func.c".
74121         * lib/mkdirat.c (mkdirat): Likewise.
74122         * lib/fchmodat.c (fchmodat): Likewise.
74123         (ENOSYS): Remove definition.
74124         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74125         it.  Don't include "unistd--.h" -- it wasn't ever used.
74126
74127         2006-01-17  Jim Meyering  <jim@meyering.net>
74128
74129         Rewrite fts.c not to change the current working directory,
74130         by using openat, fstatat, fdopendir, etc..
74131
74132         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74133         (HAVE_OPENAT_SUPPORT): Define.
74134         [_LIBC] (fchdir): Don't undef or define; no longer used.
74135         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74136         Now, this `function' always succeeds, and consumes its file descriptor
74137         parameter -- so callers must not close such FDs.  Update callers.
74138         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74139         (diropen): Add parameter, SP.  Adjust all callers.
74140         Implement using diropen_fd, rather than open.
74141         (fts_open): Initialize new member, fts_cwd_fd.
74142         Remove fts_rft-setting code.
74143         (fts_close): Close fts_cwd_fd, if necessary.
74144         (__opendir2): Define in terms of opendir or opendirat,
74145         depending on whether the FST_NOCHDIR flag is set.
74146         (fts_build): Since fts_safe_changedir consumes its FD, and since
74147         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74148         and close the dup'd file descriptor upon failure.
74149         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74150         (fts_safe_changedir): Tweak semantics to reflect that this function
74151         now calls cwd_advance_fd and hence consumes its FD argument.
74152         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74153         [struct FTS] (fts_rft): Remove now-unused member.
74154         [struct FTS] (fts_cycle.state): Improve comment.
74155
74156         * lib/openat.c (openat_needs_fchdir): New function.
74157         * lib/openat.h (openat_needs_fchdir): Declare it.
74158
74159 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74162         Problem and fix reported by Pádraig Brady in
74163         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74164
74165 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74168
74169 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * lib/memcoll.c (memcoll): Optimize for the common case where the
74172         arguments are bytewise equal.
74173
74174 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * doc/regexprops-generic.texi: Add a copyright notice.
74177
74178 2006-08-15  Bruno Haible  <bruno@clisp.org>
74179
74180         * modules/tmpdir (License): Change to LGPL.
74181
74182 2006-08-15  Bruno Haible  <bruno@clisp.org>
74183
74184         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74185         module.
74186
74187 2006-08-14  Simon Josefsson  <jas@extundo.com>
74188
74189         * config/srclist.txt: Add gnupload.
74190
74191 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74192
74193         Change copyright notice from LGPL 2 to GPL 2, since that's the
74194         standard form used in the gnulib repository.
74195         * tests/test-lock.c: Likewise.
74196         * tests/test-stdint.c: Likewise.
74197         * tests/test-tls.c: Likewise.
74198
74199         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74200         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74201         Add copyright notice.
74202
74203         * check-module: Add copyright notice.  Output a copyright
74204         notice if "--version" is specified.
74205         * modules/COPYING: New file.
74206         * tests/test-getaddrinfo.c: Add copyright notice.
74207         * tests/test-verify.c: Likewise.
74208
74209 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         Change copyright notice from LGPL 2 to GPL 2, since that's the
74212         standard form used in the gnulib repository.
74213         * lib/lock.c: LGPL -> GPL.
74214         * lib/lock.h: Likewise.
74215         * lib/strnlen1.c: Likewise.
74216         * lib/strnlen1.h: Likewise.
74217         * lib/tls.c: Likewise.
74218         * lib/tls.h: Likewise.
74219         * lib/tmpdir.c: Likewise.
74220
74221         * lib/TODO: Remove; this belongs only in coreutils.
74222
74223 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         Add copyright notices to long-enough files that lack them, since
74226         otherwise the files aren't clearly free.  Use the same notice that
74227         getdate.texi already uses.
74228         * doc/alloca-opt.texi: Add copyright notice.
74229         * doc/alloca.texi: Likewise.
74230         * doc/ctime.texi: Likewise.
74231         * doc/functions.texi: Likewise.
74232         * doc/gcd.texi: Likewise.
74233         * doc/gnulib-tool.texi: Likewise.
74234         * doc/inet_ntoa.texi: Likewise.
74235         * doc/visibility.texi: Likewise.
74236
74237         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74238         * doc/quote.texi: Add copyright notice.
74239
74240         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74241         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74242         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74243         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74244         is now obsolete, and give a pointer to the Sun list.
74245         Add copyright notice.
74246
74247 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         * config/srclistvars.sh: Add copyright notice.
74250
74251 2006-08-14  Eric Blake  <ebb9@byu.net>
74252
74253         Import the following change from libc:
74254
74255         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74256
74257         Upstream bug 2997.
74258         * lib/misc/error.c: Add space between program name and message if file
74259         name is missing.
74260
74261 2006-08-12  Karl Berry  <karl@gnu.org>
74262
74263         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74264         remove, these originate in gnulib now.
74265
74266 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74267
74268         * doc/Makefile (standards.info standards.html standards.dvi):
74269         Also depend on make-stds.texi.
74270
74271 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74274         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74275
74276         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74277         in wchar_t.  Problem reported by Eric Blake.
74278
74279         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74280         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74281         Also, help the compiler to keep LEN in a register.
74282
74283 2006-08-11  Eric Blake  <ebb9@byu.net>
74284
74285         * users.txt: Sort.  Add tar.
74286
74287 2006-08-11  Bruno Haible  <bruno@clisp.org>
74288
74289         * users.txt: New file.
74290
74291 2006-08-11  Bruno Haible  <bruno@clisp.org>
74292
74293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74294         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74295
74296 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         * modules/snprintf (Depends-on): Remove minmax.
74299         (Maintainer): Add self and Bruno.
74300
74301 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74304         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74305         (EOVERFLOW): Define if the system does not.
74306         Do not include "minmax.h"; it wasn't used.
74307         (snprintf): Don't assume size_t promotes to an unsigned type.
74308         Fix bug when generated string was too long for the buffer: the
74309         buffer's contents are supposed to be the initial prefix of the
74310         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74311         exceeds INT_MAX; do the check ourselves.
74312
74313         Import the following changes from libc:
74314
74315         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74316
74317         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74318         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74319         set wc to the byte which couldn't be converted.
74320         (re_string_reconstruct): Don't clear valid_raw_len before calling
74321         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74322         tip_context using re_string_context_at.
74323
74324         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74325
74326         * lib/posix/regex.h: g++ still cannot handled [restrict].
74327
74328         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74329
74330         * lib/posix/regex.h: Remove special handling for VMS.
74331
74332 2006-08-10  Jim Meyering  <jim@meyering.net>
74333
74334         * modules/same-inode: New module.
74335         * modules/dev-ino: New module.
74336         * modules/cycle-check: Depend on these modules, rather than simply
74337         including their .h files.
74338         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74339         required via m4/cycle-check.m4.
74340         * modules/same: Depend on new same-inode module, rather than
74341         including same-inode.h.
74342         * modules/chdir-safer: New file.
74343
74344         * modules/chown (Depends-on): Add stat-macros.
74345
74346 2006-08-10  Jim Meyering  <jim@meyering.net>
74347
74348         * m4/cycle-check.m4: New file.
74349         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74350         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74351
74352 2006-08-10  Eric Blake  <ebb9@byu.net>
74353
74354         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74355         in from original proposal.
74356
74357 2006-08-10  Eric Blake  <ebb9@byu.net>
74358         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74359
74360         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74361         namespace.
74362
74363 2006-08-10  Bruno Haible  <bruno@clisp.org>
74364
74365         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74366         as well.
74367
74368 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         Sync from coreutils.
74371
74372         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74373
74374         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74375         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74376
74377 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * modules/restrict: Remove; no longer needed now that we assume
74380         Autoconf 2.59 or later.
74381         * MODULES.html.sh: Remove 'restrict'.
74382         * modules/argp (Depends-on): Remove 'restrict'.
74383         * modules/base64 (Depends-on): Likewise.
74384         * modules/gc (Depends-on): Likewise.
74385         * modules/getaddrinfo (Depends-on): Likewise.
74386         * modules/glob (Depends-on): Likewise.
74387         * modules/inet_ntop (Depends-on): Likewise.
74388         * modules/inet_pton (Depends-on): Likewise.
74389         * modules/memxor (Depends-on): Likewise.
74390         * modules/regex (Depends-on): Likewise.
74391         * modules/strtok_r (Depends-on): Likewise.
74392         * modules/time_r (Depends-on): Likewise.
74393
74394 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74397         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74398         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74399         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74400         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74401         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74402         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74403         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74404
74405         Merge from coreutils.
74406         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74407         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74408         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74409         * m4/time_r.m4 (gl_TIME_R): Likewise.
74410
74411 2006-08-09  Karl Berry  <karl@gnu.org>
74412
74413         * config/srclist.txt: no more gettext-tools, per Bruno.
74414
74415 2006-08-08  Eric Blake  <ebb9@byu.net>
74416
74417         * modules/verror: New module.
74418         * MODULES.html.sh: Document it.
74419
74420 2006-08-08  Eric Blake  <ebb9@byu.net>
74421
74422         * lib/verror.h, lib/verror.c: New files.
74423
74424 2006-08-08  Eric Blake  <ebb9@byu.net>
74425
74426         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74427         verror_at_line output complies with GNU Coding Standards even when
74428         file is NULL.
74429
74430 2006-08-07  Bruno Haible  <bruno@clisp.org>
74431
74432         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74433         versions of AIX.
74434         Reported by Ralf Wildenhues.
74435
74436 2006-08-07  Bruno Haible  <bruno@clisp.org>
74437
74438         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74439         in an AC_DEFUN. Needed so that the autoconf snippets can use
74440         AC_REQUIRE.
74441
74442 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74443
74444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74445         Initialize pkgdata_DATA.
74446         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74447         overriding it.
74448
74449 2006-08-06  Eric Blake  <ebb9@byu.net>
74450
74451         * lib/error.h: Fold in some upstream changes from glibc.
74452         * lib/error.c: Likewise.
74453
74454 2006-08-04  Bruno Haible  <bruno@clisp.org>
74455
74456         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74457         Make the mostlyclean-local rule depend on mostlyclean-generic.
74458         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74459
74460 2006-07-31  Bruno Haible  <bruno@clisp.org>
74461
74462         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74463         <stdlib.h>, <string.h>.
74464
74465 2006-07-30  Bruno Haible  <bruno@clisp.org>
74466
74467         * modules/readlink (License): Change to LGPL.
74468
74469 2006-07-30  Bruno Haible  <bruno@clisp.org>
74470
74471         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74472         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74473         set PKGDATADIR to point to it.
74474
74475 2006-07-30  Bruno Haible  <bruno@clisp.org>
74476
74477         * modules/csharpexec (configure.ac): Comment out macro invocation.
74478         * modules/javaexec (configure.ac): Likewise.
74479         * modules/javacomp-script (configure.ac): Likewise.
74480
74481         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74482
74483 2006-07-30  Bruno Haible  <bruno@clisp.org>
74484
74485         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74486         linked-list.
74487
74488 2006-07-30  Bruno Haible  <bruno@clisp.org>
74489
74490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74491
74492 2006-07-30  Bruno Haible  <bruno@clisp.org>
74493
74494         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74495         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74496         get removed.
74497
74498 2006-07-29  Bruno Haible  <bruno@clisp.org>
74499
74500         Make it possible for gnulib-tool to work with locally modified or
74501         augmented gnulib repositories.
74502         * gnulib-tool (func_usage): Document --local-dir option.
74503         (local_gnulib_dir): New variable.
74504         Handle --local-dir option.
74505         (func_lookup_file): New function.
74506         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74507         (func_get_description, func_get_filelist, func_get_description,
74508         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74509         func_get_automake_snippet, func_get_include_directive,
74510         func_get_license, func_get_maintainer): Use func_lookup_file.
74511         (func_import, func_create_testdir): Use func_lookup_file.
74512
74513 2006-07-29  Bruno Haible  <bruno@clisp.org>
74514
74515         * modules/setenv (Depends-on): Add unistd.
74516
74517 2006-07-29  Bruno Haible  <bruno@clisp.org>
74518
74519         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74520
74521 2006-07-29  Bruno Haible  <bruno@clisp.org>
74522
74523         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74524
74525 2006-07-29  Bruno Haible  <bruno@clisp.org>
74526
74527         * gnulib-tool (import, update): If there is no Makefile.am, look at
74528         aclocal.m4, instead of bailing out.
74529
74530 2006-07-29  Bruno Haible  <bruno@clisp.org>
74531
74532         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74533         Categorize the options by when they are useful.
74534
74535 2006-07-29  Bruno Haible  <bruno@clisp.org>
74536
74537         * gnulib-tool (func_usage): Document option --no-libtool.
74538         Handle option --no-libtool.
74539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74540         for changed semantics of $libtool variable.
74541         (func_import): Likewise. If libtool is not used, show this through
74542         an option --no-libtool.
74543         (func_create_testdir): Update.
74544
74545 2006-07-29  Bruno Haible  <bruno@clisp.org>
74546
74547         * gnulib-tool (func_import): Extend error message about missing
74548         --doc-base.
74549
74550 2006-07-29  Bruno Haible  <bruno@clisp.org>
74551
74552         * gnulib-tool (func_import): Don't create the $docbase directory if
74553         there is no file to store there.
74554
74555 2006-07-29  Bruno Haible  <bruno@clisp.org>
74556
74557         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74558         relevant, look for configure.ac there, not in the current directory.
74559         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74560
74561 2006-07-29  Bruno Haible  <bruno@clisp.org>
74562
74563         * gnulib-tool (SORT): New variable.
74564         (func_usage): Undocument --assume-autoconf option.
74565         Remove --assume-autoconf option handling.
74566         (autoconf_minversion): Determine from the contents of configure.ac.
74567         (func_import): Remove autoconf_minversion handling.
74568         Suggested by Eric Blake.
74569
74570 2006-07-29  Bruno Haible  <bruno@clisp.org>
74571
74572         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74573
74574 2006-07-29  Bruno Haible  <bruno@clisp.org>
74575
74576         * config/srclist.txt (*setenv.[ch]): Remove rules.
74577
74578 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74579
74580         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74581
74582 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74583
74584         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74585         arpa/inet.h.
74586
74587 2006-07-28  Simon Josefsson  <jas@extundo.com>
74588
74589         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74590         * modules/inet_pton (Depends-on): Likewise.
74591
74592 2006-07-28  Simon Josefsson  <jas@extundo.com>
74593
74594         * m4/netinet_in_h.m4: New file.
74595
74596 2006-07-28  Simon Josefsson  <jas@extundo.com>
74597
74598         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74599         #include's.
74600
74601 2006-07-28  Simon Josefsson  <jas@extundo.com>
74602
74603         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74604         #include's.
74605
74606 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74607
74608         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74609         setgid on directories only if they set these bits.
74610         * lib/modechange.h: Remove obsolete comment about masks.
74611
74612 2006-07-28  Eric Blake  <ebb9@byu.net>
74613
74614         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74615         macro expansion.
74616
74617 2006-07-28  Bruno Haible  <bruno@clisp.org>
74618
74619         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74620
74621 2006-07-28  Bruno Haible  <bruno@clisp.org>
74622
74623         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74624
74625 2006-07-28  Bruno Haible  <bruno@clisp.org>
74626
74627         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74628         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74629         Define fallbacks.
74630         Avoids link error on FreeBSD 4.x.
74631         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74632
74633         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74634         encoding.
74635         * lib/mbswidth.c (iswcntrl): Likewise.
74636
74637 2006-07-27  Bruno Haible  <bruno@clisp.org>
74638
74639         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74640         test.
74641
74642 2006-07-27  Bruno Haible  <bruno@clisp.org>
74643
74644         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74645         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74646         defined.
74647
74648 2006-07-26  Eric Blake  <ebb9@byu.net>
74649
74650         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74651
74652 2006-07-26  Eric Blake  <ebb9@byu.net>
74653
74654         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74655         like mingw that lack mkstemp.
74656         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74657         avoid compilation warning on mingw.
74658
74659 2006-07-26  Bruno Haible  <bruno@clisp.org>
74660
74661         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74662         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74663         INT_FAST*_MIN, INTPTR_MIN.
74664
74665 2006-07-25  Bruno Haible  <bruno@clisp.org>
74666
74667         * modules/version-etc (Depends-on): Add stdarg.
74668
74669 2006-07-25  Bruno Haible  <bruno@clisp.org>
74670
74671         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74672         complex commands.
74673
74674 2006-07-25  Bruno Haible  <bruno@clisp.org>
74675
74676         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74677         defined in <stdarg.h> or config.h.
74678
74679 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74682         (gl_STDIO_SAFER): Remove.
74683
74684 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * MODULES.html.sh (File stream based Input/Output):
74687         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74688         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74689         * modules/fopen-safer, modules/tmpfile-safer: New files.
74690         * modules/stdio-safer: Remove.
74691
74692 2006-07-24  Bruno Haible  <bruno@clisp.org>
74693
74694         * modules/tmpdir: New file.
74695         * MODULES.html.sh (File system functions): Add it.
74696
74697 2006-07-24  Bruno Haible  <bruno@clisp.org>
74698
74699         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74700         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74701
74702 2006-07-24  Bruno Haible  <bruno@clisp.org>
74703
74704         * modules/clean-temp: New file.
74705
74706 2006-07-24  Bruno Haible  <bruno@clisp.org>
74707
74708         * m4/tmpdir.m4: New file, from GNU gettext.
74709
74710 2006-07-24  Bruno Haible  <bruno@clisp.org>
74711
74712         * lib/tmpdir.h: New file, from GNU gettext.
74713         * lib/tmpdir.c: New file, from GNU gettext.
74714
74715 2006-07-24  Bruno Haible  <bruno@clisp.org>
74716
74717         * lib/clean-temp.h: New file, from GNU gettext.
74718         * lib/clean-temp.c: New file, from GNU gettext.
74719
74720 2006-07-23  Eric Blake  <ebb9@byu.net>
74721
74722         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74723         (Depends-on): Add binary-io.
74724
74725 2006-07-23  Eric Blake  <ebb9@byu.net>
74726
74727         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74728
74729 2006-07-23  Eric Blake  <ebb9@byu.net>
74730
74731         * lib/tmpfile-safer.c: New file.
74732         * lib/stdio-safer.h (fopen_safer): Add prototype.
74733         * lib/stdio--.h (tmpfile): Make safer.
74734
74735 2006-07-23  Bruno Haible  <bruno@clisp.org>
74736
74737         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74738         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74739         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74740         gl_linked_remove_at): Use it.
74741
74742 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74743         and Simon Josefsson <jas@extundo.com>
74744
74745         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74746
74747         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74748
74749 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * modules/close-stream: New file.
74752         * modules/closeout (Description): Make it clear that it exits
74753         with a diagnostic on error.
74754         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74755         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74756
74757 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         * m4/close-stream.m4: New file.
74760
74761 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * lib/close-stream.c, lib/close-stream.h: New files.
74764
74765 2006-07-22  Bruno Haible  <bruno@clisp.org>
74766
74767         Merge from GNU gettext 0.15.
74768
74769         2006-05-01  Bruno Haible  <bruno@clisp.org>
74770
74771                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74772
74773         2006-07-22  Bruno Haible  <bruno@clisp.org>
74774
74775                 * modules/javaversion: New file.
74776                 * MODULES.html.sh (Java): Add javaversion.
74777
74778         2006-03-12  Bruno Haible  <bruno@clisp.org>
74779
74780                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74781
74782         2005-12-04  Bruno Haible  <bruno@clisp.org>
74783
74784                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74785                 (untested).
74786
74787         2006-06-21  Bruno Haible  <bruno@clisp.org>
74788
74789                 Avoid warnings from recent versions of mcs.
74790                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74791                 -o, -L, -r any more. Use options documented since mcs-1.0
74792                 instead. Similarly for -g.
74793
74794         2005-12-04  Bruno Haible  <bruno@clisp.org>
74795
74796                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74797                 .resources, not .resource.
74798
74799         2005-07-09  Bruno Haible  <bruno@clisp.org>
74800
74801                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74802                 add a .dll suffix.
74803                 Reported by Mark Junker <mjscod@gmx.de>.
74804
74805         2006-07-22  Bruno Haible  <bruno@clisp.org>
74806
74807                 * modules/gettext: Upgrade to gettext-0.15.
74808                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74809                 m4/visibility.m4.
74810                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74811
74812 2006-07-22  Bruno Haible  <bruno@clisp.org>
74813
74814         Merge from GNU gettext 0.15.
74815
74816         2006-03-25  Bruno Haible  <bruno@clisp.org>
74817
74818                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74819
74820         2006-07-21  Bruno Haible  <bruno@clisp.org>
74821
74822                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74823                 "1.1".
74824
74825         2006-05-09  Bruno Haible  <bruno@clisp.org>
74826
74827                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74828                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74829                 for the conftestver execution.
74830
74831         2006-05-01  Bruno Haible  <bruno@clisp.org>
74832
74833                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74834                 optional target-version argument. Verify that the compiler
74835                 groks source of the specified source-version, or add -source
74836                 option as necessary. Verify that the compiler produces
74837                 bytecode in the specified target-version, or add -target and
74838                 -source options as necessary. Make the result of the test
74839                 available as variable CONF_JAVAC. Also log error output in
74840                 config.log.
74841
74842         2006-03-11  Bruno Haible  <bruno@clisp.org>
74843
74844                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
74845
74846         2006-05-09  Bruno Haible  <bruno@clisp.org>
74847
74848                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
74849                 CLASSPATH_SEPARATOR to a semicolon.
74850
74851         2006-03-12  Bruno Haible  <bruno@clisp.org>
74852
74853                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
74854                 available as variable CONF_JAVA, for subsequent autoconf
74855                 tests. Also log error output in config.log.
74856
74857         2006-07-19  Bruno Haible  <bruno@clisp.org>
74858
74859                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
74860                 that getline works on glibc2 systems. Needed to avoid trouble
74861                 in relocatable.c.
74862                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
74863
74864         2005-12-04  Bruno Haible  <bruno@clisp.org>
74865
74866                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
74867                 launcher (untested).
74868
74869         2005-12-04  Bruno Haible  <bruno@clisp.org>
74870
74871                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
74872
74873         2006-07-22  Bruno Haible  <bruno@clisp.org>
74874
74875                 * gettext.m4: Update from GNU gettext-0.15.
74876                 * nls.m4: Likewise.
74877                 * po.m4: Likewise.
74878                 * inttypes-pri.m4: Likewise.
74879                 * inttypes-h.m4: Renamed from inttypes.m4.
74880                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
74881
74882 2006-07-22  Bruno Haible  <bruno@clisp.org>
74883
74884         Merge from GNU gettext 0.15.
74885
74886         2005-07-05  Bruno Haible  <bruno@clisp.org>
74887
74888                 * printf-args.c (printf_fetchargs): Work around broken
74889                 definition of wint_t on mingw.
74890
74891         2005-02-12  Bruno Haible  <bruno@clisp.org>
74892
74893                 * xallocsa.h: Add extern "C" for C++.
74894
74895         2006-05-17  Bruno Haible  <bruno@clisp.org>
74896
74897                 Cygwin portability.
74898                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
74899
74900         2006-04-30  Bruno Haible  <bruno@clisp.org>
74901
74902                 * progreloc.c: Include <mach-o/dyld.h> if available.
74903                 (find_executable): Use _NSGetExecutablePath when possible.
74904
74905         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74906
74907                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
74908                 function.
74909
74910         2005-12-29  Bruno Haible  <bruno@clisp.org>
74911
74912                 * progreloc.c (set_program_name_and_installdir): Fix
74913                 compilation error.
74914
74915         2005-12-04  Bruno Haible  <bruno@clisp.org>
74916
74917                 Cygwin portability.
74918                 * progreloc.c: Include <windows.h> also on Cygwin.
74919                 (find_executable): Add support for Cygwin.
74920                 (set_program_name_and_installdir): Handle also platforms with
74921                 nonempty EXEEXT.
74922
74923         2006-07-11  Bruno Haible  <bruno@clisp.org>
74924
74925                 * javacomp.c: Fix a comment.
74926                 Reported by Jim Meyering.
74927
74928         2006-04-30  Bruno Haible  <bruno@clisp.org>
74929
74930                 * javacomp.h (compile_java_class): Add source_version,
74931                 target_version arguments.
74932                 * javacomp.c: Rewritten to choose only a compiler that
74933                 respects the specified source_version and target_version.
74934
74935         2006-06-27  Bruno Haible  <bruno@clisp.org>
74936
74937                 Assume correct S_ISDIR macro.
74938                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
74939
74940         2006-07-22  Bruno Haible  <bruno@clisp.org>
74941
74942                 * javaversion.h: New file, from GNU gettext.
74943                 * javaversion.c: New file, from GNU gettext.
74944                 * javaversion.java: New file, from GNU gettext.
74945                 * javaversion.class: New file, from GNU gettext.
74946
74947         2006-05-17  Bruno Haible  <bruno@clisp.org>
74948
74949                 Cygwin portability.
74950                 * javaexec.c (execute_java_class): Test for jview program
74951                 also on Cygwin.
74952
74953         2006-04-09  Bruno Haible  <bruno@clisp.org>
74954
74955                 * fatal-signal.c: Don't include string.h.
74956                 (at_fatal_signal): Use a copying loop instead of memcpy.
74957
74958         2005-12-04  Bruno Haible  <bruno@clisp.org>
74959
74960                 * csharpexec.c: Add support for 'clix' launcher (untested).
74961                 (execute_csharp_using_sscli): New function.
74962                 (execute_csharp_program): Call it.
74963
74964         2006-06-21  Bruno Haible  <bruno@clisp.org>
74965
74966                 Avoid warnings from recent versions of mcs.
74967                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
74968                 -o, -L, -r any more. Use options documented since mcs-1.0
74969                 instead. Similarly for -g.
74970
74971         2005-07-09  Bruno Haible  <bruno@clisp.org>
74972
74973                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
74974                 add a .dll suffix.
74975                 Reported by Mark Junker <mjscod@gmx.de>.
74976
74977         2006-06-17  Bruno Haible  <bruno@clisp.org>
74978
74979                 * config.charset: Update for NetBSD 3.0.
74980
74981         2006-05-17  Bruno Haible  <bruno@clisp.org>
74982
74983                 Cygwin portability.
74984                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
74985
74986         2006-05-16  Bruno Haible  <bruno@clisp.org>
74987
74988                 * localcharset.c [CYGWIN]: Include <windows.h>.
74989                 (get_charset_aliases): For Cygwin, return the same CPxxx
74990                 aliases list as under WIN32.
74991                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
74992                 the environment variables. Fall back to GetACP().
74993
74994         2006-04-05  Bruno Haible  <bruno@clisp.org>
74995
74996                 * config.charset: Update Juan Manuel Guerrero's address.
74997
74998         2005-02-12  Bruno Haible  <bruno@clisp.org>
74999
75000                 * allocsa.h: Add extern "C" for C++.
75001
75002         2005-02-10  Bruno Haible  <bruno@clisp.org>
75003
75004                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75005                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75006
75007         2006-07-22  Bruno Haible  <bruno@clisp.org>
75008
75009                 * gettext.h: Update to GNU gettext-0.15.
75010
75011 2006-07-22  Bruno Haible  <bruno@clisp.org>
75012
75013         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75014         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75015         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75016
75017 2006-07-21  Eric Blake  <ebb9@byu.net>
75018
75019         * modules/stdlib-safer: New file.
75020         * MODULES.html.sh (File stream based Input/Output): Add
75021         stdlib-safer.
75022
75023 2006-07-21  Eric Blake  <ebb9@byu.net>
75024
75025         * lib/stdlib-safer.h: New file from coreutils, required by
75026         stdlib--.h.
75027
75028 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75031
75032 2006-07-20  Bruno Haible  <bruno@clisp.org>
75033
75034         * gnulib-tool: Recognize new option --assume-autoconf.
75035         (autoconf_minversion): New variable.
75036         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75037
75038 2006-07-20  Bruno Haible  <bruno@clisp.org>
75039
75040         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75041
75042 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75043
75044         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75045         Reindent and repaginate.
75046
75047 2006-07-19  Derek Price  <derek@ximbiot.com>
75048
75049         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75050         Correct grammar.
75051
75052 2006-07-17  Bruno Haible  <bruno@clisp.org>
75053
75054         * modules/list: New file.
75055         * modules/array-list: New file.
75056         * modules/carray-list, modules/carray-list-tests: New files.
75057         * modules/linked-list, modules/linked-list-tests: New files.
75058         * modules/avltree-list, modules/avltree-list-tests: New files.
75059         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75060         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75061         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75062         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75063         * modules/oset: New file.
75064         * modules/array-oset: New file.
75065         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75066         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75067         * tests/test-carray_list.c: New file.
75068         * tests/test-linked_list.c: New file.
75069         * tests/test-avltree_list.c: New file.
75070         * tests/test-rbtree_list.c: New file.
75071         * tests/test-linkedhash_list.c: New file.
75072         * tests/test-avltreehash_list.c: New file.
75073         * tests/test-rbtreehash_list.c: New file.
75074         * tests/test-avltree_oset.c: New file.
75075         * tests/test-rbtree_oset.c: New file.
75076         * MODULES.html.sh (Container data structures): New section.
75077
75078 2006-07-17  Bruno Haible  <bruno@clisp.org>
75079
75080         * m4/gl_list.m4: New file.
75081
75082 2006-07-17  Bruno Haible  <bruno@clisp.org>
75083
75084         * lib/gl_list.h: New file.
75085         * lib/gl_list.c: New file.
75086         * lib/gl_array_list.h: New file.
75087         * lib/gl_array_list.c: New file.
75088         * lib/gl_carray_list.h: New file.
75089         * lib/gl_carray_list.c: New file.
75090         * lib/gl_linked_list.h: New file.
75091         * lib/gl_linked_list.c: New file.
75092         * lib/gl_anylinked_list1.h: New file.
75093         * lib/gl_anylinked_list2.h: New file.
75094         * lib/gl_avltree_list.h: New file.
75095         * lib/gl_avltree_list.c: New file.
75096         * lib/gl_anyavltree_list1.h: New file.
75097         * lib/gl_anyavltree_list2.h: New file.
75098         * lib/gl_rbtree_list.h: New file.
75099         * lib/gl_rbtree_list.c: New file.
75100         * lib/gl_anyrbtree_list1.h: New file.
75101         * lib/gl_anyrbtree_list2.h: New file.
75102         * lib/gl_anytree_list1.h: New file.
75103         * lib/gl_anytree_list2.h: New file.
75104         * lib/gl_linkedhash_list.h: New file.
75105         * lib/gl_linkedhash_list.c: New file.
75106         * lib/gl_anyhash_list1.h: New file.
75107         * lib/gl_anyhash_list2.h: New file.
75108         * lib/gl_avltreehash_list.h: New file.
75109         * lib/gl_avltreehash_list.c: New file.
75110         * lib/gl_rbtreehash_list.h: New file.
75111         * lib/gl_rbtreehash_list.c: New file.
75112         * lib/gl_anytreehash_list1.h: New file.
75113         * lib/gl_anytreehash_list2.h: New file.
75114
75115         * lib/gl_oset.h: New file.
75116         * lib/gl_oset.c: New file.
75117         * lib/gl_array_oset.h: New file.
75118         * lib/gl_array_oset.c: New file.
75119         * lib/gl_avltree_oset.h: New file.
75120         * lib/gl_avltree_oset.c: New file.
75121         * lib/gl_rbtree_oset.h: New file.
75122         * lib/gl_rbtree_oset.c: New file.
75123         * lib/gl_anytree_oset.h: New file.
75124
75125 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75126
75127         * m4/mkancesdirs.m4: New file.
75128         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75129         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75130         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75131         it.
75132
75133 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75136         * lib/mkancesdirs.h: New files.
75137         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75138         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75139         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75140         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75141         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75142         callers changed.  Revamp internals significantly, by not
75143         attempting to create directories that are temporarily more
75144         permissive than the final results.  Do not attempt to use
75145         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75146         This removes some race conditions, fixes some bugs, and simplifies
75147         things.  Use new dirchownmod function to do owner and mode changes.
75148         * lib/mkdir-p.h: Likewise.
75149         * lib/modechange.c (octal_to_mode): New function.
75150         (struct mode_change): New member mentioned.
75151         (make_node_op_equals): New arg mentioned.  All callers changed.
75152         (mode_compile): Keep track of which mode bits the user has explicitly
75153         mentioned.
75154         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75155         New arg PMODE_BITS, to keep track of which mode bits the user
75156         mentioned; it treats S_ISUID and S_ISGID speciall.
75157         All callers changed.
75158         * lib/modechange.h: Likewise.
75159
75160 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75161
75162         * MODULES.html.sh: Add mkancestors.
75163         * modules/mkancesdirs: New module.
75164         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75165         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75166         The chdir-safer and afs files are now orphans; I'll remove them
75167         unless someone speaks up.
75168         Add lib/dirchownmod.c, lib/dirchownmod.h.
75169         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75170         Add lchown, mkancesdirs.
75171         (Maintainer): Add self.
75172
75173 2006-07-15  Karl Berry  <karl@gnu.org>
75174
75175         * gnulib-tool: help message wording/arrangement.
75176
75177 2006-07-14  Simon Josefsson  <jas@extundo.com>
75178
75179         * doc/gnulib.texi (Libtool and Windows): New section.
75180
75181 2006-07-12  Simon Josefsson  <jas@extundo.com>
75182
75183         * modules/gendocs (License): Fix license, approved by Karl.
75184
75185 2006-07-12  Eric Blake  <ebb9@byu.net>
75186
75187         * MODULES.html.sh: Add gendocs.
75188
75189 2006-07-11  Eric Blake  <ebb9@byu.net>
75190
75191         * modules/fdl: New module, to install doc/fdl.texi.
75192         * MODULES.html.sh: Add new section for documentation modules.
75193         * gnulib-tool: Avoid space-tab.
75194         (--doc-base): New option, to manage files from doc.
75195
75196 2006-07-11  Eric Blake  <ebb9@byu.net>
75197
75198         * m4/absolute-header.m4: Fix comments to match recent change.
75199
75200 2006-07-11  Eric Blake  <ebb9@byu.net>
75201
75202         * gnulib-tool: List --doc-base before --tests-base.
75203
75204 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75205
75206         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75207
75208 2006-07-11  Bruno Haible  <bruno@clisp.org>
75209
75210         * README: Mention where to put documentation.
75211
75212 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75213
75214         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75215
75216 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75217
75218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75219         to stdint.m4.
75220
75221 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75224         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75225         "no/such/file/stdint.h" when there is no such file, so that
75226         the resulting C code can be parsed by dodgy compilers.
75227         Problems reported by Bob Proulx.
75228
75229 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75230
75231         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75232         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75233         macros into the GNU _D_EXACT_NAMLEN.
75234         * lib/savedir.c:  Likewise.
75235         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75236
75237 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75238         and Paul Eggert  <eggert@cs.ucla.edu>
75239
75240         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75241         * m4/savedir.m4:
75242         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75243         macros into the GNU _D_EXACT_NAMLEN.
75244
75245 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75248         around the absolute name, to work around a problem with the HP-UX
75249         11.23 native C compiler, reported by Bob Proulx.
75250
75251 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * doc/maintain.texi, make-stds.texi: Sync from
75254         <http://savannah.gnu.org/projects/gnustandards>.
75255
75256 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75257
75258         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75259
75260 2006-07-09  Jim Meyering  <jim@meyering.net>
75261
75262         * m4/glob.m4: Remove a doubled word in a comment.
75263
75264 2006-07-09  Jim Meyering  <jim@meyering.net>
75265
75266         * lib/argp-pv.c: Remove a doubled word in a comment.
75267         * lib/check-version.c (check_version): Likewise.
75268         * lib/javacomp.c (compile_java_class): Likewise.
75269
75270 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75271
75272         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75273         for the benefit of people using Autoconf 2.60.  If you want to
75274         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75275         (or m4/onceonly.m4, if pre-2.57) manually.
75276
75277 2006-07-08  Jim Meyering  <jim@meyering.net>
75278
75279         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75280         comment.
75281         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75282         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75283         comment.
75284
75285 2006-07-08  Jim Meyering  <jim@meyering.net>
75286
75287         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75288
75289 2006-07-07  Simon Josefsson  <jas@extundo.com>
75290
75291         * tests/test-crc.c: Change expected crc value, the test vector
75292         were probably computed using the old broken crc.c?
75293
75294 2006-07-06  Simon Josefsson  <jas@extundo.com>
75295
75296         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75297         now the canonical place for the M4 file).
75298
75299         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75300         from the sys_socket dependency now.
75301
75302         * modules/inet_pton (Files): Ditto.
75303
75304         * modules/inet_ntop (Files): Ditto.
75305
75306 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75307
75308         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75309         not gl_PREREQ_GETUSERSHELL.
75310
75311 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75312
75313         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75314         with only one argument, for Autoconf 2.60.
75315         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75316         expand to nothing, so add a shell command to avoid syntax error.
75317         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75318
75319 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75320
75321         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75322
75323 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75326         no longer needed.  Check for isblank decl.
75327         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75328         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75329         of existence.
75330
75331 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         * lib/getloadavg.c: Use __VMS, not VMS.
75334         * lib/getopt.c: Likewise.
75335         * lib/getpagesize.h: Likewise.
75336         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75337         and probably does not work.
75338
75339 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75340
75341         * lib/.cppi-disable: Add wcwidth.
75342         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75343         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75344         (ISGRAPH): Remove.  All uses changed to isgraph.
75345         (FOLD) [!defined _LIBC]: Remove special case.
75346         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75347         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75348         HAVE_ISBLANK.
75349         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75350         case.
75351
75352 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75353
75354         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75355         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75356         brackets.  Other minor changes to suppress some compiler
75357         warnings.
75358
75359 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75360         and Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75363         of invoking obsolescent AC_HEADER_DIRENT macro.
75364         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75365         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75366         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75367         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75368         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75369         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75370         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75371         * m4/readdir.m4: Remove; no longer needed.
75372
75373 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75374         and Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75377         Don't worry about this obsolete case any more.
75378         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75379         directories.
75380         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75381         worry about this obsolete case any more.
75382         * lib/fts.c: Likewise.
75383         * lib/getcwd.c: Likewise.
75384         * lib/glob.h: Likewise.
75385         * lib/savedir.c: Likewise.
75386
75387 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75390         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75391         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75392         needed.
75393         All uses removed.
75394         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75395         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75396         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75397         needed.
75398         * m4/getdate.m4 (gl_GETDATE): Likewise.
75399         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75400         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75401         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75402         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75403         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75404         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75405         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75406         needed.
75407
75408 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * lib/memcasecmp.c: Include <limits.h>.
75411         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75412         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75413         Don't assume isdigit succeeds only on '0' through '9'.
75414
75415 2006-07-05  Eric Blake  <ebb9@byu.net>
75416
75417         * modules/getaddrinfo (Depends-on): Add snprintf.
75418
75419 2006-07-05  Eric Blake  <ebb9@byu.net>
75420
75421         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75422         to avoid 'header present but could not be compiled' on cygwin.
75423
75424 2006-07-05  Eric Blake  <ebb9@byu.net>
75425
75426         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75427         missing from netdb.h.
75428         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75429
75430 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75431
75432         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75433         no longer needed.
75434         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75435         * m4/getdate.m4 (gl_GETDATE): Likewise.
75436         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75437         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75438         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75439         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75440         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75441
75442 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75443
75444         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75445         All uses of is_space replaced by isspace.
75446         * lib/exit.h: Don't talk about STDC_HEADERS.
75447         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75448         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75449         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75450         replaced by isprint etc.
75451         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75452         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75453         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75454         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75455         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75456         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75457
75458 2006-07-05  Bruno Haible  <bruno@clisp.org>
75459
75460         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75461         the function exists, before testing against AIX.
75462         Reported by Martin Lambers <marlam@marlam.de>.
75463
75464 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75467         From Mark D. Baushke.
75468
75469 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75472         to the absolute name, not just one, to bypass Sun C 5.8's
75473         "warning: #include of /usr/include/... may be non-portable".
75474
75475 2006-07-04  Eric Blake  <ebb9@byu.net>
75476
75477         * modules/dirname-tests: New test module.
75478         * tests/test-dirname.c: New file, replacing dirname.c
75479         TEST_DIRNAME section that was recently deleted.
75480
75481 2006-07-04  Bruno Haible  <bruno@clisp.org>
75482
75483         Assume ANSI C header files and <ctype.h> functions.
75484         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75485         (mbsnwidth): Use isprint, iscntrl instead.
75486
75487 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         Merge from coreutils.
75490         * MODULES.html.sh: Add xstrtold.
75491         * modules/xstrtold: New file.
75492         * modules/cycle-check (Files): Add lib/same-inode.h.
75493         * modules/dirname (Files): Add m4/double-slash-root.m4.
75494         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75495         * modules/mkdir-p (Files): Add lib/same-inode.h.
75496         * modules/same (Files): Add lib/same-inode.h.
75497
75498 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75499
75500         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75501         This is to keep the terminology clean; POSIX talks about
75502         "absolute pathnames", not "full pathnames", but the GNU
75503         Coding Standards say to use "path" for something else;
75504         so use "absolute" to keep both sides happy.
75505         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75506         Set gl_absolute_header, not gl_full_header_path.
75507         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75508         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75509         All uses changed.
75510
75511         Merge from coreutils.
75512
75513         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75514
75515         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75516         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75517         want to require the building of c-strtod.o.
75518         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75519         needs -lm directly.
75520         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75521
75522         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75523
75524         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75525         --as-needed option if available.  Problem reported by Albert Chin in
75526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75527         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75528         cc merely issues a bunch of annoying warnings for --as-needed
75529         (this problem was reported by Bob Proulx).  Also, try linking with
75530         -lm to detect a bug in binutils 2.16 (this problem was reported
75531         by Ralf Wildenhues).
75532
75533         2006-06-18  Jim Meyering  <jim@meyering.net>
75534
75535         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75536         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75537         macro.
75538         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75539         also check for glibc-2.4's abort-inducing bug.
75540
75541         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75542         Low-probability clean-up should be to use rmdir to get rid of
75543         the just-created directory, not unlink.
75544
75545         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75546         configure fail, and request a bug report to inform us about it.
75547         Add a comment that, barring reports to the contrary, in 2007 we'll
75548         assume ftruncate is universally available.
75549
75550         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75551
75552         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75553
75554         2006-03-12  Jim Meyering  <jim@meyering.net>
75555
75556         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75557         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75558         * m4/same.m4 (gl_SAME): Likewise.
75559         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75560
75561         2006-03-11  Eric Blake  <ebb9@byu.net>
75562
75563         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75564         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75565         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75566         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75567
75568 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75571         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75572         reported by Mark D. Baushke, one in
75573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75574
75575         Merge from coreutils.
75576
75577         * lib/.cppi-disable: Add stdint_.h.
75578         * lib/.cvsignore: Add stdint.h.
75579
75580         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75583         both double and long double versions.
75584         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75585         * lib/xstrtold.c: New file.
75586         * lib/xstrtod.h (xstrtold): New decl.
75587
75588         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75589
75590         * lib/filemode.c (setst): Remove.
75591         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75592         (arguably) clearer, and the generated code is a bit smaller on my
75593         Debian GNU/Linux stable x86 host.
75594
75595         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75598         Assume that filemode.h includes sys/types.h and sys/stat.h.
75599         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75600         (ftypelet): Reorder to put common cases first, for efficiency.
75601         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75602         to do 'M'.
75603         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75604         of 10, for compatibility with FreeBSD.  All callers changed.
75605         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75606         types that can't be deduced solely from st_mode.  First arg is now a
75607         const pointer.
75608         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75609         (strmode): Renamed from mode_string.
75610         (filemodestring): New decl.
75611         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75612         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75613         needed.
75614         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75615
75616         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75619         fsusage.h now does that.  Include fsusage.h first, to test interface.
75620         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75621         at most one method (the old code could have generated decls that
75622         didn't conform to C89, not that this was ever exercised).
75623         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75624
75625         2006-03-19  Jim Meyering  <jim@meyering.net>
75626
75627         Work even in a chroot where d_ino values for entries in "/"
75628         don't match the stat.st_ino values for the same names.
75629         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75630         number, iterate through all entries again, using lstat instead.
75631         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75632         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75633
75634         * lib/getcwd.c (__getcwd): Clarify a comment.
75635         Use memcpy in place of a call to strcpy.
75636
75637         2006-03-12  Jim Meyering  <jim@meyering.net>
75638
75639         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75640         matches that of the current directory (which we're about to chdir ".."
75641         out of), then save the dev-ino of the parent, instead.
75642
75643         * lib/same-inode.h (SAME_INODE): New file/macro.
75644         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75645         Include "same-inode.h", instead.
75646         * lib/same.c: Likewise.
75647         * lib/cycle-check.h: Include "same-inode.h".
75648         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75649         * lib/cycle-check.c (SAME_INODE): Remove definition.
75650         * lib/root-dev-ino.h: Include "same-inode.h".
75651
75652         2006-03-11  Eric Blake  <ebb9@byu.net>
75653
75654         * lib/same.c (same_name): s/base_name/last_component/
75655         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75656         * lib/filenamecat.c (file_name_concat): Likewise.
75657
75658         2006-03-11  Eric Blake  <ebb9@byu.net>,
75659                     Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75662         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75663         drive prefix.
75664         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75665         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75666         (last_component): New method.
75667         * lib/dirname.c (dir_len): Determine when drive letters need a
75668         subsequent slash.  Preserve // when it is special.
75669         (dir_name): Don't append dot when drive letter is absolute.
75670         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75671         * lib/basename.c (base_name): New semantics - malloc the result.
75672         Preserve // when it is special.  Preserve relative files that look
75673         like drive letters.
75674         (base_len): Preserve // when it is special.
75675         (last_component): New method, similar to old base_name semantics.
75676         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75677         base_name.  Strip redundant slashes from ///.
75678
75679 2006-07-03  Jim Meyering  <jim@meyering.net>
75680
75681         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75682         macro is used before the first cycle_check call.
75683
75684 2006-07-03  Eric Blake  <ebb9@byu.net>
75685
75686         * modules/dirname (Depends-on): Add xstrndup.
75687
75688 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75691         test cases, so that config.log is a bit easier to follow.
75692
75693 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75696         both are 64 bits, since this seems to be the tradition, and this
75697         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75698         we ever run into a host that prefers long long to long in this
75699         case, we'll need another configure-time test.  Problem reported by
75700         Jim Meyering.
75701
75702 2006-07-02  Eric Blake  <ebb9@byu.net>
75703
75704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75705
75706 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * modules/inttypes (Depends-on): No longer depends on stdint.
75709         * modules/stdint (Description): Say more about assumptions.
75710         Say that the fast types might differ.  Say macros are used.
75711         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75712         (Makefile.am): Revise list of substituted symbols to match
75713         new stdint.m4.
75714         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75715         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75716         * tests/test-stdint.c (verify_same_types)
75717         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75718         the code conforms to C99/C89.
75719         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75720         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75721
75722 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75725         but fix a bug, by requiring at least 64 bits.
75726         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75727         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75728         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75729         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75730
75731         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75732         changes.  Make 2.59 a prerequisite.  Check and substitute for
75733         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75734         inttypes.h.  Do not use special include files; just use the
75735         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75736         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75737         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75738         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75739         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75740         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75741         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75742         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75743         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75744         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75745         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75746         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75747         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75748         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75749         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75750         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75751         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75752         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75753         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75754         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75755         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75756         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75757         not check for things that C99 does not require, e.g., int8_t.  If
75758         a test isn't needed unless <stdint.h> isn't working, and is
75759         unlikely to be needed for any other reason, then don't do it
75760         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75761         size_t, since we assume C89 freestanding at least.  Do not check
75762         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75763         the right thing even if the types are not defined.  Instead use:
75764         (gl_STDINT_TYPE_PROPERTIES): New macro.
75765         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75766         testing whether <sys/types.h> clashes, as Autoconf does this for
75767         us now.  All uses removed.
75768         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75769         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75770         (gl_CHECK_TYPE_SAME):
75771         Remove; no longer needed.
75772         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75773         exists, since we'll return 0 anyway in that case.
75774         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75775
75776 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75779         possible collision with system files.
75780         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75781         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75782         WCHAR_MIN and WCHAR_MAX in this case.
75783         (<stddef.h>): Do not include; no longer needed.
75784         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75785         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75786         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75787         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75788         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75789         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75790         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75791         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75792         !defined(__c99))]: Include in this case too, since it's harmless
75793         now.
75794         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75795         dangerous to do so.
75796         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75797         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75798         (_STDINT_MIN, _STDINT_MAX): New macros.
75799         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75800         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75801         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75802         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75803         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75804         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75805         macros, not typedefs; this simplifies things quite a bit.
75806         Use long int for all types narrower than int64_t.
75807         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75808         Define in terms of long long int or int64_t or long int,
75809         not int64_t or int32_t.  This saves some compile-time testing.
75810         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75811         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75812         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75813         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75814         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75815         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75816         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75817         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75818         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75819         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75820         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75821         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75822         undef any previous version and define our own version, for
75823         simplicity and consistency with the new macros for types.
75824         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75825         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75826         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75827         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75828         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75829         @WINT_T_SUFFIX@ to keep things simple here.
75830         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75831         Simplify by assuming typical 8/16/32/64 host, since we're
75832         already doing that elsewhere anyway.
75833         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75834         and assume long long int is 64 bits if available.  This
75835         speeds up 'configure'.
75836
75837 2006-07-01  Eric Blake  <ebb9@byu.net>
75838
75839         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75840         Reported by Andreas Buening.
75841
75842 2006-07-01  Eric Blake  <ebb9@byu.net>
75843
75844         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
75845
75846 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75847
75848         * lib/getaddrinfo.c: fixed typo
75849
75850 2006-06-29  Jim Meyering  <jim@meyering.net>
75851
75852         * modules/strftime (Maintainer): Add my name, since with the
75853         FPRINTFTIME changes strftime.c has forked from glibc.
75854
75855 2006-06-29  Eric Blake  <ebb9@byu.net>
75856
75857         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
75858
75859 2006-06-29  Eric Blake  <ebb9@byu.net>
75860
75861         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
75862
75863 2006-06-29  Eric Blake  <ebb9@byu.net>
75864
75865         * lib/stat_.h: New file.
75866
75867 2006-06-29  Eric Blake  <ebb9@byu.net>
75868
75869         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
75870         unused static function.
75871
75872 2006-06-29  Eric Blake  <ebb9@byu.net>
75873
75874         * doc/functions.texi (Function Portability): Document missing lstat
75875         on mingw.
75876
75877 2006-06-29  Eric Blake  <ebb9@byu.net>
75878
75879         * MODULES.html.sh: Add sys_stat.
75880         * modules/sys_stat: New module.
75881         * modules/mkstemp (Depends-on): Add sys_stat.
75882
75883 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75884
75885         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
75886
75887 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75888
75889         * m4/c-bs-a.m4: Removed.
75890
75891 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75892
75893         * lib/strftime.c: Assume strftime() exists.
75894
75895 2006-06-29  Derek Price  <derek@ximbiot.com>
75896
75897         * modules/c-bs-a: Removed - \a is C89.
75898         * MODULES.html.sh: Remove c-bs-a.
75899
75900 2006-06-29  Bruno Haible  <bruno@clisp.org>
75901
75902         * modules/wcwidth (License): Change to LGPL.
75903
75904 2006-06-28  Simon Josefsson  <jas@extundo.com>
75905
75906         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
75907         on _WIN32.
75908
75909         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
75910         getnameinfo.
75911
75912 2006-06-28  Simon Josefsson  <jas@extundo.com>
75913
75914         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
75915
75916 2006-06-28  Simon Josefsson  <jas@extundo.com>
75917
75918         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
75919         functions there.  It will succeed on Windows XP, but on Windows
75920         2000 and (presumably) earlier, it will fail, and use the internal
75921         re-implementation.
75922         (use_win32_p): New function.
75923         (getaddrinfo): Use strtoul on servname, to support numeric ports.
75924         Support AI_NUMERICSERV to disable getservbyname.
75925         (getnameinfo): New function, only supports
75926         NI_NUMERICHOST|NI_NUMERICSERV for now.
75927
75928         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
75929         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
75930         getnameinfo.
75931
75932 2006-06-28  Eric Blake  <ebb9@byu.net>
75933
75934         * modules/wcwidth: New file.
75935         * modules/mbchar (Depends-on): Add wcwidth.
75936         * modules/mbswidth (Depends-on): Add wcwidth.
75937         * MODULES.html.sh: Add wcwidth.
75938
75939 2006-06-28  Eric Blake  <ebb9@byu.net>
75940
75941         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
75942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
75943
75944 2006-06-28  Eric Blake  <ebb9@byu.net>
75945
75946         * lib/xvasprintf.h: Fix comments.
75947
75948 2006-06-28  Eric Blake  <ebb9@byu.net>
75949
75950         * lib/mbchar.h (wcwidth): Include wcwidth.h.
75951         * lib/mbswidth.c (wcwidth): Move from here...
75952         * lib/wcwidth.h: ...to this new file.
75953
75954 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75955
75956         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
75957
75958         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
75959         it's obsolete.
75960         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
75961
75962 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75963
75964         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
75965         Autoconf 2.60 says this stuff was obsolete.
75966
75967 2006-06-28  Bruno Haible  <bruno@clisp.org>
75968
75969         * modules/wcwidth (Files): Add m4/wchar_t.m4.
75970
75971 2006-06-28  Bruno Haible  <bruno@clisp.org>
75972
75973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
75974         gt_TYPE_WCHAR_T.
75975
75976 2006-06-28  Bruno Haible  <bruno@clisp.org>
75977
75978         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
75979         declaration for wcwidth.
75980         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
75981
75982 2006-06-28  Bruno Haible  <bruno@clisp.org>
75983
75984         * lib/mkdtemp.c [MINGW]: Include <io.h>.
75985         (mkdir): Define using _mkdir.
75986
75987 2006-06-28  Bruno Haible  <bruno@clisp.org>
75988
75989         * lib/getaddrinfo.h: Fix POSIX URL.
75990         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
75991         _WIN32.
75992         (use_win32_p): Make static.
75993         (getaddrinfo): Reject service name if it is empty or does not consist
75994         solely of decimal digits, or if its value is > 65535.
75995         (getnameinfo): Remove useless casts.
75996
75997 2006-06-27  Simon Josefsson  <jas@extundo.com>
75998
75999         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76000         Eggert and Martin Lambers.
76001
76002 2006-06-27  Simon Josefsson  <jas@extundo.com>
76003
76004         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76005         Eggert and Martin Lambers.
76006
76007 2006-06-27  Bruno Haible  <bruno@clisp.org>
76008
76009         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76010         result to 0, not to empty.
76011         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76012
76013 2006-06-27  Bruno Haible  <bruno@clisp.org>
76014
76015         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76016
76017 2006-06-26  Simon Josefsson  <jas@extundo.com>
76018
76019         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76020         present.
76021
76022 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76023
76024         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76025         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76027
76028 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76029
76030         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76031
76032 2006-06-26  Bruno Haible  <bruno@clisp.org>
76033
76034         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76035
76036 2006-06-26  Bruno Haible  <bruno@clisp.org>
76037
76038         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76039
76040 2006-06-26  Bruno Haible  <bruno@clisp.org>
76041
76042         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76043         SGI C compiler in pre-C99 mode.
76044         Suggested by Mark D. Baushke and Larry Jones.
76045
76046 2006-06-26  Bruno Haible  <bruno@clisp.org>
76047
76048         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76049         WCHAR_MAX.
76050         Reported by Mark D. Baushke and Larry Jones.
76051
76052 2006-06-26  Bruno Haible  <bruno@clisp.org>
76053
76054         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76055         in pre-C99 mode.
76056         Suggested by Mark D. Baushke and Larry Jones.
76057
76058 2006-06-23  Simon Josefsson  <jas@extundo.com>
76059             Bruno Haible  <bruno@clisp.org>
76060
76061         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76062         Emit mostlyclean-local rule.
76063         (func_emit_tests_Makefile_am): Likewise.
76064         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76065
76066 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76067
76068         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76069
76070 2006-06-23  Bruno Haible  <bruno@clisp.org>
76071
76072         * tests/test-stdint.c: Update to match ISO C 99 Technical
76073         Corrigendum 1.
76074
76075 2006-06-23  Bruno Haible  <bruno@clisp.org>
76076
76077         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76078
76079 2006-06-23  Bruno Haible  <bruno@clisp.org>
76080
76081         * lib/stdint_.h: Treat IRIX like OpenBSD.
76082
76083 2006-06-23  Bruno Haible  <bruno@clisp.org>
76084
76085         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76086         ISO C 99 Technical Corrigendum 1.
76087
76088 2006-06-22  Simon Josefsson  <jas@extundo.com>
76089
76090         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76091         MinGW.
76092
76093 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76096         needed.  Some compiler complained about some of them.  Problem reported
76097         by Larry Jones in
76098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76099
76100 2006-06-21  Simon Josefsson  <jas@extundo.com>
76101
76102         * tests/test-getaddrinfo.c: New file.
76103
76104         * modules/getaddrinfo-tests: New file.
76105
76106         * MODULES.html.sh: Add inet_pton.
76107
76108         * modules/inet_pton: New file.
76109
76110 2006-06-21  Simon Josefsson  <jas@extundo.com>
76111
76112         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76113         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76114         of using the (limited) gnulib implementation on Windows XP.
76115
76116         * m4/inet_pton.m4: New file.
76117
76118 2006-06-21  Simon Josefsson  <jas@extundo.com>
76119
76120         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76121         variable.
76122
76123         * lib/socket_.h: Don't define WINVER.
76124
76125         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76126         slightly modified to work in gnulib.
76127
76128 2006-06-21  Simon Josefsson  <jas@extundo.com>
76129
76130         * doc/gnulib.texi (Windows sockets): Add.
76131
76132 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * lib/read-file.c (fread_file): Start with buffer allocation of
76135         0 bytes rather than 1 byte; this simplifies the code.
76136         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76137         code to free buffer and save/restore errno.
76138         (internal_read_file): Remove unused local.
76139
76140 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76143         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76144         Problem reported by Denis Excoffier in
76145         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76146
76147 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76148
76149         * modules/sys_socket, modules/socklen: Include sys/types since
76150         FreeBSD 4.x's sys/socket.h needs it.
76151
76152 2006-06-19  Simon Josefsson  <jas@extundo.com>
76153
76154         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76155
76156 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76159
76160 2006-06-19  Bruno Haible  <bruno@clisp.org>
76161
76162         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76163         and FULL_PATH_INTTYPES_H in angle brackets.
76164         Reported by Mark D. Baushke <mdb@gnu.org>.
76165
76166 2006-06-17  Eric Blake  <ebb9@byu.net>
76167
76168         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76169         errno.
76170
76171 2006-06-17  Bruno Haible  <bruno@clisp.org>
76172
76173         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76174         <sys/inttypes.h>.
76175
76176 2006-06-17  Bruno Haible  <bruno@clisp.org>
76177
76178         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76179         whether errno is declared. Assume <errno.h> declares errno.
76180
76181 2006-06-17  Bruno Haible  <bruno@clisp.org>
76182
76183         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76184
76185 2006-06-17  Bruno Haible  <bruno@clisp.org>
76186
76187         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76188         problem on Solaris 2.5.1.
76189
76190 2006-06-16  Eric Blake  <ebb9@byu.net>
76191
76192         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76193         * lib/unicodeio.c [!defined errno]: Likewise.
76194         * lib/strtol.c [!defined errno]: Likewise.
76195         * lib/strtod.c [!defined errno]: Likewise.
76196
76197 2006-06-15  Eric Blake  <ebb9@byu.net>
76198
76199         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76200
76201 2006-06-15  Eric Blake  <ebb9@byu.net>
76202
76203         * config/srclist.txt (ssize_t.m4): Lose sync.
76204
76205 2006-06-15  Bruno Haible  <bruno@clisp.org>
76206
76207         * modules/stdint (Files): Include m4/full-header-path.m4,
76208         m4/size_max.m4, m4/wchar_t.m4.
76209         (Makefile.am): Many more substitutions.
76210         * modules/stdint-tests: New file.
76211         * tests/test-stdint.c: New file.
76212
76213 2006-06-15  Bruno Haible  <bruno@clisp.org>
76214
76215         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76216         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76217         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76218         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76219         gl_CHECK_TYPE_SAME): New macros.
76220
76221 2006-06-15  Bruno Haible  <bruno@clisp.org>
76222
76223         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76224
76225 2006-06-15  Bruno Haible  <bruno@clisp.org>
76226
76227         * lib/stdint_.h: Rewritten to be fully auto-configured.
76228         Fixes bug on HP-UX/IA64.
76229
76230 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * lib/getdate.y (__attribute__): Don't define if already defined.
76233         Problem reported by Larry Jones.
76234         * lib/utimens.c (__attribute__): Likewise.
76235
76236 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76239         reported by Andreas Schwab.
76240
76241 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76242             Bruno Haible  <bruno@clisp.org>
76243
76244         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76245         check for the declaration of strnlen and a run test that exposes the
76246         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76247         rpl_strndup.
76248
76249 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76250             Bruno Haible  <bruno@clisp.org>
76251
76252         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76253
76254 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76255
76256         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76257         compile test, for Tru64 4.0D.
76258
76259 2006-05-28  Karl Berry  <karl@gnu.org>
76260
76261         * config/srclist.txt (printf-args.c): lose sync.
76262
76263 2006-05-26  Martin Lambers  <marlam@marlam.de>
76264
76265         * lib/getpass.c: Updates the test for the native W32 API, and adds
76266         missing includes, thus fixing compilation warnings.
76267
76268 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76269
76270         * lib/exclude.c (exclude_fnmatch): New function.
76271         (excluded_file_name): Call exclude_fnmatch.
76272         * lib/exclude.h (excluded_file_name): New prototype
76273
76274 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76275
76276         * lib/tempname.c (small_open, large_open): New macros.
76277         (__open, __open64) [!_LIBC]: Remove.
76278         (__gen_tempname): Use small_open and large_open instead of __open
76279         and __open64.  This fixes a portability bug on HP-UX 11.11i
76280         reported by Simon Wing-Tang in
76281         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76282
76283 2006-05-24  Bruno Haible  <bruno@clisp.org>
76284
76285         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76286         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76287         Reported by Thorsten Maerz <torte@netztorte.de> via
76288         Aaron Stone <aaron@serendipity.cx>.
76289
76290 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76293         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76294         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76295         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76296         not really conditional on the cache.
76297         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76298
76299 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76302         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76303         (my_usleep): Don't mishandle maximum value.
76304
76305 2006-05-19  Jim Meyering  <jim@meyering.net>
76306
76307         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76308
76309 2006-05-17  Bruno Haible  <bruno@clisp.org>
76310
76311         Cygwin portability.
76312         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76313
76314 2006-05-17  Bruno Haible  <bruno@clisp.org>
76315
76316         * lib/stdint_.h: Fix recognition of Cygwin.
76317
76318 2006-05-15  Bruno Haible  <bruno@clisp.org>
76319
76320         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76321         on libtool patch by Ralf Wildenhues.
76322
76323 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76324
76325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76326         test for C99 conformance; (bool) 0.5 is an integer constant
76327         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76328         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76329
76330 2006-05-11  Simon Josefsson  <jas@extundo.com>
76331
76332         * m4/xvasprintf.m4: Fix obvious typo.
76333
76334 2006-05-11  Jim Meyering  <jim@meyering.net>
76335
76336         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76337         James Lemley.
76338
76339 2006-05-10  Simon Josefsson  <jas@extundo.com>
76340
76341         * lib/md4.c: Typo fix, update copyright years.
76342         (K1, K2): Don't use L because it turn computations into 64-bit on
76343         64-bit platforms.
76344
76345 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76348         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76349         unwanted sign propagation, e.g., on hosts with 64-bit int.
76350         There still are some problems with reeelly weird theoretical hosts
76351         (e.g., 33-bit int) but it's not worth worrying about now.
76352         * lib/sha1.c (rol): Likewise.
76353         (K1, K2, K3, K4): Remove unnecessary L suffix.
76354
76355 2006-05-10  Bruno Haible  <bruno@clisp.org>
76356
76357         * lib/des.c: Cast to avoid warnings.
76358
76359 2006-05-09  Bruno Haible  <bruno@clisp.org>
76360
76361         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76362         (Depends-on): Depend also on xsize, stdarg.
76363         (configure.ac): Add gl_XVASPRINTF.
76364
76365 2006-05-09  Bruno Haible  <bruno@clisp.org>
76366
76367         * m4/xvasprintf.m4: New file.
76368
76369 2006-05-09  Bruno Haible  <bruno@clisp.org>
76370
76371         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76372         (EOVERFLOW): Define fallback value.
76373         (xstrcat): New function.
76374         (xvasprintf): Recognize the special case of a string concatenation.
76375
76376 2006-05-08  Eric Blake  <ebb9@byu.net>
76377
76378         * gnulib-tool (func_version): Base copyright year on CVS date.
76379         (func_emit_copyright_notice): New function.
76380         (func_emit_lib_Makefile_am): Use it.
76381         (func_emit_tests_Makefile_am): Likewise.
76382         (func_import): Likewise.
76383
76384 2006-05-08  Bruno Haible  <bruno@clisp.org>
76385
76386         * modules/stdarg: New file.
76387         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76388
76389 2006-05-08  Bruno Haible  <bruno@clisp.org>
76390
76391         * m4/stdarg.m4: New file, from GNU gettext.
76392
76393 2006-05-08  Bruno Haible  <bruno@clisp.org>
76394
76395         * config/srclist.txt (build-aux/config.rpath): different from latest
76396         release.
76397
76398 2006-05-08  Bruno Haible  <bruno@clisp.org>
76399
76400         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76401
76402 2006-05-05  Jim Meyering  <jim@meyering.net>
76403
76404         * m4/warning.m4: New file, derived from bison's file by the same name.
76405
76406 2006-05-03  Bruno Haible  <bruno@clisp.org>
76407
76408         * lib/stdint_.h: Shorter URL.
76409         * lib/inttypes.h: Likewise.
76410
76411 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76412
76413         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76414
76415 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76416
76417         * lib/verify.h: Document the internals better.  Most of this change
76418         was written by Bruno Haible.
76419
76420 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         * doc/verify.texi: New file, partly based on a proposal by
76423         Bruno Haible.
76424
76425 2006-05-02  Bruno Haible  <bruno@clisp.org>
76426
76427         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76428         test from here...
76429         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76430
76431 2006-04-29  Bruno Haible  <bruno@clisp.org>
76432
76433         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76434         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76435
76436 2006-04-29  Bruno Haible  <bruno@clisp.org>
76437
76438         * gnulib-tool: Make --update option actually work.
76439
76440 2006-04-29  Bruno Haible  <bruno@clisp.org>
76441
76442         * doc/gcd.texi: New file.
76443         * doc/gnulib.texi: Include it.
76444
76445 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76446
76447         * lib/getdate.y (get_date): When adding relative date, start with the
76448         initial time, not with the result of the first mktime call.
76449
76450 2006-04-25  Bruno Haible  <bruno@clisp.org>
76451
76452         * gnulib-tool (func_import): Output the include directives in three
76453         blocks, sorted separately.
76454         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76455
76456 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76459         to define main with arguments, for C++.  Reported by Eric Blake.
76460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76461         Prefer 'int main ()' to 'int main (void)', for C++.
76462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76463         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76464         for 'main', for C99 and C++.
76465
76466 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76469         Don't assume that exit status -1 is valid.
76470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76471         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76472         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76473         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76474         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76475         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76476         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76477         functions can be used without declaring them, or that you can
76478         exit with status -1.
76479         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76480
76481 2006-04-24  Karl Berry  <karl@gnu.org>
76482
76483         * config/srclist.txt (longdouble.m4): sync lost.
76484
76485 2006-04-24  Eric Blake  <ebb9@byu.net>
76486
76487         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76488
76489 2006-04-24  Bruno Haible  <bruno@clisp.org>
76490
76491         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76492         poll() implementation in AIX.
76493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76494
76495 2006-04-24  Bruno Haible  <bruno@clisp.org>
76496
76497         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76498         assigned exactly once.
76499
76500 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76501             Bruno Haible  <bruno@clisp.org>
76502
76503         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76504         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76505         for AM_CPPFLAGS.
76506
76507 2006-04-23  Bruno Haible  <bruno@clisp.org>
76508
76509         * modules/copy-file: Depend on unistd.
76510         * modules/execute: Likewise.
76511         * modules/fatal-signal: Likewise.
76512         * modules/findprog: Likewise.
76513         * modules/mkdtemp : Likewise.
76514         * modules/pipe: Likewise.
76515         * modules/wait-process: Likewise.
76516
76517 2006-04-23  Bruno Haible  <bruno@clisp.org>
76518
76519         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76520         condition was already detected.
76521         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76522
76523 2006-04-23  Bruno Haible  <bruno@clisp.org>
76524
76525         * lib/copy-file.c: Include <unistd.h> unconditionally.
76526         * lib/execute.c: Likewise.
76527         * lib/fatal-signal.c: Likewise.
76528         * lib/findprog.c: Likewise.
76529         * lib/mkdtemp.c: Likewise.
76530         * lib/pipe.h: Likewise.
76531         * lib/pipe.c: Likewise.
76532         * lib/wait-process.h: Likewise.
76533
76534 2006-04-23  Bruno Haible  <bruno@clisp.org>
76535
76536         * gnulib-tool (func_usage): Fix --import description. Document
76537         --update.
76538         (func_import): Create temporary file in a temporary directory, if
76539         --dry-run is specified. Silence errors from 'grep' when there are no
76540         m4 files in $m4dir.
76541         (func_create_testdir): Silence errors from 'grep' when there are no
76542         m4 files in $m4dir.
76543         Reported by Karl Berry <karl@freefriends.org>.
76544
76545 2006-04-20  Bruno Haible  <bruno@clisp.org>
76546
76547         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76548         one argument, so that the code will be portable to Autoconf 2.60.
76549         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76550         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76551         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76552
76553 2006-04-19  Derek Price  <derek@ximbiot.com>
76554             Eric Blake  <ebb9@byu.net>
76555
76556         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76557         rather than "/full/path.h".  Update comment to match.  Shorten &
76558         generalize m4_translit call via AS_TR_CPP.
76559
76560 2006-04-19  Derek Price  <derek@ximbiot.com>
76561             Eric Blake  <ebb9@byu.net>
76562
76563         * lib/inttypes.h: Correct grammar in comment.
76564
76565 2006-04-18  Derek Price  <derek@ximbiot.com>
76566             Paul Eggert  <eggert@cs.ucla.edu>
76567
76568         * modules/inttypes: New file.
76569         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76570
76571 2006-04-18  Derek Price  <derek@ximbiot.com>
76572             Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76575         New files.
76576
76577 2006-04-18  Derek Price  <derek@ximbiot.com>
76578             Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * lib/inttypes.h: New file.
76581         * lib/strtoimax.c: Assume <inttypes.h>.
76582
76583 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76586         isn't mounted.  Problem reported by Kir Kolyshkin.
76587
76588 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76591         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76592         Derek R. Price.
76593         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76594         implementation.
76595
76596 2006-04-12  Eric Blake  <ebb9@byu.net>
76597
76598         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76599         is now done automatically by the corresponding Autoconf macro.
76600
76601 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76602
76603         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76604         time_r.h.
76605
76606 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76607
76608         Merge regex changes from libc, removing some of our
76609         POSIX-conformance changes that were rejected and redoing them in a
76610         less-intrusive way.
76611
76612         * lib/regcomp.c (re_compile_internal, init_dfa):
76613         Length arg is now size_t, not Idx.  All uses changed.
76614         (peek_token): Forward decl now says internal_function.
76615         (__re_error_msgid, __re_error_msgid_idx):
76616         Now static rather than extern with attribute_hidden.
76617         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76618         For some reason libc prefers K&R style defns for external functions.
76619         (regerror) [!defined _LIBC]: Likewise.
76620         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76621         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76622         (build_range_exp, build_collating_symbol):
76623         Use K&R-style defn.
76624         (re_compile_fastmap): Use '\0' to memset, not 0.
76625         (utf8_sb_map): Make the calculations more obvious.
76626         (init_dfa, parse_bracket_exp, build_charclass_op):
76627         Call calloc and cast result, as glibc does.
76628         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76629         (build_range_exp, build_collating_symbol):
76630         Now internal functions.
76631
76632         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76633
76634         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76635         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76636         Don't depend on VMS; depend on __VMS instead, for POSIX
76637         namespace cleanness.
76638         (regoff_t): Define to ssize_t, not long int.
76639
76640         Remove the REG_ macros named below.  Instead, make the old names
76641         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76642         __USE_GNU_REGEX.
76643         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76644         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76645         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76646         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76647         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76648         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76649         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76650         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76651         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76652         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76653         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76654         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76655         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76656         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76657         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76658         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76659         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76660         (REG_NREGS):
76661         Remove.  All uses replaced by the old RE_* names.
76662         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76663         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76664         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76665         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76666         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76667         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76668         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76669         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76670         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76671         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76672         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76673         Don't bother having these macros be independent of each others'
76674         values, since they no longer exist in the POSIX name space.
76675
76676         Rename the following member names back to their old names,
76677         unless !__USE_GNU_REGEX.  All uses changed back.
76678         (buffer): Renamed from re_buffer.
76679         (allocated): Renamed from re_allocated.
76680         (used): Renamed from re_used.
76681         (syntax): Renamed from re_syntax.
76682         (fastmap): Renamed from re_fastmap.
76683         (translate): Renamed from re_translate.
76684         (can_be_null): Renamed from re_can_be_null.
76685         (regs_allocated): Renamed from re_regs_allocated.
76686         (fastmap_accurate): Renamed from re_fastmap_accurate.
76687         (no_sub): Renamed from re_no_sub.
76688         (not_bol): Renamed from re_not_bol.
76689         (not_eol): Renamed from re_not_eol.
76690         (newline_anchor): Renamed from re_newline_anchor.
76691         (num_regs): Renamed from rm_num_regs.
76692         (start): Renamed from rm_start.
76693         (end): Renamed from rm_end.
76694
76695         (free_state): Move up a bit.
76696
76697         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76698         #define to be empty.
76699         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76700         when that is what is intended.
76701         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76702         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76703         (MAX): New macro.
76704         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76705         All uses changed back to re_malloc, etc.  It's now the caller's
76706         responsibility to check for overflow; all callers changed.
76707         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76708         (re_x2nrealloc): Remove.
76709         (free_state): Remove decl.
76710
76711         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76712         (re_set_registers, re_exec):
76713         Use K&R-style defn.
76714
76715         2006-01-31  Roland McGrath  <roland@redhat.com>
76716
76717         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76718         Reported by Mike Frysinger <vapier@gentoo.org>.
76719
76720         2006-01-15  Andreas Jaeger  <aj@suse.de>
76721
76722         [BZ #1950]
76723         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76724         build_wcs_upper_buffer change.
76725         (build_wcs_upper_buffer): Change return type.
76726
76727         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76728
76729         * lib/regex_internal.h: Include <stdint.h> if available.
76730
76731         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76732
76733         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76734
76735         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76736
76737         * lib/regcomp.c: Adjust for changed secondary hash function.
76738
76739         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76740
76741         * lib/regex.h: Pretty printing.
76742         Clean up namespace a bit.
76743
76744         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76745
76746         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76747         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76748
76749         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76750                     Ulrich Drepper  <drepper@redhat.com>
76751
76752         [BZ #1302]
76753         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76754         changed.
76755         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76756
76757         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76758
76759         [BZ #281]
76760         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76761         * lib/regcomp.c: Remove unnecessary uses of
76762         unsigned RE_TRANSLATE_TYPE.
76763         * lib/regex_internal.h: Likewise.
76764         * lib/regex_internal.c: Likewise.
76765         * lib/regexec.c: Likewise.
76766         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76767
76768         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76769
76770         * lib/regexec.c (find_recover_state): Remove unnecessary
76771         initialization.
76772         (transit_state_bkref): Make DFA a const pointer.
76773         (get_subexp): Likewise.
76774         (check_arrival): Likewise.
76775         (update_cur_sifted_state): Likewise.
76776         (re_search_internal): Likewise.
76777         (prune_impossible_nodes): Likewise.
76778         (acquire_init_state_context): Likewise.
76779         (proceed_next_node): Likewise.
76780         (set_regs): Likewise.
76781         (free_fail_stack_return): Likewise.
76782         (check_arrival_expand_ecl): Mark DFA parameter as const.
76783         (check_arrival_expand_ecl_sub): Likewise.
76784         (check_subexp_limits): Likewise.
76785         (sub_epsilon_src_nodes):  Likewise.
76786         (add_epsilon_src_nodes):  Likewise.
76787         (merge_state_array): Likewise.
76788         (update_regs): Likewise.
76789         (build_trtable): Likewise.
76790         (sift_states_backward): Mark MCTX parameter as const.
76791         (build_sifted_states): Likewise.
76792         (update_cur_sifted_state): Likewise.
76793         (sift_states_mkref): Likewise.
76794         (check_arrival_expand_ecl): Mark eclosure as const.
76795         (check_dst_limits_calc_pos_1): Likewise.
76796         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76797         pointer.
76798
76799         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76800
76801         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76802         (transit_state_sb): Likewise.
76803         (transit_state_mb): Likewise.
76804         (sift_states_iter_mb): Likewise.
76805         (check_arrival_add_next_nodes): Likewise.
76806         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76807         [_LIBC] (re_search_2_stub): Use mempcpy.
76808
76809         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76810         mbrtowc for very simple UTF-8 case.
76811
76812         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76813         a pointer-to-const.
76814         (re_acquire_state_context): Likewise.
76815         * lib/regex_internal.h: Adjust prototypes.
76816
76817         * lib/regex.c: Prevent using C++ compilers.
76818
76819         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76820         (re_acquire_state_context): Likewise.
76821
76822 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76823
76824         * modules/regex (Depends-on): Add ssize_t.
76825
76826 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76829         translation table.
76830
76831 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76834
76835 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76836             Bruno Haible  <bruno@clisp.org>
76837
76838         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76839         <sys/types.h> and <inttypes.h>.
76840
76841 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76842
76843         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
76844         `__error_t_defined', so argp.h will not typedef the former.
76845
76846 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
76849         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
76850         glibc names.  Even if glibc is changed to conform to POSIX, the
76851         traditional names will be available anyway, since regex depends on
76852         the extensions module.  Also, fix a longstanding typo in the
76853         implementation of Spencer ERE test #75 from grep 2.3.  Problems
76854         reported by Emanuele Giaquinta.  Also, change sense of cached
76855         variable, so that the message makes sense.
76856
76857 2006-03-24  Simon Josefsson  <jas@extundo.com>
76858
76859         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
76860         including some doc fixes.
76861         (base64_encode_alloc): Fix +1 bug on allocation failures.
76862
76863 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76864
76865         * lib/base64.c (base64_encode): Do not read past end of array with
76866         unsanitized input on systems with CHAR_BIT > 8.
76867
76868 2006-03-24  Eric Blake  <ebb9@byu.net>
76869
76870         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
76871
76872 2006-03-22  Karl Berry  <karl@gnu.org>
76873
76874         * config/srclist.txt (*setenv.[ch]): get from coreutils.
76875         * config/srclistvars.sh (COREUTILS): new var.
76876
76877 2006-03-17  Jim Meyering  <jim@meyering.net>
76878
76879         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
76880         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
76881
76882 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76883
76884         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
76885         no longer needs it.  Instead, check that regoff_t is as least
76886         as wide as ptrdiff_t.
76887
76888         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
76889         so that our regex.h stays compatible with the installed regex.
76890         This is helpful for installers who configure --without-included-regex.
76891         Problem reported by Emanuele Giaquinta.
76892
76893 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
76896         Typedef to long int, not to off_, as POSIX will likely change
76897         in that direction.
76898
76899 2006-03-15  Eric Blake  <ebb9@byu.net>
76900
76901         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
76902
76903 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76904
76905         * lib/argp-help.c (validate_uparams): Fix typo
76906         * lib/argp-parse.c (argp_default_options): Consistently begin help
76907         messages with a lowercase letter.
76908
76909 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
76912         overrun buffers and shouldn't be used (much as gets shouldn't be
76913         used).
76914         * lib/time_r.c (asctime_r, ctime_r): Likewise.
76915
76916 2006-03-08  Simon Josefsson  <jas@extundo.com>
76917
76918         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
76919         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76920
76921 2006-03-08  Simon Josefsson  <jas@extundo.com>
76922
76923         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
76924         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76925
76926 2006-03-08  Simon Josefsson  <jas@extundo.com>
76927
76928         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
76929         signal that configure disabled the device.
76930
76931 2006-03-08  Simon Josefsson  <jas@extundo.com>
76932
76933         * build-aux/maint.mk: Fix refresh-po, to handle no translated
76934         languages.
76935
76936 2006-03-07  Simon Josefsson  <jas@extundo.com>
76937
76938         * modules/getopt (Depends-on): Add unistd.
76939
76940         * modules/unistd: New file.
76941
76942 2006-03-07  Simon Josefsson  <jas@extundo.com>
76943
76944         * modules/gc-random: New file.
76945
76946 2006-03-07  Simon Josefsson  <jas@extundo.com>
76947
76948         * m4/unistd_h.m4: New file.
76949
76950 2006-03-07  Simon Josefsson  <jas@extundo.com>
76951
76952         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
76953         test to be side-effect free by storing the result in the cache
76954         variable gl_cv_lib_readline, and moving the assignment of
76955         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
76956         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76957
76958 2006-03-07  Simon Josefsson  <jas@extundo.com>
76959
76960         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
76961         error on missing devices (the functions will return an error).
76962
76963         * m4/gc.m4: Move random stuff to gc-random.m4
76964
76965 2006-03-07  Simon Josefsson  <jas@extundo.com>
76966
76967         * lib/unistd_.h: New file.
76968
76969 2006-03-07  Simon Josefsson  <jas@extundo.com>
76970
76971         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
76972
76973 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
76976         Problem reported by Juan Manuel Guerrero.
76977
76978 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
76981         the unistd module.
76982         * lib/getlogin_r.c: Likewise.
76983         * lib/getlogin_r.h: Likewise.
76984         * lib/glob.c: Likewise.
76985         * lib/pagealign_alloc.c: Likewise.
76986         * lib/unistd_.h: Remove; no longer needed.
76987
76988 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * MODULES.html.sh (Support for systems lacking POSIX:2001):
76991         Add unistd.
76992         * modules/c-stack (Depends-on): Add unistd.
76993         * modules/getlogin_r: Likewise.
76994         * modules/glob: Likewise.
76995         * modules/pagealign_alloc: Likewise.
76996         * modules/unistd (Files): Remove lib/unistd_.h.
76997         (EXTRA_DIST): Remove.
76998         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
76999         need unistd_.h.
77000         (MOSTLYCLEANFILES): Remove unistd.h-t.
77001
77002 2006-03-03  Simon Josefsson  <jas@extundo.com>
77003
77004         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77005
77006 2006-03-03  Simon Josefsson  <jas@extundo.com>
77007
77008         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77009         libidn and bison.
77010
77011 2006-03-03  Simon Josefsson  <jas@extundo.com>
77012
77013         * build-aux/maint.mk: Add indent target.
77014
77015 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77016
77017         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77018         our replacement poll.h in any case, to avoid a differing
77019         declaration from a system header.  Seen on AIX.
77020
77021 2006-03-01  Simon Josefsson  <jas@extundo.com>
77022
77023         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77024         <kasal@ucw.cz>.
77025
77026 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         * modules/gettime (Depends-on): Add extensions module.
77029         * modules/nanosleep (Depends-on): Likewise.
77030         * modules/settime (Depends-on): Likewise.
77031
77032 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77035         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77036         pedantically.
77037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77038         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77039
77040         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77041         not "==".  Reported by Ralf Wildenhues.
77042
77043 2006-03-01  Karl Berry  <karl@gnu.org>
77044
77045         * doc/Copyright/request-*: new files, synced from gnuorg.
77046
77047 2006-03-01  Karl Berry  <karl@gnu.org>
77048
77049         * config/srclist.txt (Copyright/*): new entries.
77050
77051 2006-02-28  Simon Josefsson  <jas@extundo.com>
77052
77053         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77054
77055 2006-02-27  Simon Josefsson  <jas@extundo.com>
77056
77057         * lib/base64.h: Indent #define's.  From Jim Meyering
77058         <jim@meyering.net>.
77059
77060 2006-02-27  Jim Meyering  <jim@meyering.net>
77061
77062         Revert the change of 2006-02-24, so these files can continue
77063         to be sync'd from gettext.
77064         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77065         of `config.h'.
77066
77067 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77068
77069         * modules/intprops: New file.
77070         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77071         Add intprops.
77072         * modules/getloadavg (Files): Remove lib/intprops.h.
77073         (Depends-on): Add intprops.
77074         * modules/human: Likewise.
77075         * modules/inttostr: Likewise.
77076         * modules/openat: Likewise.
77077         * modules/sig2str: Likewise.
77078         * modules/userspec: Likewise.
77079         * modules/utimecmp: Likewise.
77080         * modules/xnanosleep: Likewise.
77081         * modules/xstrtol: Likewise.
77082
77083 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77084
77085         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77086         * modules/lock-tests (TESTS): Use $(EXEEXT).
77087         * modules/tls-tests: Likewise.
77088         * modules/argp-tests: Likewise.
77089         (check_PROGRAMS): New var, replacing...
77090         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77091
77092 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77093
77094         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77095         `config.h'.
77096
77097 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77098
77099         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77100
77101 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77102
77103         Sync from coreutils.
77104         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77105         gl_CHDIR_SAFER.
77106
77107 2006-02-22  Jim Meyering  <jim@meyering.net>
77108
77109         Sync from coreutils.
77110         * m4/chdir-safer.m4: New file.
77111
77112 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77113
77114         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77115         AT_FDCWD exceeds INT_MAX.
77116         * lib/openat.h (AT_FDCWD): Likewise.
77117
77118 2006-02-17  Eric Blake  <address@hidden>
77119
77120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77121
77122 2006-02-16  Simon Josefsson  <jas@extundo.com>
77123
77124         * modules/getaddrinfo (Depends-on): Add sys_socket.
77125
77126 2006-02-15  Simon Josefsson  <jas@extundo.com>
77127
77128         * build-aux/maint.mk: Add dsyntax-check rule.
77129
77130 2006-02-15  Eric Blake  <ebb9@byu.net>
77131
77132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77133         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77134         'present but cannot compile' warnings on cygwin.
77135         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77136         use ws2tcpip.h if sys/socket.h works.
77137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77138         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77139
77140 2006-02-14  Simon Josefsson  <jas@extundo.com>
77141
77142         * modules/maintainer-makefile (Files): Rename.
77143
77144         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77145         and (the local) Makefile.cfg to maint-cfg.mk.
77146
77147         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77148         to the latter.
77149
77150         * modules/maintainer-makefile: New module.
77151
77152         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77153         severaly stripped to make it possible to build it up from scratch
77154         with reliable tests.
77155
77156         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77157         fixes to permit overriding the default actions when configure and
77158         makefile are not available.
77159
77160 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77161
77162         Sync from coreutils.
77163         * modules/lstat (Depends-on): Don't depend on xalloc.
77164         (License): Change from GPL to LGPL, since this is now simply a
77165         replacement for a libc function.
77166
77167 2006-02-14  Jim Meyering  <jim@meyering.net>
77168
77169         Sync from coreutils.
77170
77171         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77172         failure on deficient systems, and simplify gnulib lgpl dependencies.
77173         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77174         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77175
77176         * lib/xalloc-die.c: Remove unused definition of N_.
77177
77178 2006-02-14  Jim Meyering  <jim@meyering.net>
77179
77180         Sync from coreutils.
77181         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77182         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77183         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77184         double-quote uses of that variable, to accommodate the rare case in
77185         which getmntent is available in none of the libraries checked.  This
77186         happens at least on FreeBSD 5.0.
77187
77188 2006-02-13  Simon Josefsson  <jas@extundo.com>
77189
77190         * gnulib-tool (Usage): Fix --import, from
77191         karl@freefriends.org (Karl Berry).
77192
77193 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77194
77195         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77196
77197 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77198
77199         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77200         "autoupdate" on 2005-12-12.
77201
77202 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         * modules/closeout (Depends-on): Remove atexit.
77205
77206 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77209         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77210
77211 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77212
77213         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77214         __EXTENSIONS__ if this causes compilation to fail.  Problem
77215         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77216         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77217
77218 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77219
77220         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77221         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77223         All uses changed.
77224
77225 2006-01-26  Simon Josefsson  <jas@extundo.com>
77226
77227         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77228         prototype is visible on mingw32.
77229
77230         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77231         for mingw32.
77232
77233         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77234         mingw32).
77235
77236 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77239         attempt to open for write; this always fails, at least on POSIX
77240         hosts.  This reinstates the 2006-01-09 change, which was
77241         inadvertently removed.
77242
77243 2006-01-26  Bruno Haible  <bruno@clisp.org>
77244
77245         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77246         Reported by Paul Eggert.
77247
77248 2006-01-26  Bruno Haible  <bruno@clisp.org>
77249             Paul Eggert  <eggert@cs.ucla.edu>
77250
77251         * lib/stdbool_.h (_Bool)
77252         [(! (defined __cplusplus || defined __BEOS__)
77253           && !defined __GNUC__
77254           && !(defined __HP_cc || defined __xlc__
77255                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77256                || defined __sgi))]:
77257         #define to signed char in these cases too; this simplifies
77258         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77259         etc., separately) and makes it more conservative.
77260
77261 2006-01-25  Simon Josefsson  <jas@extundo.com>
77262
77263         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77264         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77265         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77266
77267 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77268
77269         * lib/argp-namefrob.h: Bugfix. Remove stray #
77270
77271 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77274         so that we test the test.
77275         Check for yet another HP-UX cc bug involving *bool |= bool.
77276
77277 2006-01-25  Karl Berry  <karl@gnu.org>
77278
77279         * config/srclist.txt (vasnprintf.c): sync lost.
77280
77281 2006-01-25  Jim Meyering  <jim@meyering.net>
77282
77283         Sync from the stable (b5) branch of coreutils:
77284
77285         * lib/fts.c (fts_children): Don't let close() clobber errno from
77286         failed fchdir().
77287
77288         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77289         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77290         a dangling symlink.  That can also happen at least for ELOOP.
77291         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77292         FYI, this bug predates the inclusion of fts.c in coreutils.
77293
77294         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77295         in their own block, so pre-c99 compilers don't object.
77296
77297         Avoid the double-free (first in fts_read, second in fts_close) that
77298         would occur when an `active' directory is made inaccessible (e.g.,
77299         via chmod a-x) during a traversal.
77300         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77301         before returning.  Reproduce this failure by
77302         mkdir -p a/b; cd a; chmod a-x . b
77303         Reported by Stavros Passas.
77304
77305 2006-01-25  Jim Meyering  <jim@meyering.net>
77306
77307         * lib/fileblocks.c: Remove more useless parentheses.
77308         * lib/readutmp.h: Likewise.
77309
77310 2006-01-25  Bruno Haible  <bruno@clisp.org>
77311
77312         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77313         warnings.
77314         Reported by Paul Eggert.
77315
77316 2006-01-25  Bruno Haible  <bruno@clisp.org>
77317
77318         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77319         rid of a trap command. For Solaris sh.
77320         Reported by Mark D. Baushke <mdb@gnu.org>.
77321
77322 2006-01-24  Simon Josefsson  <jas@extundo.com>
77323
77324         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77325         Bruno.
77326
77327 2006-01-24  Karl Berry  <karl@gnu.org>
77328
77329         * config/srclist.txt (argp-namefrob.h): sync lost.
77330
77331 2006-01-24  Jim Meyering  <jim@meyering.net>
77332
77333         * modules/openat (Files): Add lib/intprops.h.
77334         From Mark D. Baushke.
77335
77336 2006-01-24  Jim Meyering  <jim@meyering.net>
77337
77338         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77339         Reported by Mark D. Baushke.
77340
77341 2006-01-24  Jim Meyering  <jim@meyering.net>
77342
77343         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77344
77345 2006-01-24  Bruno Haible  <bruno@clisp.org>
77346
77347         * modules/strnlen (Maintainer): Change from glibc to all.
77348
77349 2006-01-24  Bruno Haible  <bruno@clisp.org>
77350
77351         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77352         Patch by Paul Eggert.
77353
77354 2006-01-24  Bruno Haible  <bruno@clisp.org>
77355
77356         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77357         already has it.
77358         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77359         2005-11-26.
77360
77361         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77362         'signed char' to avoid problems with the built-in _Bool type.
77363         Reported by Paul Eggert on 2005-11-26.
77364
77365 2006-01-24  Bruno Haible  <bruno@clisp.org>
77366
77367         * gnulib-tool (func_import): Avoid constructing complicated sed
77368         expressions inside backquote.
77369         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77370
77371 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77372
77373         These changes imported from libc.
77374         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77375         test and two separate function calls.
77376         * lib/strndup.c (__strndup): Add libc_hidden_def.
77377
77378 2006-01-23  Simon Josefsson  <jas@extundo.com>
77379
77380         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77381         Remove the test_*_SOURCES variable: automake infers it by default.
77382         * modules/tls-tests: Likewise.
77383
77384 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77385
77386         Work around porting bugs reported by Dieter in
77387         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77388         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77389         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77390         Include "getopt.h" first, to check interface.
77391         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77392         !HAVE_DECL_GETENV.
77393         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77394         (__strndup): Revert to K&R-style function dfns, the glibc style.
77395         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77396         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77397         Include strnlen.h first, to get prototype properly.
77398         (strnlen): Renamed from __strnlen.
77399         Remove weak alias.
77400
77401 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77402
77403         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77404
77405 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         * config/srclist.txt: Adjust to reflect glibc reorganization.
77408         This affects only comments.
77409
77410 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77411
77412          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77413          Reported by Bruce Korb <bkorb@gnu.org>.
77414
77415 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77416
77417         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77418         to pacify gcc -Wswitch-default.
77419
77420 2006-01-22  Bruno Haible  <bruno@clisp.org>
77421
77422         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77423         temporary buffer for sprintf, take into account the precision also
77424         for 'd', 'i', 'u', 'o', 'x', 'X'.
77425
77426 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77427
77428         * modules/argp-tests: New module
77429         * tests/test-argp.c: New file
77430         * tests/test-argp-2.sh: New file
77431
77432 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77433
77434         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77435         (__argp_base_name): Removed
77436         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77437         typo.
77438         (__argp_base_name): Provide macro definition or extern declaration
77439         depending on the configuration
77440
77441 2006-01-20  Simon Josefsson  <jas@extundo.com>
77442
77443         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77444
77445 2006-01-20  Simon Josefsson  <jas@extundo.com>
77446
77447         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77448
77449 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77450
77451         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77452         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77453         Suggested by Bruno Haible.
77454
77455 2006-01-20  Karl Berry  <karl@gnu.org>
77456
77457         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77458         until changes propagate, I guess.
77459
77460 2006-01-19  Simon Josefsson  <jas@extundo.com>
77461
77462         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77463
77464 2006-01-19  Simon Josefsson  <jas@extundo.com>
77465
77466         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77467
77468 2006-01-19  Simon Josefsson  <jas@extundo.com>
77469
77470         * gnulib-tool: Set check_PROGRAMS.
77471
77472         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77473         modules/des-tests, modules/gc-arcfour-tests,
77474         modules/gc-arctwo-tests, modules/gc-des-tests,
77475         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77476         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77477         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77478         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77479         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77480         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77481         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77482         test_*_SOURCES.
77483
77484 2006-01-18  Simon Josefsson  <jas@extundo.com>
77485
77486         * modules/socklen (Depends-on): Depend on sys_socket.
77487
77488 2006-01-18  Simon Josefsson  <jas@extundo.com>
77489
77490         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77491         modules/des-tests, modules/gc-arcfour-tests,
77492         modules/gc-arctwo-tests, modules/gc-des-tests,
77493         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77494         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77495         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77496         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77497         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77498         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77499         $(EXEEXT) to automake TESTS variable, for mingw32.
77500
77501 2006-01-17  Simon Josefsson  <jas@extundo.com>
77502
77503         * modules/socklen (Include): Need sys/socket.h.
77504
77505 2006-01-17  Bruno Haible  <bruno@clisp.org>
77506
77507         * modules/ssize_t (Include): Add <sys/types.h>.
77508
77509 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77512         it's not portable and it doesn't work with cross-compiles.
77513         Problem reported by Bruno Haible.  Fix missing-$ typo in
77514         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77515         -zignore from being used with Sun's C compiler.
77516
77517 2006-01-12  Simon Josefsson  <jas@extundo.com>
77518
77519         * lib/base64.c: Fix warning, reported by Bruno Haible
77520         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77521
77522 2006-01-12  Bruno Haible  <bruno@clisp.org>
77523
77524         * modules/ldd: New file.
77525         * build-aux/ldd.sh.in: New file.
77526         * MODULES.html.sh (Support for building libraries and executables): Add
77527         ldd.
77528
77529 2006-01-12  Bruno Haible  <bruno@clisp.org>
77530
77531         * m4/ldd.m4: New file.
77532
77533 2006-01-12  Bruno Haible  <bruno@clisp.org>
77534
77535         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77536         endless loop while replacing $auxdir with build-aux.
77537
77538 2006-01-11  Simon Josefsson  <jas@extundo.com>
77539
77540         * lib/stdint_.h (SIZE_MAX): Add missing (.
77541
77542 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77543
77544         Sync from coreutils.
77545         * lib/md5.c: Fix commentary typos.
77546         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77547         * lib/md5.h (__attribute__): Remove; unused.
77548         * lib/sha1.c: Fix commentary to match md5 better.
77549         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77550         so that we don't need to worry about alignment.  All uses changed.
77551         This merges the 2005-10-28 md5 change into sha1.
77552
77553 2006-01-11  Jim Meyering  <jim@meyering.net>
77554
77555         Sync from coreutils.
77556         * lib/md5.c (OP): Fix spacing.
77557
77558 2006-01-11  Bruno Haible  <bruno@clisp.org>
77559
77560         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77561         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77562         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77563
77564 2006-01-11  Bruno Haible  <bruno@clisp.org>
77565
77566         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77567         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77568         the "early" section as well.
77569
77570 2006-01-11  Bruno Haible  <bruno@clisp.org>
77571
77572         Avoid "ar: no archive members specified" error on MacOS X.
77573         * gnulib-tool (func_modules_add_dummy): New function.
77574         (func_import, func_create_testdir): Invoke it.
77575
77576 2006-01-11  Bruno Haible  <bruno@clisp.org>
77577
77578         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77579         with $auxdir in AC_CONFIG_FILES statements.
77580
77581 2006-01-11  Bruno Haible  <bruno@clisp.org>
77582
77583         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77584         Initialize also noinst_HEADERS to empty.
77585
77586 2006-01-11  Bruno Haible  <bruno@clisp.org>
77587
77588         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77589         variables.
77590         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77591         autoreconf.
77592
77593 2006-01-11  Bruno Haible  <bruno@clisp.org>
77594
77595         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77596         overridable by the user.
77597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77598
77599 2006-01-10  Simon Josefsson  <jas@extundo.com>
77600
77601         * modules/sys_socket: New file.
77602
77603 2006-01-10  Simon Josefsson  <jas@extundo.com>
77604
77605         * m4/sys_socket_h.m4: New file.
77606
77607 2006-01-10  Simon Josefsson  <jas@extundo.com>
77608
77609         * lib/socket_.h: New file.
77610
77611 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         * modules/readutmp (Maintainer): Add myself.
77614
77615 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77616
77617         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77618         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77619         People who are still concerned with buggy memcmp implementations
77620         can invoke gl_FUNC_MEMCMP themselves.
77621
77622 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77623
77624         * lib/regex_internal.h (BITSET_WORD_BITS):
77625         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77626         preprocessor mishandles large unsigned values as if they were signed.
77627         Problem reported by Claudio Fontana in
77628         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77629
77630 2006-01-10  Jim Meyering  <jim@meyering.net>
77631
77632         Avoid the double-free (first in fts_read, second in fts_close) that
77633         would occur when an `active' directory is made inaccessible (e.g.,
77634         via chmod a-x) during a traversal.
77635         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77636         before returning.  Reproduce this failure by
77637         mkdir -p a/b; cd a; chmod a-x . b
77638         Reported by Stavros Passas.
77639
77640         Sync from coreutils.
77641         * lib/sha1.c: Tweak grammar in a comment.
77642
77643 2006-01-10  Jim Meyering  <jim@meyering.net>
77644
77645         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77646         Patch by Joerg Sonnenberger.
77647
77648 2006-01-10  Bruno Haible  <bruno@clisp.org>
77649
77650         * modules/readutmp: Depend on module free.
77651         * modules/strtok_r: Depend on module restrict.
77652
77653 2006-01-10  Bruno Haible  <bruno@clisp.org>
77654
77655         * modules/gettext (configure.ac): Add an invocation of
77656         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77657
77658 2006-01-10  Bruno Haible  <bruno@clisp.org>
77659
77660         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77661         Reported by Werner Lemberg <wl@gnu.org>.
77662
77663 2006-01-10  Bruno Haible  <bruno@clisp.org>
77664
77665         * lib/localcharset.c: Update from GNU gettext.
77666
77667 2006-01-10  Bruno Haible  <bruno@clisp.org>
77668
77669         * lib/argp.h (__const): Remove macro. Use const instead.
77670         * lib/argp-fmtstream.h (__const): Likewise.
77671         * lib/glob_.h (__const): Remove macro.
77672         * lib/glob-libc.h: Use const instead of __const.
77673
77674 2006-01-10  Bruno Haible  <bruno@clisp.org>
77675
77676         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77677         variable.
77678         Needed to avoid an automake error regarding the 'gettext' module.
77679
77680 2006-01-09  Simon Josefsson  <jas@extundo.com>
77681
77682         * modules/inet_ntop (Depends-on): Add restrict.
77683
77684 2006-01-09  Simon Josefsson  <jas@extundo.com>
77685
77686         * modules/gc-rijndael-tests (License): Put under LGPL.
77687
77688         * modules/gc-des-tests (License): Likewise.
77689
77690         * modules/gc-arcfour-tests (License): Likewise.
77691
77692         * modules/gc-arctwo-tests (License): Likewise.
77693
77694         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77695
77696         * modules/gc-hmac-sha1-tests (Files): Likewise.
77697
77698         * modules/gc-hmac-md5-tests (License): Likewise.
77699
77700         * modules/gc-sha1-tests (License): Likewise.
77701
77702         * modules/gc-md5-tests (License): Likewise.
77703
77704         * modules/gc-md4-tests (License): Likewise.
77705
77706         * modules/gc-md2-tests (License): Likewise.
77707
77708         * modules/gc-tests (License): Likewise.
77709
77710         * modules/des-tests (License): Likewise.
77711
77712         * modules/md4-tests (License): Likewise.
77713
77714         * modules/md2-tests (License): Likewise.
77715
77716 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         Sync from coreutils:
77719
77720         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77721         * modules/lib-ignore: New file.
77722         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77723         chdir-safer.m4, lchmod.m4.
77724         * modules/openat: Add mkdirat.c, openat-priv.h.
77725
77726 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77727
77728         Sync from coreutils.
77729         * m4/lib-ignore.m4: New file.
77730         * m4/lchmod.m4: New file.
77731
77732 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         Sync from coreutils.
77735         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77736         for write access: POSIX says that must fail.
77737         * lib/fts.c (diropen): Likewise.
77738         * lib/save-cwd.c (save_cwd): Likewise.
77739         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77740         well, for minor improvements on hosts that lack O_DIRECTORY.
77741         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77742         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77743         Fall back on chown if open failed with EACCES.
77744
77745         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77746         Report an error at compile-time if only a 1-second nominal clock
77747         resolution is found.
77748
77749         * lib/lchmod.h: New file.
77750         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77751         (make_dir_parents): Use lchown rather than chown, and
77752         lchmod rather than chmod.
77753
77754         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77755         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77756         "proc" reported by n0dalus.
77757
77758         * lib/mountlist.c: Include <limits.h>.
77759         (dev_from_mount_options)
77760         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77761         New function.  It no longer assumes "dev=" has the System V meaning
77762         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77763         (read_file_system_list)
77764         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77765         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77766         dev= in that case.
77767
77768         * lib/posixtm.h (PDS_PRE_2000): New macro.
77769         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77770         allow_century.  All usages changed.  Reject dates outside the range
77771         1969-1999 if PDS_PRE_2000 is used.
77772
77773 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         Sync from coreutils.
77776         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77777         (Time of day items): Mention the possibility of leap seconds.
77778         Problem reported by Dr. David Alan Gilbert.
77779
77780 2006-01-09  Jim Meyering  <jim@meyering.net>
77781
77782         Sync from coreutils.
77783
77784         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77785
77786         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77787
77788         * lib/modechange.c (mode_compile): Reject an invalid mode string
77789         that starts with an octal digit.  From Andreas Gruenbacher.
77790
77791         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77792         and dup to open_safer and dup_safer, respectively.
77793         (openat_permissive): Fix typo in comment.
77794
77795         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77796         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77797         (_): Remove; no longer needed.
77798         (openat): Renamed from rpl_openat; no need for rpl_openat
77799         since openat.h renames openat for us.
77800         Replace most of the body with a call to openat_permissive,
77801         to avoid duplicate code.
77802         Port to (probably hypothetical) environments were mode_t is
77803         wider than int.
77804         (openat_permissive): Require mode arg, so that we can check
77805         types better.  Put it just after flags.  Change cwd failure
77806         indicator from pointer-to-bool to pointer-to-errno-value.
77807         All callers changed.
77808         Invoke openat_save_fail and/or openat_restore_fail if
77809         cwd_errno is null, so that openat can call us.
77810         (openat_permissive, fdopendir, fstatat, unlinkat):
77811         Simplify errno handling to avoid some duplicate code,
77812         as it's OK to set errno on success.
77813         * lib/openat.h: Revamp code so that function macros depend on
77814         __OPENAT_PREFIX only, not also on AT_FDCWD.
77815         (openat_ro): Remove.  Caller changed to use openat_permissive.
77816         (openat_permissive): Now a macro, if not a function.
77817         (openat_restore_fail, openat_save_fail): Now always functions,
77818         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77819
77820         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77821         and openat.c.
77822         * lib/mkdirat.c: Include openat-priv.h.
77823         Remove definitions of macros defined therein.
77824         * lib/openat.c: Likewise.
77825
77826         * lib/mkdirat.c (mkdirat): New file and function.
77827         * lib/openat.h (mkdirat): Declare.
77828
77829         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77830
77831         * lib/openat.h (openat_permissive): Declare.
77832         (openat_ro): Define.
77833
77834         * lib/openat.c (EXPECTED_ERRNO): New macro.
77835         (openat_permissive): New function -- used in remove.c rewrite.
77836         (all functions): Set errno just before returning, only if there
77837         was an actual failure.
77838         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77839
77840         Emulate openat-family functions using Linux's procfs, if possible.
77841         Idea and some code based on Ulrich Drepper's glibc changes.
77842
77843         * lib/openat.c: (BUILD_PROC_NAME): New macro.
77844         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
77845         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
77846         before falling back on save_cwd and restore_cwd.
77847         (fdopendir, fstatat, unlinkat): Likewise.
77848
77849         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
77850         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
77851
77852         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
77853         as second argument to va_arg.  Otherwise, some versions of gcc
77854         warn that `if this code is reached, the program will abort'.
77855
77856 2006-01-09  Jim Meyering  <jim@meyering.net>
77857
77858         Sync from coreutils.
77859         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
77860         Require openat-priv.h.
77861
77862 2006-01-09  Bruno Haible  <bruno@clisp.org>
77863
77864         * modules/strnlen (Include): Use strnlen.h.
77865
77866 2006-01-09  Bruno Haible  <bruno@clisp.org>
77867
77868         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
77869
77870 2006-01-09  Bruno Haible  <bruno@clisp.org>
77871
77872         * lib/sysexit_.h (EX_OK): New macro.
77873         Suggested by Martin Lambers <marlam@marlam.de>.
77874
77875 2006-01-09  Bruno Haible  <bruno@clisp.org>
77876
77877         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
77878         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
77879
77880 2006-01-09  Bruno Haible  <bruno@clisp.org>
77881
77882         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
77883         numbers.
77884
77885 2006-01-09  Bruno Haible  <bruno@clisp.org>
77886
77887         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
77888         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
77889         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
77890         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
77891
77892 2006-01-09  Bruno Haible  <bruno@clisp.org>
77893
77894         * build-aux/javacomp.sh.in: New file, moved from lib/.
77895         * modules/javacomp-script (Files): Update.
77896         (configure.ac): Add AC_CONFIG_FILES invocation.
77897         (EXTRA_DIST): Remove variable.
77898
77899         * build-aux/javaexec.sh.in: New file, moved from lib/.
77900         * modules/javaexec (Files): Update.
77901         (configure.ac): Add AC_CONFIG_FILES invocation.
77902         (EXTRA_DIST): Remove javaexec.sh.in.
77903
77904         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
77905         * modules/csharpcomp-script (Files): Update.
77906         (configure.ac): Add AC_CONFIG_FILES invocation.
77907         (EXTRA_DIST): Remove variable.
77908
77909         * build-aux/csharpexec.sh.in: New file, moved from lib/.
77910         * modules/csharpexec (Files): Update.
77911         (configure.ac): Add AC_CONFIG_FILES invocation.
77912         (EXTRA_DIST): Remove csharpexec.sh.in.
77913
77914 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77915
77916         Sync from coreutils.
77917
77918         Add POSIX ACL support
77919         * lib/acl.h (copy_acl, set_acl): Add declarations.
77920         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
77921         systems other than Linux.
77922         (chmod_or_fchmod): New function: use fchmod when possible,
77923         and chmod otherwise.
77924         (file_has_acl): Add a POSIX ACL implementation, with a
77925         Linux-specific subcase.
77926         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
77927         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
77928         acls are unsupported.
77929         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
77930         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
77931         are unsupported.
77932
77933 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77934
77935         Sync from coreutils.
77936         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
77937
77938 2006-01-07  Bruno Haible  <bruno@clisp.org>
77939
77940         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
77941         gl_EARLY.
77942
77943 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77944
77945         * lib/strftime.c (tzname): Don't declare if it is already #defined.
77946         Problem reported for Mingw by Mark Junker.
77947
77948 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         * README: Gnulib normally doesn't generate a tarball.
77951
77952 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
77953
77954         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
77955         long int, not int, for nanosecond counts, so that people who are
77956         used to POSIX struct timespec won't be surprised.  Reported by Jim
77957         Meyering.
77958
77959 2005-12-28  Bruno Haible  <bruno@clisp.org>
77960
77961         * build-aux/config.rpath: Update from GNU gettext.
77962
77963 2005-12-16  Jim Meyering  <jim@meyering.net>
77964
77965         * modules/fprintftime: New module.
77966         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
77967
77968 2005-12-16  Jim Meyering  <jim@meyering.net>
77969
77970         * m4/fprintftime.m4: New file.
77971
77972 2005-12-16  Jim Meyering  <jim@meyering.net>
77973
77974         * lib/fprintftime.c, lib/fprintftime.h: New files.
77975
77976 2005-12-15  Simon Josefsson  <jas@extundo.com>
77977
77978         * modules/socklen (configure.ac): Fix M4 macro name, to align with
77979         new m4/socklen.m4.
77980
77981 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77982
77983         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
77984         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
77985
77986 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77987
77988         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
77989         * lib/argp-help.c (fill_in_uparams): Check if the constructed
77990         struct uparams is valid. Fall back to the default values if it is
77991         not.
77992
77993 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77994
77995         * modules/argp (Files): Add argp-pin.c
77996         (Depends-on): dirname
77997         (lib_SOURCES): Add argp-pin.c
77998
77999 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78000
78001         * m4/argp.m4:  Check if program_invocation_name and
78002         program_invocation_short_name are declared and define appropriate
78003         macros if they are not.
78004
78005 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78006
78007         * lib/argp-help.c (__argp_base_name): New function
78008         (__argp_short_program_name): Rewrite using __argp_base_name
78009         * lib/argp-namefrob.h: Define program_invocation_name and
78010         program_invocation_short_name if requested
78011         (__argp_base_name): Add prototype
78012         * lib/argp-parse.c (argp_def): Use gettext wrappers
78013         (argp_default_parser): Use __argp_base_name
78014         * lib/argp-pin.c: New file. Defines program_invocation_name and
78015         program_invocation_short_name on systems that lack them.
78016
78017 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78020         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78021         porting problem reported by Georg Schwarz in
78022         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78023
78024 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78027         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78028         porting problem reported by Georg Schwarz in
78029         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78030
78031 2005-12-05  Bruno Haible  <bruno@clisp.org>
78032
78033         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78034         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78035         Reported by Mark Junker <mjscod@gmx.de>.
78036
78037 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78038
78039         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78040         Use implementation from Albert Chin, with some
78041         comments/corrections by Stepan Kasal and myself.
78042
78043 2005-12-02  Bruno Haible  <bruno@clisp.org>
78044
78045         * gnulib-tool (func_import): Accept GPLed build tool modules when
78046         --lgpl is given.
78047         * modules/csharpcomp-script: New file.
78048         * modules/csharpcomp: Depend on it.
78049         * modules/javacomp-script: New file.
78050         * modules/javacomp: Depend on it.
78051         Suggested by Simon Josefsson.
78052
78053 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78056         statement, to work around an HP-UX 10.20 compiler bug reported by
78057         Peter O'Gorman.
78058
78059 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         * modules/savedir (Depends-on): Add openat.
78062
78063 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78066         (uintmax_t) [defined uintmax_t]: Do not declare.
78067         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78068         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78069         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78070         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78071         sake of portability to weird hosts that C allows (though we don't
78072         know of any practical examples).
78073
78074         * lib/savedir.h (fdsavedir): New decl.
78075         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78076         contains most of the former guts of savedir.
78077         (savedir): Use savedirstream.
78078         Include "openat.h".
78079
78080 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78081
78082         * modules/obstack (Files): Add m4/ulonglong.m4.
78083         Problem reported by Davide Angelocola.
78084
78085 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78088         coreutils no longer futzes with rounding modes.
78089
78090 2005-11-14  Jim Meyering  <jim@meyering.net>
78091
78092         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78093         replacement of mkstemp.
78094
78095 2005-11-10  Simon Josefsson  <jas@extundo.com>
78096
78097         * lib/readline.c: Remove EOL.
78098
78099 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         * modules/gethrxtime (Depends-on): Add gettime.
78102
78103 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78106         or gettimeofday; no longer needed.
78107
78108 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78111         time business.
78112         (gethrxtime) [! (HAVE_NANOUPTIME
78113         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78114         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78115         our own approximation.
78116
78117 2005-11-08  Eric Blake  <ebb9@byu.net>
78118
78119         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78120
78121 2005-11-08  Eric Blake  <ebb9@byu.net>
78122
78123         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78124
78125 2005-11-04  Bruno Haible  <bruno@clisp.org>
78126
78127         * gnulib-tool: Implement --update mode.
78128
78129 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         Fix porting problem reported by Theodoros V. Kalamatianos.
78132         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78133         Don't assume that futimes failing means we must fail.
78134
78135 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78138         variables to suggest the intended function of the PATH_MAX check.
78139
78140 2005-10-30  Kean Johnston  <jkj@sco.com>
78141
78142         Trivial changes to support SCO systems.
78143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78144         as PATH_MAX.
78145         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78146         where __ptr is null when no I/O is pending.
78147
78148 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78151         leave errno alone.  Problem reported by Dmitry V. Levin.
78152
78153 2005-10-28  Simon Josefsson  <jas@extundo.com>
78154
78155         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78156         Test more.
78157
78158         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78159
78160         * modules/md2, modules/md2-tests: New files.
78161
78162 2005-10-28  Simon Josefsson  <jas@extundo.com>
78163
78164         * m4/inet_ntop.m4: More tests.
78165
78166         * m4/gc-md2.m4, md2.m4: New file.
78167
78168 2005-10-28  Simon Josefsson  <jas@extundo.com>
78169
78170         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78171         "restrict" keywords, as per POSIX.  Protect the function
78172         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78173         Don't use K&R prototypes.  Check the sprintf return values.
78174         Re-define EAFNOSUPPORT if not present.  Indent.
78175
78176         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78177         suggested by Bruno Haible <bruno@clisp.org>.
78178
78179         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78180
78181         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78182
78183         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78184         libgcrypt).
78185
78186         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78187
78188         * lib/md2.h, lib/md2.c: New files.
78189
78190 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78193         errno alone.  Problem reported by Frederic Jolliton.
78194
78195 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * modules/verify (License): Change from GPL to LGPL.  This is a
78198         tiny module and there are apparently near-equivalents that are
78199         under the BSD license.
78200
78201 2005-10-24  Simon Josefsson  <jas@extundo.com>
78202
78203         * modules/sha1: Relicense to LGPL.
78204
78205 2005-10-24  Simon Josefsson  <jas@extundo.com>
78206
78207         * lib/md4.h: Shrink buffer size, now that we changed the type.
78208
78209 2005-10-23  Simon Josefsson  <jas@extundo.com>
78210
78211         * gnulib-tool (func_import): Fix --tests-base.
78212
78213 2005-10-22  Simon Josefsson  <jas@extundo.com>
78214
78215         * modules/arcfour (Depends-on): Need stdint.
78216
78217 2005-10-22  Simon Josefsson  <jas@extundo.com>
78218
78219         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78220         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78221
78222 2005-10-22  Simon Josefsson  <jas@extundo.com>
78223
78224         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78225         suggested by Bruno Haible <bruno@clisp.org>.
78226
78227 2005-10-22  Simon Josefsson  <jas@extundo.com>
78228
78229         * lib/crc.h: Include stddef.h, for size_t.
78230
78231 2005-10-22  Simon Josefsson  <jas@extundo.com>
78232
78233         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78234         arcfour_context struct (simplify test vector testing in GNU
78235         Shishi).
78236
78237 2005-10-21  Simon Josefsson  <jas@extundo.com>
78238
78239         * modules/des, modules/des-tests: New files.
78240
78241         * modules/gc-des, modules/gc-des-tests: New files.
78242
78243         * tests/test-des.c, tests/test-gc-des.c: New file.
78244
78245 2005-10-21  Simon Josefsson  <jas@extundo.com>
78246
78247         * modules/arctwo, modules/arctwo-tests: New files.
78248
78249         * tests/test-arctwo.c: New file.
78250
78251         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78252
78253         * tests/test-gc-arctwo.c: New file.
78254
78255 2005-10-21  Simon Josefsson  <jas@extundo.com>
78256
78257         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78258         Bruno Haible <bruno@clisp.org>.
78259
78260         * m4/gc-des.m4: New file.
78261
78262 2005-10-21  Simon Josefsson  <jas@extundo.com>
78263
78264         * m4/arctwo.m4: New file.
78265
78266         * m4/gc-arctwo.m4: New file.
78267
78268 2005-10-21  Simon Josefsson  <jas@extundo.com>
78269
78270         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78271         block.
78272
78273 2005-10-21  Simon Josefsson  <jas@extundo.com>
78274
78275         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78276         <bruno@clisp.org>.
78277
78278         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78279
78280         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78281         Bruno Haible <bruno@clisp.org>.
78282
78283         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78284         <bruno@clisp.org>.
78285
78286 2005-10-21  Simon Josefsson  <jas@extundo.com>
78287
78288         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78289
78290 2005-10-21  Simon Josefsson  <jas@extundo.com>
78291
78292         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78293
78294 2005-10-21  Simon Josefsson  <jas@extundo.com>
78295
78296         * lib/des.h, lib/des.c: New files.
78297
78298         * lib/gc-gnulib.c: Support DES.c
78299
78300 2005-10-21  Simon Josefsson  <jas@extundo.com>
78301
78302         * lib/arctwo.h, lib/arctwo.c: New files.
78303
78304         * lib/gc-gnulib.c: Support ARCTWO.
78305
78306 2005-10-21  Simon Josefsson  <jas@extundo.com>
78307
78308         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78309         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78310
78311 2005-10-21  Simon Josefsson  <jas@extundo.com>
78312
78313         * gnulib-tool (func_import, func_create_testdir): Define automake
78314         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78315         Makefile.am snippet),
78316         suggested by Bruno Haible <bruno@clisp.org>.
78317
78318         * modules/gc (Makefile.am): Use it.
78319
78320 2005-10-21  Bruno Haible  <bruno@clisp.org>
78321
78322         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78323         patch.
78324
78325 2005-10-19  Simon Josefsson  <jas@extundo.com>
78326
78327         * tests/test-gc-rijndael.c: New file.
78328
78329         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78330
78331 2005-10-19  Simon Josefsson  <jas@extundo.com>
78332
78333         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78334         interface too.
78335
78336 2005-10-19  Simon Josefsson  <jas@extundo.com>
78337
78338         * tests/test-gc-arcfour.c: New file.
78339
78340         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78341
78342 2005-10-19  Simon Josefsson  <jas@extundo.com>
78343
78344         * modules/gc-md4, modules/gc-md4-tests: New file.
78345
78346         * tests/test-gc-md4.c: New file.
78347
78348 2005-10-19  Simon Josefsson  <jas@extundo.com>
78349
78350         * m4/gc-md4.m4: New file.
78351
78352 2005-10-19  Simon Josefsson  <jas@extundo.com>
78353
78354         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78355         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78356         <kasal@ucw.cz>.
78357
78358 2005-10-19  Simon Josefsson  <jas@extundo.com>
78359
78360         * m4/gc-arcfour.m4: New file.
78361
78362         * m4/gc-rijndael.m4: New file.
78363
78364 2005-10-19  Simon Josefsson  <jas@extundo.com>
78365
78366         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78367
78368 2005-10-19  Simon Josefsson  <jas@extundo.com>
78369
78370         * lib/gc-gnulib.c: Support ARCFOUR.
78371
78372 2005-10-19  Simon Josefsson  <jas@extundo.com>
78373
78374         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78375         support.
78376
78377         * lib/gc.h: Add ECB enum type.
78378
78379         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78380
78381 2005-10-18  Simon Josefsson  <jas@extundo.com>
78382
78383         * tests/test-md5.c: New file.
78384
78385         * modules/md5-tests: New file.
78386
78387 2005-10-18  Simon Josefsson  <jas@extundo.com>
78388
78389         * tests/test-md4.c: New file.
78390
78391         * modules/md4, modules/md4-tests: New files.
78392
78393 2005-10-18  Simon Josefsson  <jas@extundo.com>
78394
78395         * m4/md4.m4: New file.
78396
78397 2005-10-18  Simon Josefsson  <jas@extundo.com>
78398
78399         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78400
78401 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78402
78403         * gnulib-tool (func_create_testdir): Omit the second check whether
78404         BUILT_SOURCES in nonempty.
78405
78406 2005-10-17  Simon Josefsson  <jas@extundo.com>
78407
78408         * tests/test-rijndael.c: New file.
78409
78410 2005-10-17  Simon Josefsson  <jas@extundo.com>
78411
78412         * modules/sha1: Depend on stdint instead of md5.
78413
78414         * modules/md5: Depend on stdint, remove uint32_t.
78415
78416 2005-10-17  Simon Josefsson  <jas@extundo.com>
78417
78418         * modules/gc-sha1-tests: New file.
78419
78420         * tests/test-gc-sha1.c: New file.
78421
78422 2005-10-17  Simon Josefsson  <jas@extundo.com>
78423
78424         * m4/md5.m4: Remove call to uint32_t.m4.
78425
78426 2005-10-17  Simon Josefsson  <jas@extundo.com>
78427
78428         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78429
78430         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78431         md5.h.
78432
78433         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78434
78435         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78436
78437 2005-10-17  Simon Josefsson  <jas@extundo.com>
78438
78439         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78440
78441 2005-10-17  Simon Josefsson  <jas@extundo.com>
78442
78443         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78444
78445 2005-10-17  Simon Josefsson  <jas@extundo.com>
78446
78447         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78448
78449         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78450
78451 2005-10-17  Bruno Haible  <bruno@clisp.org>
78452
78453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78454         that it can also be used in a test.
78455
78456 2005-10-16  Bruno Haible  <bruno@clisp.org>
78457
78458         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78459         TESTS_ENVIRONMENT, so that individual tests can augment it.
78460
78461         * gnulib-tool (func_create_testdir): Use an intermediate target for
78462         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78463         macros, like $(ALLOCA_H), which cannot be passed through the command
78464         line.
78465
78466 2005-10-15  Simon Josefsson  <jas@extundo.com>
78467
78468         * modules/rijndael-tests: New file.
78469
78470         * modules/rijndael: New file.
78471
78472 2005-10-15  Simon Josefsson  <jas@extundo.com>
78473
78474         * m4/rijndael.m4: New file.
78475
78476 2005-10-15  Simon Josefsson  <jas@extundo.com>
78477
78478         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78479
78480         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78481
78482 2005-10-14  Simon Josefsson  <jas@extundo.com>
78483
78484         * tests/test-arcfour.c: New file.
78485
78486         * modules/arcfour, modules/arcfour-tests: New files.
78487
78488 2005-10-14  Simon Josefsson  <jas@extundo.com>
78489
78490         * m4/arcfour.m4: New file.
78491
78492 2005-10-14  Simon Josefsson  <jas@extundo.com>
78493
78494         * lib/arcfour.h, lib/arcfour.c: New files.
78495
78496 2005-10-14  Roland McGrath  <roland@redhat.com>
78497
78498         Import from libc.  [BZ #1331]
78499         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78500         macro argument.
78501         Reported by Matej Vela <vela@debian.org>.
78502
78503 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78506         include <wchar.h>; no longer needed.
78507
78508 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78511
78512 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78513         and  Ulrich Drepper  <drepper@redhat.com>
78514
78515         Import from libc.
78516         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78517         instead of inline stream orientation test and two separate
78518         function calls.  Pay no attention to USE_IN_LIBIO.
78519
78520 2005-10-13  Simon Josefsson  <jas@extundo.com>
78521
78522         * modules/gc-hmac-md5-tests: New file.
78523
78524         * tests/test-gc-hmac-sha1.c: New file.
78525
78526         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78527
78528         * modules/gc-hmac-md5-tests: New file.
78529
78530         * tests/test-gc-md5.c: New file.
78531
78532         * modules/gc-md5-tests: New file.
78533
78534 2005-10-13  Simon Josefsson  <jas@extundo.com>
78535
78536         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78537         Move memory allocation outside of loop.
78538
78539 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78540
78541         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78542         intermediate directory is in a read-only file system.  Problem
78543         reported by Eric Blake.
78544
78545 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78546
78547         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78548
78549 2005-10-12  Simon Josefsson  <jas@extundo.com>
78550
78551         * tests/test-hmac-sha1.c: New file.
78552
78553         * modules/hmac-sha1-tests: New file.
78554
78555         * modules/hmac-sha1: New file.
78556
78557 2005-10-12  Simon Josefsson  <jas@extundo.com>
78558
78559         * modules/gc-sha1: New file.
78560
78561 2005-10-12  Simon Josefsson  <jas@extundo.com>
78562
78563         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78564
78565         * tests/test-gc-pbkdf2-sha1.c: New file.
78566
78567 2005-10-12  Simon Josefsson  <jas@extundo.com>
78568
78569         * modules/gc-md5, modules/gc-hmac-md5: New files.
78570
78571         * modules/gc (Files): Remove md5, memxor and hmac files.
78572
78573 2005-10-12  Simon Josefsson  <jas@extundo.com>
78574
78575         * m4/gc-pbkdf2-sha1.m4: New file.
78576
78577         * m4/gc-hmac-sha1.m4: New file.
78578
78579         * m4/gc-sha1: New file.
78580
78581         * m4/hmac-sha1.m4: New file.
78582
78583 2005-10-12  Simon Josefsson  <jas@extundo.com>
78584
78585         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78586
78587         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78588
78589 2005-10-12  Simon Josefsson  <jas@extundo.com>
78590
78591         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78592         suggested by Bruno Haible <bruno@clisp.org>.
78593
78594 2005-10-12  Simon Josefsson  <jas@extundo.com>
78595
78596         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78597
78598 2005-10-12  Simon Josefsson  <jas@extundo.com>
78599
78600         * lib/gc-pbkdf2-sha1.c: New file.
78601
78602         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78603
78604 2005-10-12  Simon Josefsson  <jas@extundo.com>
78605
78606         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78607
78608         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78609
78610 2005-10-12  Simon Josefsson  <jas@extundo.com>
78611
78612         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78613         GC_USE_HMAC_MD5, respectively.
78614
78615         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78616         (gc_md5): Fix typo.
78617
78618         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78619
78620         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78621
78622         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78623
78624 2005-10-12  Bruno Haible  <bruno@clisp.org>
78625
78626         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78627         Reported by Stepan Kasal <kasal@ucw.cz>.
78628
78629 2005-10-11  Simon Josefsson  <jas@extundo.com>
78630
78631         * tests/test-crc.c: New file.
78632
78633         * modules/crc, modules/crc-tests: New files.
78634
78635 2005-10-11  Simon Josefsson  <jas@extundo.com>
78636
78637         * m4/crc.m4: New file.
78638
78639 2005-10-11  Simon Josefsson  <jas@extundo.com>
78640
78641         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78642
78643         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78644
78645         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78646
78647 2005-10-11  Simon Josefsson  <jas@extundo.com>
78648
78649         * lib/crc.h, lib/crc.c: New files.
78650
78651         * lib/gc.h (gc_hash_buffer): Add doc.
78652
78653 2005-10-11  Bruno Haible  <bruno@clisp.org>
78654
78655         * modules/c-strcasestr: New file.
78656         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78657
78658 2005-10-11  Bruno Haible  <bruno@clisp.org>
78659
78660         * modules/c-strcase: New file.
78661         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78662
78663 2005-10-11  Bruno Haible  <bruno@clisp.org>
78664
78665         * lib/strcasecmp.c: Include limits.h.
78666         (strcasecmp): Avoid integer overflow on exotic platforms.
78667         * lib/strncasecmp.c: Include limits.h.
78668         (strncasecmp): Avoid integer overflow on exotic platforms.
78669         Reported by Paul Eggert.
78670
78671 2005-10-11  Bruno Haible  <bruno@clisp.org>
78672
78673         * lib/c-strcasestr.h: New file, from GNU gettext.
78674         * lib/c-strcasestr.c: New file, from GNU gettext.
78675
78676 2005-10-11  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/c-strcase.h: New file, from GNU gettext.
78679         * lib/c-strcasecmp.c: New file, from GNU gettext.
78680         * lib/c-strncasecmp.c: New file, from GNU gettext.
78681
78682 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * modules/mempcpy (License): GPL -> LGPL.
78685         * modules/strchrnul (License): Likewise.
78686         * modules/sysexits (License): Likewise.
78687
78688 2005-10-08  Simon Josefsson  <jas@extundo.com>
78689
78690         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78691
78692 2005-10-07  Simon Josefsson  <jas@extundo.com>
78693
78694         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78695
78696 2005-10-06  Simon Josefsson  <jas@extundo.com>
78697
78698         * tests/test-hmac-md5.c: New file.
78699
78700         * modules/hmac-md5-tests: New file.
78701
78702         * modules/hmac-md5: New file.
78703
78704 2005-10-06  Simon Josefsson  <jas@extundo.com>
78705
78706         * m4/hmac-md5.m4: New file.
78707
78708         * m4/memxor.m4: Require gl_C_RESTRICT.
78709
78710 2005-10-06  Simon Josefsson  <jas@extundo.com>
78711
78712         * lib/memxor.c (memxor): Avoid casts and warnings.
78713
78714 2005-10-06  Simon Josefsson  <jas@extundo.com>
78715
78716         * lib/hmac-md5.c: New file.
78717
78718         * lib/hmac.h: New file.
78719
78720 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78723         promotes to int, not unsigned int, to catch the AIX 5.3
78724         compiler bug.
78725
78726 2005-10-05  Simon Josefsson  <jas@extundo.com>
78727
78728         * modules/memxor: New file.
78729
78730         * modules/iconv (Files): Move config.rpath to havelib, it is used
78731         there.
78732
78733         * modules/havelib (Files): Add config.rpath.
78734
78735 2005-10-05  Simon Josefsson  <jas@extundo.com>
78736
78737         * m4/memxor.m4: New file.
78738
78739 2005-10-05  Simon Josefsson  <jas@extundo.com>
78740
78741         * lib/memxor.c (memxor): Fix compiler error.
78742
78743         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78744         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78745
78746         * lib/memxor.h, lib/memxor.c: New files.
78747
78748         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78749         we assume all systems have it, suggested by Jim Meyering
78750         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78751         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78752         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78753         same reasons.
78754
78755 2005-10-05  Simon Josefsson  <jas@extundo.com>
78756
78757         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78758
78759 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78762         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78763         needed, since the source code now assumes these .h files.
78764
78765 2005-10-05  Derek Price  <derek@ximbiot.com>
78766
78767         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78768
78769 2005-10-05  Bruno Haible  <bruno@clisp.org>
78770
78771         * modules/stdint (License): Change to LGPL.
78772
78773 2005-10-04  Simon Josefsson  <jas@extundo.com>
78774
78775         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78776         D. Baushke" <mdb@gnu.org>.
78777
78778 2005-10-04  Bruno Haible  <bruno@clisp.org>
78779
78780         * lib/verify.h (verify_true): Provide alternative definition for C++.
78781
78782 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78785         (SSIZE_MAX): New macro, if not already defined.
78786         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78787         than 2 GiB.
78788
78789 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78790
78791         Sync from coreutils.
78792         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78793         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78794         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78795         ULLONG_MAX doesn't work with 2.7.2.1.
78796
78797 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78800         From Ben Pfaff.
78801
78802         * modules/exclude (Depends-on): Depend on verify.
78803         * modules/strtoimax (Depends-on): Likewise.
78804         * modules/utimecmp (Depends-on): Likewise.
78805
78806 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78807
78808         * lib/exclude.c: Include verify.h.
78809         (verify): Remove.  All callers changed to use verify.h's version.
78810         * lib/strtoimax.c: Likewise.
78811         * lib/utimecmp.c: Likewis.e
78812
78813         Sync from coreutils.
78814         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78815         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78816         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78817         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78818         bother returning ENOSYS if settimeofday or stime fails; just let
78819         them return whatever errno they want to return.
78820         * lib/utimens.c: Include unistd.h, for dup2.
78821         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78822         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78823
78824 2005-10-02  Jim Meyering  <jim@meyering.net>
78825
78826         Sync from coreutils.
78827         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78828         from glibc-2.2.5 that fails for read-only files.
78829
78830 2005-10-02  Jim Meyering  <jim@meyering.net>
78831
78832         Sync from coreutils.
78833         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78834         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78835         `#if HAVE_CONFIG_H'.
78836         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78837         Remove AT_FDCWD test.
78838         Do not consume the fd unless successful.
78839         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78840         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78841         block, so that we don't even try to compile it if settimeofday is
78842         available.  This works around a compilation failure on OSF1 V5.1,
78843         due to stime requiring a `long int*' while tv_sec is `int'.
78844
78845 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
78846
78847         Sync from coreutils.
78848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
78849         against `yes', rather than just testing for nonempty.
78850
78851 2005-10-01  Simon Josefsson  <jas@extundo.com>
78852
78853         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
78854         and Darwin.
78855
78856         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
78857         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
78858         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
78859         freeaddrinfo and gai_strerror are declared by the POSIX headers.
78860         Check if struct addrinfo is declared.
78861
78862 2005-10-01  Simon Josefsson  <jas@extundo.com>
78863
78864         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
78865         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
78866         AI_* and EAI_* definitions.  Protect function declarations.
78867
78868 2005-10-01  Jim Meyering  <jim@meyering.net>
78869
78870         Sync from coreutils.
78871
78872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
78873         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
78874         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
78875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78876         in the inet and nsl libraries.  Required on Solaris 5.7.
78877
78878 2005-10-01  Jim Meyering  <jim@meyering.net>
78879
78880         Sync from coreutils.
78881         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78882         in the inet and nsl libraries.  Required on Solaris 5.7.
78883
78884 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
78885
78886         * lib/getdelim.c (getdelim): Remove unused variables.
78887
78888 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
78891         so that the code works even with ancient cpp.  Portability problem
78892         with GCC 2.7.2.1 reported by Thomas M.Ott.
78893
78894 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * modules/regex (Depends-on): Add strcase.
78897
78898         * modules/gethostname (Licence): Change from GPL to LGPL, since
78899         gethostname.c is a trivial implementation of a standard library
78900         function.
78901         * modules/poll (License): Change from GPL to LGPL, since it's
78902         derived from LGPL code.
78903
78904 2005-09-27  Jim Meyering  <jim@meyering.net>
78905
78906         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
78907         HAVE_CONFIG_H.
78908
78909         * lib/intprops.h (signed_type_or_expr__): Define.
78910         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
78911         for unsigned types.
78912
78913 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78914
78915         * lib/verify.h (verify_expr): Remove, replacing with:
78916         (verify_true): New macro that returns true instead of void.
78917         (verify_type__): Remove.
78918         (verify): Use verify_true rather than verify_type__.
78919
78920 2005-09-26  Bruno Haible  <bruno@clisp.org>
78921
78922         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
78923         is necessary.
78924         (lib_SOURCES): Remove mbchar.c.
78925         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
78926         (Files): Add m4/mbrtowc.m4.
78927         * modules/mbiter: Likewise.
78928         * modules/mbuiter: Likewise.
78929
78930 2005-09-26  Bruno Haible  <bruno@clisp.org>
78931
78932         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
78933         compile mbchar.c if they are not both present.
78934         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
78935         * m4/mbiter.m4 (gl_MBITER): Likewise.
78936         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
78937         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
78938         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
78939
78940 2005-09-25  Jim Meyering  <jim@meyering.net>
78941
78942         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
78943         also uses socklen_t.
78944
78945 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         * lib/utimens.c (ENOSYS): Define if not already defined.
78948         (futimens): Support having a null PATH if the file descriptor
78949         is nonnegative.
78950
78951         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
78952         Remove.
78953         (__attribute): Define to empty unless GCC 3.1 or later.
78954         This works around a core dump on OpenBSD 3.4, which has GCC
78955         2.95.3, which dumps core when given __attribute__(()).  It also
78956         simplifies other tests, since we really don't want to bother with
78957         worrying about which ancient version of GCC supported what.
78958         Original problem reported by Yoann Vandoorselaere, with part of
78959         the fix suggested by Derek Price.
78960
78961 2005-09-24  Jim Meyering  <jim@meyering.net>
78962
78963         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
78964         so we can once again use a positive bitfield width of 1 -- now we
78965         don't have to explain why we were using a bitfield width of 2.
78966
78967 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
78970         and similarly for the other external symbols.  Problem reported
78971         by James Gallager.
78972
78973         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
78974         bug reported by Jim Meyering.
78975
78976         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
78977         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
78978         not needed, since socklen is a prerequisite module.
78979
78980 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
78983         Problem reported by Eric Blake.
78984         (getaddrinfo): Initialize se so that it's not garbage.
78985         Redo internal storage allocation so that it doesn't make unportable
78986         assumptions about alignment.
78987         Fix a memory leak.
78988
78989         * lib/utimens.c (futimens): Use futimesat if available.
78990         Prefer it to futimes since it doesn't have the futimes bug.
78991
78992         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
78993         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
78994         Instead, declare a function that returns a pointer to an array,
78995         and use verify_type__ to declare the size of the array.
78996         Problem and germ of a solution reported by Bruno Haible.
78997         (verify_type__): Use 2, not 1, for bitfield size, to avoid
78998         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
78999
79000 2005-09-23  Jim Meyering  <jim@meyering.net>
79001
79002         Sync from coreutils.
79003         Correct build failure (socklen_t not defined) on at least
79004         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79006
79007 2005-09-23  Jim Meyering  <jim@meyering.net>
79008
79009         * modules/getaddrinfo (Depends-on): Add socklen.
79010
79011 2005-09-23  Bruno Haible  <bruno@clisp.org>
79012
79013         * tests/test-verify.c: New file.
79014
79015 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         Sync from coreutils.
79018
79019         * modules/argmatch (Depends-on): Add verify.
79020         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79021         unistd-safer.
79022         * modules/save-cwd (Depends-on): Likewise.
79023
79024         * modules/openat (Files): Add lib/openat-die.c.
79025         (Depends-on): Remove error, exitfail.
79026         Add dirname.
79027
79028         * modules/verify: New file.
79029         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79030         with "verify" module.
79031
79032 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         Sync from coreutils.
79035
79036         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79037         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79038         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79039         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79040         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79041         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79042         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79043         Don't bother checking for string.h, stdlib.h, unistd.h.
79044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79045         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79046         module's job.
79047         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79048         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79049
79050         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79051         (gl_GETDATE): Use it.
79052
79053         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79054
79055 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79056
79057         Sync from coreutils.
79058
79059         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79060         stat-time.h.
79061         * lib/argmatch.h: Include verify.h
79062         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79063         (ARGMATCH_ASSERT): Remove; unused.
79064         * lib/canonicalize.c: Assume STDC_HEADERS.
79065         * lib/exclude.c: Include "strcase.h".
79066         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79067         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79068         and stdio-safer.h.
79069         (getusershell): Call fopen, not fopen_safer.
79070         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79071         Do not include unistd-safer.h.
79072         (save_cwd): Don't call fd_safer; no longer needed
79073         now that we include fcntl--.h.
79074
79075         * lib/getdate.y (relative_time): New type.
79076         (RELATIVE_TIME_0): New constant.
79077         (parser_control): Use relative_time instead of doing it ourselves.
79078         (%union): Add new relative_time rel member.
79079         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79080         Now typeless.
79081         (relunit, relunit_snumber): Now of type rel.
79082         (zone, rel, relunit, get_date): Adjust to above changes.
79083
79084         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79085         Do not include unistd-safer.h.
79086         (getloadavg): Don't call fd_safer; no longer needed
79087         now that we include fcntl--.h.
79088
79089         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79090         (make_dir_parents): Treat ENOSYS like EEXIST.
79091
79092         Improve quality of diagnostics on restore_cwd failure.
79093         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79094         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79095         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79096         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79097         each time through the loop.  Do not diagnose restore_cwd failure;
79098         that is the caller's job (and perhaps the caller does not care).
79099
79100         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79101         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79102         If the file already exists but is not a directory, don't bother
79103         to try to make its parents.
79104         Close potential file descriptor leak if we can't chdir("/") (!).
79105         Don't always return true if chdir($PWD) fails; return true only
79106         if the requested action was done successfully (except for the
79107         chdir($PWD)).
79108         Don't log final directory unless we actually made it.
79109         Refactor to avoid duplicate code to fix up permissions.
79110         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79111
79112         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79113         to make it a bit faster and (I hope) clearer.
79114         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79115         Fix bug in formats like %2N.
79116
79117         * lib/verify.h: New file.
79118
79119 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         Sync from coreutils.
79122         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79123
79124 2005-09-22  Jim Meyering  <jim@meyering.net>
79125
79126         Sync from coreutils.
79127
79128         * m4/lstat.m4 (gl_FUNC_LSTAT):
79129         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79130         Remove obsolete comment.
79131         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79132         * m4/xstrtod.m4: Likewise.
79133
79134         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79135
79136 2005-09-22  Jim Meyering  <jim@meyering.net>
79137
79138         Sync from coreutils.
79139
79140         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79141
79142         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79143         the .tm_year member, since otherwise gcc-4.0 would now warn about
79144         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79145
79146         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79147         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79148
79149         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79150         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79151         when run in a time zone for which daylight savings time is in effect
79152         for the starting date.
79153
79154         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79155         stop us from restricting permissions of just-created absolute-named
79156         directories.
79157         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79158         to restore initial working directory.
79159         * lib/mkdir-p.c (make_dir_parents): New parameter:
79160         different_working_dir, to tell caller if/when we change the working
79161         directory and are unable to return to the initial one.
79162         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79163         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79164         `return false'.  This fixes a bug introduced on 2004-07-30.
79165
79166         * lib/openat.c (fdopendir): Be sure to close the supplied
79167         file descriptor before returning.  This makes our replacement
79168         implementation a little closer to Solaris's, where fdopendir
79169         ties the file descriptor to the returned DIR* pointer.
79170         * lib/openat.c (unlinkat): New function.
79171         * lib/openat.h (unlinkat): Add prototype.
79172         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79173         (openat_restore_fail): Rename from openat_restore_die.
79174         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79175
79176         Provide an alternative to exiting immediately upon save_cwd or
79177         restore_cwd failure.  Now, an application can arrange e.g.,
79178         to perform a longjump in that case.
79179         * lib/openat.c: Include dirname.h.
79180         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79181         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79182         and openat_restore_die rather than calling error directly.
79183         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79184
79185         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79186         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79187         define.
79188
79189         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79190         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79191                             int utc, int nanoseconds);
79192         Background:
79193         date should not have to allocate a megabyte of virtual memory to
79194         handle a format argument like +%1048575T.  When implemented with
79195         strftime, it must allocate such a buffer, use strftime to fill it
79196         in, print it, then free it.
79197         With fprintftime, it simply prints everything and exits.
79198         With no need for memory allocation, that's one fewer way to fail.
79199         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79200         optional field width, not before, so we accept %9:z, not %:9z.
79201         (my_strftime): Be sure to use L_('x') for literals.
79202
79203         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79204         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79205         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79206         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79207         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79208         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79209         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79210         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79211         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79212         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79213         * lib/xgethostname.c, lib/xreadlink.c:
79214         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79215
79216         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79217         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79218         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79219         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79220         and don't include <sys/file.h>).
79221
79222 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79223
79224         Sync from coreutils.
79225
79226         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79227         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79228         [!LDAV_DONE]: Avoid unused variable warning.
79229
79230 2005-09-21  Bruno Haible  <bruno@clisp.org>
79231
79232         * lib/unicodeio.h (unicode_to_mb): New declaration.
79233
79234 2005-09-20  Derek Price  <derek@ximbiot.com>
79235
79236         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79237         getaddrinfo.h.
79238
79239 2005-09-20  Bruno Haible  <bruno@clisp.org>
79240
79241         * gnulib-tool: Remove trailing slashes from the values specified for
79242         --source-base, --m4-base, --tests-base, --aux-dir.
79243         Suggested by Simon Josefsson <jas@extundo.com>.
79244
79245 2005-09-20  Bruno Haible  <bruno@clisp.org>
79246
79247         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79248         func_modules_to_filelist, func_import, func_create_testdir): Make all
79249         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79250         change when gnulib-tool is invoked in a different locale.
79251
79252 2005-09-19  Simon Josefsson  <jas@extundo.com>
79253
79254         * m4/socklen.m4: Fix typo.
79255
79256 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79257
79258         Use a consistent style for including <config.h>.
79259         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79260         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79261         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79262         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79263         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79264         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79265         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79266         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79267         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79268         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79269         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79270         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79271         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79272         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79273         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79274         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79275         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79276         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79277         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79278         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79279         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79280         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79281         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79282         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79283         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79284         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79285         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79286         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79287         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79288         lib/xstrtoumax.c, lib/yesno.c:
79289         Standardize inclusion of config.h.
79290         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79291         lib/inttostr.h:  Removed inclusion of config.h from header files.
79292         * lib/inttostr.c:  Adjusted in-tree users.
79293         * lib/timespec.h: Remove superfluous warning to include config.h.
79294         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79295         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79296         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79297         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79298         config.h with HAVE_CONFIG_H.
79299
79300 2005-09-19  Jim Meyering  <jim@meyering.net>
79301
79302         * modules/pathmax (License): Change to LGPL.
79303
79304 2005-09-19  Derek Price  <derek@ximbiot.com>
79305
79306         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79307
79308 2005-09-19  Bruno Haible  <bruno@clisp.org>
79309
79310         * gnulib-tool (import): Provide default for --tests-base.
79311
79312 2005-09-19  Bruno Haible  <bruno@clisp.org>
79313
79314         * doc/quote.texi: New file, extracted from gnulib.texi.
79315         * doc/ctime.texi: New file, extracted from gnulib.texi.
79316         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79317         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79318         * doc/gnulib.texi: Include them.
79319
79320 2005-09-18  Bruno Haible  <bruno@clisp.org>
79321
79322         Portability fix.
79323         * gnulib-tool (func_readlink): New function.
79324         (func_ln_if_changed): Use it.
79325
79326 2005-09-18  Bruno Haible  <bruno@clisp.org>
79327
79328         * gnulib-tool: Support --with-tests also with --import.
79329         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79330         (func_import): Use variables $testsbase and $inctests. Emit a
79331         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79332         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79333         SUBDIRS += $testsdir.
79334         (func_create_testdir): Update.
79335
79336 2005-09-18  Bruno Haible  <bruno@clisp.org>
79337
79338         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79339         instead of $dry_run.
79340         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79341         (func_ln_if_changed): Don't handle dry-run here.
79342         (func_import): In dry-run mode, detect more precisely which actions
79343         would be performed, and don't use "...ing" verbs.
79344
79345 2005-09-18  Bruno Haible  <bruno@clisp.org>
79346
79347         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79348         (func_import): Use join on two temporary files instead of three nested
79349         loops, in order to determine which files are new or old.
79350
79351 2005-09-18  Bruno Haible  <bruno@clisp.org>
79352
79353         * gnulib-tool (func_import): Comment out code that spits out the
79354         new files with --dry-run.
79355
79356 2005-09-18  Bruno Haible  <bruno@clisp.org>
79357
79358         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79359
79360 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79361
79362         * lib/stat-time.h: New file.
79363         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79364         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79365         in a different way.
79366         (timespec_cmp): New function.
79367         * lib/utimecmp.c: Include stat-time.h.
79368         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79369         members exist, not on the obsolescent ST_MTIM_NSEC.
79370         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79371
79372 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79373
79374         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79375
79376 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * MODULES.html.sh (File system functions): Add stat-time.
79379         * modules/stat-time: New file.
79380         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79381         is now done in a different way, by the stat-time module.
79382         * modules/utimecmp (Depends-on): Add stat-time.
79383
79384 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79385
79386         * m4/st_mtim.m4: Remove.  Superseded by...
79387         * m4/stat-time.m4: New file.
79388         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79389         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79390
79391 2005-09-15  Derek Price  <derek@ximbiot.com>
79392
79393         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79394
79395 2005-09-15  Derek Price  <derek@ximbiot.com>
79396
79397         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79398         * lib/regex_internal.c: Ditto, using this...
79399         (__GNUC_PREREQ): ...new macro.
79400         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79401         using...
79402         (__GNUC_PREREQ): ...this new macro.
79403
79404         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79405
79406 2005-09-15  Derek Price  <derek@ximbiot.com>
79407             Paul Eggert  <eggert@cs.ucla.edu>
79408
79409         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79410         changes, consolidating in...
79411         * lib/regex_internal.h: ...this file.
79412
79413 2005-09-13  Jim Meyering  <jim@meyering.net>
79414
79415         * lib/canon-host.c: Filter through gnu indent and reword comments
79416         slightly.
79417         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79418
79419 2005-09-13  Derek Price  <derek@ximbiot.com>
79420
79421         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79422         failure.
79423         Reported by Jim Meyering  <jim@meyering.net>.
79424
79425 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79426
79427         * lib/base64.c: Typo.
79428         (base64_encode): Put b64str in initialized data section.
79429
79430 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         Merge glibc and coreutils changes into gnulib, plus a few
79433         extra fixes.
79434         * lib/md5.c: Use #error rather than a string.
79435         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79436         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79437         (__attribute__): Define to empty for non recent-GCC.
79438         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79439         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79440         Renamed from their non-__ counterparts, with new macros replacing
79441         them if not _LIBC.  Add __THROW attribute.
79442         (rol): Remove.
79443         (struct md5_ctx): Align buffer if using GCC.
79444         * lib/sha1.h (struct sha1_ctx): Likewise.
79445         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79446         The old name was backwards.
79447         (NOTSWAP): Remove; not used.
79448         (rol): New macro, moved here from md5.h.
79449         (sha1_process_block): Remove a FIXME that doesn't make sense.
79450
79451 2005-09-12  Derek Price  <derek@ximbiot.com>
79452
79453         Return usable errors from canon-host.
79454         * lib/canon-host.h: New file.
79455         * lib/canon-host.c (canon_host): Wrap...
79456         (canon_host_r): ...this new function, which now relies exclusively on
79457         getaddrinfo.
79458         (ch_strerror): New function.
79459         (last_cherror): New global.
79460         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79461         interface.
79462         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79463         void *.
79464         (freeaddrinfo): Free ai->ai_canonname when set.
79465
79466 2005-09-12  Derek Price  <derek@ximbiot.com>
79467
79468         Make canon-host require getaddrinfo.
79469         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79470         AC_LIBSOURCE canon-host.h.  Call...
79471         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79472         gl_GETADDRINFO.
79473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79474
79475 2005-09-12  Derek Price  <derek@ximbiot.com>
79476
79477         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79478         LGPL.
79479         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79480
79481 2005-09-12  Derek Price  <derek@ximbiot.com>
79482
79483         * lib/gai_strerror.c: Include config.h when available.  Include
79484         getaddrinfo.h before other headers to test interface.
79485         Reported by Larry Jones <lawrence.jones@ugs.com>.
79486
79487 2005-09-12  Derek Price  <derek@ximbiot.com>
79488             Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         * modules/glob (Files): Add glob-libc.h.
79491
79492 2005-09-12  Derek Price  <derek@ximbiot.com>
79493             Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79496         glob_.h, glob-libc.h.
79497         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79498
79499 2005-09-12  Derek Price  <derek@ximbiot.com>
79500             Paul Eggert  <eggert@cs.ucla.edu>
79501
79502         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79503         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79504         protecting things that should be done only in gnulib contexts.
79505         * lib/glob_.h: New file, containing only the glob things needed for
79506         gnulib.
79507         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79508         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79509         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79510         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79511         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79512         and to respect the namespace rules better.
79513
79514 2005-09-08  Simon Josefsson  <jas@extundo.com>
79515
79516         * modules/socklen: New file.
79517
79518 2005-09-08  Simon Josefsson  <jas@extundo.com>
79519
79520         * m4/socklen.m4: New file.
79521
79522 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * modules/utimens (Files): Add m4/utimbuf.m4, since
79525         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79526         Reported by Sergey Poznyakoff.
79527
79528 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79531         definitions, since that's the preferred style in glibc.
79532         Fix a minor spacing issue, and update copyright notice to match
79533         glibc's.
79534
79535 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79536
79537         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79538
79539 2005-09-06  Simon Josefsson  <jas@extundo.com>
79540
79541         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79542         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79543
79544 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79545
79546         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79547         warning.
79548
79549 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79550
79551         * config/srclist.txt: Add glibc bug 1302.
79552
79553 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         Change bitset word type from unsigned int to unsigned long int,
79556         as this has better performance on typical 64-bit hosts.
79557         Port bitset code to hosts with unusual word sizes.
79558         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79559         (build_collating_symbol):
79560         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79561         argument is a bitset.  This is merely a style issue, but it makes
79562         it clearer that an entire array is expected.
79563         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79564         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79565         Port to the case where bitset_word is not the same as unsigned int.
79566         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79567         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79568         Likewise.
79569         * lib/regexec.c (check_dst_limits_calc_pos_1,
79570         check_subexp_matching_top):
79571         (build_trtable, group_nodes_into_DFAstates):
79572         Likewise.
79573         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79574         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79575         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79576         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79577         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79578         * lib/regcomp.c (optimize_subexps, lower_subexp):
79579         Work even if bitset_word has holes in its bitwise representation.
79580         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79581         * lib/regexec.c (check_dst_limits_calc_pos_1,
79582         check_subexp_matching_top):
79583         Likewise.
79584         * lib/regex_internal.c (re_string_reconstruct):
79585         Don't assume UCHAR_MAX == 255.
79586         * lib/regex_internal.h (bitset_set_all): Likewise.
79587         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79588         All uses changed.
79589         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79590         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79591         All uses changed.
79592         (BITSET_WORD_MAX): New macro.
79593         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79594         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79595         (bitset_empty, bitset_copy):
79596         Prefer sizeof (bitset) to multiplying it out ourselves.
79597         (bitset_not_merge): Remove; unused.
79598         (bitset_contain): Return bool, not unsigned int with one bit on.
79599         All callers changed.
79600         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79601         alignment than re_node_set; do this by defining a new internal
79602         type struct dests_alloc and using it to allocate memory.
79603
79604 2005-09-05  Bruno Haible  <bruno@clisp.org>
79605
79606         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79607         links.
79608
79609 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79610
79611         * modules/size_max (Makefile.am): Add size_max.h
79612
79613 2005-09-04  Derek Price  <derek@ximbiot.com>
79614
79615         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79616
79617 2005-09-03  Simon Josefsson  <jas@extundo.com>
79618
79619         * gnulib-tool: Fix typo.
79620
79621 2005-09-03  Simon Josefsson  <jas@extundo.com>
79622
79623         * config/srclist.txt: Add glibc bug 1293.
79624
79625 2005-09-03  Derek Price  <derek@ximbiot.com>
79626
79627         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79628         From Larry Jones <lawrence.jones@ugs.com>.
79629
79630 2005-09-02  Simon Josefsson  <jas@extundo.com>
79631
79632         * modules/socklen: New file.
79633
79634 2005-09-02  Simon Josefsson  <jas@extundo.com>
79635
79636         * modules/havelib: New module.
79637
79638         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79639         Use havelib.
79640
79641 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79642
79643         Check for arithmetic overflow when calculating sizes, to prevent
79644         some buffer-overflow issues.  These patches are conservative, in the
79645         sense that when I couldn't determine whether an overflow was possible,
79646         I inserted a run-time check.
79647         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79648         macros.
79649         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79650         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79651         (re_xnrealloc, re_x2nrealloc): New inline functions.
79652         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79653         parse_bracket_exp):
79654         (build_equiv_class, build_charclass): Check for arithmetic overflow
79655         in size expression calculations.
79656         * lib/regex_internal.c (re_string_realloc_buffers):
79657         (build_wcs_upper_buffer, re_node_set_add_intersect):
79658         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79659         (re_dfa_add_node, register_state): Likewise.
79660         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79661         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79662         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79663         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79664
79665 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79668         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79669
79670 2005-09-02  Bruno Haible  <bruno@clisp.org>
79671
79672         Support for lib vs. lib64 distinction on biarch platforms.
79673         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79674         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79675         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79676
79677 2005-09-02  Bruno Haible  <bruno@clisp.org>
79678
79679         * gnulib-tool (import): In the other first-use case, provide defaults
79680         as well.
79681
79682 2005-09-02  Bruno Haible  <bruno@clisp.org>
79683
79684         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79685         patches not yet found in the latest gettext release.
79686
79687 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79690         to avoid a collision with bits/local_lim.h in glibc.
79691         All uses changed.  Problem reported by Dmitry V. Levin in
79692         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79693
79694         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79695         bugs in int versus size_t comparisons.
79696         (re_string_context_at): Fix bug where the code assumed that
79697         Idx is signed.
79698
79699         Use bool where appropriate.
79700         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79701         All callers changed.
79702         (calc_eclosure_iter): Likewise, for ROOT arg.
79703         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79704         (build_charclass_op): Likewise, for NON_MATCH arg.
79705         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79706         (re_string_construct_common): Likewise, for ICASE arg.
79707         * lib/regexec.c (re_search_2_stub, re_search_stub):
79708         Likewise, for RET_LEN arg.
79709         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79710         (set_regs): Likewise, for FL_BACKTRACK arg.
79711         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79712         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79713         (calc_eclosure_iter, parse_bracket_exp):
79714         Use bool for internal variables that are booleans.
79715         * lib/regexec.c (re_search_internal, check_matching,
79716         proceed_next_node):
79717         (set_regs, build_sifted_states, sift_states_bkref):
79718         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79719         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79720         (find_collation_sequence_value):
79721         Likewise.
79722         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79723         (re_node_set_compare):
79724         Return bool, not int. All callers changed.
79725         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79726         (build_trtable, check_node_accept): Likewise.
79727         * lib/regex_internal.h: Include stdbool.h.
79728
79729         Fix bugs uncovered when converting to bool.
79730         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79731         failure instead of charging ahead blindly.
79732         * lib/regex_internal.c (register_state): Likewise.
79733         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79734         for freeing internal storage.
79735         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79736         bitset pieces used as boolean, to avoid undefined behavior
79737         on hosts that do int overflow checking.
79738
79739 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         * config/srclist.txt: Add glibc bugs 1285-1287.
79742
79743 2005-09-01  Jim Meyering  <jim@meyering.net>
79744
79745         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79746         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79747         Require gl_STAT_MACROS, too.
79748
79749 2005-09-01  Bruno Haible  <bruno@clisp.org>
79750
79751         * gnulib-tool (import): In the first-use case, provide defaults.
79752
79753 2005-09-01  Bruno Haible  <bruno@clisp.org>
79754
79755         * gnulib-tool (func_import): Remove the .tmp files.
79756
79757 2005-09-01  Bruno Haible  <bruno@clisp.org>
79758
79759         * gnulib-tool (func_import): Fix handling of symbolic links.
79760
79761 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79762
79763         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79764         old glibc regex code mishandles strings longer than 2**31 bytes.
79765         This patch fixes this when the regex code is used in gnulib
79766         (i.e., outside glibc).
79767
79768         This patch should not affect the use of the regex code inside
79769         glibc.  No doubt this problem also needs to be handled for glibc
79770         as well, but the result will be an incompatible change to the
79771         glibc ABI, and the old ABI will have to be supported too.  That
79772         can be the the subject for another patch.
79773
79774         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79775         governing whether the rest of this patch is active.  By default,
79776         the macro is disabled and the patch has no effect.
79777         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79778         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79779         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79780         (re_match_2, re_set_registers): Use the new types.
79781         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79782         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79783         New macros.
79784         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79785         (re_string_context_at, bin_tree_t, re_dfastate_t):
79786         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79787         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79788         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79789         (re_string_char_size_at, re_string_wchar_at):
79790         (re_string_elem_size_at):
79791         Use the new types and macros to port to 64-bit hosts.
79792         Use unsigned types for internal values, so that the code
79793         mostly works even for arrays larger than SSIZE_MAX.
79794         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79795         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79796         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79797         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79798         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79799         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79800         (calc_inveclosure, parse_dup_op, build_range_exp):
79801         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79802         (fetch_number, create_token_tree, mark_opt_subexp):
79803         Likewise.
79804         * lib/regex_internal.c (re_string_construct_common,
79805         create_ci_newstate):
79806         (create_cd_newstate, re_string_allocate, re_string_construct):
79807         (re_string_realloc_buffers, build_wcs_upper_buffer):
79808         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79809         (re_string_reconstruct, re_string_peek_byte_case):
79810         (re_string_fetch_byte_case, re_string_context_at):
79811         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79812         (re_node_set_init_copy, re_node_set_add_intersect):
79813         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79814         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79815         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79816         (re_acquire_state, re_acquire_state_context, register_state):
79817         Likewise.
79818         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79819         search_cur_bkref_entry):
79820         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79821         (re_search_internal, re_search_2_stub, re_search_stub)
79822         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79823         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79824         (update_cur_sifted_state, check_dst_limits):
79825         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79826         (check_subexp_limits, sift_states_bkref, merge_state_array):
79827         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79828         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79829         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79830         (expand_bkref_cache, check_node_accept_bytes):
79831         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79832         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79833         (acquire_init_state_context, check_halt_node_context):
79834         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79835         (sift_states_backward, clean_state_log_if_needed):
79836         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79837         (find_recover_state, transit_state_sb, transit_state_mb):
79838         (transit_state_bkref, build_trtable, match_ctx_clean):
79839         Likewise.
79840         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79841         to work around an assumption that REG_MISSING is negative.
79842
79843         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
79844         (seek_collating_symbol_entry) [defined _LIBC]:
79845         (lookup_collation_sequence_value) [defined _LIBC]:
79846         (build_range_exp, build_collating_symbol) [defined _LIBC]:
79847         Use prototypes rather than old-style function definitions.
79848         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
79849         (transit_state_sb) [0]:
79850         (find_collation_sequence_value) [defined _LIBC]: Likewise.
79851
79852         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
79853         rm_eo.
79854
79855         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
79856         (optimize_subexps, lower_subexp):
79857         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
79858         since the signed shift might overflow.  Use 1u<<31 instead.
79859         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79860         Likewise.
79861         * lib/regexec.c (check_dst_limits_calc_pos_1,
79862         check_subexp_matching_top): Likewise.
79863
79864         * lib/regcomp.c (optimize_subexps, lower_subexp):
79865         Use CHAR_BIT rather than 8, for clarity.
79866         * lib/regexec.c (check_dst_limits_calc_pos_1):
79867         (check_subexp_matching_top): Likewise.
79868         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
79869         have to worry about portability issues when shifting it left.
79870         Remove no-longer-needed test for table_size > 0.
79871         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
79872         in a word, as the resulting behavior is undefined.
79873         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
79874         in one case, a <= should have been an <, and in another case the
79875         whole test was missing.
79876         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
79877         the standard name CHAR_BIT.
79878         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
79879         this is not true on one's complement and signed-magnitude hosts.
79880
79881         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
79882         next_last_offset.
79883         (struct re_dfa_t): Remove unused member states_alloc.
79884         * lib/regcomp.c (init_dfa): Don't initialize unused members.
79885
79886 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
79889         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
79890         and large-file glibc and in 32-bit large-file Solaris.
79891
79892 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
79895         lengths fit in regoff_t; this isn't true if regoff_t is the same
79896         width as size_t.
79897         * lib/regex.c (re_search_internal): 5th arg is LAST_START
79898         (= START + RANGE) instead of RANGE.  This avoids overflow
79899         problems when regoff_t is the same width as size_t.
79900         All callers changed.
79901         (re_search_2_stub): Check for overflow when adding the
79902         sizes of the two strings.
79903         (re_search_stub): Check for overflow when adding START
79904         to RANGE; if it occurs, substitute the extreme value.
79905
79906 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
79909
79910 2005-08-31  Jim Meyering  <jim@meyering.net>
79911
79912         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
79913         a pointer-to-const.
79914         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
79915         (register_state): Likewise.
79916         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
79917         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79918         (group_nodes_into_DFAstates): Likewise.
79919
79920 2005-08-31  Jim Meyering  <jim@meyering.net>
79921
79922         * check-module: Add a FIXME comment.
79923
79924 2005-08-31  Eric Blake  <ebb9@byu.net>
79925
79926         * modules/unistd-safer (Files): Add unistd--.h.
79927         * modules/stdio-safer (Files): Add stdio--.h.
79928
79929 2005-08-31  Derek Price  <derek@ximbiot.com>
79930
79931         * lib/getdelim.c (getdelim): Return EOF on EOF.
79932         Reported by Larry Jones <lawrence.jones@ugs.com>.
79933
79934 2005-08-31  Bruno Haible  <bruno@clisp.org>
79935
79936         Avoid unnecessary diffs in the generated lib/Makefile.am.
79937         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
79938         the generated files.
79939         (func_import): Don't set cmd.
79940
79941 2005-08-31  Bruno Haible  <bruno@clisp.org>
79942
79943         * lib/strstr.c: Include <stddef.h>, for NULL.
79944         * lib/strcasestr.c: Likewise.
79945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79946
79947 2005-08-31  Bruno Haible  <bruno@clisp.org>
79948
79949         * gnulib-tool: New option --macro-prefix.
79950         (func_import): Use macro_prefix.
79951         (import): Handle option --macro-prefix.
79952
79953 2005-08-31  Bruno Haible  <bruno@clisp.org>
79954
79955         * gnulib-tool (import): Rename most ac_* variables to cached_*.
79956         Also use new variables cached_lgpl, cached_libtool.
79957
79958 2005-08-31  Bruno Haible  <bruno@clisp.org>
79959
79960         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
79961         always instantiating them.
79962
79963 2005-08-31  Bruno Haible  <bruno@clisp.org>
79964
79965         * gnulib-tool (func_import): Read the previous cached settings
79966         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
79967         earlier added by gnulib but are now dropped. Warn when a gnulib file
79968         overwrites a non-gnulib file.
79969
79970 2005-08-31  Bruno Haible  <bruno@clisp.org>
79971
79972         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
79973         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
79974         projects that don't keep autogenerated files in CVS. Put into
79975         actioncmd only the specified modules, not the transitive closure.
79976
79977 2005-08-31  Bruno Haible  <bruno@clisp.org>
79978
79979         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
79980         Create directories that shall be filled.
79981         (import): Don't look for gl_* macros in configure.ac. Recurse across
79982         all directories containing a gnulib-cache.m4 files, if meaningful.
79983
79984 2005-08-31  Bruno Haible  <bruno@clisp.org>
79985
79986         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
79987         (import): Set seen_libtool when we see gl_LIBTOOL.
79988
79989 2005-08-31  Bruno Haible  <bruno@clisp.org>
79990
79991         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
79992         declaration macro definitions from generated gnulib.m4.
79993
79994 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
79995
79996         * lib/iconvme.h: Add prototype for iconv_alloc.
79997
79998 2005-08-29  Simon Josefsson  <jas@extundo.com>
79999
80000         * lib/iconvme.c: Fix errno.
80001
80002 2005-08-29  Bruno Haible  <bruno@clisp.org>
80003
80004         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80005         that it works when the directory contains spaces.
80006
80007 2005-08-29  Bruno Haible  <bruno@clisp.org>
80008
80009         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80010
80011 2005-08-29  Bruno Haible  <bruno@clisp.org>
80012
80013         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80014         Emit more advice.
80015
80016 2005-08-29  Bruno Haible  <bruno@clisp.org>
80017         and Stepan Kasal  <kasal@ucw.cz>
80018
80019         * check-module: If more parameters are given, check each of them
80020         separately; add more exceptions, as noted by Jim Meyering.
80021         (check_module): New procedure.
80022         (%exempt_header): Now contains all exceptions.
80023
80024 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80025
80026         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80027
80028 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80029
80030         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80031
80032 2005-08-28  Bruno Haible  <bruno@clisp.org>
80033
80034         * m4/gnulib-tool.m4: New file.
80035
80036 2005-08-27  Jim Meyering  <jim@meyering.net>
80037
80038         * modules/unistd-safer (Files): Add pipe-safer.c.
80039         * modules/fcntl-safer (Files): Add creat-safer.c.
80040
80041 2005-08-27  Jim Meyering  <jim@meyering.net>
80042
80043         * m4/stdlib-safer.m4: New file.  From coreutils.
80044         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80045         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80046         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80047         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80048         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80049
80050 2005-08-27  Jim Meyering  <jim@meyering.net>
80051
80052         * lib/fopen-safer.c: Merge minor changes from coreutils.
80053         * lib/dup-safer.c: Likewise.
80054         * lib/fd-safer.c: Likewise.
80055
80056         Merge from coreutils.
80057         * lib/stdio--.h: New file.
80058         * lib/stdlib--.h: New file.
80059         * lib/mkstemp-safer.c: New file.
80060
80061         GNU tar needs these.
80062         * lib/pipe-safer.c: New file.
80063         * lib/creat-safer.c: New file.
80064         * lib/fcntl--.h (creat): Define to creat_safer.
80065         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80066         * lib/unistd--.h (pipe): Define to pipe_safer.
80067         * lib/unistd-safer.h: Declare pipe_safer.
80068
80069 2005-08-26  Simon Josefsson  <jas@extundo.com>
80070
80071         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80072         Haible <bruno@clisp.org>.
80073
80074 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         * lib/regex_internal.h: Remove all references to
80077         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80078         or better.
80079         (bitset_not, bitset_merge, bitset_not_merge):
80080         (bitset_mask, re_string_allocate, re_string_construct):
80081         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80082         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80083         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80084         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80085         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80086         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80087         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80088         (re_acquire_state_context):
80089         Remove unnecessary forward decls.
80090         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80091         Put __attribute at function definition,
80092         now that the function decl has been removed.
80093         * lib/regex_internal.c (re_string_peek_byte_case):
80094         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80095         Likewise.
80096
80097 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80098
80099         * m4/regex.m4: Add AC_PREREQ(2.50).
80100         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80101
80102 2005-08-25  Simon Josefsson  <jas@extundo.com>
80103
80104         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80105         __fsetlocking.
80106
80107 2005-08-25  Simon Josefsson  <jas@extundo.com>
80108
80109         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80110         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80111         GLIBC specific code.
80112
80113 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         Make regex safe for g++.  This fixes one real bug (an "err"
80116         that should have been "*err").  g++ problem reported by
80117         Sam Steingold.
80118         * lib/regex_internal.h (re_calloc): New macro, consistent with
80119         re_malloc etc.  All callers of calloc changed to use re_calloc.
80120         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80121         not int.  All callers changed.
80122         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80123         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80124         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80125         (find_recover_state): Change "err" to "*err"; this fixes what
80126         appears to be a real bug.
80127         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80128         versus int.
80129
80130 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         * modules/regex (Depends-on): Add malloc, since the code
80133         assumes that !malloc(0) means failure.
80134
80135 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80138
80139         alloca modernization/simplification for regex.
80140         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80141         needs to be at the start of the file, and can be moved into
80142         regex_internal.h and simplified.
80143         * lib/regex_internal.h: Include <alloca.h>.
80144         (__libc_use_alloca) [!defined _LIBC]: New macro.
80145         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80146         now works outside glibc.
80147
80148 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80149
80150         * config/srclist.txt: Add glibc bugs 1241, 1245.
80151
80152 2005-08-25  Jim Meyering  <jim@meyering.net>
80153
80154         * lib/open-safer.c: Include <config.h>.
80155         Otherwise, we'd lose LARGEFILE support in any file using
80156         e.g. "fcntl--.h"
80157
80158 2005-08-25  Bruno Haible  <bruno@clisp.org>
80159
80160         * m4/minmax.m4: Require autoconf 2.52.
80161         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80162         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80163         alternatives of translit over the alphabet.
80164         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80165
80166 2005-08-24  Simon Josefsson  <jas@extundo.com>
80167
80168         * tests/test-getpass.c: New file.
80169
80170 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80171
80172         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80173         for GNU regex features.
80174
80175 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80176
80177         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80178         * lib/regex.h (regerror): Likewise.
80179
80180         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80181         requires this.  (The code never needed it.)
80182
80183         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80184         All uses of recently-renamed identifiers changed to use the new,
80185         POSIX-compliant names.  The code will build and run just fine
80186         without these changes, but it's better to eat our own dog food
80187         and use the standard-conforming names.
80188
80189         * lib/regex.h: Fix a multitude of POSIX name space violations.
80190         These changes have an effect only for programs that define
80191         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80192         do not change anything for programs compiled in the normal way.
80193         Also, there is no effect on the ABI.
80194
80195         (_REGEX_SOURCE): New macro.
80196         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80197         defined and _GNU_SOURCE is not; this fixes a name space violation.
80198
80199         Rename the following macros to obey POSIX requirements.
80200         The old names are still visible as macros if _REGEX_SOURCE is defined.
80201         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80202         RE_BACKSLASH_ESCAPE_IN_LISTS.
80203         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80204         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80205         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80206         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80207         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80208         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80209         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80210         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80211         (REG_INTERVALS): renamed from RE_INTERVALS.
80212         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80213         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80214         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80215         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80216         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80217         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80218         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80219         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80220         RE_UNMATCHED_RIGHT_PAREN_ORD.
80221         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80222         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80223         (REG_DEBUG): renamed from RE_DEBUG.
80224         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80225         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80226         unusual, since we can't clash with the POSIX REG_ICASE.
80227         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80228         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80229         (REG_NO_SUB): renamed from RE_NO_SUB.
80230         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80231         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80232         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80233         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80234         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80235         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80236         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80237         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80238         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80239         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80240         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80241         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80242         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80243         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80244         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80245         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80246         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80247         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80248         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80249         (REG_FIXED): Renamed from REGS_FIXED.
80250         (REG_NREGS): Renamed from RE_NREGS.
80251
80252         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80253         of other REG_* macros, since POSIX says the user is allowed to
80254         #undef these macros selectively.
80255
80256         (reg_errcode_t): Update comment stating what other tables need
80257         to be consistent.
80258
80259         Rename the following enum values to obey POSIX requirements.
80260         The old names are still visible as macros.
80261         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80262         is not defined, since GNU is supposed to be a superset of POSIX as
80263         much as possible, and since we want reg_errcode_t to be a signed
80264         type for implementation consistency.
80265         (_REG_NOERROR): Renamed from REG_NOERROR.
80266         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80267         (_REG_BADPAT): Renamed from REG_BADPAT.
80268         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80269         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80270         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80271         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80272         (_REG_EBRACK): Renamed from REG_EBRACK.
80273         (_REG_EPAREN): Renamed from REG_EPAREN.
80274         (_REG_EBRACE): Renamed from REG_EBRACE.
80275         (_REG_BADBR): Renamed from REG_BADBR.
80276         (_REG_ERANGE): Renamed from REG_ERANGE.
80277         (_REG_ESPACE): Renamed from REG_ESPACE.
80278         (_REG_BADRPT): Renamed from REG_BADRPT.
80279         (_REG_EEND): Renamed from REG_EEND.
80280         (_REG_ESIZE): Renamed from REG_ESIZE.
80281         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80282         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80283         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80284         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80285         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80286
80287         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80288         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80289         changed.  But support the old name if the new one is not defined
80290         and if _REGEX_SOURCE.
80291
80292         Change the following member names in struct re_pattern_buffer.
80293         The old names are still supported if !_REGEX_SOURCE.
80294         The new names are always supported, regardless of _REGEX_SOURCE.
80295         (re_buffer): Renamed from buffer.
80296         (re_allocated): Renamed from allocated.
80297         (re_used): Renamed from used.
80298         (re_syntax): Renamed from syntax.
80299         (re_fastmap): Renamed from fastmap.
80300         (re_translate): Renamed from translate.
80301         (re_can_be_null): Renamed from can_be_null.
80302         (re_regs_allocated): Renamed from regs_allocated.
80303         (re_fastmap_accurate): Renamed from fastmap_accurate.
80304         (re_no_sub): Renamed from no_sub.
80305         (re_not_bol): Renamed from not_bol.
80306         (re_not_eol): Renamed from not_eol.
80307         (re_newline_anchor): Renamed from newline_anchor.
80308
80309         Change the following member names in struct re_registers.
80310         The old names are still supported if !_REGEX_SOURCE.
80311         The new names are always supported, regardless of _REGEX_SOURCE.
80312         (rm_num_regs): Renamed from num_regs.
80313         (rm_start): Renamed from start.
80314         (rm_end): Renamed from end.
80315
80316         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80317         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80318         Prepend __ to parameter names.
80319
80320         Undo yesterday's changes.
80321
80322 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80323
80324         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80325         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80326         lib/regex.c.
80327
80328 2005-08-24  Jim Meyering  <jim@meyering.net>
80329
80330         Sync from coreutils.
80331         * m4/fcntl-safer.m4: New file.
80332
80333         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80334         and object files for this module.
80335
80336 2005-08-24  Jim Meyering  <jim@meyering.net>
80337
80338         Sync from coreutils.
80339         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80340
80341 2005-08-24  Jim Meyering  <jim@meyering.net>
80342
80343         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80344         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80345
80346 2005-08-24  Jim Meyering  <jim@meyering.net>
80347
80348         * modules/fcntl-safer: New module.
80349         * modules/fts (Depends-on): Add fcntl-safer.
80350         * MODULES.html.sh (File descriptor based Input/Output):
80351         Add fcntl-safer.
80352
80353 2005-08-24  Bruno Haible  <bruno@clisp.org>
80354
80355         Support for unit test modules.
80356         * modules/README: Mention tests modules.
80357         * modules/TEMPLATE-TESTS: New file.
80358         * gnulib-tool: New options --extract-tests-module, --with-tests and
80359         --tests-base (unused for the moment).
80360         (testsbase, inctests): New variables.
80361         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80362         (func_verify_module): Exclude TEMPLATE-TESTS.
80363         (func_verify_nontests_module, func_verify_tests_module): New functions.
80364         (func_get_dependencies): Add implicit dependency for tests modules.
80365         (func_get_tests_module): New function.
80366         (func_modules_transitive_closure): When --with-tests was specified,
80367         include the unit tests as well, unless explicitly avoided.
80368         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80369         (func_emit_tests_Makefile_am): New function.
80370         (func_create_testdir): When --with-tests was specified, emit a
80371         tests/ directory.
80372         * MODULES.html.sh (Future developments): Update.
80373
80374 2005-08-24  Bruno Haible  <bruno@clisp.org>
80375
80376         * modules/tls-tests: New file.
80377         * tests/test-tls.c: New file, from GNU gettext.
80378
80379 2005-08-24  Bruno Haible  <bruno@clisp.org>
80380
80381         * modules/lock-tests: New file.
80382         * tests/test-lock.c: New file, from GNU gettext.
80383
80384 2005-08-24  Bruno Haible  <bruno@clisp.org>
80385
80386         * lib/lock.h: Add multiple inclusion guard.
80387         * lib/tls.h: Add multiple inclusion guard.
80388
80389 2005-08-24  Bruno Haible  <bruno@clisp.org>
80390
80391         * gnulib-tool: Add support for the --aux-dir option to
80392         --create-testdir, --create-megatestdir, --test, --megatest.
80393         (func_create_testdir, func_create_megatestdir): Optionally emit a
80394         AC_CONFIG_AUX_DIR directive.
80395         (create-testdir, create-megatestdir, test, megatest): Provide a
80396         default value for $auxdir.
80397
80398 2005-08-24  Bruno Haible  <bruno@clisp.org>
80399
80400         * gnulib-tool (import): Use compound statement instead of subshell
80401         where possible.
80402
80403 2005-08-24  Bruno Haible  <bruno@clisp.org>
80404
80405         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80406
80407 2005-08-24  Bruno Haible  <bruno@clisp.org>
80408
80409         * gnulib-tool (func_version): Update.
80410
80411 2005-08-24  Bruno Haible  <bruno@clisp.org>
80412
80413         * gnulib-tool (func_import, func_create_testdir,
80414         func_create_megatestdir): Quote all autoconf macro arguments.
80415
80416 2005-08-24  Bruno Haible  <bruno@clisp.org>
80417
80418         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80419         option --force, because --force causes the aclocal.m4 of each
80420         subdirectory to be newer than the corresponding config.h.in.
80421
80422 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80425         All contents moved to gl_REGEX.
80426         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80427         assume that it does.
80428
80429 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80430
80431         * lib/regex.h (REG_NOSYS)
80432         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80433         Define, since POSIX requires it as of 2001.
80434         (_REG_ENOSYS)
80435         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80436         New private symbol, used to keep the enum signed in all cases.
80437         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80438         Youngman in
80439         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80440
80441         * lib/regex_internal.c (re_string_skip_chars, register_state):
80442         (calc_state_hash):
80443         Remove forward decls; no longer needed now that we use prototypes.
80444         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80445         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80446         (clean_state_log_if_needed): Likewise.
80447
80448 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * config/srclist.txt: Add glibc bugs 1231-1233.
80451
80452 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         Fix problems reported by Sam Steingold in
80455         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80456         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80457         assumed that reg_errcode_t is a signed type, which is not
80458         necessarily true if _XOPEN_SOURCE is not defined.
80459         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80460         since some compilers warn about it otherwise.
80461
80462 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80465         (init_word_char, create_initial_state, duplicate_node_closure):
80466         (fetch_token, peek_token_bracket, build_range_exp):
80467         (build_collating_symbol): Remove forward decls; no longer needed
80468         now that we use prototypes.
80469
80470         * lib/regcomp.c:
80471         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80472         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80473         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80474         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80475         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80476         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80477         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80478         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80479         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80480         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80481         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80482         (build_charclass, build_charclass_op, fetch_number, create_tree):
80483         (create_token_tree, mark_opt_subexp, duplicate_tree):
80484         Use prototypes rather than old-style definitions.
80485
80486         * lib/regex_internal.c:
80487         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80488         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80489         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80490         (re_string_reconstruct, re_string_peek_byte_case):
80491         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80492         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80493         (re_node_set_init_copy, re_node_set_add_intersect):
80494         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80495         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80496         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80497         (re_acquire_state, re_acquire_state_context, register_state):
80498         (create_ci_newstate, create_cd_newstate, free_state):
80499         Likewise.
80500         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80501         re_search_2):
80502         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80503         (re_search_internal, prune_impossible_nodes):
80504         (acquire_init_state_context, check_matching, static):
80505         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80506         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80507         (update_regs, sift_states_backward, build_sifted_states):
80508         (clean_state_log_if_needed, merge_state_array):
80509         (update_cur_sifted_state, add_epsilon_src_nodes):
80510         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80511         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80512         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80513         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80514         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80515         (check_arrival, check_arrival_add_next_nodes):
80516         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80517         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80518         (check_node_accept_bytes, check_node_accept, extend_buffers):
80519         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80520         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80521         (sift_ctx_init):
80522         Likewise.
80523
80524         * lib/regex_internal.h:
80525         (re_string_allocate, re_string_construct, re_string_reconstruct):
80526         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80527         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80528         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80529         (re_string_context_at, re_string_peek_byte_case):
80530         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80531         is defined, since we now use prototypes always.
80532
80533         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80534         C89 or better.  All uses removed.
80535
80536 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * config/srclist.txt: Add glibc bugs 1220-1227.
80539
80540 2005-08-20  Jim Meyering  <jim@meyering.net>
80541
80542         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80543         of unused local, dfa.
80544
80545 2005-08-20  Bruno Haible  <bruno@clisp.org>
80546
80547         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80548
80549 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80552         (re_node_set_insert_last, re_dfa_add_node):
80553         Rename local variables to avoid GCC shadowing warnings.
80554
80555 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80556
80557         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80558         [defined lint]: Suppress bogus uninitialized-variable warnings.
80559
80560         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80561         and let the caller return REG_ESPACE if out of space.  This
80562         removes an uninitialied-variable warning with GCC 4.0.1, and also
80563         avoids taking the address of a local variable.  All callers
80564         changed.
80565
80566 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80567
80568         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80569         $LIBCSRC/posix/regexec.c.
80570         Add glibc bug 1217 for regcomp.c.
80571
80572 2005-08-19  Jim Meyering  <jim@meyering.net>
80573
80574         * lib/regexec.c (proceed_next_node): Redo local variables to
80575         avoid GCC shadowing warnings.
80576
80577 2005-08-18  Bruno Haible  <bruno@clisp.org>
80578
80579         * lib/strstr.c (strstr): Fix return value in multibyte case.
80580         * lib/strcasestr.c (strcasestr): Likewise.
80581
80582 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80585
80586 2005-08-17  Jim Meyering  <jim@meyering.net>
80587
80588         Make the %s format (seconds since the epoch) work for a negative
80589         number and when used with a zero-padded field width, e.g. %015s.
80590
80591         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80592         label so that it precedes the code to set `digits'.  Otherwise,
80593         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80594         print `00-22'.  Now, it prints `-0022', as it should.
80595
80596 2005-08-17  Bruno Haible  <bruno@clisp.org>
80597
80598         * modules/strstr (Files): Add m4/mbrtowc.m4.
80599         (Depends-on): Add mbuiter.
80600
80601 2005-08-17  Bruno Haible  <bruno@clisp.org>
80602
80603         * modules/strcasestr: New file.
80604         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80605         strcasestr.
80606
80607 2005-08-17  Bruno Haible  <bruno@clisp.org>
80608
80609         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80610
80611 2005-08-17  Bruno Haible  <bruno@clisp.org>
80612
80613         * modules/mbuiter: New file.
80614         * MODULES.html.sh (Extended multibyte and wide character utilities):
80615         Add mbuiter.
80616
80617 2005-08-17  Bruno Haible  <bruno@clisp.org>
80618
80619         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80620         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80621
80622 2005-08-17  Bruno Haible  <bruno@clisp.org>
80623
80624         * m4/strcasestr.m4: New file.
80625
80626 2005-08-17  Bruno Haible  <bruno@clisp.org>
80627
80628         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80629         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80630
80631 2005-08-17  Bruno Haible  <bruno@clisp.org>
80632
80633         * lib/strcasestr.h: New file.
80634         * lib/strcasestr.c: New file.
80635
80636 2005-08-17  Bruno Haible  <bruno@clisp.org>
80637
80638         * lib/strcasecmp.c: Use mbuiter.h.
80639
80640 2005-08-17  Bruno Haible  <bruno@clisp.org>
80641
80642         * lib/mbuiter.h: New file.
80643
80644 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80647         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80648         and gl_GETOPT are both invoked via different paths (as happens
80649         with GNU tar CVS because it uses both argp and getopt), the former
80650         wins.
80651
80652 2005-08-16  Bruno Haible  <bruno@clisp.org>
80653
80654         * modules/tls: New file.
80655         * MODULES.html.sh (Multithreading): Add tls.
80656
80657 2005-08-16  Bruno Haible  <bruno@clisp.org>
80658
80659         * modules/strnlen1: New file.
80660         * MODULES.html.sh (String handling): Add strnlen1.
80661
80662 2005-08-16  Bruno Haible  <bruno@clisp.org>
80663
80664         * modules/strcase (Files): Add m4/mbrtowc.m4.
80665         (Depends-on): Add strnlen1, mbchar.
80666
80667 2005-08-16  Bruno Haible  <bruno@clisp.org>
80668
80669         * modules/mbiter: New file.
80670         * MODULES.html.sh (Extended multibyte and wide character utilities):
80671         Add mbiter.
80672
80673 2005-08-16  Bruno Haible  <bruno@clisp.org>
80674
80675         * modules/mbfile: New file.
80676         * MODULES.html.sh (Extended multibyte and wide character utilities):
80677         Add mbfile.
80678
80679 2005-08-16  Bruno Haible  <bruno@clisp.org>
80680
80681         * modules/mbchar: New file.
80682         * MODULES.html.sh (Extended multibyte and wide character utilities):
80683         New section.
80684
80685 2005-08-16  Bruno Haible  <bruno@clisp.org>
80686
80687         * m4/tls.m4: New file, from GNU gettext.
80688
80689 2005-08-16  Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80692         always.
80693         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80694
80695 2005-08-16  Bruno Haible  <bruno@clisp.org>
80696
80697         * m4/mbiter.m4: New file.
80698
80699 2005-08-16  Bruno Haible  <bruno@clisp.org>
80700
80701         * m4/mbfile.m4: New file.
80702
80703 2005-08-16  Bruno Haible  <bruno@clisp.org>
80704
80705         * m4/mbchar.m4: New file.
80706
80707 2005-08-16  Bruno Haible  <bruno@clisp.org>
80708
80709         * lib/tls.h: New file, from GNU gettext.
80710         * lib/tls.c: New file, from GNU gettext.
80711
80712 2005-08-16  Bruno Haible  <bruno@clisp.org>
80713
80714         * lib/strnlen1.h: New file.
80715         * lib/strnlen1.c: New file.
80716
80717 2005-08-16  Bruno Haible  <bruno@clisp.org>
80718
80719         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80720         (mbi_init): Update.
80721         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80722         NUL byte, not after it.
80723
80724 2005-08-16  Bruno Haible  <bruno@clisp.org>
80725
80726         * lib/strcase.h (strcasecmp): Add note in comments.
80727         * lib/strncasecmp.c: Use code from strcasecmp.c.
80728         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80729         (strcasecmp): Work correctly in multibyte locales.
80730
80731 2005-08-16  Bruno Haible  <bruno@clisp.org>
80732
80733         * lib/mbiter.h: New file.
80734
80735 2005-08-16  Bruno Haible  <bruno@clisp.org>
80736
80737         * lib/mbfile.h: New file.
80738
80739 2005-08-16  Bruno Haible  <bruno@clisp.org>
80740
80741         * lib/mbchar.h: New file.
80742         * lib/mbchar.c: New file.
80743
80744 2005-08-16  Bruno Haible  <bruno@clisp.org>
80745
80746         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80747         the valid ones. Makes the comparison operations transitive:
80748         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80749         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80750
80751 2005-08-15  Simon Josefsson  <jas@extundo.com>
80752
80753         * modules/ssize_t (License): Change to 'unlimited'.
80754
80755         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80756
80757 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80758
80759         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80760         Add comments for each pending glibc patch.
80761
80762 2005-08-15  Bruno Haible  <bruno@clisp.org>
80763
80764         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80765         __cplusplus is defined.
80766
80767 2005-08-14  Jim Meyering  <jim@meyering.net>
80768
80769         Sync from coreutils.
80770
80771         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80772         Use the hash-table-based cycle-detection code not just when
80773         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80774         Reported by James Youngman in
80775         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80776         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80777         FTS_TIGHT_CYCLE_CHECK.
80778         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80779         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80780         once again.
80781         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80782         * lib/fts.c (fd_safer): Remove decl.
80783         Include fcntl--.h rather than unistd-safer.h
80784         (fts_safe_changedir): Don't call fd_safer; no longer needed
80785         now that we include fcntl--.h.
80786
80787 2005-08-12  Simon Josefsson  <jas@extundo.com>
80788
80789         * modules/getndelim2: Use ssize_t module.
80790         * modules/getnline: Likewise.
80791         * modules/safe-read: Likewise.
80792         * modules/xreadlink: Likewise.
80793
80794         * modules/ssize_t: New file.
80795
80796 2005-08-12  Simon Josefsson  <jas@extundo.com>
80797
80798         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80799
80800 2005-08-12  Simon Josefsson  <jas@extundo.com>
80801
80802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80803         ssize_t.
80804
80805 2005-08-12  Simon Josefsson  <jas@extundo.com>
80806
80807         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80808         readline, getdelim and check_version.
80809         (Support for systems lacking ISO C 99: Sizes of integer types):
80810         Add size_max.
80811
80812 2005-08-12  Bruno Haible  <bruno@clisp.org>
80813
80814         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80815
80816 2005-08-11  Simon Josefsson  <jas@extundo.com>
80817
80818         * modules/readline: New file.
80819
80820         * modules/strnlen (Files): Add strnlen.h.
80821
80822 2005-08-11  Simon Josefsson  <jas@extundo.com>
80823
80824         * m4/readline.m4: New file.
80825
80826 2005-08-11  Simon Josefsson  <jas@extundo.com>
80827
80828         * lib/readline.h, readline.c: New file.
80829
80830 2005-08-11  Simon Josefsson  <jas@extundo.com>
80831
80832         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80833         gl_AVOID.
80834
80835 2005-08-11  Bruno Haible  <bruno@clisp.org>
80836
80837         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80838
80839 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80840
80841         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
80842
80843 2005-08-10  Simon Josefsson  <jas@extundo.com>
80844
80845         * tests/test-iconvme.c: New file.
80846
80847 2005-08-10  Simon Josefsson  <jas@extundo.com>
80848
80849         * m4/strnlen.m4: New file.
80850
80851         * m4/strndup.m4: Don't check for strnlen declaration, done in
80852         strnlen.m4.
80853
80854 2005-08-10  Simon Josefsson  <jas@extundo.com>
80855
80856         * lib/strndup.c: Use strnlen.h.
80857
80858         * lib/strnlen.h: New file.
80859
80860 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80861
80862         * README: Typos.
80863
80864 2005-08-02  Simon Josefsson  <jas@extundo.com>
80865
80866         * modules/readline: New file.
80867
80868 2005-08-02  Simon Josefsson  <jas@extundo.com>
80869
80870         * modules/getdelim: New file.
80871
80872         * modules/getline: Rewrite, don't use getndelim2.
80873
80874 2005-08-02  Simon Josefsson  <jas@extundo.com>
80875
80876         * m4/getline.m4: Separate out getdelim stuff into separate module.
80877
80878         * m4/getdelim.m4: New file.
80879
80880 2005-08-02  Simon Josefsson  <jas@extundo.com>
80881
80882         * lib/getline.h, getline.c: Rewrite.
80883
80884         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
80885
80886 2005-07-31  Bruno Haible  <bruno@clisp.org>
80887
80888         * lib/lock.h (gl_lock_initializer): New macro.
80889         (gl_lock_define_initialized): Use it.
80890         (gl_rwlock_initializer): New macro.
80891         (gl_rwlock_define_initialized): Use it.
80892         (gl_recursive_lock_initializer): New macro.
80893         (gl_recursive_lock_define_initialized): Use it.
80894
80895 2005-07-30  Karl Berry  <karl@gnu.org>
80896
80897         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
80898         Report from Ben Pfaff, regarding getopt.
80899
80900 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
80901
80902         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
80903         normal way.
80904         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
80905         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
80906         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
80907         (gl_GETOPT): Use the new macros.  Most of the implementation
80908         is moved to the new macros.  This is for programs like Emacs
80909         that don't want all the functionality of gl_GETOPT.
80910
80911 2005-07-26  Bruno Haible  <bruno@clisp.org>
80912
80913         * m4/lock.m4: Update from GNU gettext.
80914
80915 2005-07-26  Bruno Haible  <bruno@clisp.org>
80916
80917         * lib/lock.h: Update from GNU gettext.
80918         * lib/lock.c: Update from GNU gettext.
80919
80920 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
80921
80922         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
80923         obsolescent AC_TRY_RUN.  Include the default includes files, for
80924         'exit'.
80925
80926 2005-07-24  Bruno Haible  <bruno@clisp.org>
80927
80928         * modules/visibility: New file.
80929         * MODULES.html.sh (Misc): Add visibility.
80930
80931 2005-07-24  Bruno Haible  <bruno@clisp.org>
80932
80933         * m4/visibility.m4: New file.
80934
80935 2005-07-24  Bruno Haible  <bruno@clisp.org>
80936
80937         * doc/visibility.texi: New file.
80938
80939 2005-07-22  Bruno Haible  <bruno@clisp.org>
80940
80941         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
80942         $(ALLOCA_H), redundant through BUILT_SOURCES.
80943         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
80944         redundant through BUILT_SOURCES.
80945         * modules/byteswap (Makefile.am): Remove explicit dependency on
80946         $(BYTESWAP_H), redundant through BUILT_SOURCES.
80947         * modules/fnmatch (Makefile.am): Remove explicit dependency on
80948         $(FNMATCH_H), redundant through BUILT_SOURCES.
80949         * modules/getopt (Makefile.am): Remove explicit dependency on
80950         $(GETOPT_H), redundant through BUILT_SOURCES.
80951         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
80952         redundant through BUILT_SOURCES.
80953         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
80954         redundant through BUILT_SOURCES.
80955         * modules/stdbool (Makefile.am): Remove explicit dependency on
80956         $(STDBOOL_H), redundant through BUILT_SOURCES.
80957         * modules/stdint (Makefile.am): Remove explicit dependency on
80958         $(STDINT_H), redundant through BUILT_SOURCES.
80959         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
80960         Remove explicit dependency on $(SYSEXITS_H).
80961         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
80962
80963 2005-07-18  Simon Josefsson  <jas@extundo.com>
80964
80965         * lib/check-version.c (check_version): Accept identical versions too.
80966
80967 2005-07-18  Bruno Haible  <bruno@clisp.org>
80968
80969         * modules/lock: New file.
80970         * MODULES.html.sh (Multithreading): New section.
80971
80972 2005-07-18  Bruno Haible  <bruno@clisp.org>
80973
80974         * m4/lock.m4: New file, from GNU gettext.
80975
80976 2005-07-18  Bruno Haible  <bruno@clisp.org>
80977
80978         * lib/lock.h: New file, from GNU gettext.
80979         * lib/lock.c: New file, from GNU gettext.
80980
80981 2005-07-18  Bruno Haible  <bruno@clisp.org>
80982
80983         * lib/lock.h (gl_once_t): New type.
80984         (gl_once_define, gl_once): New macros.
80985         * lib/lock.c (fresh_once): New variable.
80986         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
80987         functions.
80988
80989 2005-07-16  Simon Josefsson  <jas@extundo.com>
80990
80991         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
80992         workaround, suggested by Bruno.
80993
80994 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80995
80996         * modules/xalloc (Depends-on): Add xalloc-die.
80997         * modules/xvasprintf (Depends-on): Add xalloc-die.
80998
80999 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81002         with a minor change.
81003
81004 2005-07-15  Bruno Haible  <bruno@clisp.org>
81005
81006         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81007         When using lib/poll.c, define poll as rpl_poll.
81008
81009 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81010
81011         * modules/argp (Depends-on): Remove unlocked-io.
81012
81013 2005-07-14  Derek Price  <derek@ximbiot.com>
81014
81015         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81016         for glob symlink bug.
81017
81018 2005-07-14  Bruno Haible  <bruno@clisp.org>
81019
81020         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81021         Instead, test for *_unlocked function declarations directly.
81022
81023 2005-07-11  Simon Josefsson  <jas@extundo.com>
81024
81025         * modules/size_max: New file.
81026
81027         * modules/xsize: Depend on size_max module for size_max.m4.
81028
81029 2005-07-11  Simon Josefsson  <jas@extundo.com>
81030
81031         * lib/size_max.h: New file.
81032
81033 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81034
81035         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81036         copyright symbol and the year.
81037         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81038         (version_etc_va): Use parameterized copyright notice.
81039         Reword to conform to the current GNU coding standards.
81040
81041 2005-07-11  Karl Berry  <karl@gnu.org>
81042
81043         * doc/gnulib.texi (Quoting): new node.
81044         (Initial import): more info, from Patrice.
81045
81046 2005-07-11  Bruno Haible  <bruno@clisp.org>
81047
81048         * gnulib-tool (func_usage): Document option --avoid.
81049         (Command line options): Handle --avoid.
81050         (func_acceptable): New function.
81051         (func_modules_transitive_closure): Use it.
81052
81053 2005-07-11  Bruno Haible  <bruno@clisp.org>
81054
81055         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81056         Reported by Jim Meyering.
81057
81058 2005-07-10  Bruno Haible  <bruno@clisp.org>
81059
81060         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81061         Needed when size_t is smaller than 'unsigned int'.
81062         Reported by Paul Eggert.
81063
81064 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81065
81066         * modules/argp (Depends-on): Add unlocked-io
81067
81068 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81069
81070         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81071         block of defines.
81072
81073 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81074
81075         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81076         fix now.
81077
81078 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81079         and Paul Eggert  <eggert@cs.ucla.edu>
81080
81081         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81082         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81083
81084 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81085
81086         * modules/regex (Files): Add lib/regex_internal.c,
81087         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81088         (Depends-on): Add extensions.
81089         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81090
81091 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81092
81093         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81094         pathconf.
81095         * m4/same.m4 (gl_SAME): Likewise.
81096         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81097
81098         * m4/regex.m4: Adjust to new libc regex implementation.
81099         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81100         all the .c and .h parts of (the new) regex.
81101         Quote the m4 stuff better.
81102         Check for RE_ICASE bug of old gnulib.
81103         Check for REG_STARTEND of recent libc.
81104         Rename local variables from jm_* to gl_*.
81105         Quote operand of "test -f".
81106         Say "recent enough" version of libc, not "version 2".
81107         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81108         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81109         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81110         Remove check for btowc, isascii.
81111         Require AM_LANGINFO_CODESET.
81112
81113 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         * lib/regex.c, regex.h: Sync from libc.
81116         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81117         * lib/regexec.c:
81118         New files, synced from libc, except that regex_internal.h
81119         currently has a small porting fix.
81120
81121 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81122
81123         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81124         regex_internal.c, regexec.c.
81125         Add regex_internal.h too, but as a comment, since the libc version
81126         is currently broken in gnulib mode.
81127
81128 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         Support programs like Emacs that use gnulib but not gettext.
81131         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81132         * modules/gettext-h: New file.
81133         * modules/gettext (Files): Remove lib/gettext.h.
81134         (Depends-on): Add gettext-h.
81135         (Makefile.am): Remove lib_SOURCES.
81136         * modules/argmatch, modules/c-stack, modules/closeout:
81137         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81138         * modules/execute, modules/file-type, modules/getaddrinfo:
81139         * modules/getopt, modules/human, modules/javacomp:
81140         * modules/javaexec, modules/mkdir-p, modules/obstack:
81141         * modules/openat, modules/pagealign_alloc, modules/pipe:
81142         * modules/quotearg, modules/regex, modules/rpmatch:
81143         * modules/unicodeio, modules/userspec, modules/version-etc:
81144         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81145         * modules/xsetenv:
81146         Depend on gettext-h, not gettext.
81147
81148 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         * gnulib-tool (func_import): Add support for 'public domain' license.
81151         * modules/alloca, modules/atexit, modules/memmove:
81152         Now public domain, not GPL.
81153         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81154         * modules/realloc, modules/strerror, modules/strtod:
81155         Now LGPL, not GPL.
81156
81157 2005-07-05  Bruno Haible  <bruno@clisp.org>
81158
81159         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81160         autoconf CVS. Needed for mingw.
81161
81162 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81163
81164         Remove the dependency of the strftime module on the tzset module.
81165         * modules/strftime (Depends-on): Remove dependency on tzset.
81166
81167 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81168
81169         Remove the dependency of the strftime module on the tzset module.
81170         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81171         gl_FUNC_TZSET_CLOBBER.
81172
81173 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         Remove the dependency of the strftime module on the tzset module.
81176         * lib/strftime.c (my_strftime)
81177         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81178         Copy the input structure, to work around some of the bug with
81179         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81180         Solaris releases, you should also use the tzset module, but we won't
81181         require it as a dependency any more since we don't want LGPLed code
81182         to depend on GPLed code.
81183
81184 2005-07-02  Jim Meyering  <jim@meyering.net>
81185
81186         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81187         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81188         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81189         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81190
81191 2005-07-02  Jim Meyering  <jim@meyering.net>
81192
81193         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81194
81195 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81196
81197         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81198         declares only 'struct timespec;' (!).
81199
81200 2005-07-01  Jim Meyering  <jim@meyering.net>
81201
81202         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81203         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81204         * lib/save-cwd.c, tempname.c:
81205         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81206         and don't include <sys/file.h>).
81207
81208 2005-06-29  Jim Meyering  <jim@meyering.net>
81209
81210         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81211         type name.  Use the variable name instead.
81212         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81213         Likewise.
81214
81215 2005-06-28  Simon Josefsson  <jas@extundo.com>
81216
81217         * modules/check-version (Files): Add check-version.m4.
81218
81219 2005-06-28  Simon Josefsson  <jas@extundo.com>
81220
81221         * m4/check-version.m4: New file, suggested by Jim Meyering
81222         <jim@meyering.net>.
81223
81224 2005-06-28  Simon Josefsson  <jas@extundo.com>
81225
81226         * lib/check-version.h, lib/check-version.c: New files.
81227
81228 2005-06-28  Simon Josefsson  <jas@extundo.com>
81229
81230         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81231         collision with global variable.  Better indentation.  Don't
81232         increment buffer pointer beyond buffer end.  Based on comments
81233         from Paul Eggert <eggert@cs.ucla.edu>.
81234
81235         * lib/base64.h: Indent.
81236
81237 2005-06-28  Simon Josefsson  <jas@extundo.com>
81238
81239         * doc/gnulib.texi (Library version handling): New section.
81240
81241 2005-06-28  Jim Meyering  <jim@meyering.net>
81242
81243         * check-module (find_included_lib_files): Hard-code another
81244         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81245         but modules/fts-lgpl (correctly) does not list those files.
81246
81247         * modules/canonicalize (Files): Add lib/pathmax.h.
81248
81249 2005-06-25  Simon Josefsson  <jas@extundo.com>
81250
81251         * modules/check-version: New file.
81252
81253 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81254
81255         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81256         initializer of struct addrinfo, as an indication that we don't
81257         care how many members the structure has.
81258
81259 2005-06-24  Derek Price  <derek@ximbiot.com>
81260         and Bruno Haible  <bruno@clisp.org>
81261
81262         Remove stat module & update lstat.
81263         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81264         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81265         * m4/stat.m4: Remove this file.
81266
81267 2005-06-24  Derek Price  <derek@ximbiot.com>
81268         and Bruno Haible  <bruno@clisp.org>
81269
81270         Remove stat module & update lstat.
81271         * lib/stat.c: Remove this file...
81272         (slash_aware_lstat): ...moving this content and its support...
81273         * lib/lstat.c (rpl_lstat): ...into here.
81274         * lib/lstat.h: New file.
81275
81276 2005-06-24  Derek Price  <derek@ximbiot.com>
81277         and Bruno Haible  <bruno@clisp.org>
81278
81279         Remove stat module & update lstat.
81280         * config/srclist.txt (libc sources): Remove stat.
81281
81282 2005-06-24  Derek Price  <derek@ximbiot.com>
81283         and Bruno Haible  <bruno@clisp.org>
81284
81285         Remove stat module & update lstat.
81286         * MODULES.html.sh (stat): Remove.
81287         * MODULES.html: Regenerated.
81288         * modules/lstat (Description): Correct function name.
81289         (Files): Add "lstat.h".
81290         (Depends-on): Remove stat, add xalloc, stat-macros.
81291         * modules/stat: Remove this file.
81292         (Include): Add "lstat.h", remove <sys/stat.h>.
81293
81294 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81295
81296         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81297         (ranged_convert): Don't save conversion in a temporary struct.
81298         This causes a warning with GCC 4.0.0, and anyway in the typical
81299         case it's not worth the extra 100 bytes or so of code.
81300         (ranged_convert, __mktime_internal): When calling a function via a
81301         pointer P, use P () rather than (*P) (), as we now assume C89 or
81302         better.
81303
81304 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81305
81306         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81307         "who -r" failed to give output.  Problem reported by Tim Waugh.
81308
81309         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81310         (xcalloc): Use it to avoid needless tests.
81311         Problem reported by Jim Meyering.
81312
81313 2005-06-20  Derek Price  <derek@ximbiot.com>
81314
81315         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81316         unnecessary for Autoconfs > 2.59c.
81317
81318 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81319
81320         * lib/argp.h (__option_is_short): Check upper limit of
81321         __key. Isprint() requires its argument to have the value
81322         of an unsigned char or EOF.
81323
81324 2005-06-16  Jim Meyering  <jim@meyering.net>
81325
81326         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81327         when either N or S is zero.
81328
81329 2005-06-16  Derek Price  <derek@ximbiot.com>
81330
81331         * m4/bison.m4: Declare YACC & YFLAGS precious.
81332
81333 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81336         multibyte string or pattern, fall back on unibyte matching.
81337         Problem reported by James Youngman.
81338
81339 2005-06-08  Bruno Haible  <bruno@clisp.org>
81340
81341         * modules/csharpcomp: New file.
81342         * MODULES.html.sh (C#): Add csharpcomp.
81343
81344 2005-06-08  Bruno Haible  <bruno@clisp.org>
81345
81346         * m4/csharpcomp.m4: New file, from GNU gettext.
81347
81348 2005-06-08  Bruno Haible  <bruno@clisp.org>
81349
81350         * lib/csharpcomp.h: New file, from GNU gettext.
81351         * lib/csharpcomp.c: New file, from GNU gettext.
81352         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81353
81354 2005-06-08  Bruno Haible  <bruno@clisp.org>
81355
81356         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81357         warning on mingw.
81358
81359 2005-06-07  Derek Price  <derek@ximbiot.com>
81360
81361         Sync from CVS.
81362         * lib/glob_.h: Indent nested #ifdef.
81363
81364 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         Sync from coreutils.
81367         Use "file name" when talking about file names, instead of "filename"
81368         or "path", as per the GNU coding standards.
81369         * lib/mkdir-p.c: Renamed from makepath.c.
81370         (make_dir_parents): Renamed from make_path.  All callers changed.
81371         * lib/mkdir-p.h: Likewise.  All includers changed.
81372         * lib/filenamecat.c: Renamed from path-concat.c.
81373         (file_name_concat): Renamed from path_concat.  All callers changed.
81374         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81375         * lib/filenamecat.h: Likewise.  All includers changed.
81376         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81377         in comments or local variable names.
81378         * lib/basename.c: Likewise.
81379         * lib/canonicalize.c, canonicalize.h: Likewise.
81380         * lib/dirname.c, dirname.h: Likewise.
81381         * lib/euidaccess.c: Likewise.
81382         * lib/exclude.c: Likewise
81383         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81384         * lib/fsusage.c, fsuage.h: Likewise.
81385         * lib/fts.c, fts_.h: Likewise.
81386         * lib/getcwd.c: Likewise.
81387         * lib/getloadavg.c: Likewise.
81388         * lib/mkstemp.c: Likewise.
81389         * lib/mountlist.c, mountlist.h: Likewise.
81390         * lib/openat.c, openat.h: Likewise.
81391         * lib/readlink-stub.c: Likewise.
81392         * lib/readutmp.c, readutmp.h: Likewise.
81393         * lib/rename.c: Likewise.
81394         * lib/rmdir.c: Likewise.
81395         * lib/same.c: Likewise.
81396         * lib/savedir.c: Likewise.
81397         * lib/stripslash.c: Likewise.
81398         * lib/tempname.c: Likewise.
81399         * lib/xreadlink.c: Likewise.
81400         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81401         All uses changed.
81402         * lib/exclude.h: Likewise.
81403
81404         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81405         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81406         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81407         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81408         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81409         files have been getting away with it for years (MORE/BSD 4.3
81410         is extinct now).
81411         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81412         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81413
81414         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81415         Define to 256, not 255, as per modern POSIX.
81416
81417 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         Sync from coreutils.
81420         Use "file name" when talking about file names, instead of "filename"
81421         or "path", as per the GNU coding standards.
81422         * MODULES.html.sh: mkdir-p renamed from makepath.
81423         filenamecat renamed from path-concat.
81424         * modules/filenamecat: Renamed from modules/path-concat.
81425         (Files): filenamecat.h and filenamecat.c renamed from
81426         path-concat.h and path-concat.c.
81427         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81428         (Include): filenamecat.h, not path-concat.h.
81429         * modules/mkdir-p: Renamed from modules/makepath.
81430         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81431         makepath.c.
81432         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81433         (Include): mkdir-p.h, not makepath.h.
81434
81435 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81436
81437         Sync from coreutils.
81438         * m4/mkdir-p.m4: Renamed from makepath.m4.
81439         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81440         Rename files from makepath.c to mkdir-p.c, and from
81441         makepath.h to mkdir-p.h.
81442         * m4/filenamecat.m4: Renamed from path-concat.m4.
81443         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81444         Rename files from path-concat.c to filenamecat.c,
81445         and from path-concat.h to filenamecat.h.
81446         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81447         "file name" in local variables or comments.
81448         * m4/rename.m4: Likewise.
81449
81450 2005-06-01  Bruno Haible  <bruno@clisp.org>
81451
81452         * modules/csharpexec: New file.
81453         * MODULES.html.sh (C#): New section.
81454
81455 2005-06-01  Bruno Haible  <bruno@clisp.org>
81456
81457         * m4/csharp.m4: New file, from GNU gettext.
81458         * m4/csharpexec.m4: New file, from GNU gettext.
81459
81460 2005-06-01  Bruno Haible  <bruno@clisp.org>
81461
81462         * lib/csharpexec.h: New file, from GNU gettext.
81463         * lib/csharpexec.c: New file, from GNU gettext.
81464         * lib/csharpexec.sh.in: New file, from GNU gettext.
81465
81466 2005-05-31  Derek Price  <derek@ximbiot.com>
81467             Paul Eggert  <eggert@cs.ucla.edu>
81468
81469         Sync from cvs.
81470         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81471
81472 2005-05-31  Derek Price  <derek@ximbiot.com>
81473             Paul Eggert  <eggert@cs.ucla.edu>
81474
81475         Sync from cvs.
81476         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81477
81478 2005-05-29  Derek Price  <derek@ximbiot.com>
81479
81480         * config/srclist.txt (glob_.h, glob.c): Add these files.
81481
81482 2005-05-29  Derek Price  <derek@ximbiot.com>
81483
81484         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81485         * modules/glob: New file.
81486         * modules/getlogin_r: Add link to POSIX spec in description.
81487
81488 2005-05-29  Derek Price  <derek@ximbiot.com>
81489             Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * m4/glob.m4: New file.
81492
81493 2005-05-29  Derek Price  <derek@ximbiot.com>
81494             Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         * lib/glob_.h, lib/glob.c: New files.
81497
81498 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81499
81500         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81501         * modules/fts-lgpl (Depends-on): Remove gettext.
81502
81503 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81504
81505         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81506         and don't require gt_INTTYPES_PRI.
81507
81508 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81509
81510         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81511
81512         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81513         the configuration hassle isn't worth it.
81514         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81515         (LONGEST_MODIFIER, PRIuMAX): Remove.
81516
81517 2005-05-27  Bruno Haible  <bruno@clisp.org>
81518
81519         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81520
81521 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81522
81523         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81524         _POSIX_PTHREAD_SEMANTICS for Solaris.
81525
81526 2005-05-25  Derek Price  <derek@ximbiot.com>
81527
81528         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81529
81530 2005-05-25  Derek Price  <derek@ximbiot.com>
81531             Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81534         * lib/getlogin_r.c, getlogin_r.h: New files.
81535
81536 2005-05-25  Bruno Haible  <bruno@clisp.org>
81537             Derek Price  <derek@ximbiot.com>
81538
81539         * lib/getlogin_r.h: Simplify API documentation.
81540
81541 2005-05-23  Derek Price  <derek@ximbiot.com>
81542
81543         * modules/minmax (Files): Add m4/minmax.m4.
81544         (configure.ac): Add gl_MINMAX.
81545
81546 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81547
81548         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81549         so that unistd-safer.h (GPL'ed code) need not be included.
81550
81551 2005-05-22  Bruno Haible  <bruno@clisp.org>
81552
81553         * m4/minmax.m4: New file.
81554         Based on a patch by Derek Price <derek@ximbiot.com>.
81555
81556 2005-05-22  Bruno Haible  <bruno@clisp.org>
81557
81558         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81559         (INT64_MIN): Fix definition.
81560         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81561
81562         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81563         NEED_SIGNED_INT_TYPES.
81564
81565         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81566         HAVE_SYSTEM_INTTYPES.
81567
81568 2005-05-22  Bruno Haible  <bruno@clisp.org>
81569
81570         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81571         Also include <sys/param.h> if it defines MIN, MAX.
81572         Based on a patch by Derek Price <derek@ximbiot.com>.
81573
81574 2005-05-21  Jim Meyering  <jim@meyering.net>
81575
81576         * modules/fts (Files): Add m4/inttypes-pri.m4.
81577         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81578
81579 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81580
81581         New fts module.
81582         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81583         (setup_dir, free_dir): New functions.
81584         (enter_dir, leave_dir): Define trivial
81585         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81586         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81587         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81588         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81589         Move to fts-cycle.c.
81590         (fts_open): Use setup_dir.
81591         (fts_close): Use free_dir.
81592         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81593         This adds a label and some gotos, but the alternatives were messier.
81594         Check for memory allocation failure when entering a dir.
81595         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81596         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81597         (FTS): New member fts_cycle, that is a union that contains the
81598         old active_dir_ht and cycle_state.  All uses changed to mention
81599         fts_cycle.ht and fts_cycle.state.
81600         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81601         fts.c, with the following changes:
81602         (setup_dir, free_dir): New functions.
81603         (enter_dir): Now returns bool.  Return true if successful, false
81604         if memory exhausted.  All callers changed.
81605         Do not bother partly cleaning up on
81606         memory allocation failure; that is free_dir's job.
81607         However, free ad if hash_insert fails, to avoid memory leak.
81608         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81609         fts->fts_options to see which union member to use.
81610
81611 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81612
81613         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81614         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81615
81616 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81617
81618         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81619
81620 2005-05-20  Jim Meyering  <jim@meyering.net>
81621
81622         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81623         Now a macro, to pacify GCC.
81624
81625 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81626
81627         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81628         of -1.
81629
81630 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81631
81632         * lib/chown.c (rpl_chown): Return -1 on failure.
81633
81634 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81637         Don't check for stddef.h.
81638         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81639         don't use its results.
81640         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81641         since we include them unconditionally.  Don't require
81642         AM_STDBOOL_H, since stdbool is a prerequisite.
81643         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81644         since we assume C89 or better.
81645         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81646         as we don't use their results.
81647         Don't check for fchdir, memmove, memset, strrchr, as we use
81648         them unconditionally.
81649         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81650         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81651
81652 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81655         Include <stddef.h> unconditionally, since we assume C89 now.
81656         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81657         * lib/fts.c: Include fts_.h first, to check interface.
81658         Do not include intprops.h; no longer needed.
81659         Include cycle-check.h and hash.h, since fts_.h no longer does.
81660         Remove unnecessary casts of closedir to void.
81661         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81662         decide whether to decrement nlinks.
81663         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81664         (FTS): Use struct hash_table * instead of Hash_table, so that
81665         we no longer need to include hash.h here.
81666
81667 2005-05-18  Jim Meyering  <jim@meyering.net>
81668
81669         * modules/dirfd (License): Change to LGPL.  Most of the code
81670         is already in the public domain.
81671
81672 2005-05-18  Jim Meyering  <jim@meyering.net>
81673
81674         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81675         Reported by Yoann Vandoorselaere.
81676
81677 2005-05-17  Jim Meyering  <jim@meyering.net>
81678
81679         * m4/fts.m4: New file, from coreutils.
81680
81681 2005-05-17  Jim Meyering  <jim@meyering.net>
81682
81683         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81684
81685 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         Sync from coreutils.
81688         * m4/unlinkdir.m4: New file.
81689
81690 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81691
81692         Sync from coreutils.
81693         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81694         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81695         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81696         White space changes only.
81697         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81698         special.
81699         * lib/yesno.c: Include getline.h, not ctype.h.
81700         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81701         Use getline to remove arbitrary restriction on response length.
81702
81703 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * config/srclist-update: Spell out "Street" in FSF postal
81706         mail address; this is the style the FSF seems to prefer.
81707
81708         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81709         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81710         this updates FSF postal mail address.
81711
81712         Sync from coreutils.
81713         * modules/unlinkdir: New file.
81714         * modules/yesno (Depends-on): Add getline.
81715         * MODULES.html.sh (File system functions): Add unlinkdir.
81716
81717 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81718
81719         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81720         lib/strsep.h:
81721         Change the initial comment to refer to GPL, not LGPL.
81722         gnulib-tool will change it to LGPL as needed.
81723
81724         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81725         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81726         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81727         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81728         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81729         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81730         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81731         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81732         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81733         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81734         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81735         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81736         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81737         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81738         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81739         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81740         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81741         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81742         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81743         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81744         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81745         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81746         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81747         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81748         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81749         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81750         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81751         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81752         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81753         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81754         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81755         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81756         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81757         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81758         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81759         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81760         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81761         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81762         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81763         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81764         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81765         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81766         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81767         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81768         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81769         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81770         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81771         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81772         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81773         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81774         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81775         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81776         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81777         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81778         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81779         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81780         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81781         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81782         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81783         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81784         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81785         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81786         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81787         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81788         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81789         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81790         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81791         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81792         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81793         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81794         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81795         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81796         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81797         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81798         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81799         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81800         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81801         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81802         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81803         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81804         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81805         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81806         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81807         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81808         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81809         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81810         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81811         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81812         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81813         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81814         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81815         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81816         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81817         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81818         lib/yesno.c, lib/yesno.h:
81819         Update FSF postal mail address.
81820
81821 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81824         tests/test-memmem.c, tests/test-stpncpy.c:
81825         Update FSF postal mail address.
81826
81827 2005-05-13  Bruno Haible  <bruno@clisp.org>
81828
81829         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81830         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81831         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81832         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81833         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81834         Add support for 64-bit integers in the MSVC compiler.
81835
81836 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81837
81838         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81839
81840 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81841
81842         * gnulib-tool (func_import): Sort and uniquify recommended includes.
81843
81844 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
81845
81846         * doc/getdate.texi (General date syntax): Don't say that date
81847         date --iso-8601=ns generates acceptable dates; it doesn't yet.
81848         Problem reported by Nic Ferrier.
81849
81850 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81851
81852         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
81853         specified in ai_socktype. Fix invalid ai_protocol
81854         check. ai_protocol is usually set to 0 or depending on
81855         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
81856         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
81857         ai_socktype / ai_protocol in the returned addrinfo structure.
81858
81859 2005-05-10  Simon Josefsson  <jas@extundo.com>
81860
81861         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
81862         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81863
81864 2005-05-10  Karl Berry  <karl@gnu.org>
81865
81866         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
81867         (from http://www.gnu.org/licenses).
81868         * doc/COPYING.LIB: also rename to COPYING.LESSER.
81869         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
81870         fdl.texi suffices.
81871
81872 2005-05-10  Karl Berry  <karl@gnu.org>
81873
81874         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
81875         (COPYING.DOC): remove.
81876
81877         * config/srclist-update: new FSF address.
81878
81879 2005-05-10  Derek Price  <derek@ximbiot.com>
81880
81881         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
81882         possible.
81883
81884 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81885             Bruno Haible  <bruno@clisp.org>
81886
81887         * modules/inet_ntop: New file.
81888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81889         inet_ntop.
81890
81891 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81892             Bruno Haible  <bruno@clisp.org>
81893
81894         * m4/inet_ntop.m4: New file.
81895
81896 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81897             Bruno Haible  <bruno@clisp.org>
81898
81899         * lib/inet_ntop.h: New file.
81900         * lib/inet_ntop.c: New file, from glibc with modifications.
81901
81902 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         * modules/time_r (License): Change to LGPL.
81905         * modules/extensions (License): Change to LGPL.  Actually,
81906         the license is more permissive than that, but currently gnulib-tool
81907         doesn't know how to handle more-permissive licenses.
81908
81909         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
81910         Problem reported by Dave Love.
81911
81912 2005-05-08  Jim Meyering  <jim@meyering.net>
81913
81914         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
81915         blank.
81916
81917 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * modules/argmatch (Depends-on): Add stdbool.
81920         * modules/backupfile (Depends-on): Likewise.
81921         * modules/chdir-long (Depends-on): Likewise.
81922         * modules/closeout (Depends-on): Likewise.
81923         * modules/cycle-check (Depends-on): Likewise.
81924         * modules/dirname (Depends-on): Likewise.
81925         * modules/fnmatch (Depends-on): Likewise.
81926         * modules/fsusage (Depends-on): Likewise.
81927         * modules/fwriteerror (Depends-on): Likewise.
81928         * modules/getcwd (Depends-on): Likewise.
81929         * modules/getloadavg (Depends-on): Likewise.
81930         * modules/hard-locale (Depends-on): Likewise.
81931         * modules/makepath (Depends-on): Likewise.
81932         * modules/mountlist (Depends-on): Likewise.
81933         * modules/nanosleep (Depends-on): Likewise.
81934         * modules/posixtm (Depends-on): Likewise.
81935         * modules/quotearg (Depends-on): Likewise.
81936         * modules/readtokens (Depends-on): Likewise.
81937         * modules/readtokens0 (Depends-on): Likewise.
81938         * modules/readutmp (Depends-on): Likewise.
81939         * modules/save-cwd (Depends-on): Likewise.
81940         * modules/strftime (Depends-on): Likewise.
81941         * modules/userspec (Depends-on): Likewise.
81942         * modules/utimecmp (Depends-on): Likewise.
81943         * modules/xgetcwd (Depends-on): Likewise.
81944         * modules/xnanosleep (Depends-on): Likewise.
81945         * modules/xstrtod (Depends-on): Likewise.
81946         * modules/yesno (Depends-on): Likewise.
81947
81948 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
81949
81950         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
81951         needless checks.
81952
81953 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81954
81955         Merge from coreutils.  Among other things,
81956         add bulletproofing for cases where stdin, stdout, or stderr are closed.
81957         * lib/fd-safer.c: New file.
81958         * lib/fcntl-safer.h, open-safer.c: Remove.
81959         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
81960         * lib/dup-safer.c: Include unistd-safer.h first.
81961         Don't include errno.h.
81962         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
81963         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
81964         * lib/file-type.c: Rely on file-type.h change.
81965         * lib/getloadavg.c: Include unistd-safer.h.
81966         (getloadavg): Use safer open.
81967         * lib/getusershell.c: Include "stdio-safer.h".
81968         (getusershell): Use safer fopen.
81969         * lib/long-options.c (long_options): Use NULL rather than 0.
81970         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
81971         'free'.
81972         * lib/modechange.c: Likewise.
81973         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
81974         (MODE_DONE): New constant.
81975         (struct mode_change): Remove 'next' member.
81976         (make_node_op_equals): New function; like the old one of the
81977         same name, except it allocates an array.
81978         (mode_compile, mode_create_from_ref): Use it.
81979         (mode_compile): Allocate result as an array, not a linked list.
81980         Parse octal string ourself, so that we catch mistakes like "+0".
81981         (mode_adjust): Arg is an array, not a linked list.
81982         * lib/modechange.c: Include stat-macros.h, xalloc.h.
81983         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
81984         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
81985         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
81986         Remove.  This is now stat-macros.h's job.
81987         (talloc): Remove.  All callers replaced by xalloc, so that
81988         our invokers don't have to worry about reporting memory failures.
81989         (make_node_op_equals): Remove.
81990         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81991         New constants.
81992         (struct mode_change): Moved here from modechange.h.
81993         (mode_append_entry): Remove.
81994         (mode_compile): Remove MASKED_OPS arg, since it encouraged
81995         apps to have incorrect behavior.  Use simpler algorithm for head
81996         and tail.  Don't futz with umask; that's now the job of mode_adjust.
81997         Detect more invalid usages rather than having somewhat-random behavior.
81998         Don't insert an "a=" action, as that leads to incorrect behavior.
81999         (mode_compile, mode_create_from_ref): Return NULL on error instead
82000         of an enum, since now there's only one way to have an error.  All
82001         callers changed.
82002         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82003         at the correct time.  Simplify calculation of "+u" and its ilk.
82004         Don't mishandle "+X".
82005         (mode_free): Remove "register" and localize decls.
82006         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82007         (struct mode_change): Move to modechange.c; callers don't
82008         need to see this stuff.
82009         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82010         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82011         (mode_change, mode_adjust): Reflect the new signatures noted above.
82012         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82013         that might redefine system include files.
82014         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82015         (my_usleep): Use NULL rather than (void *) 0.
82016         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82017         Use siginterrupt to specify that system calls should be interrupted.
82018         (rpl_nanosleep): Move initialization of suspended closer to call of
82019         my_usleep.
82020         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82021         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82022         (desirable_utmp_entry): New function.
82023         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82024         using x2nrealloc, to simplify logic.
82025         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82026         size calculation.  Do not assume utmp file is a regular file.
82027         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82028         (READ_UTMP_CHECK_PIDS): New constant.
82029         * lib/save-cwd.c: Include unistd-safer.h.
82030         (save_cwd): Use fd_safer.
82031         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82032         [!_LIBC] Include "stat-macros.h" instead.
82033         * lib/unistd-safer.h (fd_safer): New decl.
82034
82035 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82036
82037         * modules/getloadavg (Depends-on): Add unistd-safer.
82038         * modules/getusershell (Depends-on): Add stdio-safer.
82039         * modules/lstat (Depends-on): Remove xalloc.
82040         * modules/mkstemp (Depends-on): Add stat-macros.
82041         * modules/modechange (Depends-on): Remove xstrtol.
82042         Add stat-macros, xalloc.
82043         * modules/save-cwd (Depends-on): Add unistd-safer.
82044         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82045         * modules/unistd-safer (Files): Add lib/fd-safer.c
82046         (Makefile.am): Remove lib_SOURCES.
82047
82048         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82049         Remove fcntl-safer; unistd-safer supersedes it.
82050
82051 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82054         AC_HEADER_STAT.
82055         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82056         (gl_PREREQ_CHOWN): Remove.
82057         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82058         it.  Don't require AC_HEADER_STAT.
82059         (gl_PREREQ_LSTAT): Remove.
82060         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82061         Don't require AC_HEADER_STAT.
82062         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82063         (gl_PREREQ_RMDIR): Remove.
82064         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82065         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82066         the stat-macros module a prerequisite.
82067         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82068         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82069         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82070         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82071         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82072         variable names.
82073         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82074         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82075         variable prefixes.
82076         * m4/fcntl-safer.m4: Remove.
82077         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82078         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82079         Invoke gl_PREREQ_FD_SAFER.
82080         (gl_PREREQ_FD_SAFER): New macro.
82081         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82082         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82083         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82084         Remove duplicate call to AC_LIBOBJ(readutmp).
82085         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82086
82087         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82088         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82089
82090 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82091
82092         * MODULES.html.sh (Misc): Add byteswap.
82093
82094 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82095
82096         * modules/getcwd (Depends-on): Add extensions.
82097         * modules/openat (Depends-on): Likewise.
82098
82099 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82100
82101         * modules/byteswap: New file.
82102
82103 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82104
82105         * m4/byteswap.m4: New file.
82106
82107 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82108
82109         * lib/byteswap_.h: New file.
82110
82111 2005-04-25  Karl Berry  <karl@gnu.org>
82112
82113         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82114
82115 2005-04-25  Albert Chin  <china@thewrittenword.com>
82116
82117         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82118         Toolkit C bug.
82119
82120 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82121
82122         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82123         (func_ln_if_changed): Remove forcibly for no error message
82124         in case file does not exist.
82125
82126 2005-04-19  Simon Josefsson  <jas@extundo.com>
82127
82128         * gnulib-tool (Options): Make --symlink mean --symbolic.
82129
82130 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82131
82132         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82133
82134 2005-04-16  Simon Josefsson  <jas@extundo.com>
82135
82136         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82137
82138 2005-04-15  Simon Josefsson  <jas@extundo.com>
82139
82140         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82141
82142 2005-04-15  Simon Josefsson  <jas@extundo.com>
82143
82144         * gnulib-tool: Rename --symlink to --symbolic.
82145
82146 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82147
82148         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82149         symbolic links to files instead of copying/moving.  Add --aux-dir,
82150         specifying directory relative --dir where auxiliary build tools
82151         are placed.
82152
82153 2005-04-14  Bruno Haible  <bruno@clisp.org>
82154
82155         * modules/allocsa (License): Change to LGPL.
82156         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82157
82158 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82159
82160         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82161         that "UTC +1 second" continues to work.  Problem reported
82162         by Dmitry V. Levin.
82163         (relunit_snumber): New rule.
82164         (relunit): Use it.
82165
82166 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82167
82168         * lib/getdate.y (universal_time_zone_table): New constant.
82169         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82170         universal_time_zone_table.
82171         (lookup_zone): Prefer universal_time_zone_table to
82172         local_time_zone_table, so that "GMT" time stamps are allowed in
82173         London during the summer.  Problem reported by Ian Abbott.
82174
82175 2005-04-12  Jim Meyering  <jim@meyering.net>
82176
82177         * lib/human.c (humblock): Set *options even when returning due to
82178         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82179         warning from gcc-4.
82180
82181 2005-04-09  Jim Meyering  <jim@meyering.net>
82182
82183         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82184         -Wuninitialized: initialize tm0.tm_year.
82185
82186 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82187
82188         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82189         count, since there's no maximum.  All uses changed.
82190         Add member dsts_seen.
82191         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82192         not being INT_MAX.
82193         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82194         Use pc_rels_seen to decide whther a date is absolute.
82195
82196         * lib/getdate.y (number): Don't overwrite year.
82197         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82198         check.
82199
82200 2005-04-02  Simon Josefsson  <jas@extundo.com>
82201
82202         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82203         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82204
82205 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82206
82207         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82208         where no absolute path name can be longer than PATH_MAX.
82209
82210 2005-03-27  Jim Meyering  <jim@meyering.net>
82211
82212         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82213
82214 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82217         "one's complement" -> "ones' complement" in comment, as per Knuth.
82218         "value of type" -> "type or expression" in comment.
82219         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82220
82221 2005-03-26  Jim Meyering  <jim@meyering.net>
82222
82223         Comment nits.
82224         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82225         Correct typos: s/or/of/.
82226
82227 2005-03-26  Jim Meyering  <jim@meyering.net>
82228
82229         * modules/check-include-files: Move to ../ and rename to...
82230         * check-module: ...this.
82231
82232 2005-03-25  Jim Meyering  <jim@meyering.net>
82233
82234         * modules/xvasprintf (Files): Add xalloc.h.
82235
82236 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82237
82238         * modules/gettext (Files): config/config.rpath ->
82239         build-aux/config.rpath
82240         * modules/iconv (Files): Likewise.
82241         Problem reported by Oskar Liljeblad.
82242
82243 2005-03-23  Jim Meyering  <jim@meyering.net>
82244
82245         * modules/check-include-files: New script to check for
82246         missing dependencies, multiple includes, etc.
82247
82248         * modules/c-strtold (Depends-on): Add xalloc.
82249         * modules/c-strtod (Depends-on): Add xalloc.
82250         * modules/hash (Depends-on): Add xalloc.
82251         (Files): Remove lib/xalloc.h.
82252
82253         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82254         * modules/userspec (Files): Add lib/inttostr.h.
82255
82256 2005-03-23  Jim Meyering  <jim@meyering.net>
82257
82258         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82259
82260 2005-03-22  Jim Meyering  <jim@meyering.net>
82261
82262         * modules/stat-macros: New module.
82263         * modules/canonicalize, modules/euidaccess, modules/file-type,
82264         * modules/filemode, modules/lchown, modules/makepath,
82265         * modules/rmdir, modules/stat: Depend on new stat-macros module
82266         rather than listing lib/stat-macros.h manually.
82267         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82268
82269 2005-03-22  Jim Meyering  <jim@meyering.net>
82270
82271         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82272
82273 2005-03-22  Bruno Haible  <bruno@clisp.org>
82274
82275         * config/srclist.txt: Replace target directory 'config' with
82276         'build-aux'.
82277         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82278         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82279         ../build-aux/.
82280
82281 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82282
82283         * modules/chdir-long (Depends-on): Add mempcpy.
82284
82285         * modules/acl, modules/backupfile, modules/c-strtod,
82286         modules/c-strtold, modules/canon-host, modules/canonicalize,
82287         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82288         modules/exclude, modules/exitfail, modules/file-type,
82289         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82290         modules/getdate, modules/getline, modules/getpagesize,
82291         modules/getpass, modules/getugroups, modules/group-member,
82292         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82293         modules/inttostr, modules/long-options, modules/makepath,
82294         modules/md5, modules/memcasecmp, modules/memcoll,
82295         modules/modechange, modules/mountlist, modules/path-concat,
82296         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82297         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82298         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82299         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82300         modules/strftime, modules/strndup, modules/strverscmp,
82301         modules/timespec, modules/unlocked-io, modules/userspec,
82302         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82303         modules/yesno:
82304         Remove lib_SOURCES line from Makefile.am section, as this is now
82305         done automatically by the corresponding Autoconf macro.
82306
82307 2005-03-21  Jim Meyering  <jim@meyering.net>
82308
82309         Changes imported from coreutils.
82310
82311         * lib/cycle-check.c: Don't include xalloc.h.
82312
82313         * lib/path-concat.c: Don't include assert.h.
82314         (path_concat): Remove assertion that would have triggered
82315         for ABASE starting with more than one slash.
82316         Reported by Andreas Schwab.
82317
82318         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82319         properly when ABASE is an absolute file name.
82320         Correct the description of this function.
82321         Include <assert.h>.
82322         Add an assertion and a test driver.
82323         This fixes a bug introduced on 2004-07-02.
82324         Andreas Schwab reported the resulting failure of cp --parents:
82325         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82326
82327 2005-03-21  Jim Meyering  <jim@meyering.net>
82328
82329         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82331
82332 2005-03-21  Jim Meyering  <jim@meyering.net>
82333         and  Paul Eggert  <eggert@cs.ucla.edu>
82334
82335         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82336         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82337         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82338         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82339         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82340         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82341         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82342         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82343         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82344         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82345         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82346         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82347         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82348         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82349         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82350         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82351         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82352         for these modules.
82353
82354 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82355
82356         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82357         (which shouldn't happen), generate nothing instead of returning 0
82358         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82359
82360 2005-03-16  Bruno Haible  <bruno@clisp.org>
82361
82362         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82363         HAVE_LONGLONG_64BIT.
82364
82365 2005-03-16  Bruno Haible  <bruno@clisp.org>
82366
82367         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82368         HAVE_LONGLONG_64BIT.
82369
82370 2005-03-16  Bruno Haible  <bruno@clisp.org>
82371
82372         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82373         HAVE_LONGLONG_64BIT.
82374
82375 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82378         reliably distinguish strftime failure from empty output on POSIX
82379         hosts.
82380
82381 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82384         (iconv_string): Don't guess a size-zero buffer, as that might cause
82385         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82386         result would be 'too large', where 'too large' is (heuristically)
82387         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82388         overflow concerns.  This will prevent some unwanted malloc failures
82389         when the inputs are very large.
82390
82391 2005-03-15  Karl Berry  <karl@gnu.org>
82392
82393         * config/srclist.txt (config.rpath): from gettext.
82394         * config/config.rpath: update.
82395
82396 2005-03-15  Bruno Haible  <bruno@clisp.org>
82397
82398         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82399         to 'negate'.
82400
82401         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82402         variable.
82403
82404         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82405         results.
82406
82407 2005-03-14  Simon Josefsson  <jas@extundo.com>
82408
82409         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82410         <fx@gnu.org>.
82411
82412 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82413
82414         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82415         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82416         intprops.h.
82417         * lib/strtol.c: Likewise.
82418
82419 2005-03-14  Jim Meyering  <jim@meyering.net>
82420
82421         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82422         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82423         to be nonzero so that we (and caller) can detect the difference
82424         between a valid zero-length expansion and an error return, even
82425         when the underlying strftime fails before writing anything into
82426         that location.
82427
82428 2005-03-14  Bruno Haible  <bruno@clisp.org>
82429
82430         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82431         Update from GNU gettext 0.14.3.
82432
82433 2005-03-10  Jim Meyering  <jim@meyering.net>
82434
82435         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82436
82437 2005-03-10  Jim Meyering  <jim@meyering.net>
82438
82439         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82440         so that this module works on systems without fchdir.
82441
82442 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         Factor int-properties macros into a single file, except for
82445         glibc-related files.
82446         * lib/intprops.h: New file.
82447         * lib/getloadavg.c: Include it instead of limits.h.
82448         (INT_STRLEN_BOUND): Remove.
82449         * lib/human.c: Include intprops.h.
82450         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82451         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82452         302/1000.
82453         * lib/inttostr.h: Include intprops.h instead of limits.h.
82454         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82455         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82456         for consistency with intprops.h.
82457         (time_t_is_integer, twos_complement_arithmetic): Use them.
82458         * lib/sig2str.h: Include <signal.h>, intprops.h.
82459         (INT_STRLEN_BOUND): Remove.
82460         * lib/strftime.c (TYPE_SIGNED): Remove.
82461         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82462         * lib/strtol.c: Adjust comments to match intprops.h.
82463         * lib/userspec.c: Include intprops.h.
82464         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82465         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82466         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82467         instead of rolling our own expressions.
82468         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82469
82470         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82471         instead of int.
82472         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82473         the right thing even if adding 1900 would overflow.  Similarly
82474         for tm_mon + 1 and tm_yday + 1.
82475         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82476         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82477         (DO_SIGNED_NUMBER): New macro.
82478         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82479
82480 2005-03-07  Bruno Haible  <bruno@clisp.org>
82481
82482         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82483
82484 2005-03-07  Bruno Haible  <bruno@clisp.org>
82485
82486         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82487
82488 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82489
82490         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82491         (func_import): Only replace files via --import when they have actually
82492         changed.
82493
82494 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82495
82496         * m4/mmap-anon.m4: New file.
82497         * m4/pagealign_alloc.m4: New file.
82498
82499 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82500             Bruno Haible  <bruno@clisp.org>
82501
82502         * modules/pagealign_alloc: New file.
82503         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82504
82505 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82506             Bruno Haible  <bruno@clisp.org>
82507
82508         * lib/pagealign_alloc.h: New file.
82509         * lib/pagealign_alloc.c: New file.
82510
82511 2005-03-03  Bruno Haible  <bruno@clisp.org>
82512
82513         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82514         Use an all-permissive copyright notice, recommended by RMS.
82515
82516 2005-03-02  Bruno Haible  <bruno@clisp.org>
82517
82518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82519         of AIX, the replacement has to be done only after <string.h> is
82520         included, therefore not in config.h. stpncpy.h does the replacement,
82521         and stpncpy.c uses it.
82522
82523 2005-03-02  Bruno Haible  <bruno@clisp.org>
82524
82525         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82526         stpncpy.c uses it.
82527
82528 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82529
82530         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82531         The workaround isn't strictly needed for POSIX conformance, and
82532         it's too much of a pain to configure and maintain.  We'll ask
82533         people to fix their kernels instead.
82534         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82535         (NANOSLEEP_BUG_WORKAROUND): Remove.
82536         (xnanosleep): Remove the workaround.
82537
82538 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82539
82540         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82541         Reported by Derek Price.
82542         (Include): Add "timespec.h".
82543
82544         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82545
82546 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82549         to detect nanosleep bug.
82550
82551 2005-03-01  Bruno Haible  <bruno@clisp.org>
82552
82553         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82554
82555 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82556
82557         * modules/gethrxtime: New file.
82558         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82559         (Depends-on): Add gethrxtime.
82560         (configure.ac): Add gl_XNANOSLEEP.
82561         (Makefile.am): Remove lib_SOURCES line.
82562
82563 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82564
82565         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82566         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82567
82568 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82571         * lib/timespec.h (gettime): Return void, since it always
82572         succeeds now.  All uses changed.
82573         * lib/gettime.c (gettime): Likewise.
82574         [HAVE_NANOTIME]: Prefer nanotime.
82575         Assume gettimeofday succeeds, as POSIX requires.
82576         Assime time () succeeds, since other code already does.
82577         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82578         (timespec_subtract): Remove.
82579         (NANOSLEEP_BUG_WORKAROUND): New constant.
82580         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82581         things considerably.  Use it only on GNU/Linux hosts, since the
82582         workaround shouldn't be needed elsewhere.
82583
82584 2005-02-24  Bruno Haible  <bruno@clisp.org>
82585
82586         * modules/gettext (Files): Add m4/glibc2.m4.
82587
82588 2005-02-24  Bruno Haible  <bruno@clisp.org>
82589
82590         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82591         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82592         * m4/progtest.m4:
82593         Update from GNU gettext 0.14.2.
82594         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82595
82596 2005-02-24  Bruno Haible  <bruno@clisp.org>
82597
82598         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82599         * lib/config.charset: Update from GNU gettext 0.14.2.
82600
82601 2005-02-24  Bruno Haible  <bruno@clisp.org>
82602
82603         * lib/gettext.h: Update from GNU gettext 0.14.2.
82604
82605 2005-02-23  Simon Josefsson  <jas@extundo.com>
82606
82607         * m4/iconvme.m4: New file.
82608
82609 2005-02-23  Jim Meyering  <jim@meyering.net>
82610
82611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82612         change.
82613         Thanks to Bruno Haible for catching it.
82614
82615 2005-02-22  Simon Josefsson  <jas@extundo.com>
82616
82617         * modules/iconvme: New file.
82618
82619         * MODULES.html.sh: Add iconvme.
82620
82621 2005-02-22  Simon Josefsson  <jas@extundo.com>
82622
82623         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82624
82625 2005-02-22  Simon Josefsson  <jas@extundo.com>
82626
82627         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82628
82629 2005-02-22  Jim Meyering  <jim@meyering.net>
82630
82631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82632         s/ifndef/ifdef/.
82633
82634 2005-02-20  Neil Conway  <neilc@samurai.com>
82635
82636         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82637         returned by OSX/Darwin if the specified buffer is not large
82638         enough for the hostname.
82639
82640 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82641
82642         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82643         pass it to _help, otherwise the latter coredumps trying to
82644         dereference state.root_argp.
82645
82646 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82647
82648         * modules/chdir-long (Depends-on): Add memrchr.
82649         * modules/memrchr (Files): Add lib/memrchr.h.
82650         (Include): "memrchr.h".
82651
82652 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82653
82654         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82655
82656 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82657
82658         * lib/memrchr.h: New file.
82659         * lib/chdir-long.c: Include it.
82660         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82661         Don't bother including stddef.h.
82662
82663 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82666         inclusion.
82667         Include <sys/types.h>, for dev_t.
82668         (ME_DUMMY, ME_REMOTE): Move from here....
82669         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82670         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82671         Dmitry V. Levin.
82672         Include mountlist.h first, to test the interface.
82673
82674 2005-01-29  Bruno Haible  <bruno@clisp.org>
82675
82676         * lib/progname.c (program_name): Initialize.
82677         Needed when linking statically on MacOS X.
82678
82679 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82680
82681         Sync from coreutils.
82682         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82683         (Depends-on): Add c-strtod.
82684         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82685
82686 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82687
82688         Sync from coreutils.
82689         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82690
82691         Remove files that are specific to coreutils.
82692         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82693
82694 2005-01-28  Bruno Haible  <bruno@clisp.org>
82695
82696         * modules/javacomp: New file.
82697         * MODULES.html.sh (Java): Add javacomp.
82698
82699 2005-01-28  Bruno Haible  <bruno@clisp.org>
82700
82701         * m4/javacomp.m4: New file, from GNU gettext.
82702
82703 2005-01-28  Bruno Haible  <bruno@clisp.org>
82704
82705         * lib/javacomp.sh.in: New file, from GNU gettext.
82706         * lib/javacomp.h: New file, from GNU gettext.
82707         * lib/javacomp.c: New file, from GNU gettext.
82708
82709 2005-01-26  Simon Josefsson  <jas@extundo.com>
82710
82711         * lib/gai_strerror.c: Use GPL in header.
82712
82713 2005-01-26  Bruno Haible  <bruno@clisp.org>
82714
82715         * modules/javaexec: New file.
82716         * MODULES.html.sh (Java): Add javaexec.
82717
82718 2005-01-26  Bruno Haible  <bruno@clisp.org>
82719
82720         * m4/javaexec.m4: New file, from GNU gettext.
82721
82722 2005-01-26  Bruno Haible  <bruno@clisp.org>
82723
82724         * lib/javaexec.sh.in: New file, from GNU gettext.
82725         * lib/javaexec.h: New file, from GNU gettext.
82726         * lib/javaexec.c: New file, from GNU gettext.
82727
82728 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82729
82730         * modules/lchown (Depends-on): Remove lchown.h
82731
82732 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82733
82734         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82735         must be defined if the header file was not found, in order
82736         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82737
82738 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82739
82740         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82741         initializers for struct pentry_state.
82742         (__argp_error): Check return value of __asprintf
82743         (__argp_failure): Translate error message
82744
82745         * lib/argp-parse.c: Removed braces around the expansion of N_()
82746
82747 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82748
82749         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82750         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82751         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82752         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82753         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82754         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82755         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82756         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82757         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82758         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82759         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82760         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82761         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82762         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82763         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82764         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82765         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82766         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82767         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82768         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82769         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82770         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82771         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82772         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82773         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82774         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82775         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82776         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82777         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82778         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82779         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82780         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82781         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82782         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82783         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82784         Use an all-permissive copyright notice, recommended by RMS.
82785
82786 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * modules/chdir-long (Depends-on): Remove mempcpy.
82789
82790 2005-01-21  Jim Meyering  <jim@meyering.net>
82791
82792         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82793         same value as for Solaris 9.
82794
82795         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82796         component length.  This included changing the parameter to be
82797         of type `char *' rather than `char const *'.
82798         * lib/chdir-long.h (chdir_long): Update prototype.
82799
82800         * lib/openat.c (fdopendir, fstatat): New functions.
82801         * lib/openat.h: Include headers required for use of DIR and struct
82802         stat.
82803         [AT_SYMLINK_NOFOLLOW]: Define.
82804         (fdopendir, fstatat): Add prototypes.
82805
82806 2005-01-21  Bruno Haible  <bruno@clisp.org>
82807
82808         * modules/classpath: New file.
82809         * MODULES.html.sh (Java): Add classpath.
82810
82811 2005-01-21  Bruno Haible  <bruno@clisp.org>
82812
82813         * lib/classpath.h: New file, from GNU gettext.
82814         * lib/classpath.c: New file, from GNU gettext.
82815
82816 2005-01-20  Simon Josefsson  <jas@extundo.com>
82817
82818         * modules/version-etc-fsf: New file.
82819
82820 2005-01-20  Simon Josefsson  <jas@extundo.com>
82821
82822         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82823         * lib/version-etc.c: Remove version_etc_copyright.
82824         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82825         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82826
82827 2005-01-20  Simon Josefsson  <jas@extundo.com>
82828
82829         * lib/base64.h (isbase64): Add.
82830
82831         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82832         using a unsigned prototype, don't inline.
82833         (base64_decode): Use it.
82834
82835 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82836
82837         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82838         it.
82839
82840 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82841
82842         * lib/save-cwd.c (save_cwd): Remove code to support the case
82843         where fchdir is missing or flaky.
82844
82845 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82846
82847         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
82848
82849 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
82850
82851         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
82852         AC_LIBSOURCES now does this.
82853         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
82854         with new ullong_max module.
82855
82856 2005-01-19  Bruno Haible  <bruno@clisp.org>
82857
82858         * modules/sh-quote: New file.
82859         * MODULES.html.sh (Executing programs): Add sh-quote.
82860
82861 2005-01-19  Bruno Haible  <bruno@clisp.org>
82862
82863         * lib/sh-quote.h: New file, from GNU gettext.
82864         * lib/sh-quote.c: New file, from GNU gettext.
82865
82866 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82867
82868         Merge from coreutils.
82869         * m4/ullong_max.m4: New file.
82870         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
82871         (gl_MACROS): Assume localeconv exists.
82872
82873 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         Merge changes from coreutils, as described below in several
82876         changelogs dated today.
82877
82878         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
82879         (O_DIRECTORY): Remove; not needed here, since "." must be
82880         a directory.  All uses removed.
82881         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
82882         universal on Suns, and we also need to test for IRIX.
82883         Revamp code to use 'if' rather than '#if'.
82884         Avoid unnecessary comparison of cwd->desc to 0.
82885
82886         * lib/utimens.c (futimens): Robustify the previous patch, by checking
82887         for known valid error numbers rather than observed invalid ones.
82888
82889 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * modules/ullong_max: New file.
82892
82893         * modules/chdir-long, modules/openat: New files.
82894         * modules/save-cwd (Depends-on): Depend on chdir-long.
82895         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
82896
82897 2005-01-18  Jim Meyering  <jim@meyering.net>
82898
82899         Merge from coreutils.
82900         * m4/chdir-long.m4, m4/openat.m4: New files.
82901         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
82902         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
82903         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
82904         is sane and DOES follow symlinks.  Besides, testing 20 different
82905         systems found no broken chown implementations.
82906         Prompted by a change in rsync's copy of this macro.
82907         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
82908
82909         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
82910
82911         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
82912         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
82913         NULL-means-set-to-current-time semantics.
82914         Remove temporary file immediately, rather than waiting
82915         for configure's at-exit trap code to do it.
82916
82917 2005-01-18  Jim Meyering  <jim@meyering.net>
82918
82919         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82920
82921         * lib/utimens.c (futimens): Account for the fact that futimes
82922         can also fail with errno == ENOSYS or errno == ENOENT.
82923         Patch from Dmitry V. Levin.
82924
82925         Change the name of the robust chdir function from chdir to chdir_long.
82926         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
82927         (restore_cwd): Use chdir_long, not chdir.
82928         * lib/chdir-long.c: Renamed from chdir.c.
82929         * lib/chdir-long.h: Renamed from chdir.h.
82930         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
82931         Hurd.
82932
82933 2005-01-18  Bruno Haible  <bruno@clisp.org>
82934
82935         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
82936         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
82937         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
82938         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
82939         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
82940         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
82941         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
82942         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
82943         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
82944         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
82945         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
82946         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
82947         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
82948         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
82949         Use an all-permissive copyright notice, recommended by RMS.
82950
82951 2005-01-18  Bob Proulx  <bob@proulx.com>
82952
82953         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
82954         simplify offsetof() macro construct to avoid compile failure with
82955         native HP-UX 11.0 ANSI C compiler.
82956
82957 2005-01-17  Bruno Haible  <bruno@clisp.org>
82958
82959         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
82960         redundant because stpncpy.m4 takes care of it.
82961
82962 2005-01-17  Bruno Haible  <bruno@clisp.org>
82963
82964         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
82965
82966 2005-01-17  Bruno Haible  <bruno@clisp.org>
82967
82968         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
82969         used.
82970
82971 2005-01-17  Bruno Haible  <bruno@clisp.org>
82972
82973         * lib/fwriteerror.h (fwriteerror): Change specification to include
82974         fclose.
82975         * lib/fwriteerror.c: Include <stdbool.h>.
82976         (fwriteerror): At the end, close the file stream. Record whether
82977         stdout was already closed.
82978
82979 2005-01-17  Bruno Haible  <bruno@clisp.org>
82980
82981         * lib/execute.c (environ): Declare if needed.
82982         * lib/pipe.c (environ): Likewise.
82983         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
82984
82985 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82986
82987         * modules/argp: Depend on vsnprintf
82988
82989 2005-01-10  Jim Meyering  <jim@meyering.net>
82990
82991         * modules/closeout (Depends-on): Add atexit.
82992
82993 2005-01-06  Bruno Haible  <bruno@clisp.org>
82994
82995         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
82996
82997 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82998
82999         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83000         definitions to be after all include files, to avoid collisions.
83001         Problem reported by Bob Proulx.
83002
83003 2005-01-04  Jim Meyering  <jim@meyering.net>
83004
83005         Changes imported from coreutils.
83006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83007         as the mkstemp template, use a temporary directory and an
83008         8.3-friendly template to avoid trouble on systems like DJGPP.
83009         Reported by Juan M. Guerrero via Stepan Kasal.
83010         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83011         close. Remove the temporary directory right away, rather than waiting
83012         for configure's at-exit trap code to do it.
83013         Suggestion from Stepan Kasal.
83014
83015 2005-01-01  Simon Josefsson  <jas@extundo.com>
83016
83017         * gnulib-tool: Print #include directives when --import'ing.
83018
83019 2004-12-28  Simon Josefsson  <jas@extundo.com>
83020
83021         * tests/test-base64.c: Include required header files.  Remove
83022         unused variables.
83023
83024 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83025
83026         * modules/error (Depends-on): Remove gettext.
83027
83028 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83029
83030         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83031         not needed.  This removes a dependency on the gettext module.
83032         [defined _LIBC]: Do not include <libintl.h>; not needed.
83033
83034 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83035
83036         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83037         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83038
83039 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83042         HAVE_DECL_STRTOLD.
83043
83044 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * modules/getdate (Depends-on): Remove alloca-opt.
83047
83048 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83049
83050         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83051
83052 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83053
83054         * lib/argp-parse.c: Include <stddef.h>.
83055         (alignof, alignto): New macros.
83056         (parser_init): Don't assume that void * is aligned sufficiently
83057         for struct option.
83058
83059         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83060         need to extend the stack.
83061         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83062         large.
83063
83064 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83065
83066         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83067
83068 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83069
83070         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83071         (2004-10-24) change.  Apparently this was a false alarm.
83072
83073         * modules/getdate: Depend on alloca-opt, not alloca.
83074
83075 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83076
83077         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83078         Remove now-obsolete comment about AIX.
83079         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83080         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83081         (YYMAXDEPTH): New macro.
83082
83083 2004-12-18  Simon Josefsson  <jas@extundo.com>
83084
83085         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83086
83087 2004-12-18  Bruno Haible  <bruno@clisp.org>
83088
83089         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83090
83091 2004-12-18  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/fatal-signal.c (fatal_signals): Make non-const.
83094         (init_fatal_signals): New function.
83095         (uninstall_handlers, install_handlers): Ignore signals that were set to
83096         SIG_IGN.
83097         (at_fatal_signal): Call init_fatal_signals.
83098         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83099         SIG_IGN.
83100         Reported by Paul Eggert.
83101
83102 2004-12-18  Bruno Haible  <bruno@clisp.org>
83103
83104         * doc/alloca.texi: New file.
83105         * doc/alloca-opt.texi: New file.
83106
83107 2004-12-17  Jim Meyering  <jim@meyering.net>
83108
83109         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83110         Otherwise, install-sh could exit with improper exit status when
83111         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83112
83113 2004-12-16  Simon Josefsson  <jas@extundo.com>
83114
83115         * tests/test-base64.c: Add license.
83116
83117 2004-12-15  Stepan Kasal  <address@hidden>
83118
83119         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83120
83121 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83122
83123         * modules/getcwd (Files): Add m4/d-ino.m4.
83124         Suggested by Mark D. Baushke.
83125
83126 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83127
83128         * lib/getdate.y (textint): New member "negative".
83129         (time_zone_hhmm): New function.
83130         Expect 14 shift-reduce conflicts, not 13.
83131         (o_colon_minutes): New rule.
83132         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83133         (yylex): Set the "negative" member of signed numbers.
83134
83135 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         * doc/getdate.texi (Time of day items, Time zone items):
83138         Describe new formats +00:00, UTC+00:00.
83139
83140 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83143         spurious "-l"s.  Problem reported by Stepan Kasal.
83144
83145 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83146
83147         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83148         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83149
83150 2004-12-04  Simon Josefsson  <jas@extundo.com>
83151
83152         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83153         Vandoorselaere <yoann@prelude-ids.org>.
83154
83155 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83156
83157         Changes imported from coreutils.
83158         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83159         exist.
83160         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83161
83162 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83163
83164         Changes imported from coreutils.
83165         * lib/hard-locale.c: Assume <locale.h> exists.
83166         Include "strdup.h".
83167         (GLIBC_VERSION): New macro.
83168         (hard_locale): Assume setlocale exists.
83169         Rewrite to avoid #ifdef.
83170         Use strdup rather than malloc + strcpy.
83171         * lib/human.c: Assume <locale.h> exists.
83172         (human_readable): Assume localeconv exists.
83173
83174 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83175
83176         * modules/hard-locale (Depends-on): Add strdup.
83177
83178 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83179
83180         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83181         convert T2, not T.  (Imported from libc.)
83182
83183 2004-11-30  Simon Josefsson  <jas@extundo.com>
83184
83185         * modules/restrict (License): Change to LGPL.
83186
83187 2004-11-30  Simon Josefsson  <jas@extundo.com>
83188
83189         * m4/restrict.m4: Add copyright and copying conditions.
83190
83191 2004-11-30  Simon Josefsson  <jas@extundo.com>
83192
83193         * m4/base64.m4: New file.
83194
83195 2004-11-30  Simon Josefsson  <jas@extundo.com>
83196
83197         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83198         base64.
83199
83200         * tests/test-base64.c: New file.
83201
83202         * modules/base64: New file.
83203
83204 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83205
83206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83207         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83208
83209         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83210
83211 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83212
83213         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83214         (__getcwd.c): Don't restore errno; glibc doesn't.
83215         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83216         first, falling back to our code only if its results look suspicious.
83217         Ensure that the resulting buffer is only as large as necessary.
83218
83219         * lib/readutmp.c: Include readutmp.h first.
83220         Include <errno.h>, since readutmp.h no longer does that.
83221         * lib/readutmp.h: Don't include <errno.h>,
83222         <sys/param.h>, <time.h>; not needed to establish interface.
83223         (errno): Remove decl.
83224         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83225         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83226         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83227
83228 2004-11-28  Simon Josefsson  <jas@extundo.com>
83229
83230         * lib/base64.h, base64.c: New file.
83231
83232 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83233
83234         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83235
83236 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83239         (Depends-on): Remove pathmax, same.  Add mempcpy.
83240         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83241         (Makefile.am): Append getcwd.h to lib_SOURCES.
83242         (Include): Add getcwd.h.
83243         (Maintainer): Change from Jim Meyering to "all, glibc",
83244         since getdate now uses intended-for-glibc code.
83245         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83246         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83247
83248 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83249
83250         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83251         HP's ANSI C compiler.
83252         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83253         Declaring int functions causes warnings on some modern systems and
83254         shouldn't be needed to compile on ancient ones.
83255         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83256         defined.
83257
83258         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83259         with the following changes.
83260         (__set_errno): Parenthesize properly.
83261         Include <stdbool.h>.
83262         (MIN, MAX, MATCHING_INO): New macros.
83263         (__getcwd): Define with prototype, not K&R form.
83264         Use heuristics to allocate default buffer on stack if possible.
83265         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83266         behavior, and to avoid the PATH_MAX limit when computing
83267         ../../../../...
83268         Use MATCHING_INO to compare inode number to file.
83269         Check for arithmetic overflow in size calculations.
83270         Fix bug in reallocation of dot array that caused getcwd to fail
83271         on directories nested deeper than 75.
83272         Be more careful about saving errno on error.
83273         Do not use realloc; use only free+malloc, as this is a bit
83274         more flexible and avoids a needless copy operation.
83275         Do not inspect st_dev and st_ino for symbolic links; POSIX
83276         doesn't specify the latter.
83277         Check for closedir errors.
83278         Avoid needless casts.
83279         Use "#ifdef weak_alias" around weak_alias, to be like other
83280         glibc code.
83281         The following changes to getcwd.c have effect only when used in
83282         gnulib; they have no effect inside glibc proper.
83283         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83284         as alloca isn't used.
83285         (alloca, __alloca): Likewise.
83286         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83287         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83288         unconditionally, as gnulib assumes C89 or better.
83289         Do not include <sys/param.h>.
83290         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83291         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83292         better.
83293         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83294         Include <dirent.h> in a way that is compatible with modern Autoconf.
83295         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83296         New macros, if not already defined.
83297         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83298         Use "_LIBC", not "defined _LIBC", for consistency.
83299         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83300         a mempcpy module.
83301         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83302         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83303         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83304         credit only to Jim Meyering and adjust the copyright dates.
83305         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83306         <stdlib.h>, <unistd.h>, "pathmax.h".
83307         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83308         (INITIAL_BUFFER_SIZE): Remove.
83309         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83310
83311 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83312
83313         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83314         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83315         Use the _ONCE methods, for efficiency.
83316         Check for fcntl.h.  In test program, include <errno.h>
83317         and <fcntl.h> if available.  Remove old K&R cruft from
83318         test program.  Check for common errors in GNU/Linux,
83319         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83320         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83321         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83322         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83323         name accordingly.
83324         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83325         accommodate new getcwd.c.
83326         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83327         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83328         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83329         that's all we need now.
83330
83331 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83332
83333         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83334         argp-parse.c depends on getopt internals, that means we should
83335         always use our getopt, to be on the safe side.
83336         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83337         order not to spoil the result of an eventual previous invocation
83338         of gl_GETOPT_SUBSTITUTE.
83339
83340 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83341
83342         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83343         redefinition warnings. To avoid them, include the defines
83344         in `#if !defined __need_getopt ... #endif'. The only place
83345         where __getopt_argv_const is used is in definitions
83346         of getopt_long and getopt_long_only below, which are as well
83347         protected by `#ifndef __need_getopt'.
83348         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83349         __need_getopt after including <stdio.h> and <unistd.h> These
83350         headers might have defined it.
83351
83352 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83353
83354         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83355
83356 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83357
83358         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83359         (futimens): New function, which uses futimes if available.
83360         (futimens, utimens): Support timespec==NULL, with same semantics
83361         as utime and utimens.
83362         * lib/utimens.h (futimens): New decl.
83363
83364 2004-11-23  Jim Meyering  <jim@meyering.net>
83365
83366         * lib/getopt_.h: Remove trailing blanks.
83367
83368 2004-11-23  Jim Meyering  <jim@meyering.net>
83369
83370         * lib/__fpending.c: Add comment.
83371
83372 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83373
83374         * modules/canonicalize (Depends-on): Add xreadlink.
83375         Problem reported by James Youngman.
83376
83377 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83378
83379         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83380         New macros.
83381         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83382         optopt): Use them instead of invoking ## directly; otherwise, the
83383         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83384
83385 2004-11-19  Bruno Haible  <bruno@clisp.org>
83386
83387         * lib/strtok_r.c: Move comments from here...
83388         * lib/strtok_r.h: ... to here.
83389
83390 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83391
83392         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83393         implementations that mishandle size_t overflow.
83394
83395 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83398         might fail.  Problem reported by Yoann Vandoorselaere.
83399         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83400         implementations that mishandle size_t overflow.
83401
83402 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83403
83404         * modules/canon-host (Depends-on): Add strdup.
83405
83406 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83409
83410 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83411
83412         * lib/canon-host.c: Include "strdup.h".
83413         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83414         Use strdup instead of malloc/strcpy to duplicate strings.
83415
83416         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83417         (human_space_before_unit): New constant.
83418         * lib/human.c (human_readable): Support it.
83419
83420         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83421         (xgetcwd): Set errno correctly when failing.
83422         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83423         the failure is actually due to a PATH_MAX problem.
83424
83425         Further getopt changes to make it more likely that glibc will
83426         buy the changes back.
83427         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83428         (getopt): Use it, so to preserve glibc semantic
83429         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83430         when compiling for libc.
83431         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83432         (getopt_long, getopt_long_only): Use it.
83433
83434         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83435         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83436         (getopt): Argv is now char * const *, as per standard.
83437         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83438         not char *__getopt_argv_const *.
83439         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83440         _getopt_long_only_r): Likewise.
83441         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83442         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83443         _getopt_long_r, _getopt_long_only_r): Likewise.
83444         * lib/getopt_.h (__getopt_argv_const): Remove.
83445         (getopt): Argv is now char * const *, as per standard.
83446
83447         * lib/getdate.y (tORDINAL): New token.
83448         (day, relunit): Allow it for relative times.
83449         (relative_time_table): Use tORDINAL for ordinals.
83450
83451 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83452
83453         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83454         Document that "second" isn't allowed as an ordinal number.
83455
83456 2004-11-16  Jim Meyering  <jim@meyering.net>
83457
83458         * modules/closeout (Depends-on): Add fpending.
83459
83460 2004-11-15  Jim Meyering  <jim@meyering.net>
83461
83462         * lib/closeout.c: Include "__fpending.h" once again.
83463         Include <stdbool.h>.
83464         (close_stdout): Don't fail just because stdout was closed initially,
83465         since some programs don't write to stdout in the normal course of
83466         operation (other than --version and --help), and we don't want this
83467         function to make e.g. `touch file >&-' fail.
83468         But do fail if it was closed and someone has tried to write to it.
83469         E.g., `printf foo >&-' must fail.
83470
83471 2004-11-13  Jim Meyering  <jim@meyering.net>
83472
83473         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83474
83475 2004-11-12  Simon Josefsson  <jas@extundo.com>
83476
83477         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83478         small doc fix is still pending.
83479
83480 2004-11-11  Simon Josefsson  <jas@extundo.com>
83481
83482         * modules/strtok_r: New file.
83483
83484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83485         strtok_r.
83486
83487 2004-11-11  Simon Josefsson  <jas@extundo.com>
83488
83489         * m4/strtok_r.m4: New file.
83490
83491         * m4/getopt.m4: Replace opterr.
83492
83493 2004-11-11  Simon Josefsson  <jas@extundo.com>
83494
83495         * lib/strtok_r.h, strtok_r.c: New file.
83496
83497 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83498
83499         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83500         of replacing opterr, getopt, etc.  This should handle the
83501         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83502
83503 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83504
83505         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83506         we can stop lying to compilers about the constness of argv when we
83507         are compiled outside glibc.
83508         (getopt, getopt_long, getopt_long_only): Use it.
83509         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83510         _getopt_internal, getopt): Likewise.
83511         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83512         _getopt_long_only_r): Likewise.
83513         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83514         _getopt_long_r, _getopt_long_only_r): Likewise.
83515
83516         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83517         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83518         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83519         the other external symbols.
83520         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83521         declaration, since the above renaming now works around collisions.
83522
83523 2004-11-11  Jim Meyering  <jim@meyering.net>
83524
83525         * lib/linebreak.c: Remove trailing blanks.
83526         * lib/alloca_.h: Likewise.
83527         * lib/acosl.c: Likewise.
83528         * lib/euidaccess.c: Likewise.
83529         * lib/allocsa.h: Likewise.
83530
83531 2004-11-10  Simon Josefsson  <jas@extundo.com>
83532
83533         * m4/getaddrinfo.m4: New file.
83534
83535 2004-11-10  Simon Josefsson  <jas@extundo.com>
83536
83537         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83538
83539 2004-11-10  Simon Josefsson  <jas@extundo.com>
83540
83541         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83542         getaddrinfo.
83543
83544         * modules/getaddrinfo: New file.
83545
83546 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83547
83548         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83549
83550 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83551
83552         * lib/mktime.c (SHR): New macro, which is a portable
83553         substitute for >> that should work even on Crays.
83554         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83555         Problem reported by Mark D. Baushke in
83556         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83557         * lib/getdate.y (SHR): Likewise.
83558         (tm_diff): Use it.
83559         * lib/strftime.c (SHR): Likewise.
83560         (tm_diff): Use it.
83561         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83562         quote_these_too, so that right shifts are well defined.  All uses
83563         changed.
83564
83565 2004-11-10  Jim Meyering  <jim@meyering.net>
83566
83567         Ensure that no close failure goes unreported.
83568         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83569         return early when it seems there's nothing to flush.
83570         Don't include __fpending.h.
83571
83572 2004-11-10  Jim Meyering  <jim@meyering.net>
83573
83574         * modules/closeout (Depends-on): Remove fpending.
83575
83576 2004-11-10  Jim Meyering  <jim@meyering.net>
83577
83578         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83579
83580 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83581
83582         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83583         gl_FUNC_STRFTIME.
83584         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83585         and AC_REQUIRE when possible, to avoid duplicate checks.
83586         Check for <wchar.h>.
83587
83588 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83589
83590         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83591
83592 2004-11-09  Bruno Haible  <bruno@clisp.org>
83593
83594         * m4/sockpfaf.m4: New file.
83595
83596 2004-11-05  Bruno Haible  <bruno@clisp.org>
83597
83598         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83599         Reported by Mark D. Baushke <mdb@cvshome.org>.
83600
83601 2004-11-04  Bruno Haible  <bruno@clisp.org>
83602
83603         2004-09-11  Bruno Haible  <bruno@clisp.org>
83604                 * allocsa.valgrind: New file.
83605         2004-02-06  Bruno Haible  <bruno@clisp.org>
83606                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83607                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83608                 Reported by Christopher Seip <chris.seip@hp.com>.
83609
83610 2004-11-04  Bruno Haible  <bruno@clisp.org>
83611
83612         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83613         (Makefile.am): Distribute it.
83614
83615 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83616
83617         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83618         with errno == ERANGE if the buffer is too small.
83619         Problem reported by Mark D. Baushke.
83620
83621 2004-11-03  Albert Chin  <china@thewrittenword.com>
83622             Paul Eggert  <eggert@cs.ucla.edu>
83623
83624         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83625         equivalent, substitute $ac_type for equivalent type rather than
83626         blindly using uint32_t *always* which won't work if uint32_t is not
83627         available.  Define _UINT32_T to work around typedef of uint32_t if
83628         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83629         2.5.1.
83630
83631 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83632
83633         * m4/jm-macros.m4: Sync from coreutils.
83634         (gl_MACROS): Check for mbrlen, for pathchk.
83635         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83636
83637 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83638
83639         * lib/xreadlink.c (MAXSIZE): New macro.
83640         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83641         size does not exceed MAXSIZE.  Avoid cast.
83642         As suggested by Mark D. Baushke in
83643         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83644         if readlink fails with buffer size just under MAXSIZE, try again
83645         with MAXSIZE.
83646
83647 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83648
83649         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83650
83651 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83652         and  Paul Eggert  <eggert@cs.ucla.edu>
83653
83654         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83655         (get_date): Overparenthesize to avoid GCC warning.
83656
83657 2004-11-02  Bruno Haible  <bruno@clisp.org>
83658
83659         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83660         returns void.
83661
83662 2004-11-02  Bruno Haible  <bruno@clisp.org>
83663
83664         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83665         function returns void.
83666
83667 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83668
83669         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83670         fflush_unlocked, flockfile, funlockfile, funlockfile,
83671         fputs_unlocked, putc_unlocked.
83672
83673 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83674
83675         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83676         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83677         already declared.
83678
83679 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83680
83681         * modules/getdate (Files): Add doc/getdate.texi.
83682         (Depends-on): Add setenv, xalloc.
83683
83684 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83685
83686         * lib/getdate.y: Add support for TZ="foo" within a date string.
83687         Fix some bugs near time_t boundaries.  Reject dates with
83688         out-of-range components, e.g., "Sept 31".
83689         Include <stdlib.h>, "setenv.h", "xalloc.h".
83690         (ISDIGIT_LOCALE): Remove; unused.
83691         Note that the TZ and time functions used here are not reentrant.
83692         (mktime_ok, get_tz): New functions.
83693         (TZBUFSIZE): New constant.
83694         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83695         This requires that we sometimes generate our own TZ="XXX..." setting.
83696
83697 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * doc/getdate.texi: New file, from coreutils with modifications for
83700         the new TZ parsing.
83701
83702 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83703
83704         * lib/mktime.c (not_equal_tm): Remove redundant check.
83705
83706 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83707
83708         * modules/regex (lib_SOURCES): Add regex.c.
83709         Reported by James Youngman in
83710         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83711
83712 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         * lib/getdate.y: Use Bison 1.875 features, and some minor
83715         code cleanups.  This change does not affect semantics.
83716         Don't include <stdlib.h>; no longer needed.
83717         Don't include unlocked-io.h; only the "#if TEST" code uses
83718         stdio, and performance isn't crucial there.
83719         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83720         Bison 1.875 features as described below.
83721         All uses of "PC." replaced by "pc->".
83722         (YYSTYPE): Add a forward declaration.
83723         (yylex, yyerror): Use full prototypes in forward decls.
83724         Use "%pure-parser" rather than obsolescent "%pure_parser".
83725         Use %parse-param and %lex-param instead of obsolescent
83726         YYPARSE_PARAM and YYLEX_PARAM.
83727         (meridian_table, month_and_day_table, time_units_table,
83728         relative_time_table, time_zone_table, military_table,
83729         lookup_zone, lookup_word, get_date):
83730         Use NULL instead of 0 where appropriate.
83731         (to_hour): Avoid abort (), to avoid a dependency on
83732         stdlib.h.
83733         (yyerror, yylex): Now accepts parser_control * arg.
83734         (main) [TEST]: Use '\0' rather than 0 for char.
83735
83736 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83739
83740 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83743         It's now the caller's responsibility to handle the case where
83744         !HAVE_GETPAGESIZE && !defined getpagesize.
83745
83746         * lib/mktime.c (leapyear): Arg is long int, not int.
83747
83748 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83751
83752 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83753
83754         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83755         missing.  Problem reported by James Youngman.
83756
83757 2004-10-16  Simon Josefsson  <jas@extundo.com>
83758
83759         * gnulib-tool: Fix comments.  Fix parse problem.
83760         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83761
83762 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83765         implementation of getopt_long.  Problem reported by Alexander Taler in:
83766         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83767
83768 2004-10-15  Bruno Haible  <bruno@clisp.org>
83769
83770         * gnulib-tool: Untabify. Initialize supplied_libname.
83771         (func_usage): More homogenous output.
83772         (func_modules_transitive_closure, func_modules_to_filelist,
83773         func_emit_lib_Makefile_am): New functions.
83774         (func_import): New function, extracted from big case statement. Use
83775         func_get_license, func_modules_transitive_closure,
83776         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83777         opt_lgpl. Don't use test -a, as it's not portable.
83778         (func_create_testdir): Use func_modules_transitive_closure,
83779         func_modules_to_filelist, func_emit_lib_Makefile_am.
83780
83781 2004-10-15  Bruno Haible  <bruno@clisp.org>
83782
83783         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83784
83785 2004-10-15  Bruno Haible  <bruno@clisp.org>
83786
83787         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83788         the portions belonging to each module.
83789         Suggested by Derek Robert Price <derek@ximbiot.com>.
83790
83791 2004-10-12  Simon Josefsson  <jas@extundo.com>
83792
83793         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83794         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83795         to real functions.
83796
83797 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83798
83799         * modules/vsnprintf: New file.
83800
83801 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83802
83803         * m4/vsnprintf.m4: New file.
83804
83805 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83806
83807         * lib/vsnprintf.h: New file.
83808         * lib/vsnprintf.c: New file.
83809
83810 2004-10-11  Bruno Haible  <bruno@clisp.org>
83811
83812         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83813         vsnprintf.
83814
83815 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83816
83817         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83818
83819 2004-10-07  Bruno Haible  <bruno@clisp.org>
83820
83821         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83822         fits into the provided buffer.
83823
83824 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         * lib/diacrit.c, diacrit.h: Add GPL notice.
83827
83828         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83829         notice.
83830         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83831         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83832         This avoids a potential constant-folding bug.
83833
83834 2004-10-05  Bruno Haible  <bruno@clisp.org>
83835
83836         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83837         for the declaration of strsep.
83838
83839 2004-10-05  Bruno Haible  <bruno@clisp.org>
83840
83841         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
83842
83843 2004-10-04  Simon Josefsson  <jas@extundo.com>
83844
83845         * modules/memmem: New file.
83846         * tests/test-memmem.c: New file.
83847         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
83848
83849 2004-10-04  Simon Josefsson  <jas@extundo.com>
83850
83851         * m4/memmem.m4: New file.
83852
83853 2004-10-04  Simon Josefsson  <jas@extundo.com>
83854
83855         * lib/memmem.h: New file.
83856         * lib/memmem.c: New file, taken from glibc.
83857
83858 2004-10-04  Simon Josefsson  <jas@extundo.com>
83859
83860         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
83861         '#ifdef USE_UNLOCKED_IO'.
83862
83863 2004-10-04  Simon Josefsson  <jas@extundo.com>
83864
83865         * config/srclist.txt: Add memmem from glibc.
83866
83867 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
83870
83871         * modules/argmatch, modules/argp, modules/closeout, modules/error,
83872         modules/exclude, modules/getdate, modules/getline,
83873         modules/getndelim2, modules/getpass, modules/getpass-gnu,
83874         modules/getusershell, modules/linebuffer, modules/md5,
83875         modules/mountlist, modules/posixtm, modules/readtokens,
83876         modules/readutmp, modules/regex, modules/sha1,
83877         modules/version-etc, modules/yesno:
83878         Remove dependency on unlocked-io.
83879
83880 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83881
83882         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
83883
83884         * m4/unlocked-io.m4: Add copyright notice.
83885         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
83886
83887 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
83890         * lib/xmalloc.c (xmemdup): Likewise.
83891         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
83892         XFREE): Remove these long-obsolescent macros.
83893         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
83894         * lib/xstrdup.c: Remove.
83895
83896         * lib/regex.c (re_comp): Cast gettext return value to char *,
83897         Problem reported by Martin Neitzel via Mark D. Baushke.
83898
83899 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83900
83901         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
83902         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
83903         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
83904         regex.c, sha1.c, version-etc.c, yesno.c:
83905         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
83906         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
83907         the includer's responsibility.
83908
83909         Sync from coreutils.
83910
83911         * lib/modechange.c (mode_compile): Don't decrement a pointer that
83912         points to the start of a string, as the C Standard says the
83913         resulting behavior is undefined.
83914
83915         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
83916         simple -> simple_backups, numbered_existing ->
83917         numbered_existing_backups, numbered -> numbered_backups
83918         to avoid shadowing problems.  All uses changed.
83919         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
83920         * lib/backupfile.c (check_extension, numbered_backup):
83921         Rename locals to avoid shadowing 'basename'.
83922         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
83923         once.
83924
83925         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
83926         * lib/.cvsignore: Add getopt.h.
83927
83928 2004-10-04  Bruno Haible  <bruno@clisp.org>
83929
83930         * modules/README: New file.
83931         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
83932         not a module.
83933
83934 2004-10-02  Jim Meyering  <jim@meyering.net>
83935
83936         * lib/dirfd.h, getpagesize.h: Add copyright notice.
83937
83938 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83939
83940         * modules/strsep: New file.
83941
83942 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83943
83944         * m4/strsep.m4: New file.
83945
83946 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83947
83948         * lib/strsep.h: New file.
83949         * lib/strsep.c: New file.
83950
83951 2004-10-01  Simon Josefsson  <jas@extundo.com>
83952
83953         * lib/snprintf.c (snprintf): Handle size==0.
83954
83955 2004-10-01  Simon Josefsson  <jas@extundo.com>
83956             Bruno Haible  <bruno@clisp.org>
83957
83958         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
83959         (snprintf): Declare 'args'.
83960
83961 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
83962
83963         * lib/snprintf.c: Remove comments as to why each header is needed.
83964
83965 2004-10-01  Bruno Haible  <bruno@clisp.org>
83966
83967         * MODULES.html.sh: Add strsep.
83968
83969 2004-09-30  Simon Josefsson  <jas@extundo.com>
83970
83971         * modules/snprintf: New file.
83972
83973 2004-09-30  Simon Josefsson  <jas@extundo.com>
83974
83975         * m4/snprintf.m4: New file.
83976
83977 2004-09-30  Simon Josefsson  <jas@extundo.com>
83978
83979         * lib/snprintf.h, lib/snprintf.c: New files.
83980
83981 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83982
83983         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
83984         (hol_entry_help): Never translate an empty string.
83985         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
83986         * lib/argp.h (OPTION_NO_TRANS): New option.
83987
83988 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         * modules/argp (Maintainer): Replace Simon Josefsson
83991         by Sergey Poznyakoff.
83992
83993 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83994
83995         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
83996         changes merged back into glibc.
83997
83998 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83999
84000         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84001
84002 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84003
84004         * lib/xvasprintf.c: Include xalloc.h.
84005         (xvasprintf): Use xalloc_die, not xmalloc_die.
84006
84007 2004-09-29  Bruno Haible  <bruno@clisp.org>
84008
84009         * modules/alloca-opt: New file, derived from modules/alloca.
84010         * modules/allocsa: Depend on alloca-opt instead of alloca.
84011         * modules/setenv: Likewise.
84012         * modules/vasnprintf: Likewise.
84013         * MODULES.html.sh: Add alloca-opt.
84014
84015 2004-09-28  Simon Josefsson  <jas@extundo.com>
84016
84017         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84018         LGPL, and to replace license template from GPL to LGPL.
84019
84020 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * modules/dummy: Change license to LGPL.
84023
84024 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84025
84026         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84027
84028 2004-09-24  Simon Josefsson  <jas@extundo.com>
84029
84030         * modules/minmax (License): Change from GPL to LGPL.
84031
84032 2004-09-23  Simon Josefsson  <jas@extundo.com>
84033
84034         * gnulib-tool (--import): Typo.
84035
84036 2004-09-23  Simon Josefsson  <jas@extundo.com>
84037
84038         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84039
84040 2004-09-22  Bruno Haible  <bruno@clisp.org>
84041
84042         * modules/*: Add 'License' field.
84043         * gnulib-tool: Accept --extract-license option.
84044         (func_get_license): New function.
84045
84046 2004-09-21  Bruno Haible  <bruno@clisp.org>
84047
84048         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84049         Reported by Simon Josefsson.
84050
84051 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84054         gl_AC_TYPE_LONG_LONG.
84055
84056 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84057
84058         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84059
84060 2004-09-18  Simon Josefsson  <jas@extundo.com>
84061         and  Paul Eggert  <eggert@cs.ucla.edu>
84062
84063         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84064         calls with autoreconf.  Define GL_LIB.
84065
84066 2004-09-14  Karl Berry  <karl@gnu.org>
84067
84068         * config/srclist.txt: unsync setenv.c, sigh.
84069
84070 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84071
84072         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84073         Problem reported by Bruno Haible in:
84074         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84075
84076 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84077
84078         * config/srclist.txt: Comment out argp-pvh.c.
84079
84080 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84083         in case some system header has #define'd it.  Problem reported by
84084         Soeren D. Schulze in
84085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84086
84087 2004-09-09  Karl Berry  <karl@gnu.org>
84088
84089         * regex.[ch]: delete from the root.  These were supposed to be
84090                 synced with emacs cvs, but this has not happened for about
84091                 a year, and anyway nothing else uses emacs regex.[ch].
84092                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84093                 lib/regex[.ch] is untouched.
84094
84095 2004-09-09  Bruno Haible  <bruno@clisp.org>
84096
84097         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84098
84099 2004-09-09  Bruno Haible  <bruno@clisp.org>
84100
84101         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84102         modifications.
84103         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84104
84105 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84106
84107         * modules/xvasprintf: New file.
84108         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84109
84110 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84111
84112         * lib/xvasprintf.h: New file.
84113         * lib/xvasprintf.c: New file.
84114         * lib/xasprintf.c: New file.
84115
84116 2004-09-08  Bruno Haible  <bruno@clisp.org>
84117
84118         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84119
84120 2004-09-08  Bruno Haible  <bruno@clisp.org>
84121
84122         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84123         length is > INT_MAX.
84124         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84125         more.
84126
84127 2004-09-08  Bruno Haible  <bruno@clisp.org>
84128
84129         * lib/stdint_.h: New file, taken from GNU clisp.
84130
84131 2004-09-08  Bruno Haible  <bruno@clisp.org>
84132             Oskar Liljeblad  <oskar@osk.mine.nu>
84133
84134         * modules/stdint: New file.
84135         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84136
84137 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84138
84139         Import from coreutils.
84140         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84141         strings on unbounded length.  alloca's performance benefits aren't
84142         that important here.
84143         (V_STRDUP): Remove.
84144         (parse_with_separator): New function, with most of the internals
84145         of the old parse_user_spec.  Allow user to omit both user and group,
84146         for compatibility with FreeBSD.
84147         Clone only the user name, not the entire spec.
84148         Do not set *uid, *gid unless entirely successful.
84149         Avoid memory leak in some failing cases.
84150         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84151         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84152         (parse_user_spec): Rewrite to use parse_with_separator.
84153
84154 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84155
84156         * modules/userspec: Don't depend on alloca.
84157
84158 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84159
84160         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84161
84162 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84163
84164         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84165         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84166         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84167
84168 2004-08-16  Simon Josefsson  <jas@extundo.com>
84169
84170         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84171         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84172         Add --dry-run for --import.
84173         Let user provided command line parameters override configure.ac
84174         settings.
84175
84176 2004-08-12  Simon Josefsson  <jas@extundo.com>
84177
84178         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84179         as discussed with Paul Eggert in threads rooted at
84180         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84181         and
84182         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84183         Before, the test was empty, and relied on ELIDE_CODE in source
84184         code.)
84185         (gl_PREREQ_GETOPT): New macro.
84186         (gl_GETOPT): Use them.
84187
84188 2004-08-12  Simon Josefsson  <jas@extundo.com>
84189
84190         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84191         * lib/getopt_.h: Renamed from getopt.h.
84192
84193 2004-08-12  Simon Josefsson  <jas@extundo.com>
84194
84195         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84196         Change default library name from libfoo to libgnu.
84197         Now, if you have a configure.ac that says:
84198                 gl_SOURCE_BASE(gl)
84199                 gl_M4_BASE(gl/m4)
84200                 gl_MODULES(error getopt etcetera)
84201                 gl_INIT
84202         you can import all you need by running:
84203                 ../gnulib/gnulib-tool --import
84204
84205         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84206         (Makefile.am): Rewrite, use logic from argz.
84207         (Include): Use <getopt.h> instead of "getopt.h".
84208
84209 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * modules/argp (Files): Add m4/unlocked-io.m4.
84212         (Depends-on): Add extensions.
84213
84214 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84217         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84218         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84219         Check for program_invocation_name, program_invocation_short_name,
84220         flockfile, funlockfile, features.h, _getopt_long_only_r.
84221
84222 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84223
84224         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84225         its complicated substitute.
84226         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84227         and program_invocation_name.
84228         (__argp_basename) [!_LIBC]: Remove; the only use was
84229         replaced by its body.
84230         (__argp_short_program_name): Change condition from
84231         !defined __argp_short_program_name to
84232         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84233         to match argp-namefrob.h.
84234         (__argp_failure): Don't assume strerror_r returns char *.
84235         * lib/argp-parse.c (N_): Define unconditionally.
84236         (argp_default_options): Fill out initializers with 0 to avoid
84237         gcc warnings.
84238
84239 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84240
84241         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84242         getopt1.c.
84243
84244 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84245
84246         Merge from coreutils.
84247
84248         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84249
84250         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84251         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84252
84253 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         Merge from coreutils.
84256
84257         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84258         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84259         for Reliant Unix 5.43.
84260
84261         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84262         (union fooround): Use uintmax_t, not long int.
84263         The rest is a merge from libc:
84264         [defined _LIBC]: Include <shlib-compat.h>.
84265         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84266
84267         * lib/settime.c (settime): Recode to avoid warning with
84268         Sun Forte C 6U2.
84269
84270         * lib/strverscmp.c: Convert to UTF-8.
84271
84272 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84273
84274         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84275         m4/uintmax_t.m4.
84276
84277 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84278
84279         * modules/xalloc-die: New file.
84280         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84281
84282         * modules/md5 (Files): Add m4/uint32_t.m4.
84283         * modules/sha1: Renamed from modules/sha.
84284         (Files):
84285         Rename lib/sha.h to lib/sha1.h.
84286         Rename lib/sha.c to lib/sha1.c.
84287         Rename m4/sha.m4 to m4/sha1.m4.
84288         (lib_SOURCES): Likewise.
84289         (configure.ac): Rename gl_SHA to gl_SHA1.
84290         (Include): sha.h -> sha1.h.
84291
84292 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84293
84294         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84295         * m4/sha1.m4: Renamed from sha.m4.
84296         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84297
84298 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84299
84300         * lib/obstack.h (obstack_empty_p):
84301         Don't assume that chunk->contents is suitably aligned.
84302         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84303         Likewise. Problem reported by Benno in
84304         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84305
84306         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84307         readable.  This could be improved further but it'd take some work.
84308
84309 2004-08-08  Simon Josefsson  <jas@extundo.com>
84310
84311         * modules/xgethostname (Depends-on): Remove exit and error (not
84312         used).
84313
84314         * modules/getpass-gnu: Add getpass.h.
84315         (Depends-on): Add stdbool.
84316         * modules/getpass: Add getpass.h.
84317
84318 2004-08-08  Simon Josefsson  <jas@extundo.com>
84319
84320         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84321         Check getpass declaration.
84322
84323 2004-08-08  Simon Josefsson  <jas@extundo.com>
84324
84325         * lib/xgethostname.c: Don't include error.h (not used).
84326
84327         * lib/getpass.h: Add.
84328         * lib/getpass.c: Include getpass.h first.
84329
84330 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84331
84332         * lib/xalloc-die.c: New file.
84333         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84334         All uses removed.
84335         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84336         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84337         xalloc-die.c.
84338         (_, N_, xalloc_die): Move to xalloc-die.c.
84339         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84340         so that we needn't mess with xalloc_msg_memory_exhausted.
84341
84342         * lib/sha1.h: Renamed from sha.h.
84343         (SHA1_H): Renamed from _SHA_H.
84344         (sha1_ctx): Renamed from sha_ctx.
84345         (sha1_init_ctx): Renamed from sha_init_ctx.
84346         (sha1_process_block): Renamed from sha_process_block.
84347         (sha1_process_bytes): Renamed from sha_process_bytes.
84348         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84349         (sha1_read_ctx): Renamed from sha_read_ctx.
84350         (sha1_stream): Renamed from sha_stream.
84351         (sha1_buffer): Renamed from sha_buffer.
84352         * lib/sha1.c: Likewise; renamed from sha.c.
84353         Do not include <sys/types.h>.
84354         Include <stddef.h> rather than <stdlib.h>.
84355
84356 2004-08-08  Bruno Haible  <bruno@clisp.org>
84357
84358         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84359         FILESYSTEM_PREFIX_LEN.
84360         * lib/progreloc.c: Likewise.
84361         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84362
84363 2004-08-06  Simon Josefsson  <jas@extundo.com>
84364
84365         * modules/progname (Depends-on): Don't depend on stdbool.
84366
84367 2004-08-06  Simon Josefsson  <jas@extundo.com>
84368
84369         * modules/getsubopt: New file.
84370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84371         getsubopt.
84372
84373 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84374
84375         More merge from coreutils.
84376
84377         * m4/utimens.m4, m4/utimecmp.m4: New files.
84378         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84379         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84380         prereq.m4, sha.m4: Import changes from coreutils.
84381
84382 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84383
84384         More merge from coreutils.
84385         * modules/raise, modules/readtokens0, modules/utimens:
84386         * modules/utimecmp, module/xnanosleep: New files.
84387         * modules/strftime: Add lib/strftime.h.
84388         Change include from <time.h> to "strftime.h".
84389         * modules/yesno: Add lib/yesno.h.
84390         * modules/backupfile: Remove lib/addext.c.
84391         * modules/euidaccess: Add stat-macros.h.
84392         * modules/canonicalize, modules/euidaccess,
84393         modules/filemode, modules/lchown, modules/makepath,
84394         modules/rmdir, modules/stat: Likewise.
84395
84396 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         Merge from tar.
84399         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84400         SIZE_MAX is a valid preprocessor constant.
84401         (__argp_basename): Change from "#ifndef _LIBC"
84402         to "#ifndef __argp_short_program_name", so that
84403         we don't compile these functions for tar.
84404
84405         More merges from coreutils.
84406         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84407         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84408         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84409         * lib/addext.c: Remove; no longer needed.
84410         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84411         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84412         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84413         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84414         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84415         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84416         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84417         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84418         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84419         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84420         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84421         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84422         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84423         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84424         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84425         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84426         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84427         Import changes from coreutils.
84428
84429 2004-08-05  Simon Josefsson  <jas@extundo.com>
84430
84431         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84432
84433 2004-08-05  Simon Josefsson  <jas@extundo.com>
84434
84435         * m4/getsubopt.m4: New file.
84436
84437 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84438
84439         Merge from coreutils.
84440
84441         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84442         * m4/getcwd-path-max.m4: New files.
84443
84444         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84445         FILESYSTEM_PREFIX_LEN ->
84446         FILE_SYSTEM_PREFIX_LEN.
84447         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84448         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84449         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84450         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84451
84452         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84453         prerequisite modules now handle the DOS stuff.
84454         Don't check for unistd.h.
84455
84456 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         Merge from coreutils.
84459
84460         * lib/.gdb-history: Remove; this doesn't belong here.
84461
84462         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84463         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84464         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84465         * lib/getcwd.c: New files.
84466
84467         * lib/dirname.h: Include <stdbool.h>.
84468         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84469         for consistency with POSIX terminology.  All uses changed.
84470         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84471         (strip_trailing_slashes): Use bool for booleans.
84472         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84473
84474         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84475         sometimes returns a positive errno value even when it succeeds.
84476         (print_errno_message) [!LIBC]: Fall back on strerror if
84477         __strerror_r fails.
84478
84479         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84480         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84481         (longest_relative_suffix): New function.
84482         (path_concat): Use it.  Assume first argument is not NULL.
84483         Port to DOS.  Omit redundant separators.
84484         Report an error instead of returning NULL.
84485         Use mempcpy instead of memcpy.
84486         (xpath_concat): Remove: not declared or used.
84487
84488         * lib/same.h: Include <stdbool.h>
84489         (same_name): Return bool, not int.
84490         * lib/same.c (same_name): Likewise.
84491         (errno): Don't declare; we assume C89 or better now.
84492
84493         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84494         if not already defined.
84495
84496         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84497         * lib/dup-safer.c (errno): Likewise.
84498
84499 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84500
84501         Merge from coreutils.
84502         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84503         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84504         * modules/path-concat: Don't depend on strdup.
84505
84506 2004-08-03  Simon Josefsson  <jas@extundo.com>
84507
84508         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84509         * lib/progname.h: Don't include stdbool.h.
84510
84511 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84512
84513         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84514         * MODULES.html.sh (func_all_modules): Remove fatal.
84515
84516 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84517
84518         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84519
84520 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84523         working.
84524
84525 2004-08-02  Simon Josefsson  <jas@extundo.com>
84526
84527         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84528         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84529         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84530
84531 2004-08-01  Simon Josefsson  <jas@extundo.com>
84532
84533         * lib/xgetdomainname.c: Include stdlib.h, for free().
84534
84535 2004-07-19  Bruno Haible  <bruno@clisp.org>
84536
84537         * MODULES.html.sh (func_all_modules): Add dummy.
84538
84539 2004-07-16  Simon Josefsson  <jas@extundo.com>
84540
84541         * modules/dummy: New file.
84542
84543 2004-07-16  Simon Josefsson  <jas@extundo.com>
84544
84545         * lib/dummy.c: New file.
84546
84547 2004-07-16  Bruno Haible  <bruno@clisp.org>
84548
84549         * lib/backupfile.h: Add extern "C" for C++.
84550         * lib/closeout.h: Likewise.
84551         * lib/copy-file.h: Likewise.
84552         * lib/findprog.h: Likewise.
84553         * lib/full-write.h: Likewise.
84554         * lib/pathname.h: Likewise.
84555         * lib/progname.h: Likewise.
84556         * lib/stpcpy.h: Likewise.
84557         * lib/stpncpy.h: Likewise.
84558         * lib/strcase.h: Likewise.
84559         * lib/strstr.h: Likewise.
84560         * lib/xalloc.h: Likewise.
84561
84562         * lib/mbswidth.h: Add extern "C" for C++.
84563         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84564
84565 2004-07-13  Robert Millan  <robertmh@gnu.org>
84566
84567         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84568
84569 2004-07-09  Simon Josefsson  <jas@extundo.com>
84570
84571         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84572         failed without this.)
84573
84574 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84575
84576         * modules/chown (Files): Add lib/fchown-stub.c, since
84577         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84578
84579 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84580
84581         * lib/fchown-stub.c: New file.
84582
84583 2004-06-24  Jim Meyering  <jim@meyering.net>
84584
84585         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84586
84587 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84588
84589         * modules/argz: Omit "#include".
84590
84591         * MODULES.html.sh (func_all_modules): Add calloc, to match
84592         2004-06-01 addition of calloc module.
84593
84594 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         * m4/argz.m4: New file, which is autoupdated from libtool.
84597
84598 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84599
84600         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84601         libtool.
84602
84603 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84604
84605         * config/srclist-update: Don't insist on "USA." before the
84606         close-comment, as libtool omits the period and puts the */ on a
84607         separate line.
84608         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84609         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84610
84611 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84612
84613         * modules/argz: New file.
84614         * MODULES.html.sh (func_all_modules): Add argz.
84615
84616 2004-06-12  Jim Meyering  <jim@meyering.net>
84617         and  Paul Eggert  <eggert@cs.ucla.edu>
84618
84619         * modules/hash (Files): Add lib/xalloc.h.
84620         * modules/pipe (Depends-on): Add wait-process.
84621         * modules/stat (Depends-on): Add xalloc.
84622         * modules/userspec (Files): Add lib/userspec.h.
84623         * modules/xstrto
84624
84625         Upgrade from gettext-0.13.
84626         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84627         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84628         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84629
84630 2004-06-10  Jim Meyering  <jim@meyering.net>
84631
84632         * lib/calloc.c: New file.
84633
84634 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84635
84636         * lib/getdate.y (yylex): Allow space between sign and number.
84637         Problem reported by Dan Jacobson.
84638
84639 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84640
84641         Merge from coreutils CVS.
84642
84643         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84644         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84645         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84646         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84647         xstrtol.m4: Fix copyright date and/or serial number.
84648
84649         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84650         See if we need an fchown replacement.
84651         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84652         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84653         and use the replacement function if we detect either defect.
84654
84655         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84656         gl_UTIMECMP.
84657
84658 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84659         and  Jim Meyering  <jim@meyering.net>
84660
84661         Merge from coreutils CVS.
84662
84663         * lib/stat-macros.h: New file, with contents from file-type.h
84664         and coreutils' system.h.
84665         * lib/file-type.c: Include "stat-macros.h".
84666         * lib/file-type.h (file_type): Move all macro definitions to new file,
84667         stat-macros.h.
84668
84669         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84670         Wrap old code with this conditional.
84671         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84672         function that does not dereference symlinks.
84673         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84674
84675         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84676         dependency problems.
84677         (xreadlink): Accept new arg SIZE, for efficiency.
84678         All decls and uses changed.
84679         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84680
84681         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84682         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84683
84684         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84685         sysexits.h.
84686
84687 2004-06-01  Jim Meyering  <jim@meyering.net>
84688
84689         * m4/calloc.m4: New file.
84690
84691 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84692
84693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84694         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84695         Also, fix a typo in a diagnostic.
84696
84697 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84698
84699         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84700         or AC_FUNC_REALLOC.
84701
84702 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84703
84704         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84705         macros to be defined.
84706         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84707         the allocator returns NULL because the requested size is zero.
84708
84709 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84710
84711         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84712         var.  Add comment explaining why libc still defines it.  This
84713         merges the following patch from glibc:
84714         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84715
84716 2004-05-20  Andreas Schwab  <schwab@suse.de>
84717
84718         * m4/free.m4: Replace free if it not known to work, not the other
84719         way round.
84720
84721 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84724         present in glibc since revision 1.1 of this file.
84725         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84726         obstack_alignment_mask, obstack_alloc, obstack_base,
84727         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84728         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84729         obstack_grow0, obstack_init, obstack_int_grow,
84730         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84731         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84732         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84733         nonexistent functions.
84734
84735 2004-05-18  Karl Berry  <karl@gnu.org>
84736
84737         * config/srclist.txt: break link for vasnprintf.c.
84738
84739 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84740
84741         Port obstack to the AS/400, where pointers are 16 bytes wide and
84742         you cannot cast an integer to a valid pointer.  This patch is
84743         currently waiting to be integrated into glibc; see
84744         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84745
84746         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84747         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84748         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84749         (struct obstack): temp member is now a union of a pointer and
84750         an integer, instead of an integer.  All integer uses changed.
84751         This does not affect the physical layout of struct obstack,
84752         except on hosts (like the AS/400) where the size or alignment of
84753         void * is greater than that of ptrdiff_t.
84754         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84755         __STDC__)]: Store temporary in pointer member of union, not
84756         integer member.
84757         * lib/obstack.c: Include <stddef.h>, for offsetof.
84758         (struct fooalign): Remove; it doesn't need a name.
84759         (union fooround): Change double to long double, and add void *.
84760         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84761         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84762         not a macro.  Hence the values are always int; so remove all
84763         casts-to-int in uses.
84764
84765 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84766
84767         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84768         we can get this patch merged into glibc.
84769
84770 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84771             Paul Eggert  <eggert@cs.ucla.edu>
84772
84773         * m4/argp: Depend on alloca.
84774
84775 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84776             Paul Eggert  <eggert@cs.ucla.edu>
84777
84778         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84779         freecoding.
84780
84781 2004-05-17  Bruno Haible  <bruno@clisp.org>
84782
84783         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84784         precision that consists of a '.' followed by an empty digit string.
84785         Patch by Tor Lillqvist <tml@iki.fi>.
84786
84787 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84788
84789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84790         for backward compatibility with older code.  We need our own
84791         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84792         it under some other name, and our alloca.h will define it.
84793
84794 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84795             Derek Price  <derek@ximbiot.com>
84796
84797         * lib/alloca.c: Include <alloca.h>, to get our interface.
84798         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84799         include <alloca.h> first.  Use C89 prototype for alloca; this
84800         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84801         Use #elif for simplicity, since we can assume C89 now.
84802         Don't try to source the system alloca.h since it will not be found
84803         and to prevent recursively including its replacement.
84804         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84805         * lib/regex.c: Likewise.
84806
84807 2004-05-16  Derek Price  <derek@ximbiot.com>
84808             Paul Eggert  <eggert@cs.ucla.edu>
84809
84810         getline cleanup.  This changes the getndelim2 API: both order of
84811         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84812         no delimiter).
84813
84814         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84815         interface does that.
84816         (getline): Always use getdelim, so that we don't have two
84817         copies of this code.
84818         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84819         if available.
84820         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84821         (GETNDELIM2_MAXIMUM): New macro.
84822         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84823         instead of the old practice of delim2==0.  All callers changed.
84824         Return -1 on overflow, instead of returning junk.
84825         Do not set *linesize unless allocation succeeds.
84826         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84827         that we include sys/types.h.
84828         * lib/getnline.h: Likewise.
84829         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84830         (getndelim2): Reorder arguments.
84831         * lib/getnline.c (getnline, getndelim):
84832         Don't discard the NMAX argument.
84833         (getnline): Invoke getndelim, to avoid code duplication.
84834         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84835         of (size_t) -1 by callers of the getnline family.
84836
84837 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84838
84839         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84840         Check for gettimeofday.
84841         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
84842         Check for settimeofday, stime.
84843
84844 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84845
84846         * lib/nanosleep.c (suspended): Change its type from int to
84847         sig_atomic_t volatile.
84848         (first_call): Make it private to rpl_nanosleep, and have it
84849         be zero initially as that's a bit faster.
84850         (my_usleep): Round up fractional times instead of truncating them,
84851         as this is the usual meaning for 'sleep'.
84852
84853         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
84854         doesn't work.
84855         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
84856         (ENOSYS): Define if not defined.
84857         (settime): Fall back on stime if it exists and settimeofday fails.
84858         But don't bother with fallbacks if a method fails with errno == EPERM.
84859
84860 2004-05-11  Jim Meyering  <jim@meyering.net>
84861
84862         Prior to this change, the save_cwd caller required read access to the
84863         current directory on most systems (ones with the fchdir function).
84864
84865         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
84866         fails, try write-only, and finally, resort to using xgetcwd.
84867
84868 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * lib/obstack.c, obstack.h: Import changes from libc.
84871
84872 2004-04-28  Bruno Haible  <bruno@clisp.org>
84873
84874         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
84875         also implicitly appends .exe to executables.
84876         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
84877         accepts Windows pathnames.
84878         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84879         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84880         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84881         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84882         Reported by Derek Robert Price <derek@ximbiot.com>.
84883
84884 2004-04-21  Karl Berry  <karl@gnu.org>
84885
84886         * config/srclist.txt (localcharset.c): break sync.
84887
84888 2004-04-20  Paul Eggert  <eggert@twinsun.com>
84889
84890         * m4/host-os.m4: Add a copyright notice.
84891
84892 2004-04-20  Jim Meyering  <jim@meyering.net>
84893
84894         Change UTILS_ to gl_ in AC_DEFINE'd names.
84895         Change utils_- and jm_-prefixed variables, too.
84896         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
84897         UTILS_FUNC_MKDIR_TRAILING_SLASH.
84898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
84899
84900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
84901         Don't emit trailing blanks.
84902         Also rename jm_-prefixed variables to have gl_ prefix.
84903
84904         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
84905         Also rename jm_-prefixed variables to have gl_ prefix.
84906
84907         * m4/jm-macros.m4: Reflect the renamings.
84908         * m4/prereq.m4: Likewise.
84909
84910 2004-04-20  Jim Meyering  <jim@meyering.net>
84911
84912         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
84913         memory.
84914
84915 2004-04-20  Jim Meyering  <jim@meyering.net>
84916             Bruno Haible  <bruno@clisp.org>
84917
84918         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
84919         memory when realloc fails.
84920
84921 2004-04-19  Jim Meyering  <jim@meyering.net>
84922
84923         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
84924         now that readutmp.c may call `free (0)'.
84925
84926 2004-04-19  Bruno Haible  <bruno@clisp.org>
84927
84928         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
84929         * m4/inttypes_h.m4: Likewise.
84930         * m4/stdint_h.m4: Likewise.
84931         * m4/intmax_t.m4: Likewise.
84932         * m4/uintmax_t.m4: Likewise.
84933
84934 2004-04-18  Jim Meyering  <jim@meyering.net>
84935
84936         * m4/prereq.m4: Don't forbid jm_ prefix.
84937
84938         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
84939         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
84940         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
84941         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
84942         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
84943         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
84944         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
84945         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
84946         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
84947         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
84948         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
84949         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
84950         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
84951         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
84952         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
84953         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
84954         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
84955         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
84956         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
84957
84958 2004-04-18  Jim Meyering  <jim@meyering.net>
84959
84960         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
84961         failure, don't leak memory and do call END_UTMP_ENT.
84962
84963 2004-04-16  Jim Meyering  <jim@meyering.net>
84964
84965         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
84966         coreutils' stat program.
84967         (gl_PREREQ): Don't require jm_PREREQ_STAT.
84968
84969 2004-04-11  Paul Eggert  <eggert@twinsun.com>
84970
84971         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
84972         C89.
84973         (CHAR_BIT): Remove, since we assume C89.
84974         Include <stdint.h> if available, as per current Autoconf CVS advice.
84975
84976 2004-03-31  Jim Meyering  <jim@meyering.net>
84977
84978         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
84979         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
84980         * m4/xalloc.m4: Likewise.
84981
84982 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84983
84984         Merge from coreutils.
84985
84986         * m4/inttostr.m4: New file.
84987         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
84988         Require AM_STDBOOL_H and gl_TIMESPEC instead.
84989         Require gl_CLOCK_TIME.
84990         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
84991
84992 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84993
84994         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
84995         not bool, to be more consistent with Unix conventions.
84996         Suggested by Bruno Haible.
84997
84998         Merge from coreutils.
84999
85000         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85001         * lib/umaxtostr.c: New files.
85002
85003         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85004         the usual <time.h> dance.
85005         (get_date): Change signature to support fractional time stamps.
85006         All callers changed.
85007         * lib/getdate.y: Include "getdate.h" first, as we can now
85008         assume C89 and don't need to worry about 'const'.
85009         Similarly, include "unlocked-io.h" near start, not in middle.
85010         Include <limits.h>.
85011         (textint.value): Use long int rather than int.
85012         (textint.digits): Use size_t rather than int.
85013         (BILLION, LOG10_BILLION): New constants.
85014         (parser_control): New member rel_ns.  Members day_ordinal,
85015         time_zone, month, day, hour, minutes, rel_year, rel_month,
85016         rel_day, rel_hour, rel_minutes, rel_seconds
85017         are now long int, not int.  Member seconds is now struct timespec,
85018         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85019         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85020         not int.
85021         (%union.intval): Now long int, not int.
85022         New member timespec.
85023         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85024         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85025         (spec): Now is a timespec or an item list.
85026         (timespec, items): New nonterminals.
85027         (time, rel, relunit, number, get_date):
85028         Add support for fractional seconds.
85029         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85030         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85031         (to_hour): First arg is now long int, not int.
85032         (to_year): Returns long int, not int.
85033         Don't treat year -70 like 70.
85034         (tm_diff): Returns long int, not int.
85035         (lookup_word): Use bool instead of int when appropriate.
85036         (yylex): Use size_t for count, not int.
85037         Detect overflow when parsing large integer constants.
85038         Add support for fractions.
85039         (get_date): Make pointers 'const' if possible.
85040         Use more-portable code to detect integer overflow.
85041         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85042         Don't use ctime; it's not reliable if the year has >4 digits.
85043
85044         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85045         This is for compatibility with BSD.
85046
85047         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85048         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85049         From coreutils' system.h.
85050
85051         * lib/userspec.c: Don't include "posixver.h".
85052         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85053         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85054         compatible extension.  Simplify code by removing a boolean int
85055         that was always nonzero if a string was nonnull.
85056
85057 2004-03-30  Jim Meyering  <jim@meyering.net>
85058
85059         Merge from coreutils.
85060
85061         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85062         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85063         on some systems one must include <grp.h> before it.
85064         Reported by Christian Krackowizer.
85065
85066 2004-03-30  Jim Meyering  <jim@meyering.net>
85067
85068         Merge from coreutils.
85069
85070         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85071
85072         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85073         an empty input stream.
85074
85075         * lib/readtokens.c: Include <stdbool.h>.
85076         (readtoken): Use `size_t' rather than int/long.
85077         All callers adjusted.
85078         Use `bool' rather than `int' where appropriate.
85079         Use memset rather than an explicit loop.
85080         Use x2nrealloc rather than xrealloc.
85081         Allow the use of `\0' as a delimiter.
85082         (readtokens): Likewise.
85083         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85084
85085 2004-03-30  Jim Meyering  <jim@meyering.net>
85086
85087         * m4/realloc.m4: Remove file, since now it does no more than
85088         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85089         the `configure.ac' section of module/realloc.
85090         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85091
85092 2004-03-30  Bruno Haible  <bruno@clisp.org>
85093
85094         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85095         nonnull.
85096
85097 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85098
85099         Merge changes to getloadavg.c from coreutils and Emacs.
85100
85101         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85102         Define to an expression, not to the empty string.
85103         Include cloexec.h and xalloc.h.
85104         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85105         Use set_cloexec_flag rather than rolling our own.
85106         * lib/cloexec.c, lib/cloexec.h: New files.
85107
85108 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85109
85110         * m4/cloexec.m4: New file.
85111
85112 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85113
85114         * lib/getopt.h: Sync with libc CVS.
85115
85116 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85117             Bruno Haible  <bruno@clisp.org>
85118
85119         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85120         mbswidth.
85121
85122 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85123             Bruno Haible  <bruno@clisp.org>
85124
85125         * lib/mbswidth.h: Include <wchar.h> only if
85126         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85127         <wchar.h>.
85128         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85129
85130 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85131
85132         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85133         Sync with libc CVS.
85134         * lib/getopt_int.h: New file, also synced from libc.
85135
85136 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85137
85138         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85139         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85140         Bring back getopt.c, getopt.h, getopt1.c.
85141
85142 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85143
85144         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85145         All uses changed.  Check for sa_sigaction member; this fixes
85146         a bug first reported by Jason Andrade in
85147         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85148
85149 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85150
85151         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85152         '#if' expressions.  Unlike the code it replaces, it does not
85153         depend on (defined _SC_PAGESIZE).  However, it does depend on
85154         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85155         first reported by Jason Andrade in
85156         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85157
85158 2004-02-25  Simon Josefsson  <jas@extundo.com>
85159
85160         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85161
85162 2004-02-25  Simon Josefsson  <jas@extundo.com>
85163
85164         * lib/strdup.h: New file.
85165         * lib/strdup.c: Include it.
85166         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85167         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85168
85169 2004-02-23  Karl Berry  <karl@gnu.org>
85170
85171         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85172         (from fencepost.gnu.org:/gd/gnuorg).
85173
85174 2004-02-23  Karl Berry  <karl@gnu.org>
85175
85176         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85177         * config/srclist.txt: add maintain/standards documents.
85178
85179 2004-02-18  Bruno Haible  <bruno@clisp.org>
85180
85181         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85182         Reported by Derek Robert Price <derek@ximbiot.com>.
85183
85184 2004-02-16  Karl Berry  <karl@gnu.org>
85185
85186         * config/mkinstalldirs, install-sh: update from automake.
85187
85188 2004-02-06  Karl Berry  <karl@gnu.org>
85189
85190         * m4/po.m4: update from gettext 0.14.1.
85191
85192 2004-02-06  Karl Berry  <karl@gnu.org>
85193
85194         * lib/config.charset: update from gettext 0.14.1.
85195
85196 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85197
85198         Add comments and code, prompted by suggestions from Bruno Haible
85199         for sh-quote.
85200         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85201         describing the enum quoting_style values.
85202         * lib/quotearg.c (quotearg_alloc): New function.
85203         (quotearg_buffer_restyled): Treat lone { and } as special.
85204         Treat = as special.  Work around bug with older shells
85205         that "see" a '\' that is really the 2nd byte of a multibyte char.
85206         Quote empty string with shell_quoting_style.
85207
85208 2004-02-03  Bruno Haible  <bruno@clisp.org>
85209
85210         * m4/pipe.m4: New file, from GNU gettext.
85211
85212 2004-02-03  Bruno Haible  <bruno@clisp.org>
85213
85214         * lib/pipe.h: New file, from GNU gettext.
85215         * lib/pipe.c: New file, from GNU gettext.
85216
85217 2004-01-27  Bruno Haible  <bruno@clisp.org>
85218
85219         * m4/execute.m4: New file, from GNU gettext.
85220
85221 2004-01-27  Bruno Haible  <bruno@clisp.org>
85222
85223         * lib/execute.h: New file, from GNU gettext.
85224         * lib/execute.c: New file, from GNU gettext.
85225         * lib/w32spawn.h: New file, from GNU gettext.
85226
85227 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85228
85229         Merge from diffutils.
85230
85231         * lib/file-type.c (file_type): Add typed memory objects.
85232         * lib/file-type.h (S_TYPEISTMO): New macro.
85233
85234         * lib/c-stack.h (c_stack_action): Remove argv argument.
85235         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85236         (die): Don't calculate message unless segv_action returns.
85237         (get_stack_location, min_address_from_argv, max_address_from_argv,
85238         volatile stack_base, volatile_stack_size): Remove.
85239         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85240         that every segmentation violation is a stack overflow.  (Ouch!)
85241         See Debian bug 136249 (still outstanding) for more info about why
85242         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85243
85244 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85245
85246         Exit-status fix from coreutils.
85247
85248         Use exit_failure consistently in place of EXIT_FAILURE,
85249         so that program exit statuses are consistent on failure.
85250
85251         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85252         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85253         * lib/argmatch.h: Comment fix to match the above.
85254         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85255         Now a macro referring to exit_failure, instead of a separate
85256         variable.  Include "exitfail.h" to get it.
85257         * lib/xstrtol.h: Include "exitfail.h".
85258         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85259
85260         * lib/long-options.c (parse_long_options): Use prototype
85261         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85262         for clarity.
85263
85264 2004-01-21  Jim Meyering  <jim@meyering.net>
85265
85266         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85267         so as not to conflict with a different-sized __mktime_internal
85268         function in GNU libc.
85269         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85270         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85271
85272 2004-01-20  Karl Berry  <karl@gnu.org>
85273
85274         * config/config.guess: update from config.
85275
85276         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85277
85278 2004-01-20  Bruno Haible  <bruno@clisp.org>
85279
85280         Safer stack allocation.
85281         * lib/setenv.c: Include allocsa.h.
85282         (alloca): Remove fallback definition.
85283         (freea): Remove macro.
85284         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85285         instead of freea.
85286
85287 2004-01-20  Bruno Haible  <bruno@clisp.org>
85288
85289         * m4/eealloc.m4: New file, from GNU gettext.
85290
85291 2004-01-20  Bruno Haible  <bruno@clisp.org>
85292
85293         * m4/allocsa.m4: New file, from GNU gettext.
85294
85295 2004-01-20  Bruno Haible  <bruno@clisp.org>
85296
85297         * lib/xallocsa.h: New file, from GNU gettext.
85298         * lib/xallocsa.c: New file, from GNU gettext.
85299
85300 2004-01-20  Bruno Haible  <bruno@clisp.org>
85301
85302         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85303
85304 2004-01-20  Bruno Haible  <bruno@clisp.org>
85305
85306         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85307         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85308         specially.
85309
85310 2004-01-20  Bruno Haible  <bruno@clisp.org>
85311
85312         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85313         patch.
85314
85315 2004-01-20  Bruno Haible  <bruno@clisp.org>
85316
85317         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85318
85319 2004-01-20  Bruno Haible  <bruno@clisp.org>
85320
85321         * lib/eealloc.h: New file.
85322
85323 2004-01-20  Bruno Haible  <bruno@clisp.org>
85324
85325         * lib/binary-io.h: Avoid warnings on Cygwin.
85326
85327 2004-01-20  Bruno Haible  <bruno@clisp.org>
85328
85329         * lib/allocsa.h: New file, from GNU gettext.
85330         * lib/allocsa.c: New file, from GNU gettext.
85331
85332 2004-01-18  Karl Berry  <karl@gnu.org>
85333
85334         * doc/gpl.texi, doc/lgpl.texi: new files.
85335
85336 2004-01-18  Karl Berry  <karl@gnu.org>
85337
85338         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85339         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85340
85341 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85342
85343         Merge from coreutils.
85344
85345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85346         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85347         (gl_DEFAULT_POSIX2_VERSION): Move
85348         the documentation from 'configure' into 'config.hin',
85349         so that 'configure --help' isn't burdened by it and
85350         we don't have to worry about its formatting there.
85351         Reword the documentation so that it's more succinct
85352         and can be run together into a single paragraph.
85353         * m4/same.m4 (gl_SAME): Check for pathconf.
85354
85355 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85356
85357         Merge from coreutils.
85358
85359         * lib/posixver.c: Include posixver.h.
85360
85361         * lib/same.c: Include <stdbool.h>, <limits.h>.
85362         (_POSIX_NAME_MAX): Define if not defined.
85363         (MIN): New macro.
85364         (same_name): If file names are silently truncated, report
85365         that the file names are the same if they are the same after
85366         the silent truncation.
85367
85368         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85369         conversion function.
85370         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85371         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85372         longer needed.
85373
85374 2004-01-15  Jim Meyering  <jim@meyering.net>
85375
85376         Merge from coreutils.
85377
85378         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85379         if no library is required.
85380         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85381         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85382         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85383         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85384         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85385         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85386         value, $ac_cv_search_crypt, if it's "none required".
85387         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85388         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85389         not gl_FUNC_GETLOADAVG.
85390         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85391         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85392
85393 2004-01-15  Jim Meyering  <jim@meyering.net>
85394
85395         Merge from coreutils.
85396
85397         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85398         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85399         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85400
85401         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85402         optional configure-time default.
85403
85404         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85405
85406         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85407
85408 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85409
85410         Merge from coreutils.
85411
85412         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85413         value, $ac_cv_search_nanosleep, if it's "none required".
85414
85415 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85416
85417         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85418         with like-named macro in fnmatch.c.
85419         (EXT): Use an internal constant instead.
85420
85421         Merge fnmatch patches from glibc.
85422         * lib/fnmatch.c (mbsinit): Remove define.
85423         Add libc_hidden_ver (__fnmatch, fnmatch).
85424         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85425         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85426
85427 2004-01-14  Karl Berry  <karl@gnu.org>
85428
85429         * config/install-sh: update from automake.
85430
85431 2004-01-13  Karl Berry  <karl@gnu.org>
85432
85433         * config/install-sh: update from automake.
85434
85435 2004-01-09  Karl Berry  <karl@gnu.org>
85436
85437         * config/install-sh: update from automake.
85438
85439 2004-01-05  Karl Berry  <karl@gnu.org>
85440
85441         * config/config.{sub,guess}: update from config.
85442
85443 2003-12-31  Karl Berry  <karl@gnu.org>
85444
85445         * config/depcomp: update from automake.
85446
85447 2003-12-14  Karl Berry  <karl@gnu.org>
85448
85449         * lib/config.charset: update from gettext-runtime.
85450
85451 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85452
85453         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85454         Bug reported by Alfred M. Szmidt.
85455
85456 2003-12-03  Bruno Haible  <bruno@clisp.org>
85457
85458         * m4/gettext.m4: Upgrade from gettext-0.13.
85459         * m4/po.m4: Upgrade from gettext-0.13.
85460         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85461         * m4/intmax.m4: New file, from gettext-0.13.
85462         * m4/printf-posix.m4: New file, from gettext-0.13.
85463
85464 2003-11-29  Karl Berry  <karl@gnu.org>
85465
85466         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85467
85468 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85469             Bruno Haible  <bruno@clisp.org>
85470
85471         * lib/printf-parse.h: Don't include sys/types.h.
85472         (ARG_NONE): New macro.
85473         (char_directive): Change type of *arg_index fields to size_t.
85474         * lib/printf-parse.c: Don't include sys/types.h.
85475         (SSIZE_MAX): Remove macro.
85476         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85477         Remove unnecessary overflow check.
85478         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85479         fields.
85480
85481 2003-11-25  Bruno Haible  <bruno@clisp.org>
85482
85483         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85484
85485 2003-11-25  Bruno Haible  <bruno@clisp.org>
85486
85487         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85488         gt_TYPE_SSIZE_T.
85489
85490 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85491
85492         * modules/alloca: Remove dependency on xalloc.
85493
85494 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85495
85496         * lib/alloca.c: Remove dependency on xalloc module.
85497         (xalloc_die): Remove.
85498         (memory_full) [!defined emacs]: New macro.
85499         [!defined emacs]: Don't include xalloc.h.
85500         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85501         address arithmetic overflows.  Change datatypes a bit to avoid
85502         unnecessary casts.
85503
85504 2003-11-22  Jim Meyering  <jim@meyering.net>
85505
85506         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85507         s/size/size_t/.
85508
85509 2003-11-21  Karl Berry  <karl@gnu.org>
85510
85511         * config/config.{sub,guess}: update from config.
85512
85513 2003-11-18  Karl Berry  <karl@gnu.org>
85514
85515         * config/config.{sub,guess}: update from config.
85516
85517         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85518
85519 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85520
85521         * README: Mention that S+T cannot overflow if S is the size of
85522         an existing object and T is sufficiently small.
85523
85524 2003-11-17  Jim Meyering  <jim@meyering.net>
85525
85526         On systems without utime and without a utimes function capable of
85527         dealing with a NULL struct utimbuf* argument, this utime replacement
85528         could -- in unusual circumstances -- leak a file descriptor.
85529         * lib/utime.c: Include <unistd.h> and <errno.h>.
85530         (utime_null): Be sure to close `fd' and to preserve errno.
85531         Reported by Geoff Collyer via Arnold Robbins.
85532
85533 2003-11-17  Bruno Haible  <bruno@clisp.org>
85534
85535         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85536         (Depends-on): Add xsize.
85537
85538 2003-11-17  Bruno Haible  <bruno@clisp.org>
85539
85540         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85541
85542 2003-11-17  Bruno Haible  <bruno@clisp.org>
85543
85544         * lib/vasnprintf.c (alloca): Remove fallback definition.
85545         (freea): Remove definition.
85546         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85547         Reported by Paul Eggert.
85548
85549 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85550             Bruno Haible  <bruno@clisp.org>
85551
85552         Protect against address arithmetic overflow.
85553         * lib/printf-args.h: Include stddef.h.
85554         (arguments): Change type of field 'count' to size_t.
85555         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85556         'unsigned int' where appropriate.
85557         * lib/printf-parse.h: Include sys/types.h.
85558         (char_directive): Change type of *arg_index fields to ssize_t.
85559         (char_directives): Change type of fields 'count', max_*_length to
85560         size_t.
85561         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85562         (SSIZE_MAX): Define fallback value.
85563         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85564         instead of 'int' where appropriate. Check a_allocated, d_allocated
85565         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85566         * lib/vasnprintf.c: Include xsize.h.
85567         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85568         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85569         overflow. Avoid wraparound when converting a width or precision from
85570         decimal to binary.
85571
85572 2003-11-16  Bruno Haible  <bruno@clisp.org>
85573
85574         Update from GNU gettext.
85575         * lib/printf-parse.c: Generalize to it can be compiled for wide
85576         strings.
85577         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85578         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85579         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85580         SNPRINTF): New macros.
85581         Don't include <alloca.h> if the file is used inside libintl.
85582         (local_wcslen): New function, for Solaris 2.5.1.
85583         (VASNPRINTF): Use it instead of wcslen.
85584
85585 2003-11-16  Bruno Haible  <bruno@clisp.org>
85586
85587         * lib/xsize.h (xmax): New function.
85588         (xsum, xsum3, xsum4): Declare as "pure" functions.
85589
85590 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85591
85592         * modules/xalloc (Files): Undo latest change, since xalloc.h
85593         no longer needs SIZE_MAX or PTRDIFF_MAX.
85594
85595 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85596
85597         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85598         gl_PTRDIFF_MAX.
85599
85600 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85601
85602         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85603         "return", to pacify some unknown compiler.  Problem reported
85604         by Joerg Schilling.
85605
85606 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85607
85608         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85609         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85610         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85611         heuristic is just as accurate as far as we know, and it removes a
85612         dependency on size_max.m4 and ptrdiff_max.m4.
85613
85614 2003-11-11  Bruno Haible  <bruno@clisp.org>
85615
85616         * modules/xsize (Files): Add m4/size_max.m4.
85617         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85618
85619 2003-11-11  Bruno Haible  <bruno@clisp.org>
85620
85621         * m4/size_max.m4: New file.
85622         * m4/ptrdiff_max.m4: New file.
85623         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85624         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85625         (gl_XALLOC): Invoke it.
85626
85627 2003-11-11  Bruno Haible  <bruno@clisp.org>
85628
85629         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85630         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85631         defined.
85632
85633 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85634
85635         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85636         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85637         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85638         From Bruno Haible.
85639         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85640         not (size_t) -1, since it's defined here.
85641
85642 2003-11-09  Karl Berry  <karl@gnu.org>
85643
85644         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85645
85646 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85647
85648         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85649         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85650         Reject sizes of exactly SIZE_MAX bytes.
85651         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85652         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85653
85654 2003-11-05  Bruno Haible  <bruno@clisp.org>
85655
85656         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85657         SIZE_MAX defined in <limits.h> on Solaris.
85658
85659 2003-11-04  Jim Meyering  <jim@meyering.net>
85660
85661         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85662         variable names, rather than @VAR@.
85663         * modules/poll: Likewise.
85664
85665 2003-11-04  Bruno Haible  <bruno@clisp.org>
85666
85667         * modules/xsize: New file.
85668         * modules/linebreak: Depend on xsize.
85669         * MODULES.html.sh (func_all_modules): Add xsize.
85670
85671 2003-11-04  Bruno Haible  <bruno@clisp.org>
85672
85673         * m4/xsize.m4: New file.
85674
85675 2003-11-04  Bruno Haible  <bruno@clisp.org>
85676
85677         * lib/xsize.h: New file.
85678         * lib/linebreak.c: Include xsize.h.
85679         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85680         argument for overflow.
85681         Suggested by Paul Eggert.
85682
85683 2003-11-03  Karl Berry  <karl@gnu.org>
85684
85685         * config/config.{guess,sub}: update from config.
85686
85687 2003-11-03  Jim Meyering  <jim@meyering.net>
85688
85689         * modules/userspec (lib_SOURCES): Add userspec.h.
85690         (Include): Add "userspec.h".
85691         Improve description.
85692
85693 2003-11-03  Jim Meyering  <jim@meyering.net>
85694
85695         * lib/userspec.c: Include "userspec.h".
85696         * lib/userspec.h: New file.
85697
85698 2003-11-03  Bruno Haible  <bruno@clisp.org>
85699
85700         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85701
85702 2003-11-03  Bruno Haible  <bruno@clisp.org>
85703
85704         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85705         available, to avoid (extremely rare) race condition.
85706         Suggested by Paul Eggert.
85707
85708 2003-11-02  Karl Berry  <karl@gnu.org>
85709
85710         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85711
85712 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85713
85714         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85715         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85716         (read_filesystem_list): Set and use me_type_malloced.
85717         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85718         whatever the type happens to be), for brevity and consistency.
85719         Check for size calculation overflow on Alphas running OSF/1.
85720
85721 2003-10-31  Jim Meyering  <jim@meyering.net>
85722
85723         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85724
85725         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85726
85727 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85728             Bruno Haible  <bruno@clisp.org>
85729
85730         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85731         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85732
85733 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85734
85735         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85736         netbsd*-gnu*.  Suggested by Robert Millan.
85737
85738 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85739
85740         * modules/group-member: Depend on stdbool.
85741
85742 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85743
85744         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85745
85746 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85747
85748         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85749         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85750         after the 'gnu' in these cases.  This fixes some bugs in the
85751         previous change, and is based on suggestions by Robert Millan.
85752
85753 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85754
85755         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85756         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85757         no longer needed.
85758         * lib/quotearg.c (quotearg_n_options): Use it.
85759         * lib/group-member.c: Include <stdbool.h>.
85760         (free_group_info): Arg is now const *; don't free arg.
85761         (get_group_info): Now returns bool and accepts struct group_info *,
85762         rather than returning a malloc'ed struct group_info *.
85763         All uses changed.  Check for overflow in internal size calculation.
85764
85765         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85766         rather than xmalloc/xrealloc.
85767         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85768         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85769         conformance bug: the old code used a pointer after freeing the
85770         storage that it addressed.
85771         * lib/hash.c (hash_initialize): Simplify the code by using
85772         xalloc_oversized rather than doing it by hand.
85773         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85774         the buffer preserved.  Use free and xmalloc instead.
85775         * lib/quotearg.c (quotearg_n_options): Likewise.
85776         Use a simpler test for size overflow.  Don't use xalloc_oversized
85777         because unsigned int might be wider than size_t (!); this suggests
85778         that we should switch from unsigned int to size_t for slot numbers.
85779
85780 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85781
85782         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85783         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85784         NetBSD kernels.  Requested by Richard Stallman.
85785
85786 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85787
85788         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85789         to allocate the returned structure.  Do not allocate a subarray,
85790         as x2nrealloc will do that.
85791         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85792         instead of xnrealloc.
85793         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85794
85795 2003-10-27  Bruno Haible  <bruno@clisp.org>
85796
85797         * lib/stdbool_.h: Better support for BeOS.
85798
85799 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85800
85801         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85802         now uses inline.
85803
85804 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85805
85806         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85807         callers that want to do their own size-overflow checking.  Include
85808         <stdbool.h>, since xalloc_oversized returns bool.
85809         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85810         to use xalloc_oversized.
85811
85812         Add two functions x2realloc, x2nrealloc, for programs that grow
85813         arrays dynamically by doubling their sizes.
85814         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85815         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85816         New functions.
85817
85818         Port to C99 semantics for 'inline' of external functions.
85819         Bug reported by Bruno Haible.
85820         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85821         with the old contents of xnmalloc.
85822         (xnmalloc, xmalloc): Use it.
85823         (xnrealloc_inline): New static inline function,
85824         with the old contents of xnrealloc.
85825         (xnrealloc, xrealloc): Use it.
85826
85827         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85828         that.
85829
85830 2003-10-26  Karl Berry  <karl@gnu.org>
85831
85832         * config/srclist.txt (COPYING.DOC): no longer available from
85833         /gd/gnuorg; don't know where the ultimate source is.
85834
85835 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85836
85837         Fix several address-calculation bugs in the hash modules,
85838         plus some minor code cleanup.
85839
85840         * lib/hash.h: Include <stdbool.h>, for bool.
85841         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
85842         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
85843         hash_get_n_entries, hash_get_max_bucket_length,
85844         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
85845         hash_rehash): Use size_t rather than unsigned.
85846         * lib/hash.c (struct hash_table, hash_get_n_buckets,
85847         hash_get_n_buckets_used, hash_get_n_entries,
85848         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
85849         hash_get_entries, hash_do_for_each, hash_string, is_prime,
85850         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
85851         Likewise.
85852         (SIZE_MAX): Define if not defined.
85853         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
85854         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
85855         hash_print):
85856         Use const * when possible.
85857         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
85858         (check_tuning): Fix bug: if tuning parameters were very close to
85859         0 or 1, rounding errors could have caused subscript violations.
85860         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
85861         (hash_initialize): Add 'fail:' label
85862         to free table and return NULL, and use it to simplify code.
85863         Use calloc rather than clearing the storage ourself.
85864         (hash_initialize, hash_rehash): Check for arithmetic overflow in
85865         buffer size calculations.
85866         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
85867         Include <stddef.h>, for size_t.
85868         * lib/hash-pjw.c (hash_pjw): Likewise.
85869         Switch to method described by Bruno Haible.
85870         Include <limits.h>, for CHAR_BIT.
85871         (SIZE_BITS): New macro.
85872
85873 2003-10-23  Paul Eggert  <eggert@twinsun.com>
85874
85875         * m4/getline.m4 (AM_FUNC_GETLINE):
85876         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
85877         hosts.  Problem reported by Derek Robert Price in
85878         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
85879         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
85880         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
85881
85882 2003-10-21  Paul Eggert  <eggert@twinsun.com>
85883
85884         * lib/getndelim2.c (getndelim2): When size calculation overflows,
85885         ceiling the allocation at NMAX bytes rather than silently
85886         discarding input bytes before NMAX is reached.  This makes
85887         a difference only if NMAX exceeds SIZE_MAX / 2.
85888
85889         * lib/obstack.c: Merge from glibc.
85890         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
85891         Add libc_hidden_def (_obstack_newchunk).
85892         (_obstack_free) [! defined _LIBC]: Remove.
85893         [defined _LIBC]: Make a strong alias from obstack_free, rather than
85894         a clone of the function body.
85895         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
85896         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
85897
85898         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
85899         glibc.
85900         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
85901         arg to memcpy.
85902
85903         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
85904         (obstack_ptr_grow_fast, obstack_int_grow_fast):
85905         Don't use lvalue casts, as GCC plans to remove support for them
85906         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
85907         was also present in the non-GCC version, indicating that this
85908         code had always been buggy and had never been widely used.
85909         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
85910         Use the fast variant of each macro, rather than copying the
85911         definiens of the fast variant; that way, we'll be more likely to
85912         catch future bugs in the fast variants.
85913
85914 2003-10-20  Bruno Haible  <bruno@clisp.org>
85915
85916         * modules/wait-process: New file.
85917         * MODULES.html.sh (func_all_modules): Add wait-process.
85918
85919 2003-10-20  Bruno Haible  <bruno@clisp.org>
85920
85921         * m4/wait-process.m4: New file.
85922
85923 2003-10-20  Bruno Haible  <bruno@clisp.org>
85924
85925         * lib/wait-process.h: New file, from GNU gettext.
85926         * lib/wait-process.c: New file, from GNU gettext.
85927
85928 2003-10-19  Jim Meyering  <jim@meyering.net>
85929
85930         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
85931         HPUX 10.20.
85932
85933 2003-10-18  Karl Berry  <karl@gnu.org>
85934
85935         * config/config.guess: update from config.
85936
85937 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85938
85939         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
85940         (getgroups): First arg is int, not size_t.
85941         Don't let 'free' mangle errno.
85942
85943 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85944
85945         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
85946
85947 2003-10-16  Karl Berry  <karl@gnu.org>
85948
85949         * config/config.{guess,sub}: update from config.
85950
85951 2003-10-16  Jim Meyering  <jim@meyering.net>
85952
85953         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
85954         memcpy.
85955
85956 2003-10-15  Paul Eggert  <eggert@twinsun.com>
85957
85958         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
85959         (SIZE_MAX): Remove.
85960         (new_exclude, add_exclude_file): Initial size no longer needs to
85961         be a power of 2.
85962         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
85963         our own address arithmetic overflow checking.
85964
85965         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
85966         (fnmatch): Do not alloca more than 2000 wide characters;
85967         instead, use malloc for large buffers.
85968         Check for address arithmetic overflow, and return -1
85969         with errno set to ENOMEM in that case.
85970         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
85971         (NEW_PATTERN): Do not alloca more than 8000 bytes;
85972         instead, return -1.  Check for address arithmetic overflow.
85973
85974 2003-10-14  Paul Eggert  <eggert@twinsun.com>
85975
85976         Handle invalid suffixes and overflow independently, so that
85977         callers can treat them independently as needed.  Fix some bugs in
85978         suffix handling, e.g., "100k@" was not diagnosed as an invalid
85979         suffix for a human-readable blocksize.  The major caller-visible
85980         change is the addition of a new
85981         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
85982         that both overflow and suffix chars were found.
85983
85984         * lib/human.c (humblock): Don't check separately for invalid suffix
85985         char; that is xstrtoumax's job (now that its bug is fixed).
85986         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
85987         INTMAX_MAX]: New macros.
85988         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
85989         TYPE_MAXIMUM): New macros.
85990         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
85991         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
85992         if overflow occurs, as it's what __strtol does and it's more useful
85993         in practice.
85994         (__xstrtol): If __strtol reports some error other than ERANGE,
85995         reflect it to the caller as LONGINT_INVALID.  If it reports
85996         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
85997         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
85998         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
85999         value.
86000         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86001         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86002         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86003         [defined UINTMAX_MAX]: New macros.
86004
86005 2003-10-14  Bruno Haible  <bruno@clisp.org>
86006
86007         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86008
86009 2003-10-14  Bruno Haible  <bruno@clisp.org>
86010
86011         * m4/sig_atomic_t: New file, from GNU gettext.
86012         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86013
86014 2003-10-14  Bruno Haible  <bruno@clisp.org>
86015
86016         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86017         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86018         Also use volatile where needed.
86019
86020 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86021
86022         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86023         Change maintainer from Bruno Haible to 'all'.
86024
86025 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86026
86027         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86028
86029 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86030
86031         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86032         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86033         and define in terms of the other primitives.
86034         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86035         (SIZE_MAX): Define if not already defined.
86036         (array_size_overflow): New function.
86037         (xalloc_die): Abort instead of exiting if 'error' returns.
86038         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86039         (xmalloc, xrealloc): Use them.
86040         (xcalloc): Check for address arithmetic overflow.
86041         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86042         a bit faster than strcpy.
86043
86044 2003-10-10  Simon Josefsson  <jas@extundo.com>
86045
86046         * modules/argp (Depends-on): Add restrict and strcase.
86047
86048 2003-10-10  Simon Josefsson  <jas@extundo.com>
86049
86050         * m4/argp.m4: Add AC_C_INLINE.
86051
86052 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86053
86054         Merge getpass from libc, plus a few fixes.
86055
86056         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86057         Include <stdbool.h>.
86058         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86059         __fsetlocking to empty.
86060         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86061         do include <bits/libc-lock.h>.
86062         Do not include <fcntl.h>; not needed.
86063         [_LIBC]: Include <wchar.h>.
86064         (NOTCANCEL_MODE): New macro.
86065         (flockfile, funlockfile) [_LIBC]: New macros.
86066         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86067         [!_LIBC]: New macros.
86068         (call_fclose): New function.
86069         (getpass): Use it.  Save tty stream separately; this simplifies the
86070         code and makes it more reliable if stdin happens to equal stdout.
86071         Invoke __fsetlocking on tty.
86072         Handle thread cancellation if needed.
86073         Namespace cleanup (use __tcgetattr, __getline).
86074         Use bool for Booleans.
86075         [USE_IN_LIBIO]: Handle wide streams.
86076         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86077         stream might go where.
86078
86079         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86080         doesn't have to include <stdio.h> before us.
86081         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86082         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86083         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86084         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86085         if not declared, so that we can use getpass.c code from libc without
86086         rewriting it.
86087         (flockfile, ftrylockfile, funlockfile): New macros.
86088
86089 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86090
86091         * modules/getpass: Depend on stdbool.
86092
86093 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86094
86095         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86096
86097 2003-10-07  Karl Berry  <karl@gnu.org>
86098
86099         * config/config.{guess,sub}: update from config.
86100
86101 2003-10-06  Jim Meyering  <jim@meyering.net>
86102             Bruno Haible  <bruno@clisp.org>
86103
86104         This lets translators provide better translations for the
86105         "Written by ..." part of --version output.
86106         * lib/version-etc.h: Include stdarg.h.
86107         (version_etc_copyright): Declare as readonly.
86108         (version_etc): Make this function variadic with a NULL-terminated list
86109         of author name strings.
86110         (version_etc_va): New declaration.
86111         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86112         (version_etc_copyright): Declare as readonly.
86113         (version_etc_va): New function. Provide a different translatable string
86114         for each possible number of authors < 10. Abbreviate when there are 10
86115         authors or more.
86116         (version_etc): Make this function variadic. Call version_etc_va.
86117         Suggestion from Gary V. Vaughan.
86118
86119         * lib/long-options.h (parse_long_options): Change prototype: the
86120         authors string is moved to the end and becomes variadic.
86121         * lib/long-options.c: Include stdarg.h.
86122         (parse_long_options): Make this function variadic, too.
86123         Call version_etc_va, not version_etc.
86124
86125 2003-10-06  Bruno Haible  <bruno@clisp.org>
86126
86127         * modules/version-etc-2: Remove file.
86128         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86129
86130 2003-10-06  Bruno Haible  <bruno@clisp.org>
86131
86132         * modules/fatal-signal: New file.
86133         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86134
86135 2003-10-06  Bruno Haible  <bruno@clisp.org>
86136
86137         * m4/fatal-signal.m4: New file.
86138         * m4/signalblocking.m4: New file, from GNU gettext.
86139
86140 2003-10-06  Bruno Haible  <bruno@clisp.org>
86141
86142         * lib/version-etc-2.h: Remove file.
86143         * lib/version-etc-2.c: Remove file.
86144
86145 2003-10-06  Bruno Haible  <bruno@clisp.org>
86146
86147         * lib/fatal-signal.h: New file, from GNU gettext.
86148         * lib/fatal-signal.c: New file, from GNU gettext.
86149
86150 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86151
86152         * README: Rework advice for preventing empty .o files.
86153         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86154         not <sys/types.h>.
86155
86156 2003-10-04  Karl Berry  <karl@gnu.org>
86157
86158         * lib/argp*: update from libc.
86159
86160 2003-10-04  Karl Berry  <karl@gnu.org>
86161
86162         * config/config.{guess,sub}: update from config.
86163
86164 2003-10-02  Bruno Haible  <bruno@clisp.org>
86165
86166         * modules/lchown (Include): Add lchown.h.
86167         * modules/time_r (Include): Use "..." syntax.
86168         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86169
86170 2003-10-01  Simon Josefsson  <jas@extundo.com>
86171
86172         * MODULES.html.sh (func_all_modules): Move gethostname from section
86173         'based on' to section 'lacking' POSIX:2001.
86174
86175 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86176
86177         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86178         to output mode on the same stream.
86179
86180 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86181
86182         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86183         Fix arg typo in previous patch.
86184
86185 2003-09-28  Jim Meyering  <jim@meyering.net>
86186
86187         * lib/error.c: Correct cpp indentation.
86188
86189 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86190
86191         * modules/free: New file.
86192
86193 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86194
86195         * m4/free.m4: New file.
86196
86197 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86198
86199         * lib/minmax.h (MIN, MAX)
86200         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86201         Omit the special code that used __typeof__, since we worry that
86202         it could be more trouble than it's worth.  See:
86203         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86204         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86205
86206         * lib/free.c: New file.
86207
86208 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86209
86210         Trivial fixes to Makefile.am parts of module listings.
86211         * modules/strstr: Append strstr.h to lib_SOURCES.
86212         * modules/strcase: Likewise, for strcase.h.
86213
86214 2003-09-27  Karl Berry  <karl@gnu.org>
86215
86216         * config/mkinstalldirs: update from automake.
86217
86218 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86219
86220         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86221         (error_tail): Do not loop, reallocating temporary buffer, since
86222         the output cannot contain more wide characters than the input
86223         contains bytes, the size must be big enough already.  This avoids
86224         one potential size overflow calculation.  Check for size overflow
86225         when calculating temporary buffer size.  Free temporary buffer
86226         when done, if it was allocated with malloc; this plugs a memory
86227         leak.  Remove casts from void * to pointers, that are no longer
86228         needed now that we're assuming C89 or better.
86229
86230         Merge error changes from glibc.
86231
86232         * lib/error.c, error.h: Update copyright notice header to match glibc.
86233         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86234         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86235         Disable cancellation while printing error.
86236         * lib/error.h: Prepend __ to parameter names.
86237
86238 2003-09-26  Jim Meyering  <jim@meyering.net>
86239
86240         * lib/error.c (error_tail): Move some declarations
86241         into inner scope where the local variables are used.
86242
86243 2003-09-26  Bruno Haible  <bruno@clisp.org>
86244
86245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86246         stpncpy().
86247         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86248
86249 2003-09-26  Bruno Haible  <bruno@clisp.org>
86250
86251         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86252         (stpncpy): Define as alias for gnu_stpncpy.
86253         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86254
86255 2003-09-25  Simon Josefsson  <jas@extundo.com>
86256
86257         * lib/xgetdomainname.h: New file.
86258         * lib/xgetdomainname.c: New file.
86259
86260 2003-09-25  Simon Josefsson  <jas@extundo.com>
86261             Bruno Haible  <bruno@clisp.org>
86262
86263         * modules/getdomainname: New file.
86264         * modules/xgetdomainname: New file.
86265         * MODULES.html.sh (func_all_modules): Add getdomainname,
86266         xgetdomainname.
86267
86268 2003-09-25  Simon Josefsson  <jas@extundo.com>
86269             Bruno Haible  <bruno@clisp.org>
86270
86271         * m4/getdomainname.m4: New file.
86272
86273 2003-09-25  Simon Josefsson  <jas@extundo.com>
86274             Bruno Haible  <bruno@clisp.org>
86275
86276         * lib/getdomainname.h: New file.
86277         * lib/getdomainname.c: New file.
86278
86279 2003-09-25  Karl Berry  <karl@gnu.org>
86280
86281         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86282
86283 2003-09-25  Karl Berry  <karl@gnu.org>
86284
86285         * config/install-sh: update from automake.
86286
86287 2003-09-25  Bruno Haible  <bruno@clisp.org>
86288
86289         * modules/version-etc-2: New file, from modules/version-etc with
86290         modifications.
86291         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86292
86293 2003-09-25  Bruno Haible  <bruno@clisp.org>
86294
86295         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86296         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86297
86298 2003-09-24  Simon Josefsson  <jas@extundo.com>
86299
86300         * modules/xgethostname: Add xgethostname.h.
86301
86302 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86303
86304         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86305         the buffer associated with the argument.  Bug reported by
86306         Simon Josefsson.
86307
86308 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86309
86310         * README: Document assumptions that 'int' is at least 32 bits
86311         wide, that integer arithmetic is 2's complement without overflow,
86312         that there are no holes in integer values, that adding sizes of
86313         two nonoverlapping objects can't overflow, and that all-bits-zero
86314         yields scalar zero.  Fix spelling and capitalization typos.
86315
86316 2003-09-19  Karl Berry  <karl@gnu.org>
86317
86318         * lib/argp.h: update from libc.
86319
86320 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86321
86322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86323         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86324         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86325
86326 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86327
86328         * gnulib-tool: Use "test -h", not "test -L", for portability
86329         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86330         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86331         (sed_extract_prog): Issue s commands one-by-one, rather than
86332         using \| in one s command.
86333
86334 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86335
86336         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86337         input error, instead of returning NULL the next time we are called
86338         (and therefore losing track of errno).
86339
86340 2003-09-16  Bruno Haible  <bruno@clisp.org>
86341
86342         * gnulib-tool (func_create_testdir): Warn about duplicated
86343         dependencies.
86344
86345 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86346
86347         * modules/argmatch, modules/fatal, modules/obstack,
86348         modules/xalloc, modules/xgethostname: Sort dependencies by
86349         importance, not alphabetically.
86350
86351 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86352
86353         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86354         fails, so that the caller gets the proper errno.
86355
86356         * lib/readutmp.c (read_utmp): Likewise.
86357         Check for fstat error.  Close stream and free storage
86358         when failing.
86359
86360 2003-09-14  Karl Berry  <karl@gnu.org>
86361
86362         * config/srclist.txt (strdup.c): disable for c89 changes.
86363
86364 2003-09-14  Jim Meyering  <jim@meyering.net>
86365
86366         * lib/getloadavg.c: Correct cpp indentation.
86367         * lib/strdup.c: Likewise.
86368         * lib/vasnprintf.c: Likewise.
86369
86370 2003-09-14  Bruno Haible  <bruno@clisp.org>
86371
86372         * modules/fwriteerror: New file.
86373         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86374
86375 2003-09-14  Bruno Haible  <bruno@clisp.org>
86376
86377         * lib/fwriteerror.h: New file.
86378         * lib/fwriteerror.c: New file.
86379
86380 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86381
86382         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86383         modules/xgethostname, modules/xalloc: Depend on exit.
86384
86385 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86386
86387         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86388
86389         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86390         and AC_MINIX, too, so that their extensions are available.
86391
86392         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86393         This macro has been superseded by gl_BACKUPFILE.
86394
86395         More patches to assume C89 or better.
86396
86397         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86398
86399         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86400         unconditionally.
86401         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86402         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86403         Include <string.h>, <stdlib.h> unconditionally.
86404         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86405         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86406         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86407         headers or for string.h.
86408         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86409         or strtoul.
86410
86411         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86412         headers.
86413         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86414         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86415         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86416         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86418         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86419         memcpy, memset.
86420         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86421         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86422         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86423         strtol.
86424         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86425         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86426         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86427         strtoul.
86428
86429 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86430
86431         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86432         * lib/obstack.c [!defined _LIBC]: Likewise.
86433         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86434         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86435         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86436
86437         More changes to assume C89 or better.
86438
86439         * lib/error.c (error_tail): Assume vprintf.
86440
86441         * lib/argmatch.c (getenv): Remove decl.
86442         * lib/progreloc.c (get_full_program_name): Define via prototype.
86443         * lib/setenv.c (clearenv): Likewise.
86444         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86445         needed.
86446         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86447         (malloc, memcpy): Remove decls.
86448         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86449         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86450         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86451         (memcpy): Remove macro.
86452         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86453         (__P): Remove.  All uses removed.
86454         (PTR): Remove.  All uses changed to void *.
86455         (CHAR_BIT, NULL): Remove.
86456         (spaces, zeros, memset_space, memset_zero)
86457         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86458         Remove.
86459         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86460         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86461         Define with prototype.
86462         Remove now-unnecessary prototype decl.
86463         (extra_args_spec): Assume ANSI C.  All uses changed.
86464         (extra_args_spec_iso): Remove.
86465         (my_strftime, emacs_strftimeu): Define via prototype.
86466         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86467         unconditionally.
86468         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86469         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86470         (strtoul, strtol): Remove decls.
86471         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86472         LONG_MAX): Remove.
86473         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86474         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86475         (LOCALE_PARAM_PROTO): New macro.
86476         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86477         (INTERNAL (strtol), strtol): Define with a prototype.
86478         (PARAMS): Remove.  All uses removed.
86479         * lib/tempname.c: Include <string.h> unconditionally.
86480         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86481         * lib/xgethostname.c (main): Define with a prototype.
86482         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86483         Include <stdlib.h> unconditionally.
86484         (calloc, malloc, realloc, free): Remove decls.
86485         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86486         Include <stdlib.h> unconditionally.  Sort include file names.
86487         (strtod): Remove.
86488         (xstrtod): Define with a prototype.
86489         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86490         (strtol, strtoul): Remove decls.
86491
86492 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86493
86494         More patches to assume C89 or better.
86495         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86496         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86497         string.h, memchr, STDC_HEADERS.
86498
86499 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86500
86501         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86502         Include <stdlib.h>, <string.h> unconditionally.
86503         Remove now-unnecessary cast to char *.
86504         * lib/strnlen.c: Include <string.h> unconditionally.
86505         * lib/yesno.c (yesno): Define with a prototype.
86506
86507 2003-09-11  Bruno Haible  <bruno@clisp.org>
86508
86509         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86510
86511 2003-09-10  Jim Meyering  <jim@meyering.net>
86512
86513         * lib/error.c: Correct indentation of cpp directives.
86514
86515 2003-09-10  Bruno Haible  <bruno@clisp.org>
86516
86517         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86518         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86519         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86520         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86521         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86522         <stdlib.h> and <string.h> checks.
86523         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86524         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86525
86526 2003-09-10  Bruno Haible  <bruno@clisp.org>
86527
86528         * lib/strcspn.c: Include <string.h> unconditionally.
86529         * lib/strpbrk.c: Include <string.h> unconditionally.
86530         * lib/strstr.c: Include <string.h> unconditionally.
86531         * lib/unicodeio.c: Include <string.h> unconditionally.
86532         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86533         * lib/unsetenv.c: Likewise.
86534         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86535         * lib/yesno.c: Include <stdlib.h> unconditionally.
86536         (rpmatch): Add prototype.
86537
86538 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86539
86540         More patches to assume C89 or better.
86541         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86542         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86543         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86544         or for string.h.
86545         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86546         stdlib.h.
86547         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86548         C headers.
86549         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86550         string.h.
86551         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86552         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86553         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86554         or for string.h.
86555         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86556         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86557         C headers.
86558         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86559         memcpy.
86560         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86561         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86562         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86563         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86564         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86565         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86566         string.h, free.
86567         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86568         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86569         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86570         C headers, or for string.h.
86571         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86572         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86573         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86574         headers, memory.h, stdlib.h, string.h, strings.h.
86575         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86576         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86577         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86578         strchr.
86579         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86580         headers, memory.h, string.h.
86581         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86582         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86583         free.
86584         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86585         headers.
86586         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86587         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86588         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86589         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86590         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86591
86592 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86593
86594         More K&R removal.
86595
86596         * lib/acosl.c (main): Use a prototype.
86597         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86598         tanl.c: Likewise.
86599
86600         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86601
86602         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86603         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86604         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86605         with a prototype.
86606         * lib/getopt.c (const): Remove macro.
86607         Include <string.h> unconditionally.
86608         (my_index): Remove; all uses changed to strchr.
86609         (strlen): Remove decl.
86610         (exchange): Remove forward decl; no longer needed.
86611         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86612         Define with prototype.
86613         * lib/getopt1.c (const): Remove macro.
86614         (getopt_long, getopt_long_only, main): Define with prototype.
86615
86616         * lib/getugroups.c: Include <string.h> unconditionally.
86617
86618         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86619         (getusershell, setusershell, endusershell, readname, main):
86620         Define with prototypes.
86621
86622         * lib/group-member.c: Include group-member.h first.
86623         Include <stdlib.h> unconditionally.
86624
86625         * lib/hard-locale.c: Include hard-locale.h first.
86626         Include <stdlib.h>, <string.h> unconditionally.
86627
86628         * lib/hash.c (free, malloc): Remove decls.
86629         Include <stdlib.h> unconditionally.
86630
86631         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86632         (getenv): Do not declare.
86633
86634         * lib/idcache.c: Include <string.h> unconditionally.
86635
86636         * lib/long-options.c: Include long-options.h first, to test interface.
86637         Include <stdlib.h> unconditionally.
86638
86639         * lib/makepath.c: Include makepath.h first, to test interface.
86640         Include <stdlib.h> and <string.h> unconditionally.
86641
86642         * lib/linebuffer.c: Include <stdlib.h>.
86643         (free): Remove decl.
86644
86645         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86646         stddef.h. rpl_malloc returns void *, not char *.
86647         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86648         prototype.
86649
86650         * lib/md5.h: Include <limits.h> unconditionally.
86651         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86652         (__P): Remove; all uses removed.
86653         * lib/md5.c: Include "md5.h" first.
86654         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86655         md5_buffer, md5_process_bytes, md5_process_block):
86656         Define with prototypes.
86657         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86658         * lib/sha.c: Include "sha.h" first.
86659         Include <stdlib.h>, <string.h> unconditionally.
86660
86661         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86662         * lib/memcmp.c (__ptr_t): Likewise.
86663         * lib/memrchr.c (__ptr_t): Likewise.
86664         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86665         Include <string.h> unconditionally.
86666         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86667         * lib/memchr.c: Include <stdlib.h> unconditionally.
86668         * lib/memchr.c (LONG_MAX): Remove.
86669         * lib/memrchr.c (LONG_MAX): Likewise.
86670         * lib/memchr.c (__memchr): Define via a prototype.
86671         * lib/memrchr.c (__memrchr): Likewise.
86672         * lib/memcmp.c (__P): Remove, and remove all uses.
86673         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86674         Remove forward decls; no longer needed.
86675         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86676         Use types required by C89 in prototype.
86677
86678         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86679         * lib/savedir.c: Likewise.
86680         * lib/mkdir.c (free): Remove decl.
86681         * lib/rmdir.c (rmdir): Define with a prototype.
86682         * lib/savedir.c: Include savedir.h first, to test interface.
86683
86684         * lib/mktime.c (STDC_HEADERS): Remove.
86685         Include <stdlib.h>, <string.h> unconditionally.
86686
86687         * lib/modechange.c: Include <stdlib.h> unconditionally.
86688         (malloc): Remove decl.
86689
86690         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86691         (free): Remove decl.
86692
86693         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86694         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86695         (This type really should be intptr_t, but that's a C99ism.)
86696         (_obstack_memcpy): Remove: all uses changed to memcpy.
86697         Include <string.h> unconditionally.
86698         (struct obstack): Assume __STDC__ for types of members
86699         chunkfun, freefun, extra_arg.
86700         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86701         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86702         obstack_begin, obstack_specify_allocation,
86703         obstack_specify_allocation_with_arg, obstack_chunkfun,
86704         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86705         Remove unprototyped decls and the macros that use them.
86706         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86707         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86708         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86709         (defined __STDC__ && __STDC__)]:
86710         Remove nonprototyped code.
86711         Include <stdlib.h> unconditionally.
86712         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86713         _obstack_allocated_p, _obstack_free, obstack_free,
86714         _obstack_memory_used, print_and_abort):
86715         Define using prototypes.
86716         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86717         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86718         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86719         obstack_next_free, obstack_object_size, obstack_room) [0]:
86720         Remove unused, unprototyped code.
86721
86722         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86723
86724         * lib/physmem.c (physmem_total, physmem_available, main): Define
86725         with prototypes.
86726
86727         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86728         (main): Define with a prototype.
86729
86730         * lib/posixver.c (getenv): Remove decl.
86731
86732         * lib/putenv.c (malloc): Returns void *, not char *.
86733         Include <string.h> unconditionally.
86734         (strchr, memcpy, NULL): Do not define.
86735
86736         * lib/readtokens.c: Include readtokens.h first, to test interface.
86737         Include <stdlib.h>, <string.h> unconditionally.
86738         (init_tokenbuffer): Define with a prototype.
86739
86740         * lib/regex.c (PARAMS): Remove.  All uses removed.
86741         All uses of _RE_ARGS removed, too.
86742         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86743         unconditionally.
86744         (bzero): Assume memset exists.
86745         (memcmp, memcpy, NULL): Remove.
86746         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86747         char, or assignments to local vars of type signed char.
86748         (init_syntax_once, PREFIX(extract_number_and_incr),
86749         PREFIX(print_partial_compiled_pattern),
86750         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86751         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86752         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86753         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86754         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86755         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86756         wcs_compile_range, byte_compile_range, truncate_wchar,
86757         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86758         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86759         count_mbs_length, wcs_re_match_2_internal,
86760         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86761         PREFIX(alt_match_null_string_p),
86762         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86763         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86764         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86765         now-unnecessary declaration, if any.
86766         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86767         regcomp, regexec):
86768         Remove now-unnecessary casts among pointer types.
86769         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86770
86771         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86772         (free): Remove decl.
86773
86774         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86775
86776         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86777         (free): Remove decl.
86778
86779         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86780         * lib/xgetcwd.c: Likewise.
86781
86782         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86783         (free): Remove decl.
86784
86785         * lib/strchrnul.c (strchrnul): Define with a prototype.
86786         Fix bug: c_in was not converted to char before searching.
86787
86788         The following changes are not K&R related:
86789
86790         * lib/group-member.h: Include <sys/types.h>, so that this file is
86791         self-contained.
86792         * lib/makepath.h: Likewise.
86793
86794         * lib/getusershell.c (readname, default_index, line_size, readname):
86795         Use size_t, not int, for sizes.
86796         (readname): If the size overflows, report an error instead of
86797         looping forever.
86798
86799 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86800
86801         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86802         libc.
86803
86804 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86805
86806         * README: New section: portability guidelines.
86807
86808 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86809
86810         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86811         C89 spec.
86812
86813 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86814
86815         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86816
86817 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86818
86819         Assume C89 or better; remove K&R cruft.
86820         A few of these changes were first proposed by Derek Robert Price
86821         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86822
86823         * lib/addext.c: Include <string.h> unconditionally.
86824         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86825         Don't declare getenv or malloc.
86826
86827         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86828         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86829         (NULL): Remove.
86830         (find_stack_direction, alloca): Use prototypes.
86831
86832         * lib/atexit.c (atexit): Define using a prototype.
86833
86834         * lib/basename.c, dirname.c, stripslash.c:
86835         Include <string.h> unconditionally.
86836
86837         * lib/bcopy.c: Include <stddef.h>.
86838         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86839
86840         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86841
86842         * lib/error.h (error, error_at_line, error_print_progname)
86843         [! (defined (__STDC__) && __STDC__)]: Remove decls.
86844         * lib/error.c: Include error.h first, to check interface.
86845         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86846         (VA_START): Remove; all uses changeed to va_start.
86847         (exit, strerror): Remove decls.
86848         (error_print_progname): Prototype uncondionally.
86849         Don't include <errno.h>; no longer needed.
86850         (private_strerror): Remove.
86851         (error_tail): Always define.
86852         (error, error_at_line): Assume C89 or better; always use prototypes.
86853         * lib/fatal.c: Include "fatal.h" first, to test interface.
86854         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86855         (VA_START): Remove; all uses changed to va_start.
86856         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
86857         this case.
86858         (exit): Remove decl.
86859         (fatal): Prototype unconditionally.  Assume va_start works.
86860         Abort at end, to pacify gcc.
86861
86862         * lib/euidaccess.c (main): Define with a prototype.
86863
86864         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
86865
86866         * lib/exitfail.c: Include <stdlib.h> unconditionally.
86867
86868         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
86869         prototypes.
86870         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
86871         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
86872         (getenv): Remove decl.
86873         (fnmatch): Define using a prototype.
86874         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
86875         (FCT): Define using a prototype.
86876
86877         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
86878
86879         * lib/gethostname.c: Include <stddef.h>.
86880         (gethostname): Define with prototype.  Length is size_t, not int.
86881
86882 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86883
86884         Assume C89 or better; remove K&R cruft.
86885         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
86886         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
86887         string.h, getenv, malloc.
86888         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
86889         headers.
86890         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
86891         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
86892         do not check for strerror.
86893         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
86894         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
86895         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
86896         do not check for doprnt or vprintf.
86897         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
86898         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
86899
86900 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86901
86902         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
86903         getversion.c should have been removed then, but was accidentally
86904         preserved.
86905
86906         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
86907         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
86908
86909 2003-09-08  Karl Berry  <karl@gnu.org>
86910
86911         * config/config.sub, config.guess, srclistvars.sh: update from savannah
86912                 config, forget about prep.
86913
86914         * config/depcomp, missing: update from automake.
86915
86916 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86917
86918         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
86919         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86920
86921 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86922
86923         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
86924         copy_tm_result.  Bug reported by Simon Josefsson in
86925         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86926
86927 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86928
86929         * m4/time_r.m4: New file.
86930         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
86931         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
86932         is. Check for timegm declaration.
86933         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
86934         Do not check for gmtime_r.
86935         Replace mktime if __mktime_internal does not exist and if mktime
86936         hasn't been replaced already.
86937
86938 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86939
86940         * lib/time_r.c, lib/time_r.h: New files.
86941
86942         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
86943         __localtime_r.
86944         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
86945         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
86946
86947         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
86948         __gmtime_r.
86949         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
86950         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
86951         Include <time_r.h>.
86952
86953         * lib/timegm.c: Switch to glibc implementation, with the following
86954         changes:
86955         [defined HAVE_CONFIG_H]: Include <config.h>.
86956         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
86957         (__mktime_internal) [!defined _LIBC]: New decl.
86958         (__gmtime_r) [!defined _LIBC]: New macro and function.
86959         (timegm): Use a prototype, since gnulib assumes C89.
86960         Do not bother declaring tmp to be const, as it's not really usefu.
86961         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
86962         (timegm): Declare only if HAVE_DECL_TIMEGM.
86963
86964 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86965
86966         * MODULES.html.sh (func_all_modules): Add time_r.
86967         * modules/time_r: New file.
86968         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
86969         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
86970
86971 2003-09-03  Paul Eggert  <eggert@twinsun.com>
86972
86973         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
86974         Bug reported by Lute Kamstra in
86975         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
86976
86977         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
86978         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
86979         course with correspondingly smaller numbers for tomorrow and
86980         yesterday.  From Tadayoshi Funaba.  Originally installed into
86981         sh-utils on 1999-08-07, but the patch got lost (I guess during the
86982         coreutils merge?).
86983
86984 2003-08-31  Simon Josefsson  <jas@extundo.com>
86985
86986         * modules/timegm: New file.
86987         * MODULES.html.sh (func_all_modules): Add timegm.
86988
86989 2003-08-31  Simon Josefsson  <jas@extundo.com>
86990
86991         * m4/timegm.m4: New file.
86992
86993 2003-08-31  Simon Josefsson  <jas@extundo.com>
86994
86995         * lib/timegm.h: New file.
86996         * lib/timegm.c: New file.  Based on
86997         wget-1.8.2/src/http.c:mktime_from_utc.
86998
86999 2003-08-31  Karl Berry  <karl@gnu.org>
87000
87001         * lib/argp.h: update from libc.
87002
87003 2003-08-28  Bruno Haible  <bruno@clisp.org>
87004
87005         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87006         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87007         followed by '#define fnmatch fnmatch_posix' gives an error.
87008
87009 2003-08-28  Bruno Haible  <bruno@clisp.org>
87010
87011         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87012         warning on QNX, which defines O_BINARY to 000000.
87013
87014 2003-08-27  Jim Meyering  <jim@meyering.net>
87015
87016         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87017         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87018         would fail after 32.  Reported by Danny Levinson.  Details here:
87019         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87020
87021 2003-08-24  Bruno Haible  <bruno@clisp.org>
87022
87023         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87024         MSVC7 <stdio.h> is included later.
87025
87026 2003-08-22  Simon Josefsson  <jas@extundo.com>
87027
87028         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87029
87030 2003-08-20  Karl Berry  <karl@gnu.org>
87031
87032         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87033
87034 2003-08-20  Bruno Haible  <bruno@clisp.org>
87035
87036         * modules/progname: New file.
87037         * MODULES.html.sh (func_all_modules): Add progname.
87038
87039 2003-08-20  Bruno Haible  <bruno@clisp.org>
87040
87041         * lib/progname.h: New file, from GNU gettext.
87042         * lib/progname.c: New file, from GNU gettext.
87043         * lib/progreloc.c: New file, from GNU gettext.
87044
87045 2003-08-19  Jim Meyering  <jim@meyering.net>
87046
87047         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87048         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87049
87050 2003-08-19  Bruno Haible  <bruno@clisp.org>
87051
87052         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87053         more.
87054
87055 2003-08-19  Bruno Haible  <bruno@clisp.org>
87056
87057         * lib/xstrdup.c: Assume <string.h> exists.
87058
87059 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87060
87061         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87062         in makefile rules.
87063
87064 2003-08-18  Jim Meyering  <jim@meyering.net>
87065
87066         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87067         * m4/lib-ld.m4: Likewise.
87068
87069 2003-08-18  Jim Meyering  <jim@meyering.net>
87070
87071         * lib/setenv.h: Indent nested cpp directive.
87072         * lib/vasnprintf.c: Remove trailing blanks.
87073
87074 2003-08-17  Simon Josefsson  <jas@extundo.com>
87075
87076         * modules/xstrndup: New file.
87077         * MODULES.html.sh (func_all_modules): Add xstrndup.
87078
87079 2003-08-17  Simon Josefsson  <jas@extundo.com>
87080
87081         * modules/argp: Fix autoconf macro name. Add more dependencies.
87082
87083 2003-08-17  Simon Josefsson  <jas@extundo.com>
87084
87085         * m4/xstrndup.m4: New file.
87086
87087 2003-08-17  Simon Josefsson  <jas@extundo.com>
87088
87089         * m4/argp.m4: New file.
87090
87091 2003-08-17  Simon Josefsson  <jas@extundo.com>
87092             Bruno Haible  <bruno@clisp.org>
87093
87094         * lib/xstrndup.h: New file.
87095         * lib/xstrndup.c: New file.
87096
87097 2003-08-17  Bruno Haible  <bruno@clisp.org>
87098
87099         * modules/strndup (Files, Include): Add lib/strndup.h.
87100
87101 2003-08-17  Bruno Haible  <bruno@clisp.org>
87102
87103         * modules/euidaccess (Files): Add lib/euidaccess.h.
87104
87105 2003-08-17  Bruno Haible  <bruno@clisp.org>
87106
87107         * lib/strndup.h: New file.
87108
87109 2003-08-17  Bruno Haible  <bruno@clisp.org>
87110
87111         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87112         like AC_GNU_SOURCE.
87113         * modules/extensions (configure.ac): Comment out the invocation of
87114         gl_USE_SYSTEM_EXTENSIONS.
87115
87116 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87117
87118         Merges from coreutils, etc.
87119         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87120         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87121         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87122         fixing a typo.
87123         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87124         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87125
87126 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87127
87128         Document merge from coreutils.
87129         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87130         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87131         * modules/utime: Add m4/utimes-null.m4.
87132
87133 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87134
87135         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87136         space, undoing this 2003-08-12 change:
87137         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87138
87139 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87140
87141         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87142         strtoul.c from libc, undoing this 2003-08-12 change:
87143         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87144
87145 2003-08-16  Jim Meyering  <jim@meyering.net>
87146
87147         Merges from coreutils.
87148         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87149         prefix.  Adjust cache variables similarly.  Create 500 rather than
87150         just 300 files, to exercise bug on Darwin6.5, too.
87151         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87152         $missing_dir.
87153         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87154         AM_SYS_POSIX_TERMIOS.
87155         Reported by mkc@mathdogs.com.
87156         Also change use of $am_cv_sys_posix_termios
87157         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87158         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87159         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87160         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87161         in /proc/mounts until it finds one with matching device number.  This
87162         is unnecessary when the FILE argument *is* a mount point.  No stat call
87163         is necessary in that case.  So, disable the statvfs-testing code on
87164         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87165         as RedHat bug# 84846.
87166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87167         to 1MB, so as not to render systems with no stack size limit (e.g.,
87168         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87169         Include <unistd.h>.  On some systems,
87170         it is required for the definition of _SC_PAGESIZE.
87171
87172 2003-08-16  Jim Meyering  <jim@meyering.net>
87173
87174         Merge from coreutils.
87175         * lib/xstrtoimax.c: #else #if -> #elif.
87176         * lib/xstrtoumax.c: Likewise.
87177
87178 2003-08-16  Jim Meyering  <jim@meyering.net>
87179
87180         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87181         * m4/utimes.m4: Removed.
87182         * m4/utimes-null.m4: Renamed from utimes.m4.
87183
87184         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87185         to 1MB, so as not to render systems with no stack size limit (e.g.,
87186         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87187         Include <unistd.h>.  On some systems,
87188         it is required for the definition of _SC_PAGESIZE.
87189
87190 2003-08-16  Jim Meyering  <jim@meyering.net>
87191         and Paul Eggert  <eggert@cs.ucla.edu>
87192
87193         Merges from coreutils, etc.
87194
87195         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87196         using the latest version from cvs.  This avoids problems with #line
87197         directives using a vendor (Sun) compiler.
87198         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87199         Don't set GETGROUPS_LIB here; now it's
87200         done via getgroups.m4's wrapper function.
87201         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87202         rather than just in sh-util/configure.in, so that the
87203         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87204         same.
87205         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87206         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87207         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87208         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87209         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87210         Remove code that is now done by the newly-required macros.
87211         Append $(EXEEXT) to DF_PROG.
87212         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87213         Do not invoke or require the following here,
87214         since prereq.m4 or some gnulib .m4 now does this for us:
87215         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87216         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87217         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87218         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87219         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87220         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87221         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87222         AC_FUNC_OBSTACK.
87223         Do not replace the following functions, as this is now the job
87224         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87225         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87226         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87227         atexit getpass, strdup, getpagesize.
87228         Replace 'raise'.
87229         Do not check for the following functions, as this is now the job
87230         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87231         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87232         setregid.
87233         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87234         Check for sys/sysctl.h.
87235         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87236         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87237         of checking for ssize_t ourselves.
87238
87239         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87240         Require every macro that gnulib/modules/* suggests for us.
87241         (jm_PREREQ_ADDEXT): New macro.
87242         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87243         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87244
87245         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87246         (gl_PHYSMEM): Use it.
87247         Also check for `table' function.
87248         Check for new headers and functions.
87249         Add check for sys/sysmp.h.
87250         With suggestions from Kaveh Ghazi.
87251         Ignore headers that are present but cannot be compiled.  This
87252         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87253         C 5.4.
87254
87255 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87256
87257         Document merge from coreutils.
87258         * modules/userspec: Depend on posixver.
87259         * modules/strftime: Depend on tzset.
87260
87261 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87262
87263         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87264         rather than tab, after '#' in shell-script copyright notices.
87265         Suggested by Bruno Haible.
87266
87267 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87268
87269         * config/srclist-update: Use three spaces, rather than tab, after '#'
87270         in shell-script copyright notices.  Suggested by Bruno Haible.
87271         Remove unnecessary parenthesization in regular expression.
87272
87273 2003-08-15  Jim Meyering  <jim@meyering.net>
87274
87275         Merge from coreutils.
87276         * lib/xgethostname.c: Include <stdlib.h>.
87277         (xghostname): Don't exit for anything other than memory-related
87278         failure; just return NULL.
87279         * lib/userspec.c: Include "posixver.h".
87280         (parse_user_spec): Accept `.' as a separator only
87281         in pre-POSIX-200112 mode.
87282         * lib/strtoimax.c: Use #elif rather than #else #if.
87283         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87284         Remove function, now that we can rely on a working tzset function.
87285         [!_LIBC]: Ensure that the required autoconf test has been run.
87286         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87287         Use underlying_strftime for %r.
87288         * lib/sha.c: Merge in some clean-up and optimization changes from
87289         glibc.
87290         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87291         Ensure that it is a multiple of 64.
87292         Rearrange loop exit tests so as to avoid performing an
87293         additional fread after encountering an error or EOF.
87294         * lib/realloc.c: Update copyright date.
87295
87296 2003-08-15  Jim Meyering  <jim@meyering.net>
87297         and Paul Eggert  <eggert@twinsun.com>
87298
87299         Merge from coreutils.
87300         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87301         member but strut utmpx does not.  Needed for AIX 4.3.3.
87302         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87303
87304 2003-08-15  Jim Meyering  <jim@meyering.net>
87305         and Paul Eggert  <eggert@cs.ucla.edu>
87306
87307         Merges from coreutils, etc.
87308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87309         Require gl_FUNC_TZSET_CLOBBER.
87310         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87311         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87312         members.
87313
87314 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87315
87316         Help the merge from coreutils.
87317         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87318         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87319         * m4/tzset.m4: Use it too.
87320
87321 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87322
87323         * modules/tzset: New file.
87324
87325 2003-08-14  Jim Meyering  <jim@meyering.net>
87326
87327         Merges from coreutils.
87328         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87329         variable names, rather than @FNMATCH_H@.
87330         * modules/alloca: Likewise for $(ALLOCA_H).
87331
87332         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87333         the three copies of the literal target, `fnmatch.h'.
87334         * modules/alloca (alloca.h): Likewise.
87335
87336 2003-08-14  Jim Meyering  <jim@meyering.net>
87337
87338         Merge from coreutils.
87339         * m4/tzset.m4: New file.
87340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87341         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87342         otherwise, AIX 5.1 systems would end up using the latter.
87343         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87344         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87345         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87346         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87347
87348 2003-08-14  Jim Meyering  <jim@meyering.net>
87349
87350         Merge from coreutils.
87351         * lib/obstack.h: Whitespace changes.
87352         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87353         and xcalloc return values.
87354         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87355         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87356         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87357         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87358         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87359         error from mntctl.
87360         Use mntctl's return value to drive the entry-processing loop, since
87361         we can't rely on the value of the vmt_length member in the last
87362         entry.  On some systems doing so could result in exhausting
87363         virtual memory.  Based in part on a patch from Mike Jetzer.
87364
87365 2003-08-14  Jim Meyering  <jim@meyering.net>
87366         and Paul Eggert  <eggert@twinsun.com>
87367
87368         Merges from coreutils, plus other fixes.
87369         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87370         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87371         for credits and details.  Thanks to Kaveh Ghazi for helping
87372         to keep these files in sync.
87373         (ARRAY_SIZE): Define it.
87374         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87375         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87376         (memcasecmp): Don't assume size_t fits in unsigned int.
87377         Remove casts and duplicate code.
87378         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87379         (memcpy): Remove definition.
87380         Merge in some clean-up and optimization changes from glibc.
87381         [BLOCKSIZE]: Move definition to top of file.
87382         Ensure that it is a multiple of 64.
87383         Rearrange loop exit tests so as to avoid performing an
87384         additional fread after encountering an error or EOF.
87385         * lib/md5.h (md5_uintptr): Define.
87386         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87387         return to the initial working directory.  Preserve errno
87388         for caller.
87389         * lib/idcache.c: Include "xalloc.h".
87390         (xmalloc, xrealloc): Remove decls.
87391         (getuser): Remove casts no longer required in C89.
87392         * lib/human.c: Include stdio.h, for sprintf.
87393         * lib/group-member.c: Include "xalloc.h".
87394         (xmalloc, xrealloc): Remove decls.
87395         (get_group_info): Remove casts no longer required in C89.
87396         * lib/getusershell.c (readname): Remove casts no longer required in
87397         C89.
87398         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87399         * lib/getline.c: Whitespace fix, from coreutils.
87400
87401 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87402
87403         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87404         Check for isascii.
87405
87406         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87407         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87408         Undo previous (whitespace-only) change.
87409
87410 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87411
87412         * lib/exclude.c: Include <ctype.h>
87413         (IN_CTYPE_DOMAIN): New macro.
87414         (is_space): New fn.
87415         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87416         and empty lines.
87417
87418         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87419         Undo previous (whitespace-only) change.
87420
87421 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87422
87423         * config/srclist-update: Change update back to the old behavior,
87424         leaving whitespace alone.  Use one 'sed' command rather than a
87425         pipeline.
87426         (fixlicense): Now a variable, not a function.
87427         (remove_trailing_blanks): Remove.
87428         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87429         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87430         Undo previous (whitespace-only) change.
87431
87432 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87433
87434         Merge from coreutils.
87435         * modules/euidaccess: Add lib_SOURCES, include for new
87436         file euidaccess.h
87437
87438 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87439
87440         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87441         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87442         Normalize leading white space and remove trailing white space.
87443
87444         Merge from coreutils
87445         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87446
87447         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87448         0.12.1.  These files are now being upgraded automatically by
87449         ../config/srclist-update.
87450
87451 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87452
87453         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87454         Normalize leading white space and remove trailing white space.
87455         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87456         notice, as per ../config/srclist-update.
87457
87458         Merge from coreutils.
87459         * lib/euidaccess.h: New file.
87460         * lib/euidaccess.c: Include it.
87461         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87462         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87463         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87464
87465 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87466
87467         * config/srclist-update: Add copyright notice.
87468         (remove_id_lines, remove_trailing_blanks): New constants.
87469         (fixfile): Use them to normalize spacing a bit in copied files.
87470         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87471         Normalize leading white space and remove trailing white space.
87472
87473         * config/texinfo.tex: Sync with texinfo.
87474
87475         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87476         strtoul.c from libc, to merge coreutils whitespace changes.
87477
87478         * config/srclist.txt: Get the following m4 files from gettext:
87479         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87480         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87481         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87482         wint_t.m4.
87483
87484 2003-08-12  Karl Berry  <karl@gnu.org>
87485
87486         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87487         been made.
87488
87489 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87490
87491         * modules/gnu-source, m4/gnu-source.m4:
87492         Remove; we're assuming Autoconf 2.54 or later now.
87493         Suggested by Bruno Haible.
87494         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87495
87496 2003-08-11  Bruno Haible  <bruno@clisp.org>
87497
87498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87499
87500 2003-08-11  Bruno Haible  <bruno@clisp.org>
87501
87502         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87503         (vasnprintf): Use it instead of wcslen.
87504
87505 2003-08-11  Bruno Haible  <bruno@clisp.org>
87506
87507         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87508         value to ensure that _Bool promotes to int. Use #define for _Bool when
87509         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87510
87511 2003-08-10  Karl Berry  <karl@gnu.org>
87512
87513         * lib/regex.h: update from libc (whitespace fix).
87514
87515 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87516
87517         Merge some files from coreutils.  These changes were
87518         originally made by Jim Meyering.
87519         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87520         many older Unixes require this.
87521         * lib/alloca.c (alloca): Remove cast to argument of free;
87522         no longer needed in C89.
87523         * lib/alloca_.h, regex.h: Fix white space to match
87524         what GNU indent does.
87525
87526 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87527
87528         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87529         apparently Emacs's Unicode mode got confused before my 2003-08-05
87530         checkin.
87531
87532 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87533
87534         * m4/extensions.m4: New file.
87535         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87536         Require gl_USE_SYSTEM_EXTENSIONS.
87537         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87538         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87539
87540 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87541
87542         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87543         * modules/extensions, modules/gnu-source: New files.
87544         * modules/timespec, modules/unlocked-io: Depend on extensions.
87545
87546 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87547
87548         * modules/restrict: New file.
87549         * MODULES.html.sh (func_all_modules): Add restrict.
87550         * modules/regex: Depend on restrict.
87551
87552 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87553
87554         * m4/restrict.m4: New file.
87555         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87556
87557 2003-08-07  Bruno Haible  <bruno@clisp.org>
87558
87559         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87560         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87561
87562 2003-08-07  Bruno Haible  <bruno@clisp.org>
87563
87564         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87565         makes the module 'getndelim2' compatible with the module 'getline'.
87566
87567 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87568
87569         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87570         byte with "\201" to avoid glitches when editing that source file
87571         with multi-gnome-terminal.
87572
87573 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87574
87575         * lib/bumpalloc.h: Remove.
87576
87577 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87578
87579         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87580         * modules/bumpalloc: Remove.
87581
87582 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87583
87584         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87585         GNU coding style.
87586
87587         Merge from coreutils.
87588         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87589         1. From glibc.
87590         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87591         from Karl Berry, implemented by Jim Meyering.
87592         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87593         from Dmitry V. Levin.
87594         Remove anachronistic cast of xrealloc.
87595         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87596         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87597         type. Otherwise, it wouldn't compile with at least /bin/cc on
87598         ymp-cray-unicos9.0.2.X.
87599         Combine two mostly-identical uses of alloca into one.
87600         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87601
87602 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87603
87604         [From Emacs.]
87605
87606         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87607         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87608         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87609         obsolete NLIST_NAME_UNION.
87610         [__GNU__]: Undef BSD and FSCALE.
87611         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87612
87613 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87614
87615         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87616         an enum type, so that it's guaranteed to promote to int.  See:
87617         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87618
87619 2003-08-03  Karl Berry  <karl@gnu.org>
87620
87621         * config/depcomp: update from automake.
87622
87623 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87624
87625         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87626         (strerror): Don't assume that a printable int fits in 14 bytes.
87627
87628 2003-07-31  Bruno Haible  <bruno@clisp.org>
87629
87630         * modules/getpass-gnu: New file.
87631         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87632
87633 2003-07-31  Bruno Haible  <bruno@clisp.org>
87634
87635         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87636
87637 2003-07-24  Karl Berry  <karl@gnu.org>
87638
87639         * config/missing: update from automake.
87640
87641 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87642             Bruno Haible  <bruno@clisp.org>
87643
87644         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87645         * lib/getline.c (getline, getdelim): Likewise.
87646         Remove _GNU_SOURCE define; now it's defined in config.h through
87647         m4/getline.m4.
87648
87649 2003-07-23  Karl Berry  <karl@gnu.org>
87650
87651         * config/config.sub: update from prep.
87652
87653 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87654
87655         * modules/xalloc (Depends-on): Add exitfail.
87656         * modules/xmemcoll: Likewise.
87657
87658 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87659
87660         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87661         over-parenthesization in macros.
87662
87663         Sync with coreutils.
87664
87665         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87666         required by C99.
87667
87668         Use `exit_failure' for xalloc and xmemcoll instead of their own
87669         private exit-failure variables.
87670         * lib/xalloc.h (xalloc_exit_failure): Remove.
87671         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87672         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87673         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87674         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87675         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87676
87677 2003-07-20  Jim Meyering  <jim@meyering.net>
87678
87679         * modules/closeout (Depends-on): Add exitfail.
87680         Suggestion from Bruno Haible.
87681
87682 2003-07-19  Karl Berry  <karl@gnu.org>
87683
87684         * config/config.sub: update from prep.
87685
87686 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87687
87688         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87689         Remove.
87690         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87691         to test that it can stand by itself.  Include "exitfail.h".
87692         Clients should set exit_failure instead.
87693         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87694
87695 2003-07-18  Bruno Haible  <bruno@clisp.org>
87696
87697         * modules/getndelim2: New file.
87698         * modules/getline: Share files with module getndelim2.
87699         * modules/getnline: Depend on getndelim2 instead of sharing files with
87700         it. Add getnline.c to lib_SOURCES.
87701         * MODULES.html.sh (func_all_modules): Add getndelim2.
87702
87703 2003-07-18  Bruno Haible  <bruno@clisp.org>
87704
87705         * m4/getndelim2.m4: New file.
87706         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87707         invoke gl_PREREQ_GETNDELIM2.
87708         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87709         gl_PREREQ_GETNDELIM2.
87710         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87711         gl_GETNDELIM2.
87712
87713 2003-07-18  Bruno Haible  <bruno@clisp.org>
87714
87715         * lib/getndelim2.h: New file.
87716         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87717         getndelim2.h.
87718         (getndelim2): Make non-static. Change return type to ssize_t.
87719         * lib/getline.h: Change argument names.
87720         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87721         * lib/getnline.c: Include getndelim2.h.
87722
87723 2003-07-18  Andreas Schwab  <schwab@suse.de>
87724
87725         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87726
87727 2003-07-17  Karl Berry  <karl@gnu.org>
87728
87729         * config/config.sub: update from prep.
87730
87731 2003-07-17  Bruno Haible  <bruno@clisp.org>
87732
87733         * modules/getnline: New file.
87734         * modules/getline: Add lib/getndelim2.c to source file list.
87735         * MODULES.html.sh (func_all_modules): Add getnline.
87736
87737 2003-07-17  Bruno Haible  <bruno@clisp.org>
87738
87739         * m4/getnline.m4: New file.
87740
87741 2003-07-17  Bruno Haible  <bruno@clisp.org>
87742
87743         * m4/Makefile.am.in: Remove file.
87744         * m4/Makefile.am: Remove file.
87745         * m4/Makefile.in: Remove file.
87746
87747 2003-07-17  Bruno Haible  <bruno@clisp.org>
87748
87749         * lib/getnline.h: New file.
87750         * lib/getnline.c: New file.
87751         * lib/getndelim2.c: New file, extracted from getline.c.
87752         (getndelim2): Renamed from getdelim2, with added nmax argument.
87753         * lib/getline.c: Include getndelim2.c.
87754         (getdelim2): Moved out to getndelim2.c.
87755         (getline, getdelim): Update.
87756
87757 2003-07-17  Bruno Haible  <bruno@clisp.org>
87758
87759         * lib/Makefile.am: Remove file.
87760         * lib/Makefile.in: Remove file.
87761
87762 2003-07-17  Bruno Haible  <bruno@clisp.org>
87763
87764         * configure.in: Remove file.
87765         * Makefile.in: Remove file.
87766
87767 2003-07-17  Bruno Haible  <bruno@clisp.org>
87768
87769         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87770
87771 2003-07-16  Karl Berry  <karl@gnu.org>
87772
87773         * config/srclist-update: was running fixlicense twice, which caused
87774                 texinfo.tex to be nullified for some reason.  Simplify,
87775                 $gplsrc is no longer needed as far as I can see?
87776
87777 2003-07-16  Jim Meyering  <jim@meyering.net>
87778
87779         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87780
87781 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87782
87783         * config/srclist.txt: Get the following files from gettext-runtime/intl
87784         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87785         ref-del.sin.  From Bruno Haible.
87786         * config/srclist-update (fixfile): Change grep pattern again, since the
87787         previous fix didn't work (there was another trailing $).  Use
87788         '[$]' to escape the $s.
87789
87790 2003-07-15  Karl Berry  <karl@gnu.org>
87791
87792         * lib/vasnprintf.c: update from gettext.
87793
87794 2003-07-15  Karl Berry  <karl@gnu.org>
87795
87796         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87797         gets expanded when surrounded by '$'.
87798
87799 2003-07-15  Jim Meyering  <jim@meyering.net>
87800
87801         * modules/save-cwd: Don't depend on error.  From Derek Price.
87802
87803 2003-07-15  Jim Meyering  <jim@meyering.net>
87804
87805         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87806
87807 2003-07-14  Simon Josefsson  <jas@extundo.com>
87808
87809         * modules/mempcpy: New file.
87810         * MODULES.html.sh (func_all_modules): Add mempcpy.
87811
87812 2003-07-14  Simon Josefsson  <jas@extundo.com>
87813
87814         * m4/mempcpy.m4: New file.
87815
87816 2003-07-14  Simon Josefsson  <jas@extundo.com>
87817
87818         * lib/mempcpy.h: New file.
87819         * lib/mempcpy.c: New file.
87820
87821 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87822
87823         * modules/getdate, modules/posixtm: Depend on mktime.
87824
87825 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87826
87827         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87828         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87829         unicodeio.c, unicodeio.h, unlocked-io.h:
87830         Switch from LGPL to GPL.
87831
87832 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87833
87834         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87835         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87836         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87837         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87838         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87839         updated automatically by ../config/srclist-update.  This changes
87840         their license from LPGL to GPL.
87841
87842 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87843
87844         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
87845         assumed to refer to the root of the most recent stable gettext version.
87846         * config/srclistvars.sh: Add defaults for eggert.
87847         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
87848         Match "This program" as well as "The program".  This is needed
87849         for gettext.
87850
87851 2003-07-14  Jim Meyering  <jim@meyering.net>
87852
87853         Don't emit diagnostics.  Let callers do that.
87854         * lib/save-cwd.c: Don't include "error.h".
87855         (save_cwd): Don't call error.  Ensure that errno is valid
87856         when returning nonzero.
87857
87858         * lib/save-cwd.h (restore_cwd): Update prototype.
87859         * lib/save-cwd.c (restore_cwd): Remove two parameters.
87860         Simplify.  Don't call error upon failure.  Let callers do that.
87861         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
87862         when auditing is enabled.  But don't bother updating the #if.
87863
87864 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
87865
87866         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
87867         it breaks C++ compilation.
87868         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
87869
87870 2003-07-10  Simon Josefsson  <jas@extundo.com>
87871
87872         * modules/strchrnul (Makefile.am): Add strchrnul.h.
87873
87874 2003-07-10  Jim Meyering  <jim@meyering.net>
87875
87876         * m4/clock_time.m4: Remove trailing blank.
87877         * m4/intmax_t.m4: Likewise.
87878
87879 2003-07-10  Jim Meyering  <jim@meyering.net>
87880
87881         * lib/vasnprintf.c: Remove trailing blanks.
87882         Make cpp indentation consistent.
87883
87884 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87885
87886         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
87887         posixver.c, strftime.c, strnlen.c, strverscmp.c:
87888         Switch from LGPL to GPL.
87889
87890 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87891
87892         * config/srclist.txt: Sort sublists.  Add
87893         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
87894         that differ from gnulib for one reason or another; we'd like this list
87895         to be smaller but for now let's document what we have.
87896
87897 2003-07-08  Paul Eggert  <eggert@twinsun.com>
87898
87899         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
87900         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
87901         and sweeter "eval x=$x".
87902         * config/srclist.txt: Get lib/argp* from glibc.
87903
87904 2003-07-07  Paul Eggert  <eggert@twinsun.com>
87905
87906         * lib/mktime.c: Fix some boundary cases and remove need for floating
87907         point.
87908
87909         Issue a compile-time diagnostic if time_t is floating point, or if
87910         two's complement arithmetic is not in effect, or if arithmetic
87911         right shift does not propagate the sign.  These assumptions were
87912         all in the original code but they weren't checked.
87913
87914         (TIME_T_MIDPOINT, verify): New macros.
87915         (__isleap): Remove; it has integer overflow problems.
87916         (leapyear): New function, without those problems.
87917         (ydhms_tm_diff): Remove; splitting into two parts.
87918         (ydhms_diff): New function, containing the arithmetic part of
87919         the old ydhms_tm_diff function.  Issue a compile-time
87920         diagnostic if we are not using C99 integer division.
87921         Avoid casts when possible.
87922         (guess_time_tm): New function, containing the checking part of
87923         the old ydhms_tm_diff function.  Return the new value, rather than
87924         the difference between it and the old.  Accept a new argument T
87925         so that *T specifies the old value.  Check for overflow in the result.
87926
87927         (__mktime_internal): Use a time_t offset, not a long int offset.
87928         This undoes the 2003-06-04 change, which is no longer needed now
87929         that we have better overflow checking.
87930         (localtime_offset): Likewise.
87931
87932         (__mktime_internal): Avoid harmful overflow on hosts where time_t
87933         and long are 64-bit but int is only 32-bit.
87934         (ydhms_diff): Use long int to store year1 and yday1.
87935         Issue a compile-time diagnostic if long int is not wide enough.
87936
87937         (__mktime_internal): Use long int to store adjusted year and yday.
87938         Use plain C rather than preprocessor commands, if that doesn't
87939         affect efficiency.
87940         Check for overflow (and try to repair) after each probe
87941         rather than checking only at the very end.  This avoids some bugs
87942         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
87943         does not equal GMT offset at maximum time).
87944         Use integer to check for overflow rather than floating point; this
87945         is more portable to non-IEEE hosts, and is a tad faster.
87946         When we detect that we are oscillating between two values,
87947         don't check whether tm_isdst has the requested value, since
87948         we already know the answer.  When tm_isdst has the wrong value,
87949         use a different heuristic to find the right one, based on the
87950         extreme values actually observed in practice in tz2003a,
87951         rather than the (overly optimistic) "previous 3 calendar quarters".
87952
87953         (not_equal_tm, print_tm, check_result): Use "const T" rather than
87954         "T const" to accommodate glibc style.
87955         (check_result): Use less-confusing report format.  "long" -> "long int.
87956         (main): Likewise.
87957         Don't loop if the iteration overflows time_t.
87958         Allow a negative step in the iteration.
87959
87960 2003-07-06  Karl Berry  <karl@gnu.org>
87961
87962         * config/depcomp: update from automake.
87963         * config/config.sub: update from prep.
87964
87965 2003-07-03  Karl Berry  <karl@gnu.org>
87966
87967         * config/config.guess: update from prep.
87968
87969 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87970
87971         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
87972         xreadlink.c now includes it unconditionally.
87973
87974 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87975
87976         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
87977         having it depend on HAVE_SYS_TYPES_H.
87978
87979 2003-07-01  Bruno Haible  <bruno@clisp.org>
87980
87981         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
87982         <sys/types.h> should be sufficient.
87983         Reported by Paul Eggert.
87984
87985 2003-06-26  Karl Berry  <karl@gnu.org>
87986
87987         * config/depcomp: update from automake.
87988
87989 2003-06-26  Bruno Haible  <bruno@clisp.org>
87990
87991         * modules/human: Depend on module stdbool.
87992
87993 2003-06-25  Bruno Haible  <bruno@clisp.org>
87994
87995         * modules/readlink: New file.
87996         * modules/xreadlink: Depend on it.
87997         * MODULES.html.sh (func_all_modules): Add readlink.
87998
87999 2003-06-25  Bruno Haible  <bruno@clisp.org>
88000
88001         * m4/readlink.m4: New file.
88002
88003 2003-06-25  Bruno Haible  <bruno@clisp.org>
88004
88005         * lib/readlink.c: New file.
88006
88007 2003-06-22  Karl Berry  <karl@gnu.org>
88008
88009         * config/srclist.txt: update mkinstalldirs from automake.
88010         * config/mkinstalldirs: update.
88011
88012 2003-06-22  Bruno Haible  <bruno@clisp.org>
88013
88014         Portability to mingw32.
88015         * m4/ssize_t.m4: New file, from GNU gettext.
88016         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88017         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88018
88019 2003-06-22  Bruno Haible  <bruno@clisp.org>
88020
88021         * modules/safe-read: Add m4/ssize_t.m4.
88022         * modules/xreadlink: Add m4/ssize_t.m4.
88023
88024 2003-06-20  Bruno Haible  <bruno@clisp.org>
88025
88026         Assume C89, so PARAMS isn't needed.
88027         * lib/unicodeio.h (PARAMS): Remove.
88028         * lib/unicodeio.c: Don't use PARAMS.
88029
88030 2003-06-18  Karl Berry  <karl@gnu.org>
88031
88032         * config/config.{guess,sub}: update from prep.
88033
88034 2003-06-18  Jim Meyering  <jim@meyering.net>
88035
88036         Merge changes from coreutils.
88037         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88038         Remove explicit declarations of xmalloc and realloc.
88039         Include xalloc.h.
88040         (read_utmp): Remove anachronistic cast of xmalloc.
88041
88042 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88043
88044         Assume C89, so PARAMS isn't needed.
88045         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88046         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88047         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88048         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88049         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88050         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88051         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88052         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88053         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88054         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88055         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88056         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88057         no longer needed. Anyway, config.h should always be included before any
88058         other file.
88059
88060 2003-06-11  Simon Josefsson  <jas@extundo.com>
88061
88062         * modules/sysexits: New file.
88063         * MODULES.html.sh (func_all_modules): Add sysexits.
88064
88065 2003-06-11  Simon Josefsson  <jas@extundo.com>
88066
88067         * lib/sysexit_.h: New file.
88068
88069 2003-06-11  Derek Price  <derek@ximbiot.com>
88070
88071         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88072         necessary.
88073
88074 2003-06-11  Bruno Haible  <bruno@clisp.org>
88075
88076         * m4/sysexits.m4: New file.
88077
88078 2003-06-10  Simon Josefsson  <jas@extundo.com>
88079
88080         * lib/argp.h: New file, from glibc.
88081         * lib/argp-ba.c: New file, from glibc.
88082         * lib/argp-eexst.c: New file, from glibc.
88083         * lib/argp-fmtstream.c: New file, from glibc.
88084         * lib/argp-fmtstream.h: New file, from glibc.
88085         * lib/argp-fs-xinl.c: New file, from glibc.
88086         * lib/argp-help.c: New file, from glibc.
88087         * lib/argp-namefrob.h: New file, from glibc.
88088         * lib/argp-parse.c: New file, from glibc.
88089         * lib/argp-pv.c: New file, from glibc.
88090         * lib/argp-pvh.c: New file, from glibc.
88091         * lib/argp-xinl.c: New file, from glibc.
88092
88093 2003-06-10  Simon Josefsson  <jas@extundo.com>
88094
88095         * modules/strchrnul: New file.
88096
88097 2003-06-10  Simon Josefsson  <jas@extundo.com>
88098
88099         * modules/argp: New file.
88100
88101 2003-06-10  Simon Josefsson  <jas@extundo.com>
88102
88103         * m4/strchrnul.m4: New file.
88104
88105 2003-06-10  Simon Josefsson  <jas@extundo.com>
88106
88107         * lib/strchrnul.h: New file.
88108         * lib/strchrnul.c: New file.
88109
88110 2003-06-10  Bruno Haible  <bruno@clisp.org>
88111
88112         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88113
88114 2003-06-07  Karl Berry  <karl@gnu.org>
88115
88116         * config/config.{guess,sub}: update from prep.
88117
88118 2003-06-07  Jim Meyering  <jim@meyering.net>
88119
88120         * modules/strtod: Use $(...) notation, not @...@ for
88121         AC_REPLACE'd variables.
88122         * modules/localcharset: Likewise.
88123
88124 2003-06-07  Jim Meyering  <jim@meyering.net>
88125
88126         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88127         in place of my name in the copyright comment.
88128         Remove definition and uses of __P.
88129
88130         From coreutils.
88131         * lib/stat.c: Don't declare xmalloc explicitly.
88132         Instead, include "xalloc.h".
88133         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88134         xrealloc, and xcalloc return values.
88135         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88136         Improve comment.
88137         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88138
88139 2003-06-07  Bruno Haible  <bruno@clisp.org>
88140
88141         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88142         avoid AC_CONFIG_LINKS.
88143         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88144         fnmatch.h, to avoid AC_CONFIG_LINKS.
88145         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88146
88147 2003-06-07  Bruno Haible  <bruno@clisp.org>
88148
88149         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88150         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88151         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88152         directory.
88153         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88154         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88155         directory.
88156
88157 2003-06-06  Jim Meyering  <jim@meyering.net>
88158
88159         Merge from coreutils.
88160         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88161         Consolidate declarations and initializations of *_base* locals.
88162
88163         Merge from coreutils.
88164         This avoids a core dump on systems without GNU putenv,
88165         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88166         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88167         (unsetenv): New static function, from GNU libc.
88168         (rpl_putenv): Use it.
88169
88170         * lib/modechange.c: Remove trailing blanks.
88171
88172         Merge from coreutils.
88173         * lib/fsusage.c: Remove declaration of statfs.
88174         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88175
88176         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88177
88178 2003-06-06  Jim Meyering  <jim@meyering.net>
88179
88180         * lib/stdbool_.h: Renamed from stdbool.h.in.
88181
88182 2003-06-06  Jim Meyering  <jim@meyering.net>
88183             Bruno Haible  <bruno@clisp.org>
88184
88185         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88186         Adjust Makefile.am snippet not to redirect directly to target.
88187         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88188
88189 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88190
88191         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88192         mismatch, look in future quarters as well as past.  This fixes a
88193         bug when processing fall-backwards gaps immediately after a long
88194         period of daylight-saving time.
88195
88196         * lib/mktime.c: Assume freestanding C89 or better.
88197         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88198         (__P): Remove; not used.
88199         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88200         (mktime, not_equal_tm, print_tm, check_result,
88201         main): Use prototypes.  Use const * where appropriate.
88202         (main): Fix typo in testing code that uncovered by above changes.
88203         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88204
88205 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88206
88207         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88208         locale.h, localeconv.  This merges changes from coreutils.
88209
88210         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88211         It can be removed after the next Autoconf is released.
88212         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88213         needed.
88214
88215 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88216
88217         * lib/mktime.c: Fix Debian bug 177940
88218         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88219         (localtime_offset): Now long int, not time_t, because we want it
88220         to be guaranteed to be signed.  All uses changed.
88221         (__mktime_internal): If overflow would occur when adding offset,
88222         don't add it.
88223
88224         Merge 'human' changes from coreutils.  Rewrite to support
88225         locale-specific notations like thousands separators.
88226         * lib/human.c: Simplify authorship notice.
88227         Include human.h immediately after config.h.
88228         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88229         <limits.h>: Do not include, since human.h does.
88230         (SIZE_MAX, UINTMAX_MAX): New macros.
88231         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88232         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88233         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88234         (power_letter): Renamed from suffixes.
88235         (generate_suffix_backwards): Remove.
88236         (adjust_value): Now takes int style (because of human.h changes)
88237         and long double value (for greater precision on some platforms).
88238         (group_number): New function.
88239         (human_readable): Use it.  Use integer options, not enum.
88240         Put the options before the sizes in the arg list.
88241         Support all the new options.
88242         The old human_readable function has been removed;
88243         use inttostr.h instead.
88244         (human_readable, default_block_size, humblock):
88245         Use uintmax_t, not int, for block sizes.
88246         (human_readable_inexact, block_size_types): Remove.
88247         (block_size_opts): New constant.
88248         (human_options): Renamed from human_block_size, with new signature
88249         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88250         * lib/human.h: Add copyright and authorship notice.
88251         Include <limits.h> and <stdbool.h> unconditionally.
88252         (PARAMS): Remove.  All uses removed.
88253         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88254         (enum human_inexact_style): Remove tag; now a nameless enum.
88255         (human_floor, human_ceiling, human_round_to_even): Now have
88256         values 2, 0, 1 rather than -1, 1, 0.
88257         (human_group_digits, human_suppress_point_zero, human_autoscale,
88258         human_base_1024, human_SI, human_B): New constants.
88259         (human_readable_inexact, human_block_size): Remove.
88260         (human_readable): Size args are now uintmax_t, not int.
88261         (human_options): New decl.
88262
88263         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88264         unnecessary now that we assume C89 or better.  This change
88265         imported from coreutils.
88266
88267         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88268         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88269         in the 2003-05-30 sync from glibc.
88270
88271         .h files should stand alone, but we shouldn't include <sys/types.h>
88272         if we can get away with just <stddef.h>.
88273
88274         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88275         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88276         rather than <sys/types.h>, as we merely need size_t.
88277         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88278         to get size_t.
88279         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88280         Include <stdio.h>, to get FILE.
88281         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88282         memcasecmp.h has included <stddef.h> and all we need is size_t.
88283         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88284         our interface, instead of including <sys/types.h>
88285
88286 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88287
88288         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88289         now, as glibc mktime is buggy on non-glibc systems.
88290
88291 2003-06-03  Karl Berry  <karl@gnu.org>
88292
88293         * config/config.sub: update from prep.
88294
88295 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88296
88297         [from coreutils]
88298         Fix some minor time-related bugs with POSIX time arguments.
88299         Some valid time stamps were being rejected (notably -1, and
88300         time stamps before 1900 on 64-bit hosts).  And some invalid
88301         time stamps were being accepted, e.g. September 31.
88302
88303         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88304         that we can return (time_t) -1 successfully.
88305         * lib/posixtm.c: Likewise.
88306         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88307         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88308         (t): Remove static var.
88309         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88310         of static var.  All uses changed.
88311         (year): Do not reject years before 1900; they can occur with
88312         64-bit time_t.
88313         (posix_time_parse): Do not check for out-of-range components;
88314         that is now the caller's responsibility, since our checks were
88315         only approximations.
88316         (posixtime): Use mktime to check for out-of-range components,
88317         since it knows them exactly.
88318         If mktime returns (time_t) -1, check whether an error actually occurred
88319         by invoking localtime on -1.
88320         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88321         posixtime failures better.
88322         Improve the test data (in comments only).
88323
88324 2003-06-02  Karl Berry  <karl@gnu.org>
88325
88326         * config/mkinstalldirs (version): new variable.
88327         (--version): new option.
88328         (usage): improve message.
88329
88330 2003-05-30  Karl Berry  <karl@gnu.org>
88331
88332         * lib/mktime.c: update from libc.
88333
88334 2003-05-30  Bruno Haible  <bruno@clisp.org>
88335
88336         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88337         * config/config.rpath: Upgrade to gettext-0.12.1.
88338
88339 2003-05-30  Bruno Haible  <bruno@clisp.org>
88340
88341         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88342         * m4/nls.m4: New file, from gettext-0.12.1.
88343         * m4/po.m4: New file, from gettext-0.12.1.
88344         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88345
88346 2003-05-30  Bruno Haible  <bruno@clisp.org>
88347
88348         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88349         * lib/localcharset.h: Likewise.
88350         * lib/localcharset.c: Likewise.
88351
88352 2003-05-29  Karl Berry  <karl@gnu.org>
88353
88354         * config/config.rpath: update from gettext.
88355
88356 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88357
88358         Assume the headers required for C89 freestanding compilers.
88359         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88360         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88361         * m4/human.m4 (gl_HUMAN): Likewise.
88362         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88363         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88364         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88365         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88366         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88367         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88368
88369 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88370
88371         Assume the headers required for C89 freestanding compilers.
88372         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88373         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88374         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88375         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88376         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88377         define, since <limits.h> is guaranteed to do that.
88378         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88379         * lib/exclude.c: Include <stdbool.h> unconditionally.
88380         * lib/tempname.c: Include <stddef.h> unconditionally.
88381         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88382         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88383         <stddef.h> does that.
88384         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88385         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88386         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88387         needed.
88388         * lib/xstrtol.c: Likewise.
88389         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88390         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88391
88392         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88393         warnings on some platforms.
88394
88395         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88396         arbitrarily.
88397
88398 2003-05-26  Jim Meyering  <jim@meyering.net>
88399
88400         Merge in a change from coreutils:
88401         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88402         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88403         that condition, rather than `-1' which is slightly misleading.
88404         Change the name of the cache variable to have the gl_ prefix.
88405         Prompted by a patch from Richard Dawe for DJGPP.
88406
88407 2003-05-24  Karl Berry  <karl@gnu.org>
88408
88409         * config/config.guess: update from prep.
88410
88411 2003-05-22  Karl Berry  <karl@gnu.org>
88412
88413         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88414
88415 2003-05-20  Karl Berry  <karl@gnu.org>
88416
88417         * config/config.guess: update from prep.
88418
88419 2003-05-18  Karl Berry  <karl@gnu.org>
88420
88421         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88422         might actually be set by the user.
88423
88424         * config/depcomp, install-sh, mdate-sh: update from automake.
88425
88426 2003-05-17  Bruno Haible  <bruno@clisp.org>
88427
88428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88429         invalid expansion for AC_EGREP_CPP.
88430         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88431         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88432         Suggested by Akim Demaille <akim@epita.fr> in
88433         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88434
88435 2003-05-12  Jim Meyering  <jim@meyering.net>
88436
88437         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88438         the space-padded-by-default conversion specifiers, %e, %k, %l.
88439
88440 2003-05-12  Bruno Haible  <bruno@clisp.org>
88441
88442         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88443         the string is longer than 4 KB.
88444
88445 2003-05-11  Karl Berry  <karl@gnu.org>
88446
88447         * config/config.{guess,sub}: update from prep.
88448
88449 2003-05-09  Bruno Haible  <bruno@clisp.org>
88450
88451         * modules/error: Add m4/strerror_r.m4 to file list.
88452
88453 2003-05-03  Bruno Haible  <bruno@clisp.org>
88454
88455         Upgrade to Unicode-4.0.
88456         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88457         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88458         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88459         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88460         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88461         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88462         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88463         Change width of U+E0100..U+E01EF from 1 to 0.
88464
88465 2003-04-25  Jim Meyering  <jim@meyering.net>
88466
88467         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88468         of type size_t, not int.
88469
88470 2003-04-25  Bruno Haible  <bruno@clisp.org>
88471
88472         * lib/copy-file.c: Include <stddef.h>, for size_t.
88473
88474 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88475
88476         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88477         code which expansion is under static control.  Patch imported from
88478         Akim Demaille's patch to Bison; see
88479         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88480
88481 2003-04-14  Bruno Haible  <bruno@clisp.org>
88482
88483         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88484
88485 2003-04-11  Jim Meyering  <jim@meyering.net>
88486
88487         Merge changes from Coreutils.
88488
88489         2003-03-22  Jim Meyering  <jim@meyering.net>
88490
88491         * lib/strftime.c (widen): Cast alloca return value to proper type.
88492
88493         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88494
88495         From GNU libc.
88496         * lib/strftime.c (my_strftime): Handle very large width
88497         specifications for numeric values correctly.  Improve checks for
88498         overflow.
88499
88500         2003-01-19  Jim Meyering  <jim@meyering.net>
88501
88502         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88503         definitions.
88504         (nl_get_alt_digit) [! defined my_strftime]: Define.
88505         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88506         _nl_get_alt_digit and _nl_get_walt_digit.
88507
88508         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88509         libc. These changes have no effect outside of _LIBC.
88510
88511 2003-04-10  Bruno Haible  <bruno@clisp.org>
88512
88513         * modules/findprog: New file.
88514         * MODULES.html.sh (func_all_modules): Add it.
88515
88516 2003-04-10  Bruno Haible  <bruno@clisp.org>
88517
88518         * m4/findprog.m4: New file.
88519         * m4/eaccess.m4: New file.
88520
88521 2003-04-10  Bruno Haible  <bruno@clisp.org>
88522
88523         * lib/findprog.h: New file, from GNU gettext.
88524         * lib/findprog.c: New file, from GNU gettext.
88525
88526 2003-04-05  Jim Meyering  <jim@meyering.net>
88527
88528         Merge changes from Coreutils.
88529
88530         * lib/exclude.h (PARAMS): Remove definition and uses.
88531         * lib/exclude.c: Remove uses of `PARAMS'.
88532
88533         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88534         Add test-cases for DOS filenames. Declare program_name.
88535         (main): Set up program_name.  Patch by Rich Dawe.
88536
88537         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88538         error from mntctl.
88539         Use mntctl's return value to drive the entry-processing loop, since
88540         we can't rely on the value of the vmt_length member in the last
88541         entry.  On some systems doing so could result in exhausting
88542         virtual memory.  Based in part on a patch from Mike Jetzer.
88543
88544 2003-04-04  Bruno Haible  <bruno@clisp.org>
88545
88546         * modules/linebreak: New file.
88547         * MODULES.html.sh (func_all_modules): Add it.
88548
88549 2003-04-04  Bruno Haible  <bruno@clisp.org>
88550
88551         * m4/linebreak.m4: New file.
88552
88553 2003-04-04  Bruno Haible  <bruno@clisp.org>
88554
88555         * lib/linebreak.h: New file, from GNU gettext.
88556         * lib/linebreak.c: New file, from GNU gettext with slight
88557         modifications.
88558         * lib/lbrkprop.h: New file, from GNU gettext.
88559
88560 2003-04-03  Bruno Haible  <bruno@clisp.org>
88561
88562         * modules/utf8-ucs4: New file.
88563         * modules/utf16-ucs4: New file.
88564         * modules/ucs4-utf8: New file.
88565         * modules/ucs4-utf16: New file.
88566         * MODULES.html.sh (func_all_modules): Add them.
88567
88568 2003-04-03  Bruno Haible  <bruno@clisp.org>
88569
88570         * m4/utf-ucs4.m4: New file.
88571         * m4/ucs4-utf.m4: New file.
88572
88573 2003-04-03  Bruno Haible  <bruno@clisp.org>
88574
88575         * lib/utf8-ucs4.h: New file, from GNU gettext.
88576         * lib/utf16-ucs4.h: New file, from GNU gettext.
88577         * lib/ucs4-utf8.h: New file, from GNU gettext.
88578         * lib/ucs4-utf16.h: New file, from GNU gettext.
88579
88580 2003-04-02  Bruno Haible  <bruno@clisp.org>
88581
88582         * modules/binary-io: New file.
88583         * MODULES.html.sh (func_all_modules): Add it.
88584
88585 2003-04-02  Bruno Haible  <bruno@clisp.org>
88586
88587         * lib/binary-io.h: New file, from GNU gettext.
88588
88589 2003-04-01  Bruno Haible  <bruno@clisp.org>
88590
88591         * modules/pathname: New file.
88592         * MODULES.html.sh (func_all_modules): Add it.
88593
88594 2003-04-01  Bruno Haible  <bruno@clisp.org>
88595
88596         * lib/pathname.h: New file, from GNU gettext.
88597         * lib/concatpath.c: New file, from GNU gettext.
88598
88599 2003-03-30  Bruno Haible  <bruno@clisp.org>
88600
88601         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88602
88603 2003-03-30  Bruno Haible  <bruno@clisp.org>
88604
88605         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88606         function chown() doesn't exist.
88607
88608 2003-03-28  Bruno Haible  <bruno@clisp.org>
88609
88610         * modules/copy-file: New file.
88611         * MODULES.html.sh (func_all_modules): Add it.
88612
88613 2003-03-28  Bruno Haible  <bruno@clisp.org>
88614
88615         * m4/copy-file.m4: New file.
88616
88617 2003-03-28  Bruno Haible  <bruno@clisp.org>
88618
88619         * lib/copy-file.h: New file, from GNU gettext.
88620         * lib/copy-file.c: New file, from GNU gettext.
88621
88622 2003-03-18  Jim Meyering  <jim@meyering.net>
88623
88624         * lib/quote.c (quote_n): Fix typo in comment.
88625
88626 2003-03-18  Bruno Haible  <bruno@clisp.org>
88627
88628         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88629         checking.
88630         * m4/onceonly_2_57.m4: Likewise.
88631
88632 2003-03-17  Bruno Haible  <bruno@clisp.org>
88633
88634         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88635         (m4_quote): Remove macro.
88636         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88637
88638 2003-03-14  Jim Meyering  <jim@meyering.net>
88639
88640         Merge changes from Coreutils.
88641         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88642         to be const, in order to avoid warnings.
88643         (obstack_room): Likewise.
88644         (obstack_empty_p): Likewise.
88645
88646 2003-03-14  Bruno Haible  <bruno@clisp.org>
88647
88648         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88649         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88650
88651 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88652
88653         Merge changes from Bison.
88654         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88655         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88656         when compiling Bison 1.875's `bitset bset = obstack_alloc
88657         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88658         * lib/hash.c: Include <stdbool.h> unconditionally.
88659
88660 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88661
88662         * m4/onceonly.m4 (m4_quote): New macro.
88663         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88664         Quote AC_FOREACH variable-expansions properly.
88665
88666 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88667
88668         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88669
88670 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88671
88672         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88673         Reported by Bruce Becker; see:
88674         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88675
88676 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88677             Bruno Haible  <bruno@clisp.org>
88678
88679         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88680         Reported by John Hughes, see
88681         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88682
88683 2003-02-20  Bruno Haible  <bruno@clisp.org>
88684
88685         * MODULES.html.sh (func_all_modules): Add poll.
88686
88687 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88688
88689         * modules/poll: New file.
88690
88691 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88692
88693         * lib/poll_.h: New file.
88694         * lib/poll.c: New file.
88695
88696 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88697
88698         * m4/poll.m4: New file.
88699
88700 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88701
88702         * modules/mathl: New file.
88703
88704 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88705
88706         * lib/mathl.h: New file.
88707         * lib/acosl.c: New file.
88708         * lib/asinl.c: New file.
88709         * lib/atanl.c: New file.
88710         * lib/ceill.c: New file.
88711         * lib/cosl.c: New file.
88712         * lib/expl.c: New file.
88713         * lib/floorl.c: New file.
88714         * lib/frexpl.c: New file.
88715         * lib/ldexpl.c: New file.
88716         * lib/logl.c: New file.
88717         * lib/sincosl.c: New file.
88718         * lib/sinl.c: New file.
88719         * lib/sqrtl.c: New file.
88720         * lib/tanl.c: New file.
88721         * lib/trigl.c: New file.
88722         * lib/trigl.h: New file.
88723
88724 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88725
88726         * m4/mathl.m4: New file.
88727
88728 2003-02-18  Bruno Haible  <bruno@clisp.org>
88729
88730         * MODULES.html.sh (func_all_modules): Add mathl.
88731
88732 2003-02-17  Bruno Haible  <bruno@clisp.org>
88733
88734         * modules/mkdtemp: New module.
88735         * MODULES.html.sh (func_all_modules): Add it.
88736
88737 2003-02-17  Bruno Haible  <bruno@clisp.org>
88738
88739         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88740
88741 2003-02-17  Bruno Haible  <bruno@clisp.org>
88742
88743         * lib/mkdtemp.h: New file, from GNU gettext.
88744         * lib/mkdtemp.c: New file, from GNU gettext.
88745
88746 2003-02-02  Jim Meyering  <jim@meyering.net>
88747
88748         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88749         e.g. glibc-2.2.93.
88750
88751 2003-01-31  Bruno Haible  <bruno@clisp.org>
88752
88753         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88754         'rpl_rename'.
88755         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88756         'rpl_strnlen'.
88757         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88758         'rpl_strtod'.
88759         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88760         'rpl_utime'.
88761
88762 2003-01-31  Bruno Haible  <bruno@clisp.org>
88763
88764         * lib/rename.c: #undef rename before defining rpl_rename.
88765         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88766
88767 2003-01-30  Bruno Haible  <bruno@clisp.org>
88768
88769         * modules/vasnprintf, modules/vasprintf: New modules.
88770         * MODULES.html.sh (func_all_modules): Add them.
88771
88772 2003-01-30  Bruno Haible  <bruno@clisp.org>
88773
88774         * m4/signed.m4: New file, from GNU gettext.
88775         * m4/longdouble.m4: New file, from GNU gettext.
88776         * m4/wchar_t.m4: New file, from GNU gettext.
88777         * m4/wint_t.m4: New file, from GNU gettext.
88778         * m4/vasnprintf.m4: New file.
88779         * m4/vasprintf.m4: New file.
88780
88781 2003-01-30  Bruno Haible  <bruno@clisp.org>
88782
88783         * lib/printf-args.h: New file, from GNU gettext.
88784         * lib/printf-args.c: New file, from GNU gettext.
88785         * lib/printf-parse.h: New file, from GNU gettext.
88786         * lib/printf-parse.c: New file, from GNU gettext.
88787         * lib/vasnprintf.h: New file, from GNU gettext.
88788         * lib/vasnprintf.c: New file, from GNU gettext.
88789         * lib/asnprintf.c: New file, from GNU gettext.
88790         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88791         * lib/vasprintf.c: New file, from GNU gettext.
88792         * lib/asprintf.c: New file, from GNU gettext.
88793
88794 2003-01-29  Bruno Haible  <bruno@clisp.org>
88795
88796         * modules/stpncpy: New module.
88797         * MODULES.html.sh (func_all_modules): Add it.
88798
88799 2003-01-29  Bruno Haible  <bruno@clisp.org>
88800
88801         * m4/stpncpy.m4: New file.
88802
88803 2003-01-29  Bruno Haible  <bruno@clisp.org>
88804
88805         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88806         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88807
88808 2003-01-28  Bruno Haible  <bruno@clisp.org>
88809
88810         * modules/c-ctype: New module.
88811         * MODULES.html.sh (func_all_modules): Add it.
88812
88813 2003-01-28  Bruno Haible  <bruno@clisp.org>
88814
88815         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88816         Paul Eggert.
88817         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88818         Paul Eggert.
88819
88820 2003-01-27  Bruno Haible  <bruno@clisp.org>
88821
88822         * modules/xsetenv: New module.
88823         * MODULES.html.sh (func_all_modules): Add it.
88824
88825 2003-01-27  Bruno Haible  <bruno@clisp.org>
88826
88827         * lib/xsetenv.h: New file, from GNU gettext.
88828         * lib/xsetenv.c: New file, from GNU gettext.
88829
88830 2003-01-23  Jim Meyering  <jim@meyering.net>
88831
88832         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88833         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88834
88835 2003-01-23  Bruno Haible  <bruno@clisp.org>
88836
88837         * modules/minmax: New module.
88838         * MODULES.html.sh (func_all_modules): Add it.
88839
88840 2003-01-23  Bruno Haible  <bruno@clisp.org>
88841
88842         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
88843         Eggert.
88844
88845 2003-01-22  Bruno Haible  <bruno@clisp.org>
88846
88847         * modules/exit: New module.
88848         * MODULES.html.sh (func_all_modules): Add it.
88849
88850 2003-01-22  Bruno Haible  <bruno@clisp.org>
88851
88852         * lib/exit.h: New file, from GNU gettext.
88853
88854 2003-01-19  Bruno Haible  <bruno@clisp.org>
88855
88856         * gnulib-tool: Recognize option --extract-maintainer.
88857         (func_get_maintainer): New function.
88858         * modules/*: Add Maintainer entry.
88859
88860 2003-01-16  Jim Meyering  <jim@meyering.net>
88861
88862         * m4/regex.m4: The `regex' struct is both input and output.
88863         Initialize it before each use.  Patch by Tim Waugh.
88864
88865 2003-01-16  Bruno Haible  <bruno@clisp.org>
88866
88867         * MODULES.html.sh: Add a table of contents. Add the module name as
88868         leftmost column. Add hyperlinks.
88869
88870 2003-01-15  Bruno Haible  <bruno@clisp.org>
88871
88872         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
88873
88874 2003-01-15  Bruno Haible  <bruno@clisp.org>
88875
88876         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
88877         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
88878         suffix.
88879
88880 2003-01-15  Bruno Haible  <bruno@clisp.org>
88881
88882         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
88883
88884 2003-01-15  Bruno Haible  <bruno@clisp.org>
88885
88886         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
88887         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
88888
88889 2003-01-14  Jim Meyering  <jim@meyering.net>
88890
88891         * lib/same.c (same_name): Tweak a comment.
88892
88893 2003-01-14  Bruno Haible  <bruno@clisp.org>
88894
88895         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
88896         when a string comparison is sufficient.
88897
88898 2003-01-14  Bruno Haible  <bruno@clisp.org>
88899
88900         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
88901         'unsigned int'.
88902
88903 2003-01-14  Bruno Haible  <bruno@clisp.org>
88904
88905         * lib/hash-pjw.c: Add comment about low quality of this function.
88906
88907 2003-01-13  Bruno Haible  <bruno@clisp.org>
88908
88909         * modules/stpcpy: Distribute lib/stpcpy.h.
88910         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
88911
88912 2003-01-13  Bruno Haible  <bruno@clisp.org>
88913
88914         * modules/*: Add a description.
88915         * modules/strpbrk: Fix Makefile.am snippet.
88916         * modules/strtoimax: Fix dependencies.
88917         * modules/strtoumax: Likewise.
88918
88919 2003-01-13  Bruno Haible  <bruno@clisp.org>
88920
88921         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
88922         * modules/alloca (Makefile.am): All object files depend on alloca.h.
88923         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
88924
88925 2003-01-13  Bruno Haible  <bruno@clisp.org>
88926
88927         * gnulib-tool (func_create_testdir): Store config/* files in the main
88928         directory.
88929         * config.rpath: Move to ...
88930         * config/config.rpath: ... here.
88931         * modules/gettext: Contains config/config.rpath, not config.rpath.
88932         * modules/iconv: Likewise.
88933
88934 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88935
88936         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88937         to avoid collisions with libcurses and libreadline.
88938
88939         * m4/getstr.m4: Remove.
88940         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
88941
88942 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88943
88944         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88945         to avoid collisions with libcurses and libreadline.
88946
88947         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
88948         * lib/getstr.h, getstr.c: Remove.
88949         * lib/getline.c: Include "getline.h", to check interface.
88950         Move body of old getstr.c here: this defines MIN_CHUNK and
88951         declares getdelim2, which is renamed from getstr.
88952         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
88953
88954         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
88955         All uses changed.
88956         * lib/linebuffer.h: Likewise.
88957         (readline): Remove backward-compatibility macro.
88958
88959 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88960
88961         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88962         to avoid collisions with libcurses and libreadline.
88963         * getstr: Remove.
88964         * MODULES.html.sh: Remove getstr.
88965         * modules/getline: Depend on unlocked-io, not getstr.
88966
88967 2003-01-12  Jim Meyering  <jim@meyering.net>
88968
88969         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
88970
88971 2003-01-10  Bruno Haible  <bruno@clisp.org>
88972
88973         * modules/alloca: Change Makefile.am requirements. Simplify Include
88974         requirements. Add lib/alloca_.h to file list.
88975
88976 2003-01-10  Bruno Haible  <bruno@clisp.org>
88977
88978         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
88979
88980 2003-01-10  Bruno Haible  <bruno@clisp.org>
88981
88982         * lib/alloca_.h: New file.
88983         * lib/getdate.y: Unconditionally include alloca.h.
88984         * lib/makepath.c: Likewise.
88985         * lib/setenv.c: Likewise.
88986         * lib/userspec.c: Likewise.
88987
88988 2003-01-09  Karl Berry  <karl@gnu.org>
88989
88990         * MODULES.html.sh: include `dirname $0` in PATH, to find
88991         gnulib-tool.
88992
88993 2003-01-09  Bruno Haible  <bruno@clisp.org>
88994
88995         * modules/stdbool: Change configure.ac, Makefile.am requirements.
88996         Simplify Include requirements. Add lib/stdbool.h.in to file list.
88997
88998 2003-01-09  Bruno Haible  <bruno@clisp.org>
88999
89000         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89001
89002 2003-01-09  Bruno Haible  <bruno@clisp.org>
89003
89004         * lib/stdbool.h.in: New file.
89005
89006 2003-01-09  Bruno Haible  <bruno@clisp.org>
89007
89008         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89009         * MODULES.html.sh: Likewise.
89010
89011 2003-01-08  Jim Meyering  <jim@meyering.net>
89012
89013         * lib/full-write.c: Undefine and define-away `const' after inclusion
89014         of errno.h, not before.  Suggestion from Bruno Haible.
89015
89016 2003-01-08  Bruno Haible  <bruno@clisp.org>
89017
89018         * modules/full-read: Depend on full-write.
89019
89020 2003-01-08  Bruno Haible  <bruno@clisp.org>
89021
89022         * lib/safe-read.c: Include specification header first, to ensure its
89023         selfcontainedness.
89024         * lib/full-write.c: Likewise.
89025
89026 2003-01-07  Jim Meyering  <jim@meyering.net>
89027
89028         * lib/full-write.c: Rework so that it may serve to define full_read,
89029         too.
89030         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89031
89032 2003-01-07  Bruno Haible  <bruno@clisp.org>
89033
89034         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89035         <inttypes.h>.
89036         * lib/xstrtol.h: Likewise.
89037         * lib/xstrtoimax.c: Likewise.
89038         * lib/xstrtoumax.c: Likewise.
89039         * lib/human.h: Likewise.
89040
89041         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89042         on systems that have <inttypes.h> but not <stdint.h>.
89043
89044 2003-01-07  Bruno Haible  <bruno@clisp.org>
89045
89046         * MODULES.html.sh: Add copyright notice.
89047         (missed_files): Omit CVS directory entries.
89048         (func_module): Make it work with sed-3.02.
89049         * MODULES.txt: Remove file.
89050
89051 2003-01-06  Jim Meyering  <jim@meyering.net>
89052
89053         * lib/version-etc.c: Update year in translatable copyright string.
89054
89055 2003-01-03  Karl Berry  <karl@gnu.org>
89056
89057         * config/config.{guess,sub}: update from prep.
89058
89059 2003-01-02  Karl Berry  <karl@gnu.org>
89060
89061         * doc/COPYING.DOC: belatedly updated to 1.2.
89062
89063 2003-01-01  Karl Berry  <karl@gnu.org>
89064
89065         * gnulib-tool (func_verify_module): report module name $module in
89066         error message, not $1.
89067         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89068         be created, only if it doesn't exist.
89069         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89070
89071 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89072
89073         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89074
89075 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89076
89077         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89078         memcmp if strcoll doesn't work.
89079
89080 2002-12-31  Bruno Haible  <bruno@clisp.org>
89081
89082         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89083         nonempty.
89084
89085 2002-12-31  Bruno Haible  <bruno@clisp.org>
89086
89087         * lib/memcoll.c (STRCOLL): New macro.
89088         (memcoll): Use it.
89089
89090 2002-12-31  Bruno Haible  <bruno@clisp.org>
89091
89092         * lib/localcharset.h: New file.
89093         * lib/localcharset.c: Include it.
89094         * lib/unicodeio.c: Likewise.
89095
89096 2002-12-31  Bruno Haible  <bruno@clisp.org>
89097
89098         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89099         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89100
89101 2002-12-31  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/getline.h: Include <stddef.h>, for size_t.
89104
89105         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89106         * lib/unicodeio.c: Don't include <stddef.h>.
89107
89108 2002-12-31  Bruno Haible  <bruno@clisp.org>
89109
89110         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89111         HAVE_TM_ZONE.
89112
89113 2002-12-24  Karl Berry  <karl@gnu.org>
89114
89115         * config/config.guess: update from prep.
89116
89117 2002-12-24  Bruno Haible  <bruno@clisp.org>
89118
89119         General infrasructure.
89120         * m4/README: Rewritten.
89121         * m4/onceonly.m4: New file.
89122         * m4/onceonly_2_57.m4: New file.
89123
89124         Module atexit.
89125         * m4/atexit.m4: New file.
89126
89127         Module strtod.
89128         * m4/strtod.m4: New file.
89129
89130         Module strtol.
89131         * m4/strtol.m4: New file.
89132
89133         Module strtoul.
89134         * m4/strtoul.m4: New file.
89135
89136         Module memchr.
89137         * m4/memchr.m4: New file.
89138
89139         Module memcmp.
89140         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89141         (jm_FUNC_MEMCMP): Invoke it.
89142
89143         Module memcpy.
89144         * m4/memcpy.m4: New file.
89145
89146         Module memmove.
89147         * m4/memmove.m4: New file.
89148
89149         Module memset.
89150         * m4/memset.m4: New file.
89151
89152         Module strcspn.
89153         * m4/strcspn.m4: New file.
89154
89155         Module strpbrk.
89156         * m4/strpbrk.m4: New file.
89157
89158         Module strstr.
89159         * m4/strstr.m4: New file.
89160
89161         Module strerror.
89162         * m4/strerror.m4: New file.
89163
89164         Module mktime.
89165         * m4/mktime.m4: Renamed from jm-mktime.m4.
89166         (gl_PREREQ_MKTIME): New macro.
89167         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89168
89169         Module malloc.
89170         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89171         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89172         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89173
89174         Module realloc.
89175         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89176         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89177         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89178
89179         Module strftime.
89180         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89181         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89182         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89183         gl_TM_GMTOFF.
89184         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89185
89186         Module xalloc.
89187         * m4/xalloc.m4: New file.
89188
89189         Module alloca.
89190         * m4/alloca.m4: New file.
89191
89192         Module putenv.
89193         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89194         (jm_FUNC_PUTENV): Invoke it.
89195
89196         Module setenv.
89197         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89198         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89199         when invoked twice.
89200         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89201         gt_FUNC_SETENV.
89202
89203         Module memrchr.
89204         * m4/memrchr.m4: New file.
89205
89206         Module stpcpy.
89207         * m4/stpcpy.m4: New file.
89208
89209         Module strcase.
89210         * m4/strcase.m4: New file.
89211
89212         Module strdup.
89213         * m4/strdup.m4: New file.
89214
89215         Module strnlen.
89216         * m4/strnlen.m4: New file.
89217
89218         Module strndup.
89219         * m4/strndup.m4: New file.
89220
89221         Module xstrtod.
89222         * m4/xstrtod.m4: New file.
89223
89224         Module xstrtol.
89225         * m4/xstrtol.m4: New file.
89226
89227         Module getdate.
89228         * m4/getdate.m4: New file.
89229
89230         Module unlocked-io.
89231         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89232         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89233         * m4/jm-glibc-io.m4n: Remove file.
89234
89235         Module long-options.
89236         * m4/long-options.m4: New file.
89237
89238         Module md5.
89239         * m4/md5.m4: New file.
89240
89241         Module sha.
89242         * m4/sha.m4: New file.
89243
89244         Module getstr.
89245         * m4/getstr.m4: New file.
89246
89247         Module getline.
89248         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89249         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89250         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89251         simply getline. Infoke gl_PREREQ_GETLINE.
89252
89253         Module obstack.
89254         * m4/obstack.m4: New file.
89255
89256         Module hash.
89257         * m4/hash.m4: New file.
89258
89259         Module readtokens.
89260         * m4/readtokens.m4: New file.
89261
89262         Module strverscmp.
89263         * m4/strverscmp.m4: New file.
89264
89265         Module stdbool.
89266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89267         OSF/1.
89268
89269         Module strtoll.
89270         * m4/strtoll.m4: New file.
89271
89272         Module strtoull.
89273         * m4/strtoull.m4: New file.
89274
89275         Module strtoimax.
89276         * m4/strtoimax.m4: New file.
89277
89278         Module strtoumax.
89279         * m4/strtoumax.m4: New file.
89280
89281         Module xstrtoimax.
89282         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89283         jm_AC_PREREQ_XSTRTOIMAX.
89284         Moved the strtol prerequisites to strtol.m4.
89285         Moved the strtoll prerequisites to strtoll.m4.
89286         Moved the strtoimax prerequisites to strtoimax.m4.
89287
89288         Module xstrtoumax.
89289         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89290         jm_AC_PREREQ_XSTRTOUMAX.
89291         Moved the strtoul prerequisites to strtoul.m4.
89292         Moved the strtoull prerequisites to strtoull.m4.
89293         Moved the strtoumax prerequisites to strtoumax.m4.
89294
89295         Module chown.
89296         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89297         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89298
89299         Module dup2.
89300         * m4/dup2.m4: New file.
89301
89302         Module ftruncate.
89303         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89304         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89305
89306         Module getgroups.
89307         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89308         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89309
89310         Module gettimeofday.
89311         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89312         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89313         gl_PREREQ_GETTIMEOFDAY.
89314
89315         Module mkdir.
89316         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89317         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89318
89319         Module mkstemp.
89320         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89321         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89322         jm_AC_TYPE_UINTMAX_T.
89323         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89324
89325         Module stat.
89326         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89327         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89328
89329         Module lstat.
89330         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89331         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89332
89333         Module timespec.
89334         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89335         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89336         * m4/st_mtim.m4: Indentation.
89337
89338         Module nanosleep.
89339         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89340         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89341         gl_PREREQ_NANOSLEEP.
89342
89343         Module regex.
89344         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89345         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89346         (gl_REGEX): New macro.
89347
89348         Module rename.
89349         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89350         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89351
89352         Module rmdir.
89353         * m4/rmdir.m4: New file.
89354
89355         Module utime.
89356         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89357         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89358         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89359
89360         Module dirname.
89361         * m4/dirname.m4: New file.
89362
89363         Module getopt.
89364         * m4/getopt.m4: New file.
89365
89366         Module unistd-safer.
89367         * m4/unistd-safer.m4: New file.
89368
89369         Module fnmatch.
89370         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89371         declaration.
89372         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89373         (gl_FUNC_FNMATCH_POSIX): New macro.
89374         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89375         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89376         simply fnmatch.
89377
89378         Module exclude.
89379         * m4/exclude.m4: New file.
89380
89381         Module human.
89382         * m4/human.m4: New file.
89383
89384         Module acl.
89385         * m4/acl.m4: Nop.
89386
89387         Module backupfile.
89388         * m4/backupfile.m4: New file.
89389         * m4/d-ino.m4: Indentation.
89390
89391         Module fsusage.
89392         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89393         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89394         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89395
89396         Module dirfd.
89397         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89398         requirements.
89399
89400         Module euidaccess.
89401         * m4/euidaccess.m4: New file.
89402
89403         Module file-type.
89404         * m4/file-type.m4: New file.
89405
89406         Module fileblocks.
89407         * m4/fileblocks.m4: New file.
89408
89409         Module filemode.
89410         * m4/filemode.m4: New file.
89411
89412         Module isdir.
89413         * m4/isdir.m4: New file.
89414
89415         Module lchown.
89416         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89417         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89418
89419         Module makepath.
89420         * m4/makepath.m4: New file.
89421
89422         Module modechange.
89423         * m4/modechange.m4: New file.
89424
89425         Module mountlist.
89426         * m4/mountlist.m4: New file.
89427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89428         Indentation.
89429
89430         Module path-concat.
89431         * m4/path-concat.m4: New file.
89432
89433         Module pathmax.
89434         * m4/pathmax.m4: New file.
89435
89436         Module same.
89437         * m4/same.m4: New file.
89438
89439         Module save-cwd.
89440         * m4/save-cwd.m4: New file.
89441
89442         Module savedir.
89443         * m4/savedir.m4: New file.
89444
89445         Module xgetcwd.
89446         * m4/xgetcwd.m4: New file.
89447         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89448
89449         Module xreadlink.
89450         * m4/xreadlink.m4: New file.
89451
89452         Module safe-read.
89453         * m4/safe-read.m4: New file.
89454
89455         Module safe-write.
89456         * m4/safe-write.m4: New file.
89457
89458         Module closeout.
89459         * m4/closeout.m4: New file.
89460
89461         Module stdio-safer.
89462         * m4/stdio-safer.m4: New file.
89463
89464         Module getpass.
89465         * m4/getpass.m4: New file.
89466
89467         Module getugroups.
89468         * m4/getugroups.m4: New file.
89469
89470         Module group-member.
89471         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89472         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89473
89474         Module idcache.
89475         * m4/idcache.m4: New file.
89476
89477         Module userspec.
89478         * m4/userspec.m4: New file.
89479
89480         Module gettime.
89481         * m4/clock_time.m4: New file.
89482         * m4/gettime.m4: New file.
89483
89484         Module settime.
89485         * m4/settime.m4: New file.
89486
89487         Module posixtm.
89488         * m4/posixtm.m4: New file.
89489
89490         Module gethostname.
89491         * m4/gethostname.m4: New file.
89492
89493         Module canon-host.
89494         * m4/canon-host.m4: New file.
89495
89496         Module gettext.
89497         * m4/codeset.m4: New file, from gettext-0.11.5.
89498         * m4/gettext.m4: New file, from gettext-0.11.5.
89499         * m4/glibc21.m4: New file, from gettext-0.11.5.
89500         * m4/iconv.m4: New file, from gettext-0.11.5.
89501         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89502         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89503         * m4/inttypes.m4: New file, from gettext-0.11.5.
89504         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89505         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89506         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89507         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89508         * m4/lib-link.m4: New file, from gettext-0.11.5.
89509         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89510         * m4/progtest.m4: New file, from gettext-0.11.5.
89511         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89512         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89513         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89514
89515         Module localcharset.
89516         * m4/localcharset.m4: New file.
89517
89518         Module hard-locale.
89519         * m4/hard-locale.m4: New file.
89520
89521         Module mbswidth.
89522         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89523         onceonly macros.
89524         * m4/mbrtowc.m4: Add comment.
89525
89526         Module memcasecmp.
89527         * m4/memcasecmp.m4: New file.
89528
89529         Module memcoll.
89530         * m4/memcoll.m4: New file.
89531
89532         Module unicodeio.
89533         * m4/unicodeio.m4: New file.
89534
89535         Module rpmatch.
89536         * m4/rpmatch.m4: New file.
89537
89538         Module yesno.
89539         * m4/yesno.m4: New file.
89540
89541         Module exitfail.
89542         * m4/exitfail.m4: New file.
89543
89544         Module c-stack.
89545         * m4/c-stack.m4 (gl_C_STACK): New macro.
89546         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89547
89548         Module error.
89549         * m4/error.m4 (gl_ERROR): New macro.
89550         (jm_PREREQ_ERROR): Use onceonly macros.
89551
89552         Module fatal.
89553         * m4/fatal.m4: New file.
89554
89555         Module getloadavg.
89556         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89557         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89558
89559         Module getpagesize.
89560         * m4/getpagesize.m4: New file.
89561
89562         Module getusershell.
89563         * m4/getusershell.m4: New file.
89564
89565         Module physmem.
89566         * m4/physmem.m4: New file.
89567
89568         Module posixver.
89569         * m4/posixver.m4: New file.
89570
89571         Module quotearg.
89572         * m4/quotearg.m4: New file.
89573
89574         Module quote.
89575         * m4/quote.m4: New file.
89576
89577         Module readutmp.
89578         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89579
89580         Module sig2str.
89581         * m4/sig2str.m4: New file.
89582
89583         Other.
89584         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89585         ulonglong.m4.
89586         * m4/intmax_t.m4: New file.
89587         * m4/d-type.m4: Indentation.
89588         * m4/jm-macros.m4: Update.
89589         * m4/prereq.m4 (jm_PREREQ): Update.
89590         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89591         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89592         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89593         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89594         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89595         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89596         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89597         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89598         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89599         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89600         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89601         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89602         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89603         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89604         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89605         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89606         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89607         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89608         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89609
89610 2002-12-24  Bruno Haible  <bruno@clisp.org>
89611
89612         * MODULES.txt: Update according to m4/ changes.
89613
89614         Module gettext.
89615         * config.rpath: New file, from gettext-0.11.5.
89616
89617         * modules/*: New module descriptions.
89618         * gnulib-tool: New file.
89619         * MODULES.html.sh: New file.
89620
89621 2002-12-21  Karl Berry  <karl@gnu.org>
89622
89623         * doc/fdl.texi: update to version 1.2.
89624
89625 2002-12-19  Karl Berry  <karl@gnu.org>
89626
89627         * config/config.guess: update from prep.
89628
89629 2002-12-18  Bruno Haible  <bruno@clisp.org>
89630
89631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89632         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89633
89634 2002-12-17  Bruno Haible  <bruno@clisp.org>
89635
89636         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89637         stdlib.h, string.h.
89638
89639 2002-12-17  Bruno Haible  <bruno@clisp.org>
89640
89641         * lib/canon-host.c (strdup): Remove unused declaration.
89642
89643         * lib/fsusage.c: Include full_read.h.
89644         (get_fs_usage): Use full_read instead of safe_read.
89645
89646         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89647
89648 2002-12-12  Karl Berry  <karl@gnu.org>
89649
89650         * config/config.guess: update from prep.
89651
89652 2002-12-11  Bruno Haible  <bruno@clisp.org>
89653
89654         * m4/setenv.m4: New file, from gettext-0.11.5.
89655
89656 2002-12-11  Bruno Haible  <bruno@clisp.org>
89657
89658         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89659         not unsetenv().
89660         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89661         modifications:
89662
89663         2002-12-11  Bruno Haible  <bruno@clisp.org>
89664
89665                 * setenv.c (alloca): Fall back to malloc.
89666                 (freea): New macro.
89667                 (setenv): Use freea() to free memory allocated with alloca().
89668
89669         2002-11-13  Bruno Haible  <bruno@clisp.org>
89670
89671                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89672                 function declarations.
89673                 * unsetenv.c (unsetenv): Likewise.
89674
89675         2002-03-04  Bruno Haible  <bruno@clisp.org>
89676
89677                 Portability to AIX 4.3.3.
89678                 * unsetenv.c: New file, extracted from setenv.c.
89679                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89680
89681         2001-12-20  Bruno Haible  <bruno@clisp.org>
89682
89683                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89684                 use malloc instead. For SunOS 4.
89685
89686         2001-12-11  Bruno Haible  <bruno@clisp.org>
89687
89688                 * setenv.c: Declare alloca.
89689                 (compar_fn_t): New typedef.
89690                 (KNOWN_VALUE, STORE_VALUE): Use it.
89691
89692         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89693         setenv.h.
89694
89695 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89696
89697         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89698         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89699         Choose values that are less likely to collide with system fnmatch
89700         options.
89701         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89702         defined (e.g., a pure POSIX system).
89703         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89704         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89705
89706 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89707
89708         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89709         a pain in practice to deal with generated m4 files.  This change
89710         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89711
89712         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89713         and jm-glibc-io.m4, as they are no longer a special case.
89714         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89715         kludge and the auto-generation stuff.  Check only whether the
89716         functions are declared, not whether they exist, since older hosts
89717         that don't declare the functions can't use the optimization anyway.
89718
89719 2002-12-06  Jim Meyering  <jim@meyering.net>
89720
89721         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89722
89723         Merge in changes from libc's misc/error.c, in preparation
89724         for the merge of gnulib's changes back into libc.
89725
89726         * lib/error.c (_): Define only if not already defined.
89727         Move definition to follow all #include directives.
89728         Include unlocked-io.h only if !_LIBC.
89729         [_LIBC]: Include <libio/libioP.h>.
89730         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89731         (fflush): Tweak definition to use INTUSE.
89732         (putc): Define.
89733
89734 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89735
89736         * lib/alloca.c [defined emacs]: Include "lisp.h".
89737         (xalloc_die) [defined emacs]: New macro.
89738         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89739         [! defined emacs]: Include <xalloc.h>.
89740         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89741         (pointer): Typedef to POINTER_TYPE *.
89742         (malloc): Remove decl; we now always use xmalloc.
89743         (alloca): Use old-style definition, since Emacs needs this.
89744         Check for arithmetic overflow when computing combined size.
89745
89746 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89747
89748         Do not generate unlocked-io.h automatically, since it's easier to
89749         maintain it by hand.
89750
89751         * lib/unlocked-io.h: New file, from GNU diffutils,
89752         but with proper copyright notice and attribution.
89753         * lib/gen-uio: Remove.
89754         * lib/Makefile.am: Add copyright notice.
89755         (libfetish_a_SOURCES): Add unlocked-io.h.
89756         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89757         (DISTCLEANFILES, io_functions): Remove macros.
89758         (EXTRA_DIST): Remove gen_uio.
89759         (unlocked-io.h): Remove rule.
89760
89761 2002-12-04  Jim Meyering  <jim@meyering.net>
89762
89763         Reflect the fact that stat.c and lstat.c are no longer generated.
89764         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89765         (DISTCLEANFILES): Likewise.
89766         (EXTRA_DIST): Likewise.
89767         (all_local): Don't depend on stat.c or lstat.c.
89768         (stat.c, lstat.c): Remove rules.
89769         (EXTRA_DIST): Remove xstat.in.
89770
89771         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89772         * lib/stat.c: New file.  Contents mostly from xstat.in.
89773         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89774         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89775
89776         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89777         too.
89778         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89779
89780 2002-12-03  Jim Meyering  <jim@meyering.net>
89781
89782         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89783         but not semantics, to minimize the differences between these two files.
89784         (safe_read): Change comment to mention SAFE_READ_ERROR.
89785
89786         * lib/safe-read.c (IS_EINTR): Define.
89787         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89788
89789 2002-12-02  Jim Meyering  <jim@meyering.net>
89790
89791         * lib/safe-read.c (EINTR): Define.
89792         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89793         (INT_MAX): Provide fallback.
89794         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89795
89796         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89797
89798 2002-12-02  Bruno Haible  <bruno@clisp.org>
89799
89800         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89801         Define, taken from safe-read.c.
89802         (INT_MAX): Provide fallback.
89803         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89804         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89805
89806         * lib/safe-read.c (EINTR): Remove definition.
89807         (safe_read): Don't use EINTR if it is absent.
89808
89809 2002-12-01  Jim Meyering  <jim@meyering.net>
89810
89811         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89812         zero.
89813         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89814
89815 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89816
89817         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89818         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89819         with `if (! (value < limit)) abort ();', for readability.
89820
89821 2002-11-26  Karl Berry  <karl@gnu.org>
89822
89823         * lib/strdup.c: copy from libc again, with jim's ok.
89824         * lib/.cppi-disable: re-add strdup.c
89825
89826 2002-11-25  Karl Berry  <karl@gnu.org>
89827
89828         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89829         instead of "strtol.c".
89830
89831 2002-11-25  Karl Berry  <karl@gnu.org>
89832
89833         * config/install-sh: update from automake for variable quoting, $0 in
89834         error msgs, etc.
89835
89836         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89837         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89838         entry.
89839
89840 2002-11-25  Jim Meyering  <jim@meyering.net>
89841
89842         * lib/mktime.c: Sync from libc, now that it has the latest fix.
89843
89844 2002-11-24  Karl Berry  <karl@gnu.org>
89845
89846         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
89847         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
89848
89849 2002-11-24  Jim Meyering  <jim@meyering.net>
89850
89851         Update from coreutils:
89852
89853         * lib/mktime.c: Merge in changes from libc.
89854
89855         Avoid a link-time failure on some Linux systems.
89856         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
89857         (otherwise).
89858         (__mon_yday): Declare with the STATIC attribute.
89859         (__mktime_internal): Likewise.
89860         Based on a report from Greg Schafer.
89861
89862 2002-11-23  Jim Meyering  <jim@meyering.net>
89863
89864         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
89865         Use `unsigned', not `int', as type of index.
89866
89867         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
89868
89869         * lib/fsusage.c: Remove unneeded parentheses around operands of
89870         `defined'.
89871
89872 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89873
89874         * lib/quotearg.h: Allow multiple inclusion by surrounding with
89875         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
89876         so that we can be included first.
89877         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
89878         * lib/quotearg.c: Include quotearg.h immediately after config.h.
89879         No need to include stddef.h or sys/types.h any more.
89880         Surround local include files with "", not "<>".
89881         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
89882         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
89883         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
89884         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
89885         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
89886         (ISPRINT): Remove; no longer needed now that we assume C89.
89887
89888         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
89889         Preserve errno.
89890
89891         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
89892         quotearg_char): Use SIZE_MAX rather than
89893         (size_t) -1 when we are talking about "infinity".
89894
89895         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
89896
89897 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89898
89899         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
89900         hint that one should use `if (! x) abort ();' rather than `assert
89901         (x);', and anyway it's one less thing to worry about configuring.
89902         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
89903         hash_rehash, hash_insert): Use abort rather than assert.
89904
89905 2002-11-22  Bruno Haible  <bruno@clisp.org>
89906
89907         * lib/safe-read.h: Assume C89. Add comments.
89908         (safe_read): Change return type to size_t.
89909         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
89910         byte counts > SSIZE_MAX correctly.
89911         * lib/safe-write.h: New file.
89912         * lib/safe-write.c: New file.
89913         * lib/full-read.h: New file.
89914         * lib/full-read.c: New file.
89915         * lib/full-write.h: Assume C89. Add comments.
89916         * lib/full-write.c: Include safe-write.h.
89917         (full_write): Rewritten to use safe_write.
89918         Suggested by Jim Meyering and Paul Eggert.
89919
89920 2002-11-21  Jim Meyering  <jim@meyering.net>
89921
89922         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
89923
89924         Merge in changes from the coreutils.
89925
89926         2002-09-25  Paul Eggert  <eggert@twinsun.com>
89927         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
89928         <stdint.h>.
89929         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
89930         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
89931         int.  Work more efficiently if X is the same width as uintmax_t.
89932         Do not compare X to -1, to avoid bogus compiler warning.
89933         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
89934         Don't assume that f_frsize and f_bsize are the same type.
89935
89936         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
89937         warning on FreeBSD.
89938
89939         * lib/makepath.c (make_path): Restore umask *before* creating the final
89940         component.
89941         (make_path): Minor reformatting.
89942
89943         * lib/xmalloc.c: Adjust to work with new autoconf macros,
89944         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
89945         HAVE_MALLOC/HAVE_REALLOC.
89946
89947         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
89948         dummy ones.  At least on GNU/Linux systems, `auto' means something
89949         else.
89950         From Michael Stone.
89951
89952 2002-11-21  Bruno Haible  <bruno@clisp.org>
89953
89954         Remove case insensitive option matching.
89955         * lib/argmatch.h (argcasematch): Remove declaration.
89956         (ARGCASEMATCH): Remove macro.
89957         (__xargmatch_internal): Remove case_sensitive argument.
89958         (XARGMATCH): Update.
89959         (XARGCASEMATCH): Remove macro.
89960         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
89961         case_sensitive argument.
89962         (argcasematch): Remove function.
89963         (__xargmatch_internal): Remove case_sensitive argument.
89964         (main): Use XARGMATCH instead of XARGCASEMATCH.
89965
89966         * lib/xmalloc.c: Change compile-time error message. Add comment about
89967         required autoconf version.
89968
89969 2002-11-20  Paul Eggert  <eggert@twinsun.com>
89970
89971         Merge argmatch cleanups from Bison.  Assume C89.
89972
89973         * lib/argmatch.c: Include config.h here, not in argmatch.h.
89974         Include stdlib.h, for EXIT_FAILURE.
89975         Always include <string.h>, since we assume C89.
89976         (EXIT_FAILURE): Remove pre-C89 bug workaround.
89977         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
89978         Include <stddef.h> instead, since it's all we need for size_t.
89979         (PARAMS): Remove.  All uses removed.
89980         (ARRAY_CARDINALITY): Do not bother to #undef.
89981         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
89982         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89983         Remove unnecessary parentheses.
89984         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89985         Insert necessary parentheses.
89986         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
89987         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
89988
89989 2002-11-19  Bruno Haible  <bruno@clisp.org>
89990
89991         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
89992         * lib/mbswidth.h: Include <stddef.h>, for size_t.
89993
89994         * lib/mbswidth.h (PARAMS): Remove macro.
89995         (mbswidth, mbsnwidth): Use ANSI C function declarations.
89996         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
89997
89998         * lib/gcd.h (PARAMS): Remove macro.
89999         (gcd): Use ANSI C function declarations.
90000         * lib/gcd.c (gcd): Likewise.
90001
90002 2002-11-15  Bruno Haible  <bruno@clisp.org>
90003
90004         * lib/strcspn.c: Include <stddef.h>.
90005         (strcspn): Use ANSI C function declaration. Change return type to
90006         size_t. Use NULL.
90007         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90008         (strpbrk): Use NULL.
90009         * lib/strpbrk.h (PARAMS): Remove macro.
90010         (strpbrk): Use ANSI C function declaration.
90011         * lib/strstr.c: Don't include <sys/types.h>.
90012         * lib/strstr.h (PARAMS): Remove macro.
90013         (strstr): Use ANSI C function declarations.
90014
90015 2002-11-14  Karl Berry  <karl@gnu.org>
90016
90017         * config/mkinstalldirs: `do' on separate line, instead of
90018         `for var; do'.
90019
90020 2002-11-06  Bruno Haible  <bruno@clisp.org>
90021
90022         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90023         * lib/gcd.c (gcd): Likewise.
90024
90025 2002-11-05  Bruno Haible  <bruno@clisp.org>
90026
90027         * lib/gcd.h: New file, from gettext-0.11.5.
90028         * lib/gcd.c: New file, from gettext-0.11.5.
90029
90030 2002-11-05  Bruno Haible  <bruno@clisp.org>
90031
90032         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90033         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90034         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90035         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90036
90037         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90038         <libintl.h>.
90039         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90040         <libintl.h>.
90041
90042         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90043         * lib/human.c: Include gettext.h instead of <libintl.h>.
90044         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90045         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90046         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90047         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90048         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90049         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90050         (textdomain): Remove definition.
90051         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90052
90053         * lib/long-options.c: Remove include of <libintl.h> and definition of
90054         _.
90055         * lib/same.c: Remove include of <libintl.h> and definition of _.
90056
90057 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90058
90059         * lib/config.charset: A few additions for Solaris.
90060
90061 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90062
90063         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90064         * lib/localcharset.c (locale_charset): Declare as extern "C".
90065
90066 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90067
90068         * lib/config.charset: msdos in uk_UA uses CP1125.
90069
90070 2002-11-04  Bruno Haible  <bruno@clisp.org>
90071
90072         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90073         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90074         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90075         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90076         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90077
90078 2002-11-04  Bruno Haible  <bruno@clisp.org>
90079
90080         * lib/localcharset.c (locale_charset): Don't return an empty string.
90081
90082 2002-11-04  Bruno Haible  <bruno@clisp.org>
90083
90084         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90085         aliases.
90086
90087 2002-11-04  Bruno Haible  <bruno@clisp.org>
90088
90089         * lib/config.charset: Update for newest glibc. Add canonical names
90090         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90091
90092 2002-11-04  Bruno Haible  <bruno@clisp.org>
90093
90094         * lib/config.charset: Add support for NetBSD.
90095
90096 2002-11-04  Bruno Haible  <bruno@clisp.org>
90097
90098         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90099
90100 2002-11-01  Bruno Haible  <bruno@clisp.org>
90101
90102         * configure.in: Add AC_CONFIG_AUX_DIR call.
90103         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90104         test/Makefile.
90105         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90106
90107 2002-09-28  Karl Berry  <karl@gnu.org>
90108
90109         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90110         installed automake until the next release, since changes have been
90111         made.
90112
90113 2002-09-25  Karl Berry  <karl@gnu.org>
90114
90115         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90116         * lib/getopt*: copy from libc/posix.
90117         * lib/gettext.h: copy from gettext.
90118         * lib/.cppi-disable: add strdup.c, gettext.h.
90119
90120 2002-09-25  Karl Berry  <karl@gnu.org>
90121
90122         * config/srclist.txt: enable gettext.h check.
90123         * config/config.{guess,sub}: update from prep.
90124         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90125                 from automake 1.6.3.
90126         See srclist*.
90127
90128 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90129
90130         * regex.c (PATFETCH): Remove the translating fetch.
90131         (PATFETCH_RAW): Rename to PATFETCH.
90132         (set_image_of_range): New fun.
90133         (SET_RANGE_TABLE_WORK_AREA): Use it.
90134         (regex_compile): Don't translate the pattern chars so eagerly.
90135         Only do it when inserting an `exactn' bytecode or when handling
90136         a char-range.
90137         (mutually_exclusive_p): Avoid empty statement.
90138
90139 2002-07-06  Jim Meyering  <meyering@lucent.com>
90140
90141         * m4/README: Don't mention Makefile.am.in.
90142         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90143
90144 2002-07-01  Jim Meyering  <meyering@lucent.com>
90145
90146         * lib/c-stack.c: Include sys/time.h.
90147         From Volker Borchert.
90148
90149 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90150
90151         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90152
90153 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90154
90155         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90156         New macro.  Use it uniformly instead of
90157         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90158         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90159         reported by Vin Shelton.
90160
90161 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90162
90163         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90164         Do not assume SA_SIGINFO behavior.
90165         Bug reported by Jim Meyering on NetBSD 1.5.2.
90166
90167 2002-06-22  Jim Meyering  <meyering@lucent.com>
90168
90169         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90170         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90171
90172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90173         now that configure.ac uses AC_GNU_SOURCE.
90174         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90175         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90176
90177         Update to latest tools.  Suggestions from Paul Eggert.
90178         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90179         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90180         * m4/fnmatch.m4: Likewise.
90181         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90182         to AC_HEADER_STDBOOL
90183
90184 2002-06-22  Jim Meyering  <meyering@lucent.com>
90185
90186         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90187         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90188
90189 2002-06-22  Jim Meyering  <meyering@lucent.com>
90190
90191         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90192
90193         * lib/exitfail.c, exitfail.h: Likewise.
90194         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90195
90196         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90197         of fnmatch.h.
90198         (EXTRA_DIST): Add fnmatch_loop.c.
90199         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90200
90201         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90202         * lib/fnmatch.c: Update from diffutils-2.8.2.
90203         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90204         * lib/fnmatch.h: Remove file.
90205
90206 2002-06-21  Jim Meyering  <meyering@lucent.com>
90207
90208         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90209         * m4/mbrtowc.m4: Likewise.
90210
90211         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90212         * m4/mbswidth.m4: Reflect name change:
90213         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90214         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90215
90216         * m4/lib-link.m4: Update from gettext-0.11.2.
90217         * m4/gettext.m4: Likewise.
90218
90219         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90220         From Alfred M. Szmidt.
90221
90222 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90223
90224         * lib/file-type.h: Report an error if neither S_ISREG nor
90225         S_IFREG is defined, instead of using a test specific to glibc
90226         2.2.  This should be safe, since POSIX requires S_ISREG and
90227         Unix Version 7 had S_IFREG.  We don't need to check for
90228         <sys/types.h> since we don't use any symbols that it defines.
90229
90230 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90231
90232         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90233         $@-t, so that each temporary file name is unique and valid in the first
90234         8 characters, for operation under DOS.
90235
90236 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90237
90238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90239
90240 2002-06-15  Jim Meyering  <meyering@lucent.com>
90241
90242         Work even with DJGPP 2.03, which lacks support for symlinks.
90243         From Richard Dawe.
90244         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90245         is defined.
90246         * lib/lchown.c (S_ISLNK): Likewise.
90247
90248 2002-06-15  Jim Meyering  <meyering@lucent.com>
90249
90250         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90251         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90252         have been included before this file.
90253
90254 2002-06-14  Jim Meyering  <meyering@lucent.com>
90255
90256         * lib/file-type.h: Use the version from diffutils-2.8.2.
90257         * lib/file-type.c: Likewise.
90258
90259 2002-06-07  Jim Meyering  <meyering@lucent.com>
90260
90261         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90262         They're needed at least for NetBSD 1.5.2.
90263         ($statxfs_includes): Include those same headers.
90264         ($statxfs_includes): Include sys/vfs.h if available.
90265         ($statxfs_includes): Likewise for sys/statvfs.h.
90266         Check for the following members in both structs statfs and statvfs:
90267         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90268
90269 2002-06-01  Jim Meyering  <meyering@lucent.com>
90270
90271         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90272         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90273
90274 2002-05-28  Jim Meyering  <meyering@lucent.com>
90275
90276         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90277         Reported by Volker Borchert.
90278
90279 2002-05-27  Jim Meyering  <meyering@lucent.com>
90280
90281         Fix a problem seen only on nonconforming systems whereby ls.c's
90282         use of localtime, and then of gettimeofday would cause trouble:
90283         the localtime call used to initialize rpl_gettimeofday's save
90284         mechanism would clobber ls's current local time information so
90285         that in any long listing the first file would always be listed
90286         with date 1970-01-01.  Analysis by Volker Borchert.
90287
90288         * lib/gettimeofday.c (localtime): Undefine.
90289         (rpl_localtime): New function.
90290
90291 2002-05-27  Jim Meyering  <meyering@lucent.com>
90292
90293         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90294         localtime.
90295
90296         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90297         use the replacement function; it wouldn't resolve at link time.
90298         Reported by Volker Borchert.
90299
90300 2002-05-22  Jim Meyering  <meyering@lucent.com>
90301
90302         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90303         file-type.h.
90304         * lib/file-type.h: New file.
90305         * lib/file-type.c (file_type): New file/function.  Extracted from
90306         diffutils.
90307
90308 2002-04-30  Jim Meyering  <meyering@lucent.com>
90309
90310         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90311
90312 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90313
90314         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90315
90316 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90317
90318         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90319         Do not check for alloca.h (no longer used) or stdbool.h (was never
90320         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90321
90322 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90323
90324         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90325
90326 2002-04-29  Jim Meyering  <meyering@lucent.com>
90327
90328         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90329         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90330         Use AC_FUNC_STRNLEN here instead.
90331
90332         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90333         With autoconf-2.53a, it's part of AC_PROG_CC.
90334
90335 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90336
90337         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90338         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90339
90340 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90341
90342         * lib/sig2str.h, lib/sig2str.c: New files.
90343         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90344
90345 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90346
90347         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90348         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90349         of 127, since 64 is the largest conceivable number for ancient
90350         nonstandard hosts.
90351         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90352
90353 2002-04-28  Jim Meyering  <meyering@lucent.com>
90354
90355         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90356
90357 2002-04-24  Jim Meyering  <meyering@lucent.com>
90358
90359         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90360         (jm_PREREQ): Use it.
90361
90362         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90363         mach/mach.h fcntl.h.
90364         Check for this function: setlocale.
90365
90366 2002-04-24  Jim Meyering  <meyering@lucent.com>
90367
90368         * lib/gettext.h: New file, from Gettext.
90369         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90370         (libfetish_a_SOURCES): Add gettext.h.
90371
90372 2002-04-16  Jim Meyering  <meyering@lucent.com>
90373
90374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90375         ut_pid, ut_id, ut_exit.
90376
90377 2002-04-16  Jim Meyering  <meyering@lucent.com>
90378
90379         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90380         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90381         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90382
90383 2002-04-12  Jim Meyering  <meyering@lucent.com>
90384
90385         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90386         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90387         existence of the getmntinfo function.  Needed for Darwin 5.3.
90388
90389         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90390         This is necessary at least on Darwin 5.3.
90391
90392         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90393         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90394         strnlen.o in the library, and that makes some versions of ranlib
90395         object.
90396
90397 2002-04-12  Jim Meyering  <meyering@lucent.com>
90398
90399         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90400
90401 2002-04-09  Jim Meyering  <meyering@lucent.com>
90402
90403         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90404         to be more precise.  Rather than saying we're checking whether the
90405         function `works', say what we're testing.
90406         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90407         Reported by Bruno Haible.
90408
90409 2002-03-10  Jim Meyering  <meyering@lucent.com>
90410
90411         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90412         Suggestion from Santiago Vila.
90413
90414 2002-03-08  Jim Meyering  <meyering@lucent.com>
90415
90416         * lib/rename.c: Mention that this wrapper is needed also on
90417         mips-dec-ultrix4.4 systems.
90418
90419 2002-03-02  Jim Meyering  <meyering@lucent.com>
90420
90421         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90422         not HAVE_CLOCK_SETTIME.
90423
90424 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90425
90426         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90427         Check for clock_settime.
90428
90429 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90430
90431         * lib/nanosleep.h: Rename to....
90432         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90433
90434         * lib/gettime.c: New file.
90435         * lib/settime.c: New file.
90436         * lib/stime.c: Remove.
90437
90438         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90439         timespec.h.  Remove nanosleep.h.
90440
90441 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90442
90443         * m4/acl.m4: New file.
90444         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90445         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90446
90447 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90448
90449         * lib/acl.c, lib/acl.h: New files.
90450         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90451
90452 2002-02-24  Jim Meyering  <meyering@lucent.com>
90453
90454         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90455         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90456         cause trouble.  Reported by Nelson Beebe.
90457
90458 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90459
90460         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90461         compilers that don't know that xalloc_die never returns.
90462
90463 2002-02-20  Jim Meyering  <meyering@lucent.com>
90464
90465         * lib/getdate.c: Regenerate using bison-1.33.
90466
90467 2002-02-17  Jim Meyering  <meyering@lucent.com>
90468
90469         * config/config.guess (main): Don't use `head -1'; it's no longer
90470         portable. Use `sed 1q' instead.
90471
90472 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90473
90474         * m4/codeset.m4: Upgrade to gettext-0.11.
90475         * m4/gettext.m4: Upgrade to gettext-0.11.
90476         * m4/glibc21.m4: Upgrade to gettext-0.11.
90477         * m4/iconv.m4: Upgrade to gettext-0.11.
90478         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90479         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90480         * m4/lib-ld.m4: New file, from gettext-0.11.
90481         * m4/lib-link.m4: New file, from gettext-0.11.
90482         * m4/lib-prefix.m4: New file, from gettext-0.11.
90483         * m4/progtest.m4: Upgrade to gettext-0.11.
90484
90485 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90486
90487         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90488         (jm_PREREQ): Use it.
90489
90490 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90491
90492         * lib/posixver.c, lib/posixver.h: New files.
90493         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90494
90495 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90496             Bruno Haible  <bruno@clisp.org>
90497
90498         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90499         (fwrite_success_callback): New declaration.
90500         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90501         print_unicode_char. Call failure callback instead of error.
90502         (fwrite_success_callback): New function.
90503         (exit_failure_callback): New function.
90504         (fallback_failure_callback): New function.
90505         (print_unicode_char): Call unicode_to_mb.
90506
90507 2002-01-26  Jim Meyering  <meyering@lucent.com>
90508
90509         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90510         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90511
90512 2002-01-26  Jim Meyering  <meyering@lucent.com>
90513
90514         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90515
90516 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90517
90518         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90519
90520 2002-01-22  Jim Meyering  <meyering@lucent.com>
90521
90522         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90523         Otherwise, some versions of automake would omit the rule that makes
90524         Makefile from Makefile.in.
90525
90526 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90527
90528         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90529         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90530         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90531         (memcoll): Set errno to zero if there is no error.
90532
90533         * lib/quotearg.c (quotearg_buffer_restyled):
90534         Fix bug with quoting buffers containing NUL when backslashing escapes.
90535         This bug was exposed by the other changes in this patch.
90536         (quotearg_n_options): New arg ARGSIZE.
90537         All callers changed.
90538         (quoting_options_from_style): New function.
90539         (quotearg_n_style): Use it.
90540         (quotearg_n_style_mem): New function.
90541
90542         * lib/quotearg.h (quotearg_n_style_mem): New function.
90543
90544 2002-01-19  Jim Meyering  <meyering@lucent.com>
90545
90546         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90547         Remove useless quotes: DF_PROG="df".
90548         * m4/strnlen.m4: New file.
90549
90550 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90551
90552         * lib/backupfile.c (ISDIGIT): Comment fix.
90553         * lib/getdate.y (ISDIGIT): Likewise.
90554         * lib/posixtm.c (ISDIGIT, year): Likewise.
90555         * lib/strverscmp.c (ISDIGIT): Likewise.
90556         * lib/userspec.c (ISDIGIT): Likewise.
90557
90558 2002-01-16  Jim Meyering  <meyering@lucent.com>
90559
90560         * lib/getdate.y: Add three semicolons, each just before a closing
90561         brace. Bison (as of version 1.31) no longer papers over that mistake.
90562
90563 2002-01-05  Jim Meyering  <meyering@lucent.com>
90564
90565         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90566
90567 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90568
90569         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90570         not silently exit merely because the output buffer happens to
90571         have nothing pending.
90572
90573 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90574
90575         See the big note in ../ChangeLog.
90576         * lib/human.c (suffixes): Prefer K to k for 1024.
90577         (generate_suffix_backwards): New function.
90578         (human_readable_inexact): Use it.
90579         * lib/xstrtol.c (__xstrtol): If there is no number but there
90580         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90581         Accept 'K' as well as 'k'.
90582
90583 2001-12-15  Jim Meyering  <meyering@lucent.com>
90584
90585         * lib/regex.h (__restrict_arr): Update from libc.
90586
90587         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90588         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90589         (STREQ): Define.
90590
90591 2001-12-14  Jim Meyering  <meyering@lucent.com>
90592
90593         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90594         Suggestion from Bruno Haible.
90595
90596 2001-12-10  Jim Meyering  <meyering@lucent.com>
90597
90598         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90599         xrealloc, Instead, include "xalloc.h".
90600         (initbuffer): Don't cast xmalloc return value to char*.
90601         (readline): Reword comment.
90602         Don't cast xrealloc return value to char*
90603         Return NULL, not 0.
90604
90605 2001-12-09  Jim Meyering  <meyering@lucent.com>
90606
90607         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90608         about `signed and unsigned type in conditional expression'.
90609         * lib/posixtm.c (posix_time_parse): Likewise.
90610
90611         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90612
90613         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90614         to avoid a pedantic warning.
90615
90616         * lib/getstr.c: Don't include assert.h.
90617         (getstr): Remove warning-evoking assertions.
90618         Return -1 if offset parameter is out of bounds.
90619         Change the type of a local from int to size_t.
90620
90621         * lib/strftime.c (my_strftime_localtime_r): Include this function
90622         definition in the `#if ! HAVE_TM_GMTOFF' block.
90623
90624         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90625         Include xalloc.h instead.
90626
90627 2001-12-02  Jim Meyering  <meyering@lucent.com>
90628
90629         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90630         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90631         included.
90632
90633         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90634         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90635
90636 2001-11-30  Akim Demaille  <akim@epita.fr>
90637
90638         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90639         before being defined.
90640
90641 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90642
90643         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90644         First arg is int, not unsigned.
90645         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90646         (SIZE_MAX, UINT_MAX): New macros.
90647         (quotearg_n_options): Abort if N is negative.
90648         Avoid overflow check on hosts where size_t is 64 bits and int
90649         is 32 bits, as overflow is impossible there.
90650         Fix off-by-one typo that caused unnecessary reallocation.
90651
90652 2001-11-27  Jim Meyering  <meyering@lucent.com>
90653
90654         * lib/tempname.c: Merge with version from libc.
90655         * lib/regex.c: Likewise.
90656
90657         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90658         systems for which STDC_HEADERS is 0, it was not included, resulting in
90659         a warning about an integer-to-pointer conversion problem with getenv.
90660         Reported by Volker Borchert.
90661
90662 2001-11-26  Jim Meyering  <meyering@lucent.com>
90663
90664         * lib/gtod.h: Remove file.
90665         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90666         * lib/gettimeofday.c: Don't include gtod.h.
90667         (GTOD_init): Remove function.
90668         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90669         Suggestion from Volker Borchert.
90670
90671 2001-11-23  Jim Meyering  <meyering@lucent.com>
90672
90673         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90674         it.
90675         * lib/hash.c (struct hash_table): Define it here instead.
90676
90677 2001-11-22  Jim Meyering  <meyering@lucent.com>
90678
90679         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90680
90681 2001-11-20  Jim Meyering  <meyering@lucent.com>
90682
90683         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90684         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90685
90686 2001-11-19  Jim Meyering  <meyering@lucent.com>
90687
90688         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90689         directory.  Use "conftestXXXXXX" as the template.
90690         Suggestion from Paul Eggert.
90691
90692         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90693         immediately, so the test doesn't mistakenly hit the max-open-files
90694         limit.
90695
90696 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90697
90698         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90699         (TEMPORARIES): New macro.
90700         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90701         removes an artificial limitation (e.g. HP-UX 10.20, where
90702         TMP_MAX is 17576).
90703
90704 2001-11-18  Jim Meyering  <meyering@lucent.com>
90705
90706         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90707
90708 2001-11-18  Jim Meyering  <meyering@lucent.com>
90709
90710         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90711         on SunOS 4.
90712
90713         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90714         files will be created before anything else.
90715
90716 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90717
90718         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90719         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90720
90721 2001-11-17  Jim Meyering  <meyering@lucent.com>
90722
90723         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90724         Prompted by a report from Bob Proulx.
90725
90726         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90727         Instead, require UTILS_FUNC_MKSTEMP.
90728
90729 2001-11-17  Jim Meyering  <meyering@lucent.com>
90730
90731         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90732         Now, that's done as part of AC_FUNC_STRTOD.
90733
90734 2001-11-17  Jim Meyering  <meyering@lucent.com>
90735
90736         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90737         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90738         rather than group writable.  Patch by Juan F. Codagnone.
90739
90740         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90741         xrealloc, Instead, include "xalloc.h".
90742
90743         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90744         Remove explicit declarations of xmalloc, xrealloc,
90745         and xstrdup.  Instead, include "xalloc.h".
90746
90747         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90748         unlocked-io.h.
90749         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90750         Likewise.
90751         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90752
90753         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90754         Reported by Padraig Brady.
90755
90756         * lib/mkstemp.c: #undef mkstemp.
90757         Include config.h.
90758         (rpl_mkstemp): Rename from mkstemp.
90759         Protoize.
90760
90761 2001-11-16  Jim Meyering  <meyering@lucent.com>
90762
90763         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90764         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90765         determine the amount of total physical memory, use pstat_getstatic.
90766         HPUX-11 doesn't define _SC_PHYS_PAGES.
90767         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90768         If sysconf couldn't be used to determine the amount of available
90769         physical memory, use both pstat_getstatic and pstat_getdynamic.
90770         Based on a patch from Bob Proulx.
90771
90772 2001-11-10  Jim Meyering  <meyering@lucent.com>
90773
90774         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90775         (jm_PREREQ): Use it.
90776
90777 2001-11-09  Jim Meyering  <meyering@lucent.com>
90778
90779         * m4/jm-macros.m4: Require autoconf-2.52f.
90780         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90781         Use these AC_-prefixed names, not the AM_-prefixed ones.
90782
90783         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90784
90785 2001-11-05  Jim Meyering  <meyering@lucent.com>
90786
90787         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90788
90789 2001-11-04  Jim Meyering  <meyering@lucent.com>
90790
90791         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90792         $DEFS.
90793
90794 2001-11-03  Jim Meyering  <meyering@lucent.com>
90795
90796         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90797         of AC_DEFUN.
90798
90799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90800         know the name of the variable in the macro definition.
90801
90802 2001-11-03  Jim Meyering  <meyering@lucent.com>
90803
90804         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90805         in argmatch_to_argument call.
90806
90807         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90808         argument.
90809
90810         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90811         e.g., a fault due to an attempt to free a NULL pointer.
90812
90813 2001-11-01  Jim Meyering  <meyering@lucent.com>
90814
90815         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90816         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90817
90818 2001-11-01  Jim Meyering  <meyering@lucent.com>
90819
90820         * lib/dirfd.c, lib/dirfd.h: New files.
90821         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90822
90823         * lib/hash.c (hash_print) [TESTING]: Clean up.
90824
90825 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90826
90827         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90828         to avoid a warning if -Wall.
90829
90830 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90831
90832         * README: New file
90833         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90834         (per RMS's instructions, this is now the canonical source)
90835         * lgpl/, gpl/: New directories.
90836
90837 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90838
90839         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90840
90841 2001-10-21  Jim Meyering  <meyering@lucent.com>
90842
90843         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
90844         this code would end up calling gettext even in packages built
90845         with --disable-nls.
90846         * lib/getopt.c (_): Likewise.
90847         * lib/regex.c (_): Likewise.
90848
90849 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90850
90851         * m4/error.m4 (jm_PREREQ_ERROR):
90852         Do not invoke AC_CHECK_FUNCS with strerror_r, as
90853         AC_FUNC_STRERROR_R does that.
90854         Check for strerror declaration.
90855
90856         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
90857         are supposed to have them these days.
90858         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
90859         Merge changes from latest Autoconf CVS.
90860         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
90861         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
90862         POSIX decided to standardize on the int flavor of strerror_r.
90863
90864 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90865
90866         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
90867         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
90868         Use strerror_r that is only a macro, even if it is not a function.
90869         (strerror): Check for HAVE_DECL_STRERROR before declaring.
90870         (private_strerror): Use prototypes, not old-style function definition.
90871         (print_errno_message): New function.
90872         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
90873         char*-flavored one.
90874         (error_tail, error, error_at_line): Use it.
90875
90876 2001-10-11  Jim Meyering  <meyering@lucent.com>
90877
90878         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
90879         and quote_n (1, ... to avoid clobbering a buffer.
90880
90881 2001-10-05  Jim Meyering  <meyering@lucent.com>
90882
90883         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
90884         hash-pjw.h.
90885         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
90886         * lib/hash-pjw.h: New file.
90887
90888 2001-09-30  Jim Meyering  <meyering@lucent.com>
90889
90890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
90891         `struct fsstat' has the `f_fstypename' member.
90892         Use that to define FS_TYPE, which is now used to make
90893         the getfsstat link test tighter.
90894
90895 2001-09-30  Jim Meyering  <meyering@lucent.com>
90896
90897         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
90898         Include <sys/ucred.h>, for Apple Darwin.
90899         Include sys/mount.h and sys/fs_types.h only if available.
90900         (FS_TYPE): Define.
90901         (read_filesystem_list): Use FS_TYPE.
90902
90903 2001-09-29  Paul Eggert  <eggert@twinsun.com>
90904
90905         * lib/exclude.c (excluded_filename): 0 -> false, since it's
90906         a boolean context.
90907
90908 2001-09-29  Jim Meyering  <meyering@lucent.com>
90909
90910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90911         [one-argument getmntent function]): Include stdio.h before mntent.h.
90912         SunOS 4.1.x needs it for the declaration of `FILE'.
90913         Patch by Volker Borchert.
90914
90915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90916         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
90917         sys/fs_types.h, and make the link-test for getfsstat guard #include
90918         directives with appropriate #if HAVE_*_H tests so that we can
90919         detect getfsstat on Apple Darwin1.3.7 systems.
90920         Reported by Nelson Beebe.
90921         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
90922
90923 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90924
90925         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90926         #defines strtoimax.  Also treat the other strto* functions
90927         like strtoimax.
90928
90929         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90930         Check for strtoul and strtoumax,
90931         as those declarations are made even in the signed case.
90932         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
90933         Likewise, for strtol and strtoimax.
90934
90935 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90936
90937         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90938         #defines strtoimax.  Also treat the other strto* functions
90939         like strtoimax.
90940
90941         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
90942         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
90943         (strtoimax, strtoumax): Do not declare if already defined as a macro.
90944
90945 2001-09-26  Jim Meyering  <meyering@lucent.com>
90946
90947         Most macros in unlocked-io.h had the wrong number of arguments.
90948         * lib/gen-uio: New script.
90949         (USE_UNLOCKED_IO): Define to 1 if not already defined.
90950         * lib/unlocked-io.hin: Remove file.
90951         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
90952         rather than trying to embed it here.
90953         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
90954         Reported by Padraig Brady.
90955
90956 2001-09-25  Volker Borchert  <bt@teknon.de>
90957
90958         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
90959         `result'.
90960
90961 2001-09-24  Jim Meyering  <meyering@lucent.com>
90962
90963         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
90964
90965 2001-09-23  Jim Meyering  <meyering@lucent.com>
90966
90967         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
90968         instead of the mere test for existence of mntent.h.  The latter
90969         would get a false-positive on AIX 3.4 systems.
90970         In the outer getmntent if-block, don't die if neither of the getmntent
90971         tests succeeds.  Instead, just fall through and continue with the
90972         remaining tests.
90973
90974 2001-09-23  Jim Meyering  <meyering@lucent.com>
90975
90976         * lib/mountlist.c: Remove useless parentheses in #if directives.
90977         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
90978         the deprecated MOUNTED symbol is no longer defined in mntent.h.
90979
90980 2001-09-22  Jim Meyering  <meyering@lucent.com>
90981
90982         * m4/gettext.m4: New file.  From gettext.
90983         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
90984         * m4/progtest.m4: Likewise
90985         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
90986         * m4/glibc21.m4: Likewise.
90987
90988         * m4/libintl.m4: Remove.  No longer used.
90989
90990 2001-09-22  Jim Meyering  <meyering@lucent.com>
90991
90992         * lib/localcharset.c: Update from latest gettext.
90993         * lib/config.charset: Likewise.
90994
90995 2001-09-20  Jim Meyering  <meyering@lucent.com>
90996
90997         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
90998         strtoimax.
90999         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91000         strtoumax.
91001
91002 2001-09-20  Jim Meyering  <meyering@lucent.com>
91003
91004         * lib/xstrtol.c (strtoimax): Guard declaration with
91005         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91006         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91007         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91008         (strtoumax): Likewise, for completeness (it wasn't necessary).
91009
91010 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91011
91012         * lib/strtoimax.c (HAVE_LONG_LONG):
91013         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91014         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91015         to work around bug in IBM C compiler.
91016
91017 2001-09-17  Jim Meyering  <meyering@lucent.com>
91018
91019         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91020         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91021         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91022         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91023         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91024         whenever the right hand side need not be expanded by the shell.
91025
91026 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91027
91028         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91029         library.  It's not correct, as some older glibcs are buggy.
91030         fnmatch wasn't fixed until glibc 2.2.
91031
91032         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91033         special shell magic here.
91034
91035 2001-09-16  Jim Meyering  <meyering@lucent.com>
91036
91037         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91038         * m4/jm-macros.m4: Require it.
91039
91040 2001-09-16  Jim Meyering  <meyering@lucent.com>
91041
91042         * lib/mkdir.c: New file.
91043
91044 2001-09-15  Jim Meyering  <meyering@lucent.com>
91045
91046         * m4/jm-macros.m4: Check for help2man.
91047
91048 2001-09-11  Jim Meyering  <meyering@lucent.com>
91049
91050         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91051         The body, by Paul Eggert, was moved here from configure.in.
91052         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91053
91054 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91055
91056         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91057         (jm_PREREQ): Use it.
91058
91059 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91060
91061         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91062         Use ssize_t, not int, to store result of readlink.
91063         Check for ssize_t overflow as well as size_t overflow,
91064         as POSIX says the result of readlink is implementation-defined
91065         when ssize_t overflows.
91066         Remove unnecessary cast to char*.
91067         Use free+malloc instead of realloc, as the storage doesn't need
91068         to be preserved and it's clearer and can be more efficient that way.
91069         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91070         * lib/xreadlink.h (xreadlink): Update prototype.
91071
91072 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91073
91074         * lib/xgetcwd.c: Revert some of the previous change; intead,
91075         fix the HAVE_GETCWD_NULL code to behave more like the
91076         !HAVE_GETCWD_NULL code used to.
91077
91078         Include "xalloc.h".
91079         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91080         invoke xalloc_die.
91081
91082 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91083
91084         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91085         sys/param.h, as pathmax.h includes them.
91086
91087 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91088
91089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91090         (jm_PREREQ_XGETCWD): New macro.
91091
91092         * m4/getcwd.m4: New file.
91093
91094 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91095
91096         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91097         like the HAVE_GETCWD_NULL code.
91098         Include pathmax.h if not HAVE_GETCWD.
91099         Do not include xalloc.h.
91100         (INITIAL_BUFFER_SIZE): New symbol.
91101         Do not use xmalloc / xrealloc, since the caller is responsible for
91102         handling errors.  Preserve errno around `free' during failure.
91103         Do not overrun buffer when using getwd.
91104
91105 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91106
91107         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91108         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91109         getcwd (NULL, 0).
91110
91111 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91112
91113         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91114         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91115         spotted by Jim Meyering.
91116
91117 2001-09-03  Jim Meyering  <meyering@lucent.com>
91118
91119         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91120         failure.
91121
91122 2001-09-02  Jim Meyering  <meyering@lucent.com>
91123
91124         * lib/error.c: Update from GNU libc.
91125
91126 2001-09-01  Jim Meyering  <meyering@lucent.com>
91127
91128         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91129         Used by df.
91130
91131 2001-09-01  Jim Meyering  <meyering@lucent.com>
91132
91133         * lib/xreadlink.c: New file.
91134         * lib/xreadlink.h: New file.
91135         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91136         xreadlink.h.
91137
91138         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91139         doesn't conflict with sparc Solaris 7's definition in
91140         /usr/include/sys/int_types.h.
91141
91142         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91143         files.
91144         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91145         and strncasecmp as r-values.  Unixware didn't have declarations.
91146
91147 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91148
91149         * lib/xstrtol.h: Add copyright notice.
91150         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91151         LONGINT_INVALID_SUFFIX_CHAR.
91152
91153 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91154
91155         * lib/xstrtol.c (strtoimax): New decl.
91156
91157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91158
91159         * lib/xgetcwd.c: Don't include pathmax.h.
91160         Include stdlib.h and unistd.h if available.
91161         Include xalloc.h.
91162         (xmalloc, xstrdup, free): Remove decls.
91163         (xgetcwd): Don't assume sizes fit in unsigned.
91164         Check for overflow when computing sizes.
91165         Simplify reallocation code.
91166
91167 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91168
91169         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91170         a directory's st_size can have an arbitrary value, so the old
91171         usage could waste an arbitrary amount of memory.  All uses
91172         changed.
91173         * lib/savedir.h: Update prototype.
91174
91175 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91176
91177         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91178
91179         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91180         old strtoimax.c.
91181
91182         Also, make the following further changes to make this file's
91183         configuration more similar to that of strtol.c:
91184         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91185         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91186         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91187         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91188         changed to signed values.
91189
91190         And make the following changes as well:
91191         Fix copyright notice, as 1999 was missing.
91192         (verify): New macro.
91193         (strtoimax): Check sizes at compile-time, not run-time.
91194         Prefer strtol to strtoll if both work.
91195         (main): Remove; it was not that useful and was a pain to maintain.
91196
91197         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91198
91199 2001-08-31  Jim Meyering  <meyering@lucent.com>
91200
91201         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91202         Use an initial, malloc'd, buffer of length 128 rather than
91203         a statically allocated one of length 1024.
91204
91205 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91206
91207         Simplify code, partly by assuming autoconf 2.52 semantics.
91208
91209         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91210
91211         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91212         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91213         All uses removed.
91214         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91215         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91216         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91217         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91218         jm_AC_HEADER_INTTYPES_H.
91219         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91220
91221         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91222
91223         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91224         Quote first arg of AC_DEFUN.
91225         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91226         since they are needed to parse the include file even if we need
91227         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91228         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91229         but with opposite signedness.
91230
91231 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91232
91233         Merge 'exclude' changes from tar 1.13.22.
91234         This fixes one or two unlikely storage allocation overflow bugs,
91235         but doesn't change user-visible behavior otherwise.
91236
91237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91238
91239         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91240         (jm_PREREQ_EXCLUDE): New macro.
91241
91242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91243
91244         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91245         tm to be declared.
91246
91247 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91248
91249         * lib/hash.c: Remove '2001' from copyright notice.
91250
91251 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91252
91253         * lib/full-write.h: New file.
91254         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91255         * lib/full-write.c: Correct credits, as cccp.c no longer
91256         exists and anyway it was so heavily changed from the old cccp
91257         code as to be unrecognizable.  Include full-write.h.
91258         (full_write): Return size_t, with short writes meaning failure.
91259         All callers changed.  This fixes a bug with large buffers
91260         on 64-bit hosts.
91261         * lib/utime.c: Include full-write.h.
91262
91263 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91264
91265         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91266         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91267         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91268         Include if available.
91269         (<xalloc.h>): Include
91270         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91271         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91272         collide with FNM macros.
91273         (struct patopts): New struct.
91274         (struct exclude): Use it, as exclude patterns now come with options.
91275         (new_exclude): Support above changes.
91276         (new_exclude, add_exclude_file):
91277         Initial size must now be a power of two to simplify overflow checking.
91278         (free_exclude, fnmatch_no_wildcards): New function.
91279         (excluded_filename): No longer requires options arg, as the options
91280         are determined by add_exclude.  Now returns bool, not int.
91281         (excluded_filename, add_exclude):
91282         Add support for the fancy new exclusion options.
91283         (add_exclude, add_exclude_file): Now takes int options arg.
91284         Check for arithmetic overflow when computing sizes.
91285         (add_exclude_file): xrealloc might modify errno, so don't
91286         realloc until after errno might be used.
91287
91288         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91289         New macros.
91290         (free_exclude): New decl.
91291         (add_exclude, add_exclude_file): Now takes int options arg.
91292         (excluded_filename): No longer requires options arg, as the options
91293         are determined by add_exclude.  Now returns bool, not int.
91294
91295 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91296
91297         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91298
91299 2001-08-27  Jim Meyering  <meyering@lucent.com>
91300
91301         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91302
91303         * lib/version-etc.c (N_): Remove definition.
91304         Revert most of last change.
91305         Instead, simply don't mark the `Copyright...' string for translation.
91306         Based on advice from Paul Eggert.
91307
91308         * lib/strtoxmax.c: Tweak comment.
91309
91310 2001-08-26  Jim Meyering  <meyering@lucent.com>
91311
91312         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91313
91314         * m4/xstrtoimax.m4: New file.
91315         * m4/xstrtoumax.m4: Add comments explaining why we
91316         AC_REPLACE_FUNCS(strtol).
91317
91318 2001-08-26  Jim Meyering  <meyering@lucent.com>
91319
91320         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91321         of copyright with `%s' so translators don't get an untranslated
91322         message in 2002.
91323         (COPYRIGHT_YEAR): Define.
91324         (version_etc): Use fprintf rather than fputs.
91325         Suggestion from Ulrich Drepper.
91326
91327         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91328
91329         * lib/strtoll.c: New file, from GNU libc.
91330         * lib/xstrtoimax.c: New file.
91331
91332         * lib/xstrtol.h: Add xstrtoimax.
91333         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91334         * lib/strtoimax.c: New file.  Likewise, but first define
91335         STRTOUXMAX_SIGNED.
91336
91337         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91338         ...
91339         * lib/strtoxmax.c: ... then renamed to this.
91340
91341 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91342
91343         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91344         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91345         (jm_AC_TYPE_INTMAX_T): New macro.
91346         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91347
91348         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91349
91350         * m4/longlong.m4: Renamed from ulonglong.m4.
91351         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91352         * m4/uintmax_t.m4: Removed.
91353
91354 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91355
91356         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91357         Port to Solaris 8, where 'sed' requires a space after the 'r'
91358         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91359         Redirect output to $tmp just once.
91360
91361 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91362
91363         * lib/addext.c (<errno.h>): Include.
91364         (errno): Declare if not defined.
91365         (addext): Work correctly when pathconf returns -1 and leaves
91366         errno alone because there is no limit.  Also, work even if
91367         pathconf returns a value greater than SIZE_MAX.
91368
91369 2001-08-12  Jim Meyering  <meyering@lucent.com>
91370
91371         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91372         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91373         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91374         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91375         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91376         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91377         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91378         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91379         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91380         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91381         utime.m4, utimes.m4, xstrtoumax.m4:
91382         Quote the first argument in each use of AC_DEFUN.
91383
91384 2001-08-12  Jim Meyering  <meyering@lucent.com>
91385
91386         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91387         Simply `return getcwd (NULL, 0);'.
91388         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91389         Use 1300 as initial value for length, not PATH_MAX.
91390
91391         * lib/pathmax.h: Clean up cpp syntax.
91392
91393 2001-08-12  Jim Meyering  <meyering@lucent.com>
91394
91395         * lib/gettimeofday.c: New file.
91396         * lib/gtod.h: New file.
91397         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91398
91399 2001-08-05  Jim Meyering  <meyering@lucent.com>
91400
91401         * m4/jm-macros.m4: Require autoconf-2.52.
91402
91403 2001-08-04  Jim Meyering  <meyering@lucent.com>
91404
91405         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91406         stmt, to get in sync with glibc.
91407
91408 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91409
91410         The following changes are from gettext 0.10.39 as maintained by
91411         Bruno Haible.
91412
91413         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91414         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91415         with inverted sense.  All uses changed.
91416
91417         * lib/mbswidth.c: Don't include <limits.h>.
91418         Include <stdlib.h> and <string.h> unconditionally.
91419         (iswcntrl, mbsinit, ISCNTRL): New macros.
91420         (mbsnwidth): Use K&R style function declarations.
91421         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91422         can optimize it when MB_CUR_MAX == 1.
91423         The width of control characters is zero, not 1.
91424
91425 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91426
91427         The following changes are from gettext 0.10.39 as maintained by
91428         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91429
91430         * m4/codeset.m4: Upgrade to serial AM1.
91431         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91432         all uses changed.  Quote first arg of AC_DEFUN.
91433         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91434
91435         * m4/iconv.m4: Upgrade to serial AM2.
91436         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91437         Add --with-libconv-prefix.
91438         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91439         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91440         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91441         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91442         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91443
91444         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91445         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91446         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91447         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91448         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91449         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91450         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91451         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91452         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91453
91454         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91455         string.h any more.
91456
91457         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91458         not the default value.
91459
91460         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91461         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91462         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91463         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91464         Also check for iswcntrl, used for wcwidth fallback.
91465         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91466         to Autoconf 2.13.
91467
91468 2001-08-03  Jim Meyering  <meyering@lucent.com>
91469
91470         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91471         as it was in the original.  Reported by Paul Eggert.
91472
91473 2001-07-16  Jim Meyering  <meyering@lucent.com>
91474
91475         * m4/gettimeofday.m4: New file.
91476         Prompted by a report from Bernhard Baehr.
91477
91478 2001-07-15  Jim Meyering  <meyering@lucent.com>
91479
91480         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91481         stuff. Now it's in ../Makefile.cfg.
91482
91483 2001-07-15  Jim Meyering  <meyering@lucent.com>
91484
91485         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91486         (BUILT_SOURCES): Add unlocked-io.h.
91487         (io_functions): Define.
91488         (unlocked-io.h): New rule.
91489         (DISTCLEANFILES): Add unlocked-io.h.
91490         (all-local): Depend on unlocked-io.h, to ensure it is created.
91491
91492         * lib/unlocked-io.hin: New file
91493
91494         * lib/regex.c: Update from glibc.
91495
91496 2001-07-05  Jim Meyering  <meyering@lucent.com>
91497
91498         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91499         recommendation.
91500         (libfetish_a_SOURCES): Put all .h files here instead.
91501         Remove a thus-exposed (better checks in automake) duplicate and
91502         two unnecessary .h files.
91503
91504 2001-07-04  Jim Meyering  <meyering@lucent.com>
91505
91506         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91507         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91508         distcheck failure.
91509
91510 2001-07-02  Jim Meyering  <meyering@lucent.com>
91511
91512         The following changes were prompted by suggestions from Bruno Haible.
91513
91514         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91515         is now generated.
91516         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91517         definition of EXTRA_DIST.
91518         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91519         ensure that the generated file is created/updated whenever the list
91520         of $(unlocked_functions) is changed.
91521         (jm-glibc-io.m4): New rule.
91522         (unlocked-io.h): New rule -- currently unused.
91523
91524 2001-06-24  Jim Meyering  <meyering@lucent.com>
91525
91526         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91527         unmatched right bracket, rather than kludging it with an extra,
91528         falsely-matching quote in a comment.  Patch by Akim Demaille.
91529
91530 2001-06-11  Jim Meyering  <meyering@lucent.com>
91531
91532         * lib/regex.c: Update from GNU libc.
91533
91534 2001-05-27  Jim Meyering  <meyering@lucent.com>
91535
91536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91537         Check for ut_type in struct utmp.
91538
91539 2001-05-27  Jim Meyering  <meyering@lucent.com>
91540
91541         * lib/readutmp.h (UT_TYPE): Define.
91542
91543 2001-05-24  Jim Meyering  <meyering@lucent.com>
91544
91545         * lib/argmatch.c: Include "quote.h".
91546         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91547         quote function.  Reported by Göran Uddeborg.
91548
91549 2001-05-22  Jim Meyering  <meyering@lucent.com>
91550
91551         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91552         now that we use the package-supplied version unconditionally.
91553         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91554
91555 2001-05-21  Jim Meyering  <meyering@lucent.com>
91556
91557         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91558         shell syntax errors.
91559
91560 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91561
91562         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91563
91564 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91565
91566         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91567         Don't bother to check library strftime, since
91568         we'll be using our own my_strftime function anyway.
91569         Define my_strftime instead of strftime.
91570
91571 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91572
91573         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91574         which is not yet declared.
91575
91576 2001-05-15  Jim Meyering  <meyering@lucent.com>
91577
91578         * m4/regex.m4: Use proper quoting so brackets appear in the test
91579         program.
91580         Reported by, and with help from, Bruno Haible.
91581
91582 2001-05-13  Jim Meyering  <meyering@lucent.com>
91583
91584         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91585         undefined.
91586
91587 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91588
91589         dirname code cleanup.  base_name now behaves more compatibly
91590         with POSIX basename when given file names that have trailing
91591         slashes, and similarly for dir_name.  Add new primitives
91592         base_len and dir_len.  Put the directory-name-related decls
91593         into dirname.h.
91594
91595         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91596         * lib/backupfile.c (base_name): Likewise.
91597         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91598         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91599         * lib/makepath.c (strip_trailing_slashes): Likewise.
91600         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91601         ISSLASH): Likewise.
91602         * lib/rename.c (strip_trailing_slashes): Likewise.
91603         * lib/same.c (base_name): Likewise.
91604         * lib/stripslash.c (ISSLASH): Likewise.
91605
91606         * lib/addext.c: Include <dirname.h> after size_t is defined.
91607         * lib/backupfile.c: Likewise.
91608
91609         * lib/addext.c (addext): Use base_len to trim redundant
91610         trailing slashes instead of doing it ourselves.
91611         But do not trim the last slash if it is not redundant.
91612
91613         * lib/backupfile.c (find_backup_file_name,
91614         max_backup_version): Use base_len instead of rolling it ourselves.
91615         Handle the case of "" and (on DOS) "C:" correctly.
91616
91617         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91618         needed. Include <string.h>, <dirname.h>.
91619         (base_name): Allow file names ending in slashes, other than names
91620         that are all slashes.  In this case, return the basename followed
91621         by the slashes.  This is more general, and can be used in places
91622         where the original base_name purposely had an assertion failure.
91623         (base_len): New function.
91624
91625         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91626         Do not include <assert.h>; no longer needed.
91627         Include xalloc.h.
91628         (memrchr): Remove decl.
91629         (dir_name_r): Remove.
91630         (dir_len): Renamed from dirlen.  All callers changed.
91631         Rewrite in terms of base_name, for simplicity and consistency.
91632         (dir_name): Never return NULL.  All callers changed.
91633         Do not include <stdlib.h> in test program; no longer needed.
91634         return 0; is fine for test program.
91635
91636         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91637         New macros.
91638         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91639
91640         * lib/path-concat.c (path_concat): Use base_len to compute
91641         base length, not strlen; this means we cannot rely on memcpy
91642         to null-terminate.
91643
91644         * lib/same.c (STREQ): Remove.
91645         (same_name): Handle the case where the basename ends in trailing '/'.
91646
91647         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91648         a slash was stripped.  Do not strip the last slash after a
91649         file system prefix.
91650
91651 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91652
91653         * lib/Makefile.am (libfetish_a_SOURCES):
91654         Add strftime.c, since we now compile it on all hosts.
91655
91656         * lib/strftime.c (my_strftime):
91657         Define to nstrftime if emacs, but only if my_strftime is not defined.
91658         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91659         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91660         Add one more extra argument: a nanoseconds value.
91661         All uses changed.
91662         (ns): New macro.
91663         (my_strftime function): Add %N format.
91664         (emacs_strftimeu): Renamed from emacs_strftime,
91665         with extra ut argument.
91666
91667 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91668
91669         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91670
91671 2001-04-21  Jim Meyering  <meyering@lucent.com>
91672
91673         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91674         doesn't interfere.
91675
91676 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91677
91678         * m4/ftruncate.m4: Check for chsize.
91679         Link with ftruncate.o unconditionally if ftruncate is missing.
91680         This was required when cross-compiling to i586-mingw32msvc.
91681
91682 2001-04-08  Jim Meyering  <meyering@lucent.com>
91683
91684         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91685         recomputed; that's necessary when the offset spans a DST transition.
91686         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91687
91688 2001-04-02  Jim Meyering  <meyering@lucent.com>
91689
91690         * lib/regex.h, regex.c: Update from GNU libc.
91691
91692 2001-03-24  Jim Meyering  <meyering@lucent.com>
91693
91694         * m4/jm-macros.m4: Require autoconf-2.49d.
91695
91696 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91697
91698         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91699
91700 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91701
91702         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91703
91704 2001-03-17  Jim Meyering  <meyering@lucent.com>
91705
91706         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91707         now that the version in autoconf is equivalent.
91708         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91709
91710         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91711         Suggestion from Akim Demaille.
91712
91713         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91714         (jm_PREREQ_TEMPNAME): New function.
91715
91716 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91717
91718         * lib/tempname.c (uint64_t): Define to uintmax_t if
91719         not defined, and if UINT64_MAX is not defined.
91720         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91721         Reported by John David Anglin.
91722
91723 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91724
91725         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91726         resolve alias if codeset is empty.
91727         * lib/config.charset (BeOS): Use wildcard syntax.
91728
91729 2001-03-13  Jim Meyering  <meyering@lucent.com>
91730
91731         * lib/path-concat.c (path_concat)
91732         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91733         concatenating e.g., `C:' and `foo'.
91734         From Bruno Haible.
91735
91736 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91737
91738         * lib/localcharset.c (locale_charset): Don't use
91739         setlocale(LC_CTYPE,NULL). Don't return NULL.
91740         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91741
91742 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91743
91744         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91745         support for DOS/DJGPP.
91746
91747 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91748
91749         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91750         lacks mkstemp.  Compile our own tempname.c if we compile our own
91751         mkstemp.c, as mkstemp relies on tempname.
91752
91753 2001-03-01  Jim Meyering  <meyering@lucent.com>
91754
91755         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91756         AH_VERBATIM really does output its argument verbatim.
91757
91758 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91759
91760         * lib/Makefile.am (libfetish_a_SOURCES):
91761         Add dup-safer.c, fopen-safer.c.
91762         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91763
91764         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91765         * lib/unistd-safer.h: New files.
91766
91767 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91768
91769         The mkstemp replacement is taken from glibc 2.2.2, with some
91770         portability fixes for use outside glibc, as follows:
91771
91772         * lib/tempname.c (struct_stat64): New macro.
91773         (direxists, __gen_tempname): Use it.
91774         This avoids a portability problem with Solaris 8.
91775
91776         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91777         (<stddef.h>, <stdint.h>, <string.h>):
91778         Include only if STDC_HEADERS || _LIBC.
91779         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91780         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91781         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91782         (__set_errno): Define this macro if <errno.h> doesn't.
91783         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91784         Define these macros if <stdio.h> doesn't.
91785         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91786         Define these macros if <sys/stat.h>
91787         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91788         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91789         __xstat64): Define if not _LIBC.
91790         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91791         (__gen_tempname): Invoke gettimeofday only if
91792         HAVE_GETTIMEOFDAY || _LIBC;
91793         otherwise, fall back on plain "time".
91794         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91795
91796         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91797
91798         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91799
91800 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91801
91802         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91803
91804 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91805
91806         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91807         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91808         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91809         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91810
91811 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91812
91813         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91814         Remove workaround macros for hosts that have mbrtowc but not
91815         mbstate_t, as we now insist on proper declarations for both
91816         before using mbrtowc.
91817
91818 2001-02-17  Jim Meyering  <meyering@lucent.com>
91819
91820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91821         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91822         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91823         UnixWare 7.1.1.
91824
91825         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91826         rather than AC_CACHE_VAL.
91827
91828 2001-02-17  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91831         around included file name.
91832
91833         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91834
91835         * lib/strftime.c: Update from GNU libc (the only changes were to
91836         comments).
91837
91838 2001-02-17  Jim Meyering  <meyering@lucent.com>
91839
91840         * lib/regex.c: Update from libc.
91841
91842 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
91843
91844         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
91845         clash.
91846
91847 2001-02-16  Paul Eggert  <eggert@twinsun.com>
91848
91849         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
91850         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
91851         Reported by Mark Hounschell via Paul Eggert.
91852
91853 2001-02-07  Jim Meyering  <meyering@lucent.com>
91854
91855         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
91856
91857 2001-02-05  Jim Meyering  <meyering@lucent.com>
91858
91859         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
91860         it includes the patch required for `large file' support with at least
91861         HP-UX's 10.20 /bin/cc.
91862
91863 2001-02-03  Jim Meyering  <meyering@lucent.com>
91864
91865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
91866         AS_IF, now that it works once again (mysteriously).
91867         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91868
91869 2001-01-30  Jim Meyering  <meyering@lucent.com>
91870
91871         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
91872         * m4/chown.m4: Rename conftestchown to conftest.chown.
91873         * m4/rename.m4: s/conftestdir/conftest.d1/ and
91874         s/conftestdir2/conftest.d2/.
91875         * m4/utimes.m4: s/conftestdata/conftest.data/
91876         Inspired by Pavel Roskin's change in autoconf.
91877
91878 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
91879
91880         * lib/config.charset: Update for FreeBSD 4.2.
91881
91882 2001-01-27  Jim Meyering  <meyering@lucent.com>
91883
91884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
91885         a use of AS_IF.
91886         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91887
91888 2001-01-26  Jim Meyering  <meyering@lucent.com>
91889
91890         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
91891         quotearg.c includes it.
91892
91893 2001-01-26  Jim Meyering  <meyering@lucent.com>
91894
91895         * lib/quotearg.c: Include stddef.h.
91896         * lib/quote.c: Include stddef.h.
91897         Reported by Axel Kittenberger.
91898
91899         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
91900         line in double quotes so that it evokes a better diagnostic.
91901         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
91902         Reported by Axel Kittenberger.
91903
91904 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
91905
91906         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
91907         as if it was a `charset'.
91908
91909 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91910
91911         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
91912         has const.
91913
91914 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91915
91916         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
91917         to avoid a warning.  Add back 'const' to inptr.
91918
91919 2001-01-20  Jim Meyering  <meyering@lucent.com>
91920
91921         Be sure that headers are checked before used in code compiled
91922         for the type checks.
91923         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
91924         In place of that, invoke jm_CHECK_ALL_TYPES.
91925         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
91926         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
91927         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
91928         The check for ssize_t was mistakenly run before the test for unistd.h.
91929
91930         The configure-time check for stdbool.h was missing.
91931         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
91932         (jm_PREREQ_HASH): New function.
91933
91934 2001-01-17  Jim Meyering  <meyering@lucent.com>
91935
91936         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
91937         for autoconf-2.49c.
91938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
91939
91940 2001-01-16  Jim Meyering  <meyering@lucent.com>
91941
91942         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
91943         From Bruno Haible.
91944
91945 2001-01-14  Jim Meyering  <meyering@lucent.com>
91946
91947         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
91948         foo and bar.  Create conftestdir/ in the script, not in the C code.
91949         Remove directories in the script, not in the C code.
91950         Remove conftestdir{,2} before trying to create the directory.
91951         Make the entire configure script fail if the mkdir fails.
91952
91953 2001-01-14  Jim Meyering  <meyering@lucent.com>
91954
91955         * lib/rename.c: New file.  From Volker Borchert.
91956         Include stdlib.h, string.h or strings.h, and xalloc.h.
91957         Use strip_trailing_slashes rather than open-coding it.
91958
91959 2001-01-03  Paul Eggert  <eggert@twinsun.com>
91960
91961         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
91962
91963 2001-01-03  Jim Meyering  <meyering@lucent.com>
91964
91965         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
91966         of local `inptr' to avoid warning with some system declarations of
91967         iconv.
91968
91969 2001-01-02  Volker Borchert  <bt@teknon.de>
91970
91971         * m4/rename.m4: New file.
91972         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
91973
91974 2001-01-01  Jim Meyering  <meyering@lucent.com>
91975
91976         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
91977         even on systems with utmpx.h.  It's necessary for the declaration of
91978         utmp's ut_user member.  Reported by Andreas Jaeger.
91979
91980         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
91981         available. They are required for the declarations of getgrgid and
91982         getpwuid resp.
91983         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
91984         Reported by Andreas Jaeger.
91985
91986 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
91987
91988         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
91989         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
91990         so `make install' also works in VPATH builds.
91991
91992 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
91993
91994         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
91995         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
91996         can be used in subdirectories.
91997
91998 2000-12-29  Paul Eggert  <eggert@twinsun.com>
91999
92000         * lib/modechange.c: Do not assume that mode_t uses the
92001         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92002         the other-execute bit of FOO even if S_IXOTH != 1.
92003
92004         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92005         WOTH, XOTH, ALLM): New macros.
92006         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92007          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92008         Use them.
92009         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92010         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92011         (mode_compile):
92012         No need to use uintmax_t; unsigned long is long enough.
92013         Don't bother to get suffix since we don't use it.
92014
92015 2000-12-26  Jim Meyering  <meyering@lucent.com>
92016
92017         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92018         better with autoheader.
92019
92020 2000-12-24  Jim Meyering  <meyering@lucent.com>
92021
92022         * lib/hash.c (is_prime): Return explicit boolean values.
92023         (hash_get_first): Return NULL to appease Irix5.6's 89.
92024         Reported by Nelson Beebe.
92025
92026 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92027
92028         * lib/localcharset.c (locale_charset): Add support for Win32.
92029
92030 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92031
92032         * lib/physmem.h, lib/physmem.c: New files.
92033
92034         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92035         (noinst_HEADERS): Add physmem.h.
92036
92037         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92038         't' for compatibility with Solaris 8 sort.
92039
92040 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92041
92042         * lib/config.charset: Add support for BeOS.
92043
92044 2000-12-17  Jim Meyering  <meyering@lucent.com>
92045
92046         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92047         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92048
92049 2000-12-16  Jim Meyering  <meyering@lucent.com>
92050
92051         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92052         N and M) would have treated it like `chown N:N FILE'.
92053
92054         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92055
92056 2000-12-16  Jim Meyering  <meyering@lucent.com>
92057
92058         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92059         SHELLS_FILE to a file name that's useful on djgpp systems.
92060         Include stdlib.h.
92061         (ADDITIONAL_DEFAULT_SHELLS): Define.
92062         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92063         Based mostly on a patch from Prashant TR.
92064
92065 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92066
92067         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92068         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92069         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92070
92071 2000-12-08  Andreas Schwab  <schwab@suse.de>
92072
92073         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92074         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92075
92076 2000-12-07  Jim Meyering  <meyering@lucent.com>
92077
92078         * lib/stripslash.c (ISSLASH): Define.
92079         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92080         `/'.
92081         From Prashant TR.
92082
92083         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92084         (dir_name_r): Declare this function as static.
92085         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92086         manifest itself on a name containing a mix of slashes and
92087         backslashes.
92088         Make this function work with names starting with a DOS-style
92089         drive letter and colon prefix.
92090         (dir_name): Append `.' if necessary.
92091         Based mostly on patches from Prashant TR and Eli Zaretskii.
92092
92093         * lib/dirname.h (dir_name_r): Remove prototype.
92094
92095 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92096
92097         * m4/off_t-format.m4: Remove this file.
92098         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92099
92100 2000-12-06  Jim Meyering  <meyering@lucent.com>
92101
92102         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92103         replacement strtoull, we may well need the replacement strtoul, too.
92104         Check for declarations of strtoul and strtoull.
92105         Check for strtol.  Mainly as a cue to cause automake to include
92106         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92107         Check for limits.h -- strtol.c needs it.
92108
92109 2000-12-05  Jim Meyering  <meyering@lucent.com>
92110
92111         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92112
92113 2000-12-04  Jim Meyering  <meyering@lucent.com>
92114
92115         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92116         Also include memory.h, stdlib.h, unistd.h if appropriate.
92117         Reported by Andreas Jaeger (conflicting declaration of malloc).
92118
92119 2000-12-02  Jim Meyering  <meyering@lucent.com>
92120
92121         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92122         * m4/jm-macros.m4 (jm_MACROS): require it.
92123
92124 2000-12-02  Jim Meyering  <meyering@lucent.com>
92125
92126         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92127
92128 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92129
92130         * lib/memrchr.c: Include <config.h> before any system include file.
92131
92132 2000-11-30  Jim Meyering  <meyering@lucent.com>
92133
92134         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92135
92136 2000-11-30  Jim Meyering  <meyering@lucent.com>
92137
92138         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92139
92140 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92141
92142         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92143
92144 2000-11-26  Jim Meyering  <meyering@lucent.com>
92145
92146         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92147
92148 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92149
92150         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92151         size of (size_t) -1; it's not portable.
92152
92153 2000-11-17  Jim Meyering  <meyering@lucent.com>
92154
92155         * lib/strstr.c: Update from GNU libc.
92156
92157 2000-11-17  Akim Demaille  <akim@epita.fr>
92158
92159         * lib/obstack.h: Formatting changes.
92160         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92161         prevent type checking.
92162         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92163         cast the value to (void *): assigning a `foo *' to a `void *'
92164         variable is valid.
92165         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92166
92167 2000-11-16  Jim Meyering  <meyering@lucent.com>
92168
92169         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92170
92171 2000-11-11  Jim Meyering  <meyering@lucent.com>
92172
92173         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92174
92175 2000-11-10  Jim Meyering  <meyering@lucent.com>
92176
92177         * lib/obstack.h: Update from GNU libc.
92178         * lib/obstack.c: Likewise.
92179
92180 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92181
92182         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92183
92184 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92185
92186         * lib/getusershell.c (setusershell): Use rewind rather than
92187         fseek/fseeko, to avoid configuration hassles with fseeko.
92188         Don't bother opening SHELLS_FILE if shellstream is NULL;
92189         it's not necessary.
92190
92191 2000-11-05  Jim Meyering  <meyering@lucent.com>
92192
92193         * lib/makepath.h (make_dir): Declare.
92194         * lib/makepath.c (make_dir): Remove `static' attribute.
92195         Tweak a comment.
92196
92197 2000-11-04  Jim Meyering  <meyering@lucent.com>
92198
92199         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92200
92201 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92202
92203         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92204         last one in a bucket, advance to the next bucket.
92205
92206 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92207
92208         * lib/fnmatch.c: Do not comment out all the code if we are using
92209         the GNU C library, because in some cases we are replacing buggy
92210         code in the GNU C library itself.
92211
92212 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92213
92214         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92215         (regex_compile): Catch bogus \(\1\).
92216
92217 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92218
92219         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92220         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92221         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92222
92223 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92224
92225         * lib/error.h, getline.h, modechange.h:
92226         Remove "2000" from Copyright line, as the file hasn't been
92227         changed this year other than in the copyright notice.
92228
92229         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92230         was changed this year.
92231
92232 2000-10-29  Jim Meyering  <meyering@lucent.com>
92233
92234         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92235         renaming.
92236         * m4/ls-mntd-fs.m4: Likewise
92237
92238 2000-10-29  Jim Meyering  <meyering@lucent.com>
92239
92240         * lib/xstat.in: Fix grammar in comment.
92241
92242 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92243
92244         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92245         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92246         doesn't define __restrict_arr.
92247
92248 2000-10-28  Jim Meyering  <meyering@lucent.com>
92249
92250         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92251         (jm_PREREQ_MEMCHR): New function.
92252
92253 2000-10-28  Jim Meyering  <meyering@lucent.com>
92254
92255         * lib/memchr.c: Update from libc.
92256         Adjust for portability:
92257         [HAVE_STDLIB_H]: Include stdlib.h.
92258         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92259         Undef __memchr, too.
92260         [!weak_alias]: Define __memchr to memchr.
92261
92262         * lib/regex.c: Update from libc.
92263         * lib/regex.h: Likewise.
92264         * lib/getopt1.c: Likewise.
92265         * lib/memcmp.c: Likewise.
92266
92267         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92268         Avoid using fseek, when possible -- it's broken by design.
92269         Patch by Ulrich Drepper.
92270
92271 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92272
92273         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92274         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92275         Giving in to popular pressure to shut up the compiler with casts.
92276
92277 2000-10-26  Jim Meyering  <meyering@lucent.com>
92278
92279         * lib/strftime.c: Update from libc.
92280
92281 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92282
92283         * regex.c: More `unsigned char' -> `re_char' changes.
92284         Also change several `int' into `re_wchar_t'.
92285         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92286         (PUSH_FAILURE_POINTER): Don't cast any more.
92287         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92288         We want GCC to complain, since this piece of code makes
92289         re_match non-reentrant, which *should* be fixed.
92290         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92291         (EXTEND_BUFFER): Use RETALLOC.
92292         (SET_LIST_BIT): Don't cast.
92293         (re_wchar_t): New type.
92294         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92295         that those two functions will always properly return.
92296         (IMMEDIATE_QUIT_CHECK): Cast to void.
92297         (analyse_first): Use recursion rather than an explicit stack.
92298         (re_compile_fastmap): Can't fail anymore.
92299         (re_search_2): Don't check re_compile_fastmap for failure.
92300         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92301         Now also sets the new value (passed in a new argument).
92302         (re_match_2_internal): Use it.
92303         Also, use a new var `reg' of type size_t when looping through regs
92304         rather than reuse the inappropriate `mcnt'.
92305
92306 2000-10-25  Jim Meyering  <meyering@lucent.com>
92307
92308         * lib/obstack.c: Update from libc.
92309
92310 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92311
92312         * regex.c (regex_compile): Change the way of handling a range from
92313         a char less than 256 to a char not less than 256.
92314
92315 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92316
92317         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92318         NT-Emacs only.
92319         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92320         so that re_search functions only quit when callers expect them to.
92321
92322 2000-10-23  Jim Meyering  <meyering@lucent.com>
92323
92324         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92325         wrong.  That set_locale call must not have any side effects.
92326         From Paul Eggert.
92327
92328 2000-10-22  Jim Meyering  <meyering@lucent.com>
92329
92330         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92331         [CYCLIC]: Remove now-unused definition.
92332
92333         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92334         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92335         Suggestion from Ulrich Drepper.
92336
92337 2000-10-21  Jim Meyering  <meyering@lucent.com>
92338
92339         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92340         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92341         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92342
92343 2000-10-21  Jim Meyering  <meyering@lucent.com>
92344
92345         * lib/dirname.c (memrchr): Declare if necessary.
92346         (dir_name): Remove the restriction that there be no
92347         trailing slashes.  Now, this code skips past them, effectively
92348         ignoring them.
92349         [TEST_DIRNAME] (main): New unit tests.
92350
92351         * lib/memrchr.c: New file from GNU libc.
92352         Undef __memrchr, too.
92353         [!weak_alias]: Define __memrchr to memrchr.
92354         Guard weak_alias use with `#ifdef weak_alias'.
92355
92356 2000-10-21  Jim Meyering  <meyering@lucent.com>
92357
92358         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92359         (dir_name): Use dir_name_r.
92360         * lib/dirname.h (dir_name_r): Declare it.
92361
92362 2000-10-17  Jim Meyering  <meyering@lucent.com>
92363
92364         * lib/quote.h (PARAMS): Define and use.
92365         Reported by Akim Demaille.
92366
92367         * lib/getopt.c: Update from libc.
92368
92369 2000-10-16  Jim Meyering  <meyering@lucent.com>
92370
92371         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92372         setlocale.
92373         From Jan Fedak.
92374
92375 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92376
92377         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92378
92379 2000-09-25  Jim Meyering  <meyering@lucent.com>
92380
92381         * lib/md5.h (rol): Define (from GnuPG).
92382
92383         * lib/sha.c: Give credit (GnuPG) where due.
92384         (M): Use rol rather than open-coding it.
92385         Add a FIXME comment.
92386
92387 2000-09-21  Jim Meyering  <meyering@lucent.com>
92388
92389         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92390         Reported by Michael Stone.
92391
92392 2000-09-20  Jim Meyering  <meyering@lucent.com>
92393
92394         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92395         (noinst_HEADERS): Add sha.h.
92396         Based on code from Scott G. Miller and from GnuPG.
92397
92398 2000-09-18  Jim Meyering  <meyering@lucent.com>
92399
92400         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92401         LIBS. Otherwise, everyone ends up linking with -lelf for some
92402         configurations.
92403         Reported by Mike Stone.
92404
92405 2000-09-15  Jim Meyering  <meyering@lucent.com>
92406
92407         * lib/regex.c: Update from libc.
92408
92409 2000-09-10  Jim Meyering  <meyering@lucent.com>
92410
92411         * lib/getopt.c (_getopt_internal): Update from glibc.
92412
92413 2000-09-09  Jim Meyering  <meyering@lucent.com>
92414
92415         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92416         think it should be used as a general replacement for isascii.
92417         * lib/fnmatch.c: Likewise.
92418         * lib/mbswidth.c: Likewise
92419         * lib/regex.c: Likewise.
92420
92421         Don't use atoi.
92422         * lib/userspec.c: Include sys/param.h and limits.h.
92423         Include xstrtol.h.
92424         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92425         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92426         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92427         UID, GID.  Check range.
92428
92429 2000-09-06  Jim Meyering  <meyering@lucent.com>
92430
92431         * lib/getopt.c (_getopt_internal): Update from glibc.
92432
92433 2000-08-30  Jim Meyering  <meyering@lucent.com>
92434
92435         * lib/strftime.c: Merge in changes from GNU libc.
92436
92437 2000-08-26  Jim Meyering  <meyering@lucent.com>
92438
92439         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92440         * m4/fpending.m4: New file.
92441
92442 2000-08-26  Jim Meyering  <meyering@lucent.com>
92443
92444         * lib/closeout.c: Include "__fpending.h".
92445         (close_stdout_status): Return right away if there's nothing to flush.
92446
92447         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92448         * lib/__fpending.c: New file.
92449         * lib/__fpending.h: New file.
92450
92451 2000-08-20  Jim Meyering  <meyering@lucent.com>
92452
92453         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92454         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92455         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92456
92457 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92458
92459         Improve fileutils installation on systems where running
92460         programs (like install) can't be unlinked.
92461         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92462         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92463
92464 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92465
92466         Standardize on "memory exhausted" instead of "Memory exhausted"
92467         or "virtual memory exhausted".
92468         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92469         "virtual memory exhausted".
92470         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92471         our own message.
92472         * lib/userspec.c (parse_user_spec): Likewise.
92473         * lib/bumpalloc.h: comment fix
92474         * lib/same.c, userspec.c: Include xalloc.h.
92475
92476         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92477         not char *const and pointing to a constant array.
92478         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92479         (xrealloc): Comment fix.
92480
92481         * lib/userspec.c (parse_user_spec):
92482         Don't translate a message until just before returning,
92483         to avoid unnecessary translation.
92484
92485 2000-08-07  Jim Meyering  <meyering@lucent.com>
92486
92487         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92488         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92489         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92490         getgroups.c, gethostname.c, getopt.h, group-member.c,
92491         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92492         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92493         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92494         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92495         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92496         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92497         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92498         yesno.c: Back out Copyright date changes for each file with no change
92499         this year.  This eases coordination with other programs using the same
92500         source code modules.  From Paul Eggert.
92501
92502 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92503
92504         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92505         not char, for compatibility with glibc 2.1.3 strftime.c.
92506
92507 2000-08-03  Greg McGary  <greg@mcgary.org>
92508
92509         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92510         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92511         (EXTEND_BUFFER): Use them.
92512
92513 2000-08-01  Jim Meyering  <meyering@lucent.com>
92514
92515         * lib/dirname.c (ISSLASH): Define.
92516         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92517         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92518         both `\' and `/' may be use as path separators.
92519         Based on a patch from Prashant TR.
92520
92521 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92522
92523         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92524         slot vector a constant, since it might get modified.
92525
92526 2000-07-31  Jim Meyering  <meyering@lucent.com>
92527
92528         * lib/xmalloc.c: Use `virtual memory exhausted', not
92529         `Memory exhausted'.
92530         * lib/obstack.c (print_and_abort): Likewise.
92531
92532 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92533
92534         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92535         buffer, so that the caller can always quote one small
92536         component of a "memory exhausted" message in slot 0.
92537         From a suggestion by Jim Meyering.
92538
92539 2000-07-30  Jim Meyering  <meyering@lucent.com>
92540
92541         * lib/makepath.c (make_path): Quote the other instance, too.
92542
92543         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92544         (STATIC_BUF_SIZE): Define.
92545         (quotearg_n_options): Use only statically allocated storage when
92546         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92547         than STATIC_BUF_SIZE.
92548
92549 2000-07-29  Jim Meyering  <meyering@lucent.com>
92550
92551         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92552         * lib/dirname.c (dir_name): Likewise.
92553
92554         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92555         `/'.
92556
92557         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92558         (dir_name): Assert that there are no trailing slashes.
92559
92560 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92561
92562         * lib/mbswidth.h (mbswidth): Add a flags argument.
92563         (mbswidth): New declaration.
92564         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92565         * lib/mbswidth.c (mbswidth): Add a flags argument.
92566         (mbsnwidth): New function.
92567
92568 2000-07-24  Jim Meyering  <meyering@lucent.com>
92569
92570         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92571
92572 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92573
92574         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92575
92576 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92577
92578         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92579         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92580         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92581         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92582         invoke multibyte primitives.
92583
92584 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92585
92586         * lib/quotearg.c:
92587         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92588         so that mbstate_t is always defined.
92589
92590         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92591         be 1 in at least one GCC installation, and this configuration
92592         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92593         performance on hosts that have mbrtowc but have only unibyte
92594         locales, but I assume these hosts are rare.
92595
92596 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92597
92598         * lib/mbswidth.c (_XOPEN_SOURCE):
92599         Don't define; this causes problems on Solaris 7.
92600         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92601
92602 2000-07-23  Jim Meyering  <meyering@lucent.com>
92603
92604         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92605         too: getgrgid, getpwuid, getuid.
92606
92607 2000-07-23  Jim Meyering  <meyering@lucent.com>
92608
92609         * lib/basename.c (base_name): Add an assertion.
92610
92611 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92612
92613         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92614         shadow its mbsinit function.
92615
92616 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92617
92618         * lib/mbswidth.h: New file.
92619         * lib/mbswidth.c: New file.
92620         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92621         (noinst_HEADERS): Add mbswidth.h.
92622
92623 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92624
92625         * lib/config.charset: Add support for FreeBSD. Improve support for
92626         HP-UX and IRIX 6.
92627
92628 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92629
92630         * m4/mbswidth.m4: New file.
92631         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92632
92633 2000-07-15  Jim Meyering  <meyering@lucent.com>
92634
92635         * lib/makepath.c: Include quote.h.
92636         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92637         corresponding argument in a `quote (...)' call.
92638         Give better diagnostics.
92639
92640         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92641         (noinst_HEADERS): Add quote.h.
92642
92643         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92644         from tar's src/misc.c.
92645         * lib/quote.h: New file.  Prototypes for same.
92646
92647 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92648
92649         From a suggestion by Bruno Haible.
92650         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92651         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92652         to decide whether to define the BeOS workaround macro;
92653         this adjusts to the change to AC_MBSTATE_T.
92654
92655 2000-07-14  Jim Meyering  <meyering@lucent.com>
92656
92657         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92658         jm_AC_TYPE_UINTMAX_T.
92659
92660 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92661
92662         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92663
92664         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92665         quotearg_buffer_restyled): Add support for
92666         clocale_quoting_style.  Undo previous change to
92667         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92668         and "{RIGHT QUOTATION MARK}" msgids.
92669
92670 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92671
92672         From a suggestion by Bruno Haible.
92673         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92674         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92675         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92676         and mbstate_t, to a single-part test that simply defines mbstate_t.
92677         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92678         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92679
92680 2000-07-10  Jim Meyering  <meyering@lucent.com>
92681
92682         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92683
92684         * m4/gnu-source.m4: Output to confdefs.h directly.
92685         Suggestion from Akim Demaille.
92686
92687 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92688
92689         The old behavior of quoting `like this' doesn't look good with
92690         newer, ISO-style fonts.  See:
92691         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92692
92693         Instead, quote "like this" by default.  Let the translator
92694         tailor the locale-specific quoting behavior by providing
92695         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92696
92697         * lib/quotearg.c (N_): New macro.
92698         (gettext_default): New function.
92699         (quotearg_buffer_restyled): Use
92700         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92701         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92702
92703 2000-07-09  Jim Meyering  <meyering@lucent.com>
92704
92705         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92706         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92707
92708         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92710
92711 2000-07-09  Jim Meyering  <meyering@lucent.com>
92712
92713         * lib/Most files: Update copyright dates to include 2000.
92714
92715 2000-07-08  Jim Meyering  <meyering@lucent.com>
92716
92717         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92718         if not defined.
92719         (xgethostname): Remove now-unnecessary #ifdef.
92720         Move declaration of `err' into loop where it's used.
92721
92722 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92723         and Bruno Haible  <haible@clisp.cons.org>
92724
92725         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92726         only if the test for an object-type mbstate_t fails.  This
92727         prevents us from mistakenly reporting that mbstate_t is a
92728         system object type after we "#define mbstate_t int" to work
92729         around its lack.
92730
92731 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92732         and Bruno Haible  <haible@clisp.cons.org>
92733
92734         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92735
92736 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92737
92738         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92739         to strerror_r.
92740         Include <ctype.h> for use of isalpha.
92741
92742 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92743
92744         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92745         by allocating a larger buffer. Test the gethostname return value for
92746         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92747         returns an error and ENAMETOOLONG isn't defined.
92748
92749 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92750
92751         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92752         dimension.
92753
92754 2000-07-04  Jim Meyering  <meyering@lucent.com>
92755
92756         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92757         of the deprecated AC_CHECKING.
92758
92759 2000-07-04  Jim Meyering  <meyering@lucent.com>
92760
92761         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92762         Reported by Bruno Haible.
92763
92764 2000-07-04  Jim Meyering  <meyering@lucent.com>
92765
92766         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92767         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92768         lacks mbrtowc.
92769
92770 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92771
92772         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92773         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92774
92775 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92776         and Bruno Haible  <haible@clisp.cons.org>
92777
92778         * lib/quotearg.c (mbrtowc):
92779         Assign to *pwc, and return 1 only if result is nonzero.
92780         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92781
92782 2000-07-03  Jim Meyering  <meyering@lucent.com>
92783
92784         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92785
92786 2000-07-03  Jim Meyering  <meyering@lucent.com>
92787
92788         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92789         This is necessary to get a definition of e.g., UTMP_FILE on
92790         HP-UX 10.20.
92791         From Bob Proulx.
92792
92793 2000-07-02  Jim Meyering  <meyering@lucent.com>
92794
92795         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92796
92797         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92798         AC_LIBOBJ(function_name).
92799         * m4/chown.m4: Likewise.
92800         * m4/fnmatch.m4: Likewise.
92801         * m4/ftruncate.m4: Likewise.
92802         * m4/getgroups.m4: Likewise.
92803         * m4/getline.m4: Likewise.
92804         * m4/group-member.m4: Likewise.
92805         * m4/jm-macros.m4: Likewise.
92806         * m4/lstat.m4: Likewise.
92807         * m4/malloc.m4: Likewise.
92808         * m4/memcmp.m4: Likewise.
92809         * m4/nanosleep.m4: Likewise.
92810         * m4/putenv.m4: Likewise.
92811         * m4/realloc.m4: Likewise.
92812         * m4/regex.m4: Likewise.
92813         * m4/stat.m4: Likewise.
92814         * m4/strftime.m4: Likewise.
92815
92816 2000-07-02  Jim Meyering  <meyering@lucent.com>
92817
92818         * lib/quotearg.c (mbstate_t): Don't define here.
92819
92820 2000-07-02  Jim Meyering  <meyering@lucent.com>
92821
92822         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92823
92824 2000-07-01  Jim Meyering  <meyering@lucent.com>
92825
92826         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92827
92828 2000-07-01  Jim Meyering  <meyering@lucent.com>
92829
92830         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92831         problem.
92832
92833 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92834
92835         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92836         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92837
92838 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92839
92840         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92841         per change in ../m4/ls-mntd-fs.m4.
92842         (read_filesystem_list): Ignore symbolic links.
92843
92844 2000-06-29  Jim Meyering  <meyering@lucent.com>
92845
92846         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
92847         for declaration of strcmp.
92848
92849         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
92850
92851         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
92852         Avoid warning by casting result to `char *' to remove `const'.
92853
92854 2000-06-28  Jim Meyering  <meyering@lucent.com>
92855
92856         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
92857         included by quotearg.c, for which we perform this test.  From
92858         Bruno Haible.
92859
92860 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92861
92862         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
92863         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
92864         <utmpx.h> exists, put readutmp.o into LIBOBJS.
92865
92866 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92867
92868         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
92869
92870 2000-06-26  Paul Eggert  <eggert@twinsun.com>
92871
92872         savedir now sets errno on failure and invokes xmalloc to get memory.
92873         Fix a couple of other minor bugs while we're at it.
92874
92875         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
92876         (NAMLEN): Remove macro.
92877         (malloc, realloc): Remove decls.
92878         (stpcpy): Likewise.
92879         ("xalloc.h"): Include.
92880         (NAME_SIZE_DEFAULT): New macro.
92881         (savedir): Use xmalloc / xrealloc to allocate memory.
92882         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
92883         Skip "" directory entries.
92884         Use strlen to calculate directory entry length, since the old method
92885         is rarely used these days and isn't worth supporting.
92886         Don't use a pointer after freeing it.
92887         Check for integer overflow when calculating allocation size.
92888         Use memcpy to copy entries, instead of stpcpy.
92889         Set errno properly when returning NULL.
92890         Check for readdir error.
92891
92892 2000-06-26  Jim Meyering  <meyering@lucent.com>
92893
92894         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
92895
92896 2000-06-25  Jim Meyering  <meyering@lucent.com>
92897
92898         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
92899         Linux header bug when _XOPEN_SOURCE is defined to 500.
92900
92901 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92902
92903         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
92904         deficiency.
92905
92906 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92907
92908         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
92909         Include xalloc.h.
92910         Don't include <stdlib.h>.  Don't declare malloc, realloc.
92911
92912 2000-06-24  Jim Meyering  <meyering@lucent.com>
92913
92914         * m4/strerror_r.m4: Revive this file -- to try out an experimental
92915         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
92916         for which strerror does return char*, but which lacks a conveniently
92917         accessible declaration of the function.  If the compile-test says
92918         strerror_r doesn't work, then resort to a `run'-test that works on
92919         BeOS and segfaults on DEC Unix.
92920
92921 2000-06-24  Jim Meyering  <meyering@lucent.com>
92922
92923         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
92924
92925 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92926
92927         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
92928         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
92929
92930 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92931
92932         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
92933         (mbrtowc, mbstate_t): Define substitutes if
92934         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
92935         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
92936         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
92937
92938 2000-06-23  Jim Meyering  <meyering@lucent.com>
92939
92940         * m4/afs.m4: Add missing AC_MSG_RESULT.
92941         Reported by Bruno Haible.
92942
92943         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
92944         Suggestion from Bruno Haible.
92945
92946 2000-06-23  Jim Meyering  <meyering@lucent.com>
92947
92948         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
92949
92950 2000-06-21  Jim Meyering  <meyering@lucent.com>
92951
92952         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
92953
92954 2000-06-21  Jim Meyering  <meyering@lucent.com>
92955
92956         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
92957         (noinst_HEADERS): Add getstr.h.
92958
92959         * lib/getline.c (getstr): Move into a separate file.
92960         * lib/getstr.c (getstr): New file, extracted from getline.c, with
92961         the following changes: new parameter, delim2; both delim[12]
92962         parameters have type `int', not `char'.  The latter would lose
92963         with 8-bit delimiters.
92964         * lib/getstr.h: New file.
92965
92966 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92967
92968         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
92969         than 1024, return a memory chunk of least possible size, instead
92970         of size PATH_MAX + 2. In the loop, increment the size proportionally.
92971         Use free/xmalloc instead of xrealloc to avoid copying for very long
92972         paths.
92973
92974 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92975
92976         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
92977         the empty string.
92978
92979 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92980
92981         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
92982         address, not strdup.  Include <stdlib.h> and don't declare free().
92983
92984 2000-06-19  Jim Meyering  <meyering@lucent.com>
92985
92986         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
92987
92988 2000-06-18  Jim Meyering  <meyering@lucent.com>
92989
92990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
92991
92992         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
92993         `checking whether...' message to be consistent with that of the
92994         lstat test.
92995
92996 2000-06-18  Jim Meyering  <meyering@lucent.com>
92997
92998         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
92999         Besides, these days every porting target provides a mkdir function.
93000
93001         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93002         needed. (this snippet comes from src/system.h).
93003
93004 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93005
93006         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93007
93008 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93009
93010         * lib/human.c (adjust_value): New function.
93011         (human_readable_inexact): Apply rounding style even when
93012         printing approximate values.
93013
93014 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93015
93016         * lib/human.c (human_readable_inexact): Allow an input block
93017         size that is not a multiple of the output block size, and vice versa.
93018         Reported by Piergiorgio Sartor.
93019
93020 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93021
93022         * lib/getdate.y (get_date): Apply relative times after time
93023         zone indicator, not before.  Reported by Todd A. Jacobs.
93024
93025 2000-06-13  Jim Meyering  <meyering@lucent.com>
93026
93027         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93028
93029         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93030
93031 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93034
93035 2000-06-12  Jim Meyering  <meyering@lucent.com>
93036
93037         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93038         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93039         optional argument.
93040         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93041         the optional argument, `lib'.
93042
93043 2000-06-08  Jim Meyering  <meyering@lucent.com>
93044
93045         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93046
93047 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93048
93049         Rewrite largefile configuration so that we don't need to run
93050         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93051         AC_CANONICAL_HOST in configure.in -- jmm]
93052
93053         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93054         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93055         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93056         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93057         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93058         All uses changed.
93059         Instead of inspecting the output of getconf, try to compile the
93060         test program without and with the macro definition.
93061         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93062         for getconf.  Instead, check for the needed flags by compiling
93063         test programs.
93064
93065 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93066
93067         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93068
93069 2000-06-04  Jim Meyering  <meyering@lucent.com>
93070
93071         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93072         SunOS 4.1.4 for which gid_t is an unsigned type.
93073
93074 2000-06-03  Jim Meyering  <meyering@lucent.com>
93075
93076         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93077         now that autoconf requires that.
93078
93079         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93080         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93081         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93082
93083 2000-06-03  Jim Meyering  <meyering@lucent.com>
93084
93085         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93086
93087 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93088
93089         * m4/glibc21.m4: New file.
93090         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93091
93092 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93093
93094         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93095         newer, don't install charset.alias.
93096         * lib/config.charset: Change the Linux/glibc rules so they become empty
93097         on glibc-2.1 or newer.
93098
93099 2000-06-02  Jim Meyering  <meyering@lucent.com>
93100
93101         * lib/mountlist.c: Back out last change.  Instead, do this...
93102         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93103         me_dummy member using the same `ignore'-testing code.
93104         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93105         fs_type strings.
93106         From Mark D. Roth.
93107
93108 2000-05-29  Jim Meyering  <meyering@lucent.com>
93109
93110         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93111         mounts with the `ignore' attribute.  Based on a patch from
93112         Mark D. Roth.
93113
93114 2000-05-28  Jim Meyering  <meyering@lucent.com>
93115
93116         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93117         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93118         * m4/stat.m4: Likewise.
93119         * m4/lstat.m4: Likewise.
93120         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93121
93122         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93123         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93124
93125 2000-05-26  Jim Meyering  <meyering@lucent.com>
93126
93127         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93128
93129 2000-05-24  Jim Meyering  <meyering@lucent.com>
93130
93131         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93132         autoconf requires that.
93133         * m4/lib-check.m4: Likewise.
93134         * m4/jm-macros.m4: Likewise.
93135         * m4/strftime.m4: Likewise.
93136
93137         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93138         AC_CHECK_DECLS, now that autoconf requires that.
93139
93140 2000-05-22  Jim Meyering  <meyering@lucent.com>
93141
93142         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93143         * m4/lstat.m4: Likewise.
93144
93145 2000-05-22  Jim Meyering  <meyering@lucent.com>
93146
93147         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93148
93149 2000-05-20  Jim Meyering  <meyering@lucent.com>
93150
93151         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93152         (jm_PREREQ): Use it.
93153
93154 2000-05-18  Jim Meyering  <meyering@lucent.com>
93155
93156         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93157         back, too, since it may have been modified by allocate_entry.
93158         (hash_delete): Rewrite to use neither the assignment operator
93159         nor the comma operator in an if-expression.
93160
93161 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93162
93163         * lib/closeout.c:
93164         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93165         Remove; no longer needed.
93166         "quotearg.h": Add include.
93167         (file_name): Do not bother to explicitly initialize to NULL; it's less
93168         efficient on some hosts.
93169         (close_stdout_status): Remove test as to whether stdout was already
93170         closed; it breaks for the case "echo x | sort >&-".
93171         Quote file name colons.
93172         Do not assume that _("write error") lacks format strings.
93173
93174 2000-05-15  Jim Meyering  <meyering@lucent.com>
93175
93176         * lib/version-etc.c (version_etc_copyright): Update the copyright
93177         string used in all --version output.
93178
93179 2000-05-14  Jim Meyering  <meyering@lucent.com>
93180
93181         * lib/closeout.c (close_stdout_set_file_name): New function.
93182         (close_stdout_status): Use new file-scoped global.
93183         Return right away if fstat says the stdout file descriptor is invalid.
93184         * lib/closeout.h (close_stdout_set_file_name): Declare.
93185
93186 2000-05-10  Jim Meyering  <meyering@lucent.com>
93187
93188         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93189         (close_stdout_set_status): New function.
93190         * lib/closeout.h (close_stdout_set_status): Declare.
93191
93192 2000-05-09  Jim Meyering  <meyering@lucent.com>
93193
93194         * m4/gettext.m4: Rename this...
93195         * m4/libintl.m4: ...to this.
93196
93197 2000-05-08  Jim Meyering  <meyering@lucent.com>
93198
93199         * lib/long-options.c: Don't include closeout.h.
93200         (parse_long_options): Don't call close_stdout for --version.
93201
93202 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93203
93204         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93205         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93206         2.1.3 bug.  This avoids a clash when files like regex.c define
93207         _GNU_SOURCE.
93208
93209 2000-05-06  Jim Meyering  <meyering@lucent.com>
93210
93211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93212         (AC_REPLACE_FUNCS): Add strnlen.
93213
93214         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93215         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93216
93217         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93218         AC_SEARCH_LIBS call for nanosleep.
93219         (LIB_NANOSLEEP): Set and AC_SUBST.
93220
93221 2000-05-06  Jim Meyering  <meyering@lucent.com>
93222
93223         * lib/strnlen.c: Undefine __strnlen and strnlen.
93224         [!weak_alias]: Define __strnlen to strnlen.
93225
93226         * lib/atexit.c: New file, from libiberty.
93227
93228 2000-05-06  Jim Meyering  <meyering@lucent.com>
93229
93230         * lib/closeout.c (close_stdout_status): Also check for errors on the
93231         stderr stream.
93232
93233 2000-05-05  Jim Meyering  <meyering@lucent.com>
93234
93235         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93236         AC_SEARCH_LIBS call for clock_gettime.
93237         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93238
93239         * m4/search-libs.m4: Update from autoconf.
93240
93241         su doesn't work on Solaris 2.6.
93242         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93243         <shadow.h>.  Reported by Dragos Harabor.
93244
93245 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93246
93247         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93248         memcpy instead of xmalloc, xrealloc, path_concat.
93249         (locale_charset): Treat empty environment variables as absent.
93250         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93251
93252 2000-05-04  Jim Meyering  <meyering@lucent.com>
93253
93254         * lib/getopt.c: Update from glibc.
93255         * lib/obstack.c: Likewise.
93256         * lib/obstack.h: Likewise.
93257         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93258         file
93259
93260         * lib/regex.h: Likewise.
93261         * lib/strndup.c: Likewise.
93262         * lib/strnlen.c: New file, from glibc.
93263
93264 2000-05-03  Jim Meyering  <meyering@lucent.com>
93265
93266         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93267
93268 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93269
93270         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93271         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93272         compile-time test, rather than inspecting host and OS, to
93273         decide whether to define _LARGEFILE_SOURCE.
93274
93275 2000-05-01  Jim Meyering  <meyering@lucent.com>
93276
93277         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93278
93279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93280         Based on a patch from Bruno Haible.
93281
93282 2000-05-01  Jim Meyering  <meyering@lucent.com>
93283
93284         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93285
93286 2000-04-29  Jim Meyering  <meyering@lucent.com>
93287
93288         * lib/path-concat.c: Declare strdup only if it's not defined.
93289         * lib/canon-host.c: Likewise.
93290
93291 2000-04-28  Jim Meyering  <meyering@lucent.com>
93292
93293         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93294         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93295         is included first, then limits.h is included by locale.h by libintl.h.
93296         From John David Anglin.
93297
93298 2000-04-25  Jim Meyering  <meyering@lucent.com>
93299
93300         * lib/makepath.c (S_IRWXUGO): Define.
93301         (make_path): Always perform explicit chmod if MODE specifies any
93302         of the `special' permission bits.  Prompted by a bug report against
93303         install from Mate Wierdl and Joost van Baal.
93304
93305 2000-04-18  Jim Meyering  <meyering@lucent.com>
93306
93307         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93308         (jm_PREREQ): Use it.
93309
93310 2000-04-18  Jim Meyering  <meyering@lucent.com>
93311
93312         * lib/README: New file.
93313
93314         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93315         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93316
93317 2000-04-17  Jim Meyering  <meyering@lucent.com>
93318
93319         Get it right :-)
93320         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93321         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93322         Suggestion from Akim Demaille.
93323
93324 2000-04-17  Jim Meyering  <meyering@lucent.com>
93325
93326         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93327         the definition of it to rpl_strftime also defined-away the system's
93328         declaration.
93329
93330 2000-04-15  Jim Meyering  <meyering@lucent.com>
93331
93332         Use `C' to denote so-called `contiguous' files, the same way
93333         that tar does.
93334         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93335         (ftypelet): Use S_ISCTG.
93336         From Michael Deutschmann.
93337
93338 2000-04-14  Jim Meyering  <meyering@lucent.com>
93339
93340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93341         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93342         clobbered.
93343
93344 2000-04-14  Jim Meyering  <meyering@lucent.com>
93345
93346         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93347
93348 2000-04-13  Jim Meyering  <meyering@lucent.com>
93349
93350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93351         AH_VERBATIM to insert required #ifndef into config.h.in.
93352         Suggestion from Akim Demaille.
93353
93354 2000-04-12  Jim Meyering  <meyering@lucent.com>
93355
93356         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93357         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93358         Christian Krackowizer.
93359
93360         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93361         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93362         (AC_SYS_LARGEFILE): Require.
93363         (AM_C_PROTOTYPES): Require.
93364
93365 2000-04-08  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93368         names don't conflict.  Reported by Eli Zaretskii.
93369
93370 2000-04-07  Jim Meyering  <meyering@lucent.com>
93371
93372         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93373         sys/types.h, to work around system header problems on AIX 3.2.5.
93374         From Bruno Haible.
93375
93376 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93377
93378         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93379         bug.  Deal with the different error behavior of Irix iconv.
93380
93381 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93382
93383         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93384         IRIX if the installer said otherwise.
93385
93386 2000-04-05  Jim Meyering  <meyering@lucent.com>
93387
93388         Portability tweaks required for ultrix4.3.
93389         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93390         (jm_CHECK_DECLS): Add getutent to the list of functions.
93391         (_jm_DECL_HEADERS): Add utmpx.h.
93392         From John David Anglin.
93393
93394         * m4/strftime.m4: Back out the 2000-04-02 change.
93395         Instead of that change, simply undefine putenv in the test program.
93396
93397 2000-04-05  Jim Meyering  <meyering@lucent.com>
93398
93399         Portability tweaks required for ultrix4.3.
93400         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93401         getutent.
93402         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93403         * lib/canon-host.c: Declare strdup.
93404         * lib/path-concat.c: Likewise.
93405         From John David Anglin.
93406
93407 2000-04-04  Jim Meyering  <meyering@lucent.com>
93408
93409         Be more DOS 8.3-friendly.
93410         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93411         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93412         * lib/Makefile.am: Reflect renaming.
93413         Reported by Eli Zaretskii.
93414
93415         Use a temporary file name that won't clash with `charset.alias'
93416         in the DOS 8.3 name space.
93417         * lib/Makefile.am (charset_tmp): Define.
93418         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93419         (uninstall-local): Likewise.
93420         Reported by Eli Zaretskii.
93421
93422 2000-04-03  Jim Meyering  <meyering@lucent.com>
93423
93424         * m4/gettext.m4: Fix typo in comment.
93425
93426         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93427         textutils/configure.in).  Suggestion from Paul Eggert.
93428         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93429
93430 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93431
93432         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93433         variable in the shell rather than using putenv, which isn't
93434         portable.  This avoids the configure-time inter-test dependency
93435         on the potentially-renamed putenv function.
93436
93437 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93438
93439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93440         before checking struct stat.st_blksize, so that
93441         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93442
93443 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93444
93445         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93446         since strftime.c uses HAVE_STRFTIME to decide whether to use
93447         the underlying strftime.
93448
93449 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93450
93451         * lib/time/strftime.c (my_strftime): Make sure we call the system
93452         strftime, not ourselves, when invoking the underlying strftime.
93453
93454 2000-03-24  Jim Meyering  <meyering@lucent.com>
93455
93456         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93457         (charset_alias): Define.
93458         (install-exec-local): Factor out common code.
93459         (uninstall-local): Split lines longer than 80.
93460         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93461         (SUFFIXES): Define.
93462         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93463         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93464
93465 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93466
93467         * lib/config.charset: Output a line containing "Packages using this
93468         file".
93469         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93470         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93471         ref-del.sed): New rules.
93472
93473 2000-03-17  Jim Meyering  <meyering@lucent.com>
93474
93475         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93476         Otherwise, include <strings.h>
93477
93478 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93479
93480         * lib/unicodeio.c (utf8_wctomb): New function.
93481         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93482         format instead of in UCS-4 with platform dependent endianness.
93483
93484 2000-03-10  Jim Meyering  <meyering@lucent.com>
93485
93486         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93487         From Marco Franzen.
93488
93489 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93490
93491         * lib/savedir.c (savedir): Work even if directory size is
93492         negative; this can happen with some screwy NFS configurations.
93493
93494 2000-03-06  Jim Meyering  <meyering@lucent.com>
93495
93496         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93497         if it's NULL (because we ran out of memory).  From Bruno Haible.
93498
93499 2000-03-05  Jim Meyering  <meyering@lucent.com>
93500
93501         * lib/localcharset.c ("path-concat.h"): Include.
93502         (get_charset_aliases): Use path_concat instead of ANSI string
93503         concatenation.
93504
93505         * lib/unicodeio.h (PARAMS): Define.
93506         Use it to guard prototype.
93507
93508 2000-03-04  Jim Meyering  <meyering@lucent.com>
93509
93510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93511         for lib/localcharset.c.
93512
93513 2000-03-04  Jim Meyering  <meyering@lucent.com>
93514
93515         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93516         installing into it.
93517         (uninstall-local): Uncomment this rule so `make distcheck' works
93518         once again.
93519
93520         * lib/unicodeio.c (<errno.h>): Include it.
93521         (errno): Declare if not defined.
93522
93523         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93524
93525         * lib/config.charset: New version, incorporating remarks from a linux
93526         i18n mailing list.  From Bruno Haible.
93527
93528 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93529
93530         * m4/codeset.m4: New file.
93531         * m4/iconv.m4: New file.
93532         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93533
93534 2000-03-03  Jim Meyering  <meyering@lucent.com>
93535
93536         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93537
93538 2000-03-02  Jim Meyering  <meyering@lucent.com>
93539
93540         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93541         the messages come out on separate lines.
93542
93543         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93544         rather than jm_CHECK_DECLARATIONS.
93545         * m4/decl.m4: Remove now-unused file.
93546
93547         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93548         geteuid.
93549
93550 2000-03-02  Jim Meyering  <meyering@lucent.com>
93551
93552         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93553
93554 2000-03-01  Jim Meyering  <meyering@lucent.com>
93555
93556         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93557         * lib/unicodeio.c: Likewise.
93558
93559 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93560
93561         * lib/config.charset: New file.
93562         * lib/localcharset.c: New file.
93563         * lib/unicodeio.h, lib/unicodeio.c: New files.
93564         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93565         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93566         (noinst_HEADERS): Add unicodeio.h.
93567         (all-local, install-exec-local, charset.alias): New targets.
93568
93569 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93570
93571         * lib/quotearg.c (ALERT_CHAR): New macro.
93572         (quotearg_buffer_restyled): Use it.
93573
93574 2000-02-27  Jim Meyering  <meyering@lucent.com>
93575
93576         * m4/check-decl.m4: Add getenv to the list.
93577
93578 2000-02-27  Jim Meyering  <meyering@lucent.com>
93579
93580         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93581         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93582
93583         * lib/backupfile.c: Guard inclusion of stdlib.h with
93584         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93585         Declare malloc if needed.
93586
93587         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93588         `#ifndef HAVE_DECL..'
93589         now that autoconf always defines the HAVE_DECL_ symbols.
93590         * lib/human.c: Likewise.
93591         * lib/same.c: Likewise.
93592         * lib/strtoumax.c: Likewise.
93593
93594         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93595         declaration check was not run.
93596         * lib/hash.c: Likewise.
93597         * lib/human.c: Likewise.
93598         * lib/same.c: Likewise.
93599         * lib/strtoumax.c: Likewise.
93600
93601         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93602         `.', then first look up the entire `.'-containing string as a login
93603         name.
93604
93605 2000-02-23  Jim Meyering  <meyering@lucent.com>
93606
93607         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93608         in place of my hack.
93609
93610 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93611
93612         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93613         (textint): New typedef.
93614         (parser_control): Member year changed from int to textint.
93615         All uses changed.
93616         (YYSTYPE): Removed; replaced by %union with int and textint members.
93617         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93618         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93619         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93620         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93621         (date, number, to_year): Use width of number in digits, not its value,
93622         to determine whether it's a 2-digit year, or a 2-digit time.
93623         (yylex): Store number of digits of numeric tokens.
93624         Reported by John Kendall.
93625
93626         (parser_control): Changed from struct parser_control to typedef (for
93627         consistency).  All uses changed.
93628
93629         (tID): Removed; not used.
93630         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93631
93632 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93633
93634         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93635         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93636
93637 2000-02-12  Jim Meyering  <meyering@lucent.com>
93638
93639         * lib/userspec.c (ISDIGIT): Define it.
93640         (isdigit): Remove definition.
93641         (is_number): Use ISDIGIT, not isdigit.
93642         <libintl.h>: Include.
93643         (_ and N_): Define.
93644         (parse_user_spec): Mark translatable strings.
93645
93646 2000-02-10  Jim Meyering  <meyering@lucent.com>
93647
93648         With these changes, nanosleep.[ch] are finally enough like the other
93649         lib/* replacement files to compile on a few more losing systems.
93650
93651         * lib/nanosleep.h: Don't include config.h.
93652         Remove prototype from declaration of nanosleep.
93653         (PARAMS): Remove now-unneeded definition.
93654         * lib/nanosleep.c: #undef nanosleep.
93655         (rpl_nanosleep): Rename from nanosleep.
93656
93657 2000-02-10  Jim Meyering  <meyering@lucent.com>
93658
93659         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93660         gnu_nanosleep to rpl_nanosleep.
93661
93662 2000-02-09  Jim Meyering  <meyering@lucent.com>
93663
93664         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93665         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93666
93667 2000-02-08  Akim Demaille  <akim@epita.fr>
93668
93669         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93670         `[' and `]' and remove uses of `changequote'.
93671         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93672         (AC_SYS_LARGEFILE): Likewise.
93673         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93674         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93675         of changequote.
93676         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93677         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93678         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93679         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93680
93681 2000-02-05  Jim Meyering  <meyering@lucent.com>
93682
93683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93684         Remove explicit use of AC_HEADER_TIME.  It is required by
93685         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93686         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93687         in autoconf whereby the expansion of the latter ended up preceding
93688         the expansion of its prerequisite, AC_HEADER_TIME.
93689         Reported by Volker Borchert.
93690
93691 2000-02-03  Jim Meyering  <meyering@lucent.com>
93692
93693         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93694
93695 2000-02-03  Jim Meyering  <meyering@lucent.com>
93696
93697         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93698         rather than with `#if HAVE_UTMPNAME'.
93699
93700 2000-02-02  Jim Meyering  <meyering@lucent.com>
93701
93702         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93703         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93704         Reported by Eli Zaretskii.
93705
93706 2000-02-01  Jim Meyering  <meyering@lucent.com>
93707
93708         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93709
93710 2000-01-31  Jim Meyering  <meyering@lucent.com>
93711
93712         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93713         functions.  Add the time.h and sys/time.h headers along with the
93714         AC_REQUIRE'ment of AC_HEADER_TIME.
93715
93716 2000-01-31  Jim Meyering  <meyering@lucent.com>
93717
93718         * lib/nanosleep.h (nanosleep): Guard declaration with
93719         `#if ! HAVE_DECL_NANOSLEEP'.
93720         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93721         the declaration in that vendor's sys/timers.h.
93722         Reported by Christian Krackowizer.
93723
93724         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93725         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93726         (ISPRINT): Likewise.
93727         Reported by Tom Tromey.
93728
93729 2000-01-30  Jim Meyering  <meyering@lucent.com>
93730
93731         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93732
93733         * m4/prereq.m4 (utmp_includes): Define.
93734         Check for ut_user and ut_name members in both struct utmpx
93735         and struct utmp.
93736
93737 2000-01-30  Jim Meyering  <meyering@lucent.com>
93738
93739         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93740         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93741         header files where only utmpx.ut_user is declared.
93742
93743         * lib/readutmp.h (UT_USER): Define.
93744
93745 2000-01-29  Jim Meyering  <meyering@lucent.com>
93746
93747         * m4/lib-check.m4: New file containing library-related checks from
93748         fileutils and sh-utils (textutils had none).
93749
93750 2000-01-28  Jim Meyering  <meyering@lucent.com>
93751
93752         * m4/perl.m4: Change format of warning message to look more like that
93753         from the missing script.  Suggestion from François Pinard.
93754
93755 2000-01-25  Jim Meyering  <meyering@lucent.com>
93756
93757         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93758         well as time.h in the compile check.
93759         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93760         Fix typo in cross-compiling case: s/yes/no/.
93761
93762 2000-01-23  Jim Meyering  <meyering@lucent.com>
93763
93764         * m4/jm-macros.m4: Move df-related tests here from
93765         fileutils/configure.in
93766
93767         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93768         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93769
93770         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93771         s/space/ac_fsusage_space/.
93772         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93773
93774         * m4/ftruncate.m4: New file (derived from part of
93775         fileutils/configure.in).
93776         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93777         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93778
93779         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93780         AC_SUBST these here, rather than just in sh-util/configure.in, so
93781         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93782         all the same.
93783         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93784         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93785         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93786         (AC_SUBST(POW_LIBM)): Likewise.
93787         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93788
93789 2000-01-23  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93792         obstack.c.
93793
93794 2000-01-22  Jim Meyering  <meyering@lucent.com>
93795
93796         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93797
93798         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93799
93800         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93801         configure.in
93802         (AC_CHECK_HEADERS): Likewise for sh-utils.
93803         (AC_CHECK_HEADERS): Likewise for textutils.
93804         Merge the three lists of headers.
93805
93806         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93807         from fileutils' configure.in.
93808
93809         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93810         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93811         check-decl.m4.
93812
93813         * m4/check-decl.m4: Use #if rather than #ifdef.
93814         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93815         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93816         (_jm_DECL_HEADERS): Define new function.
93817         (jm_CHECK_DECLARATIONS): Require it.
93818
93819 2000-01-22  Jim Meyering  <meyering@lucent.com>
93820
93821         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93822         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93823         Required for some AIX systems.  Reported by Christian Krackowizer.
93824         [TESTING] (main): New function.
93825
93826         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93827         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93828         letters.
93829
93830         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93831         iswprint.
93832
93833         * lib/strverscmp.c (ISDIGIT): Define.
93834         (strverscmp): Use ISDIGIT, not isdigit.
93835
93836 2000-01-19  Jim Meyering  <meyering@lucent.com>
93837
93838         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93839         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93840         defines `struct timespec' in <sys/time.h>
93841
93842         * m4/c-bs-a.m4: Remove uses of changequote altogether.
93843         Thanks to Akim for explaining.
93844
93845 2000-01-17  Paul Eggert  <eggert@twinsun.com>
93846
93847         * lib/nanosleep.c (nanosleep):
93848         Don't use SA_INTERRUPT to decide whether to call sigaction, as
93849         POSIX.1 doesn't require SA_INTERRUPT and some systems
93850         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
93851         it's been part of POSIX.1 since day 1 (in 1988).
93852
93853 2000-01-17  Jim Meyering  <meyering@lucent.com>
93854
93855         * lib/interlock: Remove unused file.  Reported by François Pinard.
93856
93857 2000-01-16  Paul Eggert  <eggert@twinsun.com>
93858
93859         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
93860         alert, backslash, formfeed, and vertical tab unnecessarily in
93861         shell quoting style.
93862
93863 2000-01-16  Jim Meyering  <meyering@lucent.com>
93864
93865         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
93866         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
93867         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
93868         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
93869
93870 2000-01-16  Jim Meyering  <meyering@lucent.com>
93871
93872         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
93873         because the latter didn't work.
93874
93875 2000-01-15  Jim Meyering  <meyering@lucent.com>
93876
93877         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
93878         (AC_REPLACE_FUNCS): Add memcpy and memset.
93879         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
93880         Add strpbrk.
93881         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
93882
93883 2000-01-12  Jim Meyering  <meyering@lucent.com>
93884
93885         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
93886         (jm_PREREQ): Use it.
93887         (jm_PREREQ_READUTMP): New macro.
93888         (jm_PREREQ): Use it.
93889
93890 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93891
93892         Quote multibyte characters correctly.
93893         * m4/c-bs-a.m4: New file.
93894         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
93895         (jm_PREREQ): Use it.
93896
93897 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93898
93899         * m4/uintmax_t.m4: Port to autoconf 2.13.
93900
93901 2000-01-08  Jim Meyering  <meyering@ascend.com>
93902
93903         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
93904         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
93905
93906 2000-01-04  Jim Meyering  <meyering@ascend.com>
93907
93908         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
93909         jm_STRUCT_DIRENT_D_TYPE.
93910         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
93911         jm_STRUCT_DIRENT_D_INO.
93912         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
93913         jm_STRUCT_UTIMBUF.
93914         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
93915         renamings.
93916         * m4/utime.m4: Likewise.
93917
93918         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
93919         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
93920
93921 2000-01-03  Paul Eggert  <eggert@twinsun.com>
93922
93923         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
93924         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
93925
93926 2000-01-02  Jim Meyering  <meyering@ascend.com>
93927
93928         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
93929         remember if this is necessary.
93930
93931 1999-12-26  Jim Meyering  <meyering@ascend.com>
93932
93933         * m4/jm-macros.m4: Use it here.
93934         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
93935
93936 1999-12-23  Jim Meyering  <meyering@ascend.com>
93937
93938         * m4/jm-macros.m4: Check for clock_gettime (moved from
93939         fileutils/configure.in)
93940         Check for gettimeofday.
93941
93942 1999-12-20  Jim Meyering  <meyering@ascend.com>
93943
93944         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
93945         autoconf-2.14a-1999-12-20.
93946
93947 1999-12-19  Jim Meyering  <meyering@ascend.com>
93948
93949         * m4/lstat-slash.m4: New file.
93950         * m4/jm-macros.m4: Use the new macro:
93951         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93952
93953 1999-12-07  Jim Meyering  <meyering@ascend.com>
93954
93955         * m4/perl.m4: Require that File::Compare be available, too.
93956         Too many systems seem to lack it.
93957
93958         * m4/strftime.m4: Add checks for most of the cpp macros tested in
93959         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
93960
93961 1999-11-18  Paul Eggert  <eggert@twinsun.com>
93962
93963         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
93964         problem with the QNX 4.25 shell, which doesn't propagate exit
93965         status of failed commands inside shell assignments.
93966
93967 1999-11-17  Jim Meyering  <meyering@ascend.com>
93968
93969         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
93970
93971 1999-11-07  Jim Meyering  <meyering@ascend.com>
93972
93973         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
93974
93975 1999-11-06  Jim Meyering  <meyering@ascend.com>
93976
93977         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
93978         * m4/jm-macros.m4 (jm_MACROS): Use it here.
93979
93980 1999-11-05  Jim Meyering  <meyering@ascend.com>
93981
93982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
93983         configure.in of textutils, fileutils, and sh-utils into this one
93984         (shared between those packages) file.
93985         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
93986         AC_STRUCT_ST_BLKSIZE.
93987
93988 1999-11-03  Jim Meyering  <meyering@ascend.com>
93989
93990         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
93991         of AC_CHECK_TYPE checks includes unistd.h.
93992         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
93993         Suggestion from Akim Demaille.
93994
93995 1999-10-30  Jim Meyering  <meyering@ascend.com>
93996
93997         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
93998         m4-quoted string.
93999         * m4/ls-mntd-fs.m4: Likewise.
94000         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94001         * m4/jm-winsz1.m4: Likewise.
94002
94003         * m4/const.m4: Remove file, since the fix made it into the experimental
94004         version of autoconf.
94005         * m4/mktime.m4: Likewise.
94006
94007         * m4/check-type.m4: Remove file, now that the latest version of
94008         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94009
94010         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94011         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94012         AC_CHECK_TYPE.
94013
94014 1999-10-04  Jim Meyering  <meyering@ascend.com>
94015
94016         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94017
94018 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94019
94020         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94021         2.95.1 bug with HP-UX 10.20.
94022
94023 1999-09-17  Jim Meyering  <meyering@ascend.com>
94024
94025         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94026         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94027         due to missing strdup (against sh-utils-2.0).
94028
94029 1999-08-29  Jim Meyering  <meyering@ascend.com>
94030
94031         * m4/jm-macros.m4: Require jm_BISON.
94032         * m4/bison.m4: New file.
94033
94034 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94035
94036         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94037         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94038
94039 1999-08-05  Jim Meyering  <meyering@ascend.com>
94040
94041         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94042         to avoid conflicts with `conftest' on 8+3 filesystems.
94043         Suggestion from Eli Zaretskii.
94044
94045 1999-08-04  Jim Meyering  <meyering@ascend.com>
94046
94047         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94048         fileutils and sh-utils (textutils's getline test was inadequate).
94049         (AM_FUNC_GETLINE): Run this test.
94050         (AC_CHECK_FUNCS): Check for getdelim.
94051         Reported by Bob Proulx.
94052
94053 1999-08-02  Jim Meyering  <meyering@ascend.com>
94054
94055         * m4/jm-macros.m4: Add a comment.
94056
94057 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94058
94059         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94060         <inttypes.h> defines strtoumax as a macro (and not as a
94061         function).
94062
94063 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94064
94065         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94066         that we can shift, multiply and divide unsigned long long
94067         values; Ultrix cc can't do it.
94068
94069 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94070
94071         * m4/mktime.m4: New file, which is a preview of what should appear
94072         in the next public autoconf release.
94073
94074 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94075
94076         * m4/lfs.m4: Remove this file.
94077         * m4/largefile.m4: New file.  It contains the old contents of
94078         lfs.m4, except that all names with prefix AC_LFS have been
94079         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94080         compatible with future autoconf versions.  Also, some minor m4
94081         quoting problems have been fixed.
94082
94083 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94084
94085         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94086         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94087         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94088         and simplify the shell code.
94089
94090 1999-08-01  Jim Meyering  <meyering@ascend.com>
94091
94092         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94093         m4.
94094
94095 1999-07-20  Jim Meyering  <meyering@ascend.com>
94096
94097         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94098
94099 1999-07-15  Jim Meyering  <meyering@ascend.com>
94100
94101         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94102
94103 1999-05-22  Jim Meyering  <meyering@ascend.com>
94104
94105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94106
94107 1999-05-20  Jim Meyering  <meyering@ascend.com>
94108
94109         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94110         Add a colon after each `then' in case $4 is empty.
94111
94112 1999-05-16  Jim Meyering  <meyering@ascend.com>
94113
94114         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94115
94116 1999-05-10  Jim Meyering  <meyering@ascend.com>
94117
94118         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94119
94120         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94121         AC_FUNC_MKTIME.
94122
94123 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94124
94125         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94126
94127 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94128
94129         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94130         not CPPFLAGS, so that linking works correctly in IRIX.
94131
94132 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94133
94134         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94135
94136 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94137
94138         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94139         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94141         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94142         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94143
94144         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94145
94146 1999-04-20  Jim Meyering  <meyering@ascend.com>
94147
94148         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94149         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94150         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94151
94152 1999-04-18  Jim Meyering  <meyering@ascend.com>
94153
94154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94155         * m4/jm-macros.m4: Use it.
94156
94157 1999-04-06  Jim Meyering  <meyering@ascend.com>
94158
94159         * m4/strftime.m4: Remove test for %f.
94160
94161 1999-03-29  Jim Meyering  <meyering@ascend.com>
94162
94163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94164         superset of the AC_TYPE_* checks in the textutils, fileutils,
94165         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94166         AC_TYPE_PID_T.
94167
94168 1999-03-28  Jim Meyering  <meyering@ascend.com>
94169
94170         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94171         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94172         replaced e.g., in the *.sh files of the sh-utils.
94173
94174 1999-03-20  Jim Meyering  <meyering@ascend.com>
94175
94176         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94177         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94178         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94179
94180 1999-03-19  Jim Meyering  <meyering@ascend.com>
94181
94182         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94183
94184 1999-03-12  Jim Meyering  <meyering@ascend.com>
94185
94186         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94187
94188 1999-03-07  Jim Meyering  <meyering@ascend.com>
94189
94190         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94191         declared.
94192
94193 1999-02-17  Jim Meyering  <meyering@ascend.com>
94194
94195         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94196         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94197
94198 1999-02-07  Jim Meyering  <meyering@ascend.com>
94199
94200         * m4/group-member.m4: New file -- extracted from sh-utils'
94201         configure.in.
94202
94203         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94204         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94205
94206 1999-02-06  Jim Meyering  <meyering@ascend.com>
94207
94208         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94209         * m4/fnmatch.m4: Likewise.
94210         * m4/getgroups.m4: Likewise.
94211         * m4/lstat.m4: Likewise.
94212         * m4/malloc.m4: Likewise.
94213         * m4/putenv.m4: Likewise.
94214         * m4/realloc.m4: Likewise.
94215         * m4/regex.m4: Likewise.
94216         * m4/stat.m4: Likewise.
94217         * m4/strftime.m4: Likewise.
94218         Suggestion from Alain Magloire.
94219
94220         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94221         * m4/fnmatch.m4: Likewise.
94222         * m4/getgroups.m4: Likewise.
94223         * m4/getline.m4: Likewise.
94224         * m4/lstat.m4: Likewise.
94225         * m4/malloc.m4: Likewise.
94226         * m4/memcmp.m4: Likewise.
94227         * m4/putenv.m4: Likewise.
94228         * m4/realloc.m4: Likewise.
94229         * m4/regex.m4: Likewise.
94230         * m4/stat.m4: Likewise.
94231         * m4/strftime.m4: Likewise.
94232         Suggestion from Alain Magloire.
94233
94234         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94235         an argument.
94236
94237         * m4/regex.m4: Add a run-time Test for proper operation of
94238         re_compile_pattern.
94239
94240 1999-01-31  Jim Meyering  <meyering@ascend.com>
94241
94242         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94243
94244 1999-01-30  Jim Meyering  <meyering@ascend.com>
94245
94246         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94247
94248         * m4/jm-mktime.m4: Make this a wrapper around the official
94249         AM_FUNC_MKTIME rather than my private copy, now that the official one
94250         is up to date.
94251         * m4/mktime.m4: Remove file.
94252
94253         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94254         * m4/uptime.m4: Likewise.
94255         * m4/uintmax_t.m4: Likewise.
94256
94257 1999-01-28  Jim Meyering  <meyering@ascend.com>
94258
94259         * m4/jm-macros.m4: Use jm_AFS.
94260         * m4/afs.m4: New file (from fileutils' configure.in).
94261
94262         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94263         * m4/chown.m4: Likewise.
94264         * m4/d-ino.m4: Likewise.
94265         * m4/d-type.m4: Likewise.
94266         * m4/fnmatch.m4: Likewise.
94267         * m4/getgroups.m4: Likewise.
94268         * m4/gettext.m4: Likewise.
94269         * m4/jm-mktime.m4: Likewise.
94270         * m4/jm-winsz2.m4: Likewise.
94271         * m4/lcmessage.m4: Likewise.
94272         * m4/ls-mntd-fs.m4: Likewise.
94273         * m4/malloc.m4: Likewise.
94274         * m4/memcmp.m4: Likewise.
94275         * m4/putenv.m4: Likewise.
94276         * m4/realloc.m4: Likewise.
94277         * m4/st_mtim.m4: Likewise.
94278         * m4/strftime.m4: Likewise.
94279
94280 1999-01-16  Jim Meyering  <meyering@ascend.com>
94281
94282         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94283         (ARGMATCH_DIE_DECL): Define.
94284
94285 1999-01-12  Jim Meyering  <meyering@ascend.com>
94286
94287         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94288         Reported by Lars Hecking.
94289
94290 1999-01-10  Jim Meyering  <meyering@ascend.com>
94291
94292         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94293         gross kludge.
94294         * m4/inttypes_h.m4: Likewise.
94295         * m4/lstat.m4: Likewise.
94296         * m4/malloc.m4: Likewise.
94297         * m4/readdir.m4: Likewise.
94298         * m4/realloc.m4: Likewise.
94299         * m4/st_dm_mode.m4: Likewise.
94300         * m4/stat.m4: Likewise.
94301         * m4/utimbuf.m4: Likewise.
94302         * m4/utimes.m4: Likewise.
94303
94304         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94305         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94306         comments in config.h.in are meaningful.
94307
94308         * m4/jm-macros.m4: Require autoconf-2.13 here.
94309
94310         * m4/regex.m4: By default, don't use the included regex.c on systems
94311         with glibc 2.  Suggestion from Uli Drepper.
94312
94313 1999-01-02  Jim Meyering  <meyering@ascend.com>
94314
94315         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94316
94317 1998-12-18  Jim Meyering  <meyering@ascend.com>
94318
94319         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94320         Based on a suggestion from Lars Hecking.
94321
94322 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94323
94324         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94325
94326 1998-11-16  Jim Meyering  <meyering@ascend.com>
94327
94328         * m4/lfs.m4: Double-quote the `uname...` expression.
94329
94330 1998-11-14  Jim Meyering  <meyering@ascend.com>
94331
94332         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94333         * m4/stat.m4: Likewise.
94334
94335 1998-11-03  Jim Meyering  <meyering@ascend.com>
94336
94337         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94338         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94339
94340 1998-10-18  Jim Meyering  <meyering@ascend.com>
94341
94342         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94343
94344 1998-10-17  Jim Meyering  <meyering@ascend.com>
94345
94346         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94347         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94348         calls for those previously hard-coded headers.  Instead, take a new
94349         parameter.
94350         (jm_CHECK_DECLARATIONS): Reflect interface change.
94351         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94352         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94353
94354         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94355
94356 1998-10-14  Jim Meyering  <meyering@ascend.com>
94357
94358         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94359         instead of "TZ=America/Vancouver".  From Paul Eggert.
94360
94361 1998-10-11  Jim Meyering  <meyering@ascend.com>
94362
94363         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94364         This adds a test for a recently added compatibility fix for mktime.c.
94365         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94366
94367 1998-09-27  Jim Meyering  <meyering@ascend.com>
94368
94369         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94370
94371         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94372         ../configure.in, including a change from Gordon Matzigkeit to allow
94373         cross-compiling for the Hurd.
94374
94375         * m4/glibc.m4: New file/macro to test for the GNU C Library
94376         versions 1 and 2.  From Gordon Matzigkeit.
94377         Indent.
94378
94379 1998-09-21  Jim Meyering  <meyering@ascend.com>
94380
94381         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94382
94383 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94384
94385         Port nanosecond-resolution times to UnixWare 2.1.2 and
94386         pedantic Solaris 2.6.
94387
94388         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94389         AC_STRUCT_ST_MTIM.
94390         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94391         Generate name of ns member, instead of just 1 or undef.
94392         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94393
94394 1998-08-15  Jim Meyering  <meyering@ascend.com>
94395
94396         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94397         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94398         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94399         instead of jm_TYPE_SSIZE_T.
94400
94401 1998-08-12  Jim Meyering  <meyering@ascend.com>
94402
94403         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94404
94405 1998-08-02  Jim Meyering  <meyering@ascend.com>
94406
94407         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94408         in acconfig.h manually.
94409
94410 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94411
94412         * m4/st_mtim.m4: New file.
94413
94414 1998-07-28  Jim Meyering  <meyering@ascend.com>
94415
94416         * m4/utimes.m4: Undef stat.
94417
94418 1998-07-25  Jim Meyering  <meyering@ascend.com>
94419
94420         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94421         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94422
94423 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94424
94425         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94426         uid and gid actually remain unchanged.
94427
94428 1998-07-07  Jim Meyering  <meyering@ascend.com>
94429
94430         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94431
94432 1998-07-04  Jim Meyering  <meyering@ascend.com>
94433
94434         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94435         to prove that this macro can be used in packages without regex.c.
94436
94437 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94438
94439         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94440         is to be used.
94441
94442 1998-07-03  Jim Meyering  <meyering@ascend.com>
94443
94444         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94445
94446         * m4/gettext.m4: New file -- from gettext-0.10.35.
94447         * m4/lcmessage.m4: Likewise.
94448         * m4/progtest.m4: Likewise.
94449
94450         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94451         * m4/jm-macros.m4: Require the new macro.
94452
94453 1998-06-29  Jim Meyering  <meyering@ascend.com>
94454
94455         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94456         for the definition of NGROUPS (used in a system header included
94457         by sys/mount.h).
94458
94459 1998-06-28  Jim Meyering  <meyering@ascend.com>
94460
94461         * m4/ls-mntd-fs.m4: New file.
94462         * m4/fstypename.m4: New file.
94463
94464         * m4/jm-macros.m4: Require the new macro.
94465         * m4/jm-glibc-io.m4: New file.
94466
94467 1998-05-19  Jim Meyering  <meyering@ascend.com>
94468
94469         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94470         * m4/lchown.m4: New file.
94471
94472         * m4/Makefile.am.in: New file.
94473         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94474
94475 1998-05-14  Jim Meyering  <meyering@ascend.com>
94476
94477         * m4/Makefile.am (EXTRA_DIST): Add them.
94478         * m4/jm-macros.m4: New file.
94479         * m4/utimbuf.m4: New file.
94480
94481 1998-05-12  Jim Meyering  <meyering@ascend.com>
94482
94483         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94484
94485 1998-05-11  Jim Meyering  <meyering@ascend.com>
94486
94487         * m4/isc-posix.m4: New file.
94488
94489 1998-05-10  Jim Meyering  <meyering@ascend.com>
94490
94491         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94492
94493 1998-05-09  Jim Meyering  <meyering@ascend.com>
94494
94495         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94496         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94497         with automake.
94498
94499         * m4/ssize_t.m4: New file.
94500         * m4/mktime.m4: Remove file -- the new automake has this now.
94501
94502 1998-04-26  Jim Meyering  <meyering@ascend.com>
94503
94504         * m4/assert.m4: New file.
94505         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94506
94507 1998-04-05  Jim Meyering  <meyering@ascend.com>
94508
94509         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94510         (jm_PREREQ): Use it here.
94511
94512 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94513
94514         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94515         in acconfig.h.
94516
94517 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94518
94519         * m4/prereq.m4: New file.
94520         * m4/error.m4: New file.
94521         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94522
94523 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94524
94525         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94526         cache-check for the same variable -- that defeated the purpose of
94527         the test; the test program was never run.  This was a problem only
94528         on systems with losing getline functions -- HP-UX 10.20 is one.
94529         Reported by Bjorn Helgaas.
94530
94531 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94532
94533         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94534
94535 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94536
94537         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94538
94539         * m4/const.m4: New file.  Use an initializer in this declaration
94540         typedef int charset[2]; const charset x;
94541         Reported by Bob Glickstein.
94542
94543 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94544
94545         * m4/chown.m4: Fix reversed types on -1 args to chown.
94546         From Kaveh Ghazi.
94547
94548 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94549
94550         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94551         Add lseek and memchr.
94552
94553         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94554         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94555         have a 20-character limit on names.
94556
94557 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94558
94559         * m4/inttypes_h.m4: New file.
94560         * m4/uintmax_t.m4: New file.
94561         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94562
94563
94564         -----
94565
94566         Local Variables:
94567         coding: utf-8
94568         End:
94569
94570         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94571
94572         Copying and distribution of this file, with or without
94573         modification, are permitted provided the copyright notice
94574         and this notice are preserved.